In the GaugeController.sol
, when a gauge is deactivated via toggleGaugeStatus()
, users' voting power remains locked in the gauge. This creates a state where users cannot reclaim or reallocate their voting power until an admin reactivates the gauge.
The toggleGaugeStatus
function has proper access control:
However, the function:
Only modifies the gauge's active status
Doesn't clean up existing votes in userGaugeVotes
Doesn't provide a mechanism for users to withdraw their votes
This creates a situation where:
Still contains vote allocations for deactivated gauges, but users can't modify these votes because:
Will revert for deactivated gauges.
Vote Power Lock: Users' voting power becomes locked in deactivated gauges
Reduced Participation: Users have less voting power available for active gauges
Admin Dependence: Users must wait for admin action to reclaim their voting power
Protocol Imbalance: The total active voting power in the system is reduced
Manual code review
Add vote withdrawal functionality for deactivated gauges:
Modify toggleGaugeStatus to handle existing votes:
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.