AirdropDistributor

Overview

최초로 토큰을 상장하고 유동성 풀을 생성하는 프로토콜의 입장에서는 초기 풀에 많은 유저가 유동성을 공급하도록 유도할 인센티브 장치가 필요합니다. 이러한 수요를 만족하기 위해 판게아의 풀에는 에어드랍 기능이 내장되어 있습니다. 누구든 자유롭게 풀에 에어드랍 보상을 추가하여 유동성 공급에 대한 인센티브를 추가할 수 있습니다. 풀에 추가할 수 있는 에어드랍 보상의 종류는 풀을 구성하고 있는 토큰으로 한정되며, 유동성 공급자는 스왑/플래시론 수수료와 함께 에어드랍 보상을 수취하게 됩니다.

AirdropDistributor 에 에어드랍 보상을 예치하면 매주 목요일 09:00(KST, UTC+9)부터 보상의 분배가 시작되어 1주일간 선형적으로 분배됩니다. 보상이 분배되는 기간 동안 풀 가격 구간 내에서 공급한 유동성의 크기에 비례하여 에어드랍 보상을 받을 수 있습니다.

Methods

airdrop

function airdrop(address pool) external nonpayable;

Starts the distribution of the deposited airdrop rewards of the pool

airdropPool

function airdropPool(uint256 idx) external view returns (address)

Returns the address of airdrop pool

airdropPoolLength

function airdropPoolLength() external view returns (uint256)

Returns the number of the pools that have ever been deposited

airdropSnapshot

function airdropSnapshot(address pool, uint256 idx) external view returns (struct IAirdropDistributorStruct.AirdropInfo snapshot)

Returns the record of the past airdrop distribution

airdropSnapshotLength

function airdropSnapshotLength(address pool) external view returns (uint256 length)

Returns the number of the airdrop distribution of the pool

depositKlay

function depositKlay(address pool) external payable

Deposits KLAY to the pool. Deposited KLAY will be distributed in the next epoch

transaction will revert if the asset in the pool is not WKLAY

depositToken

function depositToken(address pool, address token, uint128 amount) external nonpayable

Deposits token to the pool. Deposited token will be distributed in the next epoch

Approval (token.approve(airdropDistributor, amount)) must be performed before transaction

depositedAirdrop

function depositedAirdrop(address pool) external view returns (struct IAirdropDistributorStruct.AirdropInfo)

Current deposited airdrop reward information of the pool. amount0 & amount1 will be zero after the airdrop allocation

Events

Airdrop

event Airdrop(address indexed pool, address token0, address token1, uint128 amount0, uint128 amount1, uint256 startTime, uint256 period)

Deposit

event Deposit(address indexed pool, address token, uint256 amount, address depositor)

Last updated