Core Contracts

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

Uncapped Monthly Emission

Summary

The setMonthlyEmission function allows the controller to update the monthly emission amount. However, it does not impose a maximum limit on the emission amount, potentially allowing an excessively high value to be set.

Vulnerability Details

The function lacks a check to ensure that _monthlyEmission does not exceed a predefined MAX_MONTHLY_EMISSION. Without this validation, the emission value could be set to an arbitrarily high amount, which may lead to economic imbalances in the system.

function setMonthlyEmission(uint256 _monthlyEmission) external onlyController {
periodState.emission = _monthlyEmission;
emit EmissionUpdated(_monthlyEmission);
}

Impact

If an excessively high emission value is set, it could result in inflationary effects, diminishing the value of the distributed tokens and leading to unintended economic consequences for stakeholders.

Tools Used

  • Manual code review

Recommendations

Introduce a validation check to ensure that _monthlyEmission does not exceed a predefined maximum limit (MAX_MONTHLY_EMISSION):

function setMonthlyEmission(uint256 _monthlyEmission) external onlyController {
require(_monthlyEmission <= MAX_MONTHLY_EMISSION, "Exceeds maximum allowed emission");
periodState.emission = _monthlyEmission;
emit EmissionUpdated(_monthlyEmission);
}

This change ensures that emissions remain within a controlled and predictable range, preventing potential economic issues.

Updates

Lead Judging Commences

inallhonesty Lead Judge 7 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.

Give us feedback!