Core Contracts

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

No way to update the period in the BaseGuage.sol causing rewards DOS

Summary

It is expected in a guage that in 1 period only certain amount of reward can be added. Thus, if the period cant be updated to the next one, the rewards added will also have to stop after reaching the limit. The function to update the period is not callable by the guageController. And thus rewards are capped for a guage.

Vulnerability Details

UpdatePeriod() function has the onlyController modifier which limits its msg.sender to the guageController.sol. But there is no call to the updatePeriod function from the guageController. Thus this function cant be called.

function updatePeriod() external override onlyController {

Impact

Rewards are capped unintentionally in the guages.

Tools Used

manual review

Recommendations

Add a method to call the updatePeriod in the guageController.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

Appeal created

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

GaugeController::updatePeriod doesn't call the gauge's updatePeriod function, preventing periodState.distributed from resetting and eventually causing distributeRewards to permanently fail

Support

FAQs

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

Give us feedback!