@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 = false;
210
+ const exactOut = flashLoanRepayFromDebt && !rebalanceToZero;
211
211
  // || rebalanceToZero
212
212
  const exactIn = !exactOut;
213
213
  const jupSwapInput = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@haven-fi/solauto-sdk",
3
- "version": "1.0.525",
3
+ "version": "1.0.526",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "description": "Typescript SDK for the Solauto program on the Solana blockchain",
@@ -426,7 +426,7 @@ export async function getJupSwapRebalanceDetails(
426
426
  const flashLoanRepayFromDebt =
427
427
  repaying && flRequirements && flRequirements.useDebtLiquidity;
428
428
 
429
- const exactOut = false;
429
+ const exactOut = flashLoanRepayFromDebt && !rebalanceToZero;
430
430
  // || rebalanceToZero
431
431
  const exactIn = !exactOut;
432
432