请问我应该怎么调用这个getReserves函数来获得两个token的数量?
我是需要实例化一下pancakerouter然后第一个参数写factory地址吗?
就像这样
pancakeContractInstance = new web3.eth.Contract(pancakeAbi, pancakeConstract);
getreserve=await pancakeContractInstance.methods.getReserves(factory,tokenA,tokenB)`
https://learnblockchain.cn/docs/web3.js/web3-eth-contract.html
https://docs.ethers.io/v5/api/contract/