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

[Rewards Streamer]: fix rewards calculation using only MPs accrued up to rewardIndex #118

Closed
gravityblast opened this issue Sep 17, 2024 · 1 comment
Assignees
Milestone

Comments

@gravityblast
Copy link
Collaborator

In the current implementation the the rewards are calculated on a proportion between rewards and stakedToken + MPs.
The problem is that the now the calculation increment the MPs accrued by a user until the unstake moment.
It's correct to increment those MPs, but not all of them need to be taken into account in the reward calculation.
To fix that we need to use only the staked token and the MPs accrued until the reward.

@gravityblast gravityblast self-assigned this Sep 17, 2024
@0x-r4bbit 0x-r4bbit added this to the Staking V1 milestone Sep 17, 2024
@gravityblast
Copy link
Collaborator Author

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

No branches or pull requests

2 participants