const owner = '0x3ab...';
const optionAMMPoolAddress = '0x3c...'
const optionAMMPool = await web3.eth.Contract('Contract ABI', optionAMMPoolAddress)
const [withdrawAmountOptions, withdrawTokenB] = await optionAMMPool.methods.getRemoveLiquidityAmounts(percentA, percentB).call()
await optionAMMPool.methods.removeLiquidity(percentA, percentB).send({})
const optionAMMPool = await ethers.getContractAt(optionAMMPoolAddress, 'Contract ABI')
const [withdrawAmountOptions, withdrawTokenB] = await optionAMMPool.getRemoveLiquidityAmounts(percentA, percentB)
await optionAMMPool.removeLiquidity(percentA, percentB)