API reference v1.0
Introduction
periphery
tokenomics
IPoolInitializer

IPoolInitializer

IPoolInitializer

Creates and initializes V3 Pools Provides a method for creating and initializing a pool, if necessary, for bundling with other methods that require the pool to exist.

Functions

createAndInitializePoolIfNecessary

createAndInitializePoolIfNecessary(address,address,uint160) payable external

Creates a new pool if it does not exist, then initializes if not initialized

NameTypeDescription
token0addressThe contract address of token0 of the pool
token1addressThe contract address of token1 of the pool
sqrtPriceX96uint160The initial square root price of the pool as a Q64.96 value

Returns:

NameTypeDescription
pooladdress

IPoolInitializer

Creates and initializes V3 Pools Provides a method for creating and initializing a pool, if necessary, for bundling with other methods that require the pool to exist.

Functions

createAndInitializePoolIfNecessary

createAndInitializePoolIfNecessary(address,address,uint160) payable external

Creates a new pool if it does not exist, then initializes if not initialized

NameTypeDescription
token0addressThe contract address of token0 of the pool
token1addressThe contract address of token1 of the pool
sqrtPriceX96uint160The initial square root price of the pool as a Q64.96 value

Returns:

NameTypeDescription
pooladdress

IPoolInitializer

Creates and initializes V3 Pools Provides a method for creating and initializing a pool, if necessary, for bundling with other methods that require the pool to exist.

Functions

createAndInitializePoolIfNecessary

createAndInitializePoolIfNecessary(address,address,uint160) payable external

Creates a new pool if it does not exist, then initializes if not initialized

NameTypeDescription
token0addressThe contract address of token0 of the pool
token1addressThe contract address of token1 of the pool
sqrtPriceX96uint160The initial square root price of the pool as a Q64.96 value

Returns:

NameTypeDescription
pooladdress