KLAYswap
Search…
KLAYswap
English
Introduction
Protocol Overview
Core Concept
KLAYswap Advantages
Risk & Security
Audit
TOKENOMICS
KSP
PRODUCT
SWAP
Single-side Deposit
Pair Deposit
Plus Deposit
KSP Staking & Voting
Governance
Drops
Ecopot
Pool Airdrop
APR & APY
DEVELOPERS
Contract
Factory
Exchange
PoolVoting
VotingKSP
Treasury
Distribution
Governor
SinglePool
SinglePool Factory
PlusPool
PlusPool Factory
Store
Utils
Single/Plus Utils
Helper
EcoPotVoting
EcoPot
Airdrop
EcoPot
HOW-TO GUIDES
KLAYswap Guide
How to add liquidity on KLAYswap
How to create a liquidity pool on KLAYswap
How to stake and vote on KLAYswap
How to deposit assets
FAQ
KLAYswap
Orbit Bridge
KLAYswap git
Orbit Bridge git
KLAYswap audit report
Powered By
GitBook
Treasury
This contract is a contract that manages airdrop operation. Operators with authority can set up and execute airdrops through Treasury Contract.
Code
Github Link: (Will be updated after official launch)
Address
Cypress : 0x29990aaF04f3D5Ac7d8C88beab1A009C1Ab4936e
Events, Read-Only Functions, and State-Changing Functions
Events
Read-Only Functions
State-Changing Functions
Events
ChangeCreationFee
1
event ChangeCreationFee(uint fee);
Copied!
Event that occurs when the creation fee (KSP) is changed
SetOperator
1
event SetOperator(address operator, bool valid);
Copied!
Event that occurs when setting operator
CreateDistribution
1
event CreateDistribution(address operator, address token, uint totalAmount, uint blockAmount, uint blockNumber, address[] targets, uint[] rates);
Copied!
Event that occurs when airdrop is set
RemoveDistribution
1
event RemoveDistribution(address operator, address token);
Copied!
Event that occurs when airdrop is removed
Deposit
1
event Deposit(address operator, address token, uint amount);
Copied!
Event that occurs when token deposit
RefixBlockAmount
1
event RefixBlockAmount(address operator, address token, uint blockAmount);
Copied!
Event that occurs when airdrop distribution amount
RefixDistributionRate
1
event RefixDistributionRate(address operator, address token, address[] targets, uint[] rates);
Copied!
Event that occurs when airdrop distribution rate
Read-Only Functions
distributionCount
Number of airdrop
distributionEntries
mapping(address => mapping(uint => address))
Number of distribution address each LP
distributionOperator
mapping (address => address)
Operator address each distribution address
fee
Distribution create fee
owner
owner
State-Changing Functions
changeCreationFee
1
function changeCreationFee(uint _fee) public
Copied!
Method of creation fee (KSP) change
only Owner
claim
1
function claim(address target) public
Copied!
Method that a user calls to claim the claimable airdrop tokens that has accumulated for the pair
Parameters
target
: LP address
createKlayDistribution
1
function createKlayDistribution(uint blockAmount, uint blockNumber, address[] memory targets, uint[] memory rates) public payable
Copied!
Method of KLAY distribution create
only Operator
createTokenDistribution
1
function createTokenDistribution(address token, uint amount, uint blockAmount, uint blockNumber, address[] memory targets, uint[] memory rates) public
Copied!
Method of KIP7 distribution create
only Operator
depositKlay
1
function depositKlay() public payable
Copied!
Method of KLAY deposit to airdrop
only Operator
depositToken
1
function depositToken(address token, uint amount) public
Copied!
Method of KIP7 deposit to airdrop
only Operator
refixBlockAmount
1
function refixBlockAmount(address token, uint blockAmount) public
Copied!
Method of change the amount paid per block
only Operator
refixDistributionRate
1
function refixDistributionRate(address token, address[] memory targets, uint[] memory rates) public
Copied!
Method of airdrop distribution rate change
only Operator
removeDistribution
1
function removeDistribution(address operator, address token) public
Copied!
Method of airdrop distribution remove
only Operator
Previous
VotingKSP
Next
Distribution
Last modified
5mo ago
Copy link
Contents
Code
Address
Events, Read-Only Functions, and State-Changing Functions