@haven-fi/solauto-sdk 1.0.181 → 1.0.182
Sign up to get free protection for your applications and to get access to all the features.
@@ -42,7 +42,7 @@ async function getJupSwapTransaction(signer, swapDetails, attemptNum) {
|
|
42
42
|
if (swapDetails.exactOut) {
|
43
43
|
console.log(quoteResponse.inAmount);
|
44
44
|
quoteResponse.inAmount = (parseInt(quoteResponse.inAmount) +
|
45
|
-
parseInt(quoteResponse.inAmount) * (0, numberUtils_1.fromBps)(priceImpactBps)).toString();
|
45
|
+
Math.ceil(parseInt(quoteResponse.inAmount) * (0, numberUtils_1.fromBps)(priceImpactBps))).toString();
|
46
46
|
console.log(quoteResponse.inAmount);
|
47
47
|
}
|
48
48
|
console.log("Getting jup instructions...");
|
package/package.json
CHANGED
@@ -85,7 +85,7 @@ export async function getJupSwapTransaction(
|
|
85
85
|
console.log(quoteResponse.inAmount);
|
86
86
|
quoteResponse.inAmount = (
|
87
87
|
parseInt(quoteResponse.inAmount) +
|
88
|
-
parseInt(quoteResponse.inAmount) * fromBps(priceImpactBps)
|
88
|
+
Math.ceil(parseInt(quoteResponse.inAmount) * fromBps(priceImpactBps))
|
89
89
|
).toString();
|
90
90
|
console.log(quoteResponse.inAmount);
|
91
91
|
}
|