IAlgebraFactory

The interface for the Algebra Factory

Events

Owner

Owner(address)

Emitted when the owner of the factory is changed

VaultAddress

VaultAddress(address)

Emitted when the vault address is changed

Pool

Pool(address,address,address)

Emitted when a pool is created

FarmingAddress

FarmingAddress(address)

Emitted when the farming address is changed

FeeConfiguration

FeeConfiguration(uint16,uint16,uint32,uint32,uint16,uint16,uint32,uint16,uint16)

Functions

owner

owner() view external

Returns the current owner of the factory

Returns:

poolDeployer

poolDeployer() view external

Returns the current poolDeployerAddress

Returns:

farmingAddress

farmingAddress() view external

Returns:

vaultAddress

vaultAddress() view external

Returns:

poolByPair

poolByPair(address,address) view external

Returns the pool address for a given pair of tokens and a fee, or address 0 if it does not exist

Returns:

createPool

createPool(address,address) external

Creates a pool for the given two tokens and fee

Returns:

setOwner

setOwner(address) external

Updates the owner of the factory

setFarmingAddress

setFarmingAddress(address) external

setVaultAddress

setVaultAddress(address) external

setBaseFeeConfiguration

setBaseFeeConfiguration(uint16,uint16,uint32,uint32,uint16,uint16,uint32,uint16,uint16) external

Changes initial fee configuration for new pools