-
Notifications
You must be signed in to change notification settings - Fork 31
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
Feat/1207513338125664 delayed staking rewards #280
Feat/1207513338125664 delayed staking rewards #280
Conversation
…info is used where needed
…igate prepare_delayed_reward from running twice at genesis
ac18836
to
1f580f3
Compare
let issue_number = if ed == T::CurrencyBalance::from(0_u32) { | ||
T::Currency::reducible_balance(&pot, Preservation::Preserve, Fortitude::Polite) | ||
// Avoid the pot complaint no balance there | ||
.checked_sub(&T::CurrencyBalance::from(10_u32)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please keep this logic. Otherwise, every time after we distribute the reward, one event will be emitted because we'll drain all the tokens in the pot
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Incorporated this back in🤝
WIP - Opened for discussion