@haven-fi/solauto-sdk 1.0.482 → 1.0.483
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.
@@ -37,7 +37,7 @@ async function getJupSwapTransaction(signer, swapDetails, attemptNum) {
|
|
37
37
|
? "ExactIn"
|
38
38
|
: undefined,
|
39
39
|
slippageBps: memecoinSwap ? 500 : 200,
|
40
|
-
maxAccounts: !swapDetails.exactOut ? (usingPyth ?
|
40
|
+
maxAccounts: !swapDetails.exactOut ? (usingPyth ? 15 : 40) : undefined,
|
41
41
|
}), 4, 200);
|
42
42
|
const priceImpactBps = Math.round((0, numberUtils_1.toBps)(parseFloat(quoteResponse.priceImpactPct))) + 1;
|
43
43
|
const finalPriceSlippageBps = Math.round(Math.max(50, quoteResponse.slippageBps, priceImpactBps) *
|
package/package.json
CHANGED
@@ -76,7 +76,7 @@ export async function getJupSwapTransaction(
|
|
76
76
|
? "ExactIn"
|
77
77
|
: undefined,
|
78
78
|
slippageBps: memecoinSwap ? 500 : 200,
|
79
|
-
maxAccounts: !swapDetails.exactOut ? (usingPyth ?
|
79
|
+
maxAccounts: !swapDetails.exactOut ? (usingPyth ? 15 : 40) : undefined,
|
80
80
|
}),
|
81
81
|
4,
|
82
82
|
200
|
@@ -38,11 +38,7 @@ import {
|
|
38
38
|
retryWithExponentialBackoff,
|
39
39
|
} from "../../src/utils";
|
40
40
|
import { PriorityFeeSetting } from "../../src/types";
|
41
|
-
import {
|
42
|
-
buildIronforgeApiUrl,
|
43
|
-
fetchSolautoPosition,
|
44
|
-
fetchTokenPrices,
|
45
|
-
} from "../../dist";
|
41
|
+
import { buildIronforgeApiUrl, fetchSolautoPosition, fetchTokenPrices } from "../../dist";
|
46
42
|
import { safeFetchBank } from "../../src/marginfi-sdk";
|
47
43
|
|
48
44
|
export function getFlooredTimestampByMinute(
|
@@ -218,7 +214,7 @@ describe("Solauto Marginfi tests", async () => {
|
|
218
214
|
undefined,
|
219
215
|
!payForTransactions ? "only-simulate" : "normal",
|
220
216
|
PriorityFeeSetting.Min,
|
221
|
-
true
|
217
|
+
true
|
222
218
|
).clientSend(transactionItems);
|
223
219
|
|
224
220
|
console.log(statuses);
|