Methods
The public methods of the Factory contract
getPool
: Returns the address mapping from hosted tokens to token pools.
allPools
: Returns the pool address from the DEX pools address array.
poolCodeHash
: Returns the code hash of the DexfaiPool contract.
allPoolsLength
: Returns the length of the allPools array.
createPool
: Creates a DexfaiPool for a given ERC20 token.
setXfaiCore
: Assigns a new core contract to the DEX. Can only be called by the contract owner.
getXfaiCore
: Returns the latest core contract address.
setOwner
: Assigns a new owner to the factory. Can only be called by the contract owner.
getOwner
: Returns the owner of the factory.
Last updated