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.
2 parents 9a66571 + 733f8b3 commit b2a894fCopy full SHA for b2a894f
pallets/subtensor/src/coinbase/subnet_emissions.rs
@@ -59,7 +59,7 @@ impl<T: Config> Pallet<T> {
59
// EMA flow already initialized
60
if last_block != current_block {
61
let flow_alpha = I64F64::saturating_from_num(FlowEmaSmoothingFactor::<T>::get())
62
- .safe_div(I64F64::saturating_from_num(u16::MAX));
+ .safe_div(I64F64::saturating_from_num(u64::MAX));
63
let one = I64F64::saturating_from_num(1);
64
let ema_flow = (one.saturating_sub(flow_alpha))
65
.saturating_mul(last_block_ema)
0 commit comments