Contract 0x9297c0833050B2fB2dBf5e285095BA4a2B342c68 2

Contract Overview

Balance:
0 AVAX

AVAX Value:
$0.00

Token:
Txn Hash Method
Block
From
To
Value [Txn Fee]
0x9bfc9e109bad372ea762f0069fe080fa5708c1e5979d38100eb61430b756b124Claim144200232022-05-08 8:12:119 days 5 hrs ago0x95634bc08f35d5c7dfa578469dbd4a93400ef5b3 IN  0x9297c0833050b2fb2dbf5e285095ba4a2b342c680 AVAX0.004349463382 44.687798029
0x901092f24597c7bf181c0251734e6a890d09988a92e3f44bf6884fa519eb801dClaim139097622022-04-26 4:48:4821 days 9 hrs ago0x95634bc08f35d5c7dfa578469dbd4a93400ef5b3 IN  0x9297c0833050b2fb2dbf5e285095ba4a2b342c680 AVAX0.0058415206 60.017678004
0xf1d91e400b662674c882f7c2640e93c480b84842171e4ebc4df6a4bfe2f4f098Claim135910972022-04-18 18:23:4728 days 19 hrs ago0xa70e6fe4488104be32b9b657f5be7b68afc17f9a IN  0x9297c0833050b2fb2dbf5e285095ba4a2b342c680 AVAX0.008449818256 86.796555354
0x4110a82ada65000d315ff1b472207230239119cfdcc30d7bfe259dbfdce51a6bClaim133386292022-04-12 21:35:3534 days 16 hrs ago0x183468178b12cf1e3910a150ffc91c0bb03cc774 IN  0x9297c0833050b2fb2dbf5e285095ba4a2b342c680 AVAX0.006874491944 70.614799335
0xa2fdc1f2f607e648d1de9caf3be8ee70183b691eccfb635b1e7a9f7f9a87d79cClaim130128222022-04-05 5:49:2642 days 8 hrs ago0x9b7686c3af3f6fb73374e1dc89d971335f09fafb IN  0x9297c0833050b2fb2dbf5e285095ba4a2b342c680 AVAX0.002942710323 35.33556267
0x7f9083f97c793aae1e20e5e1c760db33f51e80b5206fd6d8cd2d1682dbafb9eaClaim128527672022-04-01 10:34:4846 days 3 hrs ago0x844e0a43d4a654a26b74d5483db93e35a664b13c IN  0x9297c0833050b2fb2dbf5e285095ba4a2b342c680 AVAX0.002475943181 30.844418745
0x94f3fdd6858d216880f3166d11f896d1bcfc5599d6da85f052df1d0d7e33a1d7Claim122619982022-03-18 11:23:1260 days 2 hrs ago0xa040e70e576b239aa699c4d5f42ae431611ce6c7 IN  0x9297c0833050b2fb2dbf5e285095ba4a2b342c680 AVAX0.002777814054 33.367536599
0xf3e60d5b7c76abc245cffc63e8a2db044d117bff5a3f51ff6a84fbe6b5bea83eClaim121511782022-03-15 18:31:0662 days 19 hrs ago0x183468178b12cf1e3910a150ffc91c0bb03cc774 IN  0x9297c0833050b2fb2dbf5e285095ba4a2b342c680 AVAX0.005088861224 52.272795876
0x446f3bcce7db202a6b4b4b6900242acfd53e89be7934547a99a5c28102dfce80Claim120764582022-03-13 23:55:4164 days 14 hrs ago0xa70e6fe4488104be32b9b657f5be7b68afc17f9a IN  0x9297c0833050b2fb2dbf5e285095ba4a2b342c680 AVAX0.00619751428 61.74729529
0xdd446ee9f830221e28089728530d46148aef8db718e33e8aa053a768bb02a116Claim120721162022-03-13 21:25:4464 days 16 hrs ago0x2defad93e8c2a3c6d53fe5fc749832800a2651b8 IN  0x9297c0833050b2fb2dbf5e285095ba4a2b342c680 AVAX0.006387411855 60.047868382
0xcc70f1904025202f29f194615fb99fd87273f1a948b3724e49afe5b08e1592b4Claim120716852022-03-13 21:10:5764 days 17 hrs ago0xd7138b42badb7fe9d72608dca6a8e6158a5465b8 IN  0x9297c0833050b2fb2dbf5e285095ba4a2b342c680 AVAX0.006040149352 56.777926268
0xf735d9bfebe0f27970ee6e7832244d787a0315bc7b3190cd58fef0732f9ddfc9Claim118612022022-03-08 20:59:4169 days 17 hrs ago0x95634bc08f35d5c7dfa578469dbd4a93400ef5b3 IN  0x9297c0833050b2fb2dbf5e285095ba4a2b342c680 AVAX0.003260261661 33.496986145
0x088b58d28f5c6b527c3075e9897760de5b85812f05b3327c2c622249fb7f58c5Claim113016472022-02-23 17:54:4082 days 20 hrs ago0xf7845cc3d24a511e15a0368871465f0dc5ae4fb1 IN  0x9297c0833050b2fb2dbf5e285095ba4a2b342c680 AVAX0.006100503457 60.794079124
0x19931df7a3ac0d528e81b90d745ef3d104a5828fea305a0c377972daeb111673Claim108808152022-02-13 20:01:4292 days 18 hrs ago0x95634bc08f35d5c7dfa578469dbd4a93400ef5b3 IN  0x9297c0833050b2fb2dbf5e285095ba4a2b342c680 AVAX0.002569118063 26.39595257
0xcf4503675975e43b7235b047c2501b9fceabec209829688b5f861e6a0b1bef59Claim107690852022-02-11 7:02:3895 days 7 hrs ago0x844e0a43d4a654a26b74d5483db93e35a664b13c IN  0x9297c0833050b2fb2dbf5e285095ba4a2b342c680 AVAX0.002115978182 26.36010293
0x7d2709ff01e3a32707b4594559b0bcf2dc046805bdedc137cab5aaa38efc88d6Claim105827732022-02-06 23:34:3299 days 14 hrs ago0x434191e1ed7b3197022ea38e115cc78b218db5a9 IN  0x9297c0833050b2fb2dbf5e285095ba4a2b342c680 AVAX0.003069410191 29.697167989
0x802a4b1afcec34bc2e7363b7b492064e38cfc741a5ee2f79a2d4336561ec2350Claim105508572022-02-06 5:54:19100 days 8 hrs ago0x183468178b12cf1e3910a150ffc91c0bb03cc774 IN  0x9297c0833050b2fb2dbf5e285095ba4a2b342c680 AVAX0.002531152 26
0x7b0a3ab46d68ca8f248306700e9e2bcadc6fc3a7911a2f0b020e63da88d61e08Claim103450222022-02-01 13:45:39105 days 25 mins ago0x52e7bde89fcbd1e1c656db1c08dde45d82447e25 IN  0x9297c0833050b2fb2dbf5e285095ba4a2b342c680 AVAX0.002091788774 26.069152222
0xd2ff88d46f183b933d0852a0a3c1afb6adcee754836245418bd05736a50bbda7Claim95974992022-01-15 9:55:41122 days 4 hrs ago0x417af178426a99f3151b914c9695a236bd8feae6 IN  0x9297c0833050b2fb2dbf5e285095ba4a2b342c680 AVAX0.002165254 26
0xa628ac5b5be28e61b6c6307fc1cf5bcd1a5bcac1d29c338530a4241b62884261Claim95658632022-01-14 16:46:17122 days 21 hrs ago0x6a1bcf7cc433c3281feeed22d9eeb517f3d17020 IN  0x9297c0833050b2fb2dbf5e285095ba4a2b342c680 AVAX0.002553174 26
0x8c5b8734968d79a7d2a9ebdac74c4f5e5ffe42d37f8eacda5505788d90178bd4Claim94861382022-01-12 21:03:43124 days 17 hrs ago0x183468178b12cf1e3910a150ffc91c0bb03cc774 IN  0x9297c0833050b2fb2dbf5e285095ba4a2b342c680 AVAX0.002531152 26
0x877f04cbead40549b6e1d69d0ad8675759baa59171089dfd3024c8a77aceae00Claim93489922022-01-09 17:17:16127 days 20 hrs ago0x9b7686c3af3f6fb73374e1dc89d971335f09fafb IN  0x9297c0833050b2fb2dbf5e285095ba4a2b342c680 AVAX0.002226598826 26.736618198
0x3123d6b0f88ba5f1eefd72484d1afd87c4f10380863da00281c7cd4704793f85Claim93234392022-01-09 3:04:05128 days 11 hrs ago0xa70e6fe4488104be32b9b657f5be7b68afc17f9a IN  0x9297c0833050b2fb2dbf5e285095ba4a2b342c680 AVAX0.002531152 26
0x59c005dc4570f4b9e6115b664e521f195f4651d0302a9449d3f756e65a0c8585Claim92596502022-01-07 15:45:01129 days 22 hrs ago0x95634bc08f35d5c7dfa578469dbd4a93400ef5b3 IN  0x9297c0833050b2fb2dbf5e285095ba4a2b342c680 AVAX0.002535472445 26.050266574
0xc2873f9684b955e3aece05e961d8d6e1a4dce5ddf738105b4a410a3a75e00a91Claim92451502022-01-07 7:39:08130 days 6 hrs ago0x844e0a43d4a654a26b74d5483db93e35a664b13c IN  0x9297c0833050b2fb2dbf5e285095ba4a2b342c680 AVAX0.002087072 26
[ Download CSV Export 
Parent Txn Hash Block From To Value
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
YayVesting

Compiler Version
v0.6.12+commit.27d51765

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, MIT license

Contract Source Code (Solidity)

/**
 *Submitted for verification at snowtrace.io on 2021-11-02
*/

// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <0.8.0;

/**
 * @dev Wrappers over Solidity's arithmetic operations with added overflow
 * checks.
 *
 * Arithmetic operations in Solidity wrap on overflow. This can easily result
 * in bugs, because programmers usually assume that an overflow raises an
 * error, which is the standard behavior in high level programming languages.
 * `SafeMath` restores this intuition by reverting the transaction when an
 * operation overflows.
 *
 * Using this library instead of the unchecked operations eliminates an entire
 * class of bugs, so it's recommended to use it always.
 */
library SafeMath {
    /**
     * @dev Returns the addition of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `+` operator.
     *
     * Requirements:
     *
     * - Addition cannot overflow.
     */
    function add(uint256 a, uint256 b) internal pure returns (uint256) {
        uint256 c = a + b;
        require(c >= a, "SafeMath: addition overflow");

        return c;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting on
     * overflow (when the result is negative).
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(uint256 a, uint256 b) internal pure returns (uint256) {
        return sub(a, b, "SafeMath: subtraction overflow");
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting with custom message on
     * overflow (when the result is negative).
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b <= a, errorMessage);
        uint256 c = a - b;

        return c;
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `*` operator.
     *
     * Requirements:
     *
     * - Multiplication cannot overflow.
     */
    function mul(uint256 a, uint256 b) internal pure returns (uint256) {
        // Gas optimization: this is cheaper than requiring 'a' not being zero, but the
        // benefit is lost if 'b' is also tested.
        // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
        if (a == 0) {
            return 0;
        }

        uint256 c = a * b;
        require(c / a == b, "SafeMath: multiplication overflow");

        return c;
    }

    /**
     * @dev Returns the integer division of two unsigned integers. Reverts on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator. Note: this function uses a
     * `revert` opcode (which leaves remaining gas untouched) while Solidity
     * uses an invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b) internal pure returns (uint256) {
        return div(a, b, "SafeMath: division by zero");
    }

    /**
     * @dev Returns the integer division of two unsigned integers. Reverts with custom message on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator. Note: this function uses a
     * `revert` opcode (which leaves remaining gas untouched) while Solidity
     * uses an invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b > 0, errorMessage);
        uint256 c = a / b;
        // assert(a == b * c + a % b); // There is no case in which this doesn't hold

        return c;
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * Reverts when dividing by zero.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(uint256 a, uint256 b) internal pure returns (uint256) {
        return mod(a, b, "SafeMath: modulo by zero");
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * Reverts with custom message when dividing by zero.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b != 0, errorMessage);
        return a % b;
    }
}

pragma solidity >=0.6.0 <0.8.0;

/**
 * @dev These functions deal with verification of Merkle trees (hash trees),
 */
library MerkleProof {
    /**
     * @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree
     * defined by `root`. For this, a `proof` must be provided, containing
     * sibling hashes on the branch from the leaf to the root of the tree. Each
     * pair of leaves and each pair of pre-images are assumed to be sorted.
     */
    function verify(bytes32[] memory proof, bytes32 root, bytes32 leaf) internal pure returns (bool) {
        bytes32 computedHash = leaf;

        for (uint256 i = 0; i < proof.length; i++) {
            bytes32 proofElement = proof[i];

            if (computedHash <= proofElement) {
                // Hash(current computed hash + current element of the proof)
                computedHash = keccak256(abi.encodePacked(computedHash, proofElement));
            } else {
                // Hash(current element of the proof + current computed hash)
                computedHash = keccak256(abi.encodePacked(proofElement, computedHash));
            }
        }

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

pragma solidity >=0.6.0 <0.8.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @dev Returns the amount of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

    /**
     * @dev Returns the amount of tokens owned by `account`.
     */
    function balanceOf(address account) external view returns (uint256);

    /**
     * @dev Moves `amount` tokens from the caller's account to `recipient`.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transfer(address recipient, uint256 amount) external returns (bool);

    /**
     * @dev Returns the remaining number of tokens that `spender` will be
     * allowed to spend on behalf of `owner` through {transferFrom}. This is
     * zero by default.
     *
     * This value changes when {approve} or {transferFrom} are called.
     */
    function allowance(address owner, address spender) external view returns (uint256);

    /**
     * @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * IMPORTANT: Beware that changing an allowance with this method brings the risk
     * that someone may use both the old and the new allowance by unfortunate
     * transaction ordering. One possible solution to mitigate this race
     * condition is to first reduce the spender's allowance to 0 and set the
     * desired value afterwards:
     * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
     *
     * Emits an {Approval} event.
     */
    function approve(address spender, uint256 amount) external returns (bool);

    /**
     * @dev Moves `amount` tokens from `sender` to `recipient` using the
     * allowance mechanism. `amount` is then deducted from the caller's
     * allowance.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(address sender, address recipient, uint256 amount) external returns (bool);

    /**
     * @dev Emitted when `value` tokens are moved from one account (`from`) to
     * another (`to`).
     *
     * Note that `value` may be zero.
     */
    event Transfer(address indexed from, address indexed to, uint256 value);

    /**
     * @dev Emitted when the allowance of a `spender` for an `owner` is set by
     * a call to {approve}. `value` is the new allowance.
     */
    event Approval(address indexed owner, address indexed spender, uint256 value);
}

pragma solidity >=0.6.2 <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;
        // solhint-disable-next-line no-inline-assembly
        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");

        // solhint-disable-next-line avoid-low-level-calls, avoid-call-value
        (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");

        // solhint-disable-next-line avoid-low-level-calls
        (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");

        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) = target.staticcall(data);
        return _verifyCallResult(success, returndata, errorMessage);
    }

    function _verifyCallResult(bool success, bytes memory returndata, string memory errorMessage) private 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

                // solhint-disable-next-line no-inline-assembly
                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}

pragma solidity >=0.6.0 <0.8.0;


/**
 * @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 SafeMath for uint256;
    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'
        // solhint-disable-next-line max-line-length
        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).add(value);
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
    }

    function safeDecreaseAllowance(IERC20 token, address spender, uint256 value) internal {
        uint256 newAllowance = token.allowance(address(this), spender).sub(value, "SafeERC20: decreased allowance below zero");
        _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
            // solhint-disable-next-line max-line-length
            require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed");
        }
    }
}


pragma solidity 0.6.12;


// solhint-disable not-rely-on-time

contract YayVesting {
    using SafeMath for uint256;
    using SafeERC20 for IERC20;

    // category
    enum CategoryNames {EMPTY, SEED, STRATEGIC, PRESALE, PUBLIC, V24MONTH, V20MONTH, V4MONTH}
    struct CategoryType {
        uint256 totalSteps;
        uint256 stepTime;       // unix format
        uint256 percentBefore;  // decimals = 2
        uint256 percentAfter;   // decimals = 2
    }
    mapping(CategoryNames => CategoryType) public categories;

    // investor
    struct InvestorTokens {
        address investor;
        CategoryNames category; 
        uint256 tokenAmount;
    }
    mapping(address => uint256) public alreadyRewarded;

    // contract settings
    address public immutable token;
    bytes32 public immutable mercleRoot;
    uint256 public immutable tgeTimestamp;

    // claim state
    mapping(address => bool) public tgeIsClaimed;
    mapping(address => uint256) public lastClaimedStep;

    event Claim(
        address indexed target,
        uint256 indexed category,
        uint256 amount,
        bytes32[] merkleProof,
        uint256 resultReward,
        uint256 timestamp
    );
    event TgeClaim(address indexed target, uint256 value, uint256 timestamp);
    event StepClaim(address indexed target, uint256 indexed step, uint256 value, uint256 timestamp);

    constructor(address _token, bytes32 _mercleRoot, uint256 _tgeTimestamp) public {
        require(_token != address(0), "YayVesting: zero token address");
        require(_mercleRoot != bytes32(0), "YayVesting: zero mercle root");
        require(_tgeTimestamp >= block.timestamp, "YayVesting: wrong TGE timestamp");

        token = _token;
        mercleRoot = _mercleRoot;
        tgeTimestamp = _tgeTimestamp;

        // rounds settings
        categories[CategoryNames.SEED] = CategoryType({
            totalSteps: 15,
            stepTime: 30 days,
            percentBefore: 10_00,
            percentAfter: 6_00  // 10.00% + 6.00% * 15 = 100.00%
        });
        categories[CategoryNames.STRATEGIC] = CategoryType({
            totalSteps: 12,
            stepTime: 30 days,
            percentBefore: 10_00,
            percentAfter: 7_50  // 10.00% + 7.50% * 12 = 100.00%
        });
        categories[CategoryNames.PRESALE] = CategoryType({
            totalSteps: 4,
            stepTime: 30 days,
            percentBefore: 10_00,
            percentAfter: 22_50  // 10.00% + 22.50% * 4 = 100.00%
        });
        categories[CategoryNames.PUBLIC] = CategoryType({
            totalSteps: 8,
            stepTime: 7 days,
            percentBefore: 20_00,
            percentAfter: 10_00  // 20.00% + 10.00% * 8 = 100.00%
        });
        categories[CategoryNames.V24MONTH] = CategoryType({
            totalSteps: 23,
            stepTime: 30 days,
            percentBefore: 4_17,
            percentAfter: 4_17  // 4.17% + 4.17% * 22 + 4.09% = 100.00%
        });
        categories[CategoryNames.V20MONTH] = CategoryType({
            totalSteps: 20,
            stepTime: 30 days,
            percentBefore: 0,
            percentAfter: 5_00  // 0.00% + 5.00% * 20 = 100.00%
        });
        categories[CategoryNames.V4MONTH] = CategoryType({
            totalSteps: 3,
            stepTime: 30 days,
            percentBefore: 25_00,
            percentAfter: 25_00  // 25.00% + 25.00% * 3 = 100.00%
        });
    }

    function checkClaim(address _target, uint256 _category, uint256 _amount, bytes32[] calldata _merkleProof) external view returns(bool) {
        return (_verify(_target, _category, _amount, _merkleProof));
    }

    function claim(uint256 _category, uint256 _amount, bytes32[] calldata _merkleProof) external returns(uint256 _claimResult) {
        require(_verify(msg.sender, _category, _amount, _merkleProof), "YayVesting: Invalid proof or wrong data");
        require(CategoryNames(_category) != CategoryNames.EMPTY, "YayVesting: Invalid category");
        require(_amount > 0, "YayVesting: Invalid amount");
        require(block.timestamp >= tgeTimestamp, "YayVesting: TGE has not started yet");

        CategoryType memory category = categories[CategoryNames(_category)];

        uint256 reward = 0;

        // claim TGE reward
        if (tgeIsClaimed[msg.sender] == false) {
            reward = reward.add(_amount.mul(category.percentBefore).div(100_00));
            tgeIsClaimed[msg.sender] = true;

            emit TgeClaim(msg.sender, reward, block.timestamp);
        }

        // claim reward after TGE
        for (uint256 i = lastClaimedStep[msg.sender] + 1; i <= category.totalSteps; i++) {

            if (tgeTimestamp.add(category.stepTime.mul(i)) <= block.timestamp) {
                lastClaimedStep[msg.sender] = i;
                uint256 addedAmount = _amount.mul(category.percentAfter).div(100_00);
                reward = reward.add(addedAmount);

                emit StepClaim(msg.sender, i, addedAmount, block.timestamp);
            } else {
                break;
            }
        }

        require(reward > 0, "YayVesting: no tokens to claim");

        uint256 rewarded = alreadyRewarded[msg.sender];
        uint256 resultReward = 0;

        // if reward overlimit (security check)
        if (rewarded.add(reward) > _amount) {
            resultReward = _amount.sub(rewarded, "YayVesting: no tokens to claim (security check)");
        } else {
            resultReward = reward;
        }

        alreadyRewarded[msg.sender] = alreadyRewarded[msg.sender].add(resultReward);
        IERC20(token).safeTransfer(msg.sender, resultReward);

        emit Claim(msg.sender, _category, _amount, _merkleProof, resultReward, block.timestamp);

        return(resultReward);
    }

    function _verify(address _target, uint256 _category, uint256 _amount, bytes32[] memory _merkleProof) internal view returns(bool) {
        bytes32 node = keccak256(abi.encodePacked(_target, _category, _amount));
        return(MerkleProof.verify(_merkleProof, mercleRoot, node));
    }
}

Contract ABI

[{"inputs":[{"internalType":"address","name":"_token","type":"address"},{"internalType":"bytes32","name":"_mercleRoot","type":"bytes32"},{"internalType":"uint256","name":"_tgeTimestamp","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"target","type":"address"},{"indexed":true,"internalType":"uint256","name":"category","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"bytes32[]","name":"merkleProof","type":"bytes32[]"},{"indexed":false,"internalType":"uint256","name":"resultReward","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"timestamp","type":"uint256"}],"name":"Claim","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"target","type":"address"},{"indexed":true,"internalType":"uint256","name":"step","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"timestamp","type":"uint256"}],"name":"StepClaim","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"target","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"timestamp","type":"uint256"}],"name":"TgeClaim","type":"event"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"alreadyRewarded","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"enum YayVesting.CategoryNames","name":"","type":"uint8"}],"name":"categories","outputs":[{"internalType":"uint256","name":"totalSteps","type":"uint256"},{"internalType":"uint256","name":"stepTime","type":"uint256"},{"internalType":"uint256","name":"percentBefore","type":"uint256"},{"internalType":"uint256","name":"percentAfter","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_target","type":"address"},{"internalType":"uint256","name":"_category","type":"uint256"},{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"bytes32[]","name":"_merkleProof","type":"bytes32[]"}],"name":"checkClaim","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_category","type":"uint256"},{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"bytes32[]","name":"_merkleProof","type":"bytes32[]"}],"name":"claim","outputs":[{"internalType":"uint256","name":"_claimResult","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"lastClaimedStep","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mercleRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"tgeIsClaimed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tgeTimestamp","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"token","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"}]

60e060405234801561001057600080fd5b506040516116ef3803806116ef8339818101604052606081101561003357600080fd5b50805160208201516040909201519091906001600160a01b03831661009f576040805162461bcd60e51b815260206004820152601e60248201527f59617956657374696e673a207a65726f20746f6b656e20616464726573730000604482015290519081900360640190fd5b816100f1576040805162461bcd60e51b815260206004820152601c60248201527f59617956657374696e673a207a65726f206d6572636c6520726f6f7400000000604482015290519081900360640190fd5b42811015610146576040805162461bcd60e51b815260206004820152601f60248201527f59617956657374696e673a2077726f6e67205447452074696d657374616d7000604482015290519081900360640190fd5b6001600160601b0319606093841b16608090815260a092835260c0918252604080518083018252600f815262278d0060208083018281526103e8848601818152610258868c019081526001600090815280865296517fada5013122d395ba3c54772283fb069b10426056ef8ca54750cb9bb552a59e7d5592517fada5013122d395ba3c54772283fb069b10426056ef8ca54750cb9bb552a59e7e55517fada5013122d395ba3c54772283fb069b10426056ef8ca54750cb9bb552a59e7f5590517fada5013122d395ba3c54772283fb069b10426056ef8ca54750cb9bb552a59e805584518087018652600c81528083018481528187018381526102ee838d019081526002885287865292517fabbb5caa7dda850e60932de0934eb1f9d0f59695050f761dc64e443e5030a5695590517fabbb5caa7dda850e60932de0934eb1f9d0f59695050f761dc64e443e5030a56a55517fabbb5caa7dda850e60932de0934eb1f9d0f59695050f761dc64e443e5030a56b55517fabbb5caa7dda850e60932de0934eb1f9d0f59695050f761dc64e443e5030a56c558451808701865260048082528184018581528288018481526108ca848e019081526003808a5289885294517f101e368776582e57ab3d116ffe2517c0a585cd5b23174b01e275c2d8329c3d835591517f101e368776582e57ab3d116ffe2517c0a585cd5b23174b01e275c2d8329c3d8455517f101e368776582e57ab3d116ffe2517c0a585cd5b23174b01e275c2d8329c3d8555517f101e368776582e57ab3d116ffe2517c0a585cd5b23174b01e275c2d8329c3d8655865180890188526008815262093a808186019081526107d0828a01908152828e0195865292885287865290517f52d75039926638d3c558b2bdefb945d5be8dae29dedd1c313212a4d472d9fde555517f52d75039926638d3c558b2bdefb945d5be8dae29dedd1c313212a4d472d9fde655517f52d75039926638d3c558b2bdefb945d5be8dae29dedd1c313212a4d472d9fde75590517f52d75039926638d3c558b2bdefb945d5be8dae29dedd1c313212a4d472d9fde85584518087018652601781528083018481526101a1828801818152838d019182526005885287865292517f2b232c97452f0950c94e2539fdc7e69d21166113cf7a9bcb99b220a3fe5d720a5590517f2b232c97452f0950c94e2539fdc7e69d21166113cf7a9bcb99b220a3fe5d720b5590517f2b232c97452f0950c94e2539fdc7e69d21166113cf7a9bcb99b220a3fe5d720c55517f2b232c97452f0950c94e2539fdc7e69d21166113cf7a9bcb99b220a3fe5d720d5584518087018652601481528083018481528187018681526101f4838d019081526006885287865292517f62103cf3131c85df57aad364d21cba02556d3092d6cb54c298c2e7726a7870bd5590517f62103cf3131c85df57aad364d21cba02556d3092d6cb54c298c2e7726a7870be55517f62103cf3131c85df57aad364d21cba02556d3092d6cb54c298c2e7726a7870bf55517f62103cf3131c85df57aad364d21cba02556d3092d6cb54c298c2e7726a7870c055845180870186529081528082019283526109c4948101858152818a019586526007855291849052517f870253054e3d98b71abec8fff9ebf8a15d167f15909091a800d4acaab9266d2b5590517f870253054e3d98b71abec8fff9ebf8a15d167f15909091a800d4acaab9266d2c55517f870253054e3d98b71abec8fff9ebf8a15d167f15909091a800d4acaab9266d2d5590517f870253054e3d98b71abec8fff9ebf8a15d167f15909091a800d4acaab9266d2e559051925191519290931c9290919061103e906106b190398061034a52806104ab528061064b52508061089952806109425250806107d652806108d2525061103e6000f3fe608060405234801561001057600080fd5b50600436106100935760003560e01c8063a4317ef411610066578063a4317ef4146101dc578063ae0b51df146101e4578063d060d6fe14610260578063e989a9b514610268578063fc0c546a1461028e57610093565b8063359ebd9f146100985780633ae4fb1b146101385780637be6277b146101705780638d41ebe0146101b6575b600080fd5b610124600480360360808110156100ae57600080fd5b6001600160a01b0382351691602081013591604082013591908101906080810160608201356401000000008111156100e557600080fd5b8201836020820111156100f757600080fd5b8035906020019184602083028401116401000000008311171561011957600080fd5b5090925090506102b2565b604080519115158252519081900360200190f35b61015e6004803603602081101561014e57600080fd5b50356001600160a01b03166102fd565b60408051918252519081900360200190f35b6101906004803603602081101561018657600080fd5b503560ff1661030f565b604080519485526020850193909352838301919091526060830152519081900360800190f35b61015e600480360360208110156101cc57600080fd5b50356001600160a01b0316610336565b61015e610348565b61015e600480360360608110156101fa57600080fd5b81359160208101359181019060608101604082013564010000000081111561022157600080fd5b82018360208201111561023357600080fd5b8035906020019184602083028401116401000000008311171561025557600080fd5b50909250905061036c565b61015e610897565b6101246004803603602081101561027e57600080fd5b50356001600160a01b03166108bb565b6102966108d0565b604080516001600160a01b039092168252519081900360200190f35b60006102f38686868686808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152506108f492505050565b9695505050505050565b60016020526000908152604090205481565b60006020819052908152604090208054600182015460028301546003909301549192909184565b60036020526000908152604090205481565b7f000000000000000000000000000000000000000000000000000000000000000081565b60006103ad3386868686808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152506108f492505050565b6103e85760405162461bcd60e51b8152600401808060200182810382526027815260200180610fb86027913960400191505060405180910390fd5b60008560078111156103f657fe5b600781111561040157fe5b1415610454576040805162461bcd60e51b815260206004820152601c60248201527f59617956657374696e673a20496e76616c69642063617465676f727900000000604482015290519081900360640190fd5b600084116104a9576040805162461bcd60e51b815260206004820152601a60248201527f59617956657374696e673a20496e76616c696420616d6f756e74000000000000604482015290519081900360640190fd5b7f00000000000000000000000000000000000000000000000000000000000000004210156105085760405162461bcd60e51b8152600401808060200182810382526023815260200180610f746023913960400191505060405180910390fd5b610510610ef6565b60008087600781111561051f57fe5b600781111561052a57fe5b600781111561053557fe5b8152602080820192909252604090810160009081208251608081018452815481526001820154818601526002808301548286015260039092015460608201523383529352908120549192509060ff16610612576105b56105ae6127106105a885604001518a61096790919063ffffffff16565b906109c9565b8290610a0b565b33600081815260026020908152604091829020805460ff1916600117905581518481524291810191909152815193945091927f8166115a145a1fe0553bf0f9581055c766cccb00c1f73f661870f4a0f41b2fe99281900390910190a25b336000908152600360205260409020546001015b825181116106fc574261067061064983866020015161096790919063ffffffff16565b7f000000000000000000000000000000000000000000000000000000000000000090610a0b565b116106ef57336000908152600360205260408120829055606084015161069f90612710906105a8908b90610967565b90506106ab8382610a0b565b604080518381524260208201528151929550849233927fb5fedb6d86259eba2fd9023651406f62391c1dbe56a7b4f6922924b299c9d2a5928290030190a3506106f4565b6106fc565b600101610626565b5060008111610752576040805162461bcd60e51b815260206004820152601e60248201527f59617956657374696e673a206e6f20746f6b656e7320746f20636c61696d0000604482015290519081900360640190fd5b33600090815260016020526040812054908761076e8385610a0b565b11156107a057610799826040518060600160405280602f8152602001610f1f602f91398a9190610a65565b90506107a3565b50815b336000908152600160205260409020546107bd9082610a0b565b33600081815260016020526040902091909155610805907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03169083610b01565b88336001600160a01b03167fed397d6389ffb93b4028067de164a2b9ad3612bf5d4937c1bbf1a2e0fe7c2e918a8a8a864260405180868152602001806020018481526020018381526020018281038252868682818152602001925060200280828437600083820152604051601f909101601f19169092018290039850909650505050505050a398975050505050505050565b7f000000000000000000000000000000000000000000000000000000000000000081565b60026020526000908152604090205460ff1681565b7f000000000000000000000000000000000000000000000000000000000000000081565b60008085858560405160200180846001600160a01b031660601b815260140183815260200182815260200193505050506040516020818303038152906040528051906020012090506102f3837f000000000000000000000000000000000000000000000000000000000000000083610b58565b600082610976575060006109c3565b8282028284828161098357fe5b04146109c05760405162461bcd60e51b8152600401808060200182810382526021815260200180610f976021913960400191505060405180910390fd5b90505b92915050565b60006109c083836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f000000000000815250610c01565b6000828201838110156109c0576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b60008184841115610af45760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015610ab9578181015183820152602001610aa1565b50505050905090810190601f168015610ae65780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b50508183035b9392505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052610b53908490610c66565b505050565b600081815b8551811015610bf6576000868281518110610b7457fe5b60200260200101519050808311610bbb5782816040516020018083815260200182815260200192505050604051602081830303815290604052805190602001209250610bed565b808360405160200180838152602001828152602001925050506040516020818303038152906040528051906020012092505b50600101610b5d565b509092149392505050565b60008183610c505760405162461bcd60e51b8152602060048201818152835160248401528351909283926044909101919085019080838360008315610ab9578181015183820152602001610aa1565b506000838581610c5c57fe5b0495945050505050565b6060610cbb826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316610d179092919063ffffffff16565b805190915015610b5357808060200190516020811015610cda57600080fd5b5051610b535760405162461bcd60e51b815260040180806020018281038252602a815260200180610fdf602a913960400191505060405180910390fd5b6060610d268484600085610d2e565b949350505050565b606082471015610d6f5760405162461bcd60e51b8152600401808060200182810382526026815260200180610f4e6026913960400191505060405180910390fd5b610d7885610e8a565b610dc9576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b60208310610e085780518252601f199092019160209182019101610de9565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114610e6a576040519150601f19603f3d011682016040523d82523d6000602084013e610e6f565b606091505b5091509150610e7f828286610e90565b979650505050505050565b3b151590565b60608315610e9f575081610afa565b825115610eaf5782518084602001fd5b60405162461bcd60e51b8152602060048201818152845160248401528451859391928392604401919085019080838360008315610ab9578181015183820152602001610aa1565b604051806080016040528060008152602001600081526020016000815260200160008152509056fe59617956657374696e673a206e6f20746f6b656e7320746f20636c61696d2028736563757269747920636865636b29416464726573733a20696e73756666696369656e742062616c616e636520666f722063616c6c59617956657374696e673a2054474520686173206e6f74207374617274656420796574536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f7759617956657374696e673a20496e76616c69642070726f6f66206f722077726f6e6720646174615361666545524332303a204552433230206f7065726174696f6e20646964206e6f742073756363656564a2646970667358221220ec9e96ef8938aca3d41a1e15a63a1aab06e3df1566895dd79aa5db962d6df94864736f6c634300060c003300000000000000000000000001c2086facfd7aa38f69a6bd8c91bef3bb5adfca276ae9d99ef93f995b199324148cd3c267433c3e330cc38b5243d65acd2d3b10000000000000000000000000000000000000000000000000000000006138cc6c

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

00000000000000000000000001c2086facfd7aa38f69a6bd8c91bef3bb5adfca276ae9d99ef93f995b199324148cd3c267433c3e330cc38b5243d65acd2d3b10000000000000000000000000000000000000000000000000000000006138cc6c

-----Decoded View---------------
Arg [0] : _token (address): 0x01c2086facfd7aa38f69a6bd8c91bef3bb5adfca
Arg [1] : _mercleRoot (bytes32): 0x276ae9d99ef93f995b199324148cd3c267433c3e330cc38b5243d65acd2d3b10
Arg [2] : _tgeTimestamp (uint256): 1631112300

-----Encoded View---------------
3 Constructor Arguments found :
Arg [0] : 00000000000000000000000001c2086facfd7aa38f69a6bd8c91bef3bb5adfca
Arg [1] : 276ae9d99ef93f995b199324148cd3c267433c3e330cc38b5243d65acd2d3b10
Arg [2] : 000000000000000000000000000000000000000000000000000000006138cc6c


Deployed ByteCode Sourcemap

20115:6143:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23581:212;;;;;;;;;;;;;;;;-1:-1:-1;;;;;23581:212:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;23581:212:0;;-1:-1:-1;23581:212:0;-1:-1:-1;23581:212:0;:::i;:::-;;;;;;;;;;;;;;;;;;20740:50;;;;;;;;;;;;;;;;-1:-1:-1;20740:50:0;-1:-1:-1;;;;;20740:50:0;;:::i;:::-;;;;;;;;;;;;;;;;20531:56;;;;;;;;;;;;;;;;-1:-1:-1;20531:56:0;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;21021:50;;;;;;;;;;;;;;;;-1:-1:-1;21021:50:0;-1:-1:-1;;;;;21021:50:0;;:::i;20904:37::-;;;:::i;23801:2158::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;23801:2158:0;;-1:-1:-1;23801:2158:0;-1:-1:-1;23801:2158:0;:::i;20862:35::-;;;:::i;20970:44::-;;;;;;;;;;;;;;;;-1:-1:-1;20970:44:0;-1:-1:-1;;;;;20970:44:0;;:::i;20825:30::-;;;:::i;:::-;;;;-1:-1:-1;;;;;20825:30:0;;;;;;;;;;;;;;23581:212;23709:4;23734:50;23742:7;23751:9;23762:7;23771:12;;23734:50;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;23734:7:0;;-1:-1:-1;;;23734:50:0:i;:::-;23726:59;23581:212;-1:-1:-1;;;;;;23581:212:0:o;20740:50::-;;;;;;;;;;;;;:::o;20531:56::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;21021:50::-;;;;;;;;;;;;;:::o;20904:37::-;;;:::o;23801:2158::-;23902:20;23943:53;23951:10;23963:9;23974:7;23983:12;;23943:53;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;23943:7:0;;-1:-1:-1;;;23943:53:0:i;:::-;23935:105;;;;-1:-1:-1;;;23935:105:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;24087:19;24073:9;24059:24;;;;;;;;:47;;;;;;;;;;24051:88;;;;;-1:-1:-1;;;24051:88:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;24168:1;24158:7;:11;24150:50;;;;;-1:-1:-1;;;24150:50:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;24238:12;24219:15;:31;;24211:79;;;;-1:-1:-1;;;24211:79:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;24303:28;;:::i;:::-;24334:10;:36;24359:9;24345:24;;;;;;;;24334:36;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;24334:36:0;;;24303:67;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;24460:10;24447:24;;;;;;;;24303:67;;-1:-1:-1;;24447:24:0;;24443:247;;24506:59;24517:47;24557:6;24517:35;24529:8;:22;;;24517:7;:11;;:35;;;;:::i;:::-;:39;;:47::i;:::-;24506:6;;:10;:59::i;:::-;24593:10;24580:24;;;;:12;:24;;;;;;;;;:31;;-1:-1:-1;;24580:31:0;24607:4;24580:31;;;24633:45;;;;;24662:15;24633:45;;;;;;;;;24497:68;;-1:-1:-1;24593:10:0;;24633:45;;;;;;;;;;24443:247;24770:10;24742:9;24754:27;;;:15;:27;;;;;;24784:1;24754:31;24737:506;24792:19;;24787:24;;24737:506;;24885:15;24839:42;24856:24;24878:1;24856:8;:17;;;:21;;:24;;;;:::i;:::-;24839:12;;:16;:42::i;:::-;:61;24835:397;;24937:10;24921:27;;;;:15;:27;;;;;:31;;;25005:21;;;;24993:46;;25032:6;;24993:34;;:7;;:11;:34::i;:46::-;24971:68;-1:-1:-1;25067:23:0;:6;24971:68;25067:10;:23::i;:::-;25116:54;;;;;;25154:15;25116:54;;;;;;25058:32;;-1:-1:-1;25138:1:0;;25126:10;;25116:54;;;;;;;;24835:397;;;;25211:5;;24835:397;24813:3;;24737:506;;;;25272:1;25263:6;:10;25255:53;;;;;-1:-1:-1;;;25255:53:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;25356:10;25321:16;25340:27;;;:15;:27;;;;;;;25491:7;25468:20;25340:27;25481:6;25468:12;:20::i;:::-;:30;25464:204;;;25530:72;25542:8;25530:72;;;;;;;;;;;;;;;;;:7;;:72;:11;:72::i;:::-;25515:87;;25464:204;;;-1:-1:-1;25650:6:0;25464:204;25726:10;25710:27;;;;:15;:27;;;;;;:45;;25742:12;25710:31;:45::i;:::-;25696:10;25680:27;;;;:15;:27;;;;;:75;;;;25766:52;;25773:5;-1:-1:-1;;;;;25766:26:0;;25805:12;25766:26;:52::i;:::-;25854:9;25842:10;-1:-1:-1;;;;;25836:82:0;;25865:7;25874:12;;25888;25902:15;25836:82;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;25836:82:0;;;;;;;;-1:-1:-1;25836:82:0;;-1:-1:-1;;;;;;;25836:82:0;25938:12;23801:2158;-1:-1:-1;;;;;;;;23801:2158:0:o;20862:35::-;;;:::o;20970:44::-;;;;;;;;;;;;;;;:::o;20825:30::-;;;:::o;25967:288::-;26090:4;26107:12;26149:7;26158:9;26169:7;26132:45;;;;;;-1:-1:-1;;;;;26132:45:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;26122:56;;;;;;26107:71;;26196:50;26215:12;26229:10;26241:4;26196:18;:50::i;2264:471::-;2322:7;2567:6;2563:47;;-1:-1:-1;2597:1:0;2590:8;;2563:47;2634:5;;;2638:1;2634;:5;:1;2658:5;;;;;:10;2650:56;;;;-1:-1:-1;;;2650:56:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2726:1;-1:-1:-1;2264:471:0;;;;;:::o;3211:132::-;3269:7;3296:39;3300:1;3303;3296:39;;;;;;;;;;;;;;;;;:3;:39::i;910:181::-;968:7;1000:5;;;1024:6;;;;1016:46;;;;;-1:-1:-1;;;1016:46:0;;;;;;;;;;;;;;;;;;;;;;;;;;;1813:192;1899:7;1935:12;1927:6;;;;1919:29;;;;-1:-1:-1;;;1919:29:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;1971:5:0;;;1813:192;;;;;;:::o;16972:177::-;17082:58;;;-1:-1:-1;;;;;17082:58:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;17082:58:0;-1:-1:-1;;;17082:58:0;;;17055:86;;17075:5;;17055:19;:86::i;:::-;16972:177;;;:::o;5854:796::-;5945:4;5985;5945;6002:525;6026:5;:12;6022:1;:16;6002:525;;;6060:20;6083:5;6089:1;6083:8;;;;;;;;;;;;;;6060:31;;6128:12;6112;:28;6108:408;;6282:12;6296;6265:44;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6255:55;;;;;;6240:70;;6108:408;;;6472:12;6486;6455:44;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6445:55;;;;;;6430:70;;6108:408;-1:-1:-1;6040:3:0;;6002:525;;;-1:-1:-1;6622:20:0;;;;5854:796;-1:-1:-1;;;5854:796:0:o;3839:278::-;3925:7;3960:12;3953:5;3945:28;;;;-1:-1:-1;;;3945:28:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3984:9;4000:1;3996;:5;;;;;;;3839:278;-1:-1:-1;;;;;3839:278:0:o;19277:761::-;19701:23;19727:69;19755:4;19727:69;;;;;;;;;;;;;;;;;19735:5;-1:-1:-1;;;;;19727:27:0;;;:69;;;;;:::i;:::-;19811:17;;19701:95;;-1:-1:-1;19811:21:0;19807:224;;19953:10;19942:30;;;;;;;;;;;;;;;-1:-1:-1;19942:30:0;19934:85;;;;-1:-1:-1;;;19934:85:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;13039:195;13142:12;13174:52;13196:6;13204:4;13210:1;13213:12;13174:21;:52::i;:::-;13167:59;13039:195;-1:-1:-1;;;;13039:195:0:o;14091:530::-;14218:12;14276:5;14251:21;:30;;14243:81;;;;-1:-1:-1;;;14243:81:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;14343:18;14354:6;14343:10;:18::i;:::-;14335:60;;;;;-1:-1:-1;;;14335:60:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;14469:12;14483:23;14510:6;-1:-1:-1;;;;;14510:11:0;14530:5;14538:4;14510:33;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;14510:33:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;14468:75;;;;14561:52;14579:7;14588:10;14600:12;14561:17;:52::i;:::-;14554:59;14091:530;-1:-1:-1;;;;;;;14091:530:0:o;10121:422::-;10488:20;10527:8;;;10121:422::o;15627:742::-;15742:12;15771:7;15767:595;;;-1:-1:-1;15802:10:0;15795:17;;15767:595;15916:17;;:21;15912:439;;16179:10;16173:17;16240:15;16227:10;16223:2;16219:19;16212:44;16127:148;16315:20;;-1:-1:-1;;;16315:20:0;;;;;;;;;;;;;;;;;16322:12;;16315:20;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o

Swarm Source

ipfs://ec9e96ef8938aca3d41a1e15a63a1aab06e3df1566895dd79aa5db962d6df948
Block Transaction Gas Used Reward
Age Block Fee Address BC Fee Address Voting Power Jailed Incoming
Block Uncle Number Difficulty Gas Used Reward
Loading
Make sure to use the "Vote Down" button for any spammy posts, and the "Vote Up" for interesting conversations.