docs icon indicating copy to clipboard operation
docs copied to clipboard

QuoterV2 contract doesn't work in Blast to return prices

Open gamebak opened this issue 1 year ago • 0 comments

I've been using the quoterV2 to get prices in multiple chains but it fails in the Blast chain.
Can you help me with a solution?

The quoterV2 I'm using from your deployment docs: 0x6Cdcd65e03c1CEc3730AeeCd45bc140D57A25C77

I'm trying to get the prices for ETH/USDB pool, using quoteExactInputSingle((address,address,uint256,uint24,uint160))

Pool link: https://app.uniswap.org/explore/pools/blast/0xf5A23bDD36a56EDe75D503F6f643d5eaF25B1a8F Note: This code works fine in the rest of the chains where I tested, except blast.

{
      tokenIn: '0x4300000000000000000000000000000000000004', // Weth
      tokenOut: '0x4300000000000000000000000000000000000003', // Usdb
      fee: 500,
      amountIn: BigNumber { _hex: '0x016345785d8a0000', _isBigNumber: true },
      sqrtPriceLimitX96: '0'
}

The error is under. I suspect that maybe there's a problem with the WETH address in the quoter, but I have no solution.

Error: call revert exception [ See: https://links.ethers.org/v5-errors-CALL_EXCEPTION ] (method="quoteExactInputSingle((address,address,uint256,uint24,uint160))", data="0x", errorArgs=null, errorName=null, errorSignature=null, reason=null, code=CALL_EXCEPTION, version=abi/5.7.0)

gamebak avatar Apr 11 '24 10:04 gamebak