POL Migration and Existing Contract?

While I understand the tokens in Polygon POS will be automatically converted from MATIC to POL.

With the POL migration coming up this September, will the mainnet RPC change? if yes, where will be the ledger for the old transactions and will it be migrated as well?
What will happen to the already deployed contract? Do we need to redeploy the contacts which are already live?

Also where is the testnet RPC endpoint for testing this. I am currently on AMOY testnet, does this have this change?

Need some clarity on this.

Hi,
nothing will change. RPCs will stay the same. Contracts that use MATIC on PoS don’t have to do anything, it will all be automatically upgraded, per this post: Save the Date: MATIC → POL Migration Coming September 4th. Everything You Need to Know (polygon.technology)

In general, you don’t have to do anything if you are on PoS except:

  • Update price oracles: Core developers of DeFi protocols may consider transitioning to a POL price oracle in the coming month to ensure accurate price feeds and data integration.
  • Deprecate MATIC name on front ends: Additionally, core developers may consider deprecating the use of MATIC and wMATIC on dApp front ends in favor of POL and wPOL to ensure accuracy as to relevant gas token.

So, minor UX fixes may be necessary. If you are doing advanced things with MATIC - like using it as collateral and reading a fixed supply, or doing any other dynamic assignment operations (a rebasing derivative, for example), you might have to do more work, but unless you’re such an outlier, your contracts should all work as intended.

The migration contract is live on the Amoy testnet btw: static/network/testnet/amoy/index.json at master · 0xPolygon/static (github.com)

You can tell us more about what you have deployed, and we would be happy to check more thoroughly for you!

With the upcoming migration from MATIC to POL, expect some changes:

  1. Mainnet RPC Endpoint: Yes, the RPC endpoint will likely change with the migration. Be sure to update your configurations to the new endpoints when they are announced.
  2. Old Transactions: Don’t worry about losing old transactions. The transaction history will still be available even after the migration.
  3. Existing Contracts: Typically, you won’t need to redeploy your contracts. They should continue to work as before, but it’s a good idea to double-check the migration details just to be sure.
  4. Testnet RPC: For testing, you should check Polygon’s documentation for the latest testnet RPC endpoints. The AMOY testnet might not reflect the changes, so keep an eye on Polygon’s updates.

Keep an eye on official Polygon channels for the latest info and detailed instructions.

1 Like

Thank you sir for all good information amazing project