The claimRewards() function is as follow -
_calculatePendingRewards(user) ->
userRewards[user] is wrongly updated to totalDistributed instead it should not updated to pendingReward
this will cause user reward to always get stuck as -
totalDistributed will always be greater than (totalDistributed * userVotingPower) / totalVotingPower;.
so, userRewards[user] > share will be the case everytime; in other words else condition i.e. share = 0 will always
executed.
Whenever user will call claimRewards() he will recive 0 reward.
The reason is incorrect updation of userRewards[user] to totalDistributed instead of pendingReward
totalDistributed has totally different purpose, and it's used to track historical distribution of reward to all users.
User will always recive 0 rewards.
Eye
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.