ETH Price: $3,435.71 (-1.47%)

Contract

0x825d6A67cdCF897F94ea7F6f11Fb715D6CF81A1c
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Token Holdings

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Claim131809452021-09-07 20:59:351205 days ago1631048375IN
0x825d6A67...D6CF81A1c
0 ETH0.03018797111.58249789
Claim131208662021-08-29 14:19:021214 days ago1630246742IN
0x825d6A67...D6CF81A1c
0 ETH0.0120479547.11312857
Claim127081242021-06-26 6:39:541279 days ago1624689594IN
0x825d6A67...D6CF81A1c
0 ETH0.001277526
Claim123282052021-04-28 9:45:231337 days ago1619603123IN
0x825d6A67...D6CF81A1c
0 ETH0.0057701132
Claim121726682021-04-04 10:54:351361 days ago1617533675IN
0x825d6A67...D6CF81A1c
0 ETH0.0359560791.1
Claim121272772021-03-28 11:13:411368 days ago1616930021IN
0x825d6A67...D6CF81A1c
0 ETH0.0420285690
Claim121271672021-03-28 10:48:481368 days ago1616928528IN
0x825d6A67...D6CF81A1c
0 ETH0.0351869788
Claim121204822021-03-27 10:11:181369 days ago1616839878IN
0x825d6A67...D6CF81A1c
0 ETH0.0416899994.5
Claim119987312021-03-08 15:48:011388 days ago1615218481IN
0x825d6A67...D6CF81A1c
0 ETH0.00916366115
Claim119961932021-03-08 6:15:061389 days ago1615184106IN
0x825d6A67...D6CF81A1c
0 ETH0.0415615789
Claim119954192021-03-08 3:28:031389 days ago1615174083IN
0x825d6A67...D6CF81A1c
0 ETH0.0458352295
Claim119954182021-03-08 3:27:571389 days ago1615174077IN
0x825d6A67...D6CF81A1c
0 ETH0.0252308695
Claim119943072021-03-07 23:21:071389 days ago1615159267IN
0x825d6A67...D6CF81A1c
0 ETH0.03059784105
Claim119555752021-03-02 0:28:331395 days ago1614644913IN
0x825d6A67...D6CF81A1c
0 ETH0.03125088120
Claim119496022021-03-01 2:17:311396 days ago1614565051IN
0x825d6A67...D6CF81A1c
0 ETH0.0269642573.1
Claim119431512021-02-28 2:29:501397 days ago1614479390IN
0x825d6A67...D6CF81A1c
0 ETH0.0286906477.676651
Claim118843312021-02-19 1:23:491406 days ago1613697829IN
0x825d6A67...D6CF81A1c
0 ETH0.06363504118
Claim118708872021-02-16 23:49:571408 days ago1613519397IN
0x825d6A67...D6CF81A1c
0 ETH0.07675364170
Claim118576112021-02-14 22:42:591410 days ago1613342579IN
0x825d6A67...D6CF81A1c
0 ETH0.0410990490
Claim118533522021-02-14 7:00:491411 days ago1613286049IN
0x825d6A67...D6CF81A1c
0 ETH0.0620172115
Claim118530602021-02-14 5:51:471411 days ago1613281907IN
0x825d6A67...D6CF81A1c
0 ETH0.0462314199
Claim118530592021-02-14 5:51:421411 days ago1613281902IN
0x825d6A67...D6CF81A1c
0 ETH0.0533887299
Claim118446632021-02-12 22:45:441412 days ago1613169944IN
0x825d6A67...D6CF81A1c
0 ETH0.0273564180
Claim118078962021-02-07 7:14:571417 days ago1612682097IN
0x825d6A67...D6CF81A1c
0 ETH0.00693264123
Claim117981212021-02-05 19:09:481419 days ago1612552188IN
0x825d6A67...D6CF81A1c
0 ETH0.02306215199.1
View all transactions

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
QAirdrop

Compiler Version
v0.6.12+commit.27d51765

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 3 : QAirdrop.sol
// 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);
    }
}

File 2 of 3 : SafeMath.sol
// 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;
    }
}

File 3 of 3 : IERC20.sol
// 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);
}

Settings
{
  "remappings": [],
  "optimizer": {
    "enabled": true,
    "runs": 200
  },
  "evmVersion": "istanbul",
  "libraries": {
    "": {}
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "abi"
      ]
    }
  }
}

Contract Security Audit

Contract ABI

[{"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"}]

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


Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
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.