@@ -123,7 +123,7 @@ impl<T: Config> Pallet<T> {
123123 let mut tao_in: BTreeMap < NetUid , U96F32 > = BTreeMap :: new ( ) ;
124124 let mut alpha_in: BTreeMap < NetUid , U96F32 > = BTreeMap :: new ( ) ;
125125 let mut alpha_out: BTreeMap < NetUid , U96F32 > = BTreeMap :: new ( ) ;
126- let mut excess_amount : BTreeMap < NetUid , U96F32 > = BTreeMap :: new ( ) ;
126+ let mut excess_tao : BTreeMap < NetUid , U96F32 > = BTreeMap :: new ( ) ;
127127
128128 // Only calculate for subnets that we are emitting to.
129129 for ( & netuid_i, & tao_emission_i) in subnet_emissions. iter ( ) {
@@ -162,16 +162,16 @@ impl<T: Config> Pallet<T> {
162162 tao_in_i = alpha_in_i. saturating_mul ( price_i) ;
163163 }
164164
165- let excess_tao : U96F32 = tao_emission_i. saturating_sub ( tao_in_i) ;
166- excess_amount . insert ( netuid_i, excess_tao ) ;
165+ let excess_amount : U96F32 = tao_emission_i. saturating_sub ( tao_in_i) ;
166+ excess_tao . insert ( netuid_i, excess_amount ) ;
167167 }
168168
169169 // Insert values into maps
170170 tao_in. insert ( netuid_i, tao_in_i) ;
171171 alpha_in. insert ( netuid_i, alpha_in_i) ;
172172 alpha_out. insert ( netuid_i, alpha_out_i) ;
173173 }
174- ( tao_in, alpha_in, alpha_out, excess_amount )
174+ ( tao_in, alpha_in, alpha_out, excess_tao )
175175 }
176176
177177 pub fn emit_to_subnets (
0 commit comments