President Elector

First Flight #24
Beginner FriendlyFoundry
100 EXP
View results
Submission Details
Severity: high
Invalid

The `RankedChoice.sol::selectPresident` function doesn't validate that voters have ranked

Description
The RankedChoice.sol::selectPresident function does not validate that voters have ranked their candidates before selecting the president. There should be at least a minimum number of votes to be able to elect a new president; it would not be a democratic vote if a new president can be elected with only one voter.

Impact
There is a possibility that a president can be elected with only one vote.

Recommended mitigation
Add a validation to ensure each voter or at least a minimum number of voters has ranked candidates before the selection process begins.

Updates

Lead Judging Commences

inallhonesty Lead Judge 12 months ago
Submission Judgement Published
Invalidated
Reason: Design choice

Support

FAQs

Can't find an answer? Chat with us on Discord, Twitter or Linkedin.