Core Contracts

Regnum Aurum Acquisition Corp
HardhatReal World AssetsNFT
77,280 USDC
View results
Submission Details
Severity: low
Valid

Gauge Activity Validation Omission

Summary

The vote function lacks crucial validation for gauge activity status, allowing users to allocate voting power to potentially inactive or deprecated gauges. This oversight could compromise governance effectiveness and voting power allocation.

Vulnerability Details

The current vote(address gauge, uint256 weight) implementation validates:

  • Gauge existence through isGauge(gauge)

  • Weight threshold via weight > WEIGHT_PRECISION

  • Voter eligibility using veRAACToken.balanceOf(msg.sender) > 0

However, the function fails to verify the gauge's active status, potentially enabling:

  • Votes on deprecated gauges

  • Allocation to non-functional voting endpoints

  • Misuse of voting power

Impact

  • Possible vote allocation to ineligible gauges

  • Reduced governance system effectiveness

  • Potential exploitation of inactive gauge voting

Tools Used

  • Manual code review

Recommendations

  • Implement gauge activity verification:

    if (!isGaugeActive(gauge)) revert GaugeInactive();
  • Add dedicated isGaugeActive(gauge) function for status checks

  • Consider adding gauge lifecycle management mechanisms

Updates

Lead Judging Commences

inallhonesty Lead Judge 4 months ago
Submission Judgement Published
Validated
Assigned finding tags:

GaugeController::vote allows users to waste voting power on inactive gauges that don't receive rewards

inallhonesty Lead Judge 4 months ago
Submission Judgement Published
Validated
Assigned finding tags:

GaugeController::vote allows users to waste voting power on inactive gauges that don't receive rewards

Support

FAQs

Can't find an answer? Chat with us on Discord, Twitter or Linkedin.