Skip to content
Request an audit

‹ All findings

Swap amount can be 0 as it divides the balance by 2, DoSing ShadowStrategyGauge::collectGaugeRewards()

Low/InfoYieldoor Gauges·0xSimao · Leveraged yield farming · 12th May 2025L-5

Description:

The ShadowStrategyGauge::collectGaugeRewards() will be DoSed when the swapAmount balance is 1, as it tries to swap in an amount of swapAmount / 2, which reverts. This may make it easier for anybody to donate just 1 token of the reward tokens to intentionally make it revert. It can be fixed by donating more tokens, but it's still something to be avoided.

Recommended Mitigation:

Skip if the swap amount after dividing by 2 is null.