Merge pull request #8096 from raphaelstar/raphaelstar-patch-1

Make test for `None` explicit
This commit is contained in:
Matthias 2023-02-02 14:53:46 +01:00 committed by GitHub
commit 300e9acd37
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -2731,7 +2731,7 @@ class Exchange:
pos = positions[0]
isolated_liq = pos['liquidationPrice']
if isolated_liq:
if isolated_liq is not None:
buffer_amount = abs(open_rate - isolated_liq) * self.liquidation_buffer
isolated_liq = (
isolated_liq - buffer_amount