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.
There is no validation to ensure that _weeklyEmission
does not exceed a maximum allowable limit (MAX_WEEKLY_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_WEEKLY_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.