File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
pallets/subtensor/src/coinbase Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -203,7 +203,7 @@ impl<T: Config> Pallet<T> {
203
203
I64F64 :: from_num ( Self :: get_childkey_take ( hotkey, netuid) )
204
204
. saturating_div ( I64F64 :: from_num ( u16:: MAX ) ) ;
205
205
let mut total_childkey_take: u64 = 0 ;
206
-
206
+
207
207
// --- 2. Track the remaining emission for accounting purposes.
208
208
let mut remaining_emission: u64 = validating_emission;
209
209
@@ -238,7 +238,7 @@ impl<T: Config> Pallet<T> {
238
238
239
239
// --- 4.4 Compute the remaining parent emission after the childkey's share is deducted.
240
240
let parent_emission_take: u64 = parent_emission. saturating_sub ( child_emission_take) ;
241
-
241
+
242
242
// --- 4.5. Accumulate emissions for the parent hotkey.
243
243
PendingdHotkeyEmission :: < T > :: mutate ( parent, |parent_accumulated| {
244
244
* parent_accumulated = parent_accumulated. saturating_add ( parent_emission_take)
@@ -306,7 +306,7 @@ impl<T: Config> Pallet<T> {
306
306
. saturating_div ( I64F64 :: from_num ( u16:: MAX ) ) ;
307
307
let hotkey_take: u64 = ( take_proportion
308
308
. saturating_mul ( I64F64 :: from_num ( emission_to_distribute) ) )
309
- . to_num :: < u64 > ( ) ;
309
+ . to_num :: < u64 > ( ) ;
310
310
311
311
// --- 5 Compute the remaining emission after deducting the hotkey's take and untouchable_emission.
312
312
let emission_minus_take: u64 = emission_to_distribute. saturating_sub ( hotkey_take) ;
You can’t perform that action at this time.
0 commit comments