@haven-fi/solauto-sdk 1.0.441 → 1.0.443
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.
@@ -60,7 +60,7 @@ async function getJupSwapTransaction(signer, swapDetails, attemptNum) {
|
|
60
60
|
(0, generalUtils_1.consoleLog)("Increased price impact bps:", finalPriceImpactBps);
|
61
61
|
if (swapDetails.addPadding) {
|
62
62
|
(0, generalUtils_1.consoleLog)("Raw inAmount:", quoteResponse.inAmount);
|
63
|
-
const inc = Math.max((0, numberUtils_1.fromBps)(finalPriceImpactBps) * 1.1, (0, numberUtils_1.fromBps)(finalPriceSlippageBps) * 0.
|
63
|
+
const inc = Math.max((0, numberUtils_1.fromBps)(finalPriceImpactBps) * 1.1, (0, numberUtils_1.fromBps)(finalPriceSlippageBps) * 0.05);
|
64
64
|
(0, generalUtils_1.consoleLog)("Inc:", inc);
|
65
65
|
quoteResponse.inAmount = Math.round(parseInt(quoteResponse.inAmount) + parseInt(quoteResponse.inAmount) * inc).toString();
|
66
66
|
(0, generalUtils_1.consoleLog)("Increased inAmount:", quoteResponse.inAmount);
|
package/package.json
CHANGED
@@ -119,7 +119,7 @@ export async function getJupSwapTransaction(
|
|
119
119
|
consoleLog("Raw inAmount:", quoteResponse.inAmount);
|
120
120
|
const inc = Math.max(
|
121
121
|
fromBps(finalPriceImpactBps) * 1.1,
|
122
|
-
fromBps(finalPriceSlippageBps) * 0.
|
122
|
+
fromBps(finalPriceSlippageBps) * 0.05
|
123
123
|
);
|
124
124
|
consoleLog("Inc:", inc);
|
125
125
|
quoteResponse.inAmount = Math.round(
|