Skip to content

Commit 9f84b02

Browse files
committed
Remove init_factor
1 parent 0d66053 commit 9f84b02

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

pallets/subtensor/src/coinbase/subnet_emissions.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,11 +75,10 @@ impl<T: Config> Pallet<T> {
7575
}
7676
} else {
7777
// Initialize EMA flow, set S(current_block) = min(price, ema_price) * init_factor
78-
let init_factor = I64F64::saturating_from_num(1.);
7978
let moving_price = I64F64::saturating_from_num(Self::get_moving_alpha_price(netuid));
8079
let current_price =
8180
I64F64::saturating_from_num(T::SwapInterface::current_alpha_price(netuid));
82-
let ema_flow = moving_price.min(current_price).saturating_mul(init_factor);
81+
let ema_flow = moving_price.min(current_price);
8382
SubnetEmaTaoFlow::<T>::insert(netuid, (current_block, ema_flow));
8483
ema_flow
8584
}

0 commit comments

Comments
 (0)