Skip to content

Commit 560aeab

Browse files
committed
chore: release v0.5.9.3
1 parent 0641bdf commit 560aeab

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pyinjective/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ def binary_options_buy_margin_to_backend(price, quantity, denom) -> int:
6969

7070
def binary_options_sell_margin_to_backend(price, quantity, denom) -> int:
7171
price_tick_size = Decimal(denom.min_price_tick_size) / pow(10, denom.quote)
72-
margin = (1 - (Decimal(str(price)) * (Decimal(str(quantity)))))
72+
margin = (1 - (Decimal(str(price)))) * (Decimal(str(quantity)))
7373
exchange_margin = floor_to(margin, float(price_tick_size)) * pow(10, 18 + denom.quote)
7474
return int(exchange_margin)
7575

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
EMAIL = "achilleas@injectivelabs.com"
1818
AUTHOR = "Injective Labs"
1919
REQUIRES_PYTHON = ">=3.7.0"
20-
VERSION = "0.5.9.2"
20+
VERSION = "0.5.9.3"
2121

2222
REQUIRED = [
2323
"protobuf==3.19.1",

0 commit comments

Comments
 (0)