Skip to content

Commit

Permalink
L1-290: Cp 5a47d23 (#1828)
Browse files Browse the repository at this point in the history
# Description

Cherry-pick of 5a47d23

---------

Co-authored-by: lesniak43 <[email protected]>
  • Loading branch information
Marcin-Radecki and lesniak43 authored Oct 8, 2024
1 parent 739bf37 commit e644730
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 22 deletions.
30 changes: 15 additions & 15 deletions aleph-client/src/aleph_zero.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1928,9 +1928,9 @@ pub mod api {
.hash();
runtime_metadata_hash
== [
40u8, 53u8, 171u8, 65u8, 233u8, 174u8, 122u8, 153u8, 252u8, 119u8, 246u8, 12u8,
237u8, 31u8, 207u8, 113u8, 190u8, 190u8, 71u8, 208u8, 23u8, 54u8, 42u8, 14u8,
166u8, 254u8, 20u8, 201u8, 161u8, 222u8, 230u8, 60u8,
67u8, 165u8, 78u8, 166u8, 227u8, 222u8, 51u8, 144u8, 10u8, 118u8, 145u8, 173u8,
253u8, 118u8, 62u8, 29u8, 190u8, 70u8, 4u8, 88u8, 141u8, 92u8, 198u8, 11u8, 140u8,
236u8, 70u8, 196u8, 231u8, 143u8, 237u8, 147u8,
]
}
pub mod system {
Expand Down Expand Up @@ -8861,10 +8861,10 @@ pub mod api {
"AzeroCap",
vec![],
[
68u8, 239u8, 10u8, 241u8, 109u8, 153u8, 129u8, 3u8, 237u8, 251u8,
251u8, 221u8, 156u8, 81u8, 117u8, 166u8, 101u8, 196u8, 227u8, 176u8,
209u8, 123u8, 127u8, 146u8, 252u8, 88u8, 138u8, 227u8, 183u8, 117u8,
148u8, 36u8,
232u8, 50u8, 48u8, 200u8, 187u8, 205u8, 197u8, 195u8, 172u8, 140u8,
72u8, 253u8, 63u8, 190u8, 23u8, 70u8, 154u8, 96u8, 238u8, 203u8, 39u8,
129u8, 219u8, 220u8, 119u8, 214u8, 95u8, 174u8, 65u8, 80u8, 25u8,
156u8,
],
)
}
Expand All @@ -8882,10 +8882,10 @@ pub mod api {
"ExponentialInflationHorizon",
vec![],
[
7u8, 241u8, 156u8, 243u8, 174u8, 255u8, 212u8, 252u8, 53u8, 59u8,
145u8, 100u8, 166u8, 17u8, 167u8, 127u8, 41u8, 227u8, 188u8, 149u8,
207u8, 61u8, 65u8, 215u8, 42u8, 241u8, 18u8, 145u8, 24u8, 123u8, 1u8,
65u8,
96u8, 228u8, 98u8, 28u8, 209u8, 210u8, 67u8, 181u8, 1u8, 111u8, 174u8,
131u8, 254u8, 131u8, 238u8, 112u8, 243u8, 203u8, 160u8, 240u8, 65u8,
141u8, 108u8, 235u8, 114u8, 44u8, 115u8, 114u8, 135u8, 217u8, 90u8,
63u8,
],
)
}
Expand Down Expand Up @@ -8923,10 +8923,10 @@ pub mod api {
"NextAuthorities",
vec![],
[
51u8, 65u8, 234u8, 11u8, 44u8, 149u8, 188u8, 66u8, 103u8, 198u8, 151u8,
33u8, 119u8, 241u8, 178u8, 116u8, 121u8, 166u8, 36u8, 18u8, 164u8,
37u8, 233u8, 202u8, 116u8, 230u8, 129u8, 137u8, 43u8, 75u8, 234u8,
118u8,
161u8, 161u8, 19u8, 223u8, 66u8, 53u8, 163u8, 225u8, 121u8, 150u8,
226u8, 84u8, 62u8, 244u8, 153u8, 227u8, 82u8, 137u8, 209u8, 221u8,
123u8, 120u8, 244u8, 0u8, 103u8, 43u8, 138u8, 177u8, 57u8, 90u8, 24u8,
119u8,
],
)
}
Expand Down
8 changes: 4 additions & 4 deletions e2e-tests/src/test/era_payout.rs
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,8 @@ async fn force_era_payout(config: &Config) -> anyhow::Result<()> {
// These must be adjusted every time we change the default values of:
// * AzeroCap
// * ExponentialInflationHorizon
let expected_payout = 1776 * TOKEN;
let delta = 3 * TOKEN;
let expected_payout = 114 * TOKEN;
let delta = TOKEN;

assert_within_delta_interval(
expected_era_duration,
Expand Down Expand Up @@ -101,8 +101,8 @@ async fn normal_era_payout(config: &Config) -> anyhow::Result<()> {
// These must be adjusted every time we change the default values of:
// * AzeroCap
// * ExponentialInflationHorizon
let expected_payout = 1776 * TOKEN;
let delta = 3 * TOKEN;
let expected_payout = 114 * TOKEN;
let delta = TOKEN;

assert_within_delta_interval(
expected_era_duration,
Expand Down
5 changes: 2 additions & 3 deletions pallets/aleph/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -80,15 +80,14 @@ pub mod pallet {
/// Default AZERO Cap. Relevant for eras before we set this value by hand.
#[pallet::type_value]
pub fn DefaultAzeroCap() -> Balance {
1_000_000_000 * TOKEN
520_000_000 * TOKEN
}

/// Default length of the exponential inflation horizon.
/// Relevant for eras before we set this value by hand.
#[pallet::type_value]
pub fn DefaultExponentialInflationHorizon() -> u64 {
const MILLISECS_PER_YEAR: u64 = 1000 * 3600 * 24 * 36525 / 100;
MILLISECS_PER_YEAR
154_283_512_497
}

#[pallet::storage]
Expand Down

0 comments on commit e644730

Please sign in to comment.