Skip to content
This repository has been archived by the owner on Mar 15, 2023. It is now read-only.

Latest commit

 

History

History
22 lines (15 loc) · 815 Bytes

README.md

File metadata and controls

22 lines (15 loc) · 815 Bytes

Airdrop tokens

Solana (Anchor) program to provide users airdrop of selected token

Initialize airdrop account

Initializer creates setups airdrop with given settings, like token and withdraw amount. Initial funds are sent to the airdrop token pot account. Token pot account can be funded anytime by sending tokens to token account address.

Get airdrop

User calls get airdrop method to get airdrop token. Amount is limited by withdraw_amount setting. If user's associated token account does not exist it will be created automatically.

Cancel airdrop

Initializer of airdrop can cancel airdrop by calling cancel airdrop method. It will refund all remaining tokens to initializer associated token account, and close all program accounts.

Created with ❤️ by schananas