ETH Price: $1,884.49 (-12.10%)
Gas: 1.28 Gwei
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

More Info

Private Name Tags

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Create Vesting160916042022-12-01 17:59:591162 days ago1669917599IN
0x65d22f2B...04CCcAE98
0.07882775 ETH0.0098115414.58299871
Create Vesting160240382022-11-22 7:23:591171 days ago1669101839IN
0x65d22f2B...04CCcAE98
0.09232712 ETH0.0070579610.38628782
Create Vesting160060052022-11-19 18:59:111174 days ago1668884351IN
0x65d22f2B...04CCcAE98
0.08314316 ETH0.0080526511.97254901
Create Vesting159776232022-11-15 19:49:471178 days ago1668541787IN
0x65d22f2B...04CCcAE98
0.08037011 ETH0.0123371917.99529451
Create Vesting159673322022-11-14 9:18:351179 days ago1668417515IN
0x65d22f2B...04CCcAE98
0.0798778 ETH0.0092380413.66529685
Create Vesting159468592022-11-11 12:45:351182 days ago1668170735IN
0x65d22f2B...04CCcAE98
0.07889217 ETH0.017008924.52593717
Create Vesting159455192022-11-11 8:15:111182 days ago1668154511IN
0x65d22f2B...04CCcAE98
0.07897929 ETH0.010688915.02731819
Create Vesting159426772022-11-10 22:43:111183 days ago1668120191IN
0x65d22f2B...04CCcAE98
0.07609856 ETH0.0144573621.27579012
Create Vesting159321322022-11-09 11:19:471184 days ago1667992787IN
0x65d22f2B...04CCcAE98
0.08383141 ETH0.0243306335.74391189
Create Vesting158941362022-11-04 4:03:111189 days ago1667534591IN
0x65d22f2B...04CCcAE98
0.0649003 ETH0.011033816.39995656
Create Vesting158941242022-11-04 4:00:471189 days ago1667534447IN
0x65d22f2B...04CCcAE98
0.06491644 ETH0.0120075517.72290967
Create Vesting158938842022-11-04 3:11:591189 days ago1667531519IN
0x65d22f2B...04CCcAE98
0.0650832 ETH0.0085435912.70250014
Create Vesting158721622022-11-01 2:17:231192 days ago1667269043IN
0x65d22f2B...04CCcAE98
0.06338344 ETH0.0077042111.39626462
Create Vesting158718912022-11-01 1:22:231192 days ago1667265743IN
0x65d22f2B...04CCcAE98
0.0637935 ETH0.0106794115.6369621
Create Vesting158718822022-11-01 1:20:351192 days ago1667265635IN
0x65d22f2B...04CCcAE98
0.063793 ETH0.009012513.14493532
Create Vesting158718692022-11-01 1:17:591192 days ago1667265479IN
0x65d22f2B...04CCcAE98
0.06380293 ETH0.0096118914.01915432
Create Vesting158554112022-10-29 18:10:231195 days ago1667067023IN
0x65d22f2B...04CCcAE98
0.06151002 ETH0.0179428624.44578054
Create Vesting158483632022-10-28 18:30:351196 days ago1666981835IN
0x65d22f2B...04CCcAE98
0.0645273 ETH0.0145240521.37317407
Create Vesting158474122022-10-28 15:19:111196 days ago1666970351IN
0x65d22f2B...04CCcAE98
0.06540347 ETH0.0108000615.93931455
Create Vesting158474072022-10-28 15:18:111196 days ago1666970291IN
0x65d22f2B...04CCcAE98
0.0654023 ETH0.0116733117.2289671
Create Vesting158237022022-10-25 7:48:111199 days ago1666684091IN
0x65d22f2B...04CCcAE98
0.07442589 ETH0.0085091212.53502511
Create Vesting158236792022-10-25 7:43:351199 days ago1666683815IN
0x65d22f2B...04CCcAE98
0.07441053 ETH0.0071361811.09579396
Create Vesting158236722022-10-25 7:41:591199 days ago1666683719IN
0x65d22f2B...04CCcAE98
0.07441174 ETH0.0075483811.73671121
Create Vesting158236692022-10-25 7:41:231199 days ago1666683683IN
0x65d22f2B...04CCcAE98
0.07441156 ETH0.0075899911.80140684
Create Vesting158236542022-10-25 7:38:231199 days ago1666683503IN
0x65d22f2B...04CCcAE98
0.07441987 ETH0.0071774711.04447543
View all transactions

Latest 25 internal transactions (View All)

Advanced mode:
Parent Transaction Hash Method Block
From
To
0x61010060160916042022-12-01 17:59:591162 days ago1669917599
0x65d22f2B...04CCcAE98
 Contract Creation0 ETH
Transfer160916042022-12-01 17:59:591162 days ago1669917599
0x65d22f2B...04CCcAE98
0.07882775 ETH
0x61010060160240382022-11-22 7:23:591171 days ago1669101839
0x65d22f2B...04CCcAE98
 Contract Creation0 ETH
Transfer160240382022-11-22 7:23:591171 days ago1669101839
0x65d22f2B...04CCcAE98
0.00000136 ETH
Transfer160240382022-11-22 7:23:591171 days ago1669101839
0x65d22f2B...04CCcAE98
0.09232576 ETH
0x61010060160060052022-11-19 18:59:111174 days ago1668884351
0x65d22f2B...04CCcAE98
 Contract Creation0 ETH
Transfer160060052022-11-19 18:59:111174 days ago1668884351
0x65d22f2B...04CCcAE98
0.08314316 ETH
0x61010060159776232022-11-15 19:49:471178 days ago1668541787
0x65d22f2B...04CCcAE98
 Contract Creation0 ETH
Transfer159776232022-11-15 19:49:471178 days ago1668541787
0x65d22f2B...04CCcAE98
0.00000022 ETH
Transfer159776232022-11-15 19:49:471178 days ago1668541787
0x65d22f2B...04CCcAE98
0.08036988 ETH
0x61010060159673322022-11-14 9:18:351179 days ago1668417515
0x65d22f2B...04CCcAE98
 Contract Creation0 ETH
Transfer159673322022-11-14 9:18:351179 days ago1668417515
0x65d22f2B...04CCcAE98
0.0798778 ETH
0x61010060159468592022-11-11 12:45:351182 days ago1668170735
0x65d22f2B...04CCcAE98
 Contract Creation0 ETH
Transfer159468592022-11-11 12:45:351182 days ago1668170735
0x65d22f2B...04CCcAE98
0.07889217 ETH
0x61010060159455192022-11-11 8:15:111182 days ago1668154511
0x65d22f2B...04CCcAE98
 Contract Creation0 ETH
Transfer159455192022-11-11 8:15:111182 days ago1668154511
0x65d22f2B...04CCcAE98
0.07897929 ETH
0x61010060159426772022-11-10 22:43:111183 days ago1668120191
0x65d22f2B...04CCcAE98
 Contract Creation0 ETH
Transfer159426772022-11-10 22:43:111183 days ago1668120191
0x65d22f2B...04CCcAE98
0.00012778 ETH
Transfer159426772022-11-10 22:43:111183 days ago1668120191
0x65d22f2B...04CCcAE98
0.07597077 ETH
0x61010060159321322022-11-09 11:19:471184 days ago1667992787
0x65d22f2B...04CCcAE98
 Contract Creation0 ETH
Transfer159321322022-11-09 11:19:471184 days ago1667992787
0x65d22f2B...04CCcAE98
0.0003762 ETH
Transfer159321322022-11-09 11:19:471184 days ago1667992787
0x65d22f2B...04CCcAE98
0.0834552 ETH
0x61010060158941362022-11-04 4:03:111189 days ago1667534591
0x65d22f2B...04CCcAE98
 Contract Creation0 ETH
Transfer158941362022-11-04 4:03:111189 days ago1667534591
0x65d22f2B...04CCcAE98
0.0649003 ETH
0x61010060158941242022-11-04 4:00:471189 days ago1667534447
0x65d22f2B...04CCcAE98
 Contract Creation0 ETH
View All Internal Transactions
Loading...
Loading
Loading...
Loading
Cross-Chain Transactions

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
VestingFactory

Compiler Version
v0.8.7+commit.e28d00a7

Optimization Enabled:
Yes with 1000 runs

Other Settings:
default evmVersion, Unlicense license
/**
 *Submitted for verification at Etherscan.io on 2022-10-29
*/

// SPDX-License-Identifier: UNLICENSED
pragma solidity 0.8.7;

// OpenZeppelin Contracts (last updated v4.6.0) (utils/cryptography/MerkleProof.sol)

/**
 * @dev These functions deal with verification of Merkle Tree proofs.
 *
 * The proofs can be generated using the JavaScript library
 * https://github.com/miguelmota/merkletreejs[merkletreejs].
 * Note: the hashing algorithm should be keccak256 and pair sorting should be enabled.
 *
 * See `test/utils/cryptography/MerkleProof.test.js` for some examples.
 *
 * WARNING: You should avoid using leaf values that are 64 bytes long prior to
 * hashing, or use a hash function other than keccak256 for hashing leaves.
 * This is because the concatenation of a sorted pair of internal nodes in
 * the merkle tree could be reinterpreted as a leaf value.
 */
