Skip to content

Commit

Permalink
fix: increase jupiter swap priority fee multiplier
Browse files Browse the repository at this point in the history
  • Loading branch information
NickKelly1 committed Nov 21, 2024
1 parent 71749a2 commit 10dfeb0
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/swap/src/providers/jupiter/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -936,12 +936,16 @@ async function getJupiterSwap(
feeAccount: referrerATAPubkey?.toBase58(),
quoteResponse: quote,
destinationTokenAccount: dstATAPubkey?.toBase58(),
/** @see https://station.jup.ag/api-v6/post-swap */
prioritizationFeeLamports: {
/**
* The automatic fee seems low and frequently causes transactions
* to be dropped when traffic is high
*
* This number has been arbitrary selected from manual testing @ 2024-11-21
* where there's been a bunch of network activity causing dropped transactions
*/
autoMultiplier: 3,
autoMultiplier: 6,
},
};

Expand Down

0 comments on commit 10dfeb0

Please sign in to comment.