Staking participants could irrecoverably lose part of their reward.
When a user decides to stake (make a deposit), the total reward that the existing staking participants are supposed to earn is supposed to be calculated based on the total staked token (TKN) balance before the new deposit is added but that is not the case. It is currently calculated based on the new TKN balance (after deposit) which dilutes the reward that the existing participants would have otherwise received.
Staking rewards would be lost
Foundry and the fear of losing my money
Make a call to the update function as the first step in the deposit function before any other action so that existing rewards are calculated first.
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.