Tick, tick width and automation
Last updated
Last updated
Ticks in CLMM (Concentrated Liquidity Market Maker) is used to define the price relation of the two tokens in the pool.
Here is an illustration on what ticks looks like (borrowed from UniswapV3Book.com)
The i
here is the tick number. A few examples:
If i = 0
, then price
will be 0
If i = 1
, then price will be
You normally would see ticks from the Uniswap position NFT (like the one below). Specifically, each position contains Min Tick
and Max Tick
, which defines the lower tick and upper tick (i.e. the range) of the position.
In the example above, the tick width or range is -194110 - (-198160) = 4050.
To calculate the associated price range, we would need to find the price corresponding to min tick (-198160) and max tick (-194110). And that's not too hard to do:
Now you may wonder, why are the numbers so small? This is because 1 human readable ether is represented as 1e18 units on blockchain and the price above means 1 unit of ether is worth a really small number of USDC units. If we multiple the above prices by 1e18, we now get:
Min tick price -> 2479995070 units of USDC, which is 2479.99507 USDC because USDC has 6 decimals (i.e. 1 human readable USDC is represented as 1,000,000 units)
Max tick price -> 3718187510 units of USDC, which is 3718.18751 USDC.
Up to this point, we have went over ticks and the price range behind ticks.