Methods

The public methods of the Pool contract

getXfaiCore : Returns the latest Core contract address that is allowed to modify the pool state.

poolToken : Returns the ERC20 token address of the pool. Not to be confused with the LP token address of the pool.

initialize : Called once by the factory contract at time of deployment.

getStates : Returns the current reserve, weight, and last block timestamp of the pool.

update : Updates the reserve and weight. On the first call per block updates cumulative states. Only the latest core contract can call it.

mint : Issues new ERC20 LP tokens. Only the latest core contract can call it.

burn : Burns existing ERC20 LP tokens. Only the latest core contract can call it.

linkedTransfer : Transfers the pool's ERC20 pool token (not LP token). Only the latest core contract can call it.

totalSupply : Returns the total supply of LP tokens.

transfer : The ERC20 standard transfer function.

decimals : Returns the ERC20 token decimals for the LP token.

balanceOf : Returns the LP token balance of an address.

transferFrom : The ERC20 standard transferFrom function.

approve : The ERC20 standard approve function.

allowance : Returns the ERC20 allowance of an address for another address.

symbol : The ERC20 token symbol for the LP token.

name : The ERC20 token name for the LP token.

Last updated