Core Contracts

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

BaseGauge::setEmission can't be called because `GaugeController`doesn't implement functionality, blocking the protocol from update emissions

Summary

BaseGauge::setEmission function is created to allow reward emission resizing for a given period and can only be called by the GaugeController.

Vulnerability Details

GaugeControllerdoesn't implement any functionality to call a contract that inherits the BaseGaugeand triggers the setEmissionfunction.

- function setEmission(uint256 emission) external onlyController { <@
if (emission > periodState.emission) revert RewardCapExceeded();
periodState.emission = emission;
emit EmissionUpdated(emission);
}

Impact

The functionality will be blocked from usage and nobody will be able to call it.

Tools Used

Code review

Recommendations

Implement the needed functionality on GaugeControlleror refactor the BaseGauge::setEmissionfunction to allow other actors to call it.

Updates

Lead Judging Commences

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

`setWeeklyEmission`, `setBoostParameters`, `setEmission` and `setInitialWeight` cannot be called due to controller access control - not implemented in controller

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

`setWeeklyEmission`, `setBoostParameters`, `setEmission` and `setInitialWeight` cannot be called due to controller access control - not implemented in controller

Support

FAQs

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

Give us feedback!