Skip to content
Verified contractExactMIT

AirdropDistributor

Address0xec2ab4575c1eb501b2b6408dcc854d47b6401fd1
Balance

0 ETH

 

Transactions

15

 

Compiler

solc 0.8.0

 

Same code

Only this contract

 

Details

Compiler
solc 0.8.0+commit.c7dfd78e
Language
solidity
Optimization
No
EVM version
istanbul
License
MIT
Match
Exactcreation code: yes, runtime code: yes
Verified on Sourcify
Created in block
23,186,616
Creation transaction
0x9c2759773f…be6eb0b6bc

MINTONE.sol

// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

interface IERC20 {
    function transfer(address recipient, uint256 amount) external returns (bool);
}

contract AirdropDistributor {
    IERC20 public token;

    uint256 public constant MINT_LIMIT = 350000;
    uint256 public constant MAX_SUPPLY = 3500000000;

    mapping(address => bool) public hasMinted;
    uint256 public totalMinted;

    constructor(address _tokenAddress) {
        token = IERC20(_tokenAddress);
    }

    function mint() external {
        require(!hasMinted[msg.sender], "Already minted");
        require(totalMinted + MINT_LIMIT <= MAX_SUPPLY, "Airdrop limit reached");

        hasMinted[msg.sender] = true;

        require(token.transfer(msg.sender, MINT_LIMIT), "Transfer failed");

        totalMinted += MINT_LIMIT;
    }
}
Compiler settingsShow
{
  "metadata": {
    "bytecodeHash": "ipfs"
  },
  "libraries": {},
  "optimizer": {
    "runs": 200,
    "enabled": false
  },
  "evmVersion": "istanbul",
  "remappings": []
}

Source code and metadata: Sourcify.

The source code belongs to the authors of the contract.