0:00 - Intro 1:09 - What is P? 1:39 - Example price of USDC in terms of ETH 4:21 - Example price of ETH in terms of USDC 6:28 - Price of ETH from sqrtPriceX96 7:40 - Example price of ETH from sqrtPriceX96 Uniswap USDC / ETH pool etherscan.io/address/0x8ad599c3A0ff1De082011EFDDc58f1908eb6e6D8#readContract Notes github.com/stakewithus/notes Take a course www.smartcontract.engineer/
Hi bro, thanks for your video. If it's possible can you make a video about flashloan with balancer? They have just a smart contract code with 2 functions without explanations. It looks similar to AAVE (I used code for AAVE flashloan from your video too)
I think I watched the video 4 times now and still not able to get the actual price. I am working with javascript. would be awesome to see some coding examples, even solidity would work for me.
0:00 - Intro
1:09 - What is P?
1:39 - Example price of USDC in terms of ETH
4:21 - Example price of ETH in terms of USDC
6:28 - Price of ETH from sqrtPriceX96
7:40 - Example price of ETH from sqrtPriceX96
Uniswap USDC / ETH pool
etherscan.io/address/0x8ad599c3A0ff1De082011EFDDc58f1908eb6e6D8#readContract
Notes
github.com/stakewithus/notes
Take a course
www.smartcontract.engineer/
thank you so much!! it took me almost whole day to resolve
Very helpful, thank you!
yo, your videos are amazing and easy to understand! thanks for sharing!
would like to know what's the note taking tool you are using?
excalidraw.com/
Great content ! How do you manage to write so fast the math? Is this some symbol that you already draw and you reuse, or there is a library?
copy paste from other notes
Hi bro, thanks for your video. If it's possible can you make a video about flashloan with balancer? They have just a smart contract code with 2 functions without explanations. It looks similar to AAVE (I used code for AAVE flashloan from your video too)
This returns the RATIO of eth in terms of usdc or x in terms of y (y/x). So confusing when you say Price, because i assume you mean the amountOut. -.-
I think I watched the video 4 times now and still not able to get the actual price. I am working with javascript. would be awesome to see some coding examples, even solidity would work for me.
I got the formula working, I know now 1 ETH = X USDC, but I can not figure out how to get the price in 1 USDC = X ETH
flip the price
@@Tijdperkzuid use one divide by 1 eth price
@@kangChihLun thanks for the reply, I already got it.
simple maths complicated lol