mediumLogic errorEVM-Solidity
LoopFi: `CDPVault.liquidatePosition()` does not scale `takeCollateral` with `tokenScale`; therefore, it might send the wrong amount of collateral to the liquidator when `tokenScale ! = 1 ether`
- Payout
- $0
- Protocol
- LoopFi
- Disclosed
- Feb 17, 2025
- Source
- code4rena
LoopFi's CDPVault stores each position's collateral in an internally scaled representation using a `tokenScale` factor derived from the collateral token's decimals, and the deposit and modifyCollateralAndDebt paths correctly multiply internal amounts by `token …
Similar reports
- No close matches yet.
References
- https://github.com/code-423n4/2024-07-loopfi-findings/issues/223
- https://github.com/code-423n4/2024-07-loopfi-findings
This report is already public and closed. Coin Buggie never publishes active or unpatched vulnerability data.