<!-- canonical: https://0xsimao.com/findings/yieldoor-i-reward-liquid-impossible-rewards -->

# If any of the reward tokens doesn't have a liquid pool, it may be impossible to collect rewards

Low/Info · 0xSimao · Leveraged yield farming · 12th May 2025

Finding L-4 of the Yieldoor Gauges security review.

- Protocol: https://app.yieldoor.com/
- Report: /reports/yieldoor-i
- Source: https://github.com/0xSimao/audits/blob/main/0xSimao/2025-05-12-yieldoor-i.pdf

---

**Description:**

`ShadowStrategyGauge::collectGaugeRewards()` [swaps](https://github.com/spacegliderrrr/yieldoor/blob/master/src/instances/ShadowStrategyGauge.sol#L517-L520) all rewards to token0 and token1 through a pool. If this pool doesn't exist or has low liquidity, it may be impossible to swap and collect rewards.

**Recommended Mitigation:**

Add an alternative mechanism to handle this situation.

**0xSimao:**

Fixed in [#dc55cc7](https://github.com/0xsimao/2025-05-10-Yieldoor/commit/dc55cc7d9b6af68d07eceffd9e3d7c625355ac9b).

---

Related findings:

- [`rewardData.releaseRate` is incorrectly calculated on `RewardsController::config()` when `block.timestamp > start` and `rewardData.lastConfig != rewardData.start`](https://0xsimao.com/findings/exactly-protocol-update-staking-contract-reward-release-rewards-timestamp): Exactly Protocol Update - Staking Contract
- [Wrong reward distribution between early and late depositors because of the late `syncRewards()` call in the cycle, `syncReward()` logic should be executed in each withdraw or deposits (without reverting)](https://0xsimao.com/findings/gogopool-reward-rewards-withdraw-deposits): GoGoPool
- [feesAccrued or staker principal may be sent as rewards if rewardRate and emissionEnd are not properly calculated](https://0xsimao.com/findings/metazero-ii-fees-rewards-reward-properly): MetaZero Staking
- [Aave RewardsController can add Usdc to the rewards list and the strategy has no way to collect the rewards](https://0xsimao.com/findings/maple-finance-iv-aave-rewards-usdc-way): Maple Cash Strategies
