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 adad4fd commit 6c8d794Copy full SHA for 6c8d794
pallets/subtensor/src/coinbase/run_coinbase.rs
@@ -308,10 +308,10 @@ impl<T: Config> Pallet<T> {
308
}
309
310
// --- 11 Calculate this nominator's share of the emission.
311
- let nominator_emission: I64F64 = I64F64::from_num(emission_minus_take)
312
- .saturating_mul(I64F64::from_num(nominator_stake))
+ let nominator_emission: I64F64 = I64F64::from_num(nominator_stake)
313
.checked_div(I64F64::from_num(total_viable_nominator_stake))
314
- .unwrap_or(I64F64::from_num(0));
+ .unwrap_or(I64F64::from_num(0))
+ .saturating_mul(I64F64::from_num(emission_minus_take));
315
316
// --- 12 Increase the stake for the nominator.
317
Self::increase_stake_on_coldkey_hotkey_account(
0 commit comments