I want to Migrate my ERC20 Contract to a new Address, How do I do this ?
There are two ways to go about it:
- Get all the
Burnevents for your contract
- Computer a user balance based on the credits and debits from the events for each address that holds your tokens
- Deploy a new contract, and use some way to airdrop the required amounts to each holder of the old tokens
Alternatively, you can:
- Deploy the new token contract with a mechanism that allows users to send the old tokens to the contract, and receive the new ones in return.