SinglePool Factory
이 컨트랙트는 단일풀 생성/관리 컨트랙트로써 유동성 제공자는 자산을 예치/출금하고 플러스풀 사용자는 활용자산을 단일풀에서 가져오거나 반환하게 됩니다.
Address
Events, Read-Only Functions, and State-Changing Functions
Events
CreatePool
event CreatePool(address token, address pool, uint exid);SinglePool 생성시 발생하는 이벤트
Parameters
token : KLAY, KIP7 토큰 주소
pool : 생성된 SinglePool 주소
exid : SinglePool ID
SetDepositActive
event SetDepositActive(address poolAddress, bool b);SinglePool 예치 가능여부 변경시 발생되는 이벤트
SetWithdrawActive
event SetWithdrawActive(address poolAddress, bool b);SinglePool 출금 가능여부 변경시 발생되는 이벤트
ChangeMiningRate
event ChangeMiningRate(uint _mining);SinglePool 채굴비율 변경시 발생되는 이벤트
Read-Only Functions
mining
KSP 채굴 비율
1 ~ 10000, 단위 0.0001
기본 - 500 ( 총 KSP 채굴량의 5% )
getPoolCount
Single Pool 개수
getPoolAddressByIndex
function getPoolAddressByIndex(uint idx) public view returns (address)Single Pool 주소 조회
borrowBalanceStored
function borrowBalanceStored(address token, address user, address poolAddress) public view returns (uint) 활용자산 수량
Parameters
token : 토큰 주소
user : 조회 지갑 주소
poolAddress : 대출을 수행한 풀의 주소
Last updated