ETH Price: $2,470.10 (-20.20%)
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Token Holdings

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Claim145322042022-04-06 11:53:541033 days ago1649246034IN
0x1d26A9C5...21fFC6136
0 ETH0.0012908229.73162519
Claim145180102022-04-04 6:52:511035 days ago1649055171IN
0x1d26A9C5...21fFC6136
0 ETH0.0046493341.13076761
Claim145167472022-04-04 1:55:201036 days ago1649037320IN
0x1d26A9C5...21fFC6136
0 ETH0.0035391238.876129
Claim145134772022-04-03 13:45:211036 days ago1648993521IN
0x1d26A9C5...21fFC6136
0 ETH0.005459148.28848167
Claim145134202022-04-03 13:31:001036 days ago1648992660IN
0x1d26A9C5...21fFC6136
0 ETH0.0032978829.17865622
Claim145131512022-04-03 12:31:001036 days ago1648989060IN
0x1d26A9C5...21fFC6136
0 ETH0.0037253538.82598605
Claim145130052022-04-03 11:55:331036 days ago1648986933IN
0x1d26A9C5...21fFC6136
0 ETH0.0041482536.68034404
Claim145124532022-04-03 9:49:331036 days ago1648979373IN
0x1d26A9C5...21fFC6136
0 ETH0.0050126244.34381453
Claim145121962022-04-03 8:53:391036 days ago1648976019IN
0x1d26A9C5...21fFC6136
0 ETH0.0032984329.1767528
Claim145119912022-04-03 8:01:491036 days ago1648972909IN
0x1d26A9C5...21fFC6136
0 ETH0.0039173434.64840187
Claim145025862022-04-01 20:43:581038 days ago1648845838IN
0x1d26A9C5...21fFC6136
0 ETH0.0073837565.31872076
Claim145003842022-04-01 12:33:191038 days ago1648816399IN
0x1d26A9C5...21fFC6136
0 ETH0.003791333.54955432
Claim144985642022-04-01 5:48:421038 days ago1648792122IN
0x1d26A9C5...21fFC6136
0 ETH0.0037856833.94078048
Claim144985582022-04-01 5:48:041038 days ago1648792084IN
0x1d26A9C5...21fFC6136
0 ETH0.0038622840.24048475
Claim144984942022-04-01 5:33:011038 days ago1648791181IN
0x1d26A9C5...21fFC6136
0 ETH0.004219437.81775405
Claim144984772022-04-01 5:29:351038 days ago1648790975IN
0x1d26A9C5...21fFC6136
0 ETH0.0059133153
Claim144984762022-04-01 5:29:051038 days ago1648790945IN
0x1d26A9C5...21fFC6136
0 ETH0.004678441.39592597
Claim144930112022-03-31 9:01:401039 days ago1648717300IN
0x1d26A9C5...21fFC6136
0 ETH0.0038518334.07252277
Claim144925312022-03-31 7:16:281039 days ago1648710988IN
0x1d26A9C5...21fFC6136
0 ETH0.0034175830.64937938
Claim144885972022-03-30 16:27:071040 days ago1648657627IN
0x1d26A9C5...21fFC6136
0 ETH0.01607672142.25176279
Claim144885912022-03-30 16:25:151040 days ago1648657515IN
0x1d26A9C5...21fFC6136
0 ETH0.01677968150.47696579
Claim144878772022-03-30 13:44:381040 days ago1648647878IN
0x1d26A9C5...21fFC6136
0 ETH0.0037379433.07099406
Claim144872282022-03-30 11:10:201040 days ago1648638620IN
0x1d26A9C5...21fFC6136
0 ETH0.0041000836.76349449
Claim144866322022-03-30 8:52:161040 days ago1648630336IN
0x1d26A9C5...21fFC6136
0 ETH0.0034257330.29422699
Claim144851042022-03-30 3:14:051041 days ago1648610045IN
0x1d26A9C5...21fFC6136
0 ETH0.0039015534.98529279
View all transactions

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Loading...
Loading

Similar Match Source Code
This contract matches the deployed Bytecode of the Source Code for Contract 0x5C225d2b...23A02aB3c
The constructor portion of the code might be different and could alter the actual behaviour of the contract

Contract Name:
TokenClaim

Compiler Version
v0.8.4+commit.c7e474f2

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion
File 1 of 8 : TokenClaim.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol";

