@haven-fi/solauto-sdk 1.0.497 → 1.0.498

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.
@@ -200,7 +200,7 @@ function getJupSwapRebalanceDetails(client, values, targetLiqUtilizationRateBps,
200
200
  const repaying = values.rebalanceDirection === generated_1.RebalanceDirection.Repay;
201
201
  const { requiresFlashLoan, useDebtLiquidity } = rebalanceRequiresFlashLoan(client, values);
202
202
  const flashLoanRepayFromDebt = repaying && requiresFlashLoan && useDebtLiquidity;
203
- const exactOut = (targetLiqUtilizationRateBps === 0 && highLiquidity && usingMajor) ||
203
+ const exactOut = (targetLiqUtilizationRateBps === 0 && !highLiquidity && usingMajor) ||
204
204
  // values.repayingCloseToMaxLtv ||
205
205
  flashLoanRepayFromDebt;
206
206
  const exactIn = !exactOut;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@haven-fi/solauto-sdk",
3
- "version": "1.0.497",
3
+ "version": "1.0.498",
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",
@@ -431,7 +431,7 @@ export function getJupSwapRebalanceDetails(
431
431
  repaying && requiresFlashLoan && useDebtLiquidity;
432
432
 
433
433
  const exactOut =
434
- (targetLiqUtilizationRateBps === 0 && highLiquidity && usingMajor) ||
434
+ (targetLiqUtilizationRateBps === 0 && !highLiquidity && usingMajor) ||
435
435
  // values.repayingCloseToMaxLtv ||
436
436
  flashLoanRepayFromDebt;
437
437
  const exactIn = !exactOut;