library MerkleProof {
    /**
     * @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree
     * defined by `root`. For this, a `proof` must be provided, containing
     * sibling hashes on the branch from the leaf to the root of the tree. Each
     * pair of leaves and each pair of pre-images are assumed to be sorted.
     */
    function verify(
        bytes32[] memory proof,
        bytes32 root,
        bytes32 leaf
    ) internal pure returns (bool) {
        return processProof(proof, leaf) == root;
    }

    /**
     * @dev Calldata version of {verify}
     *
     * _Available since v4.7._
     */
    function verifyCalldata(
        bytes32[] calldata proof,
        bytes32 root,
        bytes32 leaf
    ) internal pure returns (bool) {
        return processProofCalldata(proof, leaf) == root;
    }

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

    /**
     * @dev Calldata version of {processProof}
     *
     * _Available since v4.7._
     */
    function processProofCalldata(bytes32[] calldata proof, bytes32 leaf) internal pure returns (bytes32) {
        bytes32 computedHash = leaf;
        for (uint256 i = 0; i < proof.length; i++) {
            computedHash = _hashPair(computedHash, proof[i]);
        }
        return computedHash;
    }

    /**
     * @dev Returns true if the `leaves` can be proved to be a part of a Merkle tree defined by
     * `root`, according to `proof` and `proofFlags` as described in {processMultiProof}.
     *
     * _Available since v4.7._
     */
    function multiProofVerify(
        bytes32[] calldata proof,
        bool[] calldata proofFlags,
        bytes32 root,
        bytes32[] calldata leaves
    ) internal pure returns (bool) {
        return processMultiProof(proof, proofFlags, leaves) == root;
    }

    /**
     * @dev Returns the root of a tree reconstructed from `leaves` and the sibling nodes in `proof`,
     * consuming from one or the other at each step according to the instructions given by
     * `proofFlags`.
     *
     * _Available since v4.7._
     */
    function processMultiProof(
        bytes32[] calldata proof,
        bool[] calldata proofFlags,
        bytes32[] calldata leaves
    ) internal pure returns (bytes32 merkleRoot) {
        // This function rebuild the root hash by traversing the tree up from the leaves. The root is rebuilt by
        // consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the
        // `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of
        // the merkle tree.
        uint256 leavesLen = leaves.length;
        uint256 totalHashes = proofFlags.length;

        // Check proof validity.
        require(leavesLen + proof.length - 1 == totalHashes, "MerkleProof: invalid multiproof");

        // The xxxPos values are "pointers" to the next value to consume in each array. All accesses are done using
        // `xxx[xxxPos++]`, which return the current value and increment the pointer, thus mimicking a queue's "pop".
        bytes32[] memory hashes = new bytes32[](totalHashes);
        uint256 leafPos = 0;
        uint256 hashPos = 0;
        uint256 proofPos = 0;
        // At each step, we compute the next hash using two values:
        // - a value from the "main queue". If not all leaves have been consumed, we get the next leaf, otherwise we
        //   get the next hash.
        // - depending on the flag, either another value for the "main queue" (merging branches) or an element from the
        //   `proof` array.
        for (uint256 i = 0; i < totalHashes; i++) {
            bytes32 a = leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++];
            bytes32 b = proofFlags[i] ? leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++] : proof[proofPos++];
            hashes[i] = _hashPair(a, b);
        }

        if (totalHashes > 0) {
            return hashes[totalHashes - 1];
        } else if (leavesLen > 0) {
            return leaves[0];
        } else {
            return proof[0];
        }
    }

    function _hashPair(bytes32 a, bytes32 b) private pure returns (bytes32) {
        return a < b ? _efficientHash(a, b) : _efficientHash(b, a);
    }

    function _efficientHash(bytes32 a, bytes32 b) private pure returns (bytes32 value) {
        /// @solidity memory-safe-assembly
        assembly {
            mstore(0x00, a)
            mstore(0x20, b)
            value := keccak256(0x00, 0x40)
        }
    }
}

// OpenZeppelin Contracts v4.4.1 (token/ERC20/utils/SafeERC20.sol)

// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/IERC20.sol)

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @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);

    /**
     * @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 `to`.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transfer(address to, 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 `from` to `to` 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 from,
        address to,
        uint256 amount
    ) external returns (bool);
}

// OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/draft-IERC20Permit.sol)

/**
 * @dev Interface of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in
 * https://eips.ethereum.org/EIPS/eip-2612[EIP-2612].
 *
 * Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by
 * presenting a message signed by the account. By not relying on {IERC20-approve}, the token holder account doesn't
 * need to send a transaction, and thus is not required to hold Ether at all.
 */
interface IERC20Permit {
    /**
     * @dev Sets `value` as the allowance of `spender` over ``owner``'s tokens,
     * given ``owner``'s signed approval.
     *
     * IMPORTANT: The same issues {IERC20-approve} has related to transaction
     * ordering also apply here.
     *
     * Emits an {Approval} event.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     * - `deadline` must be a timestamp in the future.
     * - `v`, `r` and `s` must be a valid `secp256k1` signature from `owner`
     * over the EIP712-formatted function arguments.
     * - the signature must use ``owner``'s current nonce (see {nonces}).
     *
     * For more information on the signature format, see the
     * https://eips.ethereum.org/EIPS/eip-2612#specification[relevant EIP
     * section].
     */
    function permit(
        address owner,
        address spender,
        uint256 value,
        uint256 deadline,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) external;

    /**
     * @dev Returns the current nonce for `owner`. This value must be
     * included whenever a signature is generated for {permit}.
     *
     * Every successful call to {permit} increases ``owner``'s nonce by one. This
     * prevents a signature from being used multiple times.
     */
    function nonces(address owner) external view returns (uint256);

    /**
     * @dev Returns the domain separator used in the encoding of the signature for {permit}, as defined by {EIP712}.
     */
    // solhint-disable-next-line func-name-mixedcase
    function DOMAIN_SEPARATOR() external view returns (bytes32);
}

// OpenZeppelin Contracts (last updated v4.5.0) (utils/Address.sol)

/**
 * @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
     * ====
     *
     * [IMPORTANT]
     * ====
     * You shouldn't rely on `isContract` to protect against flash loan attacks!
     *
     * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets
     * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract
     * constructor.
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize/address.code.length, which returns 0
        // for contracts in construction, since the code is only stored at the end
        // of the constructor execution.

        return account.code.length > 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 functionCallWithValue(target, data, 0, "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
                /// @solidity memory-safe-assembly
                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}

/**
 * @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));
        }
    }

    function safePermit(
        IERC20Permit token,
        address owner,
        address spender,
        uint256 value,
        uint256 deadline,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) internal {
        uint256 nonceBefore = token.nonces(owner);
        token.permit(owner, spender, value, deadline, v, r, s);
        uint256 nonceAfter = token.nonces(owner);
        require(nonceAfter == nonceBefore + 1, "SafeERC20: permit did not succeed");
    }

    /**
     * @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");
        }
    }
}

// OpenZeppelin Contracts (last updated v4.5.0) (utils/math/Math.sol)

/**
 * @dev Standard math utilities missing in the Solidity language.
 */
library Math {
    enum Rounding {
        Down, // Toward negative infinity
        Up, // Toward infinity
        Zero // Toward zero
    }

    /**
     * @dev Returns the largest of two numbers.
     */
    function max(uint256 a, uint256 b) internal pure returns (uint256) {
        return a >= b ? a : b;
    }

    /**
     * @dev Returns the smallest of two numbers.
     */
    function min(uint256 a, uint256 b) internal pure returns (uint256) {
        return a < b ? a : b;
    }

    /**
     * @dev Returns the average of two numbers. The result is rounded towards
     * zero.
     */
    function average(uint256 a, uint256 b) internal pure returns (uint256) {
        // (a + b) / 2 can overflow.
        return (a & b) + (a ^ b) / 2;
    }

    /**
     * @dev Returns the ceiling of the division of two numbers.
     *
     * This differs from standard division with `/` in that it rounds up instead
     * of rounding down.
     */
    function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) {
        // (a + b - 1) / b can overflow on addition, so we distribute.
        return a == 0 ? 0 : (a - 1) / b + 1;
    }

    /**
     * @notice Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or denominator == 0
     * @dev Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv)
     * with further edits by Uniswap Labs also under MIT license.
     */
    function mulDiv(
        uint256 x,
        uint256 y,
        uint256 denominator
    ) internal pure returns (uint256 result) {
        unchecked {
            // 512-bit multiply [prod1 prod0] = x * y. Compute the product mod 2^256 and mod 2^256 - 1, then use
            // use the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256
            // variables such that product = prod1 * 2^256 + prod0.
            uint256 prod0; // Least significant 256 bits of the product
            uint256 prod1; // Most significant 256 bits of the product
            assembly {
                let mm := mulmod(x, y, not(0))
                prod0 := mul(x, y)
                prod1 := sub(sub(mm, prod0), lt(mm, prod0))
            }

            // Handle non-overflow cases, 256 by 256 division.
            if (prod1 == 0) {
                return prod0 / denominator;
            }

            // Make sure the result is less than 2^256. Also prevents denominator == 0.
            require(denominator > prod1);

            ///////////////////////////////////////////////
            // 512 by 256 division.
            ///////////////////////////////////////////////

            // Make division exact by subtracting the remainder from [prod1 prod0].
            uint256 remainder;
            assembly {
                // Compute remainder using mulmod.
                remainder := mulmod(x, y, denominator)

                // Subtract 256 bit number from 512 bit number.
                prod1 := sub(prod1, gt(remainder, prod0))
                prod0 := sub(prod0, remainder)
            }

            // Factor powers of two out of denominator and compute largest power of two divisor of denominator. Always >= 1.
            // See https://cs.stackexchange.com/q/138556/92363.

            // Does not overflow because the denominator cannot be zero at this stage in the function.
            uint256 twos = denominator & (~denominator + 1);
            assembly {
                // Divide denominator by twos.
                denominator := div(denominator, twos)

                // Divide [prod1 prod0] by twos.
                prod0 := div(prod0, twos)

                // Flip twos such that it is 2^256 / twos. If twos is zero, then it becomes one.
                twos := add(div(sub(0, twos), twos), 1)
            }

            // Shift in bits from prod1 into prod0.
            prod0 |= prod1 * twos;

            // Invert denominator mod 2^256. Now that denominator is an odd number, it has an inverse modulo 2^256 such
            // that denominator * inv = 1 mod 2^256. Compute the inverse by starting with a seed that is correct for
            // four bits. That is, denominator * inv = 1 mod 2^4.
            uint256 inverse = (3 * denominator) ^ 2;

            // Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also works
            // in modular arithmetic, doubling the correct bits in each step.
            inverse *= 2 - denominator * inverse; // inverse mod 2^8
            inverse *= 2 - denominator * inverse; // inverse mod 2^16
            inverse *= 2 - denominator * inverse; // inverse mod 2^32
            inverse *= 2 - denominator * inverse; // inverse mod 2^64
            inverse *= 2 - denominator * inverse; // inverse mod 2^128
            inverse *= 2 - denominator * inverse; // inverse mod 2^256

            // Because the division is now exact we can divide by multiplying with the modular inverse of denominator.
            // This will give us the correct result modulo 2^256. Since the preconditions guarantee that the outcome is
            // less than 2^256, this is the final result. We don't need to compute the high bits of the result and prod1
            // is no longer required.
            result = prod0 * inverse;
            return result;
        }
    }

    /**
     * @notice Calculates x * y / denominator with full precision, following the selected rounding direction.
     */
    function mulDiv(
        uint256 x,
        uint256 y,
        uint256 denominator,
        Rounding rounding
    ) internal pure returns (uint256) {
        uint256 result = mulDiv(x, y, denominator);
        if (rounding == Rounding.Up && mulmod(x, y, denominator) > 0) {
            result += 1;
        }
        return result;
    }

    /**
     * @dev Returns the square root of a number. It the number is not a perfect square, the value is rounded down.
     *
     * Inspired by Henry S. Warren, Jr.'s "Hacker's Delight" (Chapter 11).
     */
    function sqrt(uint256 a) internal pure returns (uint256) {
        if (a == 0) {
            return 0;
        }

        // For our first guess, we get the biggest power of 2 which is smaller than the square root of the target.
        // We know that the "msb" (most significant bit) of our target number `a` is a power of 2 such that we have
        // `msb(a) <= a < 2*msb(a)`.
        // We also know that `k`, the position of the most significant bit, is such that `msb(a) = 2**k`.
        // This gives `2**k < a <= 2**(k+1)` → `2**(k/2) <= sqrt(a) < 2 ** (k/2+1)`.
        // Using an algorithm similar to the msb conmputation, we are able to compute `result = 2**(k/2)` which is a
        // good first aproximation of `sqrt(a)` with at least 1 correct bit.
        uint256 result = 1;
        uint256 x = a;
        if (x >> 128 > 0) {
            x >>= 128;
            result <<= 64;
        }
        if (x >> 64 > 0) {
            x >>= 64;
            result <<= 32;
        }
        if (x >> 32 > 0) {
            x >>= 32;
            result <<= 16;
        }
        if (x >> 16 > 0) {
            x >>= 16;
            result <<= 8;
        }
        if (x >> 8 > 0) {
            x >>= 8;
            result <<= 4;
        }
        if (x >> 4 > 0) {
            x >>= 4;
            result <<= 2;
        }
        if (x >> 2 > 0) {
            result <<= 1;
        }

        // At this point `result` is an estimation with one bit of precision. We know the true value is a uint128,
        // since it is the square root of a uint256. Newton's method converges quadratically (precision doubles at
        // every iteration). We thus need at most 7 iteration to turn our partial result with one bit of precision
        // into the expected uint128 result.
        unchecked {
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            return min(result, a / result);
        }
    }

    /**
     * @notice Calculates sqrt(a), following the selected rounding direction.
     */
    function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) {
        uint256 result = sqrt(a);
        if (rounding == Rounding.Up && result * result < a) {
            result += 1;
        }
        return result;
    }
}

