mirror of
				https://github.com/Instadapp/dsa-connectors.git
				synced 2024-07-29 22:37:00 +00:00 
			
		
		
		
	Fixed uniswap v3 router test case
This commit is contained in:
		
							parent
							
								
									946503b531
								
							
						
					
					
						commit
						b74ae7b1ef
					
				|  | @ -93,10 +93,12 @@ describe("Auto Router", function () { | |||
|       const DAI = new Token(1, sellTokenAddress, sellTokenDecimals); | ||||
|       const USDC = new Token(1, buyTokenAddress, buyTokenDecimals); | ||||
|       const daiAmount = CurrencyAmount.fromRawAmount(DAI, srcAmount); | ||||
|       const route = await router.route(daiAmount, USDC, TradeType.EXACT_OUTPUT, { | ||||
| 
 | ||||
|       const deadline = 1696000000 // Fri Sep 29 2023 15:06:40 GMT+0000
 | ||||
|       const route = await router.route(daiAmount, USDC, TradeType.EXACT_INPUT, { | ||||
|         recipient: dsaWallet0.address, | ||||
|         slippageTolerance: new Percent(5, 100), | ||||
|         deadline: 100 | ||||
|         deadline | ||||
|       }); | ||||
|       console.log(route); | ||||
|       const calldata = route?.methodParameters?.calldata; | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 Thrilok Kumar
						Thrilok Kumar