[Staking] migrate_currency
fails in some scenarios
#7931
Labels
A4-needs-backport
Pull request must be backported to all maintained releases.
T2-pallets
This PR/Issue is related to a particular pallet.
This issue was initially reported by Kami | Polkagate.
The
migrate_currency
extrinsic expects the reserved amount to be zero and the locked funds to match the total staked amount in order for the migration to succeed. However, this assumption doesn’t always hold — if the account has updated its stake (e.g., through bonding, unbonding, or withdrawing), these values can diverge, causingmigrate_currency
to fail.The text was updated successfully, but these errors were encountered: