Skip to content

Commit a4046a0

Browse files
committed
use rem divs
1 parent cc44b64 commit a4046a0

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
@@ -457,12 +457,12 @@ impl<T: Config> Pallet<T> {
457457
// 2.5.2 --- Store the alpha dividends
458458
alpha_divs
459459
.entry(hotkey_j.clone())
460-
.and_modify(|e| *e = e.saturating_add(alpha_divs_j.to_num::<u64>()))
461-
.or_insert(alpha_divs_j.to_num::<u64>());
460+
.and_modify(|e| *e = e.saturating_add(rem_alpha_divs_j.to_num::<u64>()))
461+
.or_insert(rem_alpha_divs_j.to_num::<u64>());
462462
log::debug!(
463463
"Stored alpha dividends for hotkey {:?}: {:?}",
464464
hotkey_j,
465-
alpha_divs_j.to_num::<u64>()
465+
rem_alpha_divs_j.to_num::<u64>()
466466
);
467467
}
468468
}

0 commit comments

Comments
 (0)