File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed
pallets/subtensor/src/coinbase Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -318,12 +318,14 @@ impl<T: Config> Pallet<T> {
318
318
let root_prop: I96F32 = root_alpha. checked_div ( total_alpha) . unwrap_or ( zero) ;
319
319
// Compute root dividends
320
320
let root_divs: I96F32 = dividend. saturating_mul ( root_prop) ;
321
- // Record the root dividends.
321
+ // Compute alpha dividends
322
+ let alpha_divs: I96F32 = dividend. saturating_sub ( root_divs) ;
323
+ // Record the alpha dividends.
322
324
alpha_dividends
323
325
. entry ( hotkey. clone ( ) )
324
- . and_modify ( |e| * e = e. saturating_add ( dividend ) )
325
- . or_insert ( dividend ) ;
326
- // Record the alpha_dividends .
326
+ . and_modify ( |e| * e = e. saturating_add ( alpha_divs ) )
327
+ . or_insert ( alpha_divs ) ;
328
+ // Record the root dividends .
327
329
root_dividends
328
330
. entry ( hotkey. clone ( ) )
329
331
. and_modify ( |e| * e = e. saturating_add ( root_divs) )
You can’t perform that action at this time.
0 commit comments