This contract creates PlusPools and manages the state of each PlusPool.
Cypress : arrow-up-right0x01431F2a0D8c25646d1995e9ad345581D523341Darrow-up-right
CreatePool
event CreatePool(address tokenA, address tokenB, address lpToken, uint borrowFactor, uint liquidationFactor, bool borrowableA, bool borrowableB, address poolAddress, uint exid);
Event to create new PlusPool
Parameters
tokenA : A token address in LP
tokenA
tokenB : B token address in LP
tokenB
lpToken : address in LP
lpToken
borrowFactor : Utilization cost interest rate of utilized assets
borrowFactor
liquidationFactor : automatic return factor
liquidationFactor
borrowableA : Whether tokenA can be borrowable
borrowableA
borrowableB : Whether tokenB can be borrowable
borrowableB
poolAddress : PlusPool contract address of this pool
poolAddress
exid : PlusPool id
exid
SetDepositActive
event SetDepositActive(address plusPoolAddress, bool b);
Event that occurs when PlusPool deposit availability is changed
SetWithdrawActive
Event that occurs when PlusPool withdrawal availability is changed
Number of PlusPools
getPoolAddressByIndex
get PlusPool address by index number
event SetWithdrawActive(address plusPoolAddress, bool b);
function getPoolAddressByIndex(uint idx) public view returns (address)