The vote()
function in GaugeController.sol lacks a validation check for gauge active status, allowing users to continue voting on gauges that the gauge admin has deactivated.
In GaugeController.sol, while the vote()
function performs several checks including gauge existence and weight validation, it fails to verify if the gauge is active:
The gauge admin can deactivate gauges using toggleGaugeStatus()
:
Users can waste their voting power on inactive gauges
Skews the weight distribution system
Creates inconsistency between active gauge list and votable gauges
May lead to unintended reward distributions if gauge is reactivated
Manual review
Add an active status 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.