Skip to content

Commit

Permalink
add comment for deadline
Browse files Browse the repository at this point in the history
  • Loading branch information
0xAlec committed Aug 6, 2024
1 parent 94d9a44 commit 94ccc3b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/swap/utils/processSwapTransaction.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand Down

0 comments on commit 94ccc3b

Please sign in to comment.