ETH Price: $1,959.38 (-0.74%)
 

Overview

ETH Balance

10.139461094127572699 ETH

Eth Value

$19,867.01 (@ $1,959.38/ETH)

More Info

Private Name Tags

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Withdraw220859632025-03-20 5:23:59339 days ago1742448239IN
MyōbuChef : Staking Contract
0 ETH0.000048570.89310184
Withdraw220859562025-03-20 5:22:35339 days ago1742448155IN
MyōbuChef : Staking Contract
0 ETH0.000050570.93000422
Withdraw220859152025-03-20 5:14:23339 days ago1742447663IN
MyōbuChef : Staking Contract
0 ETH0.000050490.92852637
Withdraw220858982025-03-20 5:10:59339 days ago1742447459IN
MyōbuChef : Staking Contract
0 ETH0.000050030.92003592
Withdraw220858812025-03-20 5:07:35339 days ago1742447255IN
MyōbuChef : Staking Contract
0 ETH0.000048420.89037352
Emergency Withdr...220858052025-03-20 4:52:11339 days ago1742446331IN
MyōbuChef : Staking Contract
0 ETH0.000012130.42109844
Deposit194056042024-03-10 15:31:23714 days ago1710084683IN
MyōbuChef : Staking Contract
0 ETH0.0015292169.50970483
Deposit191661562024-02-06 2:14:35747 days ago1707185675IN
MyōbuChef : Staking Contract
0 ETH0.0005789926.31810805
Withdraw191661542024-02-06 2:14:11747 days ago1707185651IN
MyōbuChef : Staking Contract
0 ETH0.0004776121.70992437
Deposit186500102023-11-25 16:50:23820 days ago1700931023IN
MyōbuChef : Staking Contract
0 ETH0.0015716431.38392184
Deposit186499952023-11-25 16:47:23820 days ago1700930843IN
MyōbuChef : Staking Contract
0 ETH0.0011234432.09852043
Deposit186499742023-11-25 16:43:11820 days ago1700930591IN
MyōbuChef : Staking Contract
0 ETH0.0006941831.55392513
Withdraw185697142023-11-14 11:01:47831 days ago1699959707IN
MyōbuChef : Staking Contract
0 ETH0.000855138.86855235
Withdraw185688782023-11-14 8:14:11831 days ago1699949651IN
MyōbuChef : Staking Contract
0 ETH0.0014161835.40471474
Deposit185688642023-11-14 8:10:59831 days ago1699949459IN
MyōbuChef : Staking Contract
0 ETH0.0006642230.1920228
Withdraw185677522023-11-14 4:27:59831 days ago1699936079IN
MyōbuChef : Staking Contract
0 ETH0.0024907645.79958994
Withdraw185677442023-11-14 4:26:23831 days ago1699935983IN
MyōbuChef : Staking Contract
0 ETH0.0014082325.89429763
Withdraw185677382023-11-14 4:24:59831 days ago1699935899IN
MyōbuChef : Staking Contract
0 ETH0.0013815725.40401636
Withdraw185677332023-11-14 4:23:59831 days ago1699935839IN
MyōbuChef : Staking Contract
0 ETH0.0005663125.74142215
Withdraw185677302023-11-14 4:23:23831 days ago1699935803IN
MyōbuChef : Staking Contract
0 ETH0.000564825.67273443
Withdraw185677252023-11-14 4:22:23831 days ago1699935743IN
MyōbuChef : Staking Contract
0 ETH0.0006464529.384373
Withdraw185677222023-11-14 4:21:47831 days ago1699935707IN
MyōbuChef : Staking Contract
0 ETH0.0005952327.05629987
Withdraw185677192023-11-14 4:21:11831 days ago1699935671IN
MyōbuChef : Staking Contract
0 ETH0.0005689925.86351862
Withdraw185677162023-11-14 4:20:35831 days ago1699935635IN
MyōbuChef : Staking Contract
0 ETH0.0005637925.62705585
Withdraw185677142023-11-14 4:20:11831 days ago1699935611IN
MyōbuChef : Staking Contract
0 ETH0.0005753626.15288279
View all transactions

Latest 25 internal transactions (View All)

Advanced mode:
Parent Transaction Hash Method Block
From
To
Transfer*204418902024-08-02 15:55:35569 days ago1722614135
MyōbuChef : Staking Contract
0.17260614 ETH
Transfer*172550482023-05-14 2:01:111015 days ago1684029671
MyōbuChef : Staking Contract
0.02296497 ETH
Transfer*171767532023-05-03 0:50:111026 days ago1683075011
MyōbuChef : Staking Contract
0.02924629 ETH
Transfer*171060362023-04-23 2:26:471036 days ago1682216807
MyōbuChef : Staking Contract
0.03856058 ETH
Transfer*170290712023-04-12 2:48:471047 days ago1681267727
MyōbuChef : Staking Contract
0.02297193 ETH
Transfer*169385172023-03-30 7:15:591060 days ago1680160559
MyōbuChef : Staking Contract
0.02219791 ETH
Transfer*168607732023-03-19 9:07:471071 days ago1679216867
MyōbuChef : Staking Contract
0.00198253 ETH
Transfer167725302023-03-06 23:19:591083 days ago1678144799
MyōbuChef : Staking Contract
0.00296415 ETH
Transfer167576152023-03-04 21:02:111086 days ago1677963731
MyōbuChef : Staking Contract
0.00297264 ETH
Transfer*167168372023-02-27 3:24:111091 days ago1677468251
MyōbuChef : Staking Contract
0.00099581 ETH
Transfer166951982023-02-24 2:18:471094 days ago1677205127
MyōbuChef : Staking Contract
0.04017883 ETH
Transfer*166413312023-02-16 12:36:351102 days ago1676550995
MyōbuChef : Staking Contract
0.01279773 ETH
Transfer166090772023-02-12 0:23:591106 days ago1676161439
MyōbuChef : Staking Contract
0.02060257 ETH
Transfer165885162023-02-09 3:28:471109 days ago1675913327
MyōbuChef : Staking Contract
0.01291958 ETH
Transfer165777552023-02-07 15:20:111111 days ago1675783211
MyōbuChef : Staking Contract
0.11138761 ETH
Transfer*165697462023-02-06 12:28:231112 days ago1675686503
MyōbuChef : Staking Contract
0.06482113 ETH
Transfer165156292023-01-29 23:02:231119 days ago1675033343
MyōbuChef : Staking Contract
0.22697253 ETH
Transfer165156072023-01-29 22:57:471120 days ago1675033067
MyōbuChef : Staking Contract
0.14596805 ETH
Transfer165155192023-01-29 22:39:591120 days ago1675031999
MyōbuChef : Staking Contract
0.14334953 ETH
Transfer*164978382023-01-27 11:25:231122 days ago1674818723
MyōbuChef : Staking Contract
0.14353442 ETH
Transfer164662962023-01-23 1:44:111126 days ago1674438251
MyōbuChef : Staking Contract
0.01450019 ETH
Transfer164662932023-01-23 1:43:351126 days ago1674438215
MyōbuChef : Staking Contract
0.01536267 ETH
Transfer164654742023-01-22 22:58:351127 days ago1674428315
MyōbuChef : Staking Contract
0.01845786 ETH
Transfer*164317252023-01-18 5:53:471131 days ago1674021227
MyōbuChef : Staking Contract
0.11283104 ETH
Transfer164224382023-01-16 22:48:471133 days ago1673909327
MyōbuChef : Staking Contract
0.04521798 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:
MyobuChef

Compiler Version
v0.8.10+commit.fc410830

Optimization Enabled:
Yes with 20000 runs

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

//Address (https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/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
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize, which returns 0 for contracts in
        // construction, since the code is only stored at the end of the
        // constructor execution.

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}
// Context (https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/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;
    }
}

// Ownable (https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/access/Ownable.sol)

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

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

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

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

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

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

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

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



// ReentrancyGuard (https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/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;
    }
}
								//
// IERC20 (https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/token/ERC20/IERC20.sol)
/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @dev Returns the amount of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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


// IMyobu 
interface IMyobu is IERC20 {
    event DAOChanged(address newDAOContract);
    event MyobuSwapChanged(address newMyobuSwap);

    function DAO() external view returns (address); // solhint-disable-line

    function myobuSwap() external view returns (address);

    event TaxAddressChanged(address newTaxAddress);
    event TaxedTransferAddedFor(address[] addresses);
    event TaxedTransferRemovedFor(address[] addresses);

    event FeesTaken(uint256 teamFee);
    event FeesChanged(Fees newFees);

    struct Fees {
        uint256 impact;
        uint256 buyFee;
        uint256 sellFee;
        uint256 transferFee;
    }

    function currentFees() external view returns (Fees memory);

    struct LiquidityETHParams {
        address pair;
        address to;
        uint256 amountTokenOrLP;
        uint256 amountTokenMin;
        uint256 amountETHMin;
        uint256 deadline;
    }

    event LiquidityAddedETH(
        address pair,
        uint256 amountToken,
        uint256 amountETH,
        uint256 liquidity
    );

    function noFeeAddLiquidityETH(LiquidityETHParams calldata params)
        external
        payable
        returns (
            uint256 amountToken,
            uint256 amountETH,
            uint256 liquidity
        );


    function taxedPair(address pair) external view returns (bool);
} 
interface IRewardToken is IERC20 {

function mint(uint256 amount) external returns(bool);

}
// IERC165(https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/utils/introspection/IERC165.sol)

/**
 * @dev Interface of the ERC165 standard, as defined in the
 * https://eips.ethereum.org/EIPS/eip-165[EIP].
 *
 * Implementers can declare support of contract interfaces, which can then be
 * queried by others ({ERC165Checker}).
 *
 * For an implementation, see {ERC165}.
 */
interface IERC165 {
    /**
     * @dev Returns true if this contract implements the interface defined by
     * `interfaceId`. See the corresponding
     * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section]
     * to learn more about how these ids are created.
     *
     * This function call must use less than 30 000 gas.
     */
    function supportsInterface(bytes4 interfaceId) external view returns (bool);
}

// IERC721(https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/token/ERC721/IERC721.sol)
interface IERC721 is IERC165 {
    /**
     * @dev Emitted when `tokenId` token is transferred from `from` to `to`.
     */
    event Transfer(address indexed from, address indexed to, uint256 indexed tokenId);

    /**
     * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token.
     */
    event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId);

    /**
     * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets.
     */
    event ApprovalForAll(address indexed owner, address indexed operator, bool approved);

    /**
     * @dev Returns the number of tokens in ``owner``'s account.
     */
    function balanceOf(address owner) external view returns (uint256 balance);

    /**
     * @dev Returns the owner of the `tokenId` token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function ownerOf(uint256 tokenId) external view returns (address owner);

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients
     * are aware of the ERC721 protocol to prevent tokens from being forever locked.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function safeTransferFrom(address from, address to, uint256 tokenId) external;

    /**
     * @dev Transfers `tokenId` token from `from` to `to`.
     *
     * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must be owned by `from`.
     * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(address from, address to, uint256 tokenId) external;

    /**
     * @dev Gives permission to `to` to transfer `tokenId` token to another account.
     * The approval is cleared when the token is transferred.
     *
     * Only a single account can be approved at a time, so approving the zero address clears previous approvals.
     *
     * Requirements:
     *
     * - The caller must own the token or be an approved operator.
     * - `tokenId` must exist.
     *
     * Emits an {Approval} event.
     */
    function approve(address to, uint256 tokenId) external;

    /**
     * @dev Returns the account approved for `tokenId` token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function getApproved(uint256 tokenId) external view returns (address operator);

    /**
     * @dev Approve or remove `operator` as an operator for the caller.
     * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller.
     *
     * Requirements:
     *
     * - The `operator` cannot be the caller.
     *
     * Emits an {ApprovalForAll} event.
     */
    function setApprovalForAll(address operator, bool _approved) external;

    /**
     * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`.
     *
     * See {setApprovalForAll}
     */
    function isApprovedForAll(address owner, address operator) external view returns (bool);

    /**
      * @dev Safely transfers `tokenId` token from `from` to `to`.
      *
      * Requirements:
      *
      * - `from` cannot be the zero address.
      * - `to` cannot be the zero address.
      * - `tokenId` token must exist and be owned by `from`.
      * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
      * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
      *
      * Emits a {Transfer} event.
      */
    function safeTransferFrom(address from, address to, uint256 tokenId, bytes calldata data) external;

}
// IERC721Receiver(https://github.com/binodnp/openzeppelin-solidity/blob/master/contracts/token/ERC721/IERC721Receiver.sol)

/**
 * @title ERC721 token receiver interface
 * @dev Interface for any contract that wants to support safeTransfers
 * from ERC721 asset contracts.
 */
interface IERC721Receiver {
    /**
     * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom}
     * by `operator` from `from`, this function is called.
     *
     * It must return its Solidity selector to confirm the token transfer.
     * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted.
     *
     * The selector can be obtained in Solidity with `IERC721.onERC721Received.selector`.
     */
    function onERC721Received(address operator, address from, uint256 tokenId, bytes calldata data) external returns (bytes4);
}

// ERC721Holder (https://github.com/binodnp/openzeppelin-solidity/blob/master/contracts/token/ERC721/ERC721Holder.sol)

  /**
   * @dev Implementation of the {IERC721Receiver} interface.
   *
   * Accepts all token transfers.
   * Make sure the contract is able to use its token with {IERC721-safeTransferFrom}, {IERC721-approve} or {IERC721-setApprovalForAll}.
   */
  
contract ERC721Holder is IERC721Receiver {

    /**
     * @dev See {IERC721Receiver-onERC721Received}.
     *
     * Always returns `IERC721Receiver.onERC721Received.selector`.
     */
    function onERC721Received(address, address, uint256, bytes memory) public virtual override returns (bytes4) {
        return this.onERC721Received.selector;
    }
}

interface INFT is IERC721 {
	function getMultiplierForTokenID(uint256 _tokenID) external view returns (uint256);
}
// IUniswapV2Router01 (https://github.com/Uniswap/v2-periphery/blob/master/contracts/UniswapV2Router01.sol)
interface IUniswapV2Router01 {
    function factory() external pure returns (address);
    function WETH() external pure returns (address);

    function addLiquidity(
        address tokenA,
        address tokenB,
        uint amountADesired,
        uint amountBDesired,
        uint amountAMin,
        uint amountBMin,
        address to,
        uint deadline
    ) external returns (uint amountA, uint amountB, uint liquidity);
    function addLiquidityETH(
        address token,
        uint amountTokenDesired,
        uint amountTokenMin,
        uint amountETHMin,
        address to,
        uint deadline
    ) external payable returns (uint amountToken, uint amountETH, uint liquidity);
    function removeLiquidity(
        address tokenA,
        address tokenB,
        uint liquidity,
        uint amountAMin,
        uint amountBMin,
        address to,
        uint deadline
    ) external returns (uint amountA, uint amountB);
    function removeLiquidityETH(
        address token,
        uint liquidity,
        uint amountTokenMin,
        uint amountETHMin,
        address to,
        uint deadline
    ) external returns (uint amountToken, uint amountETH);
    function removeLiquidityWithPermit(
        address tokenA,
        address tokenB,
        uint liquidity,
        uint amountAMin,
        uint amountBMin,
        address to,
        uint deadline,
        bool approveMax, uint8 v, bytes32 r, bytes32 s
    ) external returns (uint amountA, uint amountB);
    function removeLiquidityETHWithPermit(
        address token,
        uint liquidity,
        uint amountTokenMin,
        uint amountETHMin,
        address to,
        uint deadline,
        bool approveMax, uint8 v, bytes32 r, bytes32 s
    ) external returns (uint amountToken, uint amountETH);
    function swapExactTokensForTokens(
        uint amountIn,
        uint amountOutMin,
        address[] calldata path,
        address to,
        uint deadline
    ) external returns (uint[] memory amounts);
    function swapTokensForExactTokens(
        uint amountOut,
        uint amountInMax,
        address[] calldata path,
        address to,
        uint deadline
    ) external returns (uint[] memory amounts);
    function swapExactETHForTokens(uint amountOutMin, address[] calldata path, address to, uint deadline)
        external
        payable
        returns (uint[] memory amounts);
    function swapTokensForExactETH(uint amountOut, uint amountInMax, address[] calldata path, address to, uint deadline)
        external
        returns (uint[] memory amounts);
    function swapExactTokensForETH(uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline)
        external
        returns (uint[] memory amounts);
    function swapETHForExactTokens(uint amountOut, address[] calldata path, address to, uint deadline)
        external
        payable
        returns (uint[] memory amounts);

    function quote(uint amountA, uint reserveA, uint reserveB) external pure returns (uint amountB);
    function getAmountOut(uint amountIn, uint reserveIn, uint reserveOut) external pure returns (uint amountOut);
    function getAmountIn(uint amountOut, uint reserveIn, uint reserveOut) external pure returns (uint amountIn);
    function getAmountsOut(uint amountIn, address[] calldata path) external view returns (uint[] memory amounts);
    function getAmountsIn(uint amountOut, address[] calldata path) external view returns (uint[] memory amounts);
}

// IUniswapV2Router02 (https://github.com/Uniswap/v2-periphery/blob/master/contracts/UniswapV2Router02.sol)
interface IUniswapV2Router02 is IUniswapV2Router01 {
    function removeLiquidityETHSupportingFeeOnTransferTokens(
        address token,
        uint liquidity,
        uint amountTokenMin,
        uint amountETHMin,
        address to,
        uint deadline
    ) external returns (uint amountETH);
    function removeLiquidityETHWithPermitSupportingFeeOnTransferTokens(
        address token,
        uint liquidity,
        uint amountTokenMin,
        uint amountETHMin,
        address to,
        uint deadline,
        bool approveMax, uint8 v, bytes32 r, bytes32 s
    ) external returns (uint amountETH);

