Jeiwan / uniswapv3-book

Uniswap V3 Development Book

Home Page:https://uniswapv3book.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Correct Price Range

juroberttyb opened this issue · comments

In the bottom of this page, price range should be corrected from [ $2^{-128}$, $2^{128}$ ] to ( $2^{-128}$, $2^{128}$ )

If I understand correctly, since $\sqrt{P}$ is expressed as a fixed point Q64.96 number, the actual price P could not be exactly $2^{-128}$ nor $2^{128}$ by nature of floating point numbers.

(Edit for correct math expression.)

As you said, Q64.96 is a fixed point number, not a floating point one. So I don't see why it cannot be either $2^{128}$ or $2^{-128}$.