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
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?
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?
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.
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
Learn to use all of Uniswap's swap and liquidity functionality with code. bit.ly/3JkXYqL
Thank you man! I have spent many hours with the QuoterV2 thinking you could call it like the V1. Thanks a bunch!!
Thanks for the great vids! You make it easier to understand the complicated code for beginners like me.
I appreciate you watching!
thanks a lot mate once again . So tired of working with 3rd party api this is the best solution for long term solutions
Glad it helped!
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
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?
What is the "callStatic" function in golang?
Great tutorial
Glad it's helpful!
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
ignore ..i was in different chain
Glad you figured it out!
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?
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.
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
Yes. You need to adjust for the decimals on the tokens you're using. Most ERC20 tokens have 18 decimals, but WBTC has 8