feat: early return in usv4 swap encoder for second swap, add utils

This commit is contained in:
royvardhan
2025-02-19 21:42:13 +05:30
parent 5e9b38876e
commit f7ddace559
3 changed files with 51 additions and 62 deletions

View File

@@ -197,7 +197,7 @@ contract UniswapV4ExecutorTest is Test, Constants {
}
function testMultipleSwapIntegration() public {
// USDE -> USDT -> WBTC ->
// USDE -> USDT -> WBTC
// Generated by the Tycho swap encoder - test_encode_uniswap_v4_combined
bytes memory protocolData =
hex"4c9edd5852cd905f086c759e8383e09bff1e68b32260fac5e5542a773aa44fbcfedf7c193bc2c5990000000000000000000000000000000000000000000000000000000000000001015615deb798bb3e4dfa0139dfa1b3d433cc23b72f91dd7346dac17f958d2ee523a2206206994597c13d831ec70000640000012260fac5e5542a773aa44fbcfedf7c193bc2c599000bb800003c";