fix(ah-staking): correct fixed_total_issuance to 200M HEZ baseline
The EraPayout fixed_total_issuance was ~5,216 HEZ (copied from Polkadot's 10-decimal DOT value). Corrected to 200M HEZ (12 decimals) to match actual chain total issuance. This fixes staking rewards being ~40x lower than intended on Asset Hub.
This commit is contained in:
@@ -241,7 +241,8 @@ impl pezpallet_staking_async::EraPayout<Balance> for EraPayout {
|
||||
FixedU128::from_rational(era_duration_millis.into(), MILLISECONDS_PER_YEAR.into());
|
||||
|
||||
// Fixed total TI that we use as baseline for the issuance.
|
||||
let fixed_total_issuance: i128 = 5_216_342_402_773_185_773;
|
||||
// 200M HEZ (12 decimals) = 200_000_000 * 10^12
|
||||
let fixed_total_issuance: i128 = 200_000_000_000_000_000_000;
|
||||
let fixed_inflation_rate = FixedU128::from_rational(8, 100);
|
||||
let yearly_emission = fixed_inflation_rate.saturating_mul_int(fixed_total_issuance);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user