V2Treasury
Treasury Contract는 에어드랍 실행을 주관하는 컨트랙트입니다. 권한을 가진 Operator는 Treasury Contract를 통하여 에어드랍을 설정하고 집행할 수 있습니다.
Code
Github Link: (Will be updated after official launch)
Address
Events, Read-Only Functions, and State-Changing Functions
Events
ChangeCreationFee
event ChangeCreationFee(uint fee);생성 수수료(KSP) 변경 시 발생되는 이벤트
SetOperator
event SetOperator(address operator, bool valid);Operator 설정 시 발생되는 이벤트
CreateDistribution
event CreateDistribution(address operator, address token, uint totalAmount, uint blockAmount, uint blockNumber, address[] targets, uint[] rates);에어드랍 설정 시 발생되는 이벤트
Parameters
RemoveDistribution
event RemoveDistribution(address operator, address token);에어드랍 해제 시 발생되는 이벤트
Deposit
event Deposit(address operator, address token, uint amount);Deposit 이벤트
RefixBlockAmount
RefixBLockAmount 이벤트
RefixDistributionRate
RefixDistributionRate 이벤트
State-Changing Functions
changeCreationFee
Distribution 생성 수수료 변경 함수
only Owner
claim
유동성 풀 에어드랍 수령 함수
Parameters
target: 유동성 풀 주소
createKlayDistribution
KLAY Distribution 생성 함수
only Operator
createTokenDistribution
Distribution 생성 함수
only Operator
depositKlay
KLAY 예치 함수
only Operator
depositToken
KIP7 기반 토큰 예치 함수
only Operator
refixBlockAmount
Block 당 지급 수량 변경 함수
only Operator
refixDistributionRate
Block 당 지급율 변경 함수
only Operator
removeDistribution
Distribution 제거 함수
Distribution.removeDistribution() 함수 호출
only Operator
Last updated
