President Elector

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

`VOTERS` array never being changed, could lead to the contract being of no use after a certain number of years

Summary

Since the voters cannot be changed, the users unable to vote cannot be replaced, and after a certain amount of time, there would be no users left who can vote. This would lead to the contract being unable to conduct elections.

Vulnerability Details

There should be a function to add new voters in order to make the contract feasible to use for an indefinite amount of time.

Impact

Contract would not be able to conduct any elections after a certain amount of time has passed.

Tools Used

Manual Review

Recommendations

Add a function to remove voters and another one to add new voters in order to fix this issue.

Updates

Lead Judging Commences

inallhonesty Lead Judge 9 months ago
Submission Judgement Published
Invalidated
Reason: Non-acceptable severity

Support

FAQs

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