Verified contractPartial
Airdrop
Address0x1fc8c28fa8a16f55ac14972c49bceac6ae550274
- Balance
0 ETH
- Transactions
17
- Compiler
solc 0.4.26
- Same code
Only this contract
Details
- Compiler
- solc 0.4.26+commit.4563c3fc
- Language
- solidity
- Optimization
- Yes, 200 runs
- EVM version
- byzantium
- License
- Not stated
- Match
- Partialcreation code: yes, runtime code: yes
- Verified on Sourcify
- Created in block
- 10,790,696
- Creation transaction
- 0x66667b7623…8f3b4088a7
2 files
- airdrop2.solmain409 B
- IERC20.sol769 B
airdrop2.sol
pragma solidity ^0.4.26;
import "./IERC20.sol";
contract Airdrop{
function airdrop(address[] memory toAirdrop,uint[] memory tokensToEach,address tokenAddress) public{
require(toAirdrop.length==tokensToEach.length,"must have same number of addresses and payments");
for(uint i=0;i<toAirdrop.length;i++){
ERC20(tokenAddress).transferFrom(msg.sender,toAirdrop[i],tokensToEach[i]);
}
}
}
IERC20.sol
interface ERC20 {
function totalSupply() external view returns (uint256);
function balanceOf(address who) external view returns (uint256);
function allowance(address owner, address spender) external view returns (uint256);
function transfer(address to, uint256 value) external returns (bool);
function approve(address spender, uint256 value) external returns (bool);
function approveAndCall(address spender, uint tokens, bytes data) external returns (bool success);
function transferFrom(address from, address to, uint256 value) external returns (bool);
function burn(uint256 amount) external;
event Transfer(address indexed from, address indexed to, uint256 value);
event Approval(address indexed owner, address indexed spender, uint256 value);
}
Compiler settingsShow
{
"libraries": {},
"optimizer": {
"runs": 200,
"enabled": true
},
"evmVersion": "byzantium",
"remappings": []
}Source code and metadata: Sourcify.
The source code belongs to the authors of the contract.