    function swapExactTokensForTokensSupportingFeeOnTransferTokens(
        uint amountIn,
        uint amountOutMin,
        address[] calldata path,
        address to,
        uint deadline
    ) external;
    function swapExactETHForTokensSupportingFeeOnTransferTokens(
        uint amountOutMin,
        address[] calldata path,
        address to,
        uint deadline
    ) external payable;
    function swapExactTokensForETHSupportingFeeOnTransferTokens(
        uint amountIn,
        uint amountOutMin,
        address[] calldata path,
        address to,
        uint deadline
    ) external;
}

// Staking contract (this is forked, rewritten for 0.8.x, gas optimized and functionally modified from GooseDefi's MasterchefV2, codebase is battle tested countless times and is totally safe).
// You're free to publish, distribute and modify a copy of this contract as you want. Please mention where it's from though. 
// Have fun reading it :) ( Original contract : https://github.com/goosedefi/goose-contracts/blob/master/contracts/MasterChefV2.sol). 
// RWT is a placeholder name for the upcoming reward token
contract MyobuChef is Ownable, ReentrancyGuard, ERC721Holder {
    using SafeERC20 for IERC20;
	
    // Info of each user.
    struct UserInfo {
        uint16 boostPointsBP;	    // The NFT multiplier. 
        uint16 lockTimeBoost;          // the lock time boost, max is x3
        uint32 lockedUntil;         // lock end in UNIX seconds, used to compute the lockTimeBoost
        uint96 claimableRWT;
		uint96 claimableETH;
        uint112 amount;             // How many LP tokens the user has provided.
        uint112 weightedBalance;    // amount * boostPointsBP * lockTimeBoost
        uint112 rewardDebt;		    // Reward debt. See explanation below.
		uint112 ETHrewardDebt;
        address[] NFTContracts;         // Trackers for NFT tokens staked 
        uint[] NFTTokenIDs;              
        //
        // We do some fancy math here. Basically, any point in time, the amount of RWTs and ETH 
        // entitled to a user but is pending to be distributed is:
		//  weightedBalance = (user.amount * (1000+boostPointsBP * 1000+lockTimeBoost)) / 1000000
        //   pending RWT reward = ((user.weightedBalance * pool.accRwtPerShare) - user.rewardDebt)
        //	 pending ETH rewards = 	(user.amount * pool.accETHPerShare) - user.ETHrewardDebt		
        // Whenever a user deposits or withdraws LP tokens to a pool. Here's what happens:
        //   1. The pool's `accEggPerShare` (and `lastRewardBlock`) gets updated.
        //   2. User receives the pending reward sent to his/her address.
        //   3. User's `amount` gets updated.
        //   4. User's `rewardDebt` gets updated.
    }
    // Info of each pool.
    struct PoolInfo {
        IERC20 lpToken;             // Address of LP token contract.
        uint64 allocPoint;          // How many allocation points assigned to this pool. EGGs to distribute per block.
        uint64 lastRewardBlock;     // Last block number that rewards distribution occurs.
        uint112 accRwtPerShare;     // Accumulated RWTs per share, times 1e12.
        uint112 accETHPerShare;     // Accumulated ETH rewards  per share, times 1e12. 
		uint112 weightedBalance;    // The total of all weightedBalances from users. 
    }

  
    // The Myobu token
    IMyobu public Myobu;
	// The reward token 
	IRewardToken public rwt;
	// The uniswap V2 router
	address public router;
	// The WETH token contract
	address public WETH;
	// The ETHBank address
	address public ETHBank;
	// The boost nft contracts 
	mapping (address => bool) public isNFTContract;
    // RWT tokens created per block.
    uint256 public rwtPerBlock;
    // ETH distributed per block 
	uint256 public ETHPerBlock;
	// ETH not distributed yet (should be address(this).balance - ETHLeftUnclaimed)
	uint256 public ETHLeftUnshared;
	// ETH distributed  but not claimed yet 
	uint256 public ETHLeftUnclaimed;
    // Days 
    uint256 public numdays;
    // Info of each pool.
    PoolInfo[] public poolInfo;
    // Info of each user that stakes LP tokens.
    mapping(uint256 => mapping(address => UserInfo)) public userInfo;
    // Total allocation points. Must be the sum of all allocation points in all pools.
    uint256 public totalAllocPoint;
    // The block number when the farm starts mining starts.
    uint256 public startBlock;
	// Has the secondary reward token been released yet? 
	bool public tokenReleased;
	bool public isEmergency;
	event RewardTokenSet(address indexed tokenAddress, uint256 indexed rwtPerBlock, uint256 timestamp);
    event Deposit(address indexed user, uint256 indexed pid, uint256 amount);
    event Withdraw(address indexed user, uint256 indexed pid, uint256 amount);
    event EmergencyWithdraw(address indexed user, uint256 indexed pid, uint256 amount);
    event UpdateEmissionRate(address indexed user, uint256 rwtPerBlock);
	event NFTStaked(address indexed user, address indexed NFTContract, uint256 tokenID);
	event NFTWithdrawn(address indexed user, address indexed NFTContract, uint256 tokenID);
	event TokensLocked(address indexed user, uint256 timestamp, uint256 lockTime);
	event Emergency(uint256 timestamp, bool ifEmergency);
    mapping(IERC20 => bool) public poolExistence;
    modifier nonDuplicated(IERC20 _lpToken) {
        require(poolExistence[_lpToken] == false, "nonDuplicated: duplicated");
        _;
    }
    
    modifier onlyEmergency {
        require(isEmergency == true, "onlyEmergency: Emergency use only!");
        _;
    }
    mapping(address => bool) public authorized;
    modifier onlyAuthorized {
        require(authorized[msg.sender] == true, "onlyAuthorized: address not authorized");
        _;
    }
    constructor(
        IMyobu _myo,
		address _router
    ) {
        Myobu = _myo;
        router = _router;
		WETH = IUniswapV2Router02(router).WETH();
		startBlock = type(uint256).max;
        numdays = 1;
    }

//--------------------------------------------------------VIEW FUNCTIONS --------------------------------------------------------
    // Return number of pools
	function poolLength() external view returns (uint256) {
        return poolInfo.length;
    }
    // Return reward multiplier over the given _from to _to block.
    function getMultiplier(uint256 _from, uint256 _to) public pure returns (uint256) {
        return (_to - _from);
    }

    // View function to see pending rewards (RWT and ETH) on frontend.
    function pendingRewards(uint256 _pid, address _user) external view returns (uint256, uint256) {
        PoolInfo storage pool = poolInfo[_pid];
        UserInfo storage user = userInfo[_pid][_user];
        uint256 userWeightedAmount = user.weightedBalance;
        uint256 accRwtPerShare = pool.accRwtPerShare;
        uint256 accETHPerShare = pool.accETHPerShare;
        uint256 weightedBalance = pool.weightedBalance;
        uint256 PendingRWT;
        uint256 PendingETH;
        if (block.number > pool.lastRewardBlock && weightedBalance != 0) {
            uint256 multiplier = getMultiplier(pool.lastRewardBlock, block.number);
            uint256 rwtReward = multiplier * rwtPerBlock * pool.allocPoint / totalAllocPoint;
            accRwtPerShare = accRwtPerShare + rwtReward * 1e12 / weightedBalance;
            uint256 ETHReward = multiplier * ETHPerBlock * pool.allocPoint / totalAllocPoint;
            accETHPerShare = accETHPerShare + ETHReward * 1e12 / weightedBalance;
            PendingRWT = (userWeightedAmount * accRwtPerShare / 1e12) - user.rewardDebt + user.claimableRWT;
            PendingETH = (userWeightedAmount * accETHPerShare / 1e12) - user.ETHrewardDebt + user.claimableETH;
        }
        return(PendingRWT, PendingETH);
    }


//--------------------------------------------------------PUBLIC FUNCTIONS --------------------------------------------------------
    // Update reward variables for all pools. Be careful of gas spending!
    function massUpdatePools() public {
        uint256 length = poolInfo.length;
        for (uint256 pid = 0; pid < length; ++pid) {
            updatePool(pid);
        }
    }
    
	//Receive ETH from the tax splitter contract. triggered on a walue transfer with .call("arbitraryData").
    fallback() external payable {
        ETHLeftUnshared += msg.value;
        updateETHRewards();
    }
	//Receive ETH sent through .send, .transfer, or .call(""). These wont be taken into account in the rewards. 
    receive() external payable {
        require(msg.sender != ETHBank);
    }
    
    // Update reward variables of the given pool to be up-to-date.
    function updatePool(uint256 _pid) public {
        PoolInfo storage pool = poolInfo[_pid];
        if (block.number <= pool.lastRewardBlock) {
            return;
        }
        uint256 lpSupply = pool.weightedBalance;
        if (lpSupply == 0 || pool.allocPoint == 0) {
            pool.lastRewardBlock = uint64(block.number);
            return;
        }
        uint256 multiplier = getMultiplier(pool.lastRewardBlock, block.number);
        if(tokenReleased) {
            uint256 rwtReward = multiplier * rwtPerBlock * pool.allocPoint / totalAllocPoint;
            pool.accRwtPerShare = uint112(pool.accRwtPerShare + rwtReward * 1e12 / lpSupply);
        }
        uint256 ETHReward = multiplier * ETHPerBlock * pool.allocPoint / totalAllocPoint;
        ETHLeftUnclaimed = ETHLeftUnclaimed + ETHReward;
        ETHLeftUnshared = ETHLeftUnshared - ETHReward;
        pool.accETHPerShare = uint112(pool.accETHPerShare + ETHReward * 1e12 / lpSupply);
        pool.lastRewardBlock = uint64(block.number);
    }

    // Deposit tokens for rewards.
    function deposit(uint256 _pid, uint256 _amount, uint256 lockTime) public nonReentrant {
        _deposit(msg.sender, _pid, _amount, lockTime);
    }
    // Withdraw unlocked tokens.
    function withdraw(uint32 _pid, uint256 _amount) public nonReentrant {
        PoolInfo storage pool = poolInfo[_pid];
        UserInfo storage user = userInfo[_pid][msg.sender];
        require(user.lockedUntil < block.timestamp, "withdraw: Tokens locked, if you're trying to claim your rewards use the deposit function");
        require(user.amount >= _amount && _amount > 0, "withdraw: not good");
        updatePool(_pid);
        if (user.weightedBalance > 0){
            _addToClaimable(_pid, msg.sender);
            if(tokenReleased) {
                if (user.claimableRWT > 0) {
                    safeRWTTransfer(msg.sender, user.claimableRWT);
                    user.claimableRWT = 0;
                }
            }
            if (user.claimableETH > 0) { 
                safeETHTransfer(msg.sender, user.claimableETH);
                user.claimableETH = 0;
            }
        }
        user.amount = uint112(user.amount - _amount);
        pool.lpToken.safeTransfer(address(msg.sender), _amount);
        updateUserWeightedBalance(_pid, msg.sender);

        emit Withdraw(msg.sender, _pid, _amount);
    }
    
    // Withdraw unlocked tokens without caring about rewards. EMERGENCY ONLY.
    function emergencyWithdraw(uint256 _pid) public nonReentrant onlyEmergency {
        PoolInfo storage pool = poolInfo[_pid];
        UserInfo storage user = userInfo[_pid][msg.sender];
        uint256 amount = user.amount;
        pool.weightedBalance -= user.weightedBalance;
        user.amount = 0;
        user.weightedBalance = 0;
        user.ETHrewardDebt = 0;
        user.rewardDebt = 0;
        user.claimableETH = 0;
        user.claimableRWT = 0;
        pool.lpToken.safeTransfer(address(msg.sender), amount);
        emit EmergencyWithdraw(msg.sender, _pid, amount);
    }
	
	
	//Adds Myobu/ETH liquidity without transfer fees and stakes the amount. Refund any unspent ETH to the user.
    
	//@dev The Myobu/ETH pool MUST be pool 0
    function addLiquidityNoFeeAndStake(uint256 amountTokensIn, uint256 amountETHMin, uint256 amountTokenMin, uint256 lockTime) public payable nonReentrant {
        IMyobu.LiquidityETHParams memory params;
        UserInfo storage user = userInfo[0][msg.sender];
        require(msg.value > 0);
        require((lockTime >= 604800 && lockTime <= 31449600 && user.lockedUntil <= lockTime + block.timestamp) || (lockTime == 0 && user.lockedUntil >= block.timestamp), "addLiquidityNoFeeAndStake : Can't lock tokens for less than 1 week");
        updatePool(0);
        if (user.weightedBalance > 0) {
            _addToClaimable(0, msg.sender);
        }
        Myobu.transferFrom(msg.sender, address(this), amountTokensIn);
        params.pair = address(poolInfo[0].lpToken);
        params.to = address(this);
        params.amountTokenMin = amountTokenMin;
        params.amountETHMin = amountETHMin;
        params.amountTokenOrLP = amountTokensIn;
        params.deadline = block.timestamp;
        (,uint256 ETHUsed ,uint256 numLiquidityAdded) = Myobu.noFeeAddLiquidityETH{value: msg.value}(params);
        //noFeeAddLiquidityETH refunds unused ETH, but not Myobu, we're forced to do the same here (any unused Myobu is locked in the token contract and will be treated as transfer fees).
        // @dev no access to address(this).balance, saves about 1,3k gas.
        payable(msg.sender).transfer(msg.value - ETHUsed);
        user.amount += uint112(numLiquidityAdded);
        if (lockTime > 0) {
            lockTokens(msg.sender, 0, lockTime);
        }
        else {
            updateUserWeightedBalance(0, msg.sender);
        }
		emit Deposit(msg.sender, 0, numLiquidityAdded);
    }
    
	//Buy Myobu with the ETH rewards from the Myobu single asset pool to compound
	// @dev Myobu single asset pool MUST be pool 1
    function reinvestETHRewards(uint256 amountOutMin) public nonReentrant {
            UserInfo storage user = userInfo[1][msg.sender];
            require(user.lockedUntil >= block.timestamp);
            updatePool(1);
            uint256 ETHPending = (user.weightedBalance * poolInfo[1].accETHPerShare / 1e12) - user.ETHrewardDebt + user.claimableETH;
            require(ETHPending > 0);
            address[] memory path = new address[](2);
            path[0] = WETH;
            path[1] = address(Myobu);
            if(ETHPending > ETHLeftUnclaimed) {
                ETHPending = ETHLeftUnclaimed;
            }
            uint256 balanceBefore = Myobu.balanceOf(address(this));
            IUniswapV2Router02(router).swapExactETHForTokensSupportingFeeOnTransferTokens{value: ETHPending}(
            amountOutMin,
            path,
            address(this),
            block.timestamp
            );
            uint256 amountSwapped = Myobu.balanceOf(address(this)) - balanceBefore;
            user.amount += uint112(amountSwapped);
            user.claimableETH = 0;
            updateUserWeightedBalance(1, msg.sender);
            emit Deposit(msg.sender, 1, amountSwapped);
    }
    
    function buyAndStakeETH(uint256 amountOutMin, uint256 lockTime) public payable nonReentrant{
        UserInfo storage user = userInfo[1][msg.sender];
        require(msg.value > 0);
        require((lockTime >= 604800 && lockTime <= 31449600 && user.lockedUntil <= lockTime + block.timestamp) || (lockTime == 0 && user.lockedUntil >= block.timestamp), "buyAndStakeETH : Can't lock tokens for less than 1 week");
        updatePool(1);
        if (user.weightedBalance > 0) {
            _addToClaimable(1, msg.sender);
        }
        uint256 balanceBefore = Myobu.balanceOf(address(this));
        address[] memory path = new address[](2);
        path[0] = WETH;
        path[1] = address(Myobu);
        IUniswapV2Router02(router).swapExactETHForTokensSupportingFeeOnTransferTokens{value: msg.value}(
            amountOutMin,
            path,
            address(this),
            block.timestamp
        );
        uint256 _amount = Myobu.balanceOf(address(this)) - balanceBefore;
        user.amount = uint112(user.amount + _amount);
        if (lockTime > 0){
            lockTokens(msg.sender, 1, lockTime);
        }
        else {
            updateUserWeightedBalance(1, msg.sender);
        }
        emit Deposit(msg.sender, 1, _amount);
    }

    // Withdraw previously staked NFT, loosing the rewards boost
	function withdrawNFT(uint256 _pid, address NFTContract, uint tokenID) public nonReentrant {
        address sender = msg.sender;
		uint256 NFTIndex;
        bool tokenFound;
        uint length = userInfo[_pid][sender].NFTContracts.length;
        updatePool(_pid);
        _addToClaimable(_pid, sender);
        for (uint i; i < userInfo[_pid][sender].NFTContracts.length; i++) {
            if (userInfo[_pid][sender].NFTContracts[i] == NFTContract) {
                if(userInfo[_pid][sender].NFTTokenIDs[i] == tokenID) {
                tokenFound = true;
                NFTIndex = i;
				break;
				}
            }
		}
        require(tokenFound == true, "withdrawNFT, token not found");
		userInfo[_pid][sender].boostPointsBP -= uint16(INFT(NFTContract).getMultiplierForTokenID(tokenID));
		userInfo[_pid][sender].NFTContracts[NFTIndex] = userInfo[_pid][sender].NFTContracts[length -1];
		userInfo[_pid][sender].NFTContracts.pop();
		userInfo[_pid][sender].NFTTokenIDs[NFTIndex] = userInfo[_pid][sender].NFTTokenIDs[length -1];
		userInfo[_pid][sender].NFTTokenIDs.pop();
		updateUserWeightedBalance(_pid, sender);
		INFT(NFTContract).safeTransferFrom(address(this), sender, tokenID);
			emit NFTWithdrawn(sender, NFTContract, tokenID);
    }

	// Stake an NFT for rewards boost. Cannot be called by other contracts, see below.
    function boostWithNFT(uint256 _pid, address NFTContract, uint tokenID) public nonReentrant {
        // We allow vaults to interact with our contracts, but we believe that they shouldnt be allowed to stake NFTs to have all their users enjoy boosted rewards as a group.
        // In an effort to prevent this we dont allow other contracts to interact with this function. 
        // All other functions public functions are accessible and devs are more than welcomed to build on top of our contracts.
        require(msg.sender == tx.origin, "boostWithNFT : no contracts"); 
        require(isNFTContract[NFTContract], "boostWithNFT: incorrect contract address");
        require(userInfo[_pid][msg.sender].lockedUntil >= block.timestamp);
        updatePool(_pid);
        _addToClaimable(_pid, msg.sender);
        INFT(NFTContract).safeTransferFrom(msg.sender, address(this), tokenID);
        userInfo[_pid][msg.sender].NFTContracts.push(NFTContract);
		userInfo[_pid][msg.sender].NFTTokenIDs.push(tokenID);
        userInfo[_pid][msg.sender].boostPointsBP += uint16(INFT(NFTContract).getMultiplierForTokenID(tokenID));
        updateUserWeightedBalance(_pid, msg.sender);
		emit NFTWithdrawn(msg.sender, NFTContract, tokenID);
    }
    
    function addToClaimable(uint256 _pid, address sender) public nonReentrant {
        require(userInfo[_pid][sender].lockedUntil >= block.timestamp);
        updatePool(_pid);
        _addToClaimable(_pid, sender);
    }

//--------------------------------------------------------RESTRICTED FUNCTIONS --------------------------------------------------------	

    function depositFor(address sender, uint256 _pid, uint256 amount, uint256 lockTime) public onlyAuthorized {
        _deposit(sender, _pid, amount, lockTime);
    }
    // Create a new pool. Can only be called by the owner.
    function add(uint64 _allocPoint, IERC20 _lpToken, bool _withUpdate) public onlyOwner nonDuplicated(_lpToken) {
        if (_withUpdate) {
            massUpdatePools();
        }
        uint64 lastRewardBlock = uint64(block.number > startBlock ? block.number : startBlock);
        totalAllocPoint = totalAllocPoint + _allocPoint;
        poolExistence[_lpToken] = true;
        poolInfo.push(PoolInfo({
        lpToken : _lpToken,
        allocPoint : _allocPoint,
        lastRewardBlock : lastRewardBlock,
        accRwtPerShare : 0,
        accETHPerShare : 0,
        weightedBalance : 0
        }));
    }
	// Add an NFT Contract to the list. 
	function addNFTContract(address NFTcontract) public onlyOwner {
		isNFTContract[NFTcontract] = true;
	}
	
	// Set ETHBank
	function setETHBank(address _ETHBank) public onlyOwner {
	    ETHBank = _ETHBank;
	}

    // Set Router
    function setRouter(address _router) public onlyOwner {
        router = _router;
    }
	
	// Pull out tokens accidentally sent to the contract. Doesnt work with the reward token or any staked token. Can only be called by the owner.
    function rescueToken(address tokenAddress) public onlyOwner {
        require((tokenAddress != address(rwt)) && !poolExistence[IERC20(tokenAddress)], "rescueToken : wrong token address");
        uint256 bal = IERC20(tokenAddress).balanceOf(address(this));
        IERC20(tokenAddress).transfer(msg.sender, bal);
    }

    // Update the given pool's rewards allocation point and deposit fee. Can only be called by the owner.
    function set(uint256 _pid, uint64 _allocPoint, bool _withUpdate) public onlyOwner {
        if (_withUpdate) {
            massUpdatePools();
        }
        totalAllocPoint = totalAllocPoint - poolInfo[_pid].allocPoint + _allocPoint ;
        poolInfo[_pid].allocPoint = _allocPoint;
    }
	// Initialize the ETH rewards. Can only be called by the owner. 
    function startRewards() public onlyOwner {
        require(startBlock > block.number, "startRewards: rewards already started");
        startBlock = block.number;
        for (uint i; i < poolInfo.length; i++) {
            poolInfo[i].lastRewardBlock = uint64(block.number);            
        }
    }
    // Updates RWT emision rate. Can only be called by the owner
    function updateEmissionRate(uint256 _rwtPerBlock) public onlyOwner {
        require(tokenReleased == true, "updateEmissionRate: Reward token not set");
		massUpdatePools();
        rwtPerBlock = _rwtPerBlock;
        emit UpdateEmissionRate(msg.sender, _rwtPerBlock);
    }
    // Sets the reward token address and the initial emission rate. Can only be called by the owner. 
    function setRewardToken(address _RWT, uint _rwtPerBlock) public onlyOwner {
        require(tokenReleased == false, "Reward token already set");
        rwt = IRewardToken(_RWT);
        rwtPerBlock = _rwtPerBlock;
		tokenReleased = true;
        emit RewardTokenSet(_RWT, _rwtPerBlock, block.timestamp);
    }
    
    // Emergency only 
    function emergency(bool _isEmergency) public onlyOwner {
        isEmergency = _isEmergency;
        emit Emergency(block.timestamp, _isEmergency);
    }
    function authorize(address _address) public onlyOwner {
        authorized[_address] = true;
    }
    function unauthorize(address _address) public onlyOwner {
        authorized[_address] = false;
    }
    function setnumdays(uint256 _days) public onlyOwner {
        require(_days > 0 && _days < 14);
        numdays = _days;
    }
    

//--------------------------------------------------------INTERNAL FUNCTIONS --------------------------------------------------------
    function _deposit(address sender, uint256 _pid, uint256 _amount, uint256 lockTime) internal {
        PoolInfo storage pool = poolInfo[_pid];
        UserInfo storage user = userInfo[_pid][sender];
        updatePool(_pid);
        if (user.weightedBalance > 0) {
            if (_amount == 0 && lockTime == 0) {
                if(tokenReleased) {
                    uint256 pending = (user.weightedBalance * pool.accRwtPerShare / 1e12) - user.rewardDebt + user.claimableRWT;
                    if (pending > 0) {
                        safeRWTTransfer(sender, pending);
                    }
                    user.rewardDebt = user.weightedBalance * pool.accRwtPerShare / 1e12;
                }
                uint256 ETHPending = (user.weightedBalance * pool.accETHPerShare / 1e12) - user.ETHrewardDebt + user.claimableETH;
                if (ETHPending > 0) { 
                    safeETHTransfer(sender, ETHPending);
                    user.ETHrewardDebt = user.weightedBalance * pool.accETHPerShare / 1e12;

                }
                user.claimableRWT = 0;
                user.claimableETH = 0;
            }
            else {
                _addToClaimable(_pid, sender);
            }
        }
        if (_amount > 0) {
            require((lockTime >= 604800 && lockTime <= 31449600 && user.lockedUntil <= lockTime + block.timestamp) || (lockTime == 0 && user.lockedUntil >= block.timestamp), "deposit : Can't lock tokens for less than 1 week");
            //Still takes the tokens from msg.sender (intended)
            pool.lpToken.safeTransferFrom(address(msg.sender), address(this), _amount);
            user.amount = uint112(user.amount + _amount);
            if (lockTime == 0) {
                updateUserWeightedBalance(_pid, sender);
            }
        }
		if (lockTime > 0) {
		    lockTokens(sender, _pid, lockTime);
		}
		if (user.lockedUntil < block.timestamp) {
		    updateUserWeightedBalance(_pid, sender);
		}
        emit Deposit(sender, _pid, _amount);
    }
    
    //Lock tokens up to 52 weeks for rewards boost, ( max rewards = x3, rewards increase linearly with lock time)
    function lockTokens(address sender, uint256 _pid, uint256 lockTime) internal {
        UserInfo storage user = userInfo[_pid][sender]; 
        require(user.amount > 0, "lockTokens: No tokens to lock"); 
        require(user.lockedUntil <= block.timestamp + lockTime, "lockTokens: Tokens already locked");
        require(lockTime >= 604800, "lockTokens: Lock time too short");
        require(lockTime <= 31449600, "lockTokens: Lock time too long");
        user.lockedUntil = uint32(block.timestamp + lockTime);
        user.lockTimeBoost = uint16(2 * 1000 * (lockTime-604800) / 30844800); // 0 - 2000 
        updateUserWeightedBalance(_pid, sender);
		emit TokensLocked(sender, block.timestamp, lockTime);
    }
    
    // calculate and update the user weighted balance
	function updateUserWeightedBalance(uint256 _pid, address _user) public {
        PoolInfo storage pool = poolInfo[_pid];
        UserInfo storage user = userInfo[_pid][_user];
		uint256 poolBalance = pool.weightedBalance - user.weightedBalance;
		if (user.lockedUntil < block.timestamp) {
		    user.weightedBalance = 0;
		    user.lockTimeBoost = 0;
		}
		else {
            user.weightedBalance = user.amount * (1000 + user.lockTimeBoost) * (1000 + user.boostPointsBP) / 1000000;
        }
        pool.weightedBalance = uint112(poolBalance + user.weightedBalance);
		user.rewardDebt = user.weightedBalance * pool.accRwtPerShare / 1e12;
		user.ETHrewardDebt = user.weightedBalance * pool.accETHPerShare / 1e12;
    }
    
    // triggered on refills. 
    function updateETHRewards() internal {
        // ETHPerBlock = ETHLeftUnshared / nb of blocks in numdays days. 
        // The contact assumes it's not going to receive any ether for another numdays days and computes the rewards for this period accordingly.
        // Refilling early isnt an issue, any unshared ETH left will make it into the next rewards cycle
        ETHPerBlock = ETHLeftUnshared / (6400 * numdays);
        massUpdatePools();
    }
    
    function _addToClaimable(uint256 _pid, address sender) internal {
        UserInfo storage user = userInfo[_pid][sender];
        PoolInfo storage pool = poolInfo[_pid];
        if(tokenReleased) {
                uint256 pending = (user.weightedBalance * pool.accRwtPerShare / 1e12) - user.rewardDebt;
                if (pending > 0) {
                    user.claimableRWT += uint96(pending);
                    user.rewardDebt = user.weightedBalance * pool.accRwtPerShare / 1e12;
                }
            }
            uint256 ETHPending = (user.weightedBalance * pool.accETHPerShare / 1e12) - user.ETHrewardDebt;
            if (ETHPending > 0) { 
                user.claimableETH += uint96(ETHPending);
                user.ETHrewardDebt = user.weightedBalance * pool.accETHPerShare / 1e12;
            }
    }

    // Safe transfer function, just in case if rounding error causes pool to not have enough RWTs.
    function safeRWTTransfer(address _to, uint256 _amount) internal {
        uint256 rwtBal = rwt.balanceOf(address(this));
        bool transferSuccess = false;
        if (_amount > rwtBal) {
            transferSuccess = rwt.transfer(_to, rwtBal);
        } else {
            transferSuccess = rwt.transfer(_to, _amount);
        }
        require(transferSuccess, "safeRWTTransfer: transfer failed");
    }
    // Same as the previous function,
	// deleted check, will fail only on being sent to a contract with a fallback function not empty/without a fallback/recieve function, and will revert in this case (If balance is not enough will simply transfer 0 ETH)
    function safeETHTransfer(address _to, uint256 _amount) internal {
        if (_amount > ETHLeftUnclaimed) {
            _amount = ETHLeftUnclaimed;
        }
            payable(_to).transfer(_amount);
            ETHLeftUnclaimed-= _amount;
    }
}

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

Contract Security Audit

Contract ABI

API
[{"inputs":[{"internalType":"contract IMyobu","name":"_myo","type":"address"},{"internalType":"address","name":"_router","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"uint256","name":"pid","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Deposit","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"timestamp","type":"uint256"},{"indexed":false,"internalType":"bool","name":"ifEmergency","type":"bool"}],"name":"Emergency","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"uint256","name":"pid","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"EmergencyWithdraw","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"address","name":"NFTContract","type":"address"},{"indexed":false,"internalType":"uint256","name":"tokenID","type":"uint256"}],"name":"NFTStaked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"address","name":"NFTContract","type":"address"},{"indexed":false,"internalType":"uint256","name":"tokenID","type":"uint256"}],"name":"NFTWithdrawn","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":"tokenAddress","type":"address"},{"indexed":true,"internalType":"uint256","name":"rwtPerBlock","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"timestamp","type":"uint256"}],"name":"RewardTokenSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"timestamp","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"lockTime","type":"uint256"}],"name":"TokensLocked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"rwtPerBlock","type":"uint256"}],"name":"UpdateEmissionRate","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"uint256","name":"pid","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Withdraw","type":"event"},{"stateMutability":"payable","type":"fallback"},{"inputs":[],"name":"ETHBank","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ETHLeftUnclaimed","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ETHLeftUnshared","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ETHPerBlock","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"Myobu","outputs":[{"internalType":"contract IMyobu","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"WETH","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint64","name":"_allocPoint","type":"uint64"},{"internalType":"contract IERC20","name":"_lpToken","type":"address"},{"internalType":"bool","name":"_withUpdate","type":"bool"}],"name":"add","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amountTokensIn","type":"uint256"},{"internalType":"uint256","name":"amountETHMin","type":"uint256"},{"internalType":"uint256","name":"amountTokenMin","type":"uint256"},{"internalType":"uint256","name":"lockTime","type":"uint256"}],"name":"addLiquidityNoFeeAndStake","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"NFTcontract","type":"address"}],"name":"addNFTContract","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"address","name":"sender","type":"address"}],"name":"addToClaimable","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"authorize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"authorized","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"address","name":"NFTContract","type":"address"},{"internalType":"uint256","name":"tokenID","type":"uint256"}],"name":"boostWithNFT","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amountOutMin","type":"uint256"},{"internalType":"uint256","name":"lockTime","type":"uint256"}],"name":"buyAndStakeETH","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"uint256","name":"lockTime","type":"uint256"}],"name":"deposit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"lockTime","type":"uint256"}],"name":"depositFor","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_isEmergency","type":"bool"}],"name":"emergency","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"}],"name":"emergencyWithdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_from","type":"uint256"},{"internalType":"uint256","name":"_to","type":"uint256"}],"name":"getMultiplier","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"isEmergency","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"isNFTContract","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"massUpdatePools","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"numdays","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"bytes","name":"","type":"bytes"}],"name":"onERC721Received","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"address","name":"_user","type":"address"}],"name":"pendingRewards","outputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"name":"poolExistence","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"poolInfo","outputs":[{"internalType":"contract IERC20","name":"lpToken","type":"address"},{"internalType":"uint64","name":"allocPoint","type":"uint64"},{"internalType":"uint64","name":"lastRewardBlock","type":"uint64"},{"internalType":"uint112","name":"accRwtPerShare","type":"uint112"},{"internalType":"uint112","name":"accETHPerShare","type":"uint112"},{"internalType":"uint112","name":"weightedBalance","type":"uint112"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"poolLength","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amountOutMin","type":"uint256"}],"name":"reinvestETHRewards","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"tokenAddress","type":"address"}],"name":"rescueToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"router","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rwt","outputs":[{"internalType":"contract IRewardToken","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rwtPerBlock","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"uint64","name":"_allocPoint","type":"uint64"},{"internalType":"bool","name":"_withUpdate","type":"bool"}],"name":"set","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_ETHBank","type":"address"}],"name":"setETHBank","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_RWT","type":"address"},{"internalType":"uint256","name":"_rwtPerBlock","type":"uint256"}],"name":"setRewardToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_router","type":"address"}],"name":"setRouter","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_days","type":"uint256"}],"name":"setnumdays","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"startBlock","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"startRewards","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"tokenReleased","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalAllocPoint","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"unauthorize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_rwtPerBlock","type":"uint256"}],"name":"updateEmissionRate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"}],"name":"updatePool","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"address","name":"_user","type":"address"}],"name":"updateUserWeightedBalance","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"address","name":"","type":"address"}],"name":"userInfo","outputs":[{"internalType":"uint16","name":"boostPointsBP","type":"uint16"},{"internalType":"uint16","name":"lockTimeBoost","type":"uint16"},{"internalType":"uint32","name":"lockedUntil","type":"uint32"},{"internalType":"uint96","name":"claimableRWT","type":"uint96"},{"internalType":"uint96","name":"claimableETH","type":"uint96"},{"internalType":"uint112","name":"amount","type":"uint112"},{"internalType":"uint112","name":"weightedBalance","type":"uint112"},{"internalType":"uint112","name":"rewardDebt","type":"uint112"},{"internalType":"uint112","name":"ETHrewardDebt","type":"uint112"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint32","name":"_pid","type":"uint32"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"address","name":"NFTContract","type":"address"},{"internalType":"uint256","name":"tokenID","type":"uint256"}],"name":"withdrawNFT","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]

60806040523480156200001157600080fd5b5060405162005e0938038062005e0983398101604081905262000034916200016c565b6200003f3362000103565b60018055600280546001600160a01b038085166001600160a01b031992831617909255600480549284169290911682178155604080516315ab88c960e31b8152905163ad5c4648928281019260209291908290030181865afa158015620000aa573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620000d09190620001ab565b600580546001600160a01b0319166001600160a01b039290921691909117905550506000196010556001600c55620001d2565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6001600160a01b03811681146200016957600080fd5b50565b600080604083850312156200018057600080fd5b82516200018d8162000153565b6020840151909250620001a08162000153565b809150509250929050565b600060208284031215620001be57600080fd5b8151620001cb8162000153565b9392505050565b615c2780620001e26000396000f3fe6080604052600436106103425760003560e01c80635f2ecf8a116101b0578063ad5c4648116100ec578063d18df53c11610095578063f0b37c041161006f578063f0b37c0414610b3c578063f2fde38b14610b5c578063f77a3fb914610b7c578063f887ea4014610b9c57610361565b8063d18df53c14610ac7578063d89ea34b14610afc578063e1886f6914610b1c57610361565b8063c0d78655116100c6578063c0d7865514610a57578063cbd258b514610a77578063cfac5d7c14610aa757610361565b8063ad5c4648146109e7578063b6a5d7de14610a07578063b918161114610a2757610361565b806367dcaf94116101595780638dbb1e3a116101335780638dbb1e3a1461084257806393f1a40b146108625780639f966662146109a7578063aa97b0a0146109c757610361565b806367dcaf94146107f9578063715018a61461080f5780638da5cb5b1461082457610361565b8063614f33641161018a578063614f3364146107a4578063630b5ba1146107c457806364524c2b146107d957610361565b80635f2ecf8a1461074f5780635f9e8f821461076557806360c6843e1461078457610361565b80633f21f5cb1161027f57806351eb05a61161022857806354f29ce21161020257806354f29ce2146106e35780635975e332146106f95780635dd19829146107195780635f228a3d1461073957610361565b806351eb05a6146106835780635312ea8e146106a357806353398119146106c357610361565b806348cd4cb11161025957806348cd4cb1146106335780634a76564e146106495780634d90dd421461066357610361565b80633f21f5cb146105e0578063401519b6146105f35780634460d3cf1461061357610361565b8063150b7a02116102ec5780631a9bd1c9116102c65780631a9bd1c91461055d5780632d5310e7146105955780632dfd0bdc146105b55780633312edf2146105ca57610361565b8063150b7a02146104585780631526fe27146104cd57806317caf6f11461054757610361565b806309aaf6841161031d57806309aaf684146103d85780630ba84cd2146104185780630e19dc3a1461043857610361565b8062aeef8a1461038157806306f43a8c146103a1578063081e3eda146103b457610361565b36610361576006546001600160a01b031633141561035f57600080fd5b005b34600a6000828254610373919061547d565b9091555061035f9050610bbc565b34801561038d57600080fd5b5061035f61039c366004615495565b610be5565b61035f6103af3660046154c1565b610c57565b3480156103c057600080fd5b50600d545b6040519081526020015b60405180910390f35b3480156103e457600080fd5b506104086103f3366004615508565b60076020526000908152604090205460ff1681565b60405190151581526020016103cf565b34801561042457600080fd5b5061035f610433366004615525565b6110e7565b34801561044457600080fd5b5061035f61045336600461553e565b611203565b34801561046457600080fd5b5061049c6104733660046155a2565b7f150b7a0200000000000000000000000000000000000000000000000000000000949350505050565b6040517fffffffff0000000000000000000000000000000000000000000000000000000090911681526020016103cf565b3480156104d957600080fd5b506104ed6104e8366004615525565b6115c2565b604080516001600160a01b03909716875267ffffffffffffffff958616602088015294909316938501939093526dffffffffffffffffffffffffffff908116606085015291821660808401521660a082015260c0016103cf565b34801561055357600080fd5b506103c5600f5481565b34801561056957600080fd5b5060035461057d906001600160a01b031681565b6040516001600160a01b0390911681526020016103cf565b3480156105a157600080fd5b5061035f6105b03660046156a0565b61165e565b3480156105c157600080fd5b5061035f611c03565b3480156105d657600080fd5b506103c560085481565b61035f6105ee3660046156d8565b611d46565b3480156105ff57600080fd5b5061035f61060e366004615725565b6121d2565b34801561061f57600080fd5b5061035f61062e366004615508565b6122f8565b34801561063f57600080fd5b506103c560105481565b34801561065557600080fd5b506011546104089060ff1681565b34801561066f57600080fd5b5061035f61067e366004615765565b612511565b34801561068f57600080fd5b5061035f61069e366004615525565b6125c2565b3480156106af57600080fd5b5061035f6106be366004615525565b6128b2565b3480156106cf57600080fd5b5061035f6106de366004615795565b612ace565b3480156106ef57600080fd5b506103c5600a5481565b34801561070557600080fd5b5061035f6107143660046156a0565b612b9b565b34801561072557600080fd5b5061035f610734366004615765565b612f1f565b34801561074557600080fd5b506103c5600c5481565b34801561075b57600080fd5b506103c5600b5481565b34801561077157600080fd5b5060115461040890610100900460ff1681565b34801561079057600080fd5b5060065461057d906001600160a01b031681565b3480156107b057600080fd5b5061035f6107bf3660046157b2565b61323a565b3480156107d057600080fd5b5061035f6132d6565b3480156107e557600080fd5b5060025461057d906001600160a01b031681565b34801561080557600080fd5b506103c560095481565b34801561081b57600080fd5b5061035f613301565b34801561083057600080fd5b506000546001600160a01b031661057d565b34801561084e57600080fd5b506103c561085d3660046156d8565b613365565b34801561086e57600080fd5b5061092e61087d366004615765565b600e60209081526000928352604080842090915290825290208054600182015460029092015461ffff808316936201000084049091169263ffffffff640100000000820416926bffffffffffffffffffffffff6801000000000000000083048116937401000000000000000000000000000000000000000090930416916dffffffffffffffffffffffffffff808216926e010000000000000000000000000000928390048216928183169291041689565b6040805161ffff9a8b1681529990981660208a015263ffffffff909616968801969096526bffffffffffffffffffffffff93841660608801529290911660808601526dffffffffffffffffffffffffffff90811660a086015290811660c085015291821660e084015216610100820152610120016103cf565b3480156109b357600080fd5b5061035f6109c2366004615508565b613378565b3480156109d357600080fd5b5061035f6109e23660046157ed565b61340c565b3480156109f357600080fd5b5060055461057d906001600160a01b031681565b348015610a1357600080fd5b5061035f610a22366004615508565b6136e1565b348015610a3357600080fd5b50610408610a42366004615508565b60136020526000908152604090205460ff1681565b348015610a6357600080fd5b5061035f610a72366004615508565b61377d565b348015610a8357600080fd5b50610408610a92366004615508565b60126020526000908152604090205460ff1681565b348015610ab357600080fd5b5061035f610ac2366004615508565b613811565b348015610ad357600080fd5b50610ae7610ae2366004615765565b6138ad565b604080519283526020830191909152016103cf565b348015610b0857600080fd5b5061035f610b17366004615525565b613b6b565b348015610b2857600080fd5b5061035f610b37366004615525565b613fb7565b348015610b4857600080fd5b5061035f610b57366004615508565b61402f565b348015610b6857600080fd5b5061035f610b77366004615508565b6140c8565b348015610b8857600080fd5b5061035f610b9736600461581b565b6141a7565b348015610ba857600080fd5b5060045461057d906001600160a01b031681565b600c54610bcb90611900615839565b600a54610bd891906158a5565b600955610be36132d6565b565b60026001541415610c3d5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064015b60405180910390fd5b6002600155610c4e338484846142f4565b50506001805550565b60026001541415610caa5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610c34565b60026001556040805160c08101825260008082526020808301829052828401829052606083018290526080830182905260a083018290523382527fe710864318d4a32f37d6ce54cb3fadbef648dd12d8dbdf53973564d56b7f881c90529190912034610d1557600080fd5b62093a808310158015610d2c57506301dfe2008311155b8015610d505750610d3d428461547d565b8154640100000000900463ffffffff1611155b80610d74575082158015610d74575080544264010000000090910463ffffffff1610155b610e0c5760405162461bcd60e51b815260206004820152604260248201527f6164644c69717569646974794e6f466565416e645374616b65203a2043616e2760448201527f74206c6f636b20746f6b656e7320666f72206c657373207468616e203120776560648201527f656b000000000000000000000000000000000000000000000000000000000000608482015260a401610c34565b610e1660006125c2565b60018101546e01000000000000000000000000000090046dffffffffffffffffffffffffffff1615610e4d57610e4d60003361480a565b6002546040517f23b872dd000000000000000000000000000000000000000000000000000000008152336004820152306024820152604481018890526001600160a01b03909116906323b872dd906064016020604051808303816000875af1158015610ebd573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ee191906158b9565b50600d600081548110610ef657610ef66158d6565b60009182526020808320600392909202909101546001600160a01b03908116855230918501918252606085018781526080860189815260408088018c81524260a08a0190815260025492517f8cdbadbf0000000000000000000000000000000000000000000000000000000081528a5187166004820152965186166024880152905160448701529251606486015290516084850152905160a48401528392911690638cdbadbf90349060c40160606040518083038185885af1158015610fc0573d6000803e3d6000fd5b50505050506040513d601f19601f82011682018060405250810190610fe59190615905565b90935091503390506108fc610ffa8434615933565b6040518115909202916000818181858888f19350505050158015611022573d6000803e3d6000fd5b5060018301805482919060009061104a9084906dffffffffffffffffffffffffffff1661594a565b92506101000a8154816dffffffffffffffffffffffffffff02191690836dffffffffffffffffffffffffffff16021790555060008511156110965761109133600087614b44565b6110a1565b6110a1600033612f1f565b60405181815260009033907f90890809c654f11d6e72a28fa60149770a0d11ec6c92319d6ceb2bb0a4ea1a159060200160405180910390a3505060018055505050505050565b6000546001600160a01b031633146111415760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610c34565b60115460ff1615156001146111be5760405162461bcd60e51b815260206004820152602860248201527f757064617465456d697373696f6e526174653a2052657761726420746f6b656e60448201527f206e6f74207365740000000000000000000000000000000000000000000000006064820152608401610c34565b6111c66132d6565b600881905560405181815233907fe2492e003bbe8afa53088b406f0c1cb5d9e280370fc72a74cf116ffd343c40539060200160405180910390a250565b600260015414156112565760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610c34565b60026001819055506000600d8363ffffffff1681548110611279576112796158d6565b6000918252602080832063ffffffff8088168552600e83526040808620338752909352919093208054600390930290930193504264010000000090920416106113505760405162461bcd60e51b815260206004820152605860248201527f77697468647261773a20546f6b656e73206c6f636b65642c20696620796f752760448201527f726520747279696e6720746f20636c61696d20796f757220726577617264732060648201527f75736520746865206465706f7369742066756e6374696f6e0000000000000000608482015260a401610c34565b60018101546dffffffffffffffffffffffffffff1683118015906113745750600083115b6113c05760405162461bcd60e51b815260206004820152601260248201527f77697468647261773a206e6f7420676f6f6400000000000000000000000000006044820152606401610c34565b6113cf8463ffffffff166125c2565b60018101546e01000000000000000000000000000090046dffffffffffffffffffffffffffff16156114f35761140b8463ffffffff163361480a565b60115460ff16156114855780546801000000000000000090046bffffffffffffffffffffffff161561148557805461145e9033906801000000000000000090046bffffffffffffffffffffffff16614df0565b80547fffffffffffffffffffffffff000000000000000000000000ffffffffffffffff1681555b80547401000000000000000000000000000000000000000090046bffffffffffffffffffffffff16156114f35780546114e59033907401000000000000000000000000000000000000000090046bffffffffffffffffffffffff16614ff9565b80546001600160a01b031681555b60018101546115139084906dffffffffffffffffffffffffffff16615933565b6001820180547fffffffffffffffffffffffffffffffffffff0000000000000000000000000000166dffffffffffffffffffffffffffff92909216919091179055815461156a906001600160a01b0316338561505a565b61157a8463ffffffff1633612f1f565b60405183815263ffffffff85169033907ff279e6a1f5e320cca91135676d9cb6e44ca8a08c0b88342bcdb1144f6511b568906020015b60405180910390a35050600180555050565b600d81815481106115d257600080fd5b60009182526020909120600390910201805460018201546002909201546001600160a01b038216935067ffffffffffffffff74010000000000000000000000000000000000000000909204821692918216916dffffffffffffffffffffffffffff68010000000000000000909104811691808216916e0100000000000000000000000000009091041686565b600260015414156116b15760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610c34565b60026001556000838152600e6020908152604080832033808552925282206003015490919081906116e1876125c2565b6116eb878561480a565b60005b6000888152600e602090815260408083206001600160a01b03891684529091529020600301548110156117db576000888152600e602090815260408083206001600160a01b038981168552925290912060030180549189169183908110611757576117576158d6565b6000918252602090912001546001600160a01b031614156117c9576000888152600e602090815260408083206001600160a01b038916845290915290206004018054879190839081106117ac576117ac6158d6565b906000526020600020015414156117c957600192508093506117db565b806117d38161597c565b9150506116ee565b5060018215151461182e5760405162461bcd60e51b815260206004820152601c60248201527f77697468647261774e46542c20746f6b656e206e6f7420666f756e64000000006044820152606401610c34565b6040517f5077efc3000000000000000000000000000000000000000000000000000000008152600481018690526001600160a01b03871690635077efc390602401602060405180830381865afa15801561188c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906118b091906159b5565b6000888152600e602090815260408083206001600160a01b0389168452909152812080549091906118e690849061ffff166159ce565b825461ffff9182166101009390930a9283029190920219909116179055506000878152600e602090815260408083206001600160a01b03881684529091529020600301611934600183615933565b81548110611944576119446158d6565b6000918252602080832090910154898352600e825260408084206001600160a01b038981168652935290922060030180549190921691908590811061198b5761198b6158d6565b600091825260208083209190910180547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b03948516179055898252600e815260408083209388168352929052206003018054806119f2576119f26159f1565b6000828152602080822083017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff90810180547fffffffffffffffffffffffff0000000000000000000000000000000000000000169055909201909255888252600e815260408083206001600160a01b03881684529091529020600401611a79600183615933565b81548110611a8957611a896158d6565b6000918252602080832090910154898352600e825260408084206001600160a01b03891685529092529120600401805485908110611ac957611ac96158d6565b6000918252602080832090910192909255888152600e825260408082206001600160a01b038816835290925220600401805480611b0857611b086159f1565b60019003818190600052602060002001600090559055611b288785612f1f565b6040517f42842e0e0000000000000000000000000000000000000000000000000000000081523060048201526001600160a01b038581166024830152604482018790528716906342842e0e90606401600060405180830381600087803b158015611b9157600080fd5b505af1158015611ba5573d6000803e3d6000fd5b50505050856001600160a01b0316846001600160a01b03167fbbde41973f9ce4890f7ad9762c23d8191f261fd643bdf13ed8bbc10549b49fcb87604051611bee91815260200190565b60405180910390a35050600180555050505050565b6000546001600160a01b03163314611c5d5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610c34565b4360105411611cd45760405162461bcd60e51b815260206004820152602560248201527f7374617274526577617264733a207265776172647320616c726561647920737460448201527f61727465640000000000000000000000000000000000000000000000000000006064820152608401610c34565b4360105560005b600d54811015611d435743600d8281548110611cf957611cf96158d6565b906000526020600020906003020160010160006101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055508080611d3b9061597c565b915050611cdb565b50565b60026001541415611d995760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610c34565b60026001553360009081527fa7c5ba7114a813b50159add3a36832908dc83db71d0b9a24c2ad0f83be9582076020526040902034611dd657600080fd5b62093a808210158015611ded57506301dfe2008211155b8015611e115750611dfe428361547d565b8154640100000000900463ffffffff1611155b80611e35575081158015611e35575080544264010000000090910463ffffffff1610155b611ea75760405162461bcd60e51b815260206004820152603760248201527f627579416e645374616b65455448203a2043616e2774206c6f636b20746f6b6560448201527f6e7320666f72206c657373207468616e2031207765656b0000000000000000006064820152608401610c34565b611eb160016125c2565b60018101546e01000000000000000000000000000090046dffffffffffffffffffffffffffff1615611ee857611ee860013361480a565b6002546040517f70a082310000000000000000000000000000000000000000000000000000000081523060048201526000916001600160a01b0316906370a0823190602401602060405180830381865afa158015611f4a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611f6e91906159b5565b6040805160028082526060820183529293506000929091602083019080368337505060055482519293506001600160a01b031691839150600090611fb457611fb46158d6565b6001600160a01b039283166020918202929092010152600254825191169082906001908110611fe557611fe56158d6565b6001600160a01b039283166020918202929092010152600480546040517fb6f9de9500000000000000000000000000000000000000000000000000000000815292169163b6f9de95913491612042918a9187913091429101615a20565b6000604051808303818588803b15801561205b57600080fd5b505af115801561206f573d6000803e3d6000fd5b50506002546040517f70a08231000000000000000000000000000000000000000000000000000000008152306004820152600094508693506001600160a01b0390911691506370a0823190602401602060405180830381865afa1580156120da573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906120fe91906159b5565b6121089190615933565b600185015490915061212b9082906dffffffffffffffffffffffffffff1661547d565b6001850180547fffffffffffffffffffffffffffffffffffff0000000000000000000000000000166dffffffffffffffffffffffffffff9290921691909117905584156121835761217e33600187614b44565b61218e565b61218e600133612f1f565b60405181815260019033907f90890809c654f11d6e72a28fa60149770a0d11ec6c92319d6ceb2bb0a4ea1a159060200160405180910390a350506001805550505050565b6000546001600160a01b0316331461222c5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610c34565b801561223a5761223a6132d6565b8167ffffffffffffffff16600d8481548110612258576122586158d6565b6000918252602090912060039091020154600f546122989174010000000000000000000000000000000000000000900467ffffffffffffffff1690615933565b6122a2919061547d565b600f8190555081600d84815481106122bc576122bc6158d6565b906000526020600020906003020160000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff160217905550505050565b6000546001600160a01b031633146123525760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610c34565b6003546001600160a01b0382811691161480159061238957506001600160a01b03811660009081526012602052604090205460ff16155b6123fb5760405162461bcd60e51b815260206004820152602160248201527f726573637565546f6b656e203a2077726f6e6720746f6b656e2061646472657360448201527f73000000000000000000000000000000000000000000000000000000000000006064820152608401610c34565b6040517f70a082310000000000000000000000000000000000000000000000000000000081523060048201526000906001600160a01b038316906370a0823190602401602060405180830381865afa15801561245b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061247f91906159b5565b6040517fa9059cbb000000000000000000000000000000000000000000000000000000008152336004820152602481018290529091506001600160a01b0383169063a9059cbb906044016020604051808303816000875af11580156124e8573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061250c91906158b9565b505050565b600260015414156125645760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610c34565b60026001556000828152600e602090815260408083206001600160a01b03851684529091529020544264010000000090910463ffffffff1610156125a757600080fd5b6125b0826125c2565b6125ba828261480a565b505060018055565b6000600d82815481106125d7576125d76158d6565b60009182526020909120600390910201600181015490915067ffffffffffffffff164311612603575050565b60028101546e01000000000000000000000000000090046dffffffffffffffffffffffffffff168015806126585750815474010000000000000000000000000000000000000000900467ffffffffffffffff16155b15612696575060010180547fffffffffffffffffffffffffffffffffffffffffffffffff0000000000000000164367ffffffffffffffff1617905550565b60018201546000906126b29067ffffffffffffffff1643613365565b60115490915060ff161561278c57600f5483546008546000929174010000000000000000000000000000000000000000900467ffffffffffffffff16906126f99085615839565b6127039190615839565b61270d91906158a5565b90508261271f8264e8d4a51000615839565b61272991906158a5565b600185015461275491906801000000000000000090046dffffffffffffffffffffffffffff1661547d565b8460010160086101000a8154816dffffffffffffffffffffffffffff02191690836dffffffffffffffffffffffffffff160217905550505b600f5483546009546000929174010000000000000000000000000000000000000000900467ffffffffffffffff16906127c59085615839565b6127cf9190615839565b6127d991906158a5565b905080600b546127e9919061547d565b600b55600a546127fa908290615933565b600a558261280d8264e8d4a51000615839565b61281791906158a5565b600285015461283691906dffffffffffffffffffffffffffff1661547d565b6002850180547fffffffffffffffffffffffffffffffffffff0000000000000000000000000000166dffffffffffffffffffffffffffff9290921691909117905550505060010180547fffffffffffffffffffffffffffffffffffffffffffffffff0000000000000000164367ffffffffffffffff1617905550565b600260015414156129055760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610c34565b60026001908155601154610100900460ff1615151461298c5760405162461bcd60e51b815260206004820152602260248201527f6f6e6c79456d657267656e63793a20456d657267656e637920757365206f6e6c60448201527f79210000000000000000000000000000000000000000000000000000000000006064820152608401610c34565b6000600d82815481106129a1576129a16158d6565b60009182526020808320858452600e80835260408086203387529093529190932060018101546003939093029093016002810180549195506dffffffffffffffffffffffffffff808516946e010000000000000000000000000000908190048216949293612a1492869290910416615a8a565b82546dffffffffffffffffffffffffffff9182166101009390930a9283029190920219909116179055506001820180547fffffffff000000000000000000000000000000000000000000000000000000009081169091556002830180549091169055815467ffffffffffffffff1682558254612a9a906001600160a01b0316338361505a565b604051818152849033907fbb757047c2b5f3974fe26b7c10f732e7bce710b0952a71082702781e62ae0595906020016115b0565b6000546001600160a01b03163314612b285760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610c34565b601180547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ff16610100831515908102919091179091556040805142815260208101929092527fff8db90c07460bbb951945fef7481379809de7701710f89abe56cbaa5216df1e910160405180910390a150565b60026001541415612bee5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610c34565b6002600155333214612c425760405162461bcd60e51b815260206004820152601b60248201527f626f6f7374576974684e4654203a206e6f20636f6e74726163747300000000006044820152606401610c34565b6001600160a01b03821660009081526007602052604090205460ff16612cd05760405162461bcd60e51b815260206004820152602860248201527f626f6f7374576974684e46543a20696e636f727265637420636f6e747261637460448201527f20616464726573730000000000000000000000000000000000000000000000006064820152608401610c34565b6000838152600e602090815260408083203384529091529020544264010000000090910463ffffffff161015612d0557600080fd5b612d0e836125c2565b612d18833361480a565b6040517f42842e0e000000000000000000000000000000000000000000000000000000008152336004820152306024820152604481018290526001600160a01b038316906342842e0e90606401600060405180830381600087803b158015612d7f57600080fd5b505af1158015612d93573d6000803e3d6000fd5b5050506000848152600e602090815260408083203384528252808320600381018054600180820183559186528486200180547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b038a16908117909155600492830180549283018155865293909420909301859055517f5077efc30000000000000000000000000000000000000000000000000000000081529182018490529150635077efc390602401602060405180830381865afa158015612e61573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612e8591906159b5565b6000848152600e6020908152604080832033845290915281208054909190612eb290849061ffff16615ab1565b92506101000a81548161ffff021916908361ffff160217905550612ed68333612f1f565b6040518181526001600160a01b0383169033907fbbde41973f9ce4890f7ad9762c23d8191f261fd643bdf13ed8bbc10549b49fcb9060200160405180910390a350506001805550565b6000600d8381548110612f3457612f346158d6565b60009182526020808320868452600e825260408085206001600160a01b0388168652909252908320600181015460026003909402909201928301549294509291612fa8916dffffffffffffffffffffffffffff6e010000000000000000000000000000918290048116929190910416615a8a565b82546dffffffffffffffffffffffffffff9190911691504264010000000090910463ffffffff16101561302a576001820180547fffffffff0000000000000000000000000000ffffffffffffffffffffffffffff16905581547fffffffffffffffffffffffffffffffffffffffffffffffffffffffff0000ffff1682556130cb565b8154620f4240906130419061ffff166103e8615ab1565b835461ffff9182169161305d91620100009004166103e8615ab1565b60018501546130809161ffff16906dffffffffffffffffffffffffffff16615ace565b61308a9190615ace565b6130949190615b04565b82600101600e6101000a8154816dffffffffffffffffffffffffffff02191690836dffffffffffffffffffffffffffff1602179055505b60018201546130fc906e01000000000000000000000000000090046dffffffffffffffffffffffffffff168261547d565b6002840180547fffffffff0000000000000000000000000000ffffffffffffffffffffffffffff166e0100000000000000000000000000006dffffffffffffffffffffffffffff9384168102919091179091556001808601549085015464e8d4a510009361317d936801000000000000000090930481169290910416615ace565b6131879190615b04565b600283810180547fffffffffffffffffffffffffffffffffffff0000000000000000000000000000166dffffffffffffffffffffffffffff938416179055840154600184015464e8d4a51000926131f3928116916e010000000000000000000000000000900416615ace565b6131fd9190615b04565b82600201600e6101000a8154816dffffffffffffffffffffffffffff02191690836dffffffffffffffffffffffffffff1602179055505050505050565b3360009081526013602052604090205460ff1615156001146132c45760405162461bcd60e51b815260206004820152602660248201527f6f6e6c79417574686f72697a65643a2061646472657373206e6f74206175746860448201527f6f72697a656400000000000000000000000000000000000000000000000000006064820152608401610c34565b6132d0848484846142f4565b50505050565b600d5460005b818110156132fd576132ed816125c2565b6132f68161597c565b90506132dc565b5050565b6000546001600160a01b0316331461335b5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610c34565b610be36000615121565b60006133718383615933565b9392505050565b6000546001600160a01b031633146133d25760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610c34565b600680547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0392909216919091179055565b6000546001600160a01b031633146134665760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610c34565b6001600160a01b038216600090815260126020526040902054829060ff16156134d15760405162461bcd60e51b815260206004820152601960248201527f6e6f6e4475706c6963617465643a206475706c696361746564000000000000006044820152606401610c34565b81156134df576134df6132d6565b600060105443116134f2576010546134f4565b435b90508467ffffffffffffffff16600f5461350e919061547d565b600f556001600160a01b039384166000818152601260209081526040808320805460017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff009091168117909155815160c08101835294855267ffffffffffffffff998a16928501928352948916908401908152606084018381526080850184815260a08601858152600d8054988901815590955294517fd7b6990105719101dabeb77144f2a3385c8033acd3af97e9423a695e81ad1eb560039097029687018054945191909a167fffffffff000000000000000000000000000000000000000000000000000000009485161774010000000000000000000000000000000000000000918c169190910217909855517fd7b6990105719101dabeb77144f2a3385c8033acd3af97e9423a695e81ad1eb6850180549851919099167fffffffffffffffffffff0000000000000000000000000000000000000000000090981697909717680100000000000000006dffffffffffffffffffffffffffff988916021790975590517fd7b6990105719101dabeb77144f2a3385c8033acd3af97e9423a695e81ad1eb79092018054915192861691909616176e0100000000000000000000000000009190941602929092179092555050565b6000546001600160a01b0316331461373b5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610c34565b6001600160a01b0316600090815260136020526040902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00166001179055565b6000546001600160a01b031633146137d75760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610c34565b600480547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0392909216919091179055565b6000546001600160a01b0316331461386b5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610c34565b6001600160a01b0316600090815260076020526040902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00166001179055565b6000806000600d85815481106138c5576138c56158d6565b60009182526020808320888452600e825260408085206001600160a01b038a168652909252908320600180820154600390940290920191820154600283015492955090936dffffffffffffffffffffffffffff6e01000000000000000000000000000094859004811694680100000000000000008404821694808316949190049091169190819067ffffffffffffffff164311801561396357508215155b15613b5a5760018801546000906139849067ffffffffffffffff1643613365565b600f548a546008549293506000927401000000000000000000000000000000000000000090910467ffffffffffffffff16906139c09085615839565b6139ca9190615839565b6139d491906158a5565b9050846139e68264e8d4a51000615839565b6139f091906158a5565b6139fa908861547d565b600f548b546009549299506000927401000000000000000000000000000000000000000090910467ffffffffffffffff1690613a369086615839565b613a409190615839565b613a4a91906158a5565b905085613a5c8264e8d4a51000615839565b613a6691906158a5565b613a70908861547d565b8a5460028c01549198506801000000000000000090046bffffffffffffffffffffffff16906dffffffffffffffffffffffffffff1664e8d4a51000613ab58b8d615839565b613abf91906158a5565b613ac99190615933565b613ad3919061547d565b8a5460028c01549196507401000000000000000000000000000000000000000090046bffffffffffffffffffffffff16906e01000000000000000000000000000090046dffffffffffffffffffffffffffff1664e8d4a51000613b368a8d615839565b613b4091906158a5565b613b4a9190615933565b613b54919061547d565b93505050505b909b909a5098505050505050505050565b60026001541415613bbe5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610c34565b60026001553360009081527fa7c5ba7114a813b50159add3a36832908dc83db71d0b9a24c2ad0f83be9582076020526040902080544264010000000090910463ffffffff161015613c0e57600080fd5b613c1860016125c2565b80546002820154600d80546000937401000000000000000000000000000000000000000090046bffffffffffffffffffffffff16926e01000000000000000000000000000090046dffffffffffffffffffffffffffff169164e8d4a51000916001908110613c8857613c886158d6565b60009182526020909120600260039092020101546001860154613cd0916dffffffffffffffffffffffffffff908116916e010000000000000000000000000000900416615ace565b613cda9190615b04565b613ce49190615a8a565b613cee919061594a565b6dffffffffffffffffffffffffffff16905060008111613d0d57600080fd5b604080516002808252606082018352600092602083019080368337505060055482519293506001600160a01b031691839150600090613d4e57613d4e6158d6565b6001600160a01b039283166020918202929092010152600254825191169082906001908110613d7f57613d7f6158d6565b60200260200101906001600160a01b031690816001600160a01b031681525050600b54821115613daf57600b5491505b6002546040517f70a082310000000000000000000000000000000000000000000000000000000081523060048201526000916001600160a01b0316906370a0823190602401602060405180830381865afa158015613e11573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613e3591906159b5565b600480546040517fb6f9de950000000000000000000000000000000000000000000000000000000081529293506001600160a01b03169163b6f9de95918691613e86918a9188913091429101615a20565b6000604051808303818588803b158015613e9f57600080fd5b505af1158015613eb3573d6000803e3d6000fd5b50506002546040517f70a08231000000000000000000000000000000000000000000000000000000008152306004820152600094508593506001600160a01b0390911691506370a0823190602401602060405180830381865afa158015613f1e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613f4291906159b5565b613f4c9190615933565b6001860180549192508291600090613f759084906dffffffffffffffffffffffffffff1661594a565b82546dffffffffffffffffffffffffffff9182166101009390930a92830291909202199091161790555084546001600160a01b0316855561218e600133612f1f565b6000546001600160a01b031633146140115760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610c34565b6000811180156140215750600e81105b61402a57600080fd5b600c55565b6000546001600160a01b031633146140895760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610c34565b6001600160a01b0316600090815260136020526040902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00169055565b6000546001600160a01b031633146141225760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610c34565b6001600160a01b03811661419e5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610c34565b611d4381615121565b6000546001600160a01b031633146142015760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610c34565b60115460ff16156142545760405162461bcd60e51b815260206004820152601860248201527f52657761726420746f6b656e20616c72656164792073657400000000000000006044820152606401610c34565b600380547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0384169081179091556008829055601180547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001660011790556040514281528291907fb75e540d948d21695cea1c0838e8d12cdabb7cb689e1cd1dc05f88d2c49448879060200160405180910390a35050565b6000600d8481548110614309576143096158d6565b60009182526020808320878452600e825260408085206001600160a01b038b168652909252922060039091029091019150614343856125c2565b60018101546e01000000000000000000000000000090046dffffffffffffffffffffffffffff161561462d578315801561437b575082155b156146235760115460ff16156144d35780546002820154600184810154908401546000936bffffffffffffffffffffffff680100000000000000009182900416936dffffffffffffffffffffffffffff9081169364e8d4a51000936143f9939091048216916e01000000000000000000000000000090910416615ace565b6144039190615b04565b61440d9190615a8a565b614417919061594a565b6dffffffffffffffffffffffffffff1690508015614439576144398782614df0565b6001808401549083015464e8d4a5100091614486916dffffffffffffffffffffffffffff680100000000000000009092048216916e01000000000000000000000000000090910416615ace565b6144909190615b04565b6002830180547fffffffffffffffffffffffffffffffffffff0000000000000000000000000000166dffffffffffffffffffffffffffff92909216919091179055505b80546002808301549084015460018401546000936bffffffffffffffffffffffff7401000000000000000000000000000000000000000090910416926dffffffffffffffffffffffffffff6e0100000000000000000000000000009182900481169364e8d4a510009361454d939183169291900416615ace565b6145579190615b04565b6145619190615a8a565b61456b919061594a565b6dffffffffffffffffffffffffffff169050801561460f5761458d8782614ff9565b6002830154600183015464e8d4a51000916145ce916dffffffffffffffffffffffffffff918216916e01000000000000000000000000000090910416615ace565b6145d89190615b04565b82600201600e6101000a8154816dffffffffffffffffffffffffffff02191690836dffffffffffffffffffffffffffff1602179055505b50805467ffffffffffffffff16815561462d565b61462d858761480a565b831561478b5762093a80831015801561464a57506301dfe2008311155b801561466e575061465b428461547d565b8154640100000000900463ffffffff1611155b80614692575082158015614692575080544264010000000090910463ffffffff1610155b6147045760405162461bcd60e51b815260206004820152603060248201527f6465706f736974203a2043616e2774206c6f636b20746f6b656e7320666f722060448201527f6c657373207468616e2031207765656b000000000000000000000000000000006064820152608401610c34565b815461471b906001600160a01b0316333087615189565b600181015461473b9085906dffffffffffffffffffffffffffff1661547d565b6001820180547fffffffffffffffffffffffffffffffffffff0000000000000000000000000000166dffffffffffffffffffffffffffff929092169190911790558261478b5761478b8587612f1f565b821561479c5761479c868685614b44565b80544264010000000090910463ffffffff1610156147be576147be8587612f1f565b84866001600160a01b03167f90890809c654f11d6e72a28fa60149770a0d11ec6c92319d6ceb2bb0a4ea1a15866040516147fa91815260200190565b60405180910390a3505050505050565b6000828152600e602090815260408083206001600160a01b03851684529091528120600d805491929185908110614843576148436158d6565b60009182526020909120601154600390920201915060ff16156149dd576002820154600182810154908401546000926dffffffffffffffffffffffffffff9081169264e8d4a51000926148b992680100000000000000009092048216916e01000000000000000000000000000090910416615ace565b6148c39190615b04565b6148cd9190615a8a565b6dffffffffffffffffffffffffffff16905080156149db578254819084906008906149139084906801000000000000000090046bffffffffffffffffffffffff16615b31565b92506101000a8154816bffffffffffffffffffffffff02191690836bffffffffffffffffffffffff16021790555064e8d4a510008260010160089054906101000a90046dffffffffffffffffffffffffffff1684600101600e9054906101000a90046dffffffffffffffffffffffffffff1661498f9190615ace565b6149999190615b04565b6002840180547fffffffffffffffffffffffffffffffffffff0000000000000000000000000000166dffffffffffffffffffffffffffff929092169190911790555b505b6002808301549082015460018401546000926dffffffffffffffffffffffffffff6e0100000000000000000000000000009182900481169364e8d4a5100093614a2d939183169291900416615ace565b614a379190615b04565b614a419190615a8a565b6dffffffffffffffffffffffffffff1690508015614b3d57825481908490601490614a939084907401000000000000000000000000000000000000000090046bffffffffffffffffffffffff16615b31565b82546bffffffffffffffffffffffff9182166101009390930a9283029190920219909116179055506002820154600184015464e8d4a5100091614afc916dffffffffffffffffffffffffffff918216916e01000000000000000000000000000090910416615ace565b614b069190615b04565b83600201600e6101000a8154816dffffffffffffffffffffffffffff02191690836dffffffffffffffffffffffffffff1602179055505b5050505050565b6000828152600e602090815260408083206001600160a01b0387168452909152902060018101546dffffffffffffffffffffffffffff16614bc75760405162461bcd60e51b815260206004820152601d60248201527f6c6f636b546f6b656e733a204e6f20746f6b656e7320746f206c6f636b0000006044820152606401610c34565b614bd1824261547d565b8154640100000000900463ffffffff161115614c555760405162461bcd60e51b815260206004820152602160248201527f6c6f636b546f6b656e733a20546f6b656e7320616c7265616479206c6f636b6560448201527f64000000000000000000000000000000000000000000000000000000000000006064820152608401610c34565b62093a80821015614ca85760405162461bcd60e51b815260206004820152601f60248201527f6c6f636b546f6b656e733a204c6f636b2074696d6520746f6f2073686f7274006044820152606401610c34565b6301dfe200821115614cfc5760405162461bcd60e51b815260206004820152601e60248201527f6c6f636b546f6b656e733a204c6f636b2074696d6520746f6f206c6f6e6700006044820152606401610c34565b614d06824261547d565b815463ffffffff91909116640100000000027fffffffffffffffffffffffffffffffffffffffffffffffff00000000ffffffff9091161781556301d6a780614d5162093a8084615933565b614d5d906107d0615839565b614d6791906158a5565b815461ffff9190911662010000027fffffffffffffffffffffffffffffffffffffffffffffffffffffffff0000ffff909116178155614da68385612f1f565b60408051428152602081018490526001600160a01b038616917fd741e738a23fd18a03a26522320d9fc6cac1fed483e215ea9150fbc2fc43385d910160405180910390a250505050565b6003546040517f70a082310000000000000000000000000000000000000000000000000000000081523060048201526000916001600160a01b0316906370a0823190602401602060405180830381865afa158015614e52573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190614e7691906159b5565b9050600081831115614f19576003546040517fa9059cbb0000000000000000000000000000000000000000000000000000000081526001600160a01b038681166004830152602482018590529091169063a9059cbb906044016020604051808303816000875af1158015614eee573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190614f1291906158b9565b9050614fac565b6003546040517fa9059cbb0000000000000000000000000000000000000000000000000000000081526001600160a01b038681166004830152602482018690529091169063a9059cbb906044016020604051808303816000875af1158015614f85573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190614fa991906158b9565b90505b806132d05760405162461bcd60e51b815260206004820181905260248201527f736166655257545472616e736665723a207472616e73666572206661696c65646044820152606401610c34565b600b548111156150085750600b545b6040516001600160a01b0383169082156108fc029083906000818181858888f1935050505015801561503e573d6000803e3d6000fd5b5080600b60008282546150519190615933565b90915550505050565b6040516001600160a01b03831660248201526044810182905261250c9084907fa9059cbb00000000000000000000000000000000000000000000000000000000906064015b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08184030181529190526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fffffffff00000000000000000000000000000000000000000000000000000000909316929092179091526151da565b600080546001600160a01b038381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6040516001600160a01b03808516602483015283166044820152606481018290526132d09085907f23b872dd000000000000000000000000000000000000000000000000000000009060840161509f565b600061522f826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166152bf9092919063ffffffff16565b80519091501561250c578080602001905181019061524d91906158b9565b61250c5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f742073756363656564000000000000000000000000000000000000000000006064820152608401610c34565b60606152ce84846000856152d6565b949350505050565b60608247101561534e5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60448201527f722063616c6c00000000000000000000000000000000000000000000000000006064820152608401610c34565b843b61539c5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610c34565b600080866001600160a01b031685876040516153b89190615b84565b60006040518083038185875af1925050503d80600081146153f5576040519150601f19603f3d011682016040523d82523d6000602084013e6153fa565b606091505b509150915061540a828286615415565b979650505050505050565b60608315615424575081613371565b8251156154345782518084602001fd5b8160405162461bcd60e51b8152600401610c349190615ba0565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600082198211156154905761549061544e565b500190565b6000806000606084860312156154aa57600080fd5b505081359360208301359350604090920135919050565b600080600080608085870312156154d757600080fd5b5050823594602084013594506040840135936060013592509050565b6001600160a01b0381168114611d4357600080fd5b60006020828403121561551a57600080fd5b8135613371816154f3565b60006020828403121561553757600080fd5b5035919050565b6000806040838503121561555157600080fd5b823563ffffffff8116811461556557600080fd5b946020939093013593505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600080600080608085870312156155b857600080fd5b84356155c3816154f3565b935060208501356155d3816154f3565b925060408501359150606085013567ffffffffffffffff808211156155f757600080fd5b818701915087601f83011261560b57600080fd5b81358181111561561d5761561d615573565b604051601f82017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0908116603f0116810190838211818310171561566357615663615573565b816040528281528a602084870101111561567c57600080fd5b82602086016020830137600060208483010152809550505050505092959194509250565b6000806000606084860312156156b557600080fd5b8335925060208401356156c7816154f3565b929592945050506040919091013590565b600080604083850312156156eb57600080fd5b50508035926020909101359150565b803567ffffffffffffffff8116811461571257600080fd5b919050565b8015158114611d4357600080fd5b60008060006060848603121561573a57600080fd5b8335925061574a602085016156fa565b9150604084013561575a81615717565b809150509250925092565b6000806040838503121561577857600080fd5b82359150602083013561578a816154f3565b809150509250929050565b6000602082840312156157a757600080fd5b813561337181615717565b600080600080608085870312156157c857600080fd5b84356157d3816154f3565b966020860135965060408601359560600135945092505050565b60008060006060848603121561580257600080fd5b61580b846156fa565b9250602084013561574a816154f3565b6000806040838503121561582e57600080fd5b8235615565816154f3565b6000817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04831182151516156158715761587161544e565b500290565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b6000826158b4576158b4615876565b500490565b6000602082840312156158cb57600080fd5b815161337181615717565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60008060006060848603121561591a57600080fd5b8351925060208401519150604084015190509250925092565b6000828210156159455761594561544e565b500390565b60006dffffffffffffffffffffffffffff8083168185168083038211156159735761597361544e565b01949350505050565b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8214156159ae576159ae61544e565b5060010190565b6000602082840312156159c757600080fd5b5051919050565b600061ffff838116908316818110156159e9576159e961544e565b039392505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b600060808201868352602060808185015281875180845260a086019150828901935060005b81811015615a6a5784516001600160a01b031683529383019391830191600101615a45565b50506001600160a01b039690961660408501525050506060015292915050565b60006dffffffffffffffffffffffffffff838116908316818110156159e9576159e961544e565b600061ffff8083168185168083038211156159735761597361544e565b60006dffffffffffffffffffffffffffff80831681851681830481118215151615615afb57615afb61544e565b02949350505050565b60006dffffffffffffffffffffffffffff80841680615b2557615b25615876565b92169190910492915050565b60006bffffffffffffffffffffffff8083168185168083038211156159735761597361544e565b60005b83811015615b73578181015183820152602001615b5b565b838111156132d05750506000910152565b60008251615b96818460208701615b58565b9190910192915050565b6020815260008251806020840152615bbf816040850160208701615b58565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016919091016040019291505056fea2646970667358221220a935b59cd01cdc8d41a4cb7b683f8108b9785f9a584a25071f23552f5832113b64736f6c634300080a0033000000000000000000000000dfdd3459d4f87234751696840092ee20c970fb070000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d

