mediumLogic errorEVM-Solidity
Krystal DeFi: Wrong logic in `AUTO_COMPOUND` doesn't allow for swap to token1
- Payout
- $0
- Protocol
- Krystal DeFi
- Disclosed
- Jul 12, 2024
- Source
- code4rena
Krystal DeFi's AUTO_COMPOUND action branches on a guard condition, state.token0 == state.token1, that can never hold because a liquidity pool always has two distinct tokens. As a result, a position whose target token is token1 never takes the swap-and-add bran …
Similar reports
- No close matches yet.
References
- https://github.com/code-423n4/2024-06-krystal-defi-findings/issues/28
- https://github.com/code-423n4/2024-06-krystal-defi-findings
This report is already public and closed. Coin Buggie never publishes active or unpatched vulnerability data.