Skip to content

Commit

Permalink
Update min_position_notional_liquidated to 1000 USDC (#645)
Browse files Browse the repository at this point in the history
* Update liquidations_config.position_block_limits.min_position_notional_liquidated to 1000 USDC

* regenerate sample for clean diff

---------

Co-authored-by: Teddy Ding <[email protected]>
  • Loading branch information
lucas-dydx and teddyding authored Oct 18, 2023
1 parent 915b3f8 commit d8a5156
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion protocol/scripts/genesis/sample_pregenesis.json
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion protocol/testing/genesis.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d8a5156

Please sign in to comment.