Describe the bug
clear_small_nomination_if_required doesn't verify that the alpha_stake is 0 leading to unnecessary calling of unstake_from_subnet and add_balance_to_coldkey_account which in turn emit StakeRemoved and Deposit events with juz zeroes.
This occurs in all transactions that remove the entire stake.
unstake_all and unstake_all_alpha operations are the most troublesome because they emit WAY more events than they should leading to bloating the chain.
To Reproduce
Perform remove_stake_full_limit operation and check the emitted events.
Expected behavior
clear_small_nomination_if_required should validate that alpha_stake is greater than 0 before proceeding with the unstaking operations.
Screenshots
No response
Environment
N/A
Additional context
No response