Skip to content

Commit e90fc16

Browse files
author
unconst
committed
fix checked div error
1 parent 4726ec3 commit e90fc16

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pallets/subtensor/src/coinbase/run_coinbase.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,7 @@ impl<T: Config> Pallet<T> {
299299
// --- 10 Calculate this nominator's share of the emission.
300300
let nominator_emission: I64F64 = I64F64::from_num(emission_minus_take)
301301
.saturating_mul(I64F64::from_num(nominator_stake))
302-
.check_div(I64F64::from_num(total_hotkey_stake))
302+
.checked_div(I64F64::from_num(total_hotkey_stake))
303303
.unwrap_or(I64F64::from_num(0));
304304

305305
// --- 11 Increase the stake for the nominator.

0 commit comments

Comments
 (0)