referrerpolicy=no-referrer-when-downgrade
pallet_staking::dispatchables

Function migrate_currency

Source
pub fn migrate_currency<T: Config>(stash: T::AccountId)
Expand description

Removes the legacy Staking locks if they exist.

This removes the legacy lock on the stake with Config::OldCurrency and creates a hold on it if needed. If all stake cannot be held, the best effort is made to hold as much as possible. The remaining stake is forced withdrawn from the ledger.

The fee is waived if the migration is successful.

§Warning: Doc-Only

This function is an automatically generated, and is doc-only, uncallable stub. See the real version in Pallet::migrate_currency.