Native Matic contract address

I am following the latest tutorial posted to youtube by Moralis about making a dex using the moralis SDK. I am trying to make an option for the user to use multiple chains but whenever i update the tokenList.json file to change the contract address to the Matic address, I get an error whenever I change the Matic token contract to the native address on the Matic chain. this is the address i am using,

0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee

Hey there,

I this the DEX video you are referring to?

and can I get more details on what error do you get for this?

yes that is the video i am referring to. I have changed my chain to work with Polygon and Ive gotten everything to work just fine but when I update Matic Token in the tokenList.json file so that the contract address is the address for the polygon network, my dexBack crashes. that is with using the contract address "
0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee"
when I change the address to “0x0000000000000000000000000000000000001010”
it doesn’t crash but it doesn’t give me a price conversion and also doesn’t let me swap the token, my console just says not approved

Every other token works and swaps fine on the polygon network but the native token matic

This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.