Deployed Bytecode

0x6080604052600436106103425760003560e01c80635f2ecf8a116101b0578063ad5c4648116100ec578063d18df53c11610095578063f0b37c041161006f578063f0b37c0414610b3c578063f2fde38b14610b5c578063f77a3fb914610b7c578063f887ea4014610b9c57610361565b8063d18df53c14610ac7578063d89ea34b14610afc578063e1886f6914610b1c57610361565b8063c0d78655116100c6578063c0d7865514610a57578063cbd258b514610a77578063cfac5d7c14610aa757610361565b8063ad5c4648146109e7578063b6a5d7de14610a07578063b918161114610a2757610361565b806367dcaf94116101595780638dbb1e3a116101335780638dbb1e3a1461084257806393f1a40b146108625780639f966662146109a7578063aa97b0a0146109c757610361565b806367dcaf94146107f9578063715018a61461080f5780638da5cb5b1461082457610361565b8063614f33641161018a578063614f3364146107a4578063630b5ba1146107c457806364524c2b146107d957610361565b80635f2ecf8a1461074f5780635f9e8f821461076557806360c6843e1461078457610361565b80633f21f5cb1161027f57806351eb05a61161022857806354f29ce21161020257806354f29ce2146106e35780635975e332146106f95780635dd19829146107195780635f228a3d1461073957610361565b806351eb05a6146106835780635312ea8e146106a357806353398119146106c357610361565b806348cd4cb11161025957806348cd4cb1146106335780634a76564e146106495780634d90dd421461066357610361565b80633f21f5cb146105e0578063401519b6146105f35780634460d3cf1461061357610361565b8063150b7a02116102ec5780631a9bd1c9116102c65780631a9bd1c91461055d5780632d5310e7146105955780632dfd0bdc146105b55780633312edf2146105ca57610361565b8063150b7a02146104585780631526fe27146104cd57806317caf6f11461054757610361565b806309aaf6841161031d57806309aaf684146103d85780630ba84cd2146104185780630e19dc3a1461043857610361565b8062aeef8a1461038157806306f43a8c146103a1578063081e3eda146103b457610361565b36610361576006546001600160a01b031633141561035f57600080fd5b005b34600a6000828254610373919061547d565b9091555061035f9050610bbc565b34801561038d57600080fd5b5061035f61039c366004615495565b610be5565b61035f6103af3660046154c1565b610c57565b3480156103c057600080fd5b50600d545b6040519081526020015b60405180910390f35b3480156103e457600080fd5b506104086103f3366004615508565b60076020526000908152604090205460ff1681565b60405190151581526020016103cf565b34801561042457600080fd5b5061035f610433366004615525565b6110e7565b34801561044457600080fd5b5061035f61045336600461553e565b611203565b34801561046457600080fd5b5061049c6104733660046155a2565b7f150b7a0200000000000000000000000000000000000000000000000000000000949350505050565b6040517fffffffff0000000000000000000000000000000000000000000000000000000090911681526020016103cf565b3480156104d957600080fd5b506104ed6104e8366004615525565b6115c2565b604080516001600160a01b03909716875267ffffffffffffffff958616602088015294909316938501939093526dffffffffffffffffffffffffffff908116606085015291821660808401521660a082015260c0016103cf565b34801561055357600080fd5b506103c5600f5481565b34801561056957600080fd5b5060035461057d906001600160a01b031681565b6040516001600160a01b0390911681526020016103cf565b3480156105a157600080fd5b5061035f6105b03660046156a0565b61165e565b3480156105c157600080fd5b5061035f611c03565b3480156105d657600080fd5b506103c560085481565b61035f6105ee3660046156d8565b611d46565b3480156105ff57600080fd5b5061035f61060e366004615725565b6121d2565b34801561061f57600080fd5b5061035f61062e366004615508565b6122f8565b34801561063f57600080fd5b506103c560105481565b34801561065557600080fd5b506011546104089060ff1681565b34801561066f57600080fd5b5061035f61067e366004615765565b612511565b34801561068f57600080fd5b5061035f61069e366004615525565b6125c2565b3480156106af57600080fd5b5061035f6106be366004615525565b6128b2565b3480156106cf57600080fd5b5061035f6106de366004615795565b612ace565b3480156106ef57600080fd5b506103c5600a5481565b34801561070557600080fd5b5061035f6107143660046156a0565b612b9b565b34801561072557600080fd5b5061035f610734366004615765565b612f1f565b34801561074557600080fd5b506103c5600c5481565b34801561075b57600080fd5b506103c5600b5481565b34801561077157600080fd5b5060115461040890610100900460ff1681565b34801561079057600080fd5b5060065461057d906001600160a01b031681565b3480156107b057600080fd5b5061035f6107bf3660046157b2565b61323a565b3480156107d057600080fd5b5061035f6132d6565b3480156107e557600080fd5b5060025461057d906001600160a01b031681565b34801561080557600080fd5b506103c560095481565b34801561081b57600080fd5b5061035f613301565b34801561083057600080fd5b506000546001600160a01b031661057d565b34801561084e57600080fd5b506103c561085d3660046156d8565b613365565b34801561086e57600080fd5b5061092e61087d366004615765565b600e60209081526000928352604080842090915290825290208054600182015460029092015461ffff808316936201000084049091169263ffffffff640100000000820416926bffffffffffffffffffffffff6801000000000000000083048116937401000000000000000000000000000000000000000090930416916dffffffffffffffffffffffffffff808216926e010000000000000000000000000000928390048216928183169291041689565b6040805161ffff9a8b1681529990981660208a015263ffffffff909616968801969096526bffffffffffffffffffffffff93841660608801529290911660808601526dffffffffffffffffffffffffffff90811660a086015290811660c085015291821660e084015216610100820152610120016103cf565b3480156109b357600080fd5b5061035f6109c2366004615508565b613378565b3480156109d357600080fd5b5061035f6109e23660046157ed565b61340c565b3480156109f357600080fd5b5060055461057d906001600160a01b031681565b348015610a1357600080fd5b5061035f610a22366004615508565b6136e1565b348015610a3357600080fd5b50610408610a42366004615508565b60136020526000908152604090205460ff1681565b348015610a6357600080fd5b5061035f610a72366004615508565b61377d565b348015610a8357600080fd5b50610408610a92366004615508565b60126020526000908152604090205460ff1681565b348015610ab357600080fd5b5061035f610ac2366004615508565b613811565b348015610ad357600080fd5b50610ae7610ae2366004615765565b6138ad565b604080519283526020830191909152016103cf565b348015610b0857600080fd5b5061035f610b17366004615525565b613b6b565b348015610b2857600080fd5b5061035f610b37366004615525565b613fb7565b348015610b4857600080fd5b5061035f610b57366004615508565b61402f565b348015610b6857600080fd5b5061035f610b77366004615508565b6140c8565b348015610b8857600080fd5b5061035f610b9736600461581b565b6141a7565b348015610ba857600080fd5b5060045461057d906001600160a01b031681565b600c54610bcb90611900615839565b600a54610bd891906158a5565b600955610be36132d6565b565b60026001541415610c3d5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064015b60405180910390fd5b6002600155610c4e338484846142f4565b50506001805550565b60026001541415610caa5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610c34565b60026001556040805160c08101825260008082526020808301829052828401829052606083018290526080830182905260a083018290523382527fe710864318d4a32f37d6ce54cb3fadbef648dd12d8dbdf53973564d56b7f881c90529190912034610d1557600080fd5b62093a808310158015610d2c57506301dfe2008311155b8015610d505750610d3d428461547d565b8154640100000000900463ffffffff1611155b80610d74575082158015610d74575080544264010000000090910463ffffffff1610155b610e0c5760405162461bcd60e51b815260206004820152604260248201527f6164644c69717569646974794e6f466565416e645374616b65203a2043616e2760448201527f74206c6f636b20746f6b656e7320666f72206c657373207468616e203120776560648201527f656b000000000000000000000000000000000000000000000000000000000000608482015260a401610c34565b610e1660006125c2565b60018101546e01000000000000000000000000000090046dffffffffffffffffffffffffffff1615610e4d57610e4d60003361480a565b6002546040517f23b872dd000000000000000000000000000000000000000000000000000000008152336004820152306024820152604481018890526001600160a01b03909116906323b872dd906064016020604051808303816000875af1158015610ebd573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ee191906158b9565b50600d600081548110610ef657610ef66158d6565b60009182526020808320600392909202909101546001600160a01b03908116855230918501918252606085018781526080860189815260408088018c81524260a08a0190815260025492517f8cdbadbf0000000000000000000000000000000000000000000000000000000081528a5187166004820152965186166024880152905160448701529251606486015290516084850152905160a48401528392911690638cdbadbf90349060c40160606040518083038185885af1158015610fc0573d6000803e3d6000fd5b50505050506040513d601f19601f82011682018060405250810190610fe59190615905565b90935091503390506108fc610ffa8434615933565b6040518115909202916000818181858888f19350505050158015611022573d6000803e3d6000fd5b5060018301805482919060009061104a9084906dffffffffffffffffffffffffffff1661594a565b92506101000a8154816dffffffffffffffffffffffffffff02191690836dffffffffffffffffffffffffffff16021790555060008511156110965761109133600087614b44565b6110a1565b6110a1600033612f1f565b60405181815260009033907f90890809c654f11d6e72a28fa60149770a0d11ec6c92319d6ceb2bb0a4ea1a159060200160405180910390a3505060018055505050505050565b6000546001600160a01b031633146111415760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610c34565b60115460ff1615156001146111be5760405162461bcd60e51b815260206004820152602860248201527f757064617465456d697373696f6e526174653a2052657761726420746f6b656e60448201527f206e6f74207365740000000000000000000000000000000000000000000000006064820152608401610c34565b6111c66132d6565b600881905560405181815233907fe2492e003bbe8afa53088b406f0c1cb5d9e280370fc72a74cf116ffd343c40539060200160405180910390a250565b600260015414156112565760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610c34565b60026001819055506000600d8363ffffffff1681548110611279576112796158d6565b6000918252602080832063ffffffff8088168552600e83526040808620338752909352919093208054600390930290930193504264010000000090920416106113505760405162461bcd60e51b815260206004820152605860248201527f77697468647261773a20546f6b656e73206c6f636b65642c20696620796f752760448201527f726520747279696e6720746f20636c61696d20796f757220726577617264732060648201527f75736520746865206465706f7369742066756e6374696f6e0000000000000000608482015260a401610c34565b60018101546dffffffffffffffffffffffffffff1683118015906113745750600083115b6113c05760405162461bcd60e51b815260206004820152601260248201527f77697468647261773a206e6f7420676f6f6400000000000000000000000000006044820152606401610c34565b6113cf8463ffffffff166125c2565b60018101546e01000000000000000000000000000090046dffffffffffffffffffffffffffff16156114f35761140b8463ffffffff163361480a565b60115460ff16156114855780546801000000000000000090046bffffffffffffffffffffffff161561148557805461145e9033906801000000000000000090046bffffffffffffffffffffffff16614df0565b80547fffffffffffffffffffffffff000000000000000000000000ffffffffffffffff1681555b80547401000000000000000000000000000000000000000090046bffffffffffffffffffffffff16156114f35780546114e59033907401000000000000000000000000000000000000000090046bffffffffffffffffffffffff16614ff9565b80546001600160a01b031681555b60018101546115139084906dffffffffffffffffffffffffffff16615933565b6001820180547fffffffffffffffffffffffffffffffffffff0000000000000000000000000000166dffffffffffffffffffffffffffff92909216919091179055815461156a906001600160a01b0316338561505a565b61157a8463ffffffff1633612f1f565b60405183815263ffffffff85169033907ff279e6a1f5e320cca91135676d9cb6e44ca8a08c0b88342bcdb1144f6511b568906020015b60405180910390a35050600180555050565b600d81815481106115d257600080fd5b60009182526020909120600390910201805460018201546002909201546001600160a01b038216935067ffffffffffffffff74010000000000000000000000000000000000000000909204821692918216916dffffffffffffffffffffffffffff68010000000000000000909104811691808216916e0100000000000000000000000000009091041686565b600260015414156116b15760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610c34565b60026001556000838152600e6020908152604080832033808552925282206003015490919081906116e1876125c2565b6116eb878561480a565b60005b6000888152600e602090815260408083206001600160a01b03891684529091529020600301548110156117db576000888152600e602090815260408083206001600160a01b038981168552925290912060030180549189169183908110611757576117576158d6565b6000918252602090912001546001600160a01b031614156117c9576000888152600e602090815260408083206001600160a01b038916845290915290206004018054879190839081106117ac576117ac6158d6565b906000526020600020015414156117c957600192508093506117db565b806117d38161597c565b9150506116ee565b5060018215151461182e5760405162461bcd60e51b815260206004820152601c60248201527f77697468647261774e46542c20746f6b656e206e6f7420666f756e64000000006044820152606401610c34565b6040517f5077efc3000000000000000000000000000000000000000000000000000000008152600481018690526001600160a01b03871690635077efc390602401602060405180830381865afa15801561188c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906118b091906159b5565b6000888152600e602090815260408083206001600160a01b0389168452909152812080549091906118e690849061ffff166159ce565b825461ffff9182166101009390930a9283029190920219909116179055506000878152600e602090815260408083206001600160a01b03881684529091529020600301611934600183615933565b81548110611944576119446158d6565b6000918252602080832090910154898352600e825260408084206001600160a01b038981168652935290922060030180549190921691908590811061198b5761198b6158d6565b600091825260208083209190910180547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b03948516179055898252600e815260408083209388168352929052206003018054806119f2576119f26159f1565b6000828152602080822083017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff90810180547fffffffffffffffffffffffff0000000000000000000000000000000000000000169055909201909255888252600e815260408083206001600160a01b03881684529091529020600401611a79600183615933565b81548110611a8957611a896158d6565b6000918252602080832090910154898352600e825260408084206001600160a01b03891685529092529120600401805485908110611ac957611ac96158d6565b6000918252602080832090910192909255888152600e825260408082206001600160a01b038816835290925220600401805480611b0857611b086159f1565b60019003818190600052602060002001600090559055611b288785612f1f565b6040517f42842e0e0000000000000000000000000000000000000000000000000000000081523060048201526001600160a01b038581166024830152604482018790528716906342842e0e90606401600060405180830381600087803b158015611b9157600080fd5b505af1158015611ba5573d6000803e3d6000fd5b50505050856001600160a01b0316846001600160a01b03167fbbde41973f9ce4890f7ad9762c23d8191f261fd643bdf13ed8bbc10549b49fcb87604051611bee91815260200190565b60405180910390a35050600180555050505050565b6000546001600160a01b03163314611c5d5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610c34565b4360105411611cd45760405162461bcd60e51b815260206004820152602560248201527f7374617274526577617264733a207265776172647320616c726561647920737460448201527f61727465640000000000000000000000000000000000000000000000000000006064820152608401610c34565b4360105560005b600d54811015611d435743600d8281548110611cf957611cf96158d6565b906000526020600020906003020160010160006101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055508080611d3b9061597c565b915050611cdb565b50565b60026001541415611d995760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610c34565b60026001553360009081527fa7c5ba7114a813b50159add3a36832908dc83db71d0b9a24c2ad0f83be9582076020526040902034611dd657600080fd5b62093a808210158015611ded57506301dfe2008211155b8015611e115750611dfe428361547d565b8154640100000000900463ffffffff1611155b80611e35575081158015611e35575080544264010000000090910463ffffffff1610155b611ea75760405162461bcd60e51b815260206004820152603760248201527f627579416e645374616b65455448203a2043616e2774206c6f636b20746f6b6560448201527f6e7320666f72206c657373207468616e2031207765656b0000000000000000006064820152608401610c34565b611eb160016125c2565b60018101546e01000000000000000000000000000090046dffffffffffffffffffffffffffff1615611ee857611ee860013361480a565b6002546040517f70a082310000000000000000000000000000000000000000000000000000000081523060048201526000916001600160a01b0316906370a0823190602401602060405180830381865afa158015611f4a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611f6e91906159b5565b6040805160028082526060820183529293506000929091602083019080368337505060055482519293506001600160a01b031691839150600090611fb457611fb46158d6565b6001600160a01b039283166020918202929092010152600254825191169082906001908110611fe557611fe56158d6565b6001600160a01b039283166020918202929092010152600480546040517fb6f9de9500000000000000000000000000000000000000000000000000000000815292169163b6f9de95913491612042918a9187913091429101615a20565b6000604051808303818588803b15801561205b57600080fd5b505af115801561206f573d6000803e3d6000fd5b50506002546040517f70a08231000000000000000000000000000000000000000000000000000000008152306004820152600094508693506001600160a01b0390911691506370a0823190602401602060405180830381865afa1580156120da573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906120fe91906159b5565b6121089190615933565b600185015490915061212b9082906dffffffffffffffffffffffffffff1661547d565b6001850180547fffffffffffffffffffffffffffffffffffff0000000000000000000000000000166dffffffffffffffffffffffffffff9290921691909117905584156121835761217e33600187614b44565b61218e565b61218e600133612f1f565b60405181815260019033907f90890809c654f11d6e72a28fa60149770a0d11ec6c92319d6ceb2bb0a4ea1a159060200160405180910390a350506001805550505050565b6000546001600160a01b0316331461222c5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610c34565b801561223a5761223a6132d6565b8167ffffffffffffffff16600d8481548110612258576122586158d6565b6000918252602090912060039091020154600f546122989174010000000000000000000000000000000000000000900467ffffffffffffffff1690615933565b6122a2919061547d565b600f8190555081600d84815481106122bc576122bc6158d6565b906000526020600020906003020160000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff160217905550505050565b6000546001600160a01b031633146123525760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610c34565b6003546001600160a01b0382811691161480159061238957506001600160a01b03811660009081526012602052604090205460ff16155b6123fb5760405162461bcd60e51b815260206004820152602160248201527f726573637565546f6b656e203a2077726f6e6720746f6b656e2061646472657360448201527f73000000000000000000000000000000000000000000000000000000000000006064820152608401610c34565b6040517f70a082310000000000000000000000000000000000000000000000000000000081523060048201526000906001600160a01b038316906370a0823190602401602060405180830381865afa15801561245b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061247f91906159b5565b6040517fa9059cbb000000000000000000000000000000000000000000000000000000008152336004820152602481018290529091506001600160a01b0383169063a9059cbb906044016020604051808303816000875af11580156124e8573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061250c91906158b9565b505050565b600260015414156125645760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610c34565b60026001556000828152600e602090815260408083206001600160a01b03851684529091529020544264010000000090910463ffffffff1610156125a757600080fd5b6125b0826125c2565b6125ba828261480a565b505060018055565b6000600d82815481106125d7576125d76158d6565b60009182526020909120600390910201600181015490915067ffffffffffffffff164311612603575050565b60028101546e01000000000000000000000000000090046dffffffffffffffffffffffffffff168015806126585750815474010000000000000000000000000000000000000000900467ffffffffffffffff16155b15612696575060010180547fffffffffffffffffffffffffffffffffffffffffffffffff0000000000000000164367ffffffffffffffff1617905550565b60018201546000906126b29067ffffffffffffffff1643613365565b60115490915060ff161561278c57600f5483546008546000929174010000000000000000000000000000000000000000900467ffffffffffffffff16906126f99085615839565b6127039190615839565b61270d91906158a5565b90508261271f8264e8d4a51000615839565b61272991906158a5565b600185015461275491906801000000000000000090046dffffffffffffffffffffffffffff1661547d565b8460010160086101000a8154816dffffffffffffffffffffffffffff02191690836dffffffffffffffffffffffffffff160217905550505b600f5483546009546000929174010000000000000000000000000000000000000000900467ffffffffffffffff16906127c59085615839565b6127cf9190615839565b6127d991906158a5565b905080600b546127e9919061547d565b600b55600a546127fa908290615933565b600a558261280d8264e8d4a51000615839565b61281791906158a5565b600285015461283691906dffffffffffffffffffffffffffff1661547d565b6002850180547fffffffffffffffffffffffffffffffffffff0000000000000000000000000000166dffffffffffffffffffffffffffff9290921691909117905550505060010180547fffffffffffffffffffffffffffffffffffffffffffffffff0000000000000000164367ffffffffffffffff1617905550565b600260015414156129055760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610c34565b60026001908155601154610100900460ff1615151461298c5760405162461bcd60e51b815260206004820152602260248201527f6f6e6c79456d657267656e63793a20456d657267656e637920757365206f6e6c60448201527f79210000000000000000000000000000000000000000000000000000000000006064820152608401610c34565b6000600d82815481106129a1576129a16158d6565b60009182526020808320858452600e80835260408086203387529093529190932060018101546003939093029093016002810180549195506dffffffffffffffffffffffffffff808516946e010000000000000000000000000000908190048216949293612a1492869290910416615a8a565b82546dffffffffffffffffffffffffffff9182166101009390930a9283029190920219909116179055506001820180547fffffffff000000000000000000000000000000000000000000000000000000009081169091556002830180549091169055815467ffffffffffffffff1682558254612a9a906001600160a01b0316338361505a565b604051818152849033907fbb757047c2b5f3974fe26b7c10f732e7bce710b0952a71082702781e62ae0595906020016115b0565b6000546001600160a01b03163314612b285760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610c34565b601180547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ff16610100831515908102919091179091556040805142815260208101929092527fff8db90c07460bbb951945fef7481379809de7701710f89abe56cbaa5216df1e910160405180910390a150565b60026001541415612bee5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610c34565b6002600155333214612c425760405162461bcd60e51b815260206004820152601b60248201527f626f6f7374576974684e4654203a206e6f20636f6e74726163747300000000006044820152606401610c34565b6001600160a01b03821660009081526007602052604090205460ff16612cd05760405162461bcd60e51b815260206004820152602860248201527f626f6f7374576974684e46543a20696e636f727265637420636f6e747261637460448201527f20616464726573730000000000000000000000000000000000000000000000006064820152608401610c34565b6000838152600e602090815260408083203384529091529020544264010000000090910463ffffffff161015612d0557600080fd5b612d0e836125c2565b612d18833361480a565b6040517f42842e0e000000000000000000000000000000000000000000000000000000008152336004820152306024820152604481018290526001600160a01b038316906342842e0e90606401600060405180830381600087803b158015612d7f57600080fd5b505af1158015612d93573d6000803e3d6000fd5b5050506000848152600e602090815260408083203384528252808320600381018054600180820183559186528486200180547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b038a16908117909155600492830180549283018155865293909420909301859055517f5077efc30000000000000000000000000000000000000000000000000000000081529182018490529150635077efc390602401602060405180830381865afa158015612e61573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612e8591906159b5565b6000848152600e6020908152604080832033845290915281208054909190612eb290849061ffff16615ab1565b92506101000a81548161ffff021916908361ffff160217905550612ed68333612f1f565b6040518181526001600160a01b0383169033907fbbde41973f9ce4890f7ad9762c23d8191f261fd643bdf13ed8bbc10549b49fcb9060200160405180910390a350506001805550565b6000600d8381548110612f3457612f346158d6565b60009182526020808320868452600e825260408085206001600160a01b0388168652909252908320600181015460026003909402909201928301549294509291612fa8916dffffffffffffffffffffffffffff6e010000000000000000000000000000918290048116929190910416615a8a565b82546dffffffffffffffffffffffffffff9190911691504264010000000090910463ffffffff16101561302a576001820180547fffffffff0000000000000000000000000000ffffffffffffffffffffffffffff16905581547fffffffffffffffffffffffffffffffffffffffffffffffffffffffff0000ffff1682556130cb565b8154620f4240906130419061ffff166103e8615ab1565b835461ffff9182169161305d91620100009004166103e8615ab1565b60018501546130809161ffff16906dffffffffffffffffffffffffffff16615ace565b61308a9190615ace565b6130949190615b04565b82600101600e6101000a8154816dffffffffffffffffffffffffffff02191690836dffffffffffffffffffffffffffff1602179055505b60018201546130fc906e01000000000000000000000000000090046dffffffffffffffffffffffffffff168261547d565b6002840180547fffffffff0000000000000000000000000000ffffffffffffffffffffffffffff166e0100000000000000000000000000006dffffffffffffffffffffffffffff9384168102919091179091556001808601549085015464e8d4a510009361317d936801000000000000000090930481169290910416615ace565b6131879190615b04565b600283810180547fffffffffffffffffffffffffffffffffffff0000000000000000000000000000166dffffffffffffffffffffffffffff938416179055840154600184015464e8d4a51000926131f3928116916e010000000000000000000000000000900416615ace565b6131fd9190615b04565b82600201600e6101000a8154816dffffffffffffffffffffffffffff02191690836dffffffffffffffffffffffffffff1602179055505050505050565b3360009081526013602052604090205460ff1615156001146132c45760405162461bcd60e51b815260206004820152602660248201527f6f6e6c79417574686f72697a65643a2061646472657373206e6f74206175746860448201527f6f72697a656400000000000000000000000000000000000000000000000000006064820152608401610c34565b6132d0848484846142f4565b50505050565b600d5460005b818110156132fd576132ed816125c2565b6132f68161597c565b90506132dc565b5050565b6000546001600160a01b0316331461335b5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610c34565b610be36000615121565b60006133718383615933565b9392505050565b6000546001600160a01b031633146133d25760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610c34565b600680547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0392909216919091179055565b6000546001600160a01b031633146134665760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610c34565b6001600160a01b038216600090815260126020526040902054829060ff16156134d15760405162461bcd60e51b815260206004820152601960248201527f6e6f6e4475706c6963617465643a206475706c696361746564000000000000006044820152606401610c34565b81156134df576134df6132d6565b600060105443116134f2576010546134f4565b435b90508467ffffffffffffffff16600f5461350e919061547d565b600f556001600160a01b039384166000818152601260209081526040808320805460017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff009091168117909155815160c08101835294855267ffffffffffffffff998a16928501928352948916908401908152606084018381526080850184815260a08601858152600d8054988901815590955294517fd7b6990105719101dabeb77144f2a3385c8033acd3af97e9423a695e81ad1eb560039097029687018054945191909a167fffffffff000000000000000000000000000000000000000000000000000000009485161774010000000000000000000000000000000000000000918c169190910217909855517fd7b6990105719101dabeb77144f2a3385c8033acd3af97e9423a695e81ad1eb6850180549851919099167fffffffffffffffffffff0000000000000000000000000000000000000000000090981697909717680100000000000000006dffffffffffffffffffffffffffff988916021790975590517fd7b6990105719101dabeb77144f2a3385c8033acd3af97e9423a695e81ad1eb79092018054915192861691909616176e0100000000000000000000000000009190941602929092179092555050565b6000546001600160a01b0316331461373b5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610c34565b6001600160a01b0316600090815260136020526040902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00166001179055565b6000546001600160a01b031633146137d75760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610c34565b600480547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0392909216919091179055565b6000546001600160a01b0316331461386b5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610c34565b6001600160a01b0316600090815260076020526040902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00166001179055565b6000806000600d85815481106138c5576138c56158d6565b60009182526020808320888452600e825260408085206001600160a01b038a168652909252908320600180820154600390940290920191820154600283015492955090936dffffffffffffffffffffffffffff6e01000000000000000000000000000094859004811694680100000000000000008404821694808316949190049091169190819067ffffffffffffffff164311801561396357508215155b15613b5a5760018801546000906139849067ffffffffffffffff1643613365565b600f548a546008549293506000927401000000000000000000000000000000000000000090910467ffffffffffffffff16906139c09085615839565b6139ca9190615839565b6139d491906158a5565b9050846139e68264e8d4a51000615839565b6139f091906158a5565b6139fa908861547d565b600f548b546009549299506000927401000000000000000000000000000000000000000090910467ffffffffffffffff1690613a369086615839565b613a409190615839565b613a4a91906158a5565b905085613a5c8264e8d4a51000615839565b613a6691906158a5565b613a70908861547d565b8a5460028c01549198506801000000000000000090046bffffffffffffffffffffffff16906dffffffffffffffffffffffffffff1664e8d4a51000613ab58b8d615839565b613abf91906158a5565b613ac99190615933565b613ad3919061547d565b8a5460028c01549196507401000000000000000000000000000000000000000090046bffffffffffffffffffffffff16906e01000000000000000000000000000090046dffffffffffffffffffffffffffff1664e8d4a51000613b368a8d615839565b613b4091906158a5565b613b4a9190615933565b613b54919061547d565b93505050505b909b909a5098505050505050505050565b60026001541415613bbe5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610c34565b60026001553360009081527fa7c5ba7114a813b50159add3a36832908dc83db71d0b9a24c2ad0f83be9582076020526040902080544264010000000090910463ffffffff161015613c0e57600080fd5b613c1860016125c2565b80546002820154600d80546000937401000000000000000000000000000000000000000090046bffffffffffffffffffffffff16926e01000000000000000000000000000090046dffffffffffffffffffffffffffff169164e8d4a51000916001908110613c8857613c886158d6565b60009182526020909120600260039092020101546001860154613cd0916dffffffffffffffffffffffffffff908116916e010000000000000000000000000000900416615ace565b613cda9190615b04565b613ce49190615a8a565b613cee919061594a565b6dffffffffffffffffffffffffffff16905060008111613d0d57600080fd5b604080516002808252606082018352600092602083019080368337505060055482519293506001600160a01b031691839150600090613d4e57613d4e6158d6565b6001600160a01b039283166020918202929092010152600254825191169082906001908110613d7f57613d7f6158d6565b60200260200101906001600160a01b031690816001600160a01b031681525050600b54821115613daf57600b5491505b6002546040517f70a082310000000000000000000000000000000000000000000000000000000081523060048201526000916001600160a01b0316906370a0823190602401602060405180830381865afa158015613e11573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613e3591906159b5565b600480546040517fb6f9de950000000000000000000000000000000000000000000000000000000081529293506001600160a01b03169163b6f9de95918691613e86918a9188913091429101615a20565b6000604051808303818588803b158015613e9f57600080fd5b505af1158015613eb3573d6000803e3d6000fd5b50506002546040517f70a08231000000000000000000000000000000000000000000000000000000008152306004820152600094508593506001600160a01b0390911691506370a0823190602401602060405180830381865afa158015613f1e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613f4291906159b5565b613f4c9190615933565b6001860180549192508291600090613f759084906dffffffffffffffffffffffffffff1661594a565b82546dffffffffffffffffffffffffffff9182166101009390930a92830291909202199091161790555084546001600160a01b0316855561218e600133612f1f565b6000546001600160a01b031633146140115760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610c34565b6000811180156140215750600e81105b61402a57600080fd5b600c55565b6000546001600160a01b031633146140895760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610c34565b6001600160a01b0316600090815260136020526040902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00169055565b6000546001600160a01b031633146141225760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610c34565b6001600160a01b03811661419e5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610c34565b611d4381615121565b6000546001600160a01b031633146142015760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610c34565b60115460ff16156142545760405162461bcd60e51b815260206004820152601860248201527f52657761726420746f6b656e20616c72656164792073657400000000000000006044820152606401610c34565b600380547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0384169081179091556008829055601180547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001660011790556040514281528291907fb75e540d948d21695cea1c0838e8d12cdabb7cb689e1cd1dc05f88d2c49448879060200160405180910390a35050565b6000600d8481548110614309576143096158d6565b60009182526020808320878452600e825260408085206001600160a01b038b168652909252922060039091029091019150614343856125c2565b60018101546e01000000000000000000000000000090046dffffffffffffffffffffffffffff161561462d578315801561437b575082155b156146235760115460ff16156144d35780546002820154600184810154908401546000936bffffffffffffffffffffffff680100000000000000009182900416936dffffffffffffffffffffffffffff9081169364e8d4a51000936143f9939091048216916e01000000000000000000000000000090910416615ace565b6144039190615b04565b61440d9190615a8a565b614417919061594a565b6dffffffffffffffffffffffffffff1690508015614439576144398782614df0565b6001808401549083015464e8d4a5100091614486916dffffffffffffffffffffffffffff680100000000000000009092048216916e01000000000000000000000000000090910416615ace565b6144909190615b04565b6002830180547fffffffffffffffffffffffffffffffffffff0000000000000000000000000000166dffffffffffffffffffffffffffff92909216919091179055505b80546002808301549084015460018401546000936bffffffffffffffffffffffff7401000000000000000000000000000000000000000090910416926dffffffffffffffffffffffffffff6e0100000000000000000000000000009182900481169364e8d4a510009361454d939183169291900416615ace565b6145579190615b04565b6145619190615a8a565b61456b919061594a565b6dffffffffffffffffffffffffffff169050801561460f5761458d8782614ff9565b6002830154600183015464e8d4a51000916145ce916dffffffffffffffffffffffffffff918216916e01000000000000000000000000000090910416615ace565b6145d89190615b04565b82600201600e6101000a8154816dffffffffffffffffffffffffffff02191690836dffffffffffffffffffffffffffff1602179055505b50805467ffffffffffffffff16815561462d565b61462d858761480a565b831561478b5762093a80831015801561464a57506301dfe2008311155b801561466e575061465b428461547d565b8154640100000000900463ffffffff1611155b80614692575082158015614692575080544264010000000090910463ffffffff1610155b6147045760405162461bcd60e51b815260206004820152603060248201527f6465706f736974203a2043616e2774206c6f636b20746f6b656e7320666f722060448201527f6c657373207468616e2031207765656b000000000000000000000000000000006064820152608401610c34565b815461471b906001600160a01b0316333087615189565b600181015461473b9085906dffffffffffffffffffffffffffff1661547d565b6001820180547fffffffffffffffffffffffffffffffffffff0000000000000000000000000000166dffffffffffffffffffffffffffff929092169190911790558261478b5761478b8587612f1f565b821561479c5761479c868685614b44565b80544264010000000090910463ffffffff1610156147be576147be8587612f1f565b84866001600160a01b03167f90890809c654f11d6e72a28fa60149770a0d11ec6c92319d6ceb2bb0a4ea1a15866040516147fa91815260200190565b60405180910390a3505050505050565b6000828152600e602090815260408083206001600160a01b03851684529091528120600d805491929185908110614843576148436158d6565b60009182526020909120601154600390920201915060ff16156149dd576002820154600182810154908401546000926dffffffffffffffffffffffffffff9081169264e8d4a51000926148b992680100000000000000009092048216916e01000000000000000000000000000090910416615ace565b6148c39190615b04565b6148cd9190615a8a565b6dffffffffffffffffffffffffffff16905080156149db578254819084906008906149139084906801000000000000000090046bffffffffffffffffffffffff16615b31565b92506101000a8154816bffffffffffffffffffffffff02191690836bffffffffffffffffffffffff16021790555064e8d4a510008260010160089054906101000a90046dffffffffffffffffffffffffffff1684600101600e9054906101000a90046dffffffffffffffffffffffffffff1661498f9190615ace565b6149999190615b04565b6002840180547fffffffffffffffffffffffffffffffffffff0000000000000000000000000000166dffffffffffffffffffffffffffff929092169190911790555b505b6002808301549082015460018401546000926dffffffffffffffffffffffffffff6e0100000000000000000000000000009182900481169364e8d4a5100093614a2d939183169291900416615ace565b614a379190615b04565b614a419190615a8a565b6dffffffffffffffffffffffffffff1690508015614b3d57825481908490601490614a939084907401000000000000000000000000000000000000000090046bffffffffffffffffffffffff16615b31565b82546bffffffffffffffffffffffff9182166101009390930a9283029190920219909116179055506002820154600184015464e8d4a5100091614afc916dffffffffffffffffffffffffffff918216916e01000000000000000000000000000090910416615ace565b614b069190615b04565b83600201600e6101000a8154816dffffffffffffffffffffffffffff02191690836dffffffffffffffffffffffffffff1602179055505b5050505050565b6000828152600e602090815260408083206001600160a01b0387168452909152902060018101546dffffffffffffffffffffffffffff16614bc75760405162461bcd60e51b815260206004820152601d60248201527f6c6f636b546f6b656e733a204e6f20746f6b656e7320746f206c6f636b0000006044820152606401610c34565b614bd1824261547d565b8154640100000000900463ffffffff161115614c555760405162461bcd60e51b815260206004820152602160248201527f6c6f636b546f6b656e733a20546f6b656e7320616c7265616479206c6f636b6560448201527f64000000000000000000000000000000000000000000000000000000000000006064820152608401610c34565b62093a80821015614ca85760405162461bcd60e51b815260206004820152601f60248201527f6c6f636b546f6b656e733a204c6f636b2074696d6520746f6f2073686f7274006044820152606401610c34565b6301dfe200821115614cfc5760405162461bcd60e51b815260206004820152601e60248201527f6c6f636b546f6b656e733a204c6f636b2074696d6520746f6f206c6f6e6700006044820152606401610c34565b614d06824261547d565b815463ffffffff91909116640100000000027fffffffffffffffffffffffffffffffffffffffffffffffff00000000ffffffff9091161781556301d6a780614d5162093a8084615933565b614d5d906107d0615839565b614d6791906158a5565b815461ffff9190911662010000027fffffffffffffffffffffffffffffffffffffffffffffffffffffffff0000ffff909116178155614da68385612f1f565b60408051428152602081018490526001600160a01b038616917fd741e738a23fd18a03a26522320d9fc6cac1fed483e215ea9150fbc2fc43385d910160405180910390a250505050565b6003546040517f70a082310000000000000000000000000000000000000000000000000000000081523060048201526000916001600160a01b0316906370a0823190602401602060405180830381865afa158015614e52573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190614e7691906159b5565b9050600081831115614f19576003546040517fa9059cbb0000000000000000000000000000000000000000000000000000000081526001600160a01b038681166004830152602482018590529091169063a9059cbb906044016020604051808303816000875af1158015614eee573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190614f1291906158b9565b9050614fac565b6003546040517fa9059cbb0000000000000000000000000000000000000000000000000000000081526001600160a01b038681166004830152602482018690529091169063a9059cbb906044016020604051808303816000875af1158015614f85573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190614fa991906158b9565b90505b806132d05760405162461bcd60e51b815260206004820181905260248201527f736166655257545472616e736665723a207472616e73666572206661696c65646044820152606401610c34565b600b548111156150085750600b545b6040516001600160a01b0383169082156108fc029083906000818181858888f1935050505015801561503e573d6000803e3d6000fd5b5080600b60008282546150519190615933565b90915550505050565b6040516001600160a01b03831660248201526044810182905261250c9084907fa9059cbb00000000000000000000000000000000000000000000000000000000906064015b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08184030181529190526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fffffffff00000000000000000000000000000000000000000000000000000000909316929092179091526151da565b600080546001600160a01b038381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6040516001600160a01b03808516602483015283166044820152606481018290526132d09085907f23b872dd000000000000000000000000000000000000000000000000000000009060840161509f565b600061522f826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166152bf9092919063ffffffff16565b80519091501561250c578080602001905181019061524d91906158b9565b61250c5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f742073756363656564000000000000000000000000000000000000000000006064820152608401610c34565b60606152ce84846000856152d6565b949350505050565b60608247101561534e5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60448201527f722063616c6c00000000000000000000000000000000000000000000000000006064820152608401610c34565b843b61539c5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610c34565b600080866001600160a01b031685876040516153b89190615b84565b60006040518083038185875af1925050503d80600081146153f5576040519150601f19603f3d011682016040523d82523d6000602084013e6153fa565b606091505b509150915061540a828286615415565b979650505050505050565b60608315615424575081613371565b8251156154345782518084602001fd5b8160405162461bcd60e51b8152600401610c349190615ba0565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600082198211156154905761549061544e565b500190565b6000806000606084860312156154aa57600080fd5b505081359360208301359350604090920135919050565b600080600080608085870312156154d757600080fd5b5050823594602084013594506040840135936060013592509050565b6001600160a01b0381168114611d4357600080fd5b60006020828403121561551a57600080fd5b8135613371816154f3565b60006020828403121561553757600080fd5b5035919050565b6000806040838503121561555157600080fd5b823563ffffffff8116811461556557600080fd5b946020939093013593505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600080600080608085870312156155b857600080fd5b84356155c3816154f3565b935060208501356155d3816154f3565b925060408501359150606085013567ffffffffffffffff808211156155f757600080fd5b818701915087601f83011261560b57600080fd5b81358181111561561d5761561d615573565b604051601f82017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0908116603f0116810190838211818310171561566357615663615573565b816040528281528a602084870101111561567c57600080fd5b82602086016020830137600060208483010152809550505050505092959194509250565b6000806000606084860312156156b557600080fd5b8335925060208401356156c7816154f3565b929592945050506040919091013590565b600080604083850312156156eb57600080fd5b50508035926020909101359150565b803567ffffffffffffffff8116811461571257600080fd5b919050565b8015158114611d4357600080fd5b60008060006060848603121561573a57600080fd5b8335925061574a602085016156fa565b9150604084013561575a81615717565b809150509250925092565b6000806040838503121561577857600080fd5b82359150602083013561578a816154f3565b809150509250929050565b6000602082840312156157a757600080fd5b813561337181615717565b600080600080608085870312156157c857600080fd5b84356157d3816154f3565b966020860135965060408601359560600135945092505050565b60008060006060848603121561580257600080fd5b61580b846156fa565b9250602084013561574a816154f3565b6000806040838503121561582e57600080fd5b8235615565816154f3565b6000817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04831182151516156158715761587161544e565b500290565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b6000826158b4576158b4615876565b500490565b6000602082840312156158cb57600080fd5b815161337181615717565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60008060006060848603121561591a57600080fd5b8351925060208401519150604084015190509250925092565b6000828210156159455761594561544e565b500390565b60006dffffffffffffffffffffffffffff8083168185168083038211156159735761597361544e565b01949350505050565b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8214156159ae576159ae61544e565b5060010190565b6000602082840312156159c757600080fd5b5051919050565b600061ffff838116908316818110156159e9576159e961544e565b039392505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b600060808201868352602060808185015281875180845260a086019150828901935060005b81811015615a6a5784516001600160a01b031683529383019391830191600101615a45565b50506001600160a01b039690961660408501525050506060015292915050565b60006dffffffffffffffffffffffffffff838116908316818110156159e9576159e961544e565b600061ffff8083168185168083038211156159735761597361544e565b60006dffffffffffffffffffffffffffff80831681851681830481118215151615615afb57615afb61544e565b02949350505050565b60006dffffffffffffffffffffffffffff80841680615b2557615b25615876565b92169190910492915050565b60006bffffffffffffffffffffffff8083168185168083038211156159735761597361544e565b60005b83811015615b73578181015183820152602001615b5b565b838111156132d05750506000910152565b60008251615b96818460208701615b58565b9190910192915050565b6020815260008251806020840152615bbf816040850160208701615b58565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016919091016040019291505056fea2646970667358221220a935b59cd01cdc8d41a4cb7b683f8108b9785f9a584a25071f23552f5832113b64736f6c634300080a0033

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

000000000000000000000000DfDd3459D4F87234751696840092ee20C970Fb070000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d

-----Decoded View---------------
Arg [0] : _myo (address): 0xDfDd3459D4F87234751696840092ee20C970Fb07
Arg [1] : _router (address): 0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D

-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 000000000000000000000000DfDd3459D4F87234751696840092ee20C970Fb07
Arg [1] : 0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d


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.