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.
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.
None
Slither
Remove the unused constant.
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.