File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed
Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -46,6 +46,7 @@ async def main() -> None:
4646 oracle_provider = "UFC" ,
4747 oracle_type = "Provider" ,
4848 quote_denom = "peggy0xdAC17F958D2ee523a2206206994597C13D831ec7" ,
49+ quote_decimals = 6 ,
4950 oracle_scale_factor = 6 ,
5051 maker_fee_rate = 0.0005 , # 0.05%
5152 taker_fee_rate = 0.0010 , # 0.10%
Original file line number Diff line number Diff line change @@ -468,6 +468,7 @@ def MsgInstantBinaryOptionsMarketLaunch(
468468 expiration_timestamp : int ,
469469 settlement_timestamp : int ,
470470 quote_denom : str ,
471+ quote_decimals : int ,
471472 min_price_tick_size : float ,
472473 min_quantity_tick_size : float ,
473474 ** kwargs
@@ -479,7 +480,7 @@ def MsgInstantBinaryOptionsMarketLaunch(
479480 scaled_taker_fee_rate = Decimal ((taker_fee_rate * pow (10 , 18 )))
480481 taker_fee_to_bytes = bytes (str (scaled_taker_fee_rate ), "utf-8" )
481482
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 )))
483484 min_price_to_bytes = bytes (str (scaled_min_price_tick_size ), "utf-8" )
484485
485486 scaled_min_quantity_tick_size = Decimal ((min_quantity_tick_size * pow (10 , 18 )))
You can’t perform that action at this time.
0 commit comments