The setWeeklyEmission function allows the controller to set a new weekly emission rate. However, there is no validation to ensure that _weeklyEmission does not exceed a predefined MAX_WEEKLY_EMISSION limit, potentially allowing an excessively large emission rate.
The function setWeeklyEmission accepts _weeklyEmission as a parameter and directly assigns it to periodState.emission without any upper limit checks.
This could lead to unintended consequences, such as excessive token emissions that could disrupt the system’s economic balance.
Inflation risk: Without an upper bound, a large emission value could cause excessive token inflation, reducing token value.
System instability: If emissions are set too high, it could lead to unintended reward distributions, breaking incentive mechanisms.
Manual code review
Introduce a check to ensure _weeklyEmission does not exceed a predefined 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.