TerraChange Blog

Smart Contract Migrated

We migrated from our old smart contract to a new, improved, more efficient and secure one.

It all worked out!

After a strategic alignment and a lot of study, we decided that it would be best to migrate from our old contract to a new one. This was a difficult decision, but we chose to follow this path because we were sure it was the best thing to do if we were going to think about the long term.

Old Contract: 0x043d528d78b647ca1f8a0a1f42027c1b689169a3
New Contract: 0xD448Cb1FdaB540302721434849b3ee22E38304E4

This new contract allows us to have more control over the fees collected, as well as being more efficient and establishing rules for receiving dividends in BNB. It has also enabled us to achieve even better scores in the contract scanners (automated audits), which helps a lot when it comes to make new investors feel safe about us.

Another important point was the improvement in contract security. One of the biggest benefits is that the previous contract wasn’t designed to relinquish ownership. Whereas in the new contract, this has already been planned in advance.

Method

As the liquidity of the old contract was locked for security reasons, there was no way for the team to remove the liquidity from the old pool. The way we found to migrate was to ask all holders to send their tokens to a new wallet created specifically for this purpose, which was the 0x32E010F351D27E049189340fEBf964120C613D24 wallet (link). Those who chose not to send it were told to sell their tokens. They were given a deadline for this migration. After the deadline, we sold all the CHG accumulated in this wallet to remove the liquidity in BNB and use this balance to relaunch under a new contract.

After creating the new contract, which was made with the same maximum supply of tokens (10 million), the exact same amount of tokens sent by the holders for the migration wallet were sent back to each holder’s wallet. In other words, whoever sent, for example, 10,000 CHG to the migration wallet, received the same 10,000 CHG in the same wallet, but from the new token (new contract). This way, no one lost their funds.

After the tokens of the new contract were airdropped to the holders of the old CA, liquidity was added using the BNB balance acquired from the sale of the tokens of the old contract and trading resumed without any major problems.

Conclusion

We would like to thank each and every one of you for your trust in sending us your balance and believing that we would actually send it back to you. Without this trust on your part, the migration would not have worked.

You can be sure that this change will allow us to go much further and you were part of that story!

Share this post!
Search