Intent-Code Divergence
Medium
- Confidence
- 94% confidence
- Finding
- The ETH swap path appears functionally inconsistent: it sets tokenIn to WETH in exactInputSingle while also attaching native ETH as transaction value, but there is no explicit wrapping step or router method specialized for native ETH input. This can cause failed swaps, stuck user expectations, or accidental misrouting of funds depending on router behavior and configuration, which is especially risky in a script that directly signs and broadcasts transactions.
