File tree Expand file tree Collapse file tree 4 files changed +7
-2
lines changed Expand file tree Collapse file tree 4 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -78,6 +78,9 @@ Note that the [sync client](https://github.com/InjectiveLabs/sdk-python/blob/mas
78
78
79
79
80
80
### Changelogs
81
+ ** 0.5.7.2**
82
+ * Fix MsgInstantBinaryOptionsLaunch
83
+
81
84
** 0.5.7.1**
82
85
* Add optional argument to bypass ini file load in binary options
83
86
Original file line number Diff line number Diff line change @@ -46,6 +46,7 @@ async def main() -> None:
46
46
oracle_provider = "UFC" ,
47
47
oracle_type = "Provider" ,
48
48
quote_denom = "peggy0xdAC17F958D2ee523a2206206994597C13D831ec7" ,
49
+ quote_decimals = 6 ,
49
50
oracle_scale_factor = 6 ,
50
51
maker_fee_rate = 0.0005 , # 0.05%
51
52
taker_fee_rate = 0.0010 , # 0.10%
Original file line number Diff line number Diff line change @@ -468,6 +468,7 @@ def MsgInstantBinaryOptionsMarketLaunch(
468
468
expiration_timestamp : int ,
469
469
settlement_timestamp : int ,
470
470
quote_denom : str ,
471
+ quote_decimals : int ,
471
472
min_price_tick_size : float ,
472
473
min_quantity_tick_size : float ,
473
474
** kwargs
@@ -479,7 +480,7 @@ def MsgInstantBinaryOptionsMarketLaunch(
479
480
scaled_taker_fee_rate = Decimal ((taker_fee_rate * pow (10 , 18 )))
480
481
taker_fee_to_bytes = bytes (str (scaled_taker_fee_rate ), "utf-8" )
481
482
482
- scaled_min_price_tick_size = Decimal ((min_price_tick_size * pow (10 , 18 )))
483
+ scaled_min_price_tick_size = Decimal ((min_price_tick_size * pow (10 , quote_decimals + 18 )))
483
484
min_price_to_bytes = bytes (str (scaled_min_price_tick_size ), "utf-8" )
484
485
485
486
scaled_min_quantity_tick_size = Decimal ((min_quantity_tick_size * pow (10 , 18 )))
Original file line number Diff line number Diff line change 17
17
EMAIL = "achilleas@injectivelabs.com"
18
18
AUTHOR = "Injective Labs"
19
19
REQUIRES_PYTHON = ">=3.7.0"
20
- VERSION = "0.5.7.1 "
20
+ VERSION = "0.5.7.2 "
21
21
22
22
REQUIRED = [
23
23
"grpcio" ,
You can’t perform that action at this time.
0 commit comments