AlgebraFactory

Algebra factory Is used to deploy pools and its dataStorages

Modifiers

onlyOwner

Variables

address owner

Returns the current owner of the factory

Developer note: Can be changed by the current owner via setOwner

address poolDeployer immutable

Returns the current poolDeployerAddress

address farmingAddress

Developer note: Is retrieved from the pools to restrict calling certain functions not by a tokenomics contract

address vaultAddress

struct AdaptiveFee.Configuration baseFeeConfiguration

mapping(address => mapping(address => address)) poolByPair

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

Developer note: tokenA and tokenB may be passed in either token0/token1 or token1/token0 order

Functions

constructor

constructor(address,address) public

createPool

createPool(address,address) external

Creates a pool for the given two tokens and fee

Returns:

setOwner

onlyOwner

setOwner(address) external

Updates the owner of the factory

setFarmingAddress

onlyOwner

setFarmingAddress(address) external

setVaultAddress

onlyOwner

setVaultAddress(address) external

setBaseFeeConfiguration

onlyOwner

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

Changes initial fee configuration for new pools