IUniswapV3PoolImmutables
from https://github.com/Uniswap/v3-core/tree/main/contracts/interfaces. Copyright (c) 2022 Uniswap Labs
These parameters are fixed for a pool forever, i.e., the methods will always return the same values
Functions
factory
The contract that deployed the pool, which must adhere to the IUniswapV3Factory interface
function factory() external view returns (address);
Returns
Name | Type | Description |
---|---|---|
<none> | address | The contract address |
token0
The first of the two tokens of the pool, sorted by address
function token0() external view returns (address);
Returns
Name | Type | Description |
---|---|---|
<none> | address | The token contract address |
token1
The second of the two tokens of the pool, sorted by address
function token1() external view returns (address);
Returns
Name | Type | Description |
---|---|---|
<none> | address | The token contract address |
fee
The pool's fee in hundredths of a bip, i.e. 1e-6
function fee() external view returns (uint24);
Returns
Name | Type | Description |
---|---|---|
<none> | uint24 | The fee |
tickSpacing
The pool tick spacing
Ticks can only be used at multiples of this value, minimum of 1 and always positive e.g.: a tickSpacing of 3 means ticks can be initialized every 3rd tick, i.e., ..., -6, -3, 0, 3, 6, ... This value is an int24 to avoid casting even though it is always positive.
function tickSpacing() external view returns (int24);
Returns
Name | Type | Description |
---|---|---|
<none> | int24 | The tick spacing |
maxLiquidityPerTick
The maximum amount of position liquidity that can use any tick in the range
This parameter is enforced per tick to prevent liquidity from overflowing a uint128 at any point, and also prevents out-of-range liquidity from being used to prevent adding in-range liquidity to a pool
function maxLiquidityPerTick() external view returns (uint128);
Returns
Name | Type | Description |
---|---|---|
<none> | uint128 | The max amount of liquidity per tick |