ETH Price: $3,299.03 (-0.94%)

Contract

0xD5370FD61478d752B73f57f9527A532847DC30D3
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Token Holdings

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Claim167757062023-03-07 10:02:47656 days ago1678183367IN
0xD5370FD6...847DC30D3
0 ETH0.0024905523.10969059
Claim167075442023-02-25 20:04:23666 days ago1677355463IN
0xD5370FD6...847DC30D3
0 ETH0.0024212922.46493341
Claim166912912023-02-23 13:07:47668 days ago1677157667IN
0xD5370FD6...847DC30D3
0 ETH0.0042776439.69491704
Claim166897662023-02-23 7:59:23668 days ago1677139163IN
0xD5370FD6...847DC30D3
0 ETH0.0039466836.61758656
Claim166713982023-02-20 18:00:11671 days ago1676916011IN
0xD5370FD6...847DC30D3
0 ETH0.0043599840.44702151
Claim164665752023-01-23 2:40:23700 days ago1674441623IN
0xD5370FD6...847DC30D3
0 ETH0.0016037914.88288383
Claim164057502023-01-14 14:50:11708 days ago1673707811IN
0xD5370FD6...847DC30D3
0 ETH0.00379241.80223893
Claim163938802023-01-12 23:04:47710 days ago1673564687IN
0xD5370FD6...847DC30D3
0 ETH0.0029643927.50077657
Claim163617062023-01-08 11:15:23714 days ago1673176523IN
0xD5370FD6...847DC30D3
0 ETH0.0014668913.61196797
Claim163588992023-01-08 1:50:59715 days ago1673142659IN
0xD5370FD6...847DC30D3
0 ETH0.0013192414.5510916
Claim162708752022-12-26 18:59:59727 days ago1672081199IN
0xD5370FD6...847DC30D3
0 ETH0.001337412.4122362
Claim162691112022-12-26 13:05:11727 days ago1672059911IN
0xD5370FD6...847DC30D3
0 ETH0.0012945412.00730452
Claim162330782022-12-21 12:28:47732 days ago1671625727IN
0xD5370FD6...847DC30D3
0 ETH0.0011776612.98914016
Claim162200722022-12-19 16:55:35734 days ago1671468935IN
0xD5370FD6...847DC30D3
0 ETH0.0019279117.88503642
Claim161772252022-12-13 17:20:23740 days ago1670952023IN
0xD5370FD6...847DC30D3
0 ETH0.0029544427.40546627
Claim161606962022-12-11 9:53:47742 days ago1670752427IN
0xD5370FD6...847DC30D3
0 ETH0.0015968714.81974085
Claim161598022022-12-11 6:53:59743 days ago1670741639IN
0xD5370FD6...847DC30D3
0 ETH0.0016920615.70027034
Claim161569862022-12-10 21:26:59743 days ago1670707619IN
0xD5370FD6...847DC30D3
0 ETH0.0015049713.96587818
Claim161424332022-12-08 20:39:23745 days ago1670531963IN
0xD5370FD6...847DC30D3
0 ETH0.0015436814.32105044
Claim161280452022-12-06 20:08:47747 days ago1670357327IN
0xD5370FD6...847DC30D3
0 ETH0.0014987113.90238681
Claim160764532022-11-29 15:09:59754 days ago1669734599IN
0xD5370FD6...847DC30D3
0 ETH0.0013060612.12025142
Claim160232162022-11-22 4:39:11762 days ago1669091951IN
0xD5370FD6...847DC30D3
0 ETH0.0012143711.26644533
Claim160167462022-11-21 6:57:35763 days ago1669013855IN
0xD5370FD6...847DC30D3
0 ETH0.0011480210.65542415
Claim160076922022-11-20 0:37:59764 days ago1668904679IN
0xD5370FD6...847DC30D3
0 ETH0.0009065710
Claim159965722022-11-18 11:22:35765 days ago1668770555IN
0xD5370FD6...847DC30D3
0 ETH0.001332212.3600223
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:
TokenRepayment

Compiler Version
v0.8.7+commit.e28d00a7

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion, MIT license
File 1 of 8 : TokenRepayment.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.7;

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

contract TokenRepayment is Ownable, ReentrancyGuard {
    using SafeERC20 for IERC20;

    event Claim(address from, address to, address token, uint256 amount);
    event TokenSeized(address token, uint256 amount);
    event Paused(bool paused);
    event MerkleRootUpdated(bytes32 oldMerkleRoot, bytes32 newMerkleRoot);
    event ExcludedUpdated(address user, address token, uint256 amount);

    address public immutable TOKEN;

    bytes32 public merkleRoot;
    bool public paused;
    mapping(address => uint256) public excluded;
    mapping(address => bool) public claimed;

    constructor(bytes32 _merkleRoot, address _token) {
        merkleRoot = _merkleRoot;
        TOKEN = _token;
    }

    function claim(uint256 amount, bytes32[] memory proof) external {
        _claimAndTransfer(msg.sender, msg.sender, amount, proof);
    }

    // Like claim(), but transfer to `to` address.
    function claimAndTransfer(address to, uint256 amount, bytes32[] memory proof) external {
        _claimAndTransfer(msg.sender, to, amount, proof);
    }

    // Claim for a contract and transfer tokens to `to` address.
    function adminClaimAndTransfer(address from, address to, uint256 amount, bytes32[] memory proof) external onlyOwner {
        require(Address.isContract(from), "not a contract");
        _claimAndTransfer(from, to, amount, proof);
    }

    function _claimAndTransfer(address from, address to, uint256 amount, bytes32[] memory proof) internal nonReentrant {
        require(claimed[from] == false, "claimed");
        require(!paused, "claim paused");

        // Check the Merkle proof.
        bytes32 leaf = keccak256(abi.encodePacked(from, amount));
        bool verified = MerkleProof.verify(proof, merkleRoot, leaf);
        require(verified, "invalid amount");

        // Update the storage.
        claimed[from] = true;

        if (amount > excluded[from]) {
            IERC20(TOKEN).transfer(to, amount - excluded[from]);
            emit Claim(from, to, TOKEN, amount - excluded[from]);
        }
    }

    function seize(address token, uint amount) external onlyOwner {
        IERC20(token).safeTransfer(owner(), amount);
        emit TokenSeized(token, amount);
    }

    function updateMerkleTree(bytes32 _merkleRoot) external onlyOwner {
        bytes32 oldMerkleRoot = merkleRoot;
        merkleRoot = _merkleRoot;
        emit MerkleRootUpdated(oldMerkleRoot, _merkleRoot);
    }

    function pause(bool _paused) external onlyOwner {
        require(paused != _paused, "invalid paused");

        paused = _paused;
        emit Paused(_paused);
    }

    function setExcluded(address user, uint256 amount) external onlyOwner {
        require(!claimed[user], "already claimed");

        if (amount != excluded[user]) {
            excluded[user] = amount;
            emit ExcludedUpdated(user, TOKEN, amount);
        }
    }
}

File 2 of 8 : Ownable.sol
// SPDX-License-Identifier: MIT

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() {
        _setOwner(_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 {
        _setOwner(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");
        _setOwner(newOwner);
    }

    function _setOwner(address newOwner) private {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}

File 3 of 8 : ReentrancyGuard.sol
// SPDX-License-Identifier: MIT

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 make 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 4 of 8 : IERC20.sol
// SPDX-License-Identifier: MIT

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 5 of 8 : SafeERC20.sol
// SPDX-License-Identifier: MIT

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 6 of 8 : Address.sol
// SPDX-License-Identifier: MIT

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);
            }
        }
    }
}

File 7 of 8 : Context.sol
// SPDX-License-Identifier: MIT

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 : MerkleProof.sol
// SPDX-License-Identifier: MIT

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) {
        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));
            }
        }

        // Check if the computed hash (root) is equal to the provided root
        return computedHash == root;
    }
}

Settings
{
  "evmVersion": "london",
  "libraries": {},
  "metadata": {
    "bytecodeHash": "ipfs",
    "useLiteralContent": true
  },
  "optimizer": {
    "enabled": false,
    "runs": 200
  },
  "remappings": [],
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  }
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"bytes32","name":"_merkleRoot","type":"bytes32"},{"internalType":"address","name":"_token","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"from","type":"address"},{"indexed":false,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"address","name":"token","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Claim","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"address","name":"token","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"ExcludedUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bytes32","name":"oldMerkleRoot","type":"bytes32"},{"indexed":false,"internalType":"bytes32","name":"newMerkleRoot","type":"bytes32"}],"name":"MerkleRootUpdated","type":"event"},{"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":"bool","name":"paused","type":"bool"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"token","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"TokenSeized","type":"event"},{"inputs":[],"name":"TOKEN","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes32[]","name":"proof","type":"bytes32[]"}],"name":"adminClaimAndTransfer","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes32[]","name":"proof","type":"bytes32[]"}],"name":"claim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes32[]","name":"proof","type":"bytes32[]"}],"name":"claimAndTransfer","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"claimed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"excluded","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"merkleRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bool","name":"_paused","type":"bool"}],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"seize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"setExcluded","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_merkleRoot","type":"bytes32"}],"name":"updateMerkleTree","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60a06040523480156200001157600080fd5b506040516200245e3803806200245e83398181016040528101906200003791906200019e565b620000576200004b620000a460201b60201c565b620000ac60201b60201c565b60018081905550816002819055508073ffffffffffffffffffffffffffffffffffffffff1660808173ffffffffffffffffffffffffffffffffffffffff1660601b8152505050506200025c565b600033905090565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600081519050620001818162000228565b92915050565b600081519050620001988162000242565b92915050565b60008060408385031215620001b857620001b762000223565b5b6000620001c88582860162000187565b9250506020620001db8582860162000170565b9150509250929050565b6000620001f28262000203565b9050919050565b6000819050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600080fd5b6200023381620001e5565b81146200023f57600080fd5b50565b6200024d81620001f9565b81146200025957600080fd5b50565b60805160601c6121ce6200029060003960008181610673015281816106b101528181610cf40152610e0f01526121ce6000f3fe608060405234801561001057600080fd5b50600436106100f55760003560e01c8063817dccf011610097578063c0f4709f11610066578063c0f4709f14610238578063c884ef8314610254578063eb9253c014610284578063f2fde38b146102a0576100f5565b8063817dccf0146101c457806382bfefc8146101e05780638da5cb5b146101fe57806391f744d51461021c576100f5565b8063407b155a116100d3578063407b155a14610150578063429cead11461016c5780635c975abb1461019c578063715018a6146101ba576100f5565b806302329a29146100fa5780632eb4a7ab146101165780632f52ebb714610134575b600080fd5b610114600480360381019061010f9190611574565b6102bc565b005b61011e6103e2565b60405161012b9190611a30565b60405180910390f35b61014e600480360381019061014991906115fb565b6103e8565b005b61016a60048036038101906101659190611505565b6103f8565b005b61018660048036038101906101819190611415565b610409565b6040516101939190611c16565b60405180910390f35b6101a4610421565b6040516101b19190611a15565b60405180910390f35b6101c2610434565b005b6101de60048036038101906101d991906114c5565b6104bc565b005b6101e86106af565b6040516101f59190611955565b60405180910390f35b6102066106d3565b6040516102139190611955565b60405180910390f35b610236600480360381019061023191906115ce565b6106fc565b005b610252600480360381019061024d9190611442565b6107c3565b005b61026e60048036038101906102699190611415565b610899565b60405161027b9190611a15565b60405180910390f35b61029e600480360381019061029991906114c5565b6108b9565b005b6102ba60048036038101906102b59190611415565b6109a4565b005b6102c4610a9c565b73ffffffffffffffffffffffffffffffffffffffff166102e26106d3565b73ffffffffffffffffffffffffffffffffffffffff1614610338576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161032f90611b96565b60405180910390fd5b801515600360009054906101000a900460ff161515141561038e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161038590611af6565b60405180910390fd5b80600360006101000a81548160ff0219169083151502179055507f0e2fb031ee032dc02d8011dc50b816eb450cf856abd8261680dac74f72165bd2816040516103d79190611a15565b60405180910390a150565b60025481565b6103f433338484610aa4565b5050565b61040433848484610aa4565b505050565b60046020528060005260406000206000915090505481565b600360009054906101000a900460ff1681565b61043c610a9c565b73ffffffffffffffffffffffffffffffffffffffff1661045a6106d3565b73ffffffffffffffffffffffffffffffffffffffff16146104b0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016104a790611b96565b60405180910390fd5b6104ba6000610ea1565b565b6104c4610a9c565b73ffffffffffffffffffffffffffffffffffffffff166104e26106d3565b73ffffffffffffffffffffffffffffffffffffffff1614610538576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161052f90611b96565b60405180910390fd5b600560008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16156105c5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016105bc90611b16565b60405180910390fd5b600460008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205481146106ab5780600460008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055507fc5f4d2d234f92ba130f00e7f3e58be87e8e741dda9be9dbc6747de98392d7aef827f0000000000000000000000000000000000000000000000000000000000000000836040516106a2939291906119b5565b60405180910390a15b5050565b7f000000000000000000000000000000000000000000000000000000000000000081565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b610704610a9c565b73ffffffffffffffffffffffffffffffffffffffff166107226106d3565b73ffffffffffffffffffffffffffffffffffffffff1614610778576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161076f90611b96565b60405180910390fd5b60006002549050816002819055507ffd69edeceaf1d6832d935be1fba54ca93bf17e71520c6c9ffc08d6e9529f875781836040516107b7929190611a4b565b60405180910390a15050565b6107cb610a9c565b73ffffffffffffffffffffffffffffffffffffffff166107e96106d3565b73ffffffffffffffffffffffffffffffffffffffff161461083f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161083690611b96565b60405180910390fd5b61084884610f65565b610887576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161087e90611ad6565b60405180910390fd5b61089384848484610aa4565b50505050565b60056020528060005260406000206000915054906101000a900460ff1681565b6108c1610a9c565b73ffffffffffffffffffffffffffffffffffffffff166108df6106d3565b73ffffffffffffffffffffffffffffffffffffffff1614610935576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161092c90611b96565b60405180910390fd5b6109676109406106d3565b828473ffffffffffffffffffffffffffffffffffffffff16610f789092919063ffffffff16565b7fb930d7c3c6896f70ea10a959f1d9a7c04e0467138efa4c7040570d4b8f4894b682826040516109989291906119ec565b60405180910390a15050565b6109ac610a9c565b73ffffffffffffffffffffffffffffffffffffffff166109ca6106d3565b73ffffffffffffffffffffffffffffffffffffffff1614610a20576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a1790611b96565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415610a90576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a8790611ab6565b60405180910390fd5b610a9981610ea1565b50565b600033905090565b60026001541415610aea576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ae190611bf6565b60405180910390fd5b600260018190555060001515600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16151514610b85576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b7c90611b76565b60405180910390fd5b600360009054906101000a900460ff1615610bd5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610bcc90611a96565b60405180910390fd5b60008483604051602001610bea9291906118e6565b6040516020818303038152906040528051906020012090506000610c118360025484610ffe565b905080610c53576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c4a90611b36565b60405180910390fd5b6001600560008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550600460008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054841115610e92577f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663a9059cbb86600460008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205487610d7a9190611cb4565b6040518363ffffffff1660e01b8152600401610d979291906119ec565b602060405180830381600087803b158015610db157600080fd5b505af1158015610dc5573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610de991906115a1565b507fc1405953cccdad6b442e266c84d66ad671e2534c6584f8e6ef92802f7ad294d586867f0000000000000000000000000000000000000000000000000000000000000000600460008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205488610e799190611cb4565b604051610e899493929190611970565b60405180910390a15b50506001808190555050505050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600080823b905060008111915050919050565b610ff98363a9059cbb60e01b8484604051602401610f979291906119ec565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff83818316178352505050506110b4565b505050565b60008082905060005b85518110156110a657600086828151811061102557611024611e4e565b5b60200260200101519050808311611066578281604051602001611049929190611912565b604051602081830303815290604052805190602001209250611092565b8083604051602001611079929190611912565b6040516020818303038152906040528051906020012092505b50808061109e90611d9e565b915050611007565b508381149150509392505050565b6000611116826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff1661117b9092919063ffffffff16565b9050600081511115611176578080602001905181019061113691906115a1565b611175576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161116c90611bd6565b60405180910390fd5b5b505050565b606061118a8484600085611193565b90509392505050565b6060824710156111d8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111cf90611b56565b60405180910390fd5b6111e185610f65565b611220576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161121790611bb6565b60405180910390fd5b6000808673ffffffffffffffffffffffffffffffffffffffff168587604051611249919061193e565b60006040518083038185875af1925050503d8060008114611286576040519150601f19603f3d011682016040523d82523d6000602084013e61128b565b606091505b509150915061129b8282866112a7565b92505050949350505050565b606083156112b757829050611307565b6000835111156112ca5782518084602001fd5b816040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112fe9190611a74565b60405180910390fd5b9392505050565b600061132161131c84611c56565b611c31565b9050808382526020820190508285602086028201111561134457611343611eb1565b5b60005b85811015611374578161135a88826113eb565b845260208401935060208301925050600181019050611347565b5050509392505050565b60008135905061138d8161213c565b92915050565b600082601f8301126113a8576113a7611eac565b5b81356113b884826020860161130e565b91505092915050565b6000813590506113d081612153565b92915050565b6000815190506113e581612153565b92915050565b6000813590506113fa8161216a565b92915050565b60008135905061140f81612181565b92915050565b60006020828403121561142b5761142a611ebb565b5b60006114398482850161137e565b91505092915050565b6000806000806080858703121561145c5761145b611ebb565b5b600061146a8782880161137e565b945050602061147b8782880161137e565b935050604061148c87828801611400565b925050606085013567ffffffffffffffff8111156114ad576114ac611eb6565b5b6114b987828801611393565b91505092959194509250565b600080604083850312156114dc576114db611ebb565b5b60006114ea8582860161137e565b92505060206114fb85828601611400565b9150509250929050565b60008060006060848603121561151e5761151d611ebb565b5b600061152c8682870161137e565b935050602061153d86828701611400565b925050604084013567ffffffffffffffff81111561155e5761155d611eb6565b5b61156a86828701611393565b9150509250925092565b60006020828403121561158a57611589611ebb565b5b6000611598848285016113c1565b91505092915050565b6000602082840312156115b7576115b6611ebb565b5b60006115c5848285016113d6565b91505092915050565b6000602082840312156115e4576115e3611ebb565b5b60006115f2848285016113eb565b91505092915050565b6000806040838503121561161257611611611ebb565b5b600061162085828601611400565b925050602083013567ffffffffffffffff81111561164157611640611eb6565b5b61164d85828601611393565b9150509250929050565b61166081611ce8565b82525050565b61167761167282611ce8565b611de7565b82525050565b61168681611cfa565b82525050565b61169581611d06565b82525050565b6116ac6116a782611d06565b611df9565b82525050565b60006116bd82611c82565b6116c78185611c98565b93506116d7818560208601611d3a565b80840191505092915050565b60006116ee82611c8d565b6116f88185611ca3565b9350611708818560208601611d3a565b61171181611ec0565b840191505092915050565b6000611729600c83611ca3565b915061173482611ede565b602082019050919050565b600061174c602683611ca3565b915061175782611f07565b604082019050919050565b600061176f600e83611ca3565b915061177a82611f56565b602082019050919050565b6000611792600e83611ca3565b915061179d82611f7f565b602082019050919050565b60006117b5600f83611ca3565b91506117c082611fa8565b602082019050919050565b60006117d8600e83611ca3565b91506117e382611fd1565b602082019050919050565b60006117fb602683611ca3565b915061180682611ffa565b604082019050919050565b600061181e600783611ca3565b915061182982612049565b602082019050919050565b6000611841602083611ca3565b915061184c82612072565b602082019050919050565b6000611864601d83611ca3565b915061186f8261209b565b602082019050919050565b6000611887602a83611ca3565b9150611892826120c4565b604082019050919050565b60006118aa601f83611ca3565b91506118b582612113565b602082019050919050565b6118c981611d30565b82525050565b6118e06118db82611d30565b611e15565b82525050565b60006118f28285611666565b60148201915061190282846118cf565b6020820191508190509392505050565b600061191e828561169b565b60208201915061192e828461169b565b6020820191508190509392505050565b600061194a82846116b2565b915081905092915050565b600060208201905061196a6000830184611657565b92915050565b60006080820190506119856000830187611657565b6119926020830186611657565b61199f6040830185611657565b6119ac60608301846118c0565b95945050505050565b60006060820190506119ca6000830186611657565b6119d76020830185611657565b6119e460408301846118c0565b949350505050565b6000604082019050611a016000830185611657565b611a0e60208301846118c0565b9392505050565b6000602082019050611a2a600083018461167d565b92915050565b6000602082019050611a45600083018461168c565b92915050565b6000604082019050611a60600083018561168c565b611a6d602083018461168c565b9392505050565b60006020820190508181036000830152611a8e81846116e3565b905092915050565b60006020820190508181036000830152611aaf8161171c565b9050919050565b60006020820190508181036000830152611acf8161173f565b9050919050565b60006020820190508181036000830152611aef81611762565b9050919050565b60006020820190508181036000830152611b0f81611785565b9050919050565b60006020820190508181036000830152611b2f816117a8565b9050919050565b60006020820190508181036000830152611b4f816117cb565b9050919050565b60006020820190508181036000830152611b6f816117ee565b9050919050565b60006020820190508181036000830152611b8f81611811565b9050919050565b60006020820190508181036000830152611baf81611834565b9050919050565b60006020820190508181036000830152611bcf81611857565b9050919050565b60006020820190508181036000830152611bef8161187a565b9050919050565b60006020820190508181036000830152611c0f8161189d565b9050919050565b6000602082019050611c2b60008301846118c0565b92915050565b6000611c3b611c4c565b9050611c478282611d6d565b919050565b6000604051905090565b600067ffffffffffffffff821115611c7157611c70611e7d565b5b602082029050602081019050919050565b600081519050919050565b600081519050919050565b600081905092915050565b600082825260208201905092915050565b6000611cbf82611d30565b9150611cca83611d30565b925082821015611cdd57611cdc611e1f565b5b828203905092915050565b6000611cf382611d10565b9050919050565b60008115159050919050565b6000819050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b60005b83811015611d58578082015181840152602081019050611d3d565b83811115611d67576000848401525b50505050565b611d7682611ec0565b810181811067ffffffffffffffff82111715611d9557611d94611e7d565b5b80604052505050565b6000611da982611d30565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415611ddc57611ddb611e1f565b5b600182019050919050565b6000611df282611e03565b9050919050565b6000819050919050565b6000611e0e82611ed1565b9050919050565b6000819050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b60008160601b9050919050565b7f636c61696d207061757365640000000000000000000000000000000000000000600082015250565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f6e6f74206120636f6e7472616374000000000000000000000000000000000000600082015250565b7f696e76616c696420706175736564000000000000000000000000000000000000600082015250565b7f616c726561647920636c61696d65640000000000000000000000000000000000600082015250565b7f696e76616c696420616d6f756e74000000000000000000000000000000000000600082015250565b7f416464726573733a20696e73756666696369656e742062616c616e636520666f60008201527f722063616c6c0000000000000000000000000000000000000000000000000000602082015250565b7f636c61696d656400000000000000000000000000000000000000000000000000600082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b7f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000600082015250565b7f5361666545524332303a204552433230206f7065726174696f6e20646964206e60008201527f6f74207375636365656400000000000000000000000000000000000000000000602082015250565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b61214581611ce8565b811461215057600080fd5b50565b61215c81611cfa565b811461216757600080fd5b50565b61217381611d06565b811461217e57600080fd5b50565b61218a81611d30565b811461219557600080fd5b5056fea2646970667358221220842def5139ea686b56d0f4d0160c7904d4412e903fa885f2be38d97c16c0eb4b64736f6c634300080700330d23566b533bf92da12d95c69bd34b3d7cc37c704e0798ede93ddf0504bfdc68000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106100f55760003560e01c8063817dccf011610097578063c0f4709f11610066578063c0f4709f14610238578063c884ef8314610254578063eb9253c014610284578063f2fde38b146102a0576100f5565b8063817dccf0146101c457806382bfefc8146101e05780638da5cb5b146101fe57806391f744d51461021c576100f5565b8063407b155a116100d3578063407b155a14610150578063429cead11461016c5780635c975abb1461019c578063715018a6146101ba576100f5565b806302329a29146100fa5780632eb4a7ab146101165780632f52ebb714610134575b600080fd5b610114600480360381019061010f9190611574565b6102bc565b005b61011e6103e2565b60405161012b9190611a30565b60405180910390f35b61014e600480360381019061014991906115fb565b6103e8565b005b61016a60048036038101906101659190611505565b6103f8565b005b61018660048036038101906101819190611415565b610409565b6040516101939190611c16565b60405180910390f35b6101a4610421565b6040516101b19190611a15565b60405180910390f35b6101c2610434565b005b6101de60048036038101906101d991906114c5565b6104bc565b005b6101e86106af565b6040516101f59190611955565b60405180910390f35b6102066106d3565b6040516102139190611955565b60405180910390f35b610236600480360381019061023191906115ce565b6106fc565b005b610252600480360381019061024d9190611442565b6107c3565b005b61026e60048036038101906102699190611415565b610899565b60405161027b9190611a15565b60405180910390f35b61029e600480360381019061029991906114c5565b6108b9565b005b6102ba60048036038101906102b59190611415565b6109a4565b005b6102c4610a9c565b73ffffffffffffffffffffffffffffffffffffffff166102e26106d3565b73ffffffffffffffffffffffffffffffffffffffff1614610338576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161032f90611b96565b60405180910390fd5b801515600360009054906101000a900460ff161515141561038e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161038590611af6565b60405180910390fd5b80600360006101000a81548160ff0219169083151502179055507f0e2fb031ee032dc02d8011dc50b816eb450cf856abd8261680dac74f72165bd2816040516103d79190611a15565b60405180910390a150565b60025481565b6103f433338484610aa4565b5050565b61040433848484610aa4565b505050565b60046020528060005260406000206000915090505481565b600360009054906101000a900460ff1681565b61043c610a9c565b73ffffffffffffffffffffffffffffffffffffffff1661045a6106d3565b73ffffffffffffffffffffffffffffffffffffffff16146104b0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016104a790611b96565b60405180910390fd5b6104ba6000610ea1565b565b6104c4610a9c565b73ffffffffffffffffffffffffffffffffffffffff166104e26106d3565b73ffffffffffffffffffffffffffffffffffffffff1614610538576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161052f90611b96565b60405180910390fd5b600560008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16156105c5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016105bc90611b16565b60405180910390fd5b600460008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205481146106ab5780600460008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055507fc5f4d2d234f92ba130f00e7f3e58be87e8e741dda9be9dbc6747de98392d7aef827f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2836040516106a2939291906119b5565b60405180910390a15b5050565b7f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc281565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b610704610a9c565b73ffffffffffffffffffffffffffffffffffffffff166107226106d3565b73ffffffffffffffffffffffffffffffffffffffff1614610778576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161076f90611b96565b60405180910390fd5b60006002549050816002819055507ffd69edeceaf1d6832d935be1fba54ca93bf17e71520c6c9ffc08d6e9529f875781836040516107b7929190611a4b565b60405180910390a15050565b6107cb610a9c565b73ffffffffffffffffffffffffffffffffffffffff166107e96106d3565b73ffffffffffffffffffffffffffffffffffffffff161461083f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161083690611b96565b60405180910390fd5b61084884610f65565b610887576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161087e90611ad6565b60405180910390fd5b61089384848484610aa4565b50505050565b60056020528060005260406000206000915054906101000a900460ff1681565b6108c1610a9c565b73ffffffffffffffffffffffffffffffffffffffff166108df6106d3565b73ffffffffffffffffffffffffffffffffffffffff1614610935576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161092c90611b96565b60405180910390fd5b6109676109406106d3565b828473ffffffffffffffffffffffffffffffffffffffff16610f789092919063ffffffff16565b7fb930d7c3c6896f70ea10a959f1d9a7c04e0467138efa4c7040570d4b8f4894b682826040516109989291906119ec565b60405180910390a15050565b6109ac610a9c565b73ffffffffffffffffffffffffffffffffffffffff166109ca6106d3565b73ffffffffffffffffffffffffffffffffffffffff1614610a20576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a1790611b96565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415610a90576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a8790611ab6565b60405180910390fd5b610a9981610ea1565b50565b600033905090565b60026001541415610aea576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ae190611bf6565b60405180910390fd5b600260018190555060001515600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16151514610b85576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b7c90611b76565b60405180910390fd5b600360009054906101000a900460ff1615610bd5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610bcc90611a96565b60405180910390fd5b60008483604051602001610bea9291906118e6565b6040516020818303038152906040528051906020012090506000610c118360025484610ffe565b905080610c53576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c4a90611b36565b60405180910390fd5b6001600560008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550600460008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054841115610e92577f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc273ffffffffffffffffffffffffffffffffffffffff1663a9059cbb86600460008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205487610d7a9190611cb4565b6040518363ffffffff1660e01b8152600401610d979291906119ec565b602060405180830381600087803b158015610db157600080fd5b505af1158015610dc5573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610de991906115a1565b507fc1405953cccdad6b442e266c84d66ad671e2534c6584f8e6ef92802f7ad294d586867f000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2600460008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205488610e799190611cb4565b604051610e899493929190611970565b60405180910390a15b50506001808190555050505050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600080823b905060008111915050919050565b610ff98363a9059cbb60e01b8484604051602401610f979291906119ec565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff83818316178352505050506110b4565b505050565b60008082905060005b85518110156110a657600086828151811061102557611024611e4e565b5b60200260200101519050808311611066578281604051602001611049929190611912565b604051602081830303815290604052805190602001209250611092565b8083604051602001611079929190611912565b6040516020818303038152906040528051906020012092505b50808061109e90611d9e565b915050611007565b508381149150509392505050565b6000611116826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff1661117b9092919063ffffffff16565b9050600081511115611176578080602001905181019061113691906115a1565b611175576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161116c90611bd6565b60405180910390fd5b5b505050565b606061118a8484600085611193565b90509392505050565b6060824710156111d8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111cf90611b56565b60405180910390fd5b6111e185610f65565b611220576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161121790611bb6565b60405180910390fd5b6000808673ffffffffffffffffffffffffffffffffffffffff168587604051611249919061193e565b60006040518083038185875af1925050503d8060008114611286576040519150601f19603f3d011682016040523d82523d6000602084013e61128b565b606091505b509150915061129b8282866112a7565b92505050949350505050565b606083156112b757829050611307565b6000835111156112ca5782518084602001fd5b816040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112fe9190611a74565b60405180910390fd5b9392505050565b600061132161131c84611c56565b611c31565b9050808382526020820190508285602086028201111561134457611343611eb1565b5b60005b85811015611374578161135a88826113eb565b845260208401935060208301925050600181019050611347565b5050509392505050565b60008135905061138d8161213c565b92915050565b600082601f8301126113a8576113a7611eac565b5b81356113b884826020860161130e565b91505092915050565b6000813590506113d081612153565b92915050565b6000815190506113e581612153565b92915050565b6000813590506113fa8161216a565b92915050565b60008135905061140f81612181565b92915050565b60006020828403121561142b5761142a611ebb565b5b60006114398482850161137e565b91505092915050565b6000806000806080858703121561145c5761145b611ebb565b5b600061146a8782880161137e565b945050602061147b8782880161137e565b935050604061148c87828801611400565b925050606085013567ffffffffffffffff8111156114ad576114ac611eb6565b5b6114b987828801611393565b91505092959194509250565b600080604083850312156114dc576114db611ebb565b5b60006114ea8582860161137e565b92505060206114fb85828601611400565b9150509250929050565b60008060006060848603121561151e5761151d611ebb565b5b600061152c8682870161137e565b935050602061153d86828701611400565b925050604084013567ffffffffffffffff81111561155e5761155d611eb6565b5b61156a86828701611393565b9150509250925092565b60006020828403121561158a57611589611ebb565b5b6000611598848285016113c1565b91505092915050565b6000602082840312156115b7576115b6611ebb565b5b60006115c5848285016113d6565b91505092915050565b6000602082840312156115e4576115e3611ebb565b5b60006115f2848285016113eb565b91505092915050565b6000806040838503121561161257611611611ebb565b5b600061162085828601611400565b925050602083013567ffffffffffffffff81111561164157611640611eb6565b5b61164d85828601611393565b9150509250929050565b61166081611ce8565b82525050565b61167761167282611ce8565b611de7565b82525050565b61168681611cfa565b82525050565b61169581611d06565b82525050565b6116ac6116a782611d06565b611df9565b82525050565b60006116bd82611c82565b6116c78185611c98565b93506116d7818560208601611d3a565b80840191505092915050565b60006116ee82611c8d565b6116f88185611ca3565b9350611708818560208601611d3a565b61171181611ec0565b840191505092915050565b6000611729600c83611ca3565b915061173482611ede565b602082019050919050565b600061174c602683611ca3565b915061175782611f07565b604082019050919050565b600061176f600e83611ca3565b915061177a82611f56565b602082019050919050565b6000611792600e83611ca3565b915061179d82611f7f565b602082019050919050565b60006117b5600f83611ca3565b91506117c082611fa8565b602082019050919050565b60006117d8600e83611ca3565b91506117e382611fd1565b602082019050919050565b60006117fb602683611ca3565b915061180682611ffa565b604082019050919050565b600061181e600783611ca3565b915061182982612049565b602082019050919050565b6000611841602083611ca3565b915061184c82612072565b602082019050919050565b6000611864601d83611ca3565b915061186f8261209b565b602082019050919050565b6000611887602a83611ca3565b9150611892826120c4565b604082019050919050565b60006118aa601f83611ca3565b91506118b582612113565b602082019050919050565b6118c981611d30565b82525050565b6118e06118db82611d30565b611e15565b82525050565b60006118f28285611666565b60148201915061190282846118cf565b6020820191508190509392505050565b600061191e828561169b565b60208201915061192e828461169b565b6020820191508190509392505050565b600061194a82846116b2565b915081905092915050565b600060208201905061196a6000830184611657565b92915050565b60006080820190506119856000830187611657565b6119926020830186611657565b61199f6040830185611657565b6119ac60608301846118c0565b95945050505050565b60006060820190506119ca6000830186611657565b6119d76020830185611657565b6119e460408301846118c0565b949350505050565b6000604082019050611a016000830185611657565b611a0e60208301846118c0565b9392505050565b6000602082019050611a2a600083018461167d565b92915050565b6000602082019050611a45600083018461168c565b92915050565b6000604082019050611a60600083018561168c565b611a6d602083018461168c565b9392505050565b60006020820190508181036000830152611a8e81846116e3565b905092915050565b60006020820190508181036000830152611aaf8161171c565b9050919050565b60006020820190508181036000830152611acf8161173f565b9050919050565b60006020820190508181036000830152611aef81611762565b9050919050565b60006020820190508181036000830152611b0f81611785565b9050919050565b60006020820190508181036000830152611b2f816117a8565b9050919050565b60006020820190508181036000830152611b4f816117cb565b9050919050565b60006020820190508181036000830152611b6f816117ee565b9050919050565b60006020820190508181036000830152611b8f81611811565b9050919050565b60006020820190508181036000830152611baf81611834565b9050919050565b60006020820190508181036000830152611bcf81611857565b9050919050565b60006020820190508181036000830152611bef8161187a565b9050919050565b60006020820190508181036000830152611c0f8161189d565b9050919050565b6000602082019050611c2b60008301846118c0565b92915050565b6000611c3b611c4c565b9050611c478282611d6d565b919050565b6000604051905090565b600067ffffffffffffffff821115611c7157611c70611e7d565b5b602082029050602081019050919050565b600081519050919050565b600081519050919050565b600081905092915050565b600082825260208201905092915050565b6000611cbf82611d30565b9150611cca83611d30565b925082821015611cdd57611cdc611e1f565b5b828203905092915050565b6000611cf382611d10565b9050919050565b60008115159050919050565b6000819050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b60005b83811015611d58578082015181840152602081019050611d3d565b83811115611d67576000848401525b50505050565b611d7682611ec0565b810181811067ffffffffffffffff82111715611d9557611d94611e7d565b5b80604052505050565b6000611da982611d30565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415611ddc57611ddb611e1f565b5b600182019050919050565b6000611df282611e03565b9050919050565b6000819050919050565b6000611e0e82611ed1565b9050919050565b6000819050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b60008160601b9050919050565b7f636c61696d207061757365640000000000000000000000000000000000000000600082015250565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f6e6f74206120636f6e7472616374000000000000000000000000000000000000600082015250565b7f696e76616c696420706175736564000000000000000000000000000000000000600082015250565b7f616c726561647920636c61696d65640000000000000000000000000000000000600082015250565b7f696e76616c696420616d6f756e74000000000000000000000000000000000000600082015250565b7f416464726573733a20696e73756666696369656e742062616c616e636520666f60008201527f722063616c6c0000000000000000000000000000000000000000000000000000602082015250565b7f636c61696d656400000000000000000000000000000000000000000000000000600082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b7f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000600082015250565b7f5361666545524332303a204552433230206f7065726174696f6e20646964206e60008201527f6f74207375636365656400000000000000000000000000000000000000000000602082015250565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b61214581611ce8565b811461215057600080fd5b50565b61215c81611cfa565b811461216757600080fd5b50565b61217381611d06565b811461217e57600080fd5b50565b61218a81611d30565b811461219557600080fd5b5056fea2646970667358221220842def5139ea686b56d0f4d0160c7904d4412e903fa885f2be38d97c16c0eb4b64736f6c63430008070033

Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)

0d23566b533bf92da12d95c69bd34b3d7cc37c704e0798ede93ddf0504bfdc68000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2

-----Decoded View---------------
Arg [0] : _merkleRoot (bytes32): 0x0d23566b533bf92da12d95c69bd34b3d7cc37c704e0798ede93ddf0504bfdc68
Arg [1] : _token (address): 0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2

-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 0d23566b533bf92da12d95c69bd34b3d7cc37c704e0798ede93ddf0504bfdc68
Arg [1] : 000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2


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.