You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
claimReward function if not delegated, doesn't checks if the voter has cast a vote or not.
If there is no delegation leader = _memberAddress and the if statement if (allVotes[voteId].dateAdd > (lastUpd + tokenHoldingTime) || leader == _memberAddress) will always return true.
Consequences :-
Any member if not delegated can claim the reward no matter if voted or not.
The pool will eventually drain as reward distribution exceeds the actual reward to be given.
The text was updated successfully, but these errors were encountered:
claimReward function if not delegated, doesn't checks if the voter has cast a vote or not.
If there is no delegation
leader = _memberAddress
and the if statementif (allVotes[voteId].dateAdd > (lastUpd + tokenHoldingTime) || leader == _memberAddress)
will always return true.Consequences :-
The text was updated successfully, but these errors were encountered: