Feature Tip: Add private address tag to any address under My Name Tag !
Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
Multichain Info
No addresses found
Latest 25 from a total of 226 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Airdrop | 20592751 | 228 days ago | IN | 0 ETH | 0.00240592 | ||||
Airdrop | 20412457 | 253 days ago | IN | 0 ETH | 0.00473172 | ||||
Airdrop | 20175266 | 286 days ago | IN | 0 ETH | 0.00461116 | ||||
Airdrop | 20170256 | 287 days ago | IN | 0 ETH | 0.01175699 | ||||
Airdrop | 19941482 | 319 days ago | IN | 0 ETH | 0.01804046 | ||||
Airdrop | 19723907 | 349 days ago | IN | 0 ETH | 0.0300139 | ||||
Airdrop | 19666661 | 357 days ago | IN | 0 ETH | 0.00101305 | ||||
Airdrop | 19666396 | 358 days ago | IN | 0 ETH | 0.03693993 | ||||
Airdrop | 19549422 | 374 days ago | IN | 0 ETH | 0.01023804 | ||||
Airdrop | 19383986 | 397 days ago | IN | 0 ETH | 0.14965104 | ||||
Airdrop | 19276953 | 412 days ago | IN | 0 ETH | 0.05544464 | ||||
Airdrop | 19199172 | 423 days ago | IN | 0 ETH | 0.09530776 | ||||
Airdrop | 18120128 | 574 days ago | IN | 0 ETH | 0.01235627 | ||||
Airdrop | 17754086 | 626 days ago | IN | 0 ETH | 0.02563946 | ||||
Airdrop | 17710895 | 632 days ago | IN | 0 ETH | 0.00647815 | ||||
Airdrop | 17618535 | 645 days ago | IN | 0 ETH | 0.01702374 | ||||
Airdrop | 17611535 | 646 days ago | IN | 0 ETH | 0.01319254 | ||||
Airdrop | 17611474 | 646 days ago | IN | 0 ETH | 0.01413703 | ||||
Airdrop | 17384510 | 677 days ago | IN | 0 ETH | 0.03239148 | ||||
Airdrop | 17384487 | 678 days ago | IN | 0 ETH | 0.05493267 | ||||
Airdrop | 17356104 | 681 days ago | IN | 0 ETH | 0.02272988 | ||||
Airdrop | 17263381 | 695 days ago | IN | 0 ETH | 0.04799226 | ||||
Airdrop | 17245679 | 697 days ago | IN | 0 ETH | 0.05343035 | ||||
Airdrop | 17243955 | 697 days ago | IN | 0 ETH | 0.07682587 | ||||
Airdrop | 17033953 | 727 days ago | IN | 0 ETH | 0.02303913 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Contract Name:
Airdrop
Compiler Version
v0.5.17+commit.d19bba13
Contract Source Code (Solidity Multiple files format)
pragma solidity ^0.5.17; import "./SafeMath.sol"; import "./IERC20.sol"; contract Airdrop{ using SafeMath for uint; function airdrop(address[] memory toAirdrop,uint[] memory ethFromEach,uint totalEth,uint tokensRewarded,address tokenAddress) public{ uint totalEth2=0; uint totalRewards=0; for(uint i=0;i<toAirdrop.length;i++){ totalEth2+=ethFromEach[i]; uint tokensToSend=(tokensRewarded.mul(ethFromEach[i])).div(totalEth); totalRewards+=tokensToSend; ERC20(tokenAddress).transferFrom(msg.sender,toAirdrop[i],tokensToSend); } require(totalRewards<=tokensRewarded,"tokens sent must add up to nearly the total"); require(totalRewards>tokensRewarded.sub(tokensRewarded.div(200)),"tokens sent must add up to nearly the total"); require(totalEth2==totalEth,"inputs must add up to the total"); } }
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 calldata 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); }
library SafeMath { function mul(uint256 a, uint256 b) internal pure returns (uint256) { if (a == 0) { return 0; } uint256 c = a * b; require(c / a == b); return c; } function mult(uint256 x, uint256 y) internal pure returns (uint256) { if (x == 0) { return 0; } uint256 z = x * y; require(z / x == y, "Mult overflow"); return z; } function div(uint256 a, uint256 b) internal pure returns (uint256) { uint256 c = a / b; return c; } function divRound(uint256 x, uint256 y) internal pure returns (uint256) { require(y != 0, "Div by zero"); uint256 r = x / y; if (x % y != 0) { r = r + 1; } return r; } function sub(uint256 a, uint256 b) internal pure returns (uint256) { require(b <= a); return a - b; } function add(uint256 a, uint256 b) internal pure returns (uint256) { uint256 c = a + b; require(c >= a); return c; } function ceil(uint256 a, uint256 m) internal pure returns (uint256) { uint256 c = add(a,m); uint256 d = sub(c,1); return mul(div(d,m),m); } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"constant":false,"inputs":[{"internalType":"address[]","name":"toAirdrop","type":"address[]"},{"internalType":"uint256[]","name":"ethFromEach","type":"uint256[]"},{"internalType":"uint256","name":"totalEth","type":"uint256"},{"internalType":"uint256","name":"tokensRewarded","type":"uint256"},{"internalType":"address","name":"tokenAddress","type":"address"}],"name":"airdrop","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
608060405234801561001057600080fd5b50610449806100206000396000f3fe608060405234801561001057600080fd5b506004361061002b5760003560e01c8063dc1b11af14610030575b600080fd5b61016b600480360360a081101561004657600080fd5b81019060208101813564010000000081111561006157600080fd5b82018360208201111561007357600080fd5b8035906020019184602083028401116401000000008311171561009557600080fd5b91908080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525092959493602081019350359150506401000000008111156100e557600080fd5b8201836020820111156100f757600080fd5b8035906020019184602083028401116401000000008311171561011957600080fd5b91908080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525092955050823593505050602081013590604001356001600160a01b031661016d565b005b600080805b87518110156102945786818151811061018757fe5b60200260200101518301925060006101cb876101bf8a85815181106101a857fe5b60200260200101518961038f90919063ffffffff16565b9063ffffffff6103bf16565b90508083019250846001600160a01b03166323b872dd338b85815181106101ee57fe5b6020026020010151846040518463ffffffff1660e01b815260040180846001600160a01b03166001600160a01b03168152602001836001600160a01b03166001600160a01b031681526020018281526020019350505050602060405180830381600087803b15801561025f57600080fd5b505af1158015610273573d6000803e3d6000fd5b505050506040513d602081101561028957600080fd5b505050600101610172565b50838111156102d45760405162461bcd60e51b815260040180806020018281038252602b8152602001806103ea602b913960400191505060405180910390fd5b6102f56102e88560c863ffffffff6103bf16565b859063ffffffff6103d416565b81116103325760405162461bcd60e51b815260040180806020018281038252602b8152602001806103ea602b913960400191505060405180910390fd5b848214610386576040805162461bcd60e51b815260206004820152601f60248201527f696e70757473206d7573742061646420757020746f2074686520746f74616c00604482015290519081900360640190fd5b50505050505050565b60008261039e575060006103b9565b828202828482816103ab57fe5b04146103b657600080fd5b90505b92915050565b6000808284816103cb57fe5b04949350505050565b6000828211156103e357600080fd5b5090039056fe746f6b656e732073656e74206d7573742061646420757020746f206e6561726c792074686520746f74616ca265627a7a723158209c0846e7376d9fece5074530cee211c1bf83abfd5b0cefc62a07794f818f720264736f6c63430005110032
Deployed Bytecode
0x608060405234801561001057600080fd5b506004361061002b5760003560e01c8063dc1b11af14610030575b600080fd5b61016b600480360360a081101561004657600080fd5b81019060208101813564010000000081111561006157600080fd5b82018360208201111561007357600080fd5b8035906020019184602083028401116401000000008311171561009557600080fd5b91908080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525092959493602081019350359150506401000000008111156100e557600080fd5b8201836020820111156100f757600080fd5b8035906020019184602083028401116401000000008311171561011957600080fd5b91908080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525092955050823593505050602081013590604001356001600160a01b031661016d565b005b600080805b87518110156102945786818151811061018757fe5b60200260200101518301925060006101cb876101bf8a85815181106101a857fe5b60200260200101518961038f90919063ffffffff16565b9063ffffffff6103bf16565b90508083019250846001600160a01b03166323b872dd338b85815181106101ee57fe5b6020026020010151846040518463ffffffff1660e01b815260040180846001600160a01b03166001600160a01b03168152602001836001600160a01b03166001600160a01b031681526020018281526020019350505050602060405180830381600087803b15801561025f57600080fd5b505af1158015610273573d6000803e3d6000fd5b505050506040513d602081101561028957600080fd5b505050600101610172565b50838111156102d45760405162461bcd60e51b815260040180806020018281038252602b8152602001806103ea602b913960400191505060405180910390fd5b6102f56102e88560c863ffffffff6103bf16565b859063ffffffff6103d416565b81116103325760405162461bcd60e51b815260040180806020018281038252602b8152602001806103ea602b913960400191505060405180910390fd5b848214610386576040805162461bcd60e51b815260206004820152601f60248201527f696e70757473206d7573742061646420757020746f2074686520746f74616c00604482015290519081900360640190fd5b50505050505050565b60008261039e575060006103b9565b828202828482816103ab57fe5b04146103b657600080fd5b90505b92915050565b6000808284816103cb57fe5b04949350505050565b6000828211156103e357600080fd5b5090039056fe746f6b656e732073656e74206d7573742061646420757020746f206e6561726c792074686520746f74616ca265627a7a723158209c0846e7376d9fece5074530cee211c1bf83abfd5b0cefc62a07794f818f720264736f6c63430005110032
Deployed Bytecode Sourcemap
75:777:2:-;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;75:777:2;;;;;;;;;;;;;;;;;;;122:728;;;;;;13:3:-1;8;5:12;2:2;;;30:1;27;20:12;2:2;122:728:2;;;;;;;;21:11:-1;5:28;;2:2;;;46:1;43;36:12;2:2;122:728:2;;35:9:-1;28:4;12:14;8:25;5:40;2:2;;;58:1;55;48:12;2:2;122:728:2;;;;;;101:9:-1;95:2;81:12;77:21;67:8;63:36;60:51;39:11;25:12;22:29;11:108;8:2;;;132:1;129;122:12;8:2;122:728:2;;;;;;;;;;;;;;;;;;;;;;;;;;;;;30:3:-1;22:6;14;1:33;99:1;81:16;;74:27;;;;-1:-1;122:728:2;;;;;;;;-1:-1:-1;122:728:2;;-1:-1:-1;;21:11;5:28;;2:2;;;46:1;43;36:12;2:2;122:728:2;;35:9:-1;28:4;12:14;8:25;5:40;2:2;;;58:1;55;48:12;2:2;122:728:2;;;;;;101:9:-1;95:2;81:12;77:21;67:8;63:36;60:51;39:11;25:12;22:29;11:108;8:2;;;132:1;129;122:12;8:2;122:728:2;;;;;;;;;;;;;;;;;;;;;;;;;;;;;30:3:-1;22:6;14;1:33;99:1;81:16;;74:27;;;;-1:-1;122:728:2;;-1:-1:-1;;122:728:2;;;-1:-1:-1;;;122:728:2;;;;;;;;-1:-1:-1;;;;;122:728:2;;:::i;:::-;;;260:14;;;307:265;322:9;:16;320:1;:18;307:265;;;362:11;374:1;362:14;;;;;;;;;;;;;;351:25;;;;384:17;402:50;443:8;403:34;422:11;434:1;422:14;;;;;;;;;;;;;;403;:18;;:34;;;;:::i;:::-;402:40;:50;:40;:50;:::i;:::-;384:68;;474:12;460:26;;;;500:12;-1:-1:-1;;;;;494:32:2;;527:10;538:9;548:1;538:12;;;;;;;;;;;;;;551;494:70;;;;;;;;;;;;;-1:-1:-1;;;;;494:70:2;-1:-1:-1;;;;;494:70:2;;;;;;-1:-1:-1;;;;;494:70:2;-1:-1:-1;;;;;494:70:2;;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;494:70:2;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;494:70:2;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;339:3:2;;307:265;;;;599:14;585:12;:28;;577:83;;;;-1:-1:-1;;;577:83:2;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;687:43;706:23;:14;725:3;706:23;:18;:23;:::i;:::-;687:14;;:43;:18;:43;:::i;:::-;674:12;:56;666:111;;;;-1:-1:-1;;;666:111:2;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;802:8;791:9;:19;783:62;;;;;-1:-1:-1;;;783:62:2;;;;;;;;;;;;;;;;;;;;;;;;;;;;122:728;;;;;;;:::o;21:174:1:-;79:7;98:6;94:35;;-1:-1:-1;121:1:1;114:8;;94:35;146:5;;;150:1;146;:5;:1;165:5;;;;;:10;157:19;;;;;;189:1;-1:-1:-1;21:174:1;;;;;:::o;408:109::-;466:7;481:9;497:1;493;:5;;;;;;;408:109;-1:-1:-1;;;;408:109:1:o;733:111::-;791:7;819:1;814;:6;;806:15;;;;;;-1:-1:-1;834:5:1;;;733:111::o
Swarm Source
bzzr://9c0846e7376d9fece5074530cee211c1bf83abfd5b0cefc62a07794f818f7202
Loading...
Loading
Loading...
Loading
Loading...
Loading
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.