File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
pallets/subtensor/src/coinbase Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff 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}
You can’t perform that action at this time.
0 commit comments