File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
pallets/subtensor/src/coinbase Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -39,13 +39,14 @@ impl<T: Config> Pallet<T> {
39
39
log:: debug!( "Subnets to emit to: {subnets_to_emit_to:?}" ) ;
40
40
41
41
// --- 2. Get sum of tao reserves ( in a later version we will switch to prices. )
42
- let mut total_moving_prices = U96F32 :: saturating_from_num ( 0.0 ) ;
42
+ let mut acc_total_moving_prices = U96F32 :: saturating_from_num ( 0.0 ) ;
43
43
// Only get price EMA for subnets that we emit to.
44
44
for netuid_i in subnets_to_emit_to. iter ( ) {
45
45
// Get and update the moving price of each subnet adding the total together.
46
- total_moving_prices =
47
- total_moving_prices . saturating_add ( Self :: get_moving_alpha_price ( * netuid_i) ) ;
46
+ acc_total_moving_prices =
47
+ acc_total_moving_prices . saturating_add ( Self :: get_moving_alpha_price ( * netuid_i) ) ;
48
48
}
49
+ let total_moving_prices = acc_total_moving_prices;
49
50
log:: debug!( "total_moving_prices: {total_moving_prices:?}" ) ;
50
51
51
52
// --- 3. Get subnet terms (tao_in, alpha_in, and alpha_out)
You can’t perform that action at this time.
0 commit comments