PlusPool
이 컨트랙트는 KLAYswap의 플러스 풀 유동성 제공자의 활용 자산을 관리합니다. 유동성 제공자는 예치자산에 따라 플러스 예치를 사용하여 플러스자산(예치자산+활용자산)으로 수익을 극대화할 수 있습니다. 그러나 높은 자산활용 비율은 자동 반환을 일으켜 손실을 볼 수 있습니다.
Address
Contract adress after production is deployed (scope link)
Events, Read-Only Functions, and State-Changing Functions
Events
ChangeBorrowFactor
event ChangeBorrowFactor(uint newBorrowFactor);
LTV 변경시 발생하는 이벤트
ChangeLiquidationFactor
event ChangeLiquidationFactor(uint newLiquidationFactor);
임계 자동반환 비율 변경시 발생하는 이벤트
ChangeBorrowable
event ChangeBorrowable(address token, bool b);
활용가능여부 변경시 발생하는 이벤트
GiveReward
event GiveReward(address user, uint amount, uint lastIndex, uint rewardSum);
KSP 보상 지급시 발생하는 이벤트
GiveAirdropReward
event GiveAirdropReward(address user, address dist, uint amount, uint currentIndex, uint userAirdropSum);
Airdrop 보상 지급시 발생하는 이벤트
OpenPosition
event OpenPosition(address user, uint amountA, uint amountB, uint borrowA, uint borrowB, uint amountLP, uint userLP);
플러스 예치시 발생하는 이벤트
Parameters
user : 사용자 주소
amountA : tokenA 의 담보 수량
amountB : tokenB 의 담보 수량
borrowA : tokenA 의 활용 수량
borrowB: tokenB 의 활용 수량
amountLP: 예치 LP 수량
userLP : 유저 총 예치 LP 수량
ClosePosition
event ClosePosition(address user, uint amountLP, uint amountA, uint amountB, uint userLP);
플러스 예치 출금시 발생하는 이벤트
Parameters
user : 사용자 주소
amountLP : 출금 LP 수량
amountA : 출금된 tokenA 수량
amountB : 출금된 tokenB 수량
userLP : 유저 총 예치 LP 수량
Liquidate
event Liquidate(address user, uint idx, uint debtA, uint debtB, uint lp, uint debtRatio, uint time);
자동 반환시 발생하는 이벤트
Parameters
user : 사용자 주소
idx : 사용자 누적 자동 반환 횟수
deptA : 자동 반환된 tokenA 수량
deptB : 자동 반환된 tokenB 수량
lp : 유저 예치 LP 수량
debtRatio : 자동 반환시 자산 활용 비율
time : 자동 반환 발생시간
Last updated
Was this helpful?