@haven-fi/solauto-sdk 1.0.731 → 1.0.732

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.
@@ -38,7 +38,7 @@ class RebalanceTxBuilder {
38
38
  const insufficientDebtLiquidity = debtAdjustmentUsd > debtLiquidityUsdAvailable * 0.95;
39
39
  let useDebtLiquidity = this.values.rebalanceDirection === generated_1.RebalanceDirection.Boost ||
40
40
  insufficientSupplyLiquidity ||
41
- (attemptNum > 2 &&
41
+ (attemptNum >= 2 &&
42
42
  debtLiquidityUsdAvailable > supplyLiquidityUsdAvailable * 5);
43
43
  if (useDebtLiquidity) {
44
44
  return !insufficientDebtLiquidity ? generated_1.TokenType.Debt : undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@haven-fi/solauto-sdk",
3
- "version": "1.0.731",
3
+ "version": "1.0.732",
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",
@@ -112,7 +112,7 @@ export class RebalanceTxBuilder {
112
112
  let useDebtLiquidity =
113
113
  this.values.rebalanceDirection === RebalanceDirection.Boost ||
114
114
  insufficientSupplyLiquidity ||
115
- (attemptNum > 2 &&
115
+ (attemptNum >= 2 &&
116
116
  debtLiquidityUsdAvailable > supplyLiquidityUsdAvailable * 5);
117
117
 
118
118
  if (useDebtLiquidity) {