Wrong update of the userRewards[user]
mapping will lead to users receiving less rewards in FeeCollector
. This is due to the mapping update with the totalDistributed
variable as seen right here:
updating the userRewards[user]
with totalDistributed
is unreasonable because the user gets just a share of the totalDistributed
, meaning he won't be able to get rewards for very long time until the shares he should receive exceed the mapping, and even if they do, the user will receive way less rewards than he should
Users being practically robbed of their rewards
Manual Review
Instead of updating the mapping with totalDistributed
, update it with pendingReward
. This will keep the reward distribution fair
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.