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

Fix remaining reward normalisation on unstake #134

Merged
merged 9 commits into from
May 28, 2024

Conversation

amarinkovic
Copy link
Member

@amarinkovic amarinkovic commented May 24, 2024

Whan a user unstakes he automatically collects any rewards he is eligible for. During that process, the total for the remaining reward has to be updated. However, this adjustment has to be done using boosted balances, not the raw values from the storage.

Added a change to correctly make the update to the remaining reward balance.

@amarinkovic amarinkovic mentioned this pull request May 24, 2024
@amarinkovic amarinkovic force-pushed the unstake_reward_normalisation branch from 0c08d93 to eb9edb8 Compare May 27, 2024 07:39
@amarinkovic amarinkovic merged commit 1f839ee into dev May 28, 2024
4 checks passed
@amarinkovic amarinkovic deleted the unstake_reward_normalisation branch May 28, 2024 07:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant