Skip to content

Commit

Permalink
change max st open orders to 1000 (#563)
Browse files Browse the repository at this point in the history
  • Loading branch information
yang-dydx authored Oct 11, 2023
1 parent 0e99d3b commit 3b11170
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 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 @@ -475,7 +475,7 @@
"usd_tnc_required": "10000000000"
},
{
"limit": 200,
"limit": 1000,
"usd_tnc_required": "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 @@ -1366,7 +1366,7 @@ function edit_genesis() {
dasel put -t string -f "$GENESIS" '.app_state.clob.equity_tier_limit_config.short_term_order_equity_tiers.[4].usd_tnc_required' -v '10000000000'
# Max 200 open short term orders for $100,000 USDC TNC
dasel put -t json -f "$GENESIS" '.app_state.clob.equity_tier_limit_config.short_term_order_equity_tiers.[]' -v "{}"
dasel put -t int -f "$GENESIS" '.app_state.clob.equity_tier_limit_config.short_term_order_equity_tiers.[5].limit' -v '200'
dasel put -t int -f "$GENESIS" '.app_state.clob.equity_tier_limit_config.short_term_order_equity_tiers.[5].limit' -v '1000'
dasel put -t string -f "$GENESIS" '.app_state.clob.equity_tier_limit_config.short_term_order_equity_tiers.[5].usd_tnc_required' -v '100000000000'
# Max 0 open stateful orders for $0 USDC TNC
dasel put -t json -f "$GENESIS" '.app_state.clob.equity_tier_limit_config.stateful_order_equity_tiers.[]' -v "{}"
Expand Down
2 changes: 1 addition & 1 deletion protocol/testutil/constants/genesis.go
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ const GenesisState = `{
"usd_tnc_required": "10000"
},
{
"limit": 200,
"limit": 1000,
"usd_tnc_required": "100000"
}
],
Expand Down
2 changes: 1 addition & 1 deletion protocol/x/clob/genesis_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ func TestGenesis(t *testing.T) {
},
{
UsdTncRequired: dtypes.NewInt(100000),
Limit: 200,
Limit: 1000,
},
},
StatefulOrderEquityTiers: []types.EquityTierLimit{
Expand Down
6 changes: 3 additions & 3 deletions protocol/x/clob/module_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ func getValidGenesisStr() string {
gs += `"equity_tier_limit_config":{"short_term_order_equity_tiers":[{"limit":0,"usd_tnc_required":"0"},`
gs += `{"limit":1,"usd_tnc_required":"20"},{"limit":5,"usd_tnc_required":"100"},`
gs += `{"limit":10,"usd_tnc_required":"1000"},{"limit":100,"usd_tnc_required":"10000"},`
gs += `{"limit":200,"usd_tnc_required":"100000"}],"stateful_order_equity_tiers":[`
gs += `{"limit":1000,"usd_tnc_required":"100000"}],"stateful_order_equity_tiers":[`
gs += `{"limit":0,"usd_tnc_required":"0"},{"limit":1,"usd_tnc_required":"20"},`
gs += `{"limit":5,"usd_tnc_required":"100"},{"limit":10,"usd_tnc_required":"1000"},`
gs += `{"limit":100,"usd_tnc_required":"10000"},{"limit":200,"usd_tnc_required":"100000"}]}}`
Expand Down Expand Up @@ -400,7 +400,7 @@ func TestAppModule_InitExportGenesis(t *testing.T) {
},
{
UsdTncRequired: dtypes.NewInt(100000),
Limit: 200,
Limit: 1000,
},
},
StatefulOrderEquityTiers: []clob_types.EquityTierLimit{
Expand Down Expand Up @@ -450,7 +450,7 @@ func TestAppModule_InitExportGenesis(t *testing.T) {
expected += `"equity_tier_limit_config":{"short_term_order_equity_tiers":[{"limit":0,"usd_tnc_required":"0"},`
expected += `{"limit":1,"usd_tnc_required":"20"},{"limit":5,"usd_tnc_required":"100"},`
expected += `{"limit":10,"usd_tnc_required":"1000"},{"limit":100,"usd_tnc_required":"10000"},`
expected += `{"limit":200,"usd_tnc_required":"100000"}],"stateful_order_equity_tiers":[`
expected += `{"limit":1000,"usd_tnc_required":"100000"}],"stateful_order_equity_tiers":[`
expected += `{"limit":0,"usd_tnc_required":"0"},{"limit":1,"usd_tnc_required":"20"},`
expected += `{"limit":5,"usd_tnc_required":"100"},{"limit":10,"usd_tnc_required":"1000"},`
expected += `{"limit":100,"usd_tnc_required":"10000"},{"limit":200,"usd_tnc_required":"100000"}]}}`
Expand Down

0 comments on commit 3b11170

Please sign in to comment.