From 560aeab144aeafdd40829f7e08b584e5b5b53e25 Mon Sep 17 00:00:00 2001 From: Achilleas Kalantzis Date: Tue, 13 Dec 2022 13:18:19 +0200 Subject: [PATCH] chore: release v0.5.9.3 --- pyinjective/utils.py | 2 +- setup.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pyinjective/utils.py b/pyinjective/utils.py index 142c5453..260bee2d 100644 --- a/pyinjective/utils.py +++ b/pyinjective/utils.py @@ -69,7 +69,7 @@ def binary_options_buy_margin_to_backend(price, quantity, denom) -> int: def binary_options_sell_margin_to_backend(price, quantity, denom) -> int: price_tick_size = Decimal(denom.min_price_tick_size) / pow(10, denom.quote) - margin = (1 - (Decimal(str(price)) * (Decimal(str(quantity))))) + margin = (1 - (Decimal(str(price)))) * (Decimal(str(quantity))) exchange_margin = floor_to(margin, float(price_tick_size)) * pow(10, 18 + denom.quote) return int(exchange_margin) diff --git a/setup.py b/setup.py index 8f57fd01..a08314cb 100755 --- a/setup.py +++ b/setup.py @@ -17,7 +17,7 @@ EMAIL = "achilleas@injectivelabs.com" AUTHOR = "Injective Labs" REQUIRES_PYTHON = ">=3.7.0" -VERSION = "0.5.9.2" +VERSION = "0.5.9.3" REQUIRED = [ "protobuf==3.19.1",