Verified contractPartial
FASChainAirdrop
Address0x938fc3a7c2c11645b183996adc73dc353be6ceca
- Balance
0 ETH
- Transactions
170
- Compiler
solc 0.4.26
- Same code
Only this contract
Details
- Compiler
- solc 0.4.26+commit.4563c3fc
- Language
- solidity
- Optimization
- Yes, 200 runs
- License
- Not stated
- Match
- Partialcreation code: yes, runtime code: yes
- Verified on Sourcify
- Created in block
- 7,801,032
- Creation transaction
- 0x7908cf6ac3…60a74fdf98
FASChainAirdrop.sol
pragma solidity ^0.4.20;
// This is a contract for GMB AirDrops
contract Ownable {
address public owner;
constructor () internal {
owner = msg.sender;
}
modifier onlyOwner() {
if (msg.sender != owner) {
revert();
}
_;
}
function transferOwnership(address newOwner) onlyOwner {
if (newOwner != address(0)) {
owner = newOwner;
}
}
}
contract ERC20Basic {
uint public totalSupply;
function balanceOf(address who) constant returns (uint);
function transfer(address to, uint value);
event Transfer(address indexed from, address indexed to, uint value);
}
contract ERC20 is ERC20Basic {
function allowance(address owner, address spender) constant returns (uint);
function transferFrom(address from, address to, uint value);
function approve(address spender, uint value);
event Approval(address indexed owner, address indexed spender, uint value);
}
contract FASChainAirdrop is Ownable {
function multisend(address[] to, uint256[] value) onlyOwner returns (uint256) {
address tokenAddr = 0x6e14ccec454b12ab03ef1ca2cf0ef67d6bfd8a26;
uint256 i = 0;
while (i < to.length) {
ERC20(tokenAddr).transfer(to[i], value[i] * ( 10 ** 18 ));
i++;
}
return(i);
}
}Compiler settingsShow
{
"optimizer": {
"runs": 200,
"enabled": true
}
}Source code and metadata: Sourcify.
The source code belongs to the authors of the contract.