Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Track beneficiary and earning power on stake and withdrawal #9

Merged
merged 1 commit into from
Jan 3, 2024

Commits on Jan 3, 2024

  1. Add and track the concept of a beneficiary to a stake deposit

    Stakers will be able to assign the rewards earned by their stake to an
    arbitrary address of their choosing. This commit adds the machinery to track
    said "beneficiary" address. It is included in the Deposit struct. What's more,
    the total "earning power" of every address is tracked in a mapping independent
    of deposit balance.
    apbendi committed Jan 3, 2024
    Configuration menu
    Copy the full SHA
    00603e9 View commit details
    Browse the repository at this point in the history