feat: improve logic for liquidation price calc

This commit is contained in:
Matthias
2024-12-10 20:49:43 +01:00
parent 7552ad5edb
commit 097836d193
3 changed files with 20 additions and 3 deletions

View File

@@ -29,7 +29,7 @@ def test_update_liquidation_prices(mocker, margin_mode, dry_run):
assert trade_mock.set_liquidation_price.call_count == 1
assert wallets.get_total.call_count == (
assert wallets.get_collateral.call_count == (
0 if margin_mode == MarginMode.ISOLATED or not dry_run else 1
)