Skip to main content

V3 Factory & Pool

V3 Factory

The V3 Factory creates and indexes V3 pools. Unlike V2, the same token pair can have multiple pools with different fee tiers.

Key Functions

getPool

Returns the pool address for a token pair and fee tier.
Returns the zero address if the pool doesn’t exist.

ABI


V3 Pool

Each V3 Pool contract manages concentrated liquidity positions and swap execution for a specific token pair and fee tier.

Key Functions

slot0

Returns the current pool state.

liquidity

Returns the total active (in-range) liquidity.

fee / tickSpacing

token0 / token1

ABI

Example: Read Pool Price

Price Conversion

The pool stores price as sqrtPriceX96. To convert:
For precise calculations, use the @uniswap/v3-sdk library or the formulas in Ticks and Ranges.