Code github.com/t4sk/clamm Take a course www.smartcontract.engineer/
@santoshmore2953 Жыл бұрын
Course is free?
@hanginfty6028 Жыл бұрын
great explanation! Uniswap V3 book also did a good job on explanation & implementation of Uniswap V3
@marcosissler Жыл бұрын
Very nice and clear explanation
@metamodern764810 ай бұрын
0:59 dude, flashbang!
@buzzboo6442 Жыл бұрын
Great when the next of the series?
@dtory Жыл бұрын
Hey can you create an nft Marketplace with royalties and can trade any collection. Also if you can also make another video about arbitrage, flashloan and flashswap 😊 ❤❤
@cleverblocks6422 Жыл бұрын
Where did you get the tick "-200697" from ?
@smartcontractprogrammer Жыл бұрын
Uniswap V3 pool contract on mainnet
@doomtm55003 ай бұрын
why did u use decimals_0 = 1e18 decimals_1 = 1e6 2:03
@smartcontractprogrammer3 ай бұрын
it's easier to see how different decimals are handled in the math
@mohammad3703 Жыл бұрын
Is this mathematics even on group contracts Pancakeswap
@Perun42 Жыл бұрын
Huge thak you, for your video! But i have a question, may be you can answear: I got a slightly different prices from SqrtPriceX96 and from Tick, for some reason. SqrtPriceX96 and Tick took from 'slot0' of the pool ETH/USDT (fee 500). taking Ratio from SqrtPriceX96 as so: const numerator = slot0[0].toString() ** 2 const denominator = 2 ** 192 let ratio = numerator / denominator And ratio from Tick like this: let ratio = 1.0001 ** Number(slot0[1]) From SqrtPriceX96 i got: 1.9049054350037585e-9 From Tick i got 1.9047861880217006e-9 I did not apply decimal shift to them but any way they should be the same (at least i think so) Can you help please , why it is like that? Or maybe i do something wrong?
@smartcontractprogrammer Жыл бұрын
Check ETH is token 0 and USDT is token 1. If not do calculation with 1 / P where P = token 1 / token 0