Hi All,
I've forked a token from BSC, now when I try to deploy on AVAX C-Chain (Fuji testnet)I am met with a 32000 gas estimation error. this issue arises when I use the pangolin Fuji router address.
Can anyone help me to sort out this issue?
for info: I am using Remix Ethereum.
a snippet from the contract code:
Create a uniswap pair for this new token
IUniswapV2Router02 uniswapV2Router = IUniswapV2Router02(0x2D99ABD9008Dc933ff5c0CD271B88309593aB921);
_uniswapV2Pair = IUniswapV2Factory(uniswapV2Router.factory()).createPair(address(this), uniswapV2Router.WETH());
_uniswapV2Router = uniswapV2Router;
i have a simular problem using trader joes address
constructor () public {
_rOwned[_msgSender()] = _rTotal;
IUniswapV2Router02 _uniswapV2Router = IUniswapV2Router02(0x60aE616a2155Ee3d9A68541Ba4544862310933d4);
// Create a uniswap pair for this new token
uniswapV2Pair = IUniswapV2Factory(_uniswapV2Router.factory())
.createPair(address(this), _uniswapV2Router.WETH());
// set the rest of the contract variables
uniswapV2Router = _uniswapV2Router;
//exclude owner and this contract from fee
_isExcludedFromFee[owner()] = true;
_isExcludedFromFee[address(this)] = true;
emit Transfer(address(0), _msgSender(), _tTotal);
}```