Fizzswap
English
English
  • Introduction
  • Protocol Overview
  • Core Concept
  • Risk & Security
  • Privacy Policy
  • Audit
  • Fizz Token
    • Fizzswap Protocol
  • PRODUCT
    • SWAP
    • V2 Pool
    • V3 Pool
      • 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
  • GET STARTED
    • Create a Wallet
    • How to Transfer ETH to the Silicon Network
  • DEVELOPERS
    • Contract
      • V2Factory
      • Exchange
      • VotingRewardToken
      • V2Treasury
      • Distribution
      • Governor
      • V2Router
      • V2Helper
      • V3Factory
      • V3Pool
      • NonfungiblePositionManager
      • NonfungibleTokenPositionDescriptor
      • V3SwapRouter
      • V3Migrator
      • V3Estimator
      • PositionMigrator
      • V3Treasury
      • UniversalRouter
      • V3AirdropOperator
  • Fizzswap
  • Silicon Bridge
  • Github (fork)
  • Audit report (fork)
Powered by GitBook
On this page
  • Code
  • Events, Read-Only Functions, and State-Changing Functions
Export as PDF
  1. DEVELOPERS
  2. Contract

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 airdropped 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

initialized

getDistributionId

function getDistributionId() public view returns (bytes32 id)
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.

PreviousUniversalRouter

Last updated 8 months ago

Return Values:

​