Contract Functions

AirdropERC721Claimable

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

Version 2.0.3

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:

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

    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.
  • Functions

    setClaimWindow

    setClaimWindow(uint256,uint256)

    claim

    claim()

    addWhitelistedAddress

    addWhitelistedAddress(address)

    removeWhitelistedAddress

    removeWhitelistedAddress(address)

    setRequiredToken

    setRequiredToken(address)

    setClaimableAmount

    setClaimableAmount(uint256)

    setClaimedAmount

    setClaimedAmount(address,uint256)
    Ask about contract functions, security, or implementation details

    Press Enter to send your query

    Source Code

    1