Quoter vs Quoter2 | Get Swap Quote with Code | Uniswap V3 | EthersJS

Поделиться
HTML-код
  • Опубликовано: 7 сен 2024

Комментарии • 22

  • @blockmancodes
    @blockmancodes  Год назад +1

    Learn to use all of Uniswap's swap and liquidity functionality with code. bit.ly/3JkXYqL

  • @luislozada8106
    @luislozada8106 4 месяца назад

    Thank you man! I have spent many hours with the QuoterV2 thinking you could call it like the V1. Thanks a bunch!!

  • @vilanovaalejandro500
    @vilanovaalejandro500 Год назад

    Thanks for the great vids! You make it easier to understand the complicated code for beginners like me.

  • @cosmicknox
    @cosmicknox Год назад

    thanks a lot mate once again . So tired of working with 3rd party api this is the best solution for long term solutions

  • @luckyrobertho2802
    @luckyrobertho2802 Год назад

    Thanks! Your video always amazed me!
    Maybe next, can you create a video that show and explain "how to build crypto payment gateaway with custom erc20 token"? Like binance pay?
    It would be super awesome in my opinion.
    Thank you

  • @user-ji1nw8ey6w
    @user-ji1nw8ey6w Год назад

    thanks for your videos, i have tow question , Why is the price always different in the code with half a percent compared to the price on the website, and it does not update in seconds? Is there a way to update the price every second and make it consistent with the website?

  • @franklee2924
    @franklee2924 Год назад

    What is the "callStatic" function in golang?

  • @jerrywang3225
    @jerrywang3225 Год назад

    Great tutorial

  • @bejojeffrin7033
    @bejojeffrin7033 Год назад

    Hi , This example is working fine for WETH USDC but it is throwing error for other pairs eg: USDC ,LINK ,fee:3000 its throwing error

  • @RootCSGO
    @RootCSGO Год назад

    Hello Blockman, the script returns different values depending on the fee value selected. However, in the uniswap web page when you enter an input amount you get the best possible output with the corresponding fee value automatically selected. How can I obtain the exact same output that Uniswap website gives me?

    • @blockmancodes
      @blockmancodes  Год назад

      Every fee is a different pool so that's expected. The uniswap interface finds the optimal route. This can be through many pools. Use the auto router for that.

  • @panchopacheco1247
    @panchopacheco1247 Год назад

    Another great tutorial.
    I had success using different 18 decimal tokens for tokenIn, but when I tried WBTC, it quoted
    a price close to 700,000! Is there something I should do differently for that token?
    Thanks

    • @blockmancodes
      @blockmancodes  Год назад

      Yes. You need to adjust for the decimals on the tokens you're using. Most ERC20 tokens have 18 decimals, but WBTC has 8