FeeCollector is used totalDistributed
to store previous all distrubuted reward token amount. But in _calculatePendingRewards
function , totalDistributed
is used to calculate share amount which caused an issue.
_calculatePendingRewards function is used totalDistributed
to calculate share amount. But it should be used new reward amount to be distributed instead of historical total distributed amount.
Due to this , later(lets say after few years later) user who lock token on veRAACToken has voting power so he is able to claim large amount of reward token which already distributed , since during this whole duration totalDistributed
is increased .
Later user who lock funds on veRAACToken contract able to claim previous rewards.
Manual Review
Calculate the share value based on current reward amount to be distributed rather historial total one.
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.