You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 25, 2024. It is now read-only.
But I'm not sure why the error comes with selected pool pairs only. The same pool pair is available to to swap on app.uniswap.org without any issues. Please help me figure this out. The pool pair used to test was weth and matic on polygon chain.
The text was updated successfully, but these errors were encountered:
hey @kundannetsetDemo, use ethers 5.7 and I moved onto using the universal router sdk for swapping on Uniswap which is more efficient. You can find a guide here.
This error does not occur every-time but happens frequently sometime.
Error: call revert exception [ See: https://links.ethers.org/v5-errors-CALL_EXCEPTION ] (method="token0()", data="0x", errorArgs=null, errorName=null, errorSignature=null, reason=null, code=CALL_EXCEPTION, version=abi/5.7.0)
I have gone through the github example mentioned here and mostly I guess the issue comes when fetching the poolInfo as mentioned below:
const [token0, token1, fee, tickSpacing, liquidity, slot0] = await Promise.all([ poolContract.token0(), poolContract.token1(), poolContract.fee(), poolContract.tickSpacing(), poolContract.liquidity(), poolContract.slot0(), ]);
But I'm not sure why the error comes with selected pool pairs only. The same pool pair is available to to swap on app.uniswap.org without any issues. Please help me figure this out. The pool pair used to test was weth and matic on polygon chain.
The text was updated successfully, but these errors were encountered: