After the voting period is over and the winner has been announced, the voteCount carries on to the next Voting period.
After the duration
of MartenitsaVoting
has been reached and MartenitsaVoting::announceWinner
has been called by the owner, the voteCounts
mapping is not reseted, therefor, it carries on to the next after startVoting
is called. This could make the voting system irrelevant in the future, as the same tokens, will always have the upper hand.
##Proof of Code
You may add the next code to MartenitsaVoting.t
to corroborate the issue:
Medium risk, as this issue becomes more important as more voting periods are performed, and may discourage users from voting
Manual review
You made add the next line of code at the end of MartenitsaVoting::announceWinner
or a the beggining of MartenitsaVoting::startVoting
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.