All reports
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

This report is already public and closed. Coin Buggie never publishes active or unpatched vulnerability data.