Skip to content

Latest commit

 

History

History
23 lines (20 loc) · 1.03 KB

Staking Before Initial notifyRewardAmount Can Lead to Disproportionate Rewards.md

File metadata and controls

23 lines (20 loc) · 1.03 KB

If a user successfully stakes an amount of UNI tokens before the function notifyRewardAmount() is called for the first time, their initial userRewardPerTokenPaid will be set to zero. The staker would be paid out funds greater than their share of the SNX rewards.

Recommendation:

We recommend preventing stake() from being called before notifyRewardAmount() is called for the first time.


Slide Screenshot

073.jpg


Slide Text

  • Sigma Prime Unipool Finding 2
  • Timing/Ordering
  • High Severity
  • Stake before Noitify -> More Rewards
  • Prevent stake() before notifyRewardAmount()

References


Tags