Skip to content

Commit

Permalink
Set collator minimum bond to 4M KMA (#937)
Browse files Browse the repository at this point in the history
* change collation eligibility bond to 4mil

Signed-off-by: Adam Reif <Garandor@manta.network>

* wip: use lazy_static for testing accounts

Signed-off-by: Adam Reif <Garandor@manta.network>

* Integrationtest reorg and 400k regression test

Signed-off-by: Adam Reif <Garandor@manta.network>

* allow dead code

Signed-off-by: Adam Reif <Garandor@manta.network>

* Fix collator_with_400k_not_selected_for_block_production which would erroneously pass, address comments

Signed-off-by: Adam Reif <Garandor@manta.network>

* unimport std::clone, works with upgraded compiler

Signed-off-by: Adam Reif <Garandor@manta.network>

* fix collator join test to use parachain_staking instead of collator_selection

Signed-off-by: Adam Reif <Garandor@manta.network>

Signed-off-by: Adam Reif <Garandor@manta.network>
Signed-off-by: Charles Ferrell <charlie@manta.network>
  • Loading branch information
Adam Reif authored and ferrell-code committed Dec 27, 2022
1 parent 17d6b16 commit b09a8d1
Show file tree
Hide file tree
Showing 6 changed files with 393 additions and 231 deletions.
1 change: 1 addition & 0 deletions Cargo.lock

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

1 change: 1 addition & 0 deletions runtime/calamari/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ targets = ['x86_64-unknown-linux-gnu']
substrate-wasm-builder = { git = 'https://github.com/paritytech/substrate.git', branch = "polkadot-v0.9.26" }

[dev-dependencies]
lazy_static = "1.4.0"
reqwest = { version = "0.11", features = ["blocking"] }
serde_json = "1.0"

Expand Down
2 changes: 1 addition & 1 deletion runtime/calamari/src/staking.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ use pallet_parachain_staking::{BalanceOf, InflationInfo};

pub const NORMAL_COLLATOR_MINIMUM_STAKE: Balance = 4_000_000 * KMA;
pub const EARLY_COLLATOR_MINIMUM_STAKE: Balance = 400_000 * KMA;
pub const MIN_BOND_TO_BE_CONSIDERED_COLLATOR: Balance = EARLY_COLLATOR_MINIMUM_STAKE;
pub const MIN_BOND_TO_BE_CONSIDERED_COLLATOR: Balance = NORMAL_COLLATOR_MINIMUM_STAKE;

pub fn inflation_config<T: frame_system::Config + pallet_parachain_staking::Config>(
) -> InflationInfo<BalanceOf<T>> {
Expand Down
Loading

0 comments on commit b09a8d1

Please sign in to comment.