Pool Deployer
Code#
Address#
AlgebraPoolDeployer is deployed at 0x2D98E2FA9da15aa6dC9581AB097Ced7af697CB92 on the Polygon mainnet.
Events#
Factory#
Emitted when the factory address is changed
factoryThe factory address after the address was changed
Read-Only Functions#
parameters#
Get the parameters to be used in constructing the pool, set transiently during pool creation. Called by the pool constructor to fetch the parameters of the pool
Returns
dataStorageThe pools associated dataStoragefactoryThe factory addresstoken0The first token of the pool by address sort ordertoken1The second token of the pool by address sort order
State-Changing Functions#
deploy#
Deploys a pool with the given parameters by transiently setting the parameters storage slot and then clearing it after deploying the pool.
Params
dataStorageThe pools associated dataStoragefactoryThe contract address of the Algebra factorytoken0The first token of the pool by address sort ordertoken1The second token of the pool by address sort order
Returns
poolThe deployed pool's address
setFactory#
Sets the factory address to the poolDeployer for permissioned actions
Params
factoryThe address of the Algebra factory