contract TokenClaim is Ownable, ReentrancyGuard {
    using MerkleProof for bytes32[];
    using SafeERC20 for IERC20;

    /* ========== STATE VARIABLES ========== */

    bool public disabled;
    bytes32 public tokenClaimMerkleRoot;
    IERC20 public token;
    uint256 public startTime;
    uint256 public endTime;
    mapping(address => bool) public claimed;

    /* ========== CONSTRUCTOR ========== */

    constructor(IERC20 _token, bytes32 _claimMerkleRoot, uint256 _startTime, uint256 _endTime) {
        require(block.timestamp < _startTime, "startTime should be larger than contract deployed time");
        require(_startTime < _endTime, "endTime should be larger than startTime");
        token = _token;
        tokenClaimMerkleRoot = _claimMerkleRoot;
        startTime = _startTime;
        endTime = _endTime;
    }

    /* ========== RESTRICTED FUNCTIONS ========== */

    function setDisabled(bool _disabled) external onlyOwner {
        disabled = _disabled;
    }

    function withdraw(IERC20 _token) external onlyOwner {
        if (_token == token) {
            require(block.timestamp < startTime || endTime < block.timestamp, "cannot withdraw reward token when claim activated");
        }
        uint256 _tokenBalance = _token.balanceOf(address(this));
        _token.safeTransfer(msg.sender, _tokenBalance);
    }

    /* ========== WRITE FUNCTIONS ========== */

    function claim(bytes32[] memory proof, uint256 amount)
        external
        nonReentrant
    {
        require(!disabled, "the contract is disabled");
        require(block.timestamp > startTime, "claim has not started");
        require(block.timestamp < endTime, "claim has finished");
        require(!claimed[msg.sender], "this address has already claimed");
        require(
            proof.verify(
                tokenClaimMerkleRoot,
                keccak256(abi.encodePacked(msg.sender, amount))
            ),
            "failed to verify merkle proof"
        );

        claimed[msg.sender] = true;
        token.safeTransfer(msg.sender, amount);
        emit TokenClaimed(msg.sender, amount);
    }

    /* ========== EVENTS ========== */

    event TokenClaimed(address _address, uint256 _amount);
}

File 2 of 8 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (access/Ownable.sol)

pragma solidity ^0.8.0;

import "../utils/Context.sol";

/**
 * @dev Contract module which provides a basic access control mechanism, where
 * there is an account (an owner) that can be granted exclusive access to
 * specific functions.
 *
 * By default, the owner account will be the one that deploys the contract. This
 * can later be changed with {transferOwnership}.
 *
 * This module is used through inheritance. It will make available the modifier
 * `onlyOwner`, which can be applied to your functions to restrict their use to
 * the owner.
 */
abstract contract Ownable is Context {
    address private _owner;

    event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    constructor() {
        _transferOwnership(_msgSender());
    }

    /**
     * @dev Returns the address of the current owner.
     */
    function owner() public view virtual returns (address) {
        return _owner;
    }

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        require(owner() == _msgSender(), "Ownable: caller is not the owner");
        _;
    }

    /**
     * @dev Leaves the contract without owner. It will not be possible to call
     * `onlyOwner` functions anymore. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby removing any functionality that is only available to the owner.
     */
    function renounceOwnership() public virtual onlyOwner {
        _transferOwnership(address(0));
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Can only be called by the current owner.
     */
    function transferOwnership(address newOwner) public virtual onlyOwner {
        require(newOwner != address(0), "Ownable: new owner is the zero address");
        _transferOwnership(newOwner);
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Internal function without access restriction.
     */
    function _transferOwnership(address newOwner) internal virtual {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}

File 3 of 8 : IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/IERC20.sol)

pragma solidity ^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);
}

File 4 of 8 : SafeERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/utils/SafeERC20.sol)

pragma solidity ^0.8.0;

import "../IERC20.sol";
import "../../../utils/Address.sol";

/**
 * @title SafeERC20
 * @dev Wrappers around ERC20 operations that throw on failure (when the token
 * contract returns false). Tokens that return no value (and instead revert or
 * throw on failure) are also supported, non-reverting calls are assumed to be
 * successful.
 * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract,
 * which allows you to call the safe operations as `token.safeTransfer(...)`, etc.
 */
library SafeERC20 {
    using Address for address;

    function safeTransfer(
        IERC20 token,
        address to,
        uint256 value
    ) internal {
        _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value));
    }

    function safeTransferFrom(
        IERC20 token,
        address from,
        address to,
        uint256 value
    ) internal {
        _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value));
    }

    /**
     * @dev Deprecated. This function has issues similar to the ones found in
     * {IERC20-approve}, and its usage is discouraged.
     *
     * Whenever possible, use {safeIncreaseAllowance} and
     * {safeDecreaseAllowance} instead.
     */
    function safeApprove(
        IERC20 token,
        address spender,
        uint256 value
    ) internal {
        // safeApprove should only be called when setting an initial allowance,
        // or when resetting it to zero. To increase and decrease it, use
        // 'safeIncreaseAllowance' and 'safeDecreaseAllowance'
        require(
            (value == 0) || (token.allowance(address(this), spender) == 0),
            "SafeERC20: approve from non-zero to non-zero allowance"
        );
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value));
    }

    function safeIncreaseAllowance(
        IERC20 token,
        address spender,
        uint256 value
    ) internal {
        uint256 newAllowance = token.allowance(address(this), spender) + value;
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
    }

    function safeDecreaseAllowance(
        IERC20 token,
        address spender,
        uint256 value
    ) internal {
        unchecked {
            uint256 oldAllowance = token.allowance(address(this), spender);
            require(oldAllowance >= value, "SafeERC20: decreased allowance below zero");
            uint256 newAllowance = oldAllowance - value;
            _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
        }
    }

    /**
     * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement
     * on the return value: the return value is optional (but if data is returned, it must not be false).
     * @param token The token targeted by the call.
     * @param data The call data (encoded using abi.encode or one of its variants).
     */
    function _callOptionalReturn(IERC20 token, bytes memory data) private {
        // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since
        // we're implementing it ourselves. We use {Address.functionCall} to perform this call, which verifies that
        // the target address contains contract code and also asserts for success in the low-level call.

        bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed");
        if (returndata.length > 0) {
            // Return data is optional
            require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed");
        }
    }
}

File 5 of 8 : ReentrancyGuard.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (security/ReentrancyGuard.sol)

pragma solidity ^0.8.0;

/**
 * @dev Contract module that helps prevent reentrant calls to a function.
 *
 * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier
 * available, which can be applied to functions to make sure there are no nested
 * (reentrant) calls to them.
 *
 * Note that because there is a single `nonReentrant` guard, functions marked as
 * `nonReentrant` may not call one another. This can be worked around by making
 * those functions `private`, and then adding `external` `nonReentrant` entry
 * points to them.
 *
 * TIP: If you would like to learn more about reentrancy and alternative ways
 * to protect against it, check out our blog post
 * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].
 */
abstract contract ReentrancyGuard {
    // Booleans are more expensive than uint256 or any type that takes up a full
    // word because each write operation emits an extra SLOAD to first read the
    // slot's contents, replace the bits taken up by the boolean, and then write
    // back. This is the compiler's defense against contract upgrades and
    // pointer aliasing, and it cannot be disabled.

    // The values being non-zero value makes deployment a bit more expensive,
    // but in exchange the refund on every call to nonReentrant will be lower in
    // amount. Since refunds are capped to a percentage of the total
    // transaction's gas, it is best to keep them low in cases like this one, to
    // increase the likelihood of the full refund coming into effect.
    uint256 private constant _NOT_ENTERED = 1;
    uint256 private constant _ENTERED = 2;

    uint256 private _status;

    constructor() {
        _status = _NOT_ENTERED;
    }

    /**
     * @dev Prevents a contract from calling itself, directly or indirectly.
     * Calling a `nonReentrant` function from another `nonReentrant`
     * function is not supported. It is possible to prevent this from happening
     * by making the `nonReentrant` function external, and making it call a
     * `private` function that does the actual work.
     */
    modifier nonReentrant() {
        // On the first call to nonReentrant, _notEntered will be true
        require(_status != _ENTERED, "ReentrancyGuard: reentrant call");

        // Any calls to nonReentrant after this point will fail
        _status = _ENTERED;

        _;

        // By storing the original value once again, a refund is triggered (see
        // https://eips.ethereum.org/EIPS/eip-2200)
        _status = _NOT_ENTERED;
    }
}

File 6 of 8 : MerkleProof.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/cryptography/MerkleProof.sol)

pragma solidity ^0.8.0;

/**
 * @dev These functions deal with verification of Merkle Trees proofs.
 *
 * The proofs can be generated using the JavaScript library
 * https://github.com/miguelmota/merkletreejs[merkletreejs].
 * Note: the hashing algorithm should be keccak256 and pair sorting should be enabled.
 *
 * See `test/utils/cryptography/MerkleProof.test.js` for some examples.
 */
library MerkleProof {
    /**
     * @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree
     * defined by `root`. For this, a `proof` must be provided, containing
     * sibling hashes on the branch from the leaf to the root of the tree. Each
     * pair of leaves and each pair of pre-images are assumed to be sorted.
     */
    function verify(
        bytes32[] memory proof,
        bytes32 root,
        bytes32 leaf
    ) internal pure returns (bool) {
        return processProof(proof, leaf) == root;
    }

    /**
     * @dev Returns the rebuilt hash obtained by traversing a Merklee tree up
     * from `leaf` using `proof`. A `proof` is valid if and only if the rebuilt
     * hash matches the root of the tree. When processing the proof, the pairs
     * of leafs & pre-images are assumed to be sorted.
     *
     * _Available since v4.4._
     */
    function processProof(bytes32[] memory proof, bytes32 leaf) internal pure returns (bytes32) {
        bytes32 computedHash = leaf;
        for (uint256 i = 0; i < proof.length; i++) {
            bytes32 proofElement = proof[i];
            if (computedHash <= proofElement) {
                // Hash(current computed hash + current element of the proof)
                computedHash = keccak256(abi.encodePacked(computedHash, proofElement));
            } else {
                // Hash(current element of the proof + current computed hash)
                computedHash = keccak256(abi.encodePacked(proofElement, computedHash));
            }
        }
        return computedHash;
    }
}

File 7 of 8 : Context.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)

pragma solidity ^0.8.0;

/**
 * @dev Provides information about the current execution context, including the
 * sender of the transaction and its data. While these are generally available
 * via msg.sender and msg.data, they should not be accessed in such a direct
 * manner, since when dealing with meta-transactions the account sending and
 * paying for execution may not be the actual sender (as far as an application
 * is concerned).
 *
 * This contract is only required for intermediate, library-like contracts.
 */
abstract contract Context {
    function _msgSender() internal view virtual returns (address) {
        return msg.sender;
    }

    function _msgData() internal view virtual returns (bytes calldata) {
        return msg.data;
    }
}

File 8 of 8 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Address.sol)

pragma solidity ^0.8.0;

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize, which returns 0 for contracts in
        // construction, since the code is only stored at the end of the
        // constructor execution.

        uint256 size;
        assembly {
            size := extcodesize(account)
        }
        return size > 0;
    }

    /**
     * @dev Replacement for Solidity's `transfer`: sends `amount` wei to
     * `recipient`, forwarding all available gas and reverting on errors.
     *
     * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
     * of certain opcodes, possibly making contracts go over the 2300 gas limit
     * imposed by `transfer`, making them unable to receive funds via
     * `transfer`. {sendValue} removes this limitation.
     *
     * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more].
     *
     * IMPORTANT: because control is transferred to `recipient`, care must be
     * taken to not create reentrancy vulnerabilities. Consider using
     * {ReentrancyGuard} or the
     * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
     */
    function sendValue(address payable recipient, uint256 amount) internal {
        require(address(this).balance >= amount, "Address: insufficient balance");

        (bool success, ) = recipient.call{value: amount}("");
        require(success, "Address: unable to send value, recipient may have reverted");
    }

    /**
     * @dev Performs a Solidity function call using a low level `call`. A
     * plain `call` is an unsafe replacement for a function call: use this
     * function instead.
     *
     * If `target` reverts with a revert reason, it is bubbled up by this
     * function (like regular Solidity function calls).
     *
     * Returns the raw returned data. To convert to the expected return value,
     * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].
     *
     * Requirements:
     *
     * - `target` must be a contract.
     * - calling `target` with `data` must not revert.
     *
     * _Available since v3.1._
     */
    function functionCall(address target, bytes memory data) internal returns (bytes memory) {
        return functionCall(target, data, "Address: low-level call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with
     * `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        return functionCallWithValue(target, data, 0, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but also transferring `value` wei to `target`.
     *
     * Requirements:
     *
     * - the calling contract must have an ETH balance of at least `value`.
     * - the called Solidity function must be `payable`.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(
        address target,
        bytes memory data,
        uint256 value
    ) internal returns (bytes memory) {
        return functionCallWithValue(target, data, value, "Address: low-level call with value failed");
    }

    /**
     * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but
     * with `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(
        address target,
        bytes memory data,
        uint256 value,
        string memory errorMessage
    ) internal returns (bytes memory) {
        require(address(this).balance >= value, "Address: insufficient balance for call");
        require(isContract(target), "Address: call to non-contract");

        (bool success, bytes memory returndata) = target.call{value: value}(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {
        return functionStaticCall(target, data, "Address: low-level static call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal view returns (bytes memory) {
        require(isContract(target), "Address: static call to non-contract");

        (bool success, bytes memory returndata) = target.staticcall(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {
        return functionDelegateCall(target, data, "Address: low-level delegate call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        require(isContract(target), "Address: delegate call to non-contract");

        (bool success, bytes memory returndata) = target.delegatecall(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the
     * revert reason using the provided one.
     *
     * _Available since v4.3._
     */
    function verifyCallResult(
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal pure returns (bytes memory) {
        if (success) {
            return returndata;
        } else {
            // Look for revert reason and bubble it up if present
            if (returndata.length > 0) {
                // The easiest way to bubble the revert reason is using memory via assembly

                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}

Settings
{
  "optimizer": {
    "enabled": false,
    "runs": 200
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  },
  "libraries": {}
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"contract IERC20","name":"_token","type":"address"},{"internalType":"bytes32","name":"_claimMerkleRoot","type":"bytes32"},{"internalType":"uint256","name":"_startTime","type":"uint256"},{"internalType":"uint256","name":"_endTime","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"_address","type":"address"},{"indexed":false,"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"TokenClaimed","type":"event"},{"inputs":[{"internalType":"bytes32[]","name":"proof","type":"bytes32[]"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"claim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"claimed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"disabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"endTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_disabled","type":"bool"}],"name":"setDisabled","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"startTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"token","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tokenClaimMerkleRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"_token","type":"address"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106100b45760003560e01c806378e979251161007157806378e97925146101535780638da5cb5b14610171578063c884ef831461018f578063ee070805146101bf578063f2fde38b146101dd578063fc0c546a146101f9576100b4565b806323a9b3b6146100b95780633197cbb6146100d75780633b439351146100f557806351cff8d9146101115780636c5a7d1e1461012d578063715018a614610149575b600080fd5b6100c1610217565b6040516100ce9190611422565b60405180910390f35b6100df61021d565b6040516100ec91906115fa565b60405180910390f35b61010f600480360381019061010a9190610fbe565b610223565b005b61012b60048036038101906101269190611064565b61053d565b005b61014760048036038101906101429190611012565b61071c565b005b6101516107b5565b005b61015b61083d565b60405161016891906115fa565b60405180910390f35b610179610843565b60405161018691906113c3565b60405180910390f35b6101a960048036038101906101a49190610f95565b61086c565b6040516101b69190611407565b60405180910390f35b6101c761088c565b6040516101d49190611407565b60405180910390f35b6101f760048036038101906101f29190610f95565b61089f565b005b610201610997565b60405161020e919061143d565b60405180910390f35b60035481565b60065481565b60026001541415610269576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610260906115da565b60405180910390fd5b6002600181905550600260009054906101000a900460ff16156102c1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016102b89061155a565b60405180910390fd5b6005544211610305576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016102fc9061157a565b60405180910390fd5b6006544210610349576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610340906114fa565b60405180910390fd5b600760003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16156103d6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016103cd9061151a565b60405180910390fd5b61041560035433836040516020016103ef929190611354565b60405160208183030381529060405280519060200120846109bd9092919063ffffffff16565b610454576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161044b906114da565b60405180910390fd5b6001600760003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055506104f93382600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166109d49092919063ffffffff16565b7fe42df0d9493dfd0d7f69902c895b94c190a53e8c27876a86f45e7c997d9d8f7c338260405161052a9291906113de565b60405180910390a1600180819055505050565b610545610a5a565b73ffffffffffffffffffffffffffffffffffffffff16610563610843565b73ffffffffffffffffffffffffffffffffffffffff16146105b9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016105b09061153a565b60405180910390fd5b600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141561066057600554421080610620575042600654105b61065f576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016106569061149a565b60405180910390fd5b5b60008173ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b815260040161069b91906113c3565b60206040518083038186803b1580156106b357600080fd5b505afa1580156106c7573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106eb919061108d565b905061071833828473ffffffffffffffffffffffffffffffffffffffff166109d49092919063ffffffff16565b5050565b610724610a5a565b73ffffffffffffffffffffffffffffffffffffffff16610742610843565b73ffffffffffffffffffffffffffffffffffffffff1614610798576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161078f9061153a565b60405180910390fd5b80600260006101000a81548160ff02191690831515021790555050565b6107bd610a5a565b73ffffffffffffffffffffffffffffffffffffffff166107db610843565b73ffffffffffffffffffffffffffffffffffffffff1614610831576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016108289061153a565b60405180910390fd5b61083b6000610a62565b565b60055481565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60076020528060005260406000206000915054906101000a900460ff1681565b600260009054906101000a900460ff1681565b6108a7610a5a565b73ffffffffffffffffffffffffffffffffffffffff166108c5610843565b73ffffffffffffffffffffffffffffffffffffffff161461091b576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109129061153a565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141561098b576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109829061147a565b60405180910390fd5b61099481610a62565b50565b600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000826109ca8584610b26565b1490509392505050565b610a558363a9059cbb60e01b84846040516024016109f39291906113de565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050610bff565b505050565b600033905090565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b60008082905060005b8451811015610bf4576000858281518110610b73577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200260200101519050808311610bb4578281604051602001610b97929190611380565b604051602081830303815290604052805190602001209250610be0565b8083604051602001610bc7929190611380565b6040516020818303038152906040528051906020012092505b508080610bec90611784565b915050610b2f565b508091505092915050565b6000610c61826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff16610cc69092919063ffffffff16565b9050600081511115610cc15780806020019051810190610c81919061103b565b610cc0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610cb7906115ba565b60405180910390fd5b5b505050565b6060610cd58484600085610cde565b90509392505050565b606082471015610d23576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d1a906114ba565b60405180910390fd5b610d2c85610df2565b610d6b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d629061159a565b60405180910390fd5b6000808673ffffffffffffffffffffffffffffffffffffffff168587604051610d9491906113ac565b60006040518083038185875af1925050503d8060008114610dd1576040519150601f19603f3d011682016040523d82523d6000602084013e610dd6565b606091505b5091509150610de6828286610e05565b92505050949350505050565b600080823b905060008111915050919050565b60608315610e1557829050610e65565b600083511115610e285782518084602001fd5b816040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e5c9190611458565b60405180910390fd5b9392505050565b6000610e7f610e7a8461163a565b611615565b90508083825260208201905082856020860282011115610e9e57600080fd5b60005b85811015610ece5781610eb48882610f41565b845260208401935060208301925050600181019050610ea1565b5050509392505050565b600081359050610ee781611b05565b92915050565b600082601f830112610efe57600080fd5b8135610f0e848260208601610e6c565b91505092915050565b600081359050610f2681611b1c565b92915050565b600081519050610f3b81611b1c565b92915050565b600081359050610f5081611b33565b92915050565b600081359050610f6581611b4a565b92915050565b600081359050610f7a81611b61565b92915050565b600081519050610f8f81611b61565b92915050565b600060208284031215610fa757600080fd5b6000610fb584828501610ed8565b91505092915050565b60008060408385031215610fd157600080fd5b600083013567ffffffffffffffff811115610feb57600080fd5b610ff785828601610eed565b925050602061100885828601610f6b565b9150509250929050565b60006020828403121561102457600080fd5b600061103284828501610f17565b91505092915050565b60006020828403121561104d57600080fd5b600061105b84828501610f2c565b91505092915050565b60006020828403121561107657600080fd5b600061108484828501610f56565b91505092915050565b60006020828403121561109f57600080fd5b60006110ad84828501610f80565b91505092915050565b6110bf81611698565b82525050565b6110d66110d182611698565b6117cd565b82525050565b6110e5816116aa565b82525050565b6110f4816116b6565b82525050565b61110b611106826116b6565b6117df565b82525050565b600061111c82611666565b611126818561167c565b9350611136818560208601611720565b80840191505092915050565b61114b816116fc565b82525050565b600061115c82611671565b6111668185611687565b9350611176818560208601611720565b61117f81611863565b840191505092915050565b6000611197602683611687565b91506111a282611881565b604082019050919050565b60006111ba603183611687565b91506111c5826118d0565b604082019050919050565b60006111dd602683611687565b91506111e88261191f565b604082019050919050565b6000611200601d83611687565b915061120b8261196e565b602082019050919050565b6000611223601283611687565b915061122e82611997565b602082019050919050565b6000611246602083611687565b9150611251826119c0565b602082019050919050565b6000611269602083611687565b9150611274826119e9565b602082019050919050565b600061128c601883611687565b915061129782611a12565b602082019050919050565b60006112af601583611687565b91506112ba82611a3b565b602082019050919050565b60006112d2601d83611687565b91506112dd82611a64565b602082019050919050565b60006112f5602a83611687565b915061130082611a8d565b604082019050919050565b6000611318601f83611687565b915061132382611adc565b602082019050919050565b611337816116f2565b82525050565b61134e611349826116f2565b6117fb565b82525050565b600061136082856110c5565b601482019150611370828461133d565b6020820191508190509392505050565b600061138c82856110fa565b60208201915061139c82846110fa565b6020820191508190509392505050565b60006113b88284611111565b915081905092915050565b60006020820190506113d860008301846110b6565b92915050565b60006040820190506113f360008301856110b6565b611400602083018461132e565b9392505050565b600060208201905061141c60008301846110dc565b92915050565b600060208201905061143760008301846110eb565b92915050565b60006020820190506114526000830184611142565b92915050565b600060208201905081810360008301526114728184611151565b905092915050565b600060208201905081810360008301526114938161118a565b9050919050565b600060208201905081810360008301526114b3816111ad565b9050919050565b600060208201905081810360008301526114d3816111d0565b9050919050565b600060208201905081810360008301526114f3816111f3565b9050919050565b6000602082019050818103600083015261151381611216565b9050919050565b6000602082019050818103600083015261153381611239565b9050919050565b600060208201905081810360008301526115538161125c565b9050919050565b600060208201905081810360008301526115738161127f565b9050919050565b60006020820190508181036000830152611593816112a2565b9050919050565b600060208201905081810360008301526115b3816112c5565b9050919050565b600060208201905081810360008301526115d3816112e8565b9050919050565b600060208201905081810360008301526115f38161130b565b9050919050565b600060208201905061160f600083018461132e565b92915050565b600061161f611630565b905061162b8282611753565b919050565b6000604051905090565b600067ffffffffffffffff82111561165557611654611834565b5b602082029050602081019050919050565b600081519050919050565b600081519050919050565b600081905092915050565b600082825260208201905092915050565b60006116a3826116d2565b9050919050565b60008115159050919050565b6000819050919050565b60006116cb82611698565b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b60006117078261170e565b9050919050565b6000611719826116d2565b9050919050565b60005b8381101561173e578082015181840152602081019050611723565b8381111561174d576000848401525b50505050565b61175c82611863565b810181811067ffffffffffffffff8211171561177b5761177a611834565b5b80604052505050565b600061178f826116f2565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8214156117c2576117c1611805565b5b600182019050919050565b60006117d8826117e9565b9050919050565b6000819050919050565b60006117f482611874565b9050919050565b6000819050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6000601f19601f8301169050919050565b60008160601b9050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f63616e6e6f742077697468647261772072657761726420746f6b656e2077686560008201527f6e20636c61696d20616374697661746564000000000000000000000000000000602082015250565b7f416464726573733a20696e73756666696369656e742062616c616e636520666f60008201527f722063616c6c0000000000000000000000000000000000000000000000000000602082015250565b7f6661696c656420746f20766572696679206d65726b6c652070726f6f66000000600082015250565b7f636c61696d206861732066696e69736865640000000000000000000000000000600082015250565b7f7468697320616464726573732068617320616c726561647920636c61696d6564600082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b7f74686520636f6e74726163742069732064697361626c65640000000000000000600082015250565b7f636c61696d20686173206e6f7420737461727465640000000000000000000000600082015250565b7f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000600082015250565b7f5361666545524332303a204552433230206f7065726174696f6e20646964206e60008201527f6f74207375636365656400000000000000000000000000000000000000000000602082015250565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b611b0e81611698565b8114611b1957600080fd5b50565b611b25816116aa565b8114611b3057600080fd5b50565b611b3c816116b6565b8114611b4757600080fd5b50565b611b53816116c0565b8114611b5e57600080fd5b50565b611b6a816116f2565b8114611b7557600080fd5b5056fea2646970667358221220eb29b930598c87faf36be28c38c91f61b08e1bb31cff341be160711ad8c6c34364736f6c63430008040033

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.