@gearbox-protocol/sdk 3.0.0-next.229 → 3.0.0-next.230
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.
|
@@ -1625,14 +1625,14 @@ describe("CreditAccount getTimeToLiquidation test", () => {
|
|
|
1625
1625
|
healthFactor: 9000,
|
|
1626
1626
|
totalBorrowRate_debt: 250n,
|
|
1627
1627
|
});
|
|
1628
|
-
(0, chai_1.expect)(result).to.be.eq(
|
|
1628
|
+
(0, chai_1.expect)(result).to.be.eq(null);
|
|
1629
1629
|
});
|
|
1630
1630
|
it("should return 0 when br_debt === 0", () => {
|
|
1631
1631
|
const result = creditAccount_1.CreditAccountData.getTimeToLiquidation({
|
|
1632
1632
|
healthFactor: 9000,
|
|
1633
1633
|
totalBorrowRate_debt: 0n,
|
|
1634
1634
|
});
|
|
1635
|
-
(0, chai_1.expect)(result).to.be.eq(
|
|
1635
|
+
(0, chai_1.expect)(result).to.be.eq(null);
|
|
1636
1636
|
});
|
|
1637
1637
|
it("should calculate time to liquidation correctly", () => {
|
|
1638
1638
|
const result = creditAccount_1.CreditAccountData.getTimeToLiquidation({
|