@haven-fi/solauto-sdk 1.0.525 → 1.0.526
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.
@@ -207,7 +207,7 @@ async function getJupSwapRebalanceDetails(client, values, flRequirements, target
|
|
207
207
|
: (0, numberUtils_1.toBaseUnit)(usdToSwap / (0, priceUtils_1.safeGetPrice)(output.mint), output.decimals);
|
208
208
|
const repaying = values.rebalanceDirection === generated_1.RebalanceDirection.Repay;
|
209
209
|
const flashLoanRepayFromDebt = repaying && flRequirements && flRequirements.useDebtLiquidity;
|
210
|
-
const exactOut =
|
210
|
+
const exactOut = flashLoanRepayFromDebt && !rebalanceToZero;
|
211
211
|
// || rebalanceToZero
|
212
212
|
const exactIn = !exactOut;
|
213
213
|
const jupSwapInput = {
|
package/package.json
CHANGED
@@ -426,7 +426,7 @@ export async function getJupSwapRebalanceDetails(
|
|
426
426
|
const flashLoanRepayFromDebt =
|
427
427
|
repaying && flRequirements && flRequirements.useDebtLiquidity;
|
428
428
|
|
429
|
-
const exactOut =
|
429
|
+
const exactOut = flashLoanRepayFromDebt && !rebalanceToZero;
|
430
430
|
// || rebalanceToZero
|
431
431
|
const exactIn = !exactOut;
|
432
432
|
|