Skip to content

Commit c38aa09

Browse files
committed
remove dup fn
1 parent 8e6286c commit c38aa09

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

pallets/subtensor/src/coinbase/run_coinbase.rs

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -255,16 +255,6 @@ impl<T: Config> Pallet<T> {
255255
}
256256
}
257257

258-
pub fn get_network_subsidy_mode(subnets_to_emit_to: &[NetUid]) -> bool {
259-
let total_ema_price: U96F32 = subnets_to_emit_to
260-
.iter()
261-
.map(|netuid| Self::get_moving_alpha_price(*netuid))
262-
.sum();
263-
264-
// If the total EMA price is less than or equal to 1, then we subsidize the network.
265-
total_ema_price <= U96F32::saturating_from_num(1)
266-
}
267-
268258
pub fn drain_pending(
269259
subnets: &[NetUid],
270260
current_block: u64,

0 commit comments

Comments
 (0)