Skip to content

Commit

Permalink
Changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Dinonard committed Aug 28, 2024
1 parent 84efca9 commit 97458f8
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 40 deletions.
15 changes: 2 additions & 13 deletions runtime/astar/src/genesis_config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
use crate::*;
use astar_primitives::{evm::EVM_REVERT_CODE, genesis::GenesisAccount};

/// Get the default genesis config for the Astar runtime.
pub fn default_config(para_id: u32) -> serde_json::Value {
let alice = GenesisAccount::<sr25519::Public>::from_seed("Alice");
let bob = GenesisAccount::<sr25519::Public>::from_seed("Bob");
Expand Down Expand Up @@ -129,19 +130,7 @@ pub fn default_config(para_id: u32) -> serde_json::Value {
safeguard: Some(false),
..Default::default()
},
inflation: InflationConfig {
params: InflationParameters {
max_inflation_rate: Perquintill::from_percent(7),
treasury_part: Perquintill::from_percent(5),
collators_part: Perquintill::from_percent(3),
dapps_part: Perquintill::from_percent(20),
base_stakers_part: Perquintill::from_percent(25),
adjustable_stakers_part: Perquintill::from_percent(35),
bonus_part: Perquintill::from_percent(12),
ideal_staking_rate: Perquintill::from_percent(50),
},
..Default::default()
},
inflation: Default::default(),
oracle_membership: OracleMembershipConfig {
members: vec![alice.account_id(), bob.account_id()]
.try_into()
Expand Down
15 changes: 2 additions & 13 deletions runtime/shibuya/src/genesis_config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
use crate::*;
use astar_primitives::{evm::EVM_REVERT_CODE, genesis::GenesisAccount};

/// Get the default genesis config for the Shibuya runtime.
pub fn default_config(para_id: u32) -> serde_json::Value {
let alice = GenesisAccount::<sr25519::Public>::from_seed("Alice");
let bob = GenesisAccount::<sr25519::Public>::from_seed("Bob");
Expand Down Expand Up @@ -144,19 +145,7 @@ pub fn default_config(para_id: u32) -> serde_json::Value {
safeguard: Some(false),
..Default::default()
},
inflation: InflationConfig {
params: InflationParameters {
max_inflation_rate: Perquintill::from_percent(7),
treasury_part: Perquintill::from_percent(5),
collators_part: Perquintill::from_percent(3),
dapps_part: Perquintill::from_percent(20),
base_stakers_part: Perquintill::from_percent(25),
adjustable_stakers_part: Perquintill::from_percent(35),
bonus_part: Perquintill::from_percent(12),
ideal_staking_rate: Perquintill::from_percent(50),
},
..Default::default()
},
inflation: Default::default(),
oracle_membership: OracleMembershipConfig {
members: vec![alice.account_id(), bob.account_id()]
.try_into()
Expand Down
15 changes: 2 additions & 13 deletions runtime/shiden/src/genesis_config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
use crate::*;
use astar_primitives::{evm::EVM_REVERT_CODE, genesis::GenesisAccount};

/// Get the default genesis config for the Shiden runtime.
pub fn default_config(para_id: u32) -> serde_json::Value {
// TODO: revisit dApp staking benchmarking logic, something causes the total issuance to saturate, probably need to reduce reward amounts
// UPDATE: the issue seems to be with the omni-bencher-tool. For some reason, no issuance is generated for subsequent runs.
Expand Down Expand Up @@ -129,19 +130,7 @@ pub fn default_config(para_id: u32) -> serde_json::Value {
safeguard: Some(false),
..Default::default()
},
inflation: InflationConfig {
params: InflationParameters {
max_inflation_rate: Perquintill::from_percent(7),
treasury_part: Perquintill::from_percent(5),
collators_part: Perquintill::from_percent(3),
dapps_part: Perquintill::from_percent(20),
base_stakers_part: Perquintill::from_percent(25),
adjustable_stakers_part: Perquintill::from_percent(35),
bonus_part: Perquintill::from_percent(12),
ideal_staking_rate: Perquintill::from_percent(50),
},
..Default::default()
},
inflation: Default::default(),
oracle_membership: OracleMembershipConfig {
members: vec![alice.account_id(), bob.account_id()]
.try_into()
Expand Down
2 changes: 1 addition & 1 deletion runtime/shiden/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ use cumulus_primitives_core::AggregateMessageOrigin;
use frame_support::{
construct_runtime,
dispatch::DispatchClass,
genesis_builder_helper::{build_state, get_preset},
genesis_builder_helper::build_state,
parameter_types,
traits::{
fungible::{Balanced, Credit},
Expand Down

0 comments on commit 97458f8

Please sign in to comment.