From 758f27da489cda875fc60e726556a99986d33737 Mon Sep 17 00:00:00 2001 From: poliwop Date: Fri, 20 Sep 2024 15:16:46 -0500 Subject: [PATCH] fixed liquidation test --- hydradx/tests/test_liquidations.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hydradx/tests/test_liquidations.py b/hydradx/tests/test_liquidations.py index a7abe9f2..cc3a3892 100644 --- a/hydradx/tests/test_liquidations.py +++ b/hydradx/tests/test_liquidations.py @@ -713,7 +713,7 @@ def test_liquidate_against_omnipool_fuzz(collateral_amt1: float, ratio1: float, if cdp1.debt_amt == 0: # fully liquidated assert ratio1 >= full_liq_threshold elif cdp1.collateral_amt == 0: # fully liquidated, bad debt remaining - assert ratio1 > 1 + assert ratio1 > 1/(1 + mm.liquidation_penalty['DOT']) elif cdp1.debt_amt == debt_amt1: # not liquidated if ratio1 < liq_threshold: # 1. overcollateralized pass