Verified contractPartial
Airdrop
Address0xe90fa54501eda9a65bc152f3b567f5e86ed79f97
- Balance
0 ETH
- Transactions
232
- Compiler
solc 0.4.24
- Same code
Only this contract
Details
- Compiler
- solc 0.4.24+commit.e67f0147
- Language
- solidity
- Optimization
- Yes, 200 runs
- License
- Not stated
- Match
- Partialcreation code: yes, runtime code: yes
- Verified on Sourcify
- Created in block
- 5,739,519
- Creation transaction
- 0xb3606c40b2…dfdbaf1d4a
Airdrop.sol
pragma solidity ^0.4.24;
/**
* SmartEth.co
* ERC20 Token and ICO smart contracts development, smart contracts audit, ICO websites.
* [email protected]
*/
/**
* @title Ownable
*/
contract Ownable {
address public owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
constructor() public {
owner = 0x9317902fa3889E14EC3a3c9850dea38Bf8A202ab;
}
modifier onlyOwner() {
require(msg.sender == owner);
_;
}
function transferOwnership(address newOwner) public onlyOwner {
require(newOwner != address(0));
emit OwnershipTransferred(owner, newOwner);
owner = newOwner;
}
}
/**
* @title ERC20Basic
*/
contract ERC20Basic {
function totalSupply() public view returns (uint256);
function balanceOf(address who) public view returns (uint256);
function transfer(address to, uint256 value) public returns (bool);
event Transfer(address indexed from, address indexed to, uint256 value);
}
/**
* @title ERC20 interface
*/
contract ERC20 is ERC20Basic {
function allowance(address owner, address spender) public view returns (uint256);
function transferFrom(address from, address to, uint256 value) public returns (bool);
function approve(address spender, uint256 value) public returns (bool);
event Approval(address indexed owner, address indexed spender, uint256 value);
}
contract Airdrop is Ownable {
ERC20 public token = ERC20(0x7D266ed871f24D7b47b5a8B80abB391178C48Bac);
function airdrop(address[] recipient, uint256[] amount) public onlyOwner returns (uint256) {
uint256 i = 0;
while (i < recipient.length) {
token.transfer(recipient[i], amount[i]);
i += 1;
}
return(i);
}
function airdropSameAmount(address[] recipient, uint256 amount) public onlyOwner returns (uint256) {
uint256 i = 0;
while (i < recipient.length) {
token.transfer(recipient[i], amount);
i += 1;
}
return(i);
}
}Compiler settingsShow
{
"optimizer": {
"runs": 200,
"enabled": true
}
}Source code and metadata: Sourcify.
The source code belongs to the authors of the contract.