Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion docs/100-swap-api/2-build-swap-transaction.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,9 @@ await fetch('https://api.jup.ag/swap/v1/swap', {
// ADDITIONAL PARAMETERS TO OPTIMIZE FOR TRANSACTION LANDING
// See next guide to optimize for transaction landing
dynamicComputeUnitLimit: true,
dynamicSlippage: true,
dynamicSlippage: {
maxBps: 300, // Make sure to set a reasonable cap here to prevent MEV
},
prioritizationFeeLamports: {
priorityLevelWithMaxLamports: {
maxLamports: 1000000,
Expand Down