@haven-fi/solauto-sdk 1.0.110 → 1.0.111

Sign up to get free protection for your applications and to get access to all the features.
@@ -32,7 +32,7 @@ async function getJupSwapTransaction(signer, swapDetails, attemptNum) {
32
32
  ? "ExactIn"
33
33
  : undefined,
34
34
  slippageBps: 10,
35
- maxAccounts: 60,
35
+ maxAccounts: !swapDetails.exactOut ? 60 : undefined,
36
36
  }), 3);
37
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)));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@haven-fi/solauto-sdk",
3
- "version": "1.0.110",
3
+ "version": "1.0.111",
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",
@@ -66,7 +66,7 @@ export async function getJupSwapTransaction(
66
66
  ? "ExactIn"
67
67
  : undefined,
68
68
  slippageBps: 10,
69
- maxAccounts: 60,
69
+ maxAccounts: !swapDetails.exactOut ? 60 : undefined,
70
70
  }),
71
71
  3
72
72
  );