0

I am developing pancakeswap trading script but faced getReserves() error. So I am using @pancakeswap-libs/sdk npm package. when I use Fetcher.fetchPairData(weth, token, provider), occur this error. So I checked on pancakeswap interface but exist liquidity.

    const weth = await Fetcher.fetchTokenData(chainId, wbnbAddr, provider)
    console.log(weth)
    const token = await Fetcher.fetchTokenData(chainId, tokenAddr, provider);
    console.log(token)
    const pair = await Fetcher.fetchPairData(weth, token, provider);

Exception in fetchPairData() : call revert exception in method getReserves()

leopard
  • 3
  • 2
  • Please edit the question to limit it to a specific problem with enough detail to identify an adequate answer. – Community Dec 30 '22 at 20:23

0 Answers0