AirdropERC721Claimable

This contract implements an ERC721 airdrop system where users can claim tokens based on predefined criteria.

AirdropERC721Claimable Contract

This contract allows for the distribution of ERC721 tokens to eligible users based on specific conditions, such as holding a certain token or being part of a whitelist.

Features

  • Claimable ERC721 tokens with a defined maximum claimable amount per user
  • Configurable claim window with start and end timestamps
  • Optional requirement for holding a specific token to be eligible for claiming
  • Whitelist support for specific addresses to claim tokens

Usage

To use this contract, follow these steps:

  1. Deploy the contract with the desired parameters, including the token address, maximum claimable amount, start and end timestamps, and whitelist (if applicable).
  2. Set the claim window by calling the 'setClaimWindow' function.
  3. Users can call the 'claim' function during the claim window to receive their tokens.

Implementation Details

The contract implements the ERC721 standard and uses a mapping to track claimed tokens for each address. The claim window is defined using timestamps, and the whitelist is managed through a mapping.

Best Practices

  • Ensure the correct token address is provided during deployment.
  • Set reasonable claim window start and end timestamps.
  • Maintain a secure whitelist if using one.
  • Implement proper security measures to prevent malicious attacks.