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.
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.
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.
Manual code review
Introduce a validation check to ensure that _monthlyEmission does not exceed a predefined maximum limit (MAX_MONTHLY_EMISSION):
This change ensures that emissions remain within a controlled and predictable range, preventing potential economic issues.
The contest is live. Earn rewards by submitting a finding.
This is your time to appeal against judgements on your submissions.
Appeals are being carefully reviewed by our judges.