0

Is it possible to use an ERC token contract on the Binance chain? Would you just replace the uniswap router for the pancakeswap router? Or is it more complicated than that?

1
  • If your ERC20 token does depend on some exchange such as Uniswap, which is reasonably unlikely, then of course you would have to change this to whatever contract instance is available on a different chain. In this case, assuming Pancakeswap was fully compatible with Uniswap, you would just plug that in instead. Jun 29 at 21:46
1

ERC20 and BEP20 are not fully interchangeable. BEP20 has some extra stuff, if I remember right, so you'll need to add those.

Also, a token typically has no idea about DEX routers - that logic should be in another contract which simply utilizes the token. Token code should be kept very minimal and simple.

0

It will work this way by just changing the router addresses, but its very bad practice. There are some additional parameters on BEP20 so this might cause some unwanted bugs.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.