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 28ba654 commit 4726ec3Copy full SHA for 4726ec3
pallets/subtensor/src/coinbase/run_coinbase.rs
@@ -299,7 +299,8 @@ 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
- .saturating_div(I64F64::from_num(total_hotkey_stake));
+ .check_div(I64F64::from_num(total_hotkey_stake))
303
+ .unwrap_or(I64F64::from_num(0));
304
305
// --- 11 Increase the stake for the nominator.
306
Self::increase_stake_on_coldkey_hotkey_account(
0 commit comments