Hunt prep
Before you test Yieldoor
What 17 disclosed reports say about Yieldoor: what was found and paid, what was fixed, and where it may be worth looking next.
- with a public bounty
- 0
- median public bounty
- –
- highest public bounty
- –
Gaps worth testing
Not written yet for this program. The numbers below are up to date.
What was found and what it paid
Public bounties only; many reports disclose without the amount.
| Class | Reports | Paid | Median | Highest | In all |
|---|---|---|---|---|---|
| Business logic lesson | 14 | 0 | – | – | $0 |
| DoS lesson | 2 | 0 | – | – | $0 |
| Smart contracts lesson | 1 | 0 | – | – | $0 |
What was fixed
All reportsThe newest fixes, in our words. A fixed bug is not worth re-reporting, but a sibling feature, an older API version or a regression may be.
-
Locked funds due to underflow in withdrawal
The code should be fixed by replacing amountOut0 with amountOut1 in the ternary operator for the token1 branch.
Disclosed
-
Insufficient Decimal
The report suggests increasing the decimal precision used for the collateral so small interest amounts are not truncated away.
Disclosed
-
`Vault::withdraw()` withdraws too much liquidity leading to idle capital and loss of fees
Reduce the shares to withdraw from the strategy by the liquidity already available (idle).
Disclosed
-
Strategy main ticks are not symmetric when the tick spacing is one due to incorrect isLowerSided inequality
The comparison should be changed to less-than-or-equal so ticks are classified correctly.
Disclosed
-
Incorrect tick parameter in collectFees() function leads to loss of vesting position fees or possible complete protocol lockup
The parameter in the fee collection call should be corrected to use the upper tick of the vesting position.
Disclosed
-
Base calculation in `Leverager::isLiquidateable()` is incorrect as the max leverage may be smaller
The two max leverage values should be compared and the smallest used, as that is the actual maximum leverage allowed in the Leverager.
Disclosed
-
Integer overflow in observation index calculation leads to denial of service
Cast observationCardinality to uint32 before the addition to prevent overflow.
Disclosed
-
Liquidation fee will not be claimed due to incorrect decimal handling
The calculation should divide by 10 raised to the token's decimals instead of the decimal count.
Disclosed
-
Contradiction between high-leverage and liquidation check of position
The `positionLeverage` check logic or the `isLiquidateable` function logic should be updated to resolve the contradiction.
Disclosed
-
Strategy main ticks are set according to the tick in slot0, leading to incorrect allocation and loss of funds
The tick should be derived from the sqrtPrice and the position ticks set according to it.
Disclosed
-
Uninitialized feeRecipient in Leverager.sol
Initialise feeRecipient in the constructor and add a function to update it in the future.
Disclosed
-
`ReserveLogic::_updateIndexes()` assumes the utilization rate was constant the whole time when calculating the new borrows
Implement a closed formula that calculates the new borrows and utilization rate correctly.
Disclosed
-
`Vault::_calcDeposit()` will overflow for low priced tokens
Implement precision downscaling in intermediate calculations to prevent overflow.
Disclosed
-
Incorrect modulo calculation in secondary position ticks leads to active position and division by zero
Add the same modulo correction as in `_setMainTicks` to handle negative ticks.
Disclosed
-
`Leverager::deposit`, does not support multi-hop swaps with `exactOutput`
The path should be updated by assigning the result of skipToken back to path, as shown in the mitigation diff.
Disclosed