After a user claims their rewards in the claimRewards()
function in the FeeCollector.sol, the userRewards[user
] is incorrectly updated to totalDistributed
instead of pendingRewards
.
totalDistributed
is the total rewards available for all the users, and userRewards[user]
is supposed to be the amount of rewards actually claimed by the users before. So because of this incorrect updation, the next time the user tries to claim the rewards they will receive less/0 rewards than they deserved.
This can be understood by seeing how the rewards are actually calculated:
Loss of user funds
manual review
update the value to pendingRewards
instead of totalDistributed
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.