LogoLogo
English
English
  • ‭
  • Introduction
  • Protocol Overview
  • Core Concept
  • KLAYswap Advantages
  • Risk & Security
  • Privacy Policy
  • Audit
  • TOKENOMICS
    • KSP
      • KSP TOKENOMICS
      • Automation of KSP distribution rate
        • KSP distribution ratio reflection policy
      • KSP Allocation
  • PRODUCT
    • SWAP
    • Supply & Borrow
      • Automatic Return
      • Parameter
      • Detailed policy of Supply & Borrow
    • V2 Pool
    • V3 Pool
      • V2 to V3 Migration
        • V2 to V3 Migration Guide
        • V2 to V3 Migration Policy
      • Supply Liquidity to V3 pool
        • V3 Supply Guide
        • V3 Supply Policy
      • V3 to V3 Migration
        • V3 to V3 Migration Guide
        • V3 to V3 Migration Policy
      • Remove Liquidity from V3 Pool
        • V3 Remove Guide
        • V3 Remove Policy
    • KSP Staking
      • Staking Policy
    • Governance
      • Governance Voting Policy
    • Pool Airdrop
    • APR & APY
      • TVL
      • Pool
      • Staking
    • Interest rate
  • DEVELOPERS
    • Contract
      • Factory
      • Exchange
      • PoolVoting
      • VotingKSP
      • Treasury
      • Distribution
      • Governor
      • SinglePool
      • SinglePool Factory
      • PlusPool
      • PlusPool Factory
      • Store
      • Utils
      • Single/Plus Utils
      • Helper
      • EcoPotVoting
      • EcoPot
      • V3
        • V3Factory
        • V3Pool
        • NonfungiblePositionManager
        • NonfungibleTokenPositionDescriptor
        • V3SwapRouter
        • V3Migrator
        • V3Estimator
        • PositionMigrator
        • V3Treasury
        • V3AirdropOperator
        • UniversalRouter
    • Airdrop
      • Set Airdrop Operator
      • Start Airdrop
    • EcoPot
      • Set EcoPot
      • Start EcoPot
  • HOW-TO GUIDES
    • KLAYswap Guide
    • How to add liquidity on KLAYswap
    • [Burrito Wallet] How to deposit assets using mobile devices?
    • How to create a liquidity pool on KLAYswap
    • How to stake and vote on KLAYswap
    • How to deposit assets
      • Deposit Klaytn-based assets
      • Deposit Ethereum-based assets
      • Deposit XRP
    • FAQ
  • KLAYswap
  • Orbit Bridge
  • KLAYswap git
  • Orbit Bridge git
  • KLAYswap audit report
Powered by GitBook
On this page
  • Code
  • Events, Read-Only Functions, and State-Changing Functions
  1. DEVELOPERS
  2. Contract
  3. V3

V3AirdropOperator

This contract operates each airdrop. LP and token to be airdropped are determined at the time of creation and cannot be modified.

Code

Github Link: (Will be updated after official launch)

Events, Read-Only Functions, and State-Changing Functions

Read-Only Functions

getAirdropStat

function getAirdropStat() external view returns (
    uint256 totalAmount,
    uint256 blockAmount,
    uint256 distributableBlock,
    uint256 endBlock,
    uint256 distributed,
    uint256 remain,
    bool created
) 

Return Values:

Name
Type
Description

totalAmount

uint256

The total amount of airdrop

blockAmount

uint256

The airdroped amount of token per block

distributableBlock

uint256

The block number of available block

endBlock

uint256

The block number of airdrop ended

distributed

uint256

The amount of current distributed

remain

uint256

The amount of remained

created

bool

intialized

getDistributionId

function getDistributionId() public view returns (bytes32 id)

Return Values:​

Name
Type
Description

id

bytes32

The ID of the distribution

State-Changing Functions

changeNextOwner

function changeNextOwner(address _nextOwner) external

changeOwner

function changeOwner() external

createDistribution

function createDistribution(
    uint256 totalAmount,
    uint256 blockAmount,
    uint256 startBlock
) external

Parameters:

Name
Type
Description

totalAmount

uint256

Total number of tokens to be distributed by airdrop

blockAmount

uint256

Token quantity to be distributed per block

startBlock

uint256

Airdrop start block number

deposit

function deposit(uint256 amount) external

If there is an issue of token exhaustion or extension during the airdrop process, tokens can be recharged using the AirdropOperator's Deposit function.

  • When executing the function, transfer more than the amount of tokens entered into the wallet.

  • The token specified when creating the operator is charged.

  • When recharging due to exhaustion, it will be applied from the block after recharging.

refixBlockAmount

function refixBlockAmount(uint256 blockAmount) external
  • Modify the amount of tokens distributed per block

  • It is applied from the block after the transaction is executed.

withdraw

function withdraw(address _token) external
  • The remaining tokens can be withdrawn after the Airdrop plan is in progress.

  • Withdrawal will be made to the owner's account.

PreviousV3TreasuryNextUniversalRouter