Skip to content

Commit f81608d

Browse files
committed
use rem root alpha
1 parent 1f27c9f commit f81608d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pallets/subtensor/src/coinbase/run_coinbase.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -446,12 +446,12 @@ impl<T: Config> Pallet<T> {
446446
// 2.5.1 --- Store the root divs under hotkey_j
447447
root_alpha_divs
448448
.entry(hotkey_j.clone())
449-
.and_modify(|e| *e = e.saturating_add(root_alpha_divs_j.to_num::<u64>()))
450-
.or_insert(root_alpha_divs_j.to_num::<u64>());
449+
.and_modify(|e| *e = e.saturating_add(rem_root_alpha_divs_j.to_num::<u64>()))
450+
.or_insert(rem_root_alpha_divs_j.to_num::<u64>());
451451
log::debug!(
452452
"Stored root alpha dividends for hotkey {:?}: {:?}",
453453
hotkey_j,
454-
root_alpha_divs_j.to_num::<u64>()
454+
rem_root_alpha_divs_j.to_num::<u64>()
455455
);
456456

457457
// 2.5.2 --- Store the alpha dividends

0 commit comments

Comments
 (0)