Flash Migrate

Flash Migrate exchanges a project’s old token (V1) for its replacement (V2) in one transaction. The project funds the migration contract before holders use it.

On this page
On the roadmap
V5 Ecosystem
Set up
Per project, for its own pair of tokens
Who signs
The project for the migration, each holder for their own swap
Rate
Fixed by the project
Transactions
1 for each holder

Flash Migrate is for projects replacing a token and holders exchanging it. Swaps succeeds only when the holder receives the new tokens in the same transaction.

  • Token contract: Project moves to a new contract with new features.
  • New name and ticker: Rebrands comes with a new token
  • Supply changes: Project consolidates its supply, ten V1 tokens for one V2, at a rate everyone can read before swapping.

From V1 to V2, holder by holder

  1. The project signs the migration: The V1 token, the V2 token, the rate, the window and where the V1 tokens it receives go.
  2. The project funds the contract with the V2 tokens it expects holders to swap for.
  3. Holders approve the V1 amount to the contract and send the swap.
  4. The contract settles the swap in one transaction: It checks the window/ funding, takes the holder’s V1, pays the V2 at the rate and sends the V1 to the destination the project set.

The terms of a migration

TermWhat it sets
V1 tokenThe token holders hand in
V2 tokenThe token they receive
RateHow many V2 one V1 buys
WindowThe first and last moment a swap can settle
V1 destinationWhere the V1 tokens go: a burn address or a wallet of the project
FundingThe V2 the contract holds for swaps

One holders swap

Projects migrate one for one. Xtoken stands for its token and a holder swaps 10,000 Xtoken V1.

One holder, migrated
Holder sends
10,000 Xtoken V1
Holder receives
10,000 Xtoken V2
Funding used
10,020 Xtoken V2
Transactions
1

The holder reads the rate before they approve anything.

What a migration guarantees

  • New tokens in the same transaction: Holders V1 leaves their wallet only in the transaction that pays the V2.
  • The signed rate: Every holder swaps at the rate the project set, from the first swap to the last.
  • Funded before the first swap: The V2 tokens are in the contract before any holder swaps.