Jeiwan/uniswapv3-book

Calculating liquidity

rracinskij opened this issue · 1 comments

Hello, thank you for a great work!

Could you please explain why are you multiplying the USDC amount by ETH decimals (10^18) in the line 58 of unimath.py example?

amount_usdc = 5000 * eth

And not by 10*(18-6)=10^12?

I tested it on actual Uniswap position and the numbers matched with 10*12.

I'm using 18 decimals for USDC in the book for simplicity.