Skip to content

A drop-in contract to airdrop all current holders of an NFT with an ERC20 token

License

Notifications You must be signed in to change notification settings

josephbedminster/nft-token-drop

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NFT Currency Airdrop Template

A drop-in contract to airdrop all current holders of an NFT with an ERC20 token.

A common airdrop style (pioneered by Loot derivatives as far as I know) is to allow current holders of an NFT to claim a certain amount of an ERC20. This repository extends Rari Capital's Solmate's ERC20 implementation with a claim(uint256 tokenId) and batchClaim(uint256[] tokenIds) functions, allowing holders to claim their tokens. Potential buyers can also call hasClaimed(uint256 tokenId) to figure out if the tokens for the NFTs they are about to buy have already been claimed.

You can configure the address of the NFT to use for the lookup, name and symbol of the ERC20, and how many tokens to issue per NFT via the constructor when deploying the contract.

License

This project is open-sourced software licensed under the GNU Affero GPL v3.0 license. See the License file for more information.

About

A drop-in contract to airdrop all current holders of an NFT with an ERC20 token

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Solidity 100.0%