This contract is a single pool creation/management contract, where liquidity providers deposit/withdraw assets, and Plus Pool users bring or return utilized assets from a single pool.
Cypress : arrow-up-right0xd1890d8f02f4c63553658ba49c53a82eb84009e6arrow-up-right
CreatePool
event CreatePool(address token, address pool, uint exid);
Event to create new SinglePool
Parameters
token : A token address in target token
token
pool : SinglePool contract address of this pool
pool
exid : SinglePool ID
exid
SetDepositActive
event SetDepositActive(address poolAddress, bool b);
Event that occurs when SinglePool deposit availability is changed
SetWithdrawActive
event SetWithdrawActive(address poolAddress, bool b);
Event that occurs when SinglePool withdrawal availability is changed
ChangeMiningRate
event ChangeMiningRate(uint _mining);
Event that occurs when SinglePool mining rate is changed
The mining rate of the pool
It is a value between 0 and 10000, in units of 0.01%
Default - 500
Number of SinglePools
getPoolAddressByIndex
get SinglePool address by index number
Utilized asset quantity
token : Token address
user : User address
user
poolAddress : Address of the pool that made the loan
poolAddress
function getPoolAddressByIndex(uint idx) public view returns (address)
function borrowBalanceStored(address token, address user, address poolAddress) public view returns (uint)