FeeCollector::_calculatePendingReward function is used in claimRewards function which is used to calculate the amount of reward tokens for the user. But the formula used is incorrect which is going to give 0 or very less rewards to the users.
In function FeeCollector::_calculatePendingReward(),
It gets the user voting power and the total voting power, the it calculates the share amount , and then return the share amount as given. Which is incorrect and it is going to return wrong reward shares amount,
The correct way to calculate share amount is
Less or 0 amount of reward tokens will be distributed loss for the users.
Manual review
Calculate share amount as
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.