Skip to content

Commit 120be4f

Browse files
committed
Re-enable tao flow
1 parent 4e4addd commit 120be4f

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

pallets/subtensor/src/coinbase/subnet_emissions.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -216,11 +216,12 @@ impl<T: Config> Pallet<T> {
216216

217217
// Combines ema price method and tao flow method linearly over FlowHalfLife blocks
218218
pub(crate) fn get_shares(subnets_to_emit_to: &[NetUid]) -> BTreeMap<NetUid, U64F64> {
219-
// Self::get_shares_flow(subnets_to_emit_to)
220-
Self::get_shares_price_ema(subnets_to_emit_to)
219+
Self::get_shares_flow(subnets_to_emit_to)
220+
// Self::get_shares_price_ema(subnets_to_emit_to)
221221
}
222222

223223
// DEPRECATED: Implementation of shares that uses EMA prices will be gradually deprecated
224+
#[allow(dead_code)]
224225
fn get_shares_price_ema(subnets_to_emit_to: &[NetUid]) -> BTreeMap<NetUid, U64F64> {
225226
// Get sum of alpha moving prices
226227
let total_moving_prices = subnets_to_emit_to

0 commit comments

Comments
 (0)