Skip to content

Commit dfc55a9

Browse files
committed
Update swapConfig.ts
1 parent 2e779ae commit dfc55a9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/swapConfig.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
export const swapConfig = {
2-
executeSwap: true, // Send tx when true, simulate tx when false
2+
executeSwap: false, // Send tx when true, simulate tx when false
33
useVersionedTransaction: true,
44
tokenAAmount: 0.01, // Swap 0.01 SOL for USDT in this example
55
tokenAAddress: "So11111111111111111111111111111111111111112", // Token to swap for the other, SOL in this case
66
tokenBAddress: "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v", // USDC address
7-
maxLamports: 1000000, // Max lamports allowed for fees
7+
maxLamports: 1500000, // Micro lamports for priority fee
88
direction: "in" as "in" | "out", // Swap direction: 'in' or 'out'
99
liquidityFile: "https://api.raydium.io/v2/sdk/liquidity/mainnet.json",
1010
maxRetries: 20,

0 commit comments

Comments
 (0)