From a5d3ed3cbd0ab5a5f93e44242805ecc4e69b3dd2 Mon Sep 17 00:00:00 2001 From: kianenigma Date: Tue, 1 Oct 2024 12:24:46 +0100 Subject: [PATCH] unify era duration in runtime api impl --- relay/kusama/src/lib.rs | 2 +- relay/polkadot/src/lib.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/relay/kusama/src/lib.rs b/relay/kusama/src/lib.rs index 00c6cab7af..37a187396a 100644 --- a/relay/kusama/src/lib.rs +++ b/relay/kusama/src/lib.rs @@ -1922,7 +1922,7 @@ impl Runtime { }; // We assume un-delayed 6h eras. - let era_duration = 6 * 60 * 60 * 1000; + let era_duration = 6 * (HOURS as Moment) * MILLISECS_PER_BLOCK; let next_mint = ::EraPayout::era_payout( staked, stake_able_issuance, diff --git a/relay/polkadot/src/lib.rs b/relay/polkadot/src/lib.rs index 19216b4ec8..1a7c8958f7 100644 --- a/relay/polkadot/src/lib.rs +++ b/relay/polkadot/src/lib.rs @@ -2155,7 +2155,7 @@ impl Runtime { ideal_staking_rate }; - // we assume un-delayed 24h eras. + // We assume un-delayed 24h eras. let era_duration = 24 * (HOURS as Moment) * MILLISECS_PER_BLOCK; let next_mint = ::EraPayout::era_payout( staked,