contract Vesting {
    using SafeERC20 for IERC20;

    address public immutable token;
    bytes32 public immutable merkleRoot;
    uint256 public immutable start;
    uint256 public immutable end;

    mapping(address => uint256) public claimed;

    error InvalidProof();
    error NothingToClaim();
    error InvalidDates();
    error EmptyMerkleRoot();

    event Claim(address indexed account, uint256 amount);

    constructor(
        address _token,
        bytes32 _merkleRoot,
        uint256 _start,
        uint256 _end
    ) {
        if (_start >= _end) revert InvalidDates();
        if (_merkleRoot == "") revert EmptyMerkleRoot();

        token = _token;
        merkleRoot = _merkleRoot;
        start = _start;
        end = _end;
    }

    function claim(
        address account,
        uint256 amount,
        bytes32[] calldata merkleProof
    ) public {
        bytes32 node = keccak256(abi.encodePacked(account, amount));
        if (!MerkleProof.verify(merkleProof, merkleRoot, node)) revert InvalidProof();

        uint256 claimable = getClaimable(account, amount);

        if (claimable == 0) revert NothingToClaim();

        claimed[account] += claimable;

        IERC20(token).safeTransfer(account, claimable);

        emit Claim(account, claimable);
    }

    function getClaimable(address account, uint256 amount) public view returns (uint256) {
        if (block.timestamp < start) return 0;

        uint256 totalClaimable = ((Math.min(block.timestamp, end) - start) * amount) / (end - start);

        return totalClaimable - claimed[account];
    }
}

// solhint-disable func-name-mixedcase

interface IUniswapV2Router01 {
    function factory() external pure returns (address);

    function WETH() external pure returns (address);

    function addLiquidity(
        address tokenA,
        address tokenB,
        uint256 amountADesired,
        uint256 amountBDesired,
        uint256 amountAMin,
        uint256 amountBMin,
        address to,
        uint256 deadline
    )
        external
        returns (
            uint256 amountA,
            uint256 amountB,
            uint256 liquidity
        );

    function addLiquidityETH(
        address token,
        uint256 amountTokenDesired,
        uint256 amountTokenMin,
        uint256 amountETHMin,
        address to,
        uint256 deadline
    )
        external
        payable
        returns (
            uint256 amountToken,
            uint256 amountETH,
            uint256 liquidity
        );

    function removeLiquidity(
        address tokenA,
        address tokenB,
        uint256 liquidity,
        uint256 amountAMin,
        uint256 amountBMin,
        address to,
        uint256 deadline
    ) external returns (uint256 amountA, uint256 amountB);

    function removeLiquidityETH(
        address token,
        uint256 liquidity,
        uint256 amountTokenMin,
        uint256 amountETHMin,
        address to,
        uint256 deadline
    ) external returns (uint256 amountToken, uint256 amountETH);

    function removeLiquidityWithPermit(
        address tokenA,
        address tokenB,
        uint256 liquidity,
        uint256 amountAMin,
        uint256 amountBMin,
        address to,
        uint256 deadline,
        bool approveMax,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) external returns (uint256 amountA, uint256 amountB);

    function removeLiquidityETHWithPermit(
        address token,
        uint256 liquidity,
        uint256 amountTokenMin,
        uint256 amountETHMin,
        address to,
        uint256 deadline,
        bool approveMax,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) external returns (uint256 amountToken, uint256 amountETH);

    function swapExactTokensForTokens(
        uint256 amountIn,
        uint256 amountOutMin,
        address[] calldata path,
        address to,
        uint256 deadline
    ) external returns (uint256[] memory amounts);

    function swapTokensForExactTokens(
        uint256 amountOut,
        uint256 amountInMax,
        address[] calldata path,
        address to,
        uint256 deadline
    ) external returns (uint256[] memory amounts);

    function swapExactETHForTokens(
        uint256 amountOutMin,
        address[] calldata path,
        address to,
        uint256 deadline
    ) external payable returns (uint256[] memory amounts);

    function swapTokensForExactETH(
        uint256 amountOut,
        uint256 amountInMax,
        address[] calldata path,
        address to,
        uint256 deadline
    ) external returns (uint256[] memory amounts);

    function swapExactTokensForETH(
        uint256 amountIn,
        uint256 amountOutMin,
        address[] calldata path,
        address to,
        uint256 deadline
    ) external returns (uint256[] memory amounts);

    function swapETHForExactTokens(
        uint256 amountOut,
        address[] calldata path,
        address to,
        uint256 deadline
    ) external payable returns (uint256[] memory amounts);

    function quote(
        uint256 amountA,
        uint256 reserveA,
        uint256 reserveB
    ) external pure returns (uint256 amountB);

    function getAmountOut(
        uint256 amountIn,
        uint256 reserveIn,
        uint256 reserveOut
    ) external pure returns (uint256 amountOut);

    function getAmountIn(
        uint256 amountOut,
        uint256 reserveIn,
        uint256 reserveOut
    ) external pure returns (uint256 amountIn);

    function getAmountsOut(uint256 amountIn, address[] calldata path) external view returns (uint256[] memory amounts);

    function getAmountsIn(uint256 amountOut, address[] calldata path) external view returns (uint256[] memory amounts);
}

interface IUniswapV2Router02 is IUniswapV2Router01 {
    function removeLiquidityETHSupportingFeeOnTransferTokens(
        address token,
        uint256 liquidity,
        uint256 amountTokenMin,
        uint256 amountETHMin,
        address to,
        uint256 deadline
    ) external returns (uint256 amountETH);

    function removeLiquidityETHWithPermitSupportingFeeOnTransferTokens(
        address token,
        uint256 liquidity,
        uint256 amountTokenMin,
        uint256 amountETHMin,
        address to,
        uint256 deadline,
        bool approveMax,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) external returns (uint256 amountETH);

    function swapExactTokensForTokensSupportingFeeOnTransferTokens(
        uint256 amountIn,
        uint256 amountOutMin,
        address[] calldata path,
        address to,
        uint256 deadline
    ) external;

    function swapExactETHForTokensSupportingFeeOnTransferTokens(
        uint256 amountOutMin,
        address[] calldata path,
        address to,
        uint256 deadline
    ) external payable;

    function swapExactTokensForETHSupportingFeeOnTransferTokens(
        uint256 amountIn,
        uint256 amountOutMin,
        address[] calldata path,
        address to,
        uint256 deadline
    ) external;
}

// solhint-disable func-name-mixedcase

interface IUniswapV2Pair {
    event Approval(address indexed owner, address indexed spender, uint256 value);
    event Transfer(address indexed from, address indexed to, uint256 value);

    function name() external pure returns (string memory);

    function symbol() external pure returns (string memory);

    function decimals() external pure returns (uint8);

    function totalSupply() external view returns (uint256);

    function balanceOf(address owner) external view returns (uint256);

    function allowance(address owner, address spender) external view returns (uint256);

    function approve(address spender, uint256 value) external returns (bool);

    function transfer(address to, uint256 value) external returns (bool);

    function transferFrom(
        address from,
        address to,
        uint256 value
    ) external returns (bool);

    function DOMAIN_SEPARATOR() external view returns (bytes32);

    function PERMIT_TYPEHASH() external pure returns (bytes32);

    function nonces(address owner) external view returns (uint256);

    function permit(
        address owner,
        address spender,
        uint256 value,
        uint256 deadline,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) external;

    event Mint(address indexed sender, uint256 amount0, uint256 amount1);
    event Burn(address indexed sender, uint256 amount0, uint256 amount1, address indexed to);
    event Swap(
        address indexed sender,
        uint256 amount0In,
        uint256 amount1In,
        uint256 amount0Out,
        uint256 amount1Out,
        address indexed to
    );
    event Sync(uint112 reserve0, uint112 reserve1);

    function MINIMUM_LIQUIDITY() external pure returns (uint256);

    function factory() external view returns (address);

    function token0() external view returns (address);

    function token1() external view returns (address);

    function getReserves()
        external
        view
        returns (
            uint112 reserve0,
            uint112 reserve1,
            uint32 blockTimestampLast
        );

    function price0CumulativeLast() external view returns (uint256);

    function price1CumulativeLast() external view returns (uint256);

    function kLast() external view returns (uint256);

    function mint(address to) external returns (uint256 liquidity);

    function burn(address to) external returns (uint256 amount0, uint256 amount1);

    function swap(
        uint256 amount0Out,
        uint256 amount1Out,
        address to,
        bytes calldata data
    ) external;

    function skim(address to) external;

    function sync() external;

    function initialize(address, address) external;
}

// OpenZeppelin Contracts v4.4.1 (access/Ownable.sol)

// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)

/**
 * @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;
    }
}

/**
 * @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 Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        _checkOwner();
        _;
    }

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

    /**
     * @dev Throws if the sender is not the owner.
     */
    function _checkOwner() internal view virtual {
        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);
    }
}

// OpenZeppelin Contracts v4.4.1 (security/ReentrancyGuard.sol)

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

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

    uint256 private _status;

    constructor() {
        _status = _NOT_ENTERED;
    }

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

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

        _;

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

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

    bool public isWethFirst;
    address public usdTokenAddress;
    uint96 public feesInUSD;
    address payable public companyWallet;
    IUniswapV2Router02 public uniV2Router;
    IUniswapV2Pair public uniV2Pair;
    mapping(address => bool) public feelessTokens;

    error NotContract();
    error ZeroAddress();
    error FeeNotMet(uint256 required, uint256 provided);
    error ZeroAmount();

    event VestingCreated(
        address indexed creator,
        address vestingAddr,
        address indexed token,
        bytes32 merkleRoot,
        uint256 start,
        uint256 end,
        uint256 totalAmount,
        uint256 fee
    );
    event FeesChange(address uniV2Router, address uniV2Pair, uint256 feesUsd, address companyWallet);

    modifier onlyContract(address account) {
        if (account.code.length == 0) revert NotContract();
        _;
    }

    function createVesting(
        address token,
        bytes32 merkleRoot,
        uint256 start,
        uint256 end,
        uint256 totalAmount
    ) external payable nonReentrant {
        if (totalAmount == 0) revert ZeroAmount();
        uint256 fee = handleFees(token);

        Vesting vesting = new Vesting(token, merkleRoot, start, end);

        IERC20(token).safeTransferFrom(msg.sender, address(vesting), totalAmount);

        emit VestingCreated(msg.sender, address(vesting), token, merkleRoot, start, end, totalAmount, fee);
    }

    function handleFees(address token) internal returns (uint256) {
        uint256 feeInEth = getFeeInETH(token);
        if (feeInEth == 0) {
            return 0;
        }

        if (msg.value < feeInEth) {
            // allow 5% less fee due to price change
            if (((feeInEth - msg.value) * 100) / feeInEth > 5) revert FeeNotMet(feeInEth, msg.value);

            companyWallet.transfer(msg.value);

            return msg.value;
        }

        companyWallet.transfer(feeInEth);

        if (msg.value > feeInEth) {
            payable(msg.sender).transfer(msg.value - feeInEth);
        }

        return feeInEth;
    }

    function setFeeParams(
        address _uniV2Router,
        address _uniV2Pair,
        uint96 _feesInUSD,
        address payable _companyWallet
    ) external onlyOwner onlyContract(_uniV2Router) onlyContract(_uniV2Pair) {
        if (_companyWallet == payable(0)) revert ZeroAddress();

        uniV2Router = IUniswapV2Router02(_uniV2Router);
        uniV2Pair = IUniswapV2Pair(_uniV2Pair);

        feesInUSD = _feesInUSD;
        companyWallet = _companyWallet;

        isWethFirst = uniV2Pair.token0() == uniV2Router.WETH();

        emit FeesChange(_uniV2Router, _uniV2Pair, _feesInUSD, companyWallet);
    }

    function getFeeInETH(address token) public view returns (uint256) {
        uint256 _feesInUSD = feesInUSD;
        if (_feesInUSD == 0 || feelessTokens[token]) {
            return 0;
        }

        (uint256 reserve0, uint256 reserve1, ) = uniV2Pair.getReserves();
        return
            isWethFirst
                ? uniV2Router.getAmountIn(_feesInUSD, reserve0, reserve1)
                : uniV2Router.getAmountIn(_feesInUSD, reserve1, reserve0);
    }

    function setFeelessToken(address tokenAddress, bool feeless) public onlyOwner {
        feelessTokens[tokenAddress] = feeless;
    }
}

Contract Security Audit

Contract ABI

