Core Contracts

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

Missing MAX_WEEKLY_EMISSION Cap Check in RAACGauge::setWeeklyEmission Function

Summary

The setWeeklyEmission() function allows the contract controller to update the weekly emissions without any validation. This means an excessively high emission can be set, leading to unintended inflation or even breaking the emission schedule.

Vulnerability Details

function setWeeklyEmission(uint256 _weeklyEmission) external onlyController {
periodState.emission = _weeklyEmission; // ❌ No cap on emission
emit EmissionUpdated(_weeklyEmission);
}

There is no validation to ensure that _weeklyEmission does not exceed a maximum allowable limit (MAX_WEEKLY_EMISSION).

Impact

Excessive emissions can drastically increase token supply, leading to hyperinflation and reducing token value.

Tools Used

Manual Review

Recommendations

Modify the function to enforce a maximum cap for MAX_WEEKLY_EMISSION:

Updates

Lead Judging Commences

inallhonesty Lead Judge 4 months ago
Submission Judgement Published
Invalidated
Reason: Non-acceptable severity

Support

FAQs

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