mediumLogic errorEVM-Solidity
Krystal DeFi: Swapping logic would be broken for some supported tokens
- Payout
- $0
- Protocol
- Krystal DeFi
- Disclosed
- Jul 12, 2024
- Source
- code4rena
Krystal's shared `_swap()` internal function approves the full input amount to an external router, executes the off-chain-encoded swap, then unconditionally resets the allowance to zero with `_safeApprove(tokenIn, swapRouter, 0)`. The protocol README explicitl …
Similar reports
- No close matches yet.
References
- https://github.com/code-423n4/2024-06-krystal-defi-findings/issues/10
- 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.