The setMonthlyEmission
function allows the contract controller to update the monthly emissions without any validation. This means an excessively high emission can be set, leading to unintended inflation or even breaking the emission schedule.
There is no validation to ensure that _monthlyEmission
does not exceed a maximum allowable limit (MAX_MONTHLY_EMISSION
).
Excessive emissions can drastically increase token supply, leading to hyperinflation and reducing token value.
Manual Review
Modify the function to enforce a maximum cap for MAX_MONTLY_EMISSION
:
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.