Skip to main content
Helpful?

PoolInitializer

Git Source | Generated with forge doc

Inherits: ImmutableState

Initializes a Uniswap v4 Pool

Enables create pool + mint liquidity in a single transaction with multicall

Functions

initializePool

Initialize a Uniswap v4 Pool

function initializePool(PoolKey calldata key, uint160 sqrtPriceX96, bytes calldata hookData)
external
payable
returns (int24);

Parameters

NameTypeDescription
keyPoolKeythe PoolKey of the pool to initialize
sqrtPriceX96uint160the initial sqrtPriceX96 of the pool
hookDatabytesthe optional data passed to the hook's initialize functions
Helpful?