Skip to content
Verified contractPartial

BulkAirdrop

Address0xc649f610e99dcc4a05daf6fea1eec86ac6768a7f
Balance

0 ETH

 

Transactions

1

 

Compiler

solc 0.8.10

 

Same code

Only this contract

 

Details

Compiler
solc 0.8.10+commit.fc410830
Language
solidity
Optimization
No
License
Not stated
Match
Partialcreation code: yes, runtime code: yes
Verified on Sourcify
Created in block
14,873,248
Creation transaction
0xe601280ad7…471c61400c

BulkAirdrop.sol

/**
 *Submitted for verification at Etherscan.io on 2022-04-12
*/

// File: contracts/dropair.sol

/**
 *Submitted for verification at polygonscan.com on 2022-04-11
*/

// File: contracts/bulkairdrop.sol



pragma solidity ^0.8.10;

interface IERC20 {
    function transferFrom(
        address from,
        address to,
        uint256 amount
    ) external returns (bool);

    function allowance(address owner, address spender)
        external
        view
        returns (uint256);

    function balanceOf(address account) external view returns (uint256);
}

contract BulkAirdrop {
    constructor() {}

    function BulkAirdropERC20(
        IERC20 _token,
        address[] calldata _to,
        uint256[] calldata _value
    ) public {
        require(
            _to.length == _value.length,
            "Receivers and amount are different length"
        );
        for (uint256 i = 0; i < _to.length; i++) {
            require(_token.transferFrom(msg.sender, _to[i], _value[i]));
        }
    }
}
Compiler settingsShow
{
  "optimizer": {
    "runs": 0,
    "enabled": false
  }
}

Source code and metadata: Sourcify.

The source code belongs to the authors of the contract.