Skip to content

Questions about liquidity calculation #60

Discussion options

You must be logged in to vote

I mean why do we start calculating L based on this fact?

This comes from the nature of the constant product formula, $x * y = k$: when liquidity is added, it must be spread evenly along the entire curve. This guarantees that there's liquidity at any point of the curve (at any price that's within the curve). Uniswap V2 used an infinite curve (it never crossed the axes) but Uniswap V3 uses curves that are limited by user-chosen prices. Thus, when a liquidity provider adds liquidity, it must be guaranteed that the liquidity is available at any price within the chosen price range, but not at the boundaries or outside of the price range.

What's the relation of these two points to the the th…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@ppoliani
Comment options

Answer selected by ppoliani
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants