Skip to content

Commit

Permalink
feat(iota-types): staking params were changed according new requirements
Browse files Browse the repository at this point in the history
  • Loading branch information
valeriyr committed Jun 19, 2024
1 parent f8d666f commit 3cb1f1b
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions crates/iota-types/src/governance.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,22 +22,22 @@ pub const MAX_VALIDATOR_COUNT: u64 = 150;

/// Lower-bound on the amount of stake required to become a validator.
///
/// 30 million IOTA
pub const MIN_VALIDATOR_JOINING_STAKE_MICROS: u64 = 30_000_000 * MICROS_PER_IOTA;
/// 2 million IOTA
pub const MIN_VALIDATOR_JOINING_STAKE_MICROS: u64 = 2_000_000 * MICROS_PER_IOTA;

/// Validators with stake amount below `validator_low_stake_threshold` are
/// considered to have low stake and will be escorted out of the validator set
/// after being below this threshold for more than
/// `validator_low_stake_grace_period` number of epochs.
///
/// 20 million IOTA
pub const VALIDATOR_LOW_STAKE_THRESHOLD_MICROS: u64 = 20_000_000 * MICROS_PER_IOTA;
/// 1.5 million IOTA
pub const VALIDATOR_LOW_STAKE_THRESHOLD_MICROS: u64 = 1_500_000 * MICROS_PER_IOTA;

/// Validators with stake below `validator_very_low_stake_threshold` will be
/// removed immediately at epoch change, no grace period.
///
/// 15 million IOTA
pub const VALIDATOR_VERY_LOW_STAKE_THRESHOLD_MICROS: u64 = 15_000_000 * MICROS_PER_IOTA;
/// 1 million IOTA
pub const VALIDATOR_VERY_LOW_STAKE_THRESHOLD_MICROS: u64 = 1_000_000 * MICROS_PER_IOTA;

/// A validator can have stake below `validator_low_stake_threshold`
/// for this many epochs before being kicked out.
Expand Down

0 comments on commit 3cb1f1b

Please sign in to comment.