Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Staking] migrate_currency fails in some scenarios #7931

Open
Ank4n opened this issue Mar 14, 2025 · 0 comments · May be fixed by #7933
Open

[Staking] migrate_currency fails in some scenarios #7931

Ank4n opened this issue Mar 14, 2025 · 0 comments · May be fixed by #7933
Assignees
Labels
A4-needs-backport Pull request must be backported to all maintained releases. T2-pallets This PR/Issue is related to a particular pallet.

Comments

@Ank4n
Copy link
Contributor

Ank4n commented Mar 14, 2025

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, causing migrate_currency to fail.

@Ank4n Ank4n self-assigned this Mar 14, 2025
@Ank4n Ank4n changed the title [Staking] migrate_currency does not unlock old staking balance in cases where it diverges from ledger balance [Staking] migrate_currency fails in some scenarios Mar 14, 2025
@Ank4n Ank4n added A4-needs-backport Pull request must be backported to all maintained releases. T2-pallets This PR/Issue is related to a particular pallet. labels Mar 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A4-needs-backport Pull request must be backported to all maintained releases. T2-pallets This PR/Issue is related to a particular pallet.
Projects
Status: 📕 Backlog
1 participant