API reference v1.0
Introduction
periphery
tokenomics
IAlgebraPoolDeployer

IAlgebraPoolDeployer

IAlgebraPoolDeployer

An interface for a contract that is capable of deploying Algebra Pools A contract that constructs a pool must implement this to pass arguments to the pool Developer note: This is used to avoid having constructor arguments in the pool contract, which results in the init code hash of the pool being constant allowing the CREATE2 address of the pool to be cheaply computed on-chain

Events

Factory

Factory(address)

Emitted when the factory address is changed

NameTypeDescription
factoryaddressThe factory address after the address was changed

Functions

parameters

parameters() view external

Get the parameters to be used in constructing the pool, set transiently during pool creation.

Returns:

NameTypeDescription
dataStorageaddress
factoryaddress
token0address
token1address

deploy

deploy(address,address,address,address) external

NameTypeDescription
dataStorageaddressThe pools associated dataStorage
factoryaddressThe contract address of the Algebra factory
token0addressThe first token of the pool by address sort order
token1addressThe second token of the pool by address sort order

Returns:

NameTypeDescription
pooladdress

setFactory

setFactory(address) external

NameTypeDescription
factoryaddressThe address of the Algebra factory