0

I wonder what happens to the existing ATA if I migrate from the existing token program to the token 2022 program.

  1. If the migration is completed, can't use the existing ATA (before migration)

  2. If the migration is completed, can't use the existing token (before migration)

1 Answer 1

1

It's very simple, there is no migration! All current SPL tokens belong to the SPL token program, and all token-2022 tokens belong to token-2022.

Two possible migration paths are:

  • "upgrade" your tokens: create a new mint on token-2022, and pre-mint a bunch of tokens into an escrow. Using a protocol such as spl-token-upgrade, users can burn their old tokens in exchange for the ones
  • "wrap" your tokens: create a new mint on token-2022, with mint authority controlled by a program. This program will receive old tokens into an escrow and mint new tokens, the "wrapping" process. At any time, users can "unwrap" their tokens by burning the new tokens to retrieve their old tokens

More information about token-upgrade at https://spl.solana.com/token-upgrade and more (limited) information about wrapping tokens at https://github.com/solana-labs/solana-program-library/pull/3595

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.