Submitted by unforgiven
Voter.sol#L315-L329
Voter.distribute() calls Gauge.deliverBribes() if claimable[_gauge] / DURATION > 0 was True and claimable[_gauge] shows base token rewards for gauge. Gauge.deliverBribes() calls Bribe.deliverReward() which transfers the rewards to Gauge. so for Bribe rewards to been transferred and distributed claimable[_gauge] / DURATION > 0 most be True and if there was some new rewards in Bribe and that condition is not True then those rewards will stuck in Bribe contract.
This is Voter.distribute() code:
As you can see IGauge(_gauge).deliverBribes();  is inside and if which checks _claimable / DURATION > 0 for that Gauge. Bribe is transferring rewards in Bribe.deliverReward() which is called by Gauge.deliverBribes() and it is called by Voter.distribute() if some base token claimable amount of that Gauge is bigger than DURATION, so if this condition isnt true, then rewards in Bribe for that epoch will stuck in Bribe.
Voter.distribute() can be called multiple times in each time claimable[_gauge] will set to 0 so if Bribe rewards was after that call then those rewards will stuck in Bribe for sure.
VIM
Move the line IGauge(_gauge).deliverBribes(); out of If in Voter.distribute().
pooltypes (Velodrome) disputed
Alex the Entreprenerd (judge) invalidated and commented:
Alex the Entreprenerd (judge) set severity to Medium and commented:
