Rewards are sent out based on the total user balance regardless of the withdrawal size.
Every time withdraw is called in the stability pool, a call to calculateRaacRewards is made which takes only msg.sender as an input.
Reward calculation checks the size of the user deposit against all deposits and multiplies it by totalRewards. However this calculation assumes that the user is withdrawing their entire balance which is not the case. Users can withdraw 1 wei at a time and drain all rewards since it always assigns their entire balance.
Theft of funds
Rewrite calculateRaacRewards to perform the reward calculation against the tokens being withdrawn, not the entire balance
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.