@haven-fi/solauto-sdk 1.0.425 → 1.0.426
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -34,7 +34,7 @@ async function getJupSwapTransaction(signer, swapDetails, attemptNum) {
|
|
34
34
|
: swapDetails.exactIn
|
35
35
|
? "ExactIn"
|
36
36
|
: undefined,
|
37
|
-
slippageBps: memecoinSwap ? 500 :
|
37
|
+
slippageBps: memecoinSwap ? 500 : 300,
|
38
38
|
maxAccounts: !swapDetails.exactOut ? 45 : undefined,
|
39
39
|
}), 4, 200);
|
40
40
|
const priceImpactBps = Math.round((0, numberUtils_1.toBps)(parseFloat(quoteResponse.priceImpactPct))) + 1;
|
@@ -171,7 +171,7 @@ function getJupSwapRebalanceDetails(client, values, targetLiqUtilizationRateBps,
|
|
171
171
|
inputMint: (0, umi_web3js_adapters_1.toWeb3JsPublicKey)(input.mint),
|
172
172
|
outputMint: (0, umi_web3js_adapters_1.toWeb3JsPublicKey)(output.mint),
|
173
173
|
destinationWallet: client.solautoPosition,
|
174
|
-
slippageIncFactor:
|
174
|
+
slippageIncFactor: 0.5 + (attemptNum ?? 0) * 0.25,
|
175
175
|
amount: exactOut ? outputAmount : inputAmount,
|
176
176
|
exactIn: exactIn,
|
177
177
|
exactOut: exactOut,
|
package/package.json
CHANGED
@@ -363,7 +363,7 @@ export function getJupSwapRebalanceDetails(
|
|
363
363
|
inputMint: toWeb3JsPublicKey(input.mint),
|
364
364
|
outputMint: toWeb3JsPublicKey(output.mint),
|
365
365
|
destinationWallet: client.solautoPosition,
|
366
|
-
slippageIncFactor:
|
366
|
+
slippageIncFactor: 0.5 + (attemptNum ?? 0) * 0.25,
|
367
367
|
amount: exactOut ? outputAmount : inputAmount,
|
368
368
|
exactIn: exactIn,
|
369
369
|
exactOut: exactOut,
|