From a36fb2bb48c339f02cea4a2ef0005ceb9464516a Mon Sep 17 00:00:00 2001 From: Viki Val Date: Mon, 17 Feb 2025 16:59:53 +0100 Subject: [PATCH] :bug: :memo: dynamicSlippage is type of SwapRequestDynamicSlippage; --- docs/100-swap-api/2-build-swap-transaction.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/100-swap-api/2-build-swap-transaction.md b/docs/100-swap-api/2-build-swap-transaction.md index 771c49e5..2f970234 100644 --- a/docs/100-swap-api/2-build-swap-transaction.md +++ b/docs/100-swap-api/2-build-swap-transaction.md @@ -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,