Core Contracts

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

gauge’s periodState.emission can’t be updated.

Summary

gauge’s function setEmission(BaseGauge.sol) can only be called by the contract GaugeController, but there is no way to call function setEmission(gauge1 contract) in the contract GaugeController. as a result, an important property of the protocol can’t be increased/decreased/updated

Vulnerability Details

**1. Let’s assume a gauge’s(assume gauge1) periodState.emission = 250000e18(which is set during gauge1 contract creation time). **

2. now protocol wants to update/decrease gauge1 contract’s periodState.emission, so the function setEmission(gauge1 contract) should be called but there is no way to calls function setEmission(gauge1 contract) in the contract GaugeController because function setEmission(gauge1 contract) can only be called by the contract GaugeController.

**3. as a result, an important property of the protocol can’t be increased/decreased/updated. **

**
**

Impact

** an important property(periodState.emission) of the protocol can’t be increased/decreased/updated.**

Tools Used

manual review

Recommendations

create a function in the contract GaugeController to call gauge’s function setEmission(BaseGauge.sol).

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!