# KeepStakeBlockedByCollateral (/docs/errors/chain/KeepStakeBlockedByCollateral)

A hotkey swap with keep\_stake=true was refused because the old hotkey still has standing miner registration collateral. keep\_stake leaves stake on the old key while the UID moves, which would strand the bond. Retry with keep\_stake=false so collateral migrates with the UID; on-chain hotkey lineage maps track the rename for blacklist continuity. Or drain the bond through earned emission first.

Declared by the `SubtensorModule` pallet; it classifies to the semantic code [`policy_violation`](/docs/errors/policy-violation).

Declared at [`pallets/subtensor/src/macros/errors.rs#L219`](/code/pallets/subtensor/src/macros/errors.rs#L219).

## Remediation [#remediation]

The action exceeds a configured safety policy

The same explanation is available in the terminal: `btcli explain KeepStakeBlockedByCollateral`.
