From e90fc16f688c43b2695e5c7e339557be52f16319 Mon Sep 17 00:00:00 2001 From: unconst Date: Tue, 23 Jul 2024 14:38:09 -0500 Subject: [PATCH] fix checked div error --- pallets/subtensor/src/coinbase/run_coinbase.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pallets/subtensor/src/coinbase/run_coinbase.rs b/pallets/subtensor/src/coinbase/run_coinbase.rs index df35304b1..abe44d55a 100644 --- a/pallets/subtensor/src/coinbase/run_coinbase.rs +++ b/pallets/subtensor/src/coinbase/run_coinbase.rs @@ -299,7 +299,7 @@ impl Pallet { // --- 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.