SinglePool
이 컨트랙트는 단일풀 컨트랙트로써 유동성 제공자는 자산을 예치/출금하고 플러스풀 사용자는 활용자산을 단일풀에서 가져오거나 반환하게 됩니다.
Address
Contract adress after production is deployed (scope link)
Events, Read-Only Functions, and State-Changing Functions
Events
GiveReward
event GiveReward(address user, uint amount, uint lastIndex, uint rewardSum);
KSP 보상 지급시 발생하는 이벤트
Deposit
event Deposit(address user, uint depositAmount, uint depositTokens, uint totalAmount, uint totalSupply);
단일풀 예치시 발생하는 이벤트
Parameters
user : 예치한 지갑 주소
depositAmount : 예치한 Token 수량
depositTokens : 생성된 SP Token 수량
totalAmount : 풀에 예치된 총 Token 수량
totalSupply : 풀에 생성된 총 SP Token 수량
Withdraw
event Withdraw(address user, uint withdrawAmount, uint withdrawTokens, uint totalAmount, uint totalSupply);
단일풀 출금시 발생하는 이벤트
Parameters
user : 사용자 주소
withdrawAmount : 출금한 Token 수량
withdrawTokens : 출금한 SP Token 수량
totalAmount : 풀에 예치된 총 Token 수량
totalSupply : 풀에 생성된 총 SP Token 수량
Borrow
event Borrow(address user, address plusPoolAddress, uint borrowAmount, uint accountBorrows, uint totalBorrows);
플러스 예치시 활용자산 이용시 발생하는 이벤트
Parameters
user : 사용자 주소
plusPoolAddress : 플러스풀 주소
borrowAmount : 활용자산으로 사용된 token 수량
accountBorrows : 사용자 총 활용자산 수량
totalBorrows : 단일풀 총 활용자산 수량
Repay
event Repay(address user, address plusPoolAddress, uint repayAmount, uint accountBorrows, uint totalBorrows);
활용자산 반환시 발생하는 이벤트
Parameters
user : 사용자 주소
plusPoolAddress : 플러스풀 주소
repayAmount : 반환된 활용자산 token 수량
accountBorrows : 사용자 총 활용자산 수량
totalBorrows : 단일풀 총 활용자산 수량
Last updated
Was this helpful?