From d8a515635ac764a24137c09b19dcfdb86ec903c7 Mon Sep 17 00:00:00 2001 From: lucas-dydx <76970939+lucas-dydx@users.noreply.github.com> Date: Wed, 18 Oct 2023 10:10:29 -0400 Subject: [PATCH] Update `min_position_notional_liquidated` to 1000 USDC (#645) * Update liquidations_config.position_block_limits.min_position_notional_liquidated to 1000 USDC * regenerate sample for clean diff --------- Co-authored-by: Teddy Ding --- protocol/scripts/genesis/sample_pregenesis.json | 2 +- protocol/testing/genesis.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/protocol/scripts/genesis/sample_pregenesis.json b/protocol/scripts/genesis/sample_pregenesis.json index 77273d5801..1641e5de5e 100644 --- a/protocol/scripts/genesis/sample_pregenesis.json +++ b/protocol/scripts/genesis/sample_pregenesis.json @@ -513,7 +513,7 @@ "max_liquidation_fee_ppm": 15000, "position_block_limits": { "max_position_portion_liquidated_ppm": 100000, - "min_position_notional_liquidated": 1000 + "min_position_notional_liquidated": 1000000000 }, "subaccount_block_limits": { "max_notional_liquidated": 100000000000, diff --git a/protocol/testing/genesis.sh b/protocol/testing/genesis.sh index f98f5b9c8c..99a1c48e86 100755 --- a/protocol/testing/genesis.sh +++ b/protocol/testing/genesis.sh @@ -1333,7 +1333,7 @@ function edit_genesis() { # Liquidations dasel put -t int -f "$GENESIS" '.app_state.clob.liquidations_config.max_liquidation_fee_ppm' -v '15000' # 1.5% - dasel put -t int -f "$GENESIS" '.app_state.clob.liquidations_config.position_block_limits.min_position_notional_liquidated' -v '1000' + dasel put -t int -f "$GENESIS" '.app_state.clob.liquidations_config.position_block_limits.min_position_notional_liquidated' -v '1000000000' # 1_000 USDC dasel put -t int -f "$GENESIS" '.app_state.clob.liquidations_config.position_block_limits.max_position_portion_liquidated_ppm' -v '100000' # 10% dasel put -t int -f "$GENESIS" '.app_state.clob.liquidations_config.subaccount_block_limits.max_notional_liquidated' -v '100000000000' # 100_000 USDC dasel put -t int -f "$GENESIS" '.app_state.clob.liquidations_config.subaccount_block_limits.max_quantums_insurance_lost' -v '1000000000000' # 1_000_000 USDC