Tick
Ticks partition the space of possible prices into discrete price ranges. Consequently, the infinite price range from 0 to ∞ is demarcated by evenly distributed discrete ticks. This tick design enables liquidity to be added within any two ticks. More details on the tick concept here.
GitHub File: tick.ts
Properties
Public
Property | Type | Modifier | Description |
---|---|---|---|
index | number | readonly | The index of the Tick which corresponds to a certain price. |
liquidityGross | readonly | The gross tally of liquidity referencing the tick. Tick is uninitialized if liquidityGross is zero. | |
liquidityNet | readonly | Amount of liquidity added or subtracted to the pool's active liquidity when the tick is crossed. |
Constructor
Parameters
Params | Type | Description |
---|---|---|
index | number | The index of the Tick which corresponds to a certain price. |
liquidityGross | The gross tally of liquidity referencing the tick. Tick is uninitialized if liquidityGross is zero. | |
liquidityNet | Amount of liquidity added or subtracted to the pool's active liquidity when the tick is crossed. |
Last updated