@haven-fi/solauto-sdk 1.0.55 → 1.0.57
Sign up to get free protection for your applications and to get access to all the features.
@@ -34,7 +34,7 @@ async function getJupSwapTransaction(signer, swapDetails, attemptNum) {
|
|
34
34
|
slippageBps: 10,
|
35
35
|
maxAccounts: 60,
|
36
36
|
}), 3);
|
37
|
-
const finalPriceSlippageBps = Math.round(Math.max(
|
37
|
+
const finalPriceSlippageBps = Math.round(Math.max(50, quoteResponse.slippageBps, Math.round((0, numberUtils_1.toBps)(parseFloat(quoteResponse.priceImpactPct))) + 1) *
|
38
38
|
(1 + (swapDetails.slippageBpsIncFactor ?? 0)));
|
39
39
|
quoteResponse.slippageBps = finalPriceSlippageBps;
|
40
40
|
console.log(quoteResponse);
|
package/package.json
CHANGED