Skip to content

Commit

Permalink
Added hybrid inflation model to Astar (#1103)
Browse files Browse the repository at this point in the history
* Added hybrid inflation model to Astar

* space
  • Loading branch information
PierreOssun authored Dec 14, 2023
1 parent 01d8a95 commit 2220838
Show file tree
Hide file tree
Showing 13 changed files with 54 additions and 1,237 deletions.
22 changes: 1 addition & 21 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,6 @@ orml-xcm-support = { git = "https://github.com/open-web3-stack/open-runtime-modu

# Astar pallets & modules
# (wasm)
pallet-block-reward = { path = "./pallets/block-reward", default-features = false }
pallet-block-rewards-hybrid = { path = "./pallets/block-rewards-hybrid", default-features = false }
pallet-collator-selection = { path = "./pallets/collator-selection", default-features = false }
pallet-dapps-staking = { path = "./pallets/dapps-staking", default-features = false }
Expand Down
1 change: 0 additions & 1 deletion bin/collator/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,6 @@ shiden-runtime = { workspace = true, features = ["std"] }

# astar pallets dependencies
astar-primitives = { workspace = true }
pallet-block-reward = { workspace = true }

# frame dependencies
frame-system = { workspace = true, features = ["std"] }
Expand Down
6 changes: 3 additions & 3 deletions bin/collator/src/parachain/chain_spec/astar.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
use astar_runtime::{
wasm_binary_unwrap, AccountId, AuraId, Balance, BlockRewardConfig, EVMConfig,
ParachainInfoConfig, Precompiles, Signature, SystemConfig, ASTR,
ParachainInfoConfig, Precompiles, RewardDistributionConfig, Signature, SystemConfig, ASTR,
};
use cumulus_primitives_core::ParaId;
use sc_service::ChainType;
Expand Down Expand Up @@ -112,8 +112,8 @@ fn make_genesis(
balances: astar_runtime::BalancesConfig { balances },
block_reward: BlockRewardConfig {
// Make sure sum is 100
reward_config: pallet_block_reward::RewardDistributionConfig {
base_treasury_percent: Perbill::from_percent(10),
reward_config: RewardDistributionConfig {
treasury_percent: Perbill::from_percent(10),
base_staker_percent: Perbill::from_percent(20),
dapps_percent: Perbill::from_percent(20),
collators_percent: Perbill::from_percent(5),
Expand Down
51 changes: 0 additions & 51 deletions pallets/block-reward/Cargo.toml

This file was deleted.

56 changes: 0 additions & 56 deletions pallets/block-reward/src/benchmarking.rs

This file was deleted.

Loading

0 comments on commit 2220838

Please sign in to comment.