Skip to content

Commit

Permalink
fix: jupiter auto slippage (#8407)
Browse files Browse the repository at this point in the history
  • Loading branch information
NeOMakinG authored Dec 19, 2024
1 parent 81d34f5 commit a97c7b5
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ export const getJupiterPrice = ({
`?inputMint=${sourceAssetAddress}` +
`&outputMint=${destinationAssetAddress}` +
`&amount=${amount}` +
(slippageBps ? `&slippageBps=${slippageBps}` : `&autoSlippage=true`) +
(slippageBps ? `&slippageBps=${slippageBps}` : `&dynamicSlippage=true`) +
`&maxAccounts=${JUPITER_TRANSACTION_MAX_ACCOUNTS}` +
`&platformFeeBps=${commissionBps}`,
)
Expand Down

0 comments on commit a97c7b5

Please sign in to comment.