The setEmission
function in BaseGauge contains a logic error where it compares the new emission amount with the current emission instead of the maximum allowed emission (maxEmission
).
The issue is in the setEmission
function of the BaseGuage contract:
The function compares new emission with periodState.emission instead of maxEmission. So, even if the protocol wants to increase emissions, it can never be done. Since no new emission can be higher than the past ones because of the incorrect variable used.
The protocol will not be able to set the desired emission as trying to increase emissions from the periodState.emission will always revert. The protocol will not function as intended.
Manual review
Update the comparison to use maxEmission
:
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.