Controller could set maxMonthlyEmission to be greater than 2.5M tokens.
The setMonthlyEmission() function in the RWAGauge contract does not currently validate the _monthlyEmission parameter to ensure it is below the intended maximum of 2.5 million tokens. This could lead to a situation where the monthly emission is set to a value higher than the intended cap, potentially affecting the tokenomics and distribution strategy of the system.
Controller could set value for monthlyEmission greater than the expected max value of 2.5M tokens.
Manual Review
Add a validation check in the setMonthlyEmission() function to ensure that _monthlyEmission does not exceed MAX_MONTHLY_EMISSION. This can be done using a simple require statement:
This will prevent setting the monthly emission to a value higher than the allowed maximum, ensuring the integrity of the emission limits.
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.