-
Notifications
You must be signed in to change notification settings - Fork 11.4k
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
How staking reward compounded? #21009
Comments
Thank you for opening this issue, a team member will review it shortly. Until then, please do not interact with any users that claim to be from Sui support and do not click on any links! |
Hi @nishit9457, Staking rewards are compounded each epoch (around 24 hour long) so they are compounded daily. We have this handy method that, given a stake object and staking pool, calculates the rewards it has accrued at a given epoch. This method may not provide entirely what you need, but should be a good reference for your calculation. Hope this helps! |
Thanks |
Hi @emmazzz , I am doing calculation based on my understanding trying to represent below and in attached excel as well but some how reward is not matching with current reward. I have tried calculating it by considering epoch APYs from when it was staked to current with multiple scenarios. Please let me know where am I doing wrong. Address - 0xb4f42571101827758f55a9b998a1251892402fbd4dce90da3373625298091627 Delegated share % = delegatedStake / stakingPoolSuiBalance * 100. In our case it would be 150000 / 2739799 X 100 = 0.547% Now given the reward was earned but not redeemed, this stake + reward would earn interest per the APY rates (5.38 for epoc 70). Further compounding calculation explained in excel. Please guide if anything wrong with this. Interest Calculation 0xb4f42571101827758f55a9b998a1251892402fbd4dce90da3373625298091627.xlsx |
Hi Team,
I want to show the accrued reward amount against any staking transaction for a specific time period/ epoch (old epoch also). So I am calculating this based on staking amount, APY and commission rate and other values for respective epochs.
I just want to confirm that how staking reward is compounded whether weekly or monthly or suggest any other way to calculate staking reward.
Thanks
The text was updated successfully, but these errors were encountered: