Message: ExecuteMsg::RemoveValidator
This message can only be invoked by the owner and is used to remove an existing validator.
The only controllable parameter is validator
— the address of the validator to remove.
The removal fails if this is the only validator present. Otherwise, redelegations are performed on the remaining validators based on the delegation strategy.
If redelegations are made, then the function also stores the current snapshot of the balance, which is passed to the CallbackMsg::CheckReceivedCoin
message, and the newly received coins are added to the unlocked_coins
during the callback.