If no one voted and the MartenitsaVoting::announceWinner
is called, the owner of tokenId 0 will win.
If MartenitsaVoting::announceWinner
function is called and no one voted for a winner, winnerTokenId
will never update, and since it's default value is 0, the healthToken
is distribited to the owner of TokenId 0.
Owner of tokenId 0 will win if no one has voted.
Manual Review
Consider adding logic to prevent the win of tokenId 0 each time there are no votes.
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.