You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On the IDLE staking dashboard, the staking share relative to total deposits is calculated using the IDLE deposit amount, but it should be calculated using the stkIDLE balance.
Since stkIDLE is time weighted, users who stake for longer have a larger share of the rewards.
On the IDLE staking dashboard, the staking share relative to total deposits is calculated using the IDLE deposit amount, but it should be calculated using the stkIDLE balance.
Since stkIDLE is time weighted, users who stake for longer have a larger share of the rewards.
idle-client/src/IdleStaking/IdleStaking.js
Line 246 in 9cbdb91
idle-client/src/IdleStaking/IdleStaking.js
Line 263 in 9cbdb91
These lines should be changed to use the StakedIDLE contract
totalSupply()
, andbalanceOf(addresss)
to calculate the users share.The text was updated successfully, but these errors were encountered: