In the contract contracts/core/governance/gauges/BaseGauge.sol function setDistributionCap()
The distributionCap variable is not used acorss the project.
This varialbe is referenced ONLY in the mocked comment code at file contracts/mocks/core/governance/gauges/MockBaseGauge.sol at Line 82
The mock file indicates the real notifyRewardAmount function within file contracts/core/governance/gauges/BaseGauge.sol possibly needs to have check the rewards cap with distributionCap before emit the RewardNotified event
This could cause incorrect RewardNotified event in the function notifyRewardAmount for the BaseGuage contract and incorrect rewards been sent.
Incorrect reward may cause further logic error or pool been drained
Manual review
Adding check to make sure the reward amount is less than the distributionCap
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.