Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

QuoterV2 contract doesn't work in Blast to return prices #692

Open
gamebak opened this issue Apr 11, 2024 · 0 comments
Open

QuoterV2 contract doesn't work in Blast to return prices #692

gamebak opened this issue Apr 11, 2024 · 0 comments

Comments

@gamebak
Copy link

gamebak commented Apr 11, 2024

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)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant