Feature Tip: Add private address tag to any address under My Name Tag !
More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 741 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Claim | 13180945 | 1205 days ago | IN | 0 ETH | 0.03018797 | ||||
Claim | 13120866 | 1214 days ago | IN | 0 ETH | 0.01204795 | ||||
Claim | 12708124 | 1279 days ago | IN | 0 ETH | 0.00127752 | ||||
Claim | 12328205 | 1337 days ago | IN | 0 ETH | 0.00577011 | ||||
Claim | 12172668 | 1361 days ago | IN | 0 ETH | 0.03595607 | ||||
Claim | 12127277 | 1368 days ago | IN | 0 ETH | 0.04202856 | ||||
Claim | 12127167 | 1368 days ago | IN | 0 ETH | 0.03518697 | ||||
Claim | 12120482 | 1369 days ago | IN | 0 ETH | 0.04168999 | ||||
Claim | 11998731 | 1388 days ago | IN | 0 ETH | 0.00916366 | ||||
Claim | 11996193 | 1389 days ago | IN | 0 ETH | 0.04156157 | ||||
Claim | 11995419 | 1389 days ago | IN | 0 ETH | 0.04583522 | ||||
Claim | 11995418 | 1389 days ago | IN | 0 ETH | 0.02523086 | ||||
Claim | 11994307 | 1389 days ago | IN | 0 ETH | 0.03059784 | ||||
Claim | 11955575 | 1395 days ago | IN | 0 ETH | 0.03125088 | ||||
Claim | 11949602 | 1396 days ago | IN | 0 ETH | 0.02696425 | ||||
Claim | 11943151 | 1397 days ago | IN | 0 ETH | 0.02869064 | ||||
Claim | 11884331 | 1406 days ago | IN | 0 ETH | 0.06363504 | ||||
Claim | 11870887 | 1408 days ago | IN | 0 ETH | 0.07675364 | ||||
Claim | 11857611 | 1410 days ago | IN | 0 ETH | 0.04109904 | ||||
Claim | 11853352 | 1411 days ago | IN | 0 ETH | 0.0620172 | ||||
Claim | 11853060 | 1411 days ago | IN | 0 ETH | 0.04623141 | ||||
Claim | 11853059 | 1411 days ago | IN | 0 ETH | 0.05338872 | ||||
Claim | 11844663 | 1412 days ago | IN | 0 ETH | 0.0273564 | ||||
Claim | 11807896 | 1417 days ago | IN | 0 ETH | 0.00693264 | ||||
Claim | 11798121 | 1419 days ago | IN | 0 ETH | 0.02306215 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Contract Name:
QAirdrop
Compiler Version
v0.6.12+commit.27d51765
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^ 0.6.6; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import "@openzeppelin/contracts/math/SafeMath.sol"; contract QAirdrop { using SafeMath for uint256; address[] private signees; uint256 public totalAmount; uint public closingTime; IERC20 airdropToken; constructor ( uint256 _totalAmount, uint _closingTime, address _airdropToken ) public { totalAmount = _totalAmount; closingTime = _closingTime; airdropToken = IERC20(_airdropToken); } function isSignee(address _address) public view returns (bool, uint256) { for (uint256 i = 0; i < signees.length; i++) { if (_address == signees[i]) return (true, i); } return (false, 0); } function totalSignees() public view returns (uint) { return signees.length; } function addSignee(address _address) private { (bool _isSignee, ) = isSignee(_address); if(!_isSignee) signees.push(_address); } function removeSignee(address _address) private { (bool _isSignee, uint256 i) = isSignee(_address); if (_isSignee) { signees[i] = signees[signees.length - 1]; signees.pop(); } } function signUp() public returns (bool) { require(now < closingTime, "Airdrop is closed"); require(signees.length < 1001, "Airdrop is full"); (bool _isSignee, ) = isSignee(msg.sender); if (!_isSignee) { addSignee(msg.sender); return true; } else { return false; } } function claim() public { require(now > closingTime, "Airdrop is still open"); (bool _isSignee, ) = isSignee(msg.sender); require(_isSignee, "This address did not register"); removeSignee(msg.sender); uint256 _airdropAmount = airdropToken.balanceOf(address(this)).div(signees.length); airdropToken.transfer(msg.sender, _airdropAmount); } }
// SPDX-License-Identifier: MIT pragma solidity >=0.6.0 <0.8.0; /** * @dev Wrappers over Solidity's arithmetic operations with added overflow * checks. * * Arithmetic operations in Solidity wrap on overflow. This can easily result * in bugs, because programmers usually assume that an overflow raises an * error, which is the standard behavior in high level programming languages. * `SafeMath` restores this intuition by reverting the transaction when an * operation overflows. * * Using this library instead of the unchecked operations eliminates an entire * class of bugs, so it's recommended to use it always. */ library SafeMath { /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256) { uint256 c = a + b; require(c >= a, "SafeMath: addition overflow"); return c; } /** * @dev Returns the subtraction of two unsigned integers, reverting on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b) internal pure returns (uint256) { return sub(a, b, "SafeMath: subtraction overflow"); } /** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b <= a, errorMessage); uint256 c = a - b; return c; } /** * @dev Returns the multiplication of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `*` operator. * * Requirements: * * - Multiplication cannot overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522 if (a == 0) { return 0; } uint256 c = a * b; require(c / a == b, "SafeMath: multiplication overflow"); return c; } /** * @dev Returns the integer division of two unsigned integers. Reverts on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b) internal pure returns (uint256) { return div(a, b, "SafeMath: division by zero"); } /** * @dev Returns the integer division of two unsigned integers. Reverts with custom message on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b > 0, errorMessage); uint256 c = a / b; // assert(a == b * c + a % b); // There is no case in which this doesn't hold return c; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * Reverts when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b) internal pure returns (uint256) { return mod(a, b, "SafeMath: modulo by zero"); } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * Reverts with custom message when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b != 0, errorMessage); return a % b; } }
// SPDX-License-Identifier: MIT pragma solidity >=0.6.0 <0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `recipient`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address recipient, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `sender` to `recipient` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom(address sender, address recipient, uint256 amount) external returns (bool); /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); }
{ "remappings": [], "optimizer": { "enabled": true, "runs": 200 }, "evmVersion": "istanbul", "libraries": { "": {} }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"uint256","name":"_totalAmount","type":"uint256"},{"internalType":"uint256","name":"_closingTime","type":"uint256"},{"internalType":"address","name":"_airdropToken","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"claim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"closingTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"isSignee","outputs":[{"internalType":"bool","name":"","type":"bool"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"signUp","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"totalAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSignees","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"}]
Contract Creation Code
608060405234801561001057600080fd5b506040516106913803806106918339818101604052606081101561003357600080fd5b5080516020820151604090920151600191909155600291909155600380546001600160a01b0319166001600160a01b039092169190911790556106168061007b6000396000f3fe608060405234801561001057600080fd5b50600436106100625760003560e01c80630385b581146100675780631a39d8ef146100a85780634b6753bc146100c25780634e71d92d146100ca578063bc248170146100d4578063bf96ae63146100dc575b600080fd5b61008d6004803603602081101561007d57600080fd5b50356001600160a01b03166100f8565b60408051921515835260208301919091528051918290030190f35b6100b0610155565b60408051918252519081900360200190f35b6100b061015b565b6100d2610161565b005b6100b0610322565b6100e4610329565b604080519115158252519081900360200190f35b60008060005b600054811015610147576000818154811061011557fe5b6000918252602090912001546001600160a01b038581169116141561013f57600192509050610150565b6001016100fe565b50600080915091505b915091565b60015481565b60025481565b60025442116101af576040805162461bcd60e51b815260206004820152601560248201527420b4b9323937b81034b99039ba34b6361037b832b760591b604482015290519081900360640190fd5b60006101ba336100f8565b5090508061020f576040805162461bcd60e51b815260206004820152601d60248201527f54686973206164647265737320646964206e6f74207265676973746572000000604482015290519081900360640190fd5b610218336103ef565b60008054600354604080516370a0823160e01b8152306004820152905161029b93926001600160a01b0316916370a08231916024808301926020929190829003018186803b15801561026957600080fd5b505afa15801561027d573d6000803e3d6000fd5b505050506040513d602081101561029357600080fd5b505190610495565b6003546040805163a9059cbb60e01b81523360048201526024810184905290519293506001600160a01b039091169163a9059cbb916044808201926020929091908290030181600087803b1580156102f257600080fd5b505af1158015610306573d6000803e3d6000fd5b505050506040513d602081101561031c57600080fd5b50505050565b6000545b90565b60006002544210610375576040805162461bcd60e51b8152602060048201526011602482015270105a5c991c9bdc081a5cc818db1bdcd959607a1b604482015290519081900360640190fd5b6000546103e9116103bf576040805162461bcd60e51b815260206004820152600f60248201526e105a5c991c9bdc081a5cc8199d5b1b608a1b604482015290519081900360640190fd5b60006103ca336100f8565b509050806103e5576103db336104de565b6001915050610326565b6000915050610326565b6000806103fb836100f8565b9150915081156104905760008054600019810190811061041757fe5b600091825260208220015481546001600160a01b0390911691908390811061043b57fe5b6000918252602082200180546001600160a01b0319166001600160a01b03939093169290921790915580548061046d57fe5b600082815260209020810160001990810180546001600160a01b03191690550190555b505050565b60006104d783836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f00000000000081525061053e565b9392505050565b60006104e9826100f8565b5090508061053a57600080546001810182559080527f290decd9548b62a8d60345a988386fc84ba6bc95484008f6362f93160ef3e5630180546001600160a01b0319166001600160a01b0384161790555b5050565b600081836105ca5760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561058f578181015183820152602001610577565b50505050905090810190601f1680156105bc5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b5060008385816105d657fe5b049594505050505056fea26469706673582212205a94d9f816653ccd5cd27c54aee45bf9e97538ea7d79bbece3d47a99c49a6af764736f6c634300060c0033000000000000000000000000000000000000000000001fc3842bd1f071c000000000000000000000000000000000000000000000000000000000000060066ba70000000000000000000000006fe88a211863d0d818608036880c9a4b0ea86795
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106100625760003560e01c80630385b581146100675780631a39d8ef146100a85780634b6753bc146100c25780634e71d92d146100ca578063bc248170146100d4578063bf96ae63146100dc575b600080fd5b61008d6004803603602081101561007d57600080fd5b50356001600160a01b03166100f8565b60408051921515835260208301919091528051918290030190f35b6100b0610155565b60408051918252519081900360200190f35b6100b061015b565b6100d2610161565b005b6100b0610322565b6100e4610329565b604080519115158252519081900360200190f35b60008060005b600054811015610147576000818154811061011557fe5b6000918252602090912001546001600160a01b038581169116141561013f57600192509050610150565b6001016100fe565b50600080915091505b915091565b60015481565b60025481565b60025442116101af576040805162461bcd60e51b815260206004820152601560248201527420b4b9323937b81034b99039ba34b6361037b832b760591b604482015290519081900360640190fd5b60006101ba336100f8565b5090508061020f576040805162461bcd60e51b815260206004820152601d60248201527f54686973206164647265737320646964206e6f74207265676973746572000000604482015290519081900360640190fd5b610218336103ef565b60008054600354604080516370a0823160e01b8152306004820152905161029b93926001600160a01b0316916370a08231916024808301926020929190829003018186803b15801561026957600080fd5b505afa15801561027d573d6000803e3d6000fd5b505050506040513d602081101561029357600080fd5b505190610495565b6003546040805163a9059cbb60e01b81523360048201526024810184905290519293506001600160a01b039091169163a9059cbb916044808201926020929091908290030181600087803b1580156102f257600080fd5b505af1158015610306573d6000803e3d6000fd5b505050506040513d602081101561031c57600080fd5b50505050565b6000545b90565b60006002544210610375576040805162461bcd60e51b8152602060048201526011602482015270105a5c991c9bdc081a5cc818db1bdcd959607a1b604482015290519081900360640190fd5b6000546103e9116103bf576040805162461bcd60e51b815260206004820152600f60248201526e105a5c991c9bdc081a5cc8199d5b1b608a1b604482015290519081900360640190fd5b60006103ca336100f8565b509050806103e5576103db336104de565b6001915050610326565b6000915050610326565b6000806103fb836100f8565b9150915081156104905760008054600019810190811061041757fe5b600091825260208220015481546001600160a01b0390911691908390811061043b57fe5b6000918252602082200180546001600160a01b0319166001600160a01b03939093169290921790915580548061046d57fe5b600082815260209020810160001990810180546001600160a01b03191690550190555b505050565b60006104d783836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f00000000000081525061053e565b9392505050565b60006104e9826100f8565b5090508061053a57600080546001810182559080527f290decd9548b62a8d60345a988386fc84ba6bc95484008f6362f93160ef3e5630180546001600160a01b0319166001600160a01b0384161790555b5050565b600081836105ca5760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561058f578181015183820152602001610577565b50505050905090810190601f1680156105bc5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b5060008385816105d657fe5b049594505050505056fea26469706673582212205a94d9f816653ccd5cd27c54aee45bf9e97538ea7d79bbece3d47a99c49a6af764736f6c634300060c0033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000000000000000000000001fc3842bd1f071c000000000000000000000000000000000000000000000000000000000000060066ba70000000000000000000000006fe88a211863d0d818608036880c9a4b0ea86795
-----Decoded View---------------
Arg [0] : _totalAmount (uint256): 150000000000000000000000
Arg [1] : _closingTime (uint256): 1611033511
Arg [2] : _airdropToken (address): 0x6fE88a211863D0d818608036880c9A4b0EA86795
-----Encoded View---------------
3 Constructor Arguments found :
Arg [0] : 000000000000000000000000000000000000000000001fc3842bd1f071c00000
Arg [1] : 0000000000000000000000000000000000000000000000000000000060066ba7
Arg [2] : 0000000000000000000000006fe88a211863d0d818608036880c9a4b0ea86795
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|---|---|---|---|---|
ETH | 100.00% | $0.001871 | 36,974.7899 | $69.17 |
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.