Reward distribution is paused also when the contract is paused.
The distributeRewards can be called by anyone to distribute reward to the gauges
The issue with the implementation is that it contains a whenNotPaued modifier, meaning when the contract is paused, the function cannot be called.
This implementation however is faulty as pausing the contract means pausing further voting and adding new gauges, however already added gauges should not be stripped off their earned rewards.
This is because when the contract is paused, rewards can still accumulate but there'll be no way to distribute these rewards leading to them bieng stuck in the contract.
When the contract is paused, the reward distribution will not be possible even though rewards can accumulate when the contract is paused.
Manual review
Remove the whenNotPaused modifier.
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.