Skip to content

Commit

Permalink
fix checked div error
Browse files Browse the repository at this point in the history
  • Loading branch information
unconst committed Jul 23, 2024
1 parent 4726ec3 commit e90fc16
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pallets/subtensor/src/coinbase/run_coinbase.rs
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ impl<T: Config> Pallet<T> {
// --- 10 Calculate this nominator's share of the emission.
let nominator_emission: I64F64 = I64F64::from_num(emission_minus_take)
.saturating_mul(I64F64::from_num(nominator_stake))
.check_div(I64F64::from_num(total_hotkey_stake))
.checked_div(I64F64::from_num(total_hotkey_stake))
.unwrap_or(I64F64::from_num(0));

// --- 11 Increase the stake for the nominator.
Expand Down

0 comments on commit e90fc16

Please sign in to comment.