addLiquidity() function reverts without any reason on local development instance of ganache, any ideas why this might be happening?
Some background:
This is how I am calling the addLiquidity Function
const blockNumber = await web3.eth.getBlockNumber();
const block = await web3.eth.getBlock(blockNumber);
const timestamp = block.timestamp + 300;
await router.addLiquidity(
ERC20_TOKEN_1_ADDRESS,
ERC20_TOKEN_2_ADDRESS,
web3.utils.toWei('1', 'ether'),
web3.utils.toWei('1', 'ether'),
web3.utils.toWei('0.001', 'ether'),
web3.utils.toWei('0.001', 'ether'),
OWNER_ADDRESS,
timestamp,
{ gas: 4000000 }
)