1

There are two things I do not understand about UniswapV3 liquidity which are not explicitly addressed in the whitepaper.

  1. Why is there a link/dependency between the amounts of tokens X,Y and the range of the LP position? e.g if you move the min/max price sliders on the LP interface it changes the amount of tokens deposited.

  2. When someone trades token X for Y and the amount of token X in the pool increases. How is this token distributed across ticks?

1 Answer 1

0

In uniswap V3 the balance of the tokens is based on the tick / price range and the current sqrtPrice.

As the price travels through a active tick range it will start 100% token0, in the middle it will be closest to 50/50, and at the end of the active tick range it will be 100% token1

this is how the contracts are able to concentrate a users liquidity.

V3 pool liquidity is held in Active tick ranges, which is based on the tick spacing of the pool which is determined by the pools fee.

0.3% == 60 tick spacing, 0.01% == 1 tick spacing, 0.05 == 10 tick spacing, 1% == 200

The tokens will sit only within ticks that are evenly divisible by the spacing. So swaps of tokens will stay in the tick range in which they were traded, if it crosses a tick range during the swap, then the tokenIn will be split at the tick price it crosses and x amount will go to first tick then second tick, going as many tick ranges as needed for the swap

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.