task("addLiquidityForEth", "add liquidity to mirrorgate instance") .addParam("qty", "the qty of tokens to add") .setAction(async (taskArgs) => { let accounts = await ethers.getSigners() let owner = accounts[0] // factory / router const router = await ethers.getContract("RouterETH") const qtyEth = ethers.utils.parseEther(taskArgs.qty); console.log("transfer to router", qtyEth.toString()) // return; let tx = await (await router.addLiquidityETH({ value: qtyEth, })).wait(1) console.log(`💦 addLiquidity | tx: ${tx.transactionHash}`) })