diff --git a/pallets/subtensor/src/staking/stake_ops.rs b/pallets/subtensor/src/staking/stake_ops.rs index dfdcc9f0c..91caede48 100644 --- a/pallets/subtensor/src/staking/stake_ops.rs +++ b/pallets/subtensor/src/staking/stake_ops.rs @@ -395,8 +395,8 @@ impl Pallet { // Step 15: Decrease total stake across all subnets TotalStake::::put(TotalStake::::get().saturating_sub(tao_unstaked_u64)); - // Step 16: Update StakingHotkeys if the hotkey's total alpha is zero - if Alpha::::get((hotkey, coldkey, netuid)) == 0 { + // Step 16: Update StakingHotkeys if the hotkey's total alpha, across all subnets, is zero + if Self::get_global_for_hotkey_and_coldkey(hotkey, coldkey) == 0 { StakingHotkeys::::mutate(coldkey, |hotkeys| { hotkeys.retain(|k| k != hotkey); });