ETH Price: $2,706.44 (+2.88%)

Contract

0x4d4fB735394213Fe90fdE076C8515Bb350E4509C
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Token Holdings

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Claim171323162023-04-26 18:55:47664 days ago1682535347IN
0x4d4fB735...350E4509C
0 ETH0.0047534635.2989396
Claim170619442023-04-16 20:57:59674 days ago1681678679IN
0x4d4fB735...350E4509C
0 ETH0.007460455.40792754
Claim170549542023-04-15 21:09:23675 days ago1681592963IN
0x4d4fB735...350E4509C
0 ETH0.0039402525.96290227
Claim170316102023-04-12 11:23:23679 days ago1681298603IN
0x4d4fB735...350E4509C
0 ETH0.0028814721.40149297
Claim170273042023-04-11 20:49:59679 days ago1681246199IN
0x4d4fB735...350E4509C
0 ETH0.003928629.17315272
Claim170208682023-04-10 22:55:47680 days ago1681167347IN
0x4d4fB735...350E4509C
0 ETH0.0028696621.31855163
Claim170159672023-04-10 6:15:47681 days ago1681107347IN
0x4d4fB735...350E4509C
0 ETH0.0029165221.66274434
Claim169921732023-04-06 21:22:23684 days ago1680816143IN
0x4d4fB735...350E4509C
0 ETH0.0038119228.31176983
Claim169073232023-03-25 22:03:11696 days ago1679781791IN
0x4d4fB735...350E4509C
0 ETH0.0021870416.243265
Claim168750962023-03-21 9:21:47701 days ago1679390507IN
0x4d4fB735...350E4509C
0 ETH0.0017711613.14980498
Claim168750922023-03-21 9:20:59701 days ago1679390459IN
0x4d4fB735...350E4509C
0 ETH0.0017322112.87057341
Claim168750892023-03-21 9:20:23701 days ago1679390423IN
0x4d4fB735...350E4509C
0 ETH0.0018511513.74170427
Claim168750862023-03-21 9:19:47701 days ago1679390387IN
0x4d4fB735...350E4509C
0 ETH0.0017466512.96899566
Claim168750832023-03-21 9:19:11701 days ago1679390351IN
0x4d4fB735...350E4509C
0 ETH0.0017295912.84408009
Claim168750792023-03-21 9:18:23701 days ago1679390303IN
0x4d4fB735...350E4509C
0 ETH0.0020011412.84157934
Claim168703422023-03-20 17:22:23702 days ago1679332943IN
0x4d4fB735...350E4509C
0 ETH0.004320932.09158732
Claim168411892023-03-16 15:06:35706 days ago1678979195IN
0x4d4fB735...350E4509C
0 ETH0.004847536
Claim168401602023-03-16 11:38:23706 days ago1678966703IN
0x4d4fB735...350E4509C
0 ETH0.0030530622.67221228
Claim167699742023-03-06 14:42:11716 days ago1678113731IN
0x4d4fB735...350E4509C
0 ETH0.0051944438.57940908
Claim167236792023-02-28 2:25:23722 days ago1677551123IN
0x4d4fB735...350E4509C
0 ETH0.0023712317.6073819
Claim167213532023-02-27 18:36:23722 days ago1677522983IN
0x4d4fB735...350E4509C
0 ETH0.0034393325.54412731
Claim166665122023-02-20 1:32:11730 days ago1676856731IN
0x4d4fB735...350E4509C
0 ETH0.0028383621.08132585
Claim166511862023-02-17 21:49:11732 days ago1676670551IN
0x4d4fB735...350E4509C
0 ETH0.0053715239.89457783
Claim166509372023-02-17 20:57:47732 days ago1676667467IN
0x4d4fB735...350E4509C
0 ETH0.0062945846.74323821
Claim166463132023-02-17 5:18:47733 days ago1676611127IN
0x4d4fB735...350E4509C
0 ETH0.0040002326.36189878
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:
MerkleVesting

Compiler Version
v0.8.11+commit.d7f03943

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, MIT license
File 1 of 7 : MerkleVesting.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

/**
 * @title Vesting
 * @author gotbit
 */

// base settings
//10% at TGE, 2 months cliff, and 7.5% monthly for 12 months

import '@openzeppelin/contracts/token/ERC20/IERC20.sol';
import '@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol';
import '@openzeppelin/contracts/access/Ownable.sol';
import '@openzeppelin/contracts/utils/structs/EnumerableSet.sol';

contract MerkleVesting is Ownable {
    using SafeERC20 for IERC20;
    using EnumerableSet for EnumerableSet.AddressSet;

    IERC20 public token;

    // CONSTANTS
    uint256 public MONTH = 30 days;
    uint256 public WEEK = 7 days;

    // MERKLE TREE ROOT
    bytes32 public root;

    // STORAGE
    uint256 public startTimestamp;

    EnumerableSet.AddressSet private _users;

    mapping(address => uint256) claimed;

    mapping(string => uint256) public _roundToId;
    mapping(uint256 => string) public _idToRound;
    // index zero is empty Setup!!!
    Setup[] public _setups;

    struct Factor {
        uint256 numerator;
        uint256 denominator;
    }

    // PERIODS
    // `LOCK PERIOD` -> ON `UNLOCK PERIOD`  -> `CLIFF` -> AFTER CLIFF LINEAR `UNLOCK`
    struct Setup {
        // LOCK PERIOD
        uint256 lockPeriod;
        // AFTER LOCK
        Factor amountOnUnlock;
        // CLIFF PERIOD
        uint256 cliffPeriod;
        // AFTER CLIFF LINEAR `UNLOCK`
        uint256 linearUnit;
        Factor amountPerUnit;
    }

    struct Allocations {
        string roundName;
        uint256 allocation;
    }

    //EVENTS
    event ChangeSetup(uint256 indexed timestamp, address indexed user, string round);
    event WithdrawToken(
        uint256 indexed timestamp,
        address indexed user,
        address token,
        uint256 amount
    );
    event ChangeToken(uint256 indexed timestamp, address indexed user, address newToken);
    event Start(uint256 indexed timestamp, address indexed user);
    event Claim(uint256 indexed timestamp, address indexed user, uint256 amount);
    event ChangeRoot(uint256 indexed timestamp, bytes32 newRoot, uint256 blockNumber);

    /// @dev reverts if called before start.
    modifier isStarted() {
        require(startTimestamp != 0, 'Vesting have not started');
        _;
    }

    constructor(address token_, address owner_) {
        token = IERC20(token_);

        Setup memory setup;
        _setups.push(setup);
        setSetup(
            'private',
            Setup({
                lockPeriod: 0,
                amountOnUnlock: Factor(10, 100),
                cliffPeriod: 0,
                linearUnit: 2 * WEEK,
                amountPerUnit: Factor(375, 10000)
            })
        );
        setSetup(
            'ambassadors',
            Setup({
                lockPeriod: MONTH,
                amountOnUnlock: Factor(0, 100),
                cliffPeriod: 0,
                linearUnit: MONTH,
                amountPerUnit: Factor(277, 10000)
            })
        );
        setSetup(
            'team',
            Setup({
                lockPeriod: MONTH,
                amountOnUnlock: Factor(0, 100),
                cliffPeriod: 0,
                linearUnit: 2 * WEEK,
                amountPerUnit: Factor(104, 10000)
            })
        );
        setSetup(
            'opsdev',
            Setup({
                lockPeriod: MONTH,
                amountOnUnlock: Factor(0, 100),
                cliffPeriod: 0,
                linearUnit: 2 * WEEK,
                amountPerUnit: Factor(104, 10000)
            })
        );
        setSetup(
            'advisory',
            Setup({
                lockPeriod: MONTH,
                amountOnUnlock: Factor(0, 100),
                cliffPeriod: 0,
                linearUnit: 2 * WEEK,
                amountPerUnit: Factor(104, 10000)
            })
        );

        transferOwnership(owner_);
    }

    // USER

    /// @dev claims for user all reward tokens
    function claim(bytes32[] memory proof_, Allocations[] memory allocations_)
        external
        isStarted
    {
        bytes32 _leaf = keccak256(
            abi.encode(allocations_, keccak256(abi.encode(msg.sender)))
        );

        require(verify(proof_, root, _leaf), 'claim: verify in merkle tree failed');
        uint256 unclaimed_ = unclaimed(msg.sender, allocations_);
        require(unclaimed_ > 0, 'Nothing to claim');
        require(
            token.balanceOf(address(this)) >= unclaimed_,
            'Contract doesnt have enough tokens'
        );

        claimed[msg.sender] += unclaimed_;
        token.safeTransfer(msg.sender, unclaimed_);

        emit Claim(block.timestamp, msg.sender, unclaimed_);
    }

    /// @dev returns amount to claim for user
    /// @param user address of user for calculating claim amount
    /// @param allocations_ array of all rounds and allocations of user
    /// @return unclaimed amount of unclaimed tokens
    function unclaimed(address user, Allocations[] memory allocations_)
        public
        view
        isStarted
        returns (uint256)
    {
        uint256 total = 0;
        uint256 allocationsLength = allocations_.length;
        for (uint256 i = 0; i < allocationsLength; i++) {
            total += unclaimedInRound(user, allocations_[i]);
        }

        return total - claimed[user];
    }

    /// @dev returns amount to claim for user in specific round (if denominator of `amountOnUnlock` == 0 than returns 0)
    /// @param user address of user for calculating claim amount
    /// @param roundAllocation round name and allocation of user for this round
    /// @return unclaimed amount of unclaimed tokens in round
    function unclaimedInRound(address user, Allocations memory roundAllocation)
        public
        view
        isStarted
        returns (uint256)
    {
        uint256 roundId = _roundToId[roundAllocation.roundName];
        Setup memory setup = _setups[roundId];
        uint256 allocation = roundAllocation.allocation;
        if (setup.amountOnUnlock.denominator == 0) return 0;

        uint256 total = 0;
        uint256 timepassed = block.timestamp - startTimestamp;

        if (timepassed < setup.lockPeriod) return total;

        // on unlock
        uint256 amountOnUnlock = (allocation * setup.amountOnUnlock.numerator) /
            (setup.amountOnUnlock.denominator);
        total += amountOnUnlock;

        if ((timepassed - setup.lockPeriod) < setup.cliffPeriod) return total;

        // after cliff
        uint256 vestingTime = timepassed - setup.lockPeriod - setup.cliffPeriod;
        uint256 units = vestingTime / setup.linearUnit;
        uint256 vestingAmount = (allocation * units * setup.amountPerUnit.numerator) /
            (setup.amountPerUnit.denominator);

        total += vestingAmount;
        return total > allocation ? allocation : total;
    }

    // ADMINS

    /// @dev starts claiming
    function start() external onlyOwner {
        require(startTimestamp == 0, 'Vesting has been already started');
        startTimestamp = block.timestamp;
        emit Start(block.timestamp, msg.sender);
    }

    /// @dev sets `setup` for round with `name` (ONLY OWNER)
    /// @param round name of round
    /// @param setup setup for round
    function setSetup(string memory round, Setup memory setup) public onlyOwner {
        // _setups[name] = setup;
        if (_roundToId[round] == 0) {
            _roundToId[round] = _setups.length;
            _idToRound[_setups.length] = round;
            _setups.push(setup);
        } else {
            _setups[_roundToId[round]] = setup;
        }
        // setups tracker
        // for claimed
        emit ChangeSetup(block.timestamp, msg.sender, round);
    }

    /// @dev sets `setups` for each round with name from `names` (ONLY OWNER)
    /// @param rounds names of rounds
    /// @param setups setups for rounds
    function setSetups(string[] memory rounds, Setup[] memory setups) external onlyOwner {
        require(rounds.length == setups.length, 'Size of names and setup must be same');
        uint256 length = rounds.length;
        for (uint256 i = 0; i < length; i++) {
            setSetup(rounds[i], setups[i]);
        }
    }

    /// @dev setting merkle tree root, means setting wallets from backend
    /// @param _root new merkle tree root
    function setRoot(bytes32 _root) public onlyOwner {
        root = _root;
        emit ChangeRoot(block.timestamp, _root, block.number);
    }

    /// @dev verifies allocation for claim
    /// @param proof array of bytes for merkle tree verifing
    /// @param _root merkle tree's root
    /// @param leaf keccak256 of user address
    function verify(
        bytes32[] memory proof,
        bytes32 _root,
        bytes32 leaf
    ) public pure returns (bool) {
        bytes32 hash = leaf;
        for (uint256 i = 0; i < proof.length; i++) {
            bytes32 proofElement = proof[i];
            hash = hash < proofElement
                ? keccak256(abi.encode(hash, proofElement))
                : keccak256(abi.encode(proofElement, hash));
        }
        return hash == _root;
    }

    /// @dev withdraws specific `token_` from contract (if amount greater than balance withdraws all balance) (ONLY OWNER)
    /// @param token_ address of token
    /// @param amount uint id which be minted
    function withdraw(IERC20 token_, uint256 amount) external onlyOwner {
        if (token_.balanceOf(address(this)) < amount)
            amount = token_.balanceOf(address(this));
        token_.safeTransfer(msg.sender, amount);

        emit WithdrawToken(block.timestamp, msg.sender, address(token_), amount);
    }

    /// @dev change token address on the contract (ONLY OWNER)
    /// @param token_ new token address
    function setToken(address token_) external onlyOwner {
        require(token_ != address(0), 'Token cant be zero address');
        require(token_ != address(token), 'New token cant be same');

        token = IERC20(token_);
        emit ChangeToken(block.timestamp, msg.sender, token_);
    }

    // VIEW

    struct Info {
        address user;
        uint256 allocation;
        uint256 unclaimed;
        uint256 claimed;
    }

    function userInfo(address user, Allocations[] memory allocations_)
        external
        view
        returns (Info memory)
    {
        Info memory info;
        info.user = user;

        uint256 allocationsLength = allocations_.length;
        for (uint256 i = 0; i < allocationsLength; i++) {
            info.allocation += allocations_[i].allocation;
        }

        info.unclaimed = unclaimed(user, allocations_);
        info.claimed = claimed[user];

        return info;
    }
}

File 2 of 7 : 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 7 : 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 7 : 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 7 : 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);
            }
        }
    }
}

File 6 of 7 : 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 7 of 7 : EnumerableSet.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/structs/EnumerableSet.sol)

pragma solidity ^0.8.0;

/**
 * @dev Library for managing
 * https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive
 * types.
 *
 * Sets have the following properties:
 *
 * - Elements are added, removed, and checked for existence in constant time
 * (O(1)).
 * - Elements are enumerated in O(n). No guarantees are made on the ordering.
 *
 * ```
 * contract Example {
 *     // Add the library methods
 *     using EnumerableSet for EnumerableSet.AddressSet;
 *
 *     // Declare a set state variable
 *     EnumerableSet.AddressSet private mySet;
 * }
 * ```
 *
 * As of v3.3.0, sets of type `bytes32` (`Bytes32Set`), `address` (`AddressSet`)
 * and `uint256` (`UintSet`) are supported.
 */
library EnumerableSet {
    // To implement this library for multiple types with as little code
    // repetition as possible, we write it in terms of a generic Set type with
    // bytes32 values.
    // The Set implementation uses private functions, and user-facing
    // implementations (such as AddressSet) are just wrappers around the
    // underlying Set.
    // This means that we can only create new EnumerableSets for types that fit
    // in bytes32.

    struct Set {
        // Storage of set values
        bytes32[] _values;
        // Position of the value in the `values` array, plus 1 because index 0
        // means a value is not in the set.
        mapping(bytes32 => uint256) _indexes;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function _add(Set storage set, bytes32 value) private returns (bool) {
        if (!_contains(set, value)) {
            set._values.push(value);
            // The value is stored at length-1, but we add 1 to all indexes
            // and use 0 as a sentinel value
            set._indexes[value] = set._values.length;
            return true;
        } else {
            return false;
        }
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function _remove(Set storage set, bytes32 value) private returns (bool) {
        // We read and store the value's index to prevent multiple reads from the same storage slot
        uint256 valueIndex = set._indexes[value];

        if (valueIndex != 0) {
            // Equivalent to contains(set, value)
            // To delete an element from the _values array in O(1), we swap the element to delete with the last one in
            // the array, and then remove the last element (sometimes called as 'swap and pop').
            // This modifies the order of the array, as noted in {at}.

            uint256 toDeleteIndex = valueIndex - 1;
            uint256 lastIndex = set._values.length - 1;

            if (lastIndex != toDeleteIndex) {
                bytes32 lastvalue = set._values[lastIndex];

                // Move the last value to the index where the value to delete is
                set._values[toDeleteIndex] = lastvalue;
                // Update the index for the moved value
                set._indexes[lastvalue] = valueIndex; // Replace lastvalue's index to valueIndex
            }

            // Delete the slot where the moved value was stored
            set._values.pop();

            // Delete the index for the deleted slot
            delete set._indexes[value];

            return true;
        } else {
            return false;
        }
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function _contains(Set storage set, bytes32 value) private view returns (bool) {
        return set._indexes[value] != 0;
    }

    /**
     * @dev Returns the number of values on the set. O(1).
     */
    function _length(Set storage set) private view returns (uint256) {
        return set._values.length;
    }

    /**
     * @dev Returns the value stored at position `index` in the set. O(1).
     *
     * Note that there are no guarantees on the ordering of values inside the
     * array, and it may change when more values are added or removed.
     *
     * Requirements:
     *
     * - `index` must be strictly less than {length}.
     */
    function _at(Set storage set, uint256 index) private view returns (bytes32) {
        return set._values[index];
    }

    /**
     * @dev Return the entire set in an array
     *
     * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
     * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
     * this function has an unbounded cost, and using it as part of a state-changing function may render the function
     * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
     */
    function _values(Set storage set) private view returns (bytes32[] memory) {
        return set._values;
    }

    // Bytes32Set

    struct Bytes32Set {
        Set _inner;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function add(Bytes32Set storage set, bytes32 value) internal returns (bool) {
        return _add(set._inner, value);
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function remove(Bytes32Set storage set, bytes32 value) internal returns (bool) {
        return _remove(set._inner, value);
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function contains(Bytes32Set storage set, bytes32 value) internal view returns (bool) {
        return _contains(set._inner, value);
    }

    /**
     * @dev Returns the number of values in the set. O(1).
     */
    function length(Bytes32Set storage set) internal view returns (uint256) {
        return _length(set._inner);
    }

    /**
     * @dev Returns the value stored at position `index` in the set. O(1).
     *
     * Note that there are no guarantees on the ordering of values inside the
     * array, and it may change when more values are added or removed.
     *
     * Requirements:
     *
     * - `index` must be strictly less than {length}.
     */
    function at(Bytes32Set storage set, uint256 index) internal view returns (bytes32) {
        return _at(set._inner, index);
    }

    /**
     * @dev Return the entire set in an array
     *
     * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
     * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
     * this function has an unbounded cost, and using it as part of a state-changing function may render the function
     * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
     */
    function values(Bytes32Set storage set) internal view returns (bytes32[] memory) {
        return _values(set._inner);
    }

    // AddressSet

    struct AddressSet {
        Set _inner;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function add(AddressSet storage set, address value) internal returns (bool) {
        return _add(set._inner, bytes32(uint256(uint160(value))));
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function remove(AddressSet storage set, address value) internal returns (bool) {
        return _remove(set._inner, bytes32(uint256(uint160(value))));
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function contains(AddressSet storage set, address value) internal view returns (bool) {
        return _contains(set._inner, bytes32(uint256(uint160(value))));
    }

    /**
     * @dev Returns the number of values in the set. O(1).
     */
    function length(AddressSet storage set) internal view returns (uint256) {
        return _length(set._inner);
    }

    /**
     * @dev Returns the value stored at position `index` in the set. O(1).
     *
     * Note that there are no guarantees on the ordering of values inside the
     * array, and it may change when more values are added or removed.
     *
     * Requirements:
     *
     * - `index` must be strictly less than {length}.
     */
    function at(AddressSet storage set, uint256 index) internal view returns (address) {
        return address(uint160(uint256(_at(set._inner, index))));
    }

    /**
     * @dev Return the entire set in an array
     *
     * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
     * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
     * this function has an unbounded cost, and using it as part of a state-changing function may render the function
     * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
     */
    function values(AddressSet storage set) internal view returns (address[] memory) {
        bytes32[] memory store = _values(set._inner);
        address[] memory result;

        assembly {
            result := store
        }

        return result;
    }

    // UintSet

    struct UintSet {
        Set _inner;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function add(UintSet storage set, uint256 value) internal returns (bool) {
        return _add(set._inner, bytes32(value));
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function remove(UintSet storage set, uint256 value) internal returns (bool) {
        return _remove(set._inner, bytes32(value));
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function contains(UintSet storage set, uint256 value) internal view returns (bool) {
        return _contains(set._inner, bytes32(value));
    }

    /**
     * @dev Returns the number of values on the set. O(1).
     */
    function length(UintSet storage set) internal view returns (uint256) {
        return _length(set._inner);
    }

    /**
     * @dev Returns the value stored at position `index` in the set. O(1).
     *
     * Note that there are no guarantees on the ordering of values inside the
     * array, and it may change when more values are added or removed.
     *
     * Requirements:
     *
     * - `index` must be strictly less than {length}.
     */
    function at(UintSet storage set, uint256 index) internal view returns (uint256) {
        return uint256(_at(set._inner, index));
    }

    /**
     * @dev Return the entire set in an array
     *
     * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
     * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
     * this function has an unbounded cost, and using it as part of a state-changing function may render the function
     * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
     */
    function values(UintSet storage set) internal view returns (uint256[] memory) {
        bytes32[] memory store = _values(set._inner);
        uint256[] memory result;

        assembly {
            result := store
        }

        return result;
    }
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"token_","type":"address"},{"internalType":"address","name":"owner_","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"timestamp","type":"uint256"},{"indexed":false,"internalType":"bytes32","name":"newRoot","type":"bytes32"},{"indexed":false,"internalType":"uint256","name":"blockNumber","type":"uint256"}],"name":"ChangeRoot","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"timestamp","type":"uint256"},{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"string","name":"round","type":"string"}],"name":"ChangeSetup","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"timestamp","type":"uint256"},{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"address","name":"newToken","type":"address"}],"name":"ChangeToken","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"timestamp","type":"uint256"},{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Claim","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":true,"internalType":"uint256","name":"timestamp","type":"uint256"},{"indexed":true,"internalType":"address","name":"user","type":"address"}],"name":"Start","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"timestamp","type":"uint256"},{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"address","name":"token","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"WithdrawToken","type":"event"},{"inputs":[],"name":"MONTH","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"WEEK","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"_idToRound","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"","type":"string"}],"name":"_roundToId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"_setups","outputs":[{"internalType":"uint256","name":"lockPeriod","type":"uint256"},{"components":[{"internalType":"uint256","name":"numerator","type":"uint256"},{"internalType":"uint256","name":"denominator","type":"uint256"}],"internalType":"struct MerkleVesting.Factor","name":"amountOnUnlock","type":"tuple"},{"internalType":"uint256","name":"cliffPeriod","type":"uint256"},{"internalType":"uint256","name":"linearUnit","type":"uint256"},{"components":[{"internalType":"uint256","name":"numerator","type":"uint256"},{"internalType":"uint256","name":"denominator","type":"uint256"}],"internalType":"struct MerkleVesting.Factor","name":"amountPerUnit","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32[]","name":"proof_","type":"bytes32[]"},{"components":[{"internalType":"string","name":"roundName","type":"string"},{"internalType":"uint256","name":"allocation","type":"uint256"}],"internalType":"struct MerkleVesting.Allocations[]","name":"allocations_","type":"tuple[]"}],"name":"claim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"root","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_root","type":"bytes32"}],"name":"setRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"round","type":"string"},{"components":[{"internalType":"uint256","name":"lockPeriod","type":"uint256"},{"components":[{"internalType":"uint256","name":"numerator","type":"uint256"},{"internalType":"uint256","name":"denominator","type":"uint256"}],"internalType":"struct MerkleVesting.Factor","name":"amountOnUnlock","type":"tuple"},{"internalType":"uint256","name":"cliffPeriod","type":"uint256"},{"internalType":"uint256","name":"linearUnit","type":"uint256"},{"components":[{"internalType":"uint256","name":"numerator","type":"uint256"},{"internalType":"uint256","name":"denominator","type":"uint256"}],"internalType":"struct MerkleVesting.Factor","name":"amountPerUnit","type":"tuple"}],"internalType":"struct MerkleVesting.Setup","name":"setup","type":"tuple"}],"name":"setSetup","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string[]","name":"rounds","type":"string[]"},{"components":[{"internalType":"uint256","name":"lockPeriod","type":"uint256"},{"components":[{"internalType":"uint256","name":"numerator","type":"uint256"},{"internalType":"uint256","name":"denominator","type":"uint256"}],"internalType":"struct MerkleVesting.Factor","name":"amountOnUnlock","type":"tuple"},{"internalType":"uint256","name":"cliffPeriod","type":"uint256"},{"internalType":"uint256","name":"linearUnit","type":"uint256"},{"components":[{"internalType":"uint256","name":"numerator","type":"uint256"},{"internalType":"uint256","name":"denominator","type":"uint256"}],"internalType":"struct MerkleVesting.Factor","name":"amountPerUnit","type":"tuple"}],"internalType":"struct MerkleVesting.Setup[]","name":"setups","type":"tuple[]"}],"name":"setSetups","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"token_","type":"address"}],"name":"setToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"start","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"startTimestamp","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":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"},{"components":[{"internalType":"string","name":"roundName","type":"string"},{"internalType":"uint256","name":"allocation","type":"uint256"}],"internalType":"struct MerkleVesting.Allocations[]","name":"allocations_","type":"tuple[]"}],"name":"unclaimed","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"},{"components":[{"internalType":"string","name":"roundName","type":"string"},{"internalType":"uint256","name":"allocation","type":"uint256"}],"internalType":"struct MerkleVesting.Allocations","name":"roundAllocation","type":"tuple"}],"name":"unclaimedInRound","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"},{"components":[{"internalType":"string","name":"roundName","type":"string"},{"internalType":"uint256","name":"allocation","type":"uint256"}],"internalType":"struct MerkleVesting.Allocations[]","name":"allocations_","type":"tuple[]"}],"name":"userInfo","outputs":[{"components":[{"internalType":"address","name":"user","type":"address"},{"internalType":"uint256","name":"allocation","type":"uint256"},{"internalType":"uint256","name":"unclaimed","type":"uint256"},{"internalType":"uint256","name":"claimed","type":"uint256"}],"internalType":"struct MerkleVesting.Info","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32[]","name":"proof","type":"bytes32[]"},{"internalType":"bytes32","name":"_root","type":"bytes32"},{"internalType":"bytes32","name":"leaf","type":"bytes32"}],"name":"verify","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"token_","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

608060405262278d0060025562093a806003553480156200001f57600080fd5b5060405162002ac938038062002ac9833981016040819052620000429162000949565b6200004d3362000440565b600180546001600160a01b0319166001600160a01b0384161790556200007262000820565b600b80546001810182556000918252825160079182027f0175b7a638427703f0dbe7bb9bbf987a2551717b34e79f33b5b1008d1fa01db981019190915560208085015180517f0175b7a638427703f0dbe7bb9bbf987a2551717b34e79f33b5b1008d1fa01dba8401558101517f0175b7a638427703f0dbe7bb9bbf987a2551717b34e79f33b5b1008d1fa01dbb8301556040808601517f0175b7a638427703f0dbe7bb9bbf987a2551717b34e79f33b5b1008d1fa01dbc8401556060808701517f0175b7a638427703f0dbe7bb9bbf987a2551717b34e79f33b5b1008d1fa01dbd850155608087015180517f0175b7a638427703f0dbe7bb9bbf987a2551717b34e79f33b5b1008d1fa01dbe8601558301517f0175b7a638427703f0dbe7bb9bbf987a2551717b34e79f33b5b1008d1fa01dbf9094019390935580518082018252938452667072697661746560c81b84830152805160a08101825285815281518083018352600a8152606481850152928101929092528101939093526003546200023493918201906200020790600262000981565b8152602001604051806040016040528061017781526020016127108152508152506200049060201b60201c565b620002c26040518060400160405280600b81526020016a616d6261737361646f727360a81b8152506040518060a00160405280600254815260200160405180604001604052806000815260200160648152508152602001600081526020016002548152602001604051806040016040528061011581526020016127108152508152506200049060201b60201c565b62000356604051806040016040528060048152602001637465616d60e01b8152506040518060a001604052806002548152602001604051806040016040528060008152602001606481525081526020016000815260200160035460026200032a919062000981565b81526020016040518060400160405280606881526020016127108152508152506200049060201b60201c565b620003c06040518060400160405280600681526020016537b839b232bb60d11b8152506040518060a001604052806002548152602001604051806040016040528060008152602001606481525081526020016000815260200160035460026200032a919062000981565b6200042c6040518060400160405280600881526020016761647669736f727960c01b8152506040518060a001604052806002548152602001604051806040016040528060008152602001606481525081526020016000815260200160035460026200032a919062000981565b620004378262000760565b50505062000a88565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6000546001600160a01b03163314620004df5760405162461bcd60e51b8152602060048201819052602482015260008051602062002aa983398151915260448201526064015b60405180910390fd5b600982604051620004f19190620009e2565b908152602001604051809103902054600014156200068e57600b546040516009906200051f908590620009e2565b908152604080516020928190038301902092909255600b546000908152600a8252919091208351620005549285019062000886565b50600b805460018101825560009190915281517f0175b7a638427703f0dbe7bb9bbf987a2551717b34e79f33b5b1008d1fa01db960079092029182015560208083015180517f0175b7a638427703f0dbe7bb9bbf987a2551717b34e79f33b5b1008d1fa01dba8401558101517f0175b7a638427703f0dbe7bb9bbf987a2551717b34e79f33b5b1008d1fa01dbb83015560408301517f0175b7a638427703f0dbe7bb9bbf987a2551717b34e79f33b5b1008d1fa01dbc83015560608301517f0175b7a638427703f0dbe7bb9bbf987a2551717b34e79f33b5b1008d1fa01dbd830155608083015180517f0175b7a638427703f0dbe7bb9bbf987a2551717b34e79f33b5b1008d1fa01dbe84015501517f0175b7a638427703f0dbe7bb9bbf987a2551717b34e79f33b5b1008d1fa01dbf9091015562000718565b80600b600984604051620006a39190620009e2565b90815260200160405180910390205481548110620006c557620006c562000a00565b600091825260209182902083516007909202019081558282015180516001830155820151600282015560408301516003820155606083015160048201556080909201518051600584015501516006909101555b336001600160a01b0316427f64bad2fbfb94ec234d879f75ce8b6f8b89996823c4c2d806c8adbccd8a4f9d508460405162000754919062000a16565b60405180910390a35050565b6000546001600160a01b03163314620007ab5760405162461bcd60e51b8152602060048201819052602482015260008051602062002aa98339815191526044820152606401620004d6565b6001600160a01b038116620008125760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401620004d6565b6200081d8162000440565b50565b6040518060a001604052806000815260200162000850604051806040016040528060008152602001600081525090565b8152602001600081526020016000815260200162000881604051806040016040528060008152602001600081525090565b905290565b828054620008949062000a4b565b90600052602060002090601f016020900481019282620008b8576000855562000903565b82601f10620008d357805160ff191683800117855562000903565b8280016001018555821562000903579182015b8281111562000903578251825591602001919060010190620008e6565b506200091192915062000915565b5090565b5b8082111562000911576000815560010162000916565b80516001600160a01b03811681146200094457600080fd5b919050565b600080604083850312156200095d57600080fd5b62000968836200092c565b915062000978602084016200092c565b90509250929050565b6000816000190483118215151615620009aa57634e487b7160e01b600052601160045260246000fd5b500290565b60005b83811015620009cc578181015183820152602001620009b2565b83811115620009dc576000848401525b50505050565b60008251620009f6818460208701620009af565b9190910192915050565b634e487b7160e01b600052603260045260246000fd5b602081526000825180602084015262000a37816040850160208701620009af565b601f01601f19169190910160400192915050565b600181811c9082168062000a6057607f821691505b6020821081141562000a8257634e487b7160e01b600052602260045260246000fd5b50919050565b6120118062000a986000396000f3fe608060405234801561001057600080fd5b50600436106101425760003560e01c8063c63f3fb3116100b8578063ead67f331161007c578063ead67f33146102ed578063ebf0c7171461030d578063f2fde38b14610316578063f3fef3a314610329578063f4359ce51461033c578063fc0c546a1461034557600080fd5b8063c63f3fb3146102a2578063d324c3ad146102b5578063d5999a5c146102c8578063dab5f340146102d1578063e6fd48bc146102e457600080fd5b80635a9a49c71161010a5780635a9a49c71461020c5780636ca0e5051461022f578063715018a61461024257806382ee5d1a1461024a5780638da5cb5b14610275578063be9a65551461029a57600080fd5b80630f854c0914610147578063144fa6d71461015c578063312c5d621461016f5780633ad3462c146101c757806355041225146101eb575b600080fd5b61015a610155366004611828565b610358565b005b61015a61016a36600461188c565b6105fd565b61018261017d3660046119ac565b61072c565b6040516101be919081516001600160a01b0316815260208083015190820152604080830151908201526060918201519181019190915260800190565b60405180910390f35b6101da6101d53660046119fb565b61082a565b6040516101be959493929190611a14565b6101fe6101f9366004611a5f565b610896565b6040519081526020016101be565b61021f61021a366004611aff565b610a98565b60405190151581526020016101be565b61015a61023d366004611b4c565b610b48565b61015a610da9565b6101fe610258366004611ba5565b805160208183018101805160098252928201919093012091525481565b6000546001600160a01b03165b6040516001600160a01b0390911681526020016101be565b61015a610ddf565b6101fe6102b03660046119ac565b610e8d565b61015a6102c3366004611c49565b610f2f565b6101fe60025481565b61015a6102df3660046119fb565b611017565b6101fe60055481565b6103006102fb3660046119fb565b611083565b6040516101be9190611d6a565b6101fe60045481565b61015a61032436600461188c565b61111d565b61015a610337366004611d7d565b6111b8565b6101fe60035481565b600154610282906001600160a01b031681565b6000546001600160a01b0316331461038b5760405162461bcd60e51b815260040161038290611da9565b60405180910390fd5b60098260405161039b9190611dde565b9081526020016040518091039020546000141561053257600b546040516009906103c6908590611dde565b908152604080516020928190038301902092909255600b546000908152600a82529190912083516103f992850190611605565b50600b805460018101825560009190915281517f0175b7a638427703f0dbe7bb9bbf987a2551717b34e79f33b5b1008d1fa01db960079092029182015560208083015180517f0175b7a638427703f0dbe7bb9bbf987a2551717b34e79f33b5b1008d1fa01dba8401558101517f0175b7a638427703f0dbe7bb9bbf987a2551717b34e79f33b5b1008d1fa01dbb83015560408301517f0175b7a638427703f0dbe7bb9bbf987a2551717b34e79f33b5b1008d1fa01dbc83015560608301517f0175b7a638427703f0dbe7bb9bbf987a2551717b34e79f33b5b1008d1fa01dbd830155608083015180517f0175b7a638427703f0dbe7bb9bbf987a2551717b34e79f33b5b1008d1fa01dbe84015501517f0175b7a638427703f0dbe7bb9bbf987a2551717b34e79f33b5b1008d1fa01dbf909101556105b7565b80600b6009846040516105459190611dde565b9081526020016040518091039020548154811061056457610564611dfa565b600091825260209182902083516007909202019081558282015180516001830155820151600282015560408301516003820155606083015160048201556080909201518051600584015501516006909101555b336001600160a01b0316427f64bad2fbfb94ec234d879f75ce8b6f8b89996823c4c2d806c8adbccd8a4f9d50846040516105f19190611d6a565b60405180910390a35050565b6000546001600160a01b031633146106275760405162461bcd60e51b815260040161038290611da9565b6001600160a01b03811661067d5760405162461bcd60e51b815260206004820152601a60248201527f546f6b656e2063616e74206265207a65726f20616464726573730000000000006044820152606401610382565b6001546001600160a01b03828116911614156106d45760405162461bcd60e51b81526020600482015260166024820152754e657720746f6b656e2063616e742062652073616d6560501b6044820152606401610382565b600180546001600160a01b0319166001600160a01b038316908117909155604051908152339042907fc1f78d68e040a585926b985e776a9e902525b7b181d05f7a455a7a04652abe719060200160405180910390a350565b610760604051806080016040528060006001600160a01b031681526020016000815260200160008152602001600081525090565b610794604051806080016040528060006001600160a01b031681526020016000815260200160008152602001600081525090565b6001600160a01b0384168152825160005b818110156107f1578481815181106107bf576107bf611dfa565b602002602001015160200151836020018181516107dc9190611e26565b905250806107e981611e3e565b9150506107a5565b506107fc8585610e8d565b6040808401919091526001600160a01b03861660009081526008602052205460608301525090505b92915050565b600b818154811061083a57600080fd5b600091825260209182902060079091020180546040805180820182526001840154815260028401548186015260038401546004850154835180850190945260058601548452600690950154958301959095529194509092919085565b6000600554600014156108bb5760405162461bcd60e51b815260040161038290611e59565b6000600983600001516040516108d19190611dde565b90815260200160405180910390205490506000600b82815481106108f7576108f7611dfa565b60009182526020918290206040805160a081018252600790930290910180548352815180830183526001820154815260028201548186015283850190815260038201548484015260048201546060850152825180840190935260058201548352600690910154828501526080830191909152868301519051909201519092506109865760009350505050610824565b600080600554426109979190611e90565b84519091508110156109af5750935061082492505050565b602080850151908101519051600091906109c99086611ea7565b6109d39190611ec6565b90506109df8184611e26565b60408601518651919450906109f49084611e90565b1015610a0857829650505050505050610824565b6040850151855160009190610a1d9085611e90565b610a279190611e90565b90506000866060015182610a3b9190611ec6565b608088015160208101519051919250600091610a57848a611ea7565b610a619190611ea7565b610a6b9190611ec6565b9050610a778187611e26565b9550868611610a865785610a88565b865b9c9b505050505050505050505050565b600081815b8551811015610b3b576000868281518110610aba57610aba611dfa565b60200260200101519050808310610afa57604080516020810183905290810184905260600160405160208183030381529060405280519060200120610b25565b6040805160208101859052908101829052606001604051602081830303815290604052805190602001205b9250508080610b3390611e3e565b915050610a9d565b50831490505b9392505050565b600554610b675760405162461bcd60e51b815260040161038290611e59565b6040805133602082015260009183910160405160208183030381529060405280519060200120604051602001610b9e929190611ee8565b604051602081830303815290604052805190602001209050610bc38360045483610a98565b610c1b5760405162461bcd60e51b815260206004820152602360248201527f636c61696d3a2076657269667920696e206d65726b6c652074726565206661696044820152621b195960ea1b6064820152608401610382565b6000610c273384610e8d565b905060008111610c6c5760405162461bcd60e51b815260206004820152601060248201526f4e6f7468696e6720746f20636c61696d60801b6044820152606401610382565b6001546040516370a0823160e01b815230600482015282916001600160a01b0316906370a0823190602401602060405180830381865afa158015610cb4573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610cd89190611f65565b1015610d315760405162461bcd60e51b815260206004820152602260248201527f436f6e747261637420646f65736e74206861766520656e6f75676820746f6b656044820152616e7360f01b6064820152608401610382565b3360009081526008602052604081208054839290610d50908490611e26565b9091555050600154610d6c906001600160a01b03163383611314565b604051818152339042907f3ed1528b0fdc7c5207c1bf935e34a667e13656b9ed165260c522be0bc544f3039060200160405180910390a350505050565b6000546001600160a01b03163314610dd35760405162461bcd60e51b815260040161038290611da9565b610ddd600061136b565b565b6000546001600160a01b03163314610e095760405162461bcd60e51b815260040161038290611da9565b60055415610e595760405162461bcd60e51b815260206004820181905260248201527f56657374696e6720686173206265656e20616c726561647920737461727465646044820152606401610382565b4260058190556040513391907f734cd2a382f4a1f43ba991c09a5f645dc0929abd9f79b2c3b87ec4b9aa207cfd90600090a3565b600060055460001415610eb25760405162461bcd60e51b815260040161038290611e59565b8151600090815b81811015610f0257610ee486868381518110610ed757610ed7611dfa565b6020026020010151610896565b610eee9084611e26565b925080610efa81611e3e565b915050610eb9565b506001600160a01b038516600090815260086020526040902054610f269083611e90565b95945050505050565b6000546001600160a01b03163314610f595760405162461bcd60e51b815260040161038290611da9565b8051825114610fb65760405162461bcd60e51b8152602060048201526024808201527f53697a65206f66206e616d657320616e64207365747570206d7573742062652060448201526373616d6560e01b6064820152608401610382565b815160005b8181101561101157610fff848281518110610fd857610fd8611dfa565b6020026020010151848381518110610ff257610ff2611dfa565b6020026020010151610358565b8061100981611e3e565b915050610fbb565b50505050565b6000546001600160a01b031633146110415760405162461bcd60e51b815260040161038290611da9565b60048190556040805182815243602082015242917f71240b4e131fc111c67d3ccc373a30855a00a4e8d6099e9d9e6a696a5f4e7df1910160405180910390a250565b600a602052600090815260409020805461109c90611f7e565b80601f01602080910402602001604051908101604052809291908181526020018280546110c890611f7e565b80156111155780601f106110ea57610100808354040283529160200191611115565b820191906000526020600020905b8154815290600101906020018083116110f857829003601f168201915b505050505081565b6000546001600160a01b031633146111475760405162461bcd60e51b815260040161038290611da9565b6001600160a01b0381166111ac5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610382565b6111b58161136b565b50565b6000546001600160a01b031633146111e25760405162461bcd60e51b815260040161038290611da9565b6040516370a0823160e01b815230600482015281906001600160a01b038416906370a0823190602401602060405180830381865afa158015611228573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061124c9190611f65565b10156112bd576040516370a0823160e01b81523060048201526001600160a01b038316906370a0823190602401602060405180830381865afa158015611296573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112ba9190611f65565b90505b6112d16001600160a01b0383163383611314565b604080516001600160a01b038416815260208101839052339142917fc19a12c426381240538e3bdf603877802a9ab03acb52103778051e557f7e5a5191016105f1565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b1790526113669084906113bb565b505050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6000611410826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b031661148d9092919063ffffffff16565b805190915015611366578080602001905181019061142e9190611fb9565b6113665760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610382565b606061149c84846000856114a4565b949350505050565b6060824710156115055760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b6064820152608401610382565b843b6115535760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610382565b600080866001600160a01b0316858760405161156f9190611dde565b60006040518083038185875af1925050503d80600081146115ac576040519150601f19603f3d011682016040523d82523d6000602084013e6115b1565b606091505b50915091506115c18282866115cc565b979650505050505050565b606083156115db575081610b41565b8251156115eb5782518084602001fd5b8160405162461bcd60e51b81526004016103829190611d6a565b82805461161190611f7e565b90600052602060002090601f0160209004810192826116335760008555611679565b82601f1061164c57805160ff1916838001178555611679565b82800160010185558215611679579182015b8281111561167957825182559160200191906001019061165e565b50611685929150611689565b5090565b5b80821115611685576000815560010161168a565b634e487b7160e01b600052604160045260246000fd5b604080519081016001600160401b03811182821017156116d6576116d661169e565b60405290565b604051601f8201601f191681016001600160401b03811182821017156117045761170461169e565b604052919050565b600082601f83011261171d57600080fd5b81356001600160401b038111156117365761173661169e565b611749601f8201601f19166020016116dc565b81815284602083860101111561175e57600080fd5b816020850160208301376000918101602001919091529392505050565b60006040828403121561178d57600080fd5b6117956116b4565b9050813581526020820135602082015292915050565b600060e082840312156117bd57600080fd5b60405160a081018181106001600160401b03821117156117df576117df61169e565b604052823581529050806117f6846020850161177b565b6020820152606083013560408201526080830135606082015261181c8460a0850161177b565b60808201525092915050565b600080610100838503121561183c57600080fd5b82356001600160401b0381111561185257600080fd5b61185e8582860161170c565b92505061186e84602085016117ab565b90509250929050565b6001600160a01b03811681146111b557600080fd5b60006020828403121561189e57600080fd5b8135610b4181611877565b60006001600160401b038211156118c2576118c261169e565b5060051b60200190565b6000604082840312156118de57600080fd5b6118e66116b4565b905081356001600160401b038111156118fe57600080fd5b61190a8482850161170c565b8252506020820135602082015292915050565b600082601f83011261192e57600080fd5b8135602061194361193e836118a9565b6116dc565b82815260059290921b8401810191818101908684111561196257600080fd5b8286015b848110156119a15780356001600160401b038111156119855760008081fd5b6119938986838b01016118cc565b845250918301918301611966565b509695505050505050565b600080604083850312156119bf57600080fd5b82356119ca81611877565b915060208301356001600160401b038111156119e557600080fd5b6119f18582860161191d565b9150509250929050565b600060208284031215611a0d57600080fd5b5035919050565b85815260e08101611a32602083018780518252602090810151910152565b846060830152836080830152611a5560a083018480518252602090810151910152565b9695505050505050565b60008060408385031215611a7257600080fd5b8235611a7d81611877565b915060208301356001600160401b03811115611a9857600080fd5b6119f1858286016118cc565b600082601f830112611ab557600080fd5b81356020611ac561193e836118a9565b82815260059290921b84018101918181019086841115611ae457600080fd5b8286015b848110156119a15780358352918301918301611ae8565b600080600060608486031215611b1457600080fd5b83356001600160401b03811115611b2a57600080fd5b611b3686828701611aa4565b9660208601359650604090950135949350505050565b60008060408385031215611b5f57600080fd5b82356001600160401b0380821115611b7657600080fd5b611b8286838701611aa4565b93506020850135915080821115611b9857600080fd5b506119f18582860161191d565b600060208284031215611bb757600080fd5b81356001600160401b03811115611bcd57600080fd5b61149c8482850161170c565b600082601f830112611bea57600080fd5b81356020611bfa61193e836118a9565b82815260e09283028501820192828201919087851115611c1957600080fd5b8387015b85811015611c3c57611c2f89826117ab565b8452928401928101611c1d565b5090979650505050505050565b60008060408385031215611c5c57600080fd5b82356001600160401b0380821115611c7357600080fd5b818501915085601f830112611c8757600080fd5b81356020611c9761193e836118a9565b82815260059290921b84018101918181019089841115611cb657600080fd5b8286015b84811015611cee57803586811115611cd25760008081fd5b611ce08c86838b010161170c565b845250918301918301611cba565b5096505086013592505080821115611d0557600080fd5b506119f185828601611bd9565b60005b83811015611d2d578181015183820152602001611d15565b838111156110115750506000910152565b60008151808452611d56816020860160208601611d12565b601f01601f19169290920160200192915050565b602081526000610b416020830184611d3e565b60008060408385031215611d9057600080fd5b8235611d9b81611877565b946020939093013593505050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60008251611df0818460208701611d12565b9190910192915050565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b60008219821115611e3957611e39611e10565b500190565b6000600019821415611e5257611e52611e10565b5060010190565b60208082526018908201527f56657374696e672068617665206e6f7420737461727465640000000000000000604082015260600190565b600082821015611ea257611ea2611e10565b500390565b6000816000190483118215151615611ec157611ec1611e10565b500290565b600082611ee357634e487b7160e01b600052601260045260246000fd5b500490565b6000604080830181845280865180835260608601915060608160051b8701019250602080890160005b83811015611f5257888603605f1901855281518051888852611f3589890182611d3e565b918501519785019790975295509382019390820190600101611f11565b5050959095019590955295945050505050565b600060208284031215611f7757600080fd5b5051919050565b600181811c90821680611f9257607f821691505b60208210811415611fb357634e487b7160e01b600052602260045260246000fd5b50919050565b600060208284031215611fcb57600080fd5b81518015158114610b4157600080fdfea2646970667358221220ec398f6048ace66f091e247338c5adbff78076452b94f5065a09b2f583f81ee064736f6c634300080b00334f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65720000000000000000000000001cc29ee9dd8d9ed4148f6600ba5ec84d7ee85d12000000000000000000000000dd5beabc287b11a1c9633f1f8757afa60ec38fb0

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106101425760003560e01c8063c63f3fb3116100b8578063ead67f331161007c578063ead67f33146102ed578063ebf0c7171461030d578063f2fde38b14610316578063f3fef3a314610329578063f4359ce51461033c578063fc0c546a1461034557600080fd5b8063c63f3fb3146102a2578063d324c3ad146102b5578063d5999a5c146102c8578063dab5f340146102d1578063e6fd48bc146102e457600080fd5b80635a9a49c71161010a5780635a9a49c71461020c5780636ca0e5051461022f578063715018a61461024257806382ee5d1a1461024a5780638da5cb5b14610275578063be9a65551461029a57600080fd5b80630f854c0914610147578063144fa6d71461015c578063312c5d621461016f5780633ad3462c146101c757806355041225146101eb575b600080fd5b61015a610155366004611828565b610358565b005b61015a61016a36600461188c565b6105fd565b61018261017d3660046119ac565b61072c565b6040516101be919081516001600160a01b0316815260208083015190820152604080830151908201526060918201519181019190915260800190565b60405180910390f35b6101da6101d53660046119fb565b61082a565b6040516101be959493929190611a14565b6101fe6101f9366004611a5f565b610896565b6040519081526020016101be565b61021f61021a366004611aff565b610a98565b60405190151581526020016101be565b61015a61023d366004611b4c565b610b48565b61015a610da9565b6101fe610258366004611ba5565b805160208183018101805160098252928201919093012091525481565b6000546001600160a01b03165b6040516001600160a01b0390911681526020016101be565b61015a610ddf565b6101fe6102b03660046119ac565b610e8d565b61015a6102c3366004611c49565b610f2f565b6101fe60025481565b61015a6102df3660046119fb565b611017565b6101fe60055481565b6103006102fb3660046119fb565b611083565b6040516101be9190611d6a565b6101fe60045481565b61015a61032436600461188c565b61111d565b61015a610337366004611d7d565b6111b8565b6101fe60035481565b600154610282906001600160a01b031681565b6000546001600160a01b0316331461038b5760405162461bcd60e51b815260040161038290611da9565b60405180910390fd5b60098260405161039b9190611dde565b9081526020016040518091039020546000141561053257600b546040516009906103c6908590611dde565b908152604080516020928190038301902092909255600b546000908152600a82529190912083516103f992850190611605565b50600b805460018101825560009190915281517f0175b7a638427703f0dbe7bb9bbf987a2551717b34e79f33b5b1008d1fa01db960079092029182015560208083015180517f0175b7a638427703f0dbe7bb9bbf987a2551717b34e79f33b5b1008d1fa01dba8401558101517f0175b7a638427703f0dbe7bb9bbf987a2551717b34e79f33b5b1008d1fa01dbb83015560408301517f0175b7a638427703f0dbe7bb9bbf987a2551717b34e79f33b5b1008d1fa01dbc83015560608301517f0175b7a638427703f0dbe7bb9bbf987a2551717b34e79f33b5b1008d1fa01dbd830155608083015180517f0175b7a638427703f0dbe7bb9bbf987a2551717b34e79f33b5b1008d1fa01dbe84015501517f0175b7a638427703f0dbe7bb9bbf987a2551717b34e79f33b5b1008d1fa01dbf909101556105b7565b80600b6009846040516105459190611dde565b9081526020016040518091039020548154811061056457610564611dfa565b600091825260209182902083516007909202019081558282015180516001830155820151600282015560408301516003820155606083015160048201556080909201518051600584015501516006909101555b336001600160a01b0316427f64bad2fbfb94ec234d879f75ce8b6f8b89996823c4c2d806c8adbccd8a4f9d50846040516105f19190611d6a565b60405180910390a35050565b6000546001600160a01b031633146106275760405162461bcd60e51b815260040161038290611da9565b6001600160a01b03811661067d5760405162461bcd60e51b815260206004820152601a60248201527f546f6b656e2063616e74206265207a65726f20616464726573730000000000006044820152606401610382565b6001546001600160a01b03828116911614156106d45760405162461bcd60e51b81526020600482015260166024820152754e657720746f6b656e2063616e742062652073616d6560501b6044820152606401610382565b600180546001600160a01b0319166001600160a01b038316908117909155604051908152339042907fc1f78d68e040a585926b985e776a9e902525b7b181d05f7a455a7a04652abe719060200160405180910390a350565b610760604051806080016040528060006001600160a01b031681526020016000815260200160008152602001600081525090565b610794604051806080016040528060006001600160a01b031681526020016000815260200160008152602001600081525090565b6001600160a01b0384168152825160005b818110156107f1578481815181106107bf576107bf611dfa565b602002602001015160200151836020018181516107dc9190611e26565b905250806107e981611e3e565b9150506107a5565b506107fc8585610e8d565b6040808401919091526001600160a01b03861660009081526008602052205460608301525090505b92915050565b600b818154811061083a57600080fd5b600091825260209182902060079091020180546040805180820182526001840154815260028401548186015260038401546004850154835180850190945260058601548452600690950154958301959095529194509092919085565b6000600554600014156108bb5760405162461bcd60e51b815260040161038290611e59565b6000600983600001516040516108d19190611dde565b90815260200160405180910390205490506000600b82815481106108f7576108f7611dfa565b60009182526020918290206040805160a081018252600790930290910180548352815180830183526001820154815260028201548186015283850190815260038201548484015260048201546060850152825180840190935260058201548352600690910154828501526080830191909152868301519051909201519092506109865760009350505050610824565b600080600554426109979190611e90565b84519091508110156109af5750935061082492505050565b602080850151908101519051600091906109c99086611ea7565b6109d39190611ec6565b90506109df8184611e26565b60408601518651919450906109f49084611e90565b1015610a0857829650505050505050610824565b6040850151855160009190610a1d9085611e90565b610a279190611e90565b90506000866060015182610a3b9190611ec6565b608088015160208101519051919250600091610a57848a611ea7565b610a619190611ea7565b610a6b9190611ec6565b9050610a778187611e26565b9550868611610a865785610a88565b865b9c9b505050505050505050505050565b600081815b8551811015610b3b576000868281518110610aba57610aba611dfa565b60200260200101519050808310610afa57604080516020810183905290810184905260600160405160208183030381529060405280519060200120610b25565b6040805160208101859052908101829052606001604051602081830303815290604052805190602001205b9250508080610b3390611e3e565b915050610a9d565b50831490505b9392505050565b600554610b675760405162461bcd60e51b815260040161038290611e59565b6040805133602082015260009183910160405160208183030381529060405280519060200120604051602001610b9e929190611ee8565b604051602081830303815290604052805190602001209050610bc38360045483610a98565b610c1b5760405162461bcd60e51b815260206004820152602360248201527f636c61696d3a2076657269667920696e206d65726b6c652074726565206661696044820152621b195960ea1b6064820152608401610382565b6000610c273384610e8d565b905060008111610c6c5760405162461bcd60e51b815260206004820152601060248201526f4e6f7468696e6720746f20636c61696d60801b6044820152606401610382565b6001546040516370a0823160e01b815230600482015282916001600160a01b0316906370a0823190602401602060405180830381865afa158015610cb4573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610cd89190611f65565b1015610d315760405162461bcd60e51b815260206004820152602260248201527f436f6e747261637420646f65736e74206861766520656e6f75676820746f6b656044820152616e7360f01b6064820152608401610382565b3360009081526008602052604081208054839290610d50908490611e26565b9091555050600154610d6c906001600160a01b03163383611314565b604051818152339042907f3ed1528b0fdc7c5207c1bf935e34a667e13656b9ed165260c522be0bc544f3039060200160405180910390a350505050565b6000546001600160a01b03163314610dd35760405162461bcd60e51b815260040161038290611da9565b610ddd600061136b565b565b6000546001600160a01b03163314610e095760405162461bcd60e51b815260040161038290611da9565b60055415610e595760405162461bcd60e51b815260206004820181905260248201527f56657374696e6720686173206265656e20616c726561647920737461727465646044820152606401610382565b4260058190556040513391907f734cd2a382f4a1f43ba991c09a5f645dc0929abd9f79b2c3b87ec4b9aa207cfd90600090a3565b600060055460001415610eb25760405162461bcd60e51b815260040161038290611e59565b8151600090815b81811015610f0257610ee486868381518110610ed757610ed7611dfa565b6020026020010151610896565b610eee9084611e26565b925080610efa81611e3e565b915050610eb9565b506001600160a01b038516600090815260086020526040902054610f269083611e90565b95945050505050565b6000546001600160a01b03163314610f595760405162461bcd60e51b815260040161038290611da9565b8051825114610fb65760405162461bcd60e51b8152602060048201526024808201527f53697a65206f66206e616d657320616e64207365747570206d7573742062652060448201526373616d6560e01b6064820152608401610382565b815160005b8181101561101157610fff848281518110610fd857610fd8611dfa565b6020026020010151848381518110610ff257610ff2611dfa565b6020026020010151610358565b8061100981611e3e565b915050610fbb565b50505050565b6000546001600160a01b031633146110415760405162461bcd60e51b815260040161038290611da9565b60048190556040805182815243602082015242917f71240b4e131fc111c67d3ccc373a30855a00a4e8d6099e9d9e6a696a5f4e7df1910160405180910390a250565b600a602052600090815260409020805461109c90611f7e565b80601f01602080910402602001604051908101604052809291908181526020018280546110c890611f7e565b80156111155780601f106110ea57610100808354040283529160200191611115565b820191906000526020600020905b8154815290600101906020018083116110f857829003601f168201915b505050505081565b6000546001600160a01b031633146111475760405162461bcd60e51b815260040161038290611da9565b6001600160a01b0381166111ac5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610382565b6111b58161136b565b50565b6000546001600160a01b031633146111e25760405162461bcd60e51b815260040161038290611da9565b6040516370a0823160e01b815230600482015281906001600160a01b038416906370a0823190602401602060405180830381865afa158015611228573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061124c9190611f65565b10156112bd576040516370a0823160e01b81523060048201526001600160a01b038316906370a0823190602401602060405180830381865afa158015611296573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112ba9190611f65565b90505b6112d16001600160a01b0383163383611314565b604080516001600160a01b038416815260208101839052339142917fc19a12c426381240538e3bdf603877802a9ab03acb52103778051e557f7e5a5191016105f1565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b1790526113669084906113bb565b505050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6000611410826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b031661148d9092919063ffffffff16565b805190915015611366578080602001905181019061142e9190611fb9565b6113665760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610382565b606061149c84846000856114a4565b949350505050565b6060824710156115055760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b6064820152608401610382565b843b6115535760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610382565b600080866001600160a01b0316858760405161156f9190611dde565b60006040518083038185875af1925050503d80600081146115ac576040519150601f19603f3d011682016040523d82523d6000602084013e6115b1565b606091505b50915091506115c18282866115cc565b979650505050505050565b606083156115db575081610b41565b8251156115eb5782518084602001fd5b8160405162461bcd60e51b81526004016103829190611d6a565b82805461161190611f7e565b90600052602060002090601f0160209004810192826116335760008555611679565b82601f1061164c57805160ff1916838001178555611679565b82800160010185558215611679579182015b8281111561167957825182559160200191906001019061165e565b50611685929150611689565b5090565b5b80821115611685576000815560010161168a565b634e487b7160e01b600052604160045260246000fd5b604080519081016001600160401b03811182821017156116d6576116d661169e565b60405290565b604051601f8201601f191681016001600160401b03811182821017156117045761170461169e565b604052919050565b600082601f83011261171d57600080fd5b81356001600160401b038111156117365761173661169e565b611749601f8201601f19166020016116dc565b81815284602083860101111561175e57600080fd5b816020850160208301376000918101602001919091529392505050565b60006040828403121561178d57600080fd5b6117956116b4565b9050813581526020820135602082015292915050565b600060e082840312156117bd57600080fd5b60405160a081018181106001600160401b03821117156117df576117df61169e565b604052823581529050806117f6846020850161177b565b6020820152606083013560408201526080830135606082015261181c8460a0850161177b565b60808201525092915050565b600080610100838503121561183c57600080fd5b82356001600160401b0381111561185257600080fd5b61185e8582860161170c565b92505061186e84602085016117ab565b90509250929050565b6001600160a01b03811681146111b557600080fd5b60006020828403121561189e57600080fd5b8135610b4181611877565b60006001600160401b038211156118c2576118c261169e565b5060051b60200190565b6000604082840312156118de57600080fd5b6118e66116b4565b905081356001600160401b038111156118fe57600080fd5b61190a8482850161170c565b8252506020820135602082015292915050565b600082601f83011261192e57600080fd5b8135602061194361193e836118a9565b6116dc565b82815260059290921b8401810191818101908684111561196257600080fd5b8286015b848110156119a15780356001600160401b038111156119855760008081fd5b6119938986838b01016118cc565b845250918301918301611966565b509695505050505050565b600080604083850312156119bf57600080fd5b82356119ca81611877565b915060208301356001600160401b038111156119e557600080fd5b6119f18582860161191d565b9150509250929050565b600060208284031215611a0d57600080fd5b5035919050565b85815260e08101611a32602083018780518252602090810151910152565b846060830152836080830152611a5560a083018480518252602090810151910152565b9695505050505050565b60008060408385031215611a7257600080fd5b8235611a7d81611877565b915060208301356001600160401b03811115611a9857600080fd5b6119f1858286016118cc565b600082601f830112611ab557600080fd5b81356020611ac561193e836118a9565b82815260059290921b84018101918181019086841115611ae457600080fd5b8286015b848110156119a15780358352918301918301611ae8565b600080600060608486031215611b1457600080fd5b83356001600160401b03811115611b2a57600080fd5b611b3686828701611aa4565b9660208601359650604090950135949350505050565b60008060408385031215611b5f57600080fd5b82356001600160401b0380821115611b7657600080fd5b611b8286838701611aa4565b93506020850135915080821115611b9857600080fd5b506119f18582860161191d565b600060208284031215611bb757600080fd5b81356001600160401b03811115611bcd57600080fd5b61149c8482850161170c565b600082601f830112611bea57600080fd5b81356020611bfa61193e836118a9565b82815260e09283028501820192828201919087851115611c1957600080fd5b8387015b85811015611c3c57611c2f89826117ab565b8452928401928101611c1d565b5090979650505050505050565b60008060408385031215611c5c57600080fd5b82356001600160401b0380821115611c7357600080fd5b818501915085601f830112611c8757600080fd5b81356020611c9761193e836118a9565b82815260059290921b84018101918181019089841115611cb657600080fd5b8286015b84811015611cee57803586811115611cd25760008081fd5b611ce08c86838b010161170c565b845250918301918301611cba565b5096505086013592505080821115611d0557600080fd5b506119f185828601611bd9565b60005b83811015611d2d578181015183820152602001611d15565b838111156110115750506000910152565b60008151808452611d56816020860160208601611d12565b601f01601f19169290920160200192915050565b602081526000610b416020830184611d3e565b60008060408385031215611d9057600080fd5b8235611d9b81611877565b946020939093013593505050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60008251611df0818460208701611d12565b9190910192915050565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b60008219821115611e3957611e39611e10565b500190565b6000600019821415611e5257611e52611e10565b5060010190565b60208082526018908201527f56657374696e672068617665206e6f7420737461727465640000000000000000604082015260600190565b600082821015611ea257611ea2611e10565b500390565b6000816000190483118215151615611ec157611ec1611e10565b500290565b600082611ee357634e487b7160e01b600052601260045260246000fd5b500490565b6000604080830181845280865180835260608601915060608160051b8701019250602080890160005b83811015611f5257888603605f1901855281518051888852611f3589890182611d3e565b918501519785019790975295509382019390820190600101611f11565b5050959095019590955295945050505050565b600060208284031215611f7757600080fd5b5051919050565b600181811c90821680611f9257607f821691505b60208210811415611fb357634e487b7160e01b600052602260045260246000fd5b50919050565b600060208284031215611fcb57600080fd5b81518015158114610b4157600080fdfea2646970667358221220ec398f6048ace66f091e247338c5adbff78076452b94f5065a09b2f583f81ee064736f6c634300080b0033

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

0000000000000000000000001cc29ee9dd8d9ed4148f6600ba5ec84d7ee85d12000000000000000000000000dd5beabc287b11a1c9633f1f8757afa60ec38fb0

-----Decoded View---------------
Arg [0] : token_ (address): 0x1Cc29Ee9dd8d9ed4148F6600Ba5ec84d7Ee85D12
Arg [1] : owner_ (address): 0xDD5BEaBC287B11a1C9633F1F8757Afa60EC38fb0

-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 0000000000000000000000001cc29ee9dd8d9ed4148f6600ba5ec84d7ee85d12
Arg [1] : 000000000000000000000000dd5beabc287b11a1c9633f1f8757afa60ec38fb0


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.