The vote()
function in GaugeController.sol lacks a check for gauge activity status, allowing users to waste voting power on inactive gauges.
The GaugeController.vote()
function only verifies if a gauge exists but not if it's active:
Each gauge has an isActive
boolean that can be toggled by admin:
Users can waste voting power on inactive gauges that won't receive rewards
Reduces governance effectiveness as votes get misallocated
Skews weight distribution in active gauges
Manual Review
Add activity check in the vote() 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.