The castVote() function in Governance.sol lacks proper state validation, allowing users to cast votes on proposals that are canceled, executed, or in other invalid states.
The current implementation only checks time bounds:
Users waste gas voting on canceled proposals or invalid states
Manual review
Add state validation using the existing state() function:
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.