Open Samboy76 opened 1 year ago
Hi @Samboy76
Did you verify that the Pair address is correct? Does a pair exist for the two tokens?
What version of the SDK are you using? Pair.getAddress
only accepts 2 parameters in the latest version.
Please make sure you are using the v2-sdk
package and not the deprecated uniswap/sdk
I can not reproduce your issue, calling getReserves
on any UniswapV2Pair contract works for me. If the address is correct and the address you are calling is a UniswapV2Pair, this is not an issue with this SDK but either with the RPC provider you are using or with Web3.js.
Hello,
I have an issue in that I cannot get passed executing code line
await pairContract.functions.getReserves();
shown in below code snippet. There is no error caught in trycatch so what am I doing wrong here? Any suggestions please?Truffle v5.5.31 (core: 5.5.31) Ganache v7.4.3 Solidity - >=0.5.0 <0.9.0 (solc-js) Node v16.17.0 Web3.js v1.7.4
Thank you