@haven-fi/solauto-sdk 1.0.428 → 1.0.429
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.
@@ -166,7 +166,7 @@ function getJupSwapRebalanceDetails(client, values, targetLiqUtilizationRateBps,
|
|
166
166
|
: (0, numberUtils_1.toBaseUnit)(usdToSwap / (0, priceUtils_1.safeGetPrice)(output.mint), output.decimals);
|
167
167
|
const exactOut = targetLiqUtilizationRateBps === 0 || values.repayingCloseToMaxLtv;
|
168
168
|
const exactIn = !exactOut;
|
169
|
-
const addPadding = targetLiqUtilizationRateBps === 0;
|
169
|
+
const addPadding = targetLiqUtilizationRateBps === 0 || exactOut;
|
170
170
|
return {
|
171
171
|
inputMint: (0, umi_web3js_adapters_1.toWeb3JsPublicKey)(input.mint),
|
172
172
|
outputMint: (0, umi_web3js_adapters_1.toWeb3JsPublicKey)(output.mint),
|
package/package.json
CHANGED
@@ -357,7 +357,7 @@ export function getJupSwapRebalanceDetails(
|
|
357
357
|
targetLiqUtilizationRateBps === 0 || values.repayingCloseToMaxLtv;
|
358
358
|
const exactIn = !exactOut;
|
359
359
|
|
360
|
-
const addPadding = targetLiqUtilizationRateBps === 0;
|
360
|
+
const addPadding = targetLiqUtilizationRateBps === 0 || exactOut;
|
361
361
|
|
362
362
|
return {
|
363
363
|
inputMint: toWeb3JsPublicKey(input.mint),
|