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

Staking Reward Pool implementation #1566

Closed
shannonwells opened this issue May 31, 2023 · 1 comment
Closed

Staking Reward Pool implementation #1566

shannonwells opened this issue May 31, 2023 · 1 comment

Comments

@shannonwells
Copy link
Collaborator

shannonwells commented May 31, 2023

Story

In order to pay out Staking Rewards, there needs to be a Reward Pool calculated per Staking Era to pay rewards from.

Acceptance Criteria

  • RewardPoolInfo is in Capacity's pallet storage
  • Reward Pool size is obtained from the StakingRewardProvider that is configured by Capacity pallet runtime/mocks
  • Every Era, a new RewardPoolInfo entry is appended to storage with the total reward pool amount and zero for unclaimed_balance.

Blocked by

Not included

  • Rewards payouts
  • Rewards history rollover i.e. garbage collection
  • Updating StakingRewardInfo whenever someone stakes or unstakes
@shannonwells
Copy link
Collaborator Author

Finished in PR #1710

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant