Skip to content

Commit

Permalink
fixed liquidation test
Browse files Browse the repository at this point in the history
  • Loading branch information
poliwop committed Sep 20, 2024
1 parent c9b542f commit 758f27d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hydradx/tests/test_liquidations.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 758f27d

Please sign in to comment.