test_get_liquidation_price/test_get_maintenance_ratio_and_amt_binance/fill_leverage_brackets/test_validate_trading_mode_and_collateral TODO comments

This commit is contained in:
Sam Germain
2022-01-14 06:58:32 -06:00
parent c2f9201512
commit 1f1ac8ce9d
4 changed files with 87 additions and 74 deletions

View File

@@ -156,7 +156,7 @@ class Binance(Exchange):
for [notional_floor, mm_ratio] in brkts:
amt = (
(
(float(notional_floor) * (float(mm_ratio)) - float(old_ratio))
(float(notional_floor) * (float(mm_ratio) - float(old_ratio)))
) + amt
) if old_ratio else 0.0
old_ratio = mm_ratio