The first depositor can manipulate the rewards and get more rewards than intended.
The first depositor can deposit 1 wei as the first transaction to bring the totalSupplyto 1. Then, the same depositor deposits a non-trivial amount of tokens inside. At the second deposit, updateReward()will be called again, this time totalSupplywill be 1.
The _rewardPerToken()earned will be higher than intended, which means that the first depositor can get a higher claimwhen his earnings is calculated.
Protocol will lose funds
Manual Review
Recommend adding a virtual supply to prevent 1 wei inflation attacks.
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.