This commit is contained in:
hinto.janai 2024-10-17 21:18:43 -04:00
parent 09640fb4ea
commit f42d71b164
No known key found for this signature in database
GPG key ID: D47CE05FA175A499

View file

@ -68,7 +68,7 @@ pub fn calculate_block_reward(
.unwrap();
let effective_median_bw: u128 = median_bw.try_into().unwrap();
(((base_reward as u128 * multiplicand) / effective_median_bw) / effective_median_bw)
(((u128::from(base_reward) * multiplicand) / effective_median_bw) / effective_median_bw)
.try_into()
.unwrap()
}