Pool Deployer
#
Code#
AddressAlgebraPoolDeployer
is deployed at 0x2D98E2FA9da15aa6dC9581AB097Ced7af697CB92
on the Polygon mainnet.
#
Events#
FactoryEmitted when the factory address is changed
factory
The factory address after the address was changed
#
Read-Only Functions#
parametersGet 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
dataStorage
The pools associated dataStoragefactory
The factory addresstoken0
The first token of the pool by address sort ordertoken1
The second token of the pool by address sort order
#
State-Changing Functions#
deployDeploys a pool with the given parameters by transiently setting the parameters storage slot and then clearing it after deploying the pool.
Params
dataStorage
The pools associated dataStoragefactory
The contract address of the Algebra factorytoken0
The first token of the pool by address sort ordertoken1
The second token of the pool by address sort order
Returns
pool
The deployed pool's address
#
setFactorySets the factory address to the poolDeployer for permissioned actions
Params
factory
The address of the Algebra factory