Deploying ERC20 smart contract to AVAX C-Chain Router error

Hi,
I've forked a token from BSC and added some revisions, now when I try to deploy on AVAX C-Chain I am met with an 32000 gas estimation error. I resolved this when deploying on BSC by changing the router address to the correct pancakeswapV2 router. However, now when I replace the router address with that of Pangolin, I am getting this error.

Can anyone pls advise what I need to do to resolve this?
I am using Remix Ethereum for compiling, no issues with the compiler. I have deployed other smart contracts to the Fuji testnet that do not require the router address and no issues with that.

a snippet from the contract code;
Create a uniswap pair for this new token IUniswapV2Router02 uniswapV2Router = IUniswapV2Router02(0xE54Ca86531e17Ef3616d22Ca28b0D458b6C89106); _uniswapV2Pair = IUniswapV2Factory(uniswapV2Router.factory()).createPair(address(this), uniswapV2Router.WETH()); _uniswapV2Router = uniswapV2Router;

appreciate any solutions to this.

You can try to use this TraderJoe router: 0x60aE616a2155Ee3d9A68541Ba4544862310933d4

1 Like