The GaugeController contract is responsible for distributing rewards to gauges. However, a critical bug prevents rewards from being properly distributed. Specifically, the GaugeController does not transfer reward tokens to the gauge before calling notifyRewardAmount(). As a result, the reward distribution fails and reverts due to an insufficient balance check.
The distributeRewards() function in GaugeController calls IGauge(gauge).notifyRewardAmount(reward) but does not transfer the reward tokens beforehand. This leads to a revert in notifyRewardAmount() due to the following check:
Since the reward tokens were never transferred, the balance remains zero, causing the function to revert.
https://github.com/Cyfrin/2025-02-raac/blob/89ccb062e2b175374d40d824263a4c0b601bcb7f/contracts/core/governance/gauges/GaugeController.sol#L323
No rewards are distributed to gauges, making the staking mechanism ineffective.
Manual code review
Modify distributeRewards() to send the reward to the gauge before calling notifyRewardAmount()
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.