Missing sanity checks in RWAGauge.setMonthlyEmission() and RAACGauge.setWeeklyEmission()
The setMonthlyEmission() function in RWAGauge.sol and the setWeeklyEmission() function in RAACGauge.sol do not enforce the maximum emission limits specified in the contracts. This could lead to setting emissions higher than intended, potentially causing token inflation or other unintended economic impacts.
In RWAGauge.sol, the setMonthlyEmission() function should ensure that the _monthlyEmission parameter is less than or equal to MAX_MONTHLY_EMISSION (2.5 million tokens). Similarly, in RAACGauge.sol, the setWeeklyEmission() function should ensure that the _weeklyEmission parameter is less than or equal to MAX_WEEKLY_EMISSION (500,000 tokens).
Inflation, token dilution: Without these checks, the emission values can be set to exceed the intended limits, which could lead to excessive token distribution and potential economic instability within the protocol.
Manual Review
Add conditional checks in both setMonthlyEmission() and setWeeklyEmission() to ensure that the emission values do not exceed their respective maximum limits. For example:
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.