API
[{"inputs":[{"internalType":"uint256","name":"required","type":"uint256"},{"internalType":"uint256","name":"provided","type":"uint256"}],"name":"FeeNotMet","type":"error"},{"inputs":[],"name":"NotContract","type":"error"},{"inputs":[],"name":"ZeroAddress","type":"error"},{"inputs":[],"name":"ZeroAmount","type":"error"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"uniV2Router","type":"address"},{"indexed":false,"internalType":"address","name":"uniV2Pair","type":"address"},{"indexed":false,"internalType":"uint256","name":"feesUsd","type":"uint256"},{"indexed":false,"internalType":"address","name":"companyWallet","type":"address"}],"name":"FeesChange","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":"address","name":"creator","type":"address"},{"indexed":false,"internalType":"address","name":"vestingAddr","type":"address"},{"indexed":true,"internalType":"address","name":"token","type":"address"},{"indexed":false,"internalType":"bytes32","name":"merkleRoot","type":"bytes32"},{"indexed":false,"internalType":"uint256","name":"start","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"end","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"totalAmount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"fee","type":"uint256"}],"name":"VestingCreated","type":"event"},{"inputs":[],"name":"companyWallet","outputs":[{"internalType":"address payable","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"bytes32","name":"merkleRoot","type":"bytes32"},{"internalType":"uint256","name":"start","type":"uint256"},{"internalType":"uint256","name":"end","type":"uint256"},{"internalType":"uint256","name":"totalAmount","type":"uint256"}],"name":"createVesting","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"feelessTokens","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"feesInUSD","outputs":[{"internalType":"uint96","name":"","type":"uint96"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"}],"name":"getFeeInETH","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isWethFirst","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_uniV2Router","type":"address"},{"internalType":"address","name":"_uniV2Pair","type":"address"},{"internalType":"uint96","name":"_feesInUSD","type":"uint96"},{"internalType":"address payable","name":"_companyWallet","type":"address"}],"name":"setFeeParams","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"tokenAddress","type":"address"},{"internalType":"bool","name":"feeless","type":"bool"}],"name":"setFeelessToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"uniV2Pair","outputs":[{"internalType":"contract IUniswapV2Pair","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"uniV2Router","outputs":[{"internalType":"contract IUniswapV2Router02","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"usdTokenAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"}]

608060405234801561001057600080fd5b5061001a33610023565b60018055610073565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b611e12806100826000396000f3fe6080604052600436106100dd5760003560e01c8063958792a61161007f578063aa182aef11610059578063aa182aef1461026e578063da4c459b146102b0578063f2fde38b146102ca578063fb813f96146102ea57600080fd5b8063958792a614610200578063958c2e521461022e5780639839ed2d1461024e57600080fd5b8063715018a6116100bb578063715018a61461018b5780638bcea939146101a25780638da5cb5b146101c25780638ec67eca146101e057600080fd5b806302c90331146100e25780631ec32d15146101275780633eac8dac14610166575b600080fd5b3480156100ee57600080fd5b506101126100fd366004610f42565b60066020526000908152604090205460ff1681565b60405190151581526020015b60405180910390f35b34801561013357600080fd5b5060035461014e90600160601b90046001600160a01b031681565b6040516001600160a01b03909116815260200161011e565b34801561017257600080fd5b5060025461014e9061010090046001600160a01b031681565b34801561019757600080fd5b506101a06102fd565b005b3480156101ae57600080fd5b5060055461014e906001600160a01b031681565b3480156101ce57600080fd5b506000546001600160a01b031661014e565b3480156101ec57600080fd5b506101a06101fb366004610fe9565b610311565b34801561020c57600080fd5b5061022061021b366004610f42565b610344565b60405190815260200161011e565b34801561023a57600080fd5b5060045461014e906001600160a01b031681565b34801561025a57600080fd5b506101a0610269366004610f7c565b610555565b34801561027a57600080fd5b50600354610293906bffffffffffffffffffffffff1681565b6040516bffffffffffffffffffffffff909116815260200161011e565b3480156102bc57600080fd5b506002546101129060ff1681565b3480156102d657600080fd5b506101a06102e5366004610f42565b6107e4565b6101a06102f8366004611022565b610879565b6103056109f0565b61030f6000610a4a565b565b6103196109f0565b6001600160a01b03919091166000908152600660205260409020805460ff1916911515919091179055565b6003546000906bffffffffffffffffffffffff1680158061037d57506001600160a01b03831660009081526006602052604090205460ff165b1561038b5750600092915050565b600080600560009054906101000a90046001600160a01b03166001600160a01b0316630902f1ac6040518163ffffffff1660e01b815260040160606040518083038186803b1580156103dc57600080fd5b505afa1580156103f0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104149190611083565b506002546dffffffffffffffffffffffffffff92831694509116915060ff166104c457600480546040516385f8c25960e01b815291820185905260248201839052604482018490526001600160a01b0316906385f8c2599060640160206040518083038186803b15801561048757600080fd5b505afa15801561049b573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104bf91906110d3565b61054c565b600480546040516385f8c25960e01b815291820185905260248201849052604482018390526001600160a01b0316906385f8c2599060640160206040518083038186803b15801561051457600080fd5b505afa158015610528573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061054c91906110d3565b95945050505050565b61055d6109f0565b836001600160a01b0381163b61058657604051636f7c43f160e01b815260040160405180910390fd5b836001600160a01b0381163b6105af57604051636f7c43f160e01b815260040160405180910390fd5b6001600160a01b0383166105ef576040517fd92e233d00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600480546001600160a01b0380891673ffffffffffffffffffffffffffffffffffffffff1992831681178455600580548a84169416939093179092558516600160601b026bffffffffffffffffffffffff871617600355604080517fad5c46480000000000000000000000000000000000000000000000000000000081529051919263ad5c4648928282019260209290829003018186803b15801561069357600080fd5b505afa1580156106a7573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106cb9190610f5f565b6001600160a01b0316600560009054906101000a90046001600160a01b03166001600160a01b0316630dfe16816040518163ffffffff1660e01b815260040160206040518083038186803b15801561072257600080fd5b505afa158015610736573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061075a9190610f5f565b6002805460ff19166001600160a01b03928316939093149290921790915560035460408051898416815288841660208201526bffffffffffffffffffffffff881681830152600160601b909204909216606082015290517ff9cab2a68a157c313890992ad0c6c978f9d7b285387efc4660a87b0b3e5fab42916080908290030190a1505050505050565b6107ec6109f0565b6001600160a01b03811661086d5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f646472657373000000000000000000000000000000000000000000000000000060648201526084015b60405180910390fd5b61087681610a4a565b50565b600260015414156108cc5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610864565b600260015580610908576040517f1f2a200500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600061091386610aa7565b905060008686868660405161092790610f12565b6001600160a01b039094168452602084019290925260408301526060820152608001604051809103906000f080158015610965573d6000803e3d6000fd5b50905061097d6001600160a01b038816338386610c00565b604080516001600160a01b03838116825260208201899052918101879052606081018690526080810185905260a081018490529088169033907f99e05d8f62fab37c853b68e5007062534af351a94aef782baa8439ea29bb0a639060c00160405180910390a35050600180555050505050565b6000546001600160a01b0316331461030f5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610864565b600080546001600160a01b0383811673ffffffffffffffffffffffffffffffffffffffff19831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b600080610ab383610344565b905080610ac35750600092915050565b80341015610b7957600581610ad8348261117c565b610ae390606461115d565b610aed919061113b565b1115610b2e576040517ffdba93f100000000000000000000000000000000000000000000000000000000815260048101829052346024820152604401610864565b6003546040516001600160a01b03600160601b90920491909116903480156108fc02916000818181858888f19350505050158015610b70573d6000803e3d6000fd5b50349392505050565b600354604051600160601b9091046001600160a01b0316906108fc8315029083906000818181858888f19350505050158015610bb9573d6000803e3d6000fd5b5080341115610bfa57336108fc610bd0833461117c565b6040518115909202916000818181858888f19350505050158015610bf8573d6000803e3d6000fd5b505b92915050565b604080516001600160a01b0385811660248301528416604482015260648082018490528251808303909101815260849091019091526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167f23b872dd00000000000000000000000000000000000000000000000000000000179052610c88908590610c8e565b50505050565b6000610ce3826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316610d789092919063ffffffff16565b805190915015610d735780806020019051810190610d019190611066565b610d735760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f742073756363656564000000000000000000000000000000000000000000006064820152608401610864565b505050565b6060610d878484600085610d91565b90505b9392505050565b606082471015610e095760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60448201527f722063616c6c00000000000000000000000000000000000000000000000000006064820152608401610864565b6001600160a01b0385163b610e605760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610864565b600080866001600160a01b03168587604051610e7c91906110ec565b60006040518083038185875af1925050503d8060008114610eb9576040519150601f19603f3d011682016040523d82523d6000602084013e610ebe565b606091505b5091509150610ece828286610ed9565b979650505050505050565b60608315610ee8575081610d8a565b825115610ef85782518084602001fd5b8160405162461bcd60e51b81526004016108649190611108565b610be4806111f983390190565b80516dffffffffffffffffffffffffffff81168114610f3d57600080fd5b919050565b600060208284031215610f5457600080fd5b8135610d8a816111d5565b600060208284031215610f7157600080fd5b8151610d8a816111d5565b60008060008060808587031215610f9257600080fd5b8435610f9d816111d5565b93506020850135610fad816111d5565b925060408501356bffffffffffffffffffffffff81168114610fce57600080fd5b91506060850135610fde816111d5565b939692955090935050565b60008060408385031215610ffc57600080fd5b8235611007816111d5565b91506020830135611017816111ea565b809150509250929050565b600080600080600060a0868803121561103a57600080fd5b8535611045816111d5565b97602087013597506040870135966060810135965060800135945092505050565b60006020828403121561107857600080fd5b8151610d8a816111ea565b60008060006060848603121561109857600080fd5b6110a184610f1f565b92506110af60208501610f1f565b9150604084015163ffffffff811681146110c857600080fd5b809150509250925092565b6000602082840312156110e557600080fd5b5051919050565b600082516110fe818460208701611193565b9190910192915050565b6020815260008251806020840152611127816040850160208701611193565b601f01601f19169190910160400192915050565b60008261115857634e487b7160e01b600052601260045260246000fd5b500490565b6000816000190483118215151615611177576111776111bf565b500290565b60008282101561118e5761118e6111bf565b500390565b60005b838110156111ae578181015183820152602001611196565b83811115610c885750506000910152565b634e487b7160e01b600052601160045260246000fd5b6001600160a01b038116811461087657600080fd5b801515811461087657600080fdfe61010060405234801561001157600080fd5b50604051610be4380380610be483398101604081905261003091610092565b8082106100505760405163364dd21b60e21b815260040160405180910390fd5b8261006e576040516385ac2b9960e01b815260040160405180910390fd5b60609390931b6001600160601b03191660805260a09190915260c05260e0526100dd565b600080600080608085870312156100a857600080fd5b84516001600160a01b03811681146100bf57600080fd5b60208601516040870151606090970151919890975090945092505050565b60805160601c60a05160c05160e051610a9c61014860003960008181610130015281816103b4015261040001526000818160e90152818161035e0152818161039301526103db0152600081816087015261020701526000818161015701526102e80152610a9c6000f3fe608060405234801561001057600080fd5b506004361061007d5760003560e01c8063be9a65551161005b578063be9a6555146100e4578063c884ef831461010b578063efbe1c1c1461012b578063fc0c546a1461015257600080fd5b80632eb4a7ab146100825780633d13f874146100bc5780636f5244b1146100d1575b600080fd5b6100a97f000000000000000000000000000000000000000000000000000000000000000081565b6040519081526020015b60405180910390f35b6100cf6100ca366004610884565b610191565b005b6100a96100df36600461085a565b61035a565b6100a97f000000000000000000000000000000000000000000000000000000000000000081565b6100a961011936600461083f565b60006020819052908152604090205481565b6100a97f000000000000000000000000000000000000000000000000000000000000000081565b6101797f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b0390911681526020016100b3565b6040516bffffffffffffffffffffffff19606086901b166020820152603481018490526000906054016040516020818303038152906040528051906020012090506102328383808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152507f000000000000000000000000000000000000000000000000000000000000000092508591506104729050565b610268576040517f09bde33900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000610274868661035a565b9050806102ad576040517f969bf72800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6001600160a01b038616600090815260208190526040812080548392906102d590849061097f565b9091555061030f90506001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016878361048a565b856001600160a01b03167f47cee97cb7acd717b3c0aa1435d004cd5b3c8c57d70dbceb4e4458bbd60e39d48260405161034a91815260200190565b60405180910390a2505050505050565b60007f000000000000000000000000000000000000000000000000000000000000000042101561038c5750600061046c565b60006103d87f00000000000000000000000000000000000000000000000000000000000000007f00000000000000000000000000000000000000000000000000000000000000006109d8565b837f0000000000000000000000000000000000000000000000000000000000000000610424427f000000000000000000000000000000000000000000000000000000000000000061050f565b61042e91906109d8565b61043891906109b9565b6104429190610997565b6001600160a01b03851660009081526020819052604090205490915061046890826109d8565b9150505b92915050565b60008261047f8584610525565b1490505b9392505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fa9059cbb0000000000000000000000000000000000000000000000000000000017905261050a908490610572565b505050565b600081831061051e5781610483565b5090919050565b600081815b845181101561056a576105568286838151811061054957610549610a50565b602002602001015161065c565b91508061056281610a1f565b91505061052a565b509392505050565b60006105c7826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b031661068b9092919063ffffffff16565b80519091501561050a57808060200190518101906105e5919061090e565b61050a5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f7420737563636565640000000000000000000000000000000000000000000060648201526084015b60405180910390fd5b6000818310610678576000828152602084905260409020610483565b6000838152602083905260409020610483565b606061069a84846000856106a2565b949350505050565b60608247101561071a5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60448201527f722063616c6c00000000000000000000000000000000000000000000000000006064820152608401610653565b6001600160a01b0385163b6107715760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610653565b600080866001600160a01b0316858760405161078d9190610930565b60006040518083038185875af1925050503d80600081146107ca576040519150601f19603f3d011682016040523d82523d6000602084013e6107cf565b606091505b50915091506107df8282866107ea565b979650505050505050565b606083156107f9575081610483565b8251156108095782518084602001fd5b8160405162461bcd60e51b8152600401610653919061094c565b80356001600160a01b038116811461083a57600080fd5b919050565b60006020828403121561085157600080fd5b61048382610823565b6000806040838503121561086d57600080fd5b61087683610823565b946020939093013593505050565b6000806000806060858703121561089a57600080fd5b6108a385610823565b935060208501359250604085013567ffffffffffffffff808211156108c757600080fd5b818701915087601f8301126108db57600080fd5b8135818111156108ea57600080fd5b8860208260051b85010111156108ff57600080fd5b95989497505060200194505050565b60006020828403121561092057600080fd5b8151801515811461048357600080fd5b600082516109428184602087016109ef565b9190910192915050565b602081526000825180602084015261096b8160408501602087016109ef565b601f01601f19169190910160400192915050565b6000821982111561099257610992610a3a565b500190565b6000826109b457634e487b7160e01b600052601260045260246000fd5b500490565b60008160001904831182151516156109d3576109d3610a3a565b500290565b6000828210156109ea576109ea610a3a565b500390565b60005b83811015610a0a5781810151838201526020016109f2565b83811115610a19576000848401525b50505050565b6000600019821415610a3357610a33610a3a565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052603260045260246000fdfea2646970667358221220504305f4fc0979724b245f125798fcb250f4237dfc3c2c49a810824cce78fc2764736f6c63430008070033a2646970667358221220db546738b1433403ab953e0ba3880bc8a0e454540b43e3609b322ac9e845e65c64736f6c63430008070033

Deployed Bytecode

0x6080604052600436106100dd5760003560e01c8063958792a61161007f578063aa182aef11610059578063aa182aef1461026e578063da4c459b146102b0578063f2fde38b146102ca578063fb813f96146102ea57600080fd5b8063958792a614610200578063958c2e521461022e5780639839ed2d1461024e57600080fd5b8063715018a6116100bb578063715018a61461018b5780638bcea939146101a25780638da5cb5b146101c25780638ec67eca146101e057600080fd5b806302c90331146100e25780631ec32d15146101275780633eac8dac14610166575b600080fd5b3480156100ee57600080fd5b506101126100fd366004610f42565b60066020526000908152604090205460ff1681565b60405190151581526020015b60405180910390f35b34801561013357600080fd5b5060035461014e90600160601b90046001600160a01b031681565b6040516001600160a01b03909116815260200161011e565b34801561017257600080fd5b5060025461014e9061010090046001600160a01b031681565b34801561019757600080fd5b506101a06102fd565b005b3480156101ae57600080fd5b5060055461014e906001600160a01b031681565b3480156101ce57600080fd5b506000546001600160a01b031661014e565b3480156101ec57600080fd5b506101a06101fb366004610fe9565b610311565b34801561020c57600080fd5b5061022061021b366004610f42565b610344565b60405190815260200161011e565b34801561023a57600080fd5b5060045461014e906001600160a01b031681565b34801561025a57600080fd5b506101a0610269366004610f7c565b610555565b34801561027a57600080fd5b50600354610293906bffffffffffffffffffffffff1681565b6040516bffffffffffffffffffffffff909116815260200161011e565b3480156102bc57600080fd5b506002546101129060ff1681565b3480156102d657600080fd5b506101a06102e5366004610f42565b6107e4565b6101a06102f8366004611022565b610879565b6103056109f0565b61030f6000610a4a565b565b6103196109f0565b6001600160a01b03919091166000908152600660205260409020805460ff1916911515919091179055565b6003546000906bffffffffffffffffffffffff1680158061037d57506001600160a01b03831660009081526006602052604090205460ff165b1561038b5750600092915050565b600080600560009054906101000a90046001600160a01b03166001600160a01b0316630902f1ac6040518163ffffffff1660e01b815260040160606040518083038186803b1580156103dc57600080fd5b505afa1580156103f0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104149190611083565b506002546dffffffffffffffffffffffffffff92831694509116915060ff166104c457600480546040516385f8c25960e01b815291820185905260248201839052604482018490526001600160a01b0316906385f8c2599060640160206040518083038186803b15801561048757600080fd5b505afa15801561049b573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104bf91906110d3565b61054c565b600480546040516385f8c25960e01b815291820185905260248201849052604482018390526001600160a01b0316906385f8c2599060640160206040518083038186803b15801561051457600080fd5b505afa158015610528573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061054c91906110d3565b95945050505050565b61055d6109f0565b836001600160a01b0381163b61058657604051636f7c43f160e01b815260040160405180910390fd5b836001600160a01b0381163b6105af57604051636f7c43f160e01b815260040160405180910390fd5b6001600160a01b0383166105ef576040517fd92e233d00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600480546001600160a01b0380891673ffffffffffffffffffffffffffffffffffffffff1992831681178455600580548a84169416939093179092558516600160601b026bffffffffffffffffffffffff871617600355604080517fad5c46480000000000000000000000000000000000000000000000000000000081529051919263ad5c4648928282019260209290829003018186803b15801561069357600080fd5b505afa1580156106a7573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106cb9190610f5f565b6001600160a01b0316600560009054906101000a90046001600160a01b03166001600160a01b0316630dfe16816040518163ffffffff1660e01b815260040160206040518083038186803b15801561072257600080fd5b505afa158015610736573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061075a9190610f5f565b6002805460ff19166001600160a01b03928316939093149290921790915560035460408051898416815288841660208201526bffffffffffffffffffffffff881681830152600160601b909204909216606082015290517ff9cab2a68a157c313890992ad0c6c978f9d7b285387efc4660a87b0b3e5fab42916080908290030190a1505050505050565b6107ec6109f0565b6001600160a01b03811661086d5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f646472657373000000000000000000000000000000000000000000000000000060648201526084015b60405180910390fd5b61087681610a4a565b50565b600260015414156108cc5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610864565b600260015580610908576040517f1f2a200500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600061091386610aa7565b905060008686868660405161092790610f12565b6001600160a01b039094168452602084019290925260408301526060820152608001604051809103906000f080158015610965573d6000803e3d6000fd5b50905061097d6001600160a01b038816338386610c00565b604080516001600160a01b03838116825260208201899052918101879052606081018690526080810185905260a081018490529088169033907f99e05d8f62fab37c853b68e5007062534af351a94aef782baa8439ea29bb0a639060c00160405180910390a35050600180555050505050565b6000546001600160a01b0316331461030f5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610864565b600080546001600160a01b0383811673ffffffffffffffffffffffffffffffffffffffff19831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b600080610ab383610344565b905080610ac35750600092915050565b80341015610b7957600581610ad8348261117c565b610ae390606461115d565b610aed919061113b565b1115610b2e576040517ffdba93f100000000000000000000000000000000000000000000000000000000815260048101829052346024820152604401610864565b6003546040516001600160a01b03600160601b90920491909116903480156108fc02916000818181858888f19350505050158015610b70573d6000803e3d6000fd5b50349392505050565b600354604051600160601b9091046001600160a01b0316906108fc8315029083906000818181858888f19350505050158015610bb9573d6000803e3d6000fd5b5080341115610bfa57336108fc610bd0833461117c565b6040518115909202916000818181858888f19350505050158015610bf8573d6000803e3d6000fd5b505b92915050565b604080516001600160a01b0385811660248301528416604482015260648082018490528251808303909101815260849091019091526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167f23b872dd00000000000000000000000000000000000000000000000000000000179052610c88908590610c8e565b50505050565b6000610ce3826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316610d789092919063ffffffff16565b805190915015610d735780806020019051810190610d019190611066565b610d735760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f742073756363656564000000000000000000000000000000000000000000006064820152608401610864565b505050565b6060610d878484600085610d91565b90505b9392505050565b606082471015610e095760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60448201527f722063616c6c00000000000000000000000000000000000000000000000000006064820152608401610864565b6001600160a01b0385163b610e605760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610864565b600080866001600160a01b03168587604051610e7c91906110ec565b60006040518083038185875af1925050503d8060008114610eb9576040519150601f19603f3d011682016040523d82523d6000602084013e610ebe565b606091505b5091509150610ece828286610ed9565b979650505050505050565b60608315610ee8575081610d8a565b825115610ef85782518084602001fd5b8160405162461bcd60e51b81526004016108649190611108565b610be4806111f983390190565b80516dffffffffffffffffffffffffffff81168114610f3d57600080fd5b919050565b600060208284031215610f5457600080fd5b8135610d8a816111d5565b600060208284031215610f7157600080fd5b8151610d8a816111d5565b60008060008060808587031215610f9257600080fd5b8435610f9d816111d5565b93506020850135610fad816111d5565b925060408501356bffffffffffffffffffffffff81168114610fce57600080fd5b91506060850135610fde816111d5565b939692955090935050565b60008060408385031215610ffc57600080fd5b8235611007816111d5565b91506020830135611017816111ea565b809150509250929050565b600080600080600060a0868803121561103a57600080fd5b8535611045816111d5565b97602087013597506040870135966060810135965060800135945092505050565b60006020828403121561107857600080fd5b8151610d8a816111ea565b60008060006060848603121561109857600080fd5b6110a184610f1f565b92506110af60208501610f1f565b9150604084015163ffffffff811681146110c857600080fd5b809150509250925092565b6000602082840312156110e557600080fd5b5051919050565b600082516110fe818460208701611193565b9190910192915050565b6020815260008251806020840152611127816040850160208701611193565b601f01601f19169190910160400192915050565b60008261115857634e487b7160e01b600052601260045260246000fd5b500490565b6000816000190483118215151615611177576111776111bf565b500290565b60008282101561118e5761118e6111bf565b500390565b60005b838110156111ae578181015183820152602001611196565b83811115610c885750506000910152565b634e487b7160e01b600052601160045260246000fd5b6001600160a01b038116811461087657600080fd5b801515811461087657600080fdfe61010060405234801561001157600080fd5b50604051610be4380380610be483398101604081905261003091610092565b8082106100505760405163364dd21b60e21b815260040160405180910390fd5b8261006e576040516385ac2b9960e01b815260040160405180910390fd5b60609390931b6001600160601b03191660805260a09190915260c05260e0526100dd565b600080600080608085870312156100a857600080fd5b84516001600160a01b03811681146100bf57600080fd5b60208601516040870151606090970151919890975090945092505050565b60805160601c60a05160c05160e051610a9c61014860003960008181610130015281816103b4015261040001526000818160e90152818161035e0152818161039301526103db0152600081816087015261020701526000818161015701526102e80152610a9c6000f3fe608060405234801561001057600080fd5b506004361061007d5760003560e01c8063be9a65551161005b578063be9a6555146100e4578063c884ef831461010b578063efbe1c1c1461012b578063fc0c546a1461015257600080fd5b80632eb4a7ab146100825780633d13f874146100bc5780636f5244b1146100d1575b600080fd5b6100a97f000000000000000000000000000000000000000000000000000000000000000081565b6040519081526020015b60405180910390f35b6100cf6100ca366004610884565b610191565b005b6100a96100df36600461085a565b61035a565b6100a97f000000000000000000000000000000000000000000000000000000000000000081565b6100a961011936600461083f565b60006020819052908152604090205481565b6100a97f000000000000000000000000000000000000000000000000000000000000000081565b6101797f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b0390911681526020016100b3565b6040516bffffffffffffffffffffffff19606086901b166020820152603481018490526000906054016040516020818303038152906040528051906020012090506102328383808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152507f000000000000000000000000000000000000000000000000000000000000000092508591506104729050565b610268576040517f09bde33900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000610274868661035a565b9050806102ad576040517f969bf72800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6001600160a01b038616600090815260208190526040812080548392906102d590849061097f565b9091555061030f90506001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016878361048a565b856001600160a01b03167f47cee97cb7acd717b3c0aa1435d004cd5b3c8c57d70dbceb4e4458bbd60e39d48260405161034a91815260200190565b60405180910390a2505050505050565b60007f000000000000000000000000000000000000000000000000000000000000000042101561038c5750600061046c565b60006103d87f00000000000000000000000000000000000000000000000000000000000000007f00000000000000000000000000000000000000000000000000000000000000006109d8565b837f0000000000000000000000000000000000000000000000000000000000000000610424427f000000000000000000000000000000000000000000000000000000000000000061050f565b61042e91906109d8565b61043891906109b9565b6104429190610997565b6001600160a01b03851660009081526020819052604090205490915061046890826109d8565b9150505b92915050565b60008261047f8584610525565b1490505b9392505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fa9059cbb0000000000000000000000000000000000000000000000000000000017905261050a908490610572565b505050565b600081831061051e5781610483565b5090919050565b600081815b845181101561056a576105568286838151811061054957610549610a50565b602002602001015161065c565b91508061056281610a1f565b91505061052a565b509392505050565b60006105c7826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b031661068b9092919063ffffffff16565b80519091501561050a57808060200190518101906105e5919061090e565b61050a5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f7420737563636565640000000000000000000000000000000000000000000060648201526084015b60405180910390fd5b6000818310610678576000828152602084905260409020610483565b6000838152602083905260409020610483565b606061069a84846000856106a2565b949350505050565b60608247101561071a5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60448201527f722063616c6c00000000000000000000000000000000000000000000000000006064820152608401610653565b6001600160a01b0385163b6107715760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610653565b600080866001600160a01b0316858760405161078d9190610930565b60006040518083038185875af1925050503d80600081146107ca576040519150601f19603f3d011682016040523d82523d6000602084013e6107cf565b606091505b50915091506107df8282866107ea565b979650505050505050565b606083156107f9575081610483565b8251156108095782518084602001fd5b8160405162461bcd60e51b8152600401610653919061094c565b80356001600160a01b038116811461083a57600080fd5b919050565b60006020828403121561085157600080fd5b61048382610823565b6000806040838503121561086d57600080fd5b61087683610823565b946020939093013593505050565b6000806000806060858703121561089a57600080fd5b6108a385610823565b935060208501359250604085013567ffffffffffffffff808211156108c757600080fd5b818701915087601f8301126108db57600080fd5b8135818111156108ea57600080fd5b8860208260051b85010111156108ff57600080fd5b95989497505060200194505050565b60006020828403121561092057600080fd5b8151801515811461048357600080fd5b600082516109428184602087016109ef565b9190910192915050565b602081526000825180602084015261096b8160408501602087016109ef565b601f01601f19169190910160400192915050565b6000821982111561099257610992610a3a565b500190565b6000826109b457634e487b7160e01b600052601260045260246000fd5b500490565b60008160001904831182151516156109d3576109d3610a3a565b500290565b6000828210156109ea576109ea610a3a565b500390565b60005b83811015610a0a5781810151838201526020016109f2565b83811115610a19576000848401525b50505050565b6000600019821415610a3357610a33610a3a565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052603260045260246000fdfea2646970667358221220504305f4fc0979724b245f125798fcb250f4237dfc3c2c49a810824cce78fc2764736f6c63430008070033a2646970667358221220db546738b1433403ab953e0ba3880bc8a0e454540b43e3609b322ac9e845e65c64736f6c63430008070033

Deployed Bytecode Sourcemap

49229:3495:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;49545:45;;;;;;;;;;-1:-1:-1;49545:45:0;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;6136:14:1;;6129:22;6111:41;;6099:2;6084:18;49545:45:0;;;;;;;;49420:36;;;;;;;;;;-1:-1:-1;49420:36:0;;;;-1:-1:-1;;;49420:36:0;;-1:-1:-1;;;;;49420:36:0;;;;;;-1:-1:-1;;;;;3696:55:1;;;3678:74;;3666:2;3651:18;49420:36:0;3532:226:1;49353:30:0;;;;;;;;;;-1:-1:-1;49353:30:0;;;;;;;-1:-1:-1;;;;;49353:30:0;;;45747:103;;;;;;;;;;;;;:::i;:::-;;49507:31;;;;;;;;;;-1:-1:-1;49507:31:0;;;;-1:-1:-1;;;;;49507:31:0;;;45099:87;;;;;;;;;;-1:-1:-1;45145:7:0;45172:6;-1:-1:-1;;;;;45172:6:0;45099:87;;52587:134;;;;;;;;;;-1:-1:-1;52587:134:0;;;;;:::i;:::-;;:::i;52105:474::-;;;;;;;;;;-1:-1:-1;52105:474:0;;;;;:::i;:::-;;:::i;:::-;;;9513:25:1;;;9501:2;9486:18;52105:474:0;9367:177:1;49463:37:0;;;;;;;;;;-1:-1:-1;49463:37:0;;;;-1:-1:-1;;;;;49463:37:0;;;51463:634;;;;;;;;;;-1:-1:-1;51463:634:0;;;;;:::i;:::-;;:::i;49390:23::-;;;;;;;;;;-1:-1:-1;49390:23:0;;;;;;;;;;;10300:26:1;10288:39;;;10270:58;;10258:2;10243:18;49390:23:0;10126:208:1;49323:23:0;;;;;;;;;;-1:-1:-1;49323:23:0;;;;;;;;46005:201;;;;;;;;;;-1:-1:-1;46005:201:0;;;;;:::i;:::-;;:::i;50226:561::-;;;;;;:::i;:::-;;:::i;45747:103::-;44985:13;:11;:13::i;:::-;45812:30:::1;45839:1;45812:18;:30::i;:::-;45747:103::o:0;52587:134::-;44985:13;:11;:13::i;:::-;-1:-1:-1;;;;;52676:27:0;;;::::1;;::::0;;;:13:::1;:27;::::0;;;;:37;;-1:-1:-1;;52676:37:0::1;::::0;::::1;;::::0;;;::::1;::::0;;52587:134::o;52105:474::-;52203:9;;52162:7;;52203:9;;52227:15;;;:39;;-1:-1:-1;;;;;;52246:20:0;;;;;;:13;:20;;;;;;;;52227:39;52223:80;;;-1:-1:-1;52290:1:0;;52105:474;-1:-1:-1;;52105:474:0:o;52223:80::-;52316:16;52334;52356:9;;;;;;;;;-1:-1:-1;;;;;52356:9:0;-1:-1:-1;;;;;52356:21:0;;:23;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1;52410:11:0;;52315:64;;;;;-1:-1:-1;52315:64:0;;;-1:-1:-1;52410:11:0;;:161;;52516:11;;;:55;;-1:-1:-1;;;52516:55:0;;;;;10004:25:1;;;10045:18;;;10038:34;;;10088:18;;;10081:34;;;-1:-1:-1;;;;;52516:11:0;;:23;;9977:18:1;;52516:55:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;52410:161;;;52441:11;;;:55;;-1:-1:-1;;;52441:55:0;;;;;10004:25:1;;;10045:18;;;10038:34;;;10088:18;;;10081:34;;;-1:-1:-1;;;;;52441:11:0;;:23;;9977:18:1;;52441:55:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;52390:181;52105:474;-1:-1:-1;;;;;52105:474:0:o;51463:634::-;44985:13;:11;:13::i;:::-;51653:12;-1:-1:-1;;;;;50152:19:0;::::1;;50148:50;;50185:13;;-1:-1:-1::0;;;50185:13:0::1;;;;;;;;;;;50148:50;51680:10:::0;-1:-1:-1;;;;;50152:19:0;::::2;;50148:50;;50185:13;;-1:-1:-1::0;;;50185:13:0::2;;;;;;;;;;;50148:50;-1:-1:-1::0;;;;;51707:28:0;::::3;51703:54;;51744:13;;;;;;;;;;;;;;51703:54;51770:11;:46:::0;;-1:-1:-1;;;;;51770:46:0;;::::3;-1:-1:-1::0;;51770:46:0;;::::3;::::0;::::3;::::0;;51827:9:::3;:38:::0;;;;::::3;::::0;::::3;::::0;;;::::3;::::0;;;51911:30;::::3;-1:-1:-1::0;;;51911:30:0::3;51878:22;::::0;::::3;51911:30;51878:9;51911:30:::0;51990:18:::3;::::0;;;;;;;51770:46;;51990:16:::3;::::0;:18;;::::3;::::0;::::3;::::0;;;;;;;51770:46;51990:18;::::3;;::::0;::::3;;;;::::0;::::3;;;;;;;;;;;;::::0;::::3;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1::0;;;;;51968:40:0::3;:9;;;;;;;;;-1:-1:-1::0;;;;;51968:9:0::3;-1:-1:-1::0;;;;;51968:16:0::3;;:18;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::3;;;;;;;;;;;;::::0;::::3;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;51954:11;:54:::0;;-1:-1:-1;;51954:54:0::3;-1:-1:-1::0;;;;;51968:40:0;;::::3;::::0;;;::::3;51954:54:::0;;;::::3;::::0;;;52075:13:::3;::::0;52026:63:::3;::::0;;4730:15:1;;;4712:34;;4782:15;;;4777:2;4762:18;;4755:43;4846:26;4834:39;;4814:18;;;4807:67;-1:-1:-1;;;52075:13:0;;::::3;::::0;;::::3;4905:2:1::0;4890:18;;4883:43;52026:63:0;;::::3;::::0;4638:3:1;52026:63:0;;;;;;::::3;50209:1:::2;45009::::1;51463:634:::0;;;;:::o;46005:201::-;44985:13;:11;:13::i;:::-;-1:-1:-1;;;;;46094:22:0;::::1;46086:73;;;::::0;-1:-1:-1;;;46086:73:0;;7265:2:1;46086:73:0::1;::::0;::::1;7247:21:1::0;7304:2;7284:18;;;7277:30;7343:34;7323:18;;;7316:62;7414:8;7394:18;;;7387:36;7440:19;;46086:73:0::1;;;;;;;;;46170:28;46189:8;46170:18;:28::i;:::-;46005:201:::0;:::o;50226:561::-;48282:1;48880:7;;:19;;48872:63;;;;-1:-1:-1;;;48872:63:0;;9209:2:1;48872:63:0;;;9191:21:1;9248:2;9228:18;;;9221:30;9287:33;9267:18;;;9260:61;9338:18;;48872:63:0;9007:355:1;48872:63:0;48282:1;49013:7;:18;50430:16;50426:41:::1;;50455:12;;;;;;;;;;;;;;50426:41;50478:11;50492:17;50503:5;50492:10;:17::i;:::-;50478:31;;50522:15;50552:5;50559:10;50571:5;50578:3;50540:42;;;;;:::i;:::-;-1:-1:-1::0;;;;;5186:55:1;;;5168:74;;5273:2;5258:18;;5251:34;;;;5316:2;5301:18;;5294:34;5359:2;5344:18;;5337:34;5155:3;5140:19;50540:42:0::1;;;;;;;;;;;;;;;;::::0;::::1;;;;;-1:-1:-1::0;50522:60:0;-1:-1:-1;50595:73:0::1;-1:-1:-1::0;;;;;50595:30:0;::::1;50626:10;50522:60:::0;50656:11;50595:30:::1;:73::i;:::-;50686:93;::::0;;-1:-1:-1;;;;;5687:55:1;;;5669:74;;5774:2;5759:18;;5752:34;;;5802:18;;;5795:34;;;5860:2;5845:18;;5838:34;;;5903:3;5888:19;;5881:35;;;5947:3;5932:19;;5925:35;;;50686:93:0;;::::1;::::0;50701:10:::1;::::0;50686:93:::1;::::0;5656:3:1;5641:19;50686:93:0::1;;;;;;;-1:-1:-1::0;;48238:1:0;49192:22;;-1:-1:-1;;;;;50226:561:0:o;45264:132::-;45145:7;45172:6;-1:-1:-1;;;;;45172:6:0;43888:10;45328:23;45320:68;;;;-1:-1:-1;;;45320:68:0;;8079:2:1;45320:68:0;;;8061:21:1;;;8098:18;;;8091:30;8157:34;8137:18;;;8130:62;8209:18;;45320:68:0;7877:356:1;46366:191:0;46440:16;46459:6;;-1:-1:-1;;;;;46476:17:0;;;-1:-1:-1;;46476:17:0;;;;;;46509:40;;46459:6;;;;;;;46509:40;;46440:16;46509:40;46429:128;46366:191;:::o;50795:660::-;50848:7;50868:16;50887:18;50899:5;50887:11;:18::i;:::-;50868:37;-1:-1:-1;50920:13:0;50916:54;;-1:-1:-1;50957:1:0;;50795:660;-1:-1:-1;;50795:660:0:o;50916:54::-;50998:8;50986:9;:20;50982:278;;;51125:1;51114:8;51083:20;51094:9;51114:8;51083:20;:::i;:::-;51082:28;;51107:3;51082:28;:::i;:::-;51081:41;;;;:::i;:::-;:45;51077:88;;;51135:30;;;;;;;;9723:25:1;;;51155:9:0;9764:18:1;;;9757:34;9696:18;;51135:30:0;9549:248:1;51077:88:0;51182:13;;:33;;-1:-1:-1;;;;;;;;51182:13:0;;;;;;;;51205:9;51182:33;;;;;;;;;51205:9;51182:13;:33;;;;;;;;;;;;;;;;;;;;-1:-1:-1;51239:9:0;;50795:660;-1:-1:-1;;;50795:660:0:o;50982:278::-;51272:13;;:32;;-1:-1:-1;;;51272:13:0;;;-1:-1:-1;;;;;51272:13:0;;:32;;;;;;;;;;;;:13;:32;;;;;;;;;;;;;;;;;;;;;51333:8;51321:9;:20;51317:103;;;51366:10;51358:50;51387:20;51399:8;51387:9;:20;:::i;:::-;51358:50;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;51317:103;51439:8;50795:660;-1:-1:-1;;50795:660:0:o;20437:248::-;20608:68;;;-1:-1:-1;;;;;4291:15:1;;;20608:68:0;;;4273:34:1;4343:15;;4323:18;;;4316:43;4375:18;;;;4368:34;;;20608:68:0;;;;;;;;;;4185:18:1;;;;20608:68:0;;;;;;;;;;20631:27;20608:68;;;20581:96;;20601:5;;20581:19;:96::i;:::-;20437:248;;;;:::o;23285:716::-;23709:23;23735:69;23763:4;23735:69;;;;;;;;;;;;;;;;;23743:5;-1:-1:-1;;;;;23735:27:0;;;:69;;;;;:::i;:::-;23819:17;;23709:95;;-1:-1:-1;23819:21:0;23815:179;;23916:10;23905:30;;;;;;;;;;;;:::i;:::-;23897:85;;;;-1:-1:-1;;;23897:85:0;;8798:2:1;23897:85:0;;;8780:21:1;8837:2;8817:18;;;8810:30;8876:34;8856:18;;;8849:62;8947:12;8927:18;;;8920:40;8977:19;;23897:85:0;8596:406:1;23897:85:0;23355:646;23285:716;;:::o;15117:229::-;15254:12;15286:52;15308:6;15316:4;15322:1;15325:12;15286:21;:52::i;:::-;15279:59;;15117:229;;;;;;:::o;16237:510::-;16407:12;16465:5;16440:21;:30;;16432:81;;;;-1:-1:-1;;;16432:81:0;;7672:2:1;16432:81:0;;;7654:21:1;7711:2;7691:18;;;7684:30;7750:34;7730:18;;;7723:62;7821:8;7801:18;;;7794:36;7847:19;;16432:81:0;7470:402:1;16432:81:0;-1:-1:-1;;;;;12655:19:0;;;16524:60;;;;-1:-1:-1;;;16524:60:0;;8440:2:1;16524:60:0;;;8422:21:1;8479:2;8459:18;;;8452:30;8518:31;8498:18;;;8491:59;8567:18;;16524:60:0;8238:353:1;16524:60:0;16598:12;16612:23;16639:6;-1:-1:-1;;;;;16639:11:0;16658:5;16665:4;16639:31;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;16597:73;;;;16688:51;16705:7;16714:10;16726:12;16688:16;:51::i;:::-;16681:58;16237:510;-1:-1:-1;;;;;;;16237:510:0:o;18923:762::-;19073:12;19102:7;19098:580;;;-1:-1:-1;19133:10:0;19126:17;;19098:580;19247:17;;:21;19243:424;;19495:10;19489:17;19556:15;19543:10;19539:2;19535:19;19528:44;19243:424;19638:12;19631:20;;-1:-1:-1;;;19631:20:0;;;;;;;;:::i;-1:-1:-1:-;;;;;;;;:::o;14:188:1:-;93:13;;146:30;135:42;;125:53;;115:81;;192:1;189;182:12;115:81;14:188;;;:::o;207:247::-;266:6;319:2;307:9;298:7;294:23;290:32;287:52;;;335:1;332;325:12;287:52;374:9;361:23;393:31;418:5;393:31;:::i;459:251::-;529:6;582:2;570:9;561:7;557:23;553:32;550:52;;;598:1;595;588:12;550:52;630:9;624:16;649:31;674:5;649:31;:::i;715:726::-;808:6;816;824;832;885:3;873:9;864:7;860:23;856:33;853:53;;;902:1;899;892:12;853:53;941:9;928:23;960:31;985:5;960:31;:::i;:::-;1010:5;-1:-1:-1;1067:2:1;1052:18;;1039:32;1080:33;1039:32;1080:33;:::i;:::-;1132:7;-1:-1:-1;1191:2:1;1176:18;;1163:32;1239:26;1226:40;;1214:53;;1204:81;;1281:1;1278;1271:12;1204:81;1304:7;-1:-1:-1;1363:2:1;1348:18;;1335:32;1376:33;1335:32;1376:33;:::i;:::-;715:726;;;;-1:-1:-1;715:726:1;;-1:-1:-1;;715:726:1:o;1446:382::-;1511:6;1519;1572:2;1560:9;1551:7;1547:23;1543:32;1540:52;;;1588:1;1585;1578:12;1540:52;1627:9;1614:23;1646:31;1671:5;1646:31;:::i;:::-;1696:5;-1:-1:-1;1753:2:1;1738:18;;1725:32;1766:30;1725:32;1766:30;:::i;:::-;1815:7;1805:17;;;1446:382;;;;;:::o;1833:521::-;1928:6;1936;1944;1952;1960;2013:3;2001:9;1992:7;1988:23;1984:33;1981:53;;;2030:1;2027;2020:12;1981:53;2069:9;2056:23;2088:31;2113:5;2088:31;:::i;:::-;2138:5;2190:2;2175:18;;2162:32;;-1:-1:-1;2241:2:1;2226:18;;2213:32;;2292:2;2277:18;;2264:32;;-1:-1:-1;2343:3:1;2328:19;2315:33;;-1:-1:-1;1833:521:1;-1:-1:-1;;;1833:521:1:o;2359:245::-;2426:6;2479:2;2467:9;2458:7;2454:23;2450:32;2447:52;;;2495:1;2492;2485:12;2447:52;2527:9;2521:16;2546:28;2568:5;2546:28;:::i;2609:450::-;2696:6;2704;2712;2765:2;2753:9;2744:7;2740:23;2736:32;2733:52;;;2781:1;2778;2771:12;2733:52;2804:40;2834:9;2804:40;:::i;:::-;2794:50;;2863:49;2908:2;2897:9;2893:18;2863:49;:::i;:::-;2853:59;;2955:2;2944:9;2940:18;2934:25;2999:10;2992:5;2988:22;2981:5;2978:33;2968:61;;3025:1;3022;3015:12;2968:61;3048:5;3038:15;;;2609:450;;;;;:::o;3064:184::-;3134:6;3187:2;3175:9;3166:7;3162:23;3158:32;3155:52;;;3203:1;3200;3193:12;3155:52;-1:-1:-1;3226:16:1;;3064:184;-1:-1:-1;3064:184:1:o;3253:274::-;3382:3;3420:6;3414:13;3436:53;3482:6;3477:3;3470:4;3462:6;3458:17;3436:53;:::i;:::-;3505:16;;;;;3253:274;-1:-1:-1;;3253:274:1:o;6675:383::-;6824:2;6813:9;6806:21;6787:4;6856:6;6850:13;6899:6;6894:2;6883:9;6879:18;6872:34;6915:66;6974:6;6969:2;6958:9;6954:18;6949:2;6941:6;6937:15;6915:66;:::i;:::-;7042:2;7021:15;-1:-1:-1;;7017:29:1;7002:45;;;;7049:2;6998:54;;6675:383;-1:-1:-1;;6675:383:1:o;10339:274::-;10379:1;10405;10395:189;;-1:-1:-1;;;10437:1:1;10430:88;10541:4;10538:1;10531:15;10569:4;10566:1;10559:15;10395:189;-1:-1:-1;10598:9:1;;10339:274::o;10618:168::-;10658:7;10724:1;10720;10716:6;10712:14;10709:1;10706:21;10701:1;10694:9;10687:17;10683:45;10680:71;;;10731:18;;:::i;:::-;-1:-1:-1;10771:9:1;;10618:168::o;10791:125::-;10831:4;10859:1;10856;10853:8;10850:34;;;10864:18;;:::i;:::-;-1:-1:-1;10901:9:1;;10791:125::o;10921:258::-;10993:1;11003:113;11017:6;11014:1;11011:13;11003:113;;;11093:11;;;11087:18;11074:11;;;11067:39;11039:2;11032:10;11003:113;;;11134:6;11131:1;11128:13;11125:48;;;-1:-1:-1;;11169:1:1;11151:16;;11144:27;10921:258::o;11184:184::-;-1:-1:-1;;;11233:1:1;11226:88;11333:4;11330:1;11323:15;11357:4;11354:1;11347:15;11373:154;-1:-1:-1;;;;;11452:5:1;11448:54;11441:5;11438:65;11428:93;;11517:1;11514;11507:12;11532:118;11618:5;11611:13;11604:21;11597:5;11594:32;11584:60;;11640:1;11637;11630:12

Swarm Source

ipfs://db546738b1433403ab953e0ba3880bc8a0e454540b43e3609b322ac9e845e65c

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading
Loading...
Loading
[ Download: CSV Export  ]
[ 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.