We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e644730 commit b072940Copy full SHA for b072940
bin/runtime/src/lib.rs
@@ -1241,7 +1241,7 @@ impl_runtime_apis! {
1241
}
1242
1243
fn current_era_payout() -> (Balance, Balance) {
1244
- const MILLISECONDS_PER_ERA: u64 = 1000 * 3600 * 24;
+ const MILLISECONDS_PER_ERA: u64 = MILLISECS_PER_BLOCK * (DEFAULT_SESSION_PERIOD * DEFAULT_SESSIONS_PER_ERA) as u64;
1245
let total_issuance = pallet_balances::Pallet::<Runtime>::total_issuance();
1246
1247
ExponentialEraPayout::era_payout(total_issuance, MILLISECONDS_PER_ERA)
0 commit comments