From 94ccc3b3b9b92f3abb57e8b5841734ce35e9fa9a Mon Sep 17 00:00:00 2001 From: Alec Chen <93971719+0xAlec@users.noreply.github.com> Date: Tue, 6 Aug 2024 12:32:58 -0700 Subject: [PATCH] add comment for `deadline` --- src/swap/utils/processSwapTransaction.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/swap/utils/processSwapTransaction.ts b/src/swap/utils/processSwapTransaction.ts index 20fc182a34..fce440ca66 100644 --- a/src/swap/utils/processSwapTransaction.ts +++ b/src/swap/utils/processSwapTransaction.ts @@ -68,7 +68,7 @@ export async function processSwapTransaction({ quote.from.address as Address, UNIVERSALROUTER_CONTRACT_ADDRESS, BigInt(quote.fromAmount), - 20_000_000_000_000, + 20_000_000_000_000, // The deadline where the approval is no longer valid - see https://docs.uniswap.org/contracts/permit2/reference/allowance-transfer ], }); const permitTxnHash = await sendTransactionAsync({