depositsSinceLastUpdate represents the total number of tokens deposited into the staking pool since the last distribution, while sharesSinceLastUpdate indicates the total number of shares received for tokens deposited into the staking pool since the last distribution. When withdrawing, both the total number of deposited tokens and the total number of received shares are reduced.
In the withdraw function, the total number of deposited tokens and the total number of received shares are decreased. However, the total number of deposited tokens remains unchanged when making a withdrawal.
wrongly calculated sharesSinceLastUpdate
and depositsSinceLastUpdate
Manual code review
Reduce sharesSinceLastUpdate
and depositsSinceLastUpdate
when making a withdrawal.
The contest is live. Earn rewards by submitting a finding.
This is your time to appeal against judgements on your submissions.
Appeals are being carefully reviewed by our judges.