From 5387f676dd3ad74659456b7c028b2f76647626a3 Mon Sep 17 00:00:00 2001 From: Teddy Ding Date: Wed, 18 Oct 2023 10:51:34 -0400 Subject: [PATCH] update base position notional in genesis.sh (#640) (#653) * update base position notional in genesis.sh * adding updated sample_pregenesis.json * regenerate sample --------- Co-authored-by: yujin512 --- protocol/scripts/genesis/sample_pregenesis.json | 4 ++-- protocol/testing/genesis.sh | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/protocol/scripts/genesis/sample_pregenesis.json b/protocol/scripts/genesis/sample_pregenesis.json index 61941e4b14..2319425221 100644 --- a/protocol/scripts/genesis/sample_pregenesis.json +++ b/protocol/scripts/genesis/sample_pregenesis.json @@ -819,7 +819,7 @@ "name": "Large-Cap" }, { - "base_position_notional": 1000000000, + "base_position_notional": 250000000000, "id": 1, "impact_notional": 5000000000, "initial_margin_ppm": 100000, @@ -827,7 +827,7 @@ "name": "Mid-Cap" }, { - "base_position_notional": 1000000000, + "base_position_notional": 100000000000, "id": 2, "impact_notional": 2500000000, "initial_margin_ppm": 200000, diff --git a/protocol/testing/genesis.sh b/protocol/testing/genesis.sh index e944d0817d..41b8d076be 100755 --- a/protocol/testing/genesis.sh +++ b/protocol/testing/genesis.sh @@ -118,7 +118,7 @@ function edit_genesis() { dasel put -t string -f "$GENESIS" '.app_state.perpetuals.liquidity_tiers.[1].name' -v 'Mid-Cap' dasel put -t int -f "$GENESIS" '.app_state.perpetuals.liquidity_tiers.[1].initial_margin_ppm' -v '100000' # 10% dasel put -t int -f "$GENESIS" '.app_state.perpetuals.liquidity_tiers.[1].maintenance_fraction_ppm' -v '500000' # 50% of IM - dasel put -t int -f "$GENESIS" '.app_state.perpetuals.liquidity_tiers.[1].base_position_notional' -v '1000000000' # 1_000 USDC + dasel put -t int -f "$GENESIS" '.app_state.perpetuals.liquidity_tiers.[1].base_position_notional' -v '250000000000' # 250_000 USDC dasel put -t int -f "$GENESIS" '.app_state.perpetuals.liquidity_tiers.[1].impact_notional' -v '5000000000' # 5_000 USDC (500 USDC / 10%) # Liquidity Tier: Long-Tail @@ -127,7 +127,7 @@ function edit_genesis() { dasel put -t string -f "$GENESIS" '.app_state.perpetuals.liquidity_tiers.[2].name' -v 'Long-Tail' dasel put -t int -f "$GENESIS" '.app_state.perpetuals.liquidity_tiers.[2].initial_margin_ppm' -v '200000' # 20% dasel put -t int -f "$GENESIS" '.app_state.perpetuals.liquidity_tiers.[2].maintenance_fraction_ppm' -v '500000' # 50% of IM - dasel put -t int -f "$GENESIS" '.app_state.perpetuals.liquidity_tiers.[2].base_position_notional' -v '1000000000' # 1_000 USDC + dasel put -t int -f "$GENESIS" '.app_state.perpetuals.liquidity_tiers.[2].base_position_notional' -v '100000000000' # 100_000 USDC dasel put -t int -f "$GENESIS" '.app_state.perpetuals.liquidity_tiers.[2].impact_notional' -v '2500000000' # 2_500 USDC (500 USDC / 20%) # Liquidity Tier: Safety