|
21 | 21 | use cumulus_primitives_core::ParaId; |
22 | 22 | use sc_service::ChainType; |
23 | 23 | use shiden_runtime::{ |
24 | | - wasm_binary_unwrap, AccountId, AuraId, Balance, BlockRewardConfig, EVMConfig, |
25 | | - ParachainInfoConfig, Precompiles, RewardDistributionConfig, Signature, SystemConfig, SDN, |
| 24 | + wasm_binary_unwrap, AccountId, AuraId, Balance, DappStakingConfig, EVMConfig, InflationConfig, |
| 25 | + InflationParameters, ParachainInfoConfig, Precompiles, Signature, SystemConfig, TierThreshold, |
| 26 | + SDN, |
26 | 27 | }; |
27 | 28 | use sp_core::{sr25519, Pair, Public}; |
28 | 29 |
|
29 | 30 | use sp_runtime::{ |
30 | 31 | traits::{IdentifyAccount, Verify}, |
31 | | - Perbill, |
| 32 | + Permill, |
32 | 33 | }; |
33 | 34 |
|
34 | 35 | use super::{get_from_seed, Extensions}; |
@@ -111,17 +112,6 @@ fn make_genesis( |
111 | 112 | }, |
112 | 113 | parachain_info: ParachainInfoConfig { parachain_id }, |
113 | 114 | balances: shiden_runtime::BalancesConfig { balances }, |
114 | | - block_reward: BlockRewardConfig { |
115 | | - // Make sure sum is 100 |
116 | | - reward_config: RewardDistributionConfig { |
117 | | - treasury_percent: Perbill::from_percent(40), |
118 | | - base_staker_percent: Perbill::from_percent(25), |
119 | | - dapps_percent: Perbill::from_percent(25), |
120 | | - collators_percent: Perbill::from_percent(10), |
121 | | - adjustable_percent: Perbill::from_percent(0), |
122 | | - ideal_dapps_staking_tvl: Perbill::from_percent(0), |
123 | | - }, |
124 | | - }, |
125 | 115 | vesting: shiden_runtime::VestingConfig { vesting: vec![] }, |
126 | 116 | session: shiden_runtime::SessionConfig { |
127 | 117 | keys: authorities |
@@ -160,6 +150,39 @@ fn make_genesis( |
160 | 150 | assets: Default::default(), |
161 | 151 | parachain_system: Default::default(), |
162 | 152 | transaction_payment: Default::default(), |
| 153 | + dapp_staking: DappStakingConfig { |
| 154 | + reward_portion: vec![ |
| 155 | + Permill::from_percent(40), |
| 156 | + Permill::from_percent(30), |
| 157 | + Permill::from_percent(20), |
| 158 | + Permill::from_percent(10), |
| 159 | + ], |
| 160 | + slot_distribution: vec![ |
| 161 | + Permill::from_percent(10), |
| 162 | + Permill::from_percent(20), |
| 163 | + Permill::from_percent(30), |
| 164 | + Permill::from_percent(40), |
| 165 | + ], |
| 166 | + tier_thresholds: vec![ |
| 167 | + TierThreshold::DynamicTvlAmount { |
| 168 | + amount: 30000 * SDN, |
| 169 | + minimum_amount: 20000 * SDN, |
| 170 | + }, |
| 171 | + TierThreshold::DynamicTvlAmount { |
| 172 | + amount: 7500 * SDN, |
| 173 | + minimum_amount: 5000 * SDN, |
| 174 | + }, |
| 175 | + TierThreshold::DynamicTvlAmount { |
| 176 | + amount: 20000 * SDN, |
| 177 | + minimum_amount: 15000 * SDN, |
| 178 | + }, |
| 179 | + TierThreshold::FixedTvlAmount { amount: 5000 * SDN }, |
| 180 | + ], |
| 181 | + slots_per_tier: vec![10, 20, 30, 40], |
| 182 | + }, |
| 183 | + inflation: InflationConfig { |
| 184 | + params: InflationParameters::default(), |
| 185 | + }, |
163 | 186 | } |
164 | 187 | } |
165 | 188 |
|
|
0 commit comments