mediumLogic errorEVM-Solidity
Tapioca: `leverageAmount` is incorrect in `SGLLeverage.sellCollateral` function due to calculation based on the new states of YieldBox after withdrawal
- Payout
- $0
- Protocol
- Tapioca
- Disclosed
- Mar 15, 2024
- Source
- sherlock
Tapioca's SGLLeverage.sellCollateral (and the parallel BBLeverage) forwards a collateral token amount to the leverage executor that is recomputed via YieldBox.toAmount only after the collateral shares have already been withdrawn. Because YieldBox mutates its t …
Similar reports
- No close matches yet.
References
This report is already public and closed. Coin Buggie never publishes active or unpatched vulnerability data.