@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 : 200,
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: 1 + (attemptNum ?? 0) * 0.25,
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@haven-fi/solauto-sdk",
3
- "version": "1.0.425",
3
+ "version": "1.0.426",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "description": "Typescript SDK for the Solauto program on the Solana blockchain",
@@ -71,7 +71,7 @@ export async function getJupSwapTransaction(
71
71
  : swapDetails.exactIn
72
72
  ? "ExactIn"
73
73
  : undefined,
74
- slippageBps: memecoinSwap ? 500 : 200,
74
+ slippageBps: memecoinSwap ? 500 : 300,
75
75
  maxAccounts: !swapDetails.exactOut ? 45 : undefined,
76
76
  }),
77
77
  4,
@@ -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: 1 + (attemptNum ?? 0) * 0.25,
366
+ slippageIncFactor: 0.5 + (attemptNum ?? 0) * 0.25,
367
367
  amount: exactOut ? outputAmount : inputAmount,
368
368
  exactIn: exactIn,
369
369
  exactOut: exactOut,