For the complete documentation index, see llms.txt. This page is also available as Markdown.

V3AirdropOperator

해당 컨트랙트는 각 에어드롭을 운영합니다. 에어드랍되는 LP와 토큰은 생성 시점에 결정되며 수정할 수 없습니다.

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

에어드랍 총 물량

blockAmount

uint256

블록당 에어드랍된 토큰의 양

distributableBlock

uint256

에어드랍가능한 블록의 블록 번호

endBlock

uint256

에어드랍 종료되는 블록 번호

distributed

uint256

현재 분배된 양

remain

uint256

남아있는 양

created

bool

초기화되었는지 여부

getDistributionId

Return Values:

Name
Type
Description

id

bytes32

에어드랍 ID

State-Changing Functions

changeNextOwner

changeOwner

createDistribution

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

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

  • Modify the amount of tokens distributed per block

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

withdraw

  • The remaining tokens can be withdrawn after the Airdrop plan is in progress.

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

Last updated