@t2000/sdk 0.16.24 → 0.16.26

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.
@@ -839,7 +839,7 @@ async function maxWithdrawAmount(client, addressOrKeypair) {
839
839
  maxAmount = Math.max(0, hf.supplied - hf.borrowed * MIN_HEALTH_FACTOR / ltv);
840
840
  }
841
841
  const remainingSupply = hf.supplied - maxAmount;
842
- const hfAfter = hf.borrowed > 0 ? remainingSupply / hf.borrowed : Infinity;
842
+ const hfAfter = hf.borrowed > 0 ? remainingSupply * ltv / hf.borrowed : Infinity;
843
843
  return { maxAmount, healthFactorAfter: hfAfter, currentHF: hf.healthFactor };
844
844
  }
845
845
  async function maxBorrowAmount(client, addressOrKeypair) {