Skip to content

Commit a95bc8e

Browse files
committed
Reorder functions
1 parent 54b5090 commit a95bc8e

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

pallets/subtensor/src/coinbase/subnet_emissions.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -213,6 +213,12 @@ impl<T: Config> Pallet<T> {
213213
offset_flows
214214
}
215215

216+
// Combines ema price method and tao flow method linearly over FlowHalfLife blocks
217+
pub(crate) fn get_shares(subnets_to_emit_to: &[NetUid]) -> BTreeMap<NetUid, U64F64> {
218+
// Self::get_shares_flow(subnets_to_emit_to)
219+
Self::get_shares_price_ema(subnets_to_emit_to)
220+
}
221+
216222
// DEPRECATED: Implementation of shares that uses EMA prices will be gradually deprecated
217223
fn get_shares_price_ema(subnets_to_emit_to: &[NetUid]) -> BTreeMap<NetUid, U64F64> {
218224
// Get sum of alpha moving prices
@@ -240,10 +246,4 @@ impl<T: Config> Pallet<T> {
240246
})
241247
.collect::<BTreeMap<NetUid, U64F64>>()
242248
}
243-
244-
// Combines ema price method and tao flow method linearly over FlowHalfLife blocks
245-
pub(crate) fn get_shares(subnets_to_emit_to: &[NetUid]) -> BTreeMap<NetUid, U64F64> {
246-
// Self::get_shares_flow(subnets_to_emit_to)
247-
Self::get_shares_price_ema(subnets_to_emit_to)
248-
}
249249
}

0 commit comments

Comments
 (0)