Skip to content

Commit

Permalink
updated default vault parameters (#1450) (#1453)
Browse files Browse the repository at this point in the history
(cherry picked from commit 3b3fb48)

Co-authored-by: sr33j <srijithpoduval@gmail.com>
  • Loading branch information
mergify[bot] and sr33j authored May 3, 2024
1 parent 2dc75fd commit a476a1d
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions protocol/app/testdata/default_genesis_state.json
Original file line number Diff line number Diff line change
Expand Up @@ -458,9 +458,9 @@
"vault": {
"params": {
"layers": 2,
"spread_min_ppm": 3000,
"spread_min_ppm": 10000,
"spread_buffer_ppm": 1500,
"skew_factor_ppm": 500000,
"skew_factor_ppm": 2000000,
"order_size_pct_ppm": 100000,
"order_expiration_seconds": 2,
"activation_threshold_quote_quantums": "1000000000"
Expand Down
4 changes: 2 additions & 2 deletions protocol/scripts/genesis/sample_pregenesis.json
Original file line number Diff line number Diff line change
Expand Up @@ -1812,9 +1812,9 @@
"layers": 2,
"order_expiration_seconds": 2,
"order_size_pct_ppm": 100000,
"skew_factor_ppm": 500000,
"skew_factor_ppm": 2000000,
"spread_buffer_ppm": 1500,
"spread_min_ppm": 3000
"spread_min_ppm": 10000
}
},
"vest": {
Expand Down
4 changes: 2 additions & 2 deletions protocol/testutil/constants/genesis.go
Original file line number Diff line number Diff line change
Expand Up @@ -1495,9 +1495,9 @@ const GenesisState = `{
"vault": {
"params": {
"layers": 2,
"spread_min_ppm": 3000,
"spread_min_ppm": 10000,
"spread_buffer_ppm": 1500,
"skew_factor_ppm": 500000,
"skew_factor_ppm": 2000000,
"order_size_pct_ppm": 100000,
"order_expiration_seconds": 2,
"activation_threshold_quote_quantums": "1000000000"
Expand Down
4 changes: 2 additions & 2 deletions protocol/x/vault/types/params.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ import (
func DefaultParams() Params {
return Params{
Layers: 2, // 2 layers
SpreadMinPpm: 3_000, // 30 bps
SpreadMinPpm: 10_000, // 100 bps
SpreadBufferPpm: 1_500, // 15 bps
SkewFactorPpm: 500_000, // 0.5
SkewFactorPpm: 2_000_000, // 2
OrderSizePctPpm: 100_000, // 10%
OrderExpirationSeconds: 2, // 2 seconds
ActivationThresholdQuoteQuantums: dtypes.NewInt(1_000_000_000), // 1_000 USDC
Expand Down

0 comments on commit a476a1d

Please sign in to comment.