@@ -97,12 +97,30 @@ export const SWAP_ERC20_V3: TestParams<SwapActionParams> = {
97
97
} ,
98
98
}
99
99
100
+ export const SWAP_V3_NEW_ROUTER : TestParams < SwapActionParams > = {
101
+ transaction : {
102
+ chainId : 8453 ,
103
+ from : '0x1c37e98c0f9e36be11c50d803cd3069defe212b8' ,
104
+ hash : '0xb02952ed6cfdba1cf0ab9f3a9f69edeed46b93f127ccb9ad9c8a34ae6fe1439b' ,
105
+ input :
106
+ '0x24856bc300000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000000108000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000001800000000000000000000000001c37e98c0f9e36be11c50d803cd3069defe212b800000000000000000000000000000000000000000000000000038d7ea4c6800000000000000000000000000000000000000000000000000028af6a78bd7e60ad00000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000020000000000000000000000004200000000000000000000000000000000000006000000000000000000000000dadc4f8e9d8d37294de0e02a2ce8cc0c90a4f6c20000000000000000000000000000000000000000000000000000000000000000000000000000000000000000dadc4f8e9d8d37294de0e02a2ce8cc0c90a4f6c2000000000000000000000000940181a94a35a4569e4529a3cdfb74e38fd986310000000000000000000000000000000000000000000000000000000000000000' ,
107
+ to : '0x6cb442acf35158d5eda88fe602221b67b400be3e' ,
108
+ value : '0' ,
109
+ } ,
110
+ params : {
111
+ chainId : 8453 ,
112
+ amountIn : GreaterThanOrEqual ( 1000000000000000n ) ,
113
+ tokenIn : '0x4200000000000000000000000000000000000006' ,
114
+ } ,
115
+ }
116
+
100
117
export const passingTestCases = [
101
118
createTestCase ( ETH_FOR_TOKENS , 'when using swapExactETHForTokens' ) ,
102
119
createTestCase ( TOKENS_FOR_ETH , 'when using swapExactTokensForETH' ) ,
103
120
createTestCase ( TOKENS_FOR_TOKENS , 'when using swapExactTokensForTokens' ) ,
104
121
createTestCase ( SWAP_ETH_V3 , 'when using ETH V3' ) ,
105
122
createTestCase ( SWAP_ERC20_V3 , 'when using ERC20 V3' ) ,
123
+ createTestCase ( SWAP_V3_NEW_ROUTER , 'when using new router' ) ,
106
124
createTestCase ( ETH_FOR_TOKENS , 'when using tokenIn is "Any"' , {
107
125
tokenIn : undefined ,
108
126
} ) ,
0 commit comments