We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4726ec3 commit e90fc16Copy full SHA for e90fc16
pallets/subtensor/src/coinbase/run_coinbase.rs
@@ -299,7 +299,7 @@ impl<T: Config> Pallet<T> {
299
// --- 10 Calculate this nominator's share of the emission.
300
let nominator_emission: I64F64 = I64F64::from_num(emission_minus_take)
301
.saturating_mul(I64F64::from_num(nominator_stake))
302
- .check_div(I64F64::from_num(total_hotkey_stake))
+ .checked_div(I64F64::from_num(total_hotkey_stake))
303
.unwrap_or(I64F64::from_num(0));
304
305
// --- 11 Increase the stake for the nominator.
0 commit comments