Beginner FriendlyFoundry
100 EXP
View results
Submission Details
Severity: low
Invalid

Constant DISALLOWED is never used

Summary

The smart contract defines three potential states for a voter: DISALLOWED, ALLOWED and VOTED. However, the first one is never used, nor there is any chance to set a voter's state to its value. Thus, the constant is useless, and could be removed from the codebase.

Vulnerability Details

There is no security issue. A gas optimization is possible, albeit negligible in terms of gas cost reduction, but it is best practice to prune useless parts of code from smart contracts, to improve readability and a general sense of security.

Impact

None

Tools Used

Slither

Recommendations

Remove the unused constant.

Updates

Lead Judging Commences

0xnevi Lead Judge
over 1 year ago
0xnevi Lead Judge over 1 year ago
Submission Judgement Published
Invalidated
Reason: Out of scope

Support

FAQs

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