Contract Address Details

0x4e530537a6c9542AfE6decB819F8080eAe16C5e4

Contract Name
MasterChef
Creator
0x9563e3–9e4e66 at 0xa5b119–27e759
Balance
0 Doge
Tokens
Fetching tokens...
Transactions
3,241 Transactions
Transfers
7,325 Transfers
Gas Used
353,414,204
Last Balance Update
25357034
Contract name:
MasterChef




Optimization enabled
true
Compiler version
v0.8.13+commit.abaa5c0e




Optimization runs
99999
EVM Version
default




Verified at
2022-09-10T16:55:21.029397Z

Constructor Arguments

0000000000000000000000003d84ce3da6ca29f8a1e87fae44e2840f2c3cbe850000000000000000000000009563e3507f1e68d5edba5c7340df0546339e4e660000000000000000000000009563e3507f1e68d5edba5c7340df0546339e4e660000000000000000000000000000000000000000000000878678326eac90000000000000000000000000000000000000000000000000000000000000001e8480

Arg [0] (address) : 0x3d84ce3da6ca29f8a1e87fae44e2840f2c3cbe85
Arg [1] (address) : 0x9563e3507f1e68d5edba5c7340df0546339e4e66
Arg [2] (address) : 0x9563e3507f1e68d5edba5c7340df0546339e4e66
Arg [3] (uint256) : 2500000000000000000000
Arg [4] (uint256) : 2000000

              

Contract source code

// Sources flattened with hardhat v2.11.1 https://hardhat.org

// File solmate/src/tokens/ERC20.sol@v6.6.1

pragma solidity >=0.8.0;

/// @notice Modern and gas efficient ERC20 + EIP-2612 implementation.
/// @author Solmate (https://github.com/transmissions11/solmate/blob/main/src/tokens/ERC20.sol)
/// @author Modified from Uniswap (https://github.com/Uniswap/uniswap-v2-core/blob/master/contracts/UniswapV2ERC20.sol)
/// @dev Do not manually set balances without updating totalSupply, as the sum of all user balances must not exceed it.
abstract contract ERC20 {
    /*//////////////////////////////////////////////////////////////
                                 EVENTS
    //////////////////////////////////////////////////////////////*/

    event Transfer(address indexed from, address indexed to, uint256 amount);

    event Approval(address indexed owner, address indexed spender, uint256 amount);

    /*//////////////////////////////////////////////////////////////
                            METADATA STORAGE
    //////////////////////////////////////////////////////////////*/

    string public name;

    string public symbol;

    uint8 public immutable decimals;

    /*//////////////////////////////////////////////////////////////
                              ERC20 STORAGE
    //////////////////////////////////////////////////////////////*/

    uint256 public totalSupply;

    mapping(address => uint256) public balanceOf;

    mapping(address => mapping(address => uint256)) public allowance;

    /*//////////////////////////////////////////////////////////////
                            EIP-2612 STORAGE
    //////////////////////////////////////////////////////////////*/

    uint256 internal immutable INITIAL_CHAIN_ID;

    bytes32 internal immutable INITIAL_DOMAIN_SEPARATOR;

    mapping(address => uint256) public nonces;

    /*//////////////////////////////////////////////////////////////
                               CONSTRUCTOR
    //////////////////////////////////////////////////////////////*/

    constructor(
        string memory _name,
        string memory _symbol,
        uint8 _decimals
    ) {
        name = _name;
        symbol = _symbol;
        decimals = _decimals;

        INITIAL_CHAIN_ID = block.chainid;
        INITIAL_DOMAIN_SEPARATOR = computeDomainSeparator();
    }

    /*//////////////////////////////////////////////////////////////
                               ERC20 LOGIC
    //////////////////////////////////////////////////////////////*/

    function approve(address spender, uint256 amount) public virtual returns (bool) {
        allowance[msg.sender][spender] = amount;

        emit Approval(msg.sender, spender, amount);

        return true;
    }

    function transfer(address to, uint256 amount) public virtual returns (bool) {
        balanceOf[msg.sender] -= amount;

        // Cannot overflow because the sum of all user
        // balances can't exceed the max uint256 value.
        unchecked {
            balanceOf[to] += amount;
        }

        emit Transfer(msg.sender, to, amount);

        return true;
    }

    function transferFrom(
        address from,
        address to,
        uint256 amount
    ) public virtual returns (bool) {
        uint256 allowed = allowance[from][msg.sender]; // Saves gas for limited approvals.

        if (allowed != type(uint256).max) allowance[from][msg.sender] = allowed - amount;

        balanceOf[from] -= amount;

        // Cannot overflow because the sum of all user
        // balances can't exceed the max uint256 value.
        unchecked {
            balanceOf[to] += amount;
        }

        emit Transfer(from, to, amount);

        return true;
    }

    /*//////////////////////////////////////////////////////////////
                             EIP-2612 LOGIC
    //////////////////////////////////////////////////////////////*/

    function permit(
        address owner,
        address spender,
        uint256 value,
        uint256 deadline,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) public virtual {
        require(deadline >= block.timestamp, "PERMIT_DEADLINE_EXPIRED");

        // Unchecked because the only math done is incrementing
        // the owner's nonce which cannot realistically overflow.
        unchecked {
            address recoveredAddress = ecrecover(
                keccak256(
                    abi.encodePacked(
                        "\x19\x01",
                        DOMAIN_SEPARATOR(),
                        keccak256(
                            abi.encode(
                                keccak256(
                                    "Permit(address owner,address spender,uint256 value,uint256 nonce,uint256 deadline)"
                                ),
                                owner,
                                spender,
                                value,
                                nonces[owner]++,
                                deadline
                            )
                        )
                    )
                ),
                v,
                r,
                s
            );

            require(recoveredAddress != address(0) && recoveredAddress == owner, "INVALID_SIGNER");

            allowance[recoveredAddress][spender] = value;
        }

        emit Approval(owner, spender, value);
    }

    function DOMAIN_SEPARATOR() public view virtual returns (bytes32) {
        return block.chainid == INITIAL_CHAIN_ID ? INITIAL_DOMAIN_SEPARATOR : computeDomainSeparator();
    }

    function computeDomainSeparator() internal view virtual returns (bytes32) {
        return
            keccak256(
                abi.encode(
                    keccak256("EIP712Domain(string name,string version,uint256 chainId,address verifyingContract)"),
                    keccak256(bytes(name)),
                    keccak256("1"),
                    block.chainid,
                    address(this)
                )
            );
    }

    /*//////////////////////////////////////////////////////////////
                        INTERNAL MINT/BURN LOGIC
    //////////////////////////////////////////////////////////////*/

    function _mint(address to, uint256 amount) internal virtual {
        totalSupply += amount;

        // Cannot overflow because the sum of all user
        // balances can't exceed the max uint256 value.
        unchecked {
            balanceOf[to] += amount;
        }

        emit Transfer(address(0), to, amount);
    }

    function _burn(address from, uint256 amount) internal virtual {
        balanceOf[from] -= amount;

        // Cannot underflow because a user's balance
        // will never be larger than the total supply.
        unchecked {
            totalSupply -= amount;
        }

        emit Transfer(from, address(0), amount);
    }
}


// File solmate/src/auth/Owned.sol@v6.6.1


pragma solidity >=0.8.0;

/// @notice Simple single owner authorization mixin.
/// @author Solmate (https://github.com/transmissions11/solmate/blob/main/src/auth/Owned.sol)
abstract contract Owned {
    /*//////////////////////////////////////////////////////////////
                                 EVENTS
    //////////////////////////////////////////////////////////////*/

    event OwnerUpdated(address indexed user, address indexed newOwner);

    /*//////////////////////////////////////////////////////////////
                            OWNERSHIP STORAGE
    //////////////////////////////////////////////////////////////*/

    address public owner;

    modifier onlyOwner() virtual {
        require(msg.sender == owner, "UNAUTHORIZED");

        _;
    }

    /*//////////////////////////////////////////////////////////////
                               CONSTRUCTOR
    //////////////////////////////////////////////////////////////*/

    constructor(address _owner) {
        owner = _owner;

        emit OwnerUpdated(address(0), _owner);
    }

    /*//////////////////////////////////////////////////////////////
                             OWNERSHIP LOGIC
    //////////////////////////////////////////////////////////////*/

    function setOwner(address newOwner) public virtual onlyOwner {
        owner = newOwner;

        emit OwnerUpdated(msg.sender, newOwner);
    }
}


// File contracts/Inuswap.sol


pragma solidity =0.8.13;


contract Inuswap is ERC20, Owned {
    constructor(address _owner) ERC20("Inuswap", "INU", 18) Owned(_owner) {}

    /// @notice Creates `_amount` token to `_to`. Must only be called by the owner (MasterChef).
    function mint(address _to, uint256 _amount) external onlyOwner {
        _mint(_to, _amount);
    }
}


// File @openzeppelin/contracts/token/ERC20/IERC20.sol@v4.7.3


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

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @dev Emitted when `value` tokens are moved from one account (`from`) to
     * another (`to`).
     *
     * Note that `value` may be zero.
     */
    event Transfer(address indexed from, address indexed to, uint256 value);

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

    /**
     * @dev Returns the amount of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

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

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

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

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

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


// File @openzeppelin/contracts/utils/math/SafeMath.sol@v4.7.3


// OpenZeppelin Contracts (last updated v4.6.0) (utils/math/SafeMath.sol)

pragma solidity ^0.8.0;

// CAUTION
// This version of SafeMath should only be used with Solidity 0.8 or later,
// because it relies on the compiler's built in overflow checks.

/**
 * @dev Wrappers over Solidity's arithmetic operations.
 *
 * NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler
 * now has built in overflow checking.
 */
library SafeMath {
    /**
     * @dev Returns the addition of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            uint256 c = a + b;
            if (c < a) return (false, 0);
            return (true, c);
        }
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b > a) return (false, 0);
            return (true, a - b);
        }
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            // Gas optimization: this is cheaper than requiring 'a' not being zero, but the
            // benefit is lost if 'b' is also tested.
            // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
            if (a == 0) return (true, 0);
            uint256 c = a * b;
            if (c / a != b) return (false, 0);
            return (true, c);
        }
    }

    /**
     * @dev Returns the division of two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b == 0) return (false, 0);
            return (true, a / b);
        }
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b == 0) return (false, 0);
            return (true, a % b);
        }
    }

    /**
     * @dev Returns the addition of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `+` operator.
     *
     * Requirements:
     *
     * - Addition cannot overflow.
     */
    function add(uint256 a, uint256 b) internal pure returns (uint256) {
        return a + b;
    }

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

    /**
     * @dev Returns the multiplication of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `*` operator.
     *
     * Requirements:
     *
     * - Multiplication cannot overflow.
     */
    function mul(uint256 a, uint256 b) internal pure returns (uint256) {
        return a * b;
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator.
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b) internal pure returns (uint256) {
        return a / b;
    }

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

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting with custom message on
     * overflow (when the result is negative).
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {trySub}.
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        unchecked {
            require(b <= a, errorMessage);
            return a - b;
        }
    }

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

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting with custom message when dividing by zero.
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {tryMod}.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        unchecked {
            require(b > 0, errorMessage);
            return a % b;
        }
    }
}


// File @openzeppelin/contracts/utils/Address.sol@v4.7.3


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

pragma solidity ^0.8.1;

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     * ====
     *
     * [IMPORTANT]
     * ====
     * You shouldn't rely on `isContract` to protect against flash loan attacks!
     *
     * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets
     * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract
     * constructor.
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize/address.code.length, which returns 0
        // for contracts in construction, since the code is only stored at the end
        // of the constructor execution.

        return account.code.length > 0;
    }

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

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

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


// File @openzeppelin/contracts/token/ERC20/extensions/draft-IERC20Permit.sol@v4.7.3


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

pragma solidity ^0.8.0;

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

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

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


// File @openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol@v4.7.3


// OpenZeppelin Contracts (last updated v4.7.0) (token/ERC20/utils/SafeERC20.sol)

pragma solidity ^0.8.0;



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

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

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

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

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

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

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

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

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


// File contracts/MasterChef.sol

// SPDX-License-Identifier: MIT

pragma solidity ^0.8.4;
// MasterChef fork based on goose's changelog :
// Upgraded to Solidity 0.8
// SafeMath not required as of Solidity 0.8 but we still import it to avoid changing the core logic
// Max deposit tax of 100 BP (1%)
// Check for potential duplicated pools before creation
// Emit EmissionUpdated upon emission update
// Using Solmate instead of Openzeppelin because t11s is my king.
// Doesn't support deflationary tokens, we won't add any of those
// For the rest, you know the drill

contract MasterChef is Owned {
    using SafeMath for uint256;
    using SafeERC20 for IERC20;
    // Info of each user.
    struct UserInfo {
        uint256 amount;
        uint256 rewardDebt;
    }

    // Info of each pool.
    struct PoolInfo {
        IERC20 lpToken; // Address of LP token contract.
        uint256 allocPoint; // How many allocation points assigned to this pool. EGGs to distribute per block.
        uint256 lastRewardBlock; // Last block number that EGGs distribution occurs.
        uint256 accInuPerShare; // Accumulated EGGs per share, times 1e12. See below.
        uint16 depositFeeBP; // Deposit fee in basis points
    }

    /// @notice The reward token contract.
    Inuswap public inu;
    /// @notice Treasury EOA
    address public devaddr;
    /// @notice Inu awarded per block
    uint256 public inuPerBlock;
    /// @notice Bonus muliplier
    uint256 public constant BONUS_MULTIPLIER = 1;
    /// @notice Treasury EOA
    address public feeAddress;
    /// @notice Info of each pool.
    PoolInfo[] public poolInfo;
    /// @notice Info of each user that stakes LP tokens.
    mapping(uint256 => mapping(address => UserInfo)) public userInfo;
    /// @notice Total allocation points. Must be the sum of all allocation points in all pools. In solidity, values are initialized at zero...
    uint256 public totalAllocPoint;
    /// @notice The block number when INU mining starts.
    uint256 public startBlock;

    mapping(IERC20 => bool) private poolExists;

    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 EmissionUpdated(uint256 previousInuPerBlock, uint256 newInuPerBlock);

    constructor(
        Inuswap _inu,
        address _devaddr,
        address _feeAddress,
        uint256 _inuPerBlock,
        uint256 _startBlock
    ) Owned(_devaddr) {
        inu = _inu;
        devaddr = _devaddr;
        feeAddress = _feeAddress;
        inuPerBlock = _inuPerBlock;
        startBlock = _startBlock;
    }

    function poolLength() external view returns (uint256) {
        return poolInfo.length;
    }

    // Check against the mapping if a pool already exists
    modifier nonDuplicated(IERC20 _lpToken) {
        require(poolExists[_lpToken] == false, "nonDuplicated: duplicated");
        _;
    }

    // Add a new lp to the pool. Can only be called by the owner.
    // Doesn't support deflationary tokens.
    function add(
        uint256 _allocPoint,
        IERC20 _lpToken,
        uint16 _depositFeeBP,
        bool _withUpdate
    ) public onlyOwner nonDuplicated(_lpToken) {
        require(_depositFeeBP <= 100, "add: invalid deposit fee basis points");
        if (_withUpdate) {
            massUpdatePools();
        }
        uint256 lastRewardBlock = block.number > startBlock
            ? block.number
            : startBlock;
        totalAllocPoint = totalAllocPoint.add(_allocPoint);

        // Add Pool to mapping
        poolExists[_lpToken] = true;

        poolInfo.push(
            PoolInfo({
                lpToken: _lpToken,
                allocPoint: _allocPoint,
                lastRewardBlock: lastRewardBlock,
                accInuPerShare: 0,
                depositFeeBP: _depositFeeBP
            })
        );
    }

    // Update the given pool's allocation point and deposit fee. Can only be called by the owner.
    function set(
        uint256 _pid,
        uint256 _allocPoint,
        uint16 _depositFeeBP,
        bool _withUpdate
    ) public onlyOwner {
        require(_depositFeeBP <= 100, "set: invalid deposit fee basis points");
        if (_withUpdate) {
            massUpdatePools();
        }

        totalAllocPoint = totalAllocPoint.sub(poolInfo[_pid].allocPoint).add(
            _allocPoint
        );
        poolInfo[_pid].allocPoint = _allocPoint;
        poolInfo[_pid].depositFeeBP = _depositFeeBP;
    }

    // Return reward multiplier over the given _from to _to block.
    function getMultiplier(uint256 _from, uint256 _to)
        public
        pure
        returns (uint256)
    {
        return _to.sub(_from).mul(BONUS_MULTIPLIER);
    }

    // View function to see pending INUs on frontend.
    function pendingInu(uint256 _pid, address _user)
        external
        view
        returns (uint256)
    {
        PoolInfo storage pool = poolInfo[_pid];
        UserInfo storage user = userInfo[_pid][_user];
        uint256 accInuPerShare = pool.accInuPerShare;
        uint256 lpSupply = pool.lpToken.balanceOf(address(this));
        if (block.number > pool.lastRewardBlock && lpSupply != 0) {
            uint256 multiplier = getMultiplier(
                pool.lastRewardBlock,
                block.number
            );
            uint256 inuReward = multiplier
                .mul(inuPerBlock)
                .mul(pool.allocPoint)
                .div(totalAllocPoint);
            accInuPerShare = accInuPerShare.add(
                inuReward.mul(1e12).div(lpSupply)
            );
        }

        return user.amount.mul(accInuPerShare).div(1e12).sub(user.rewardDebt);
    }

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

    // 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.lpToken.balanceOf(address(this));
        if (lpSupply == 0 || pool.allocPoint == 0) {
            pool.lastRewardBlock = block.number;
            return;
        }
        uint256 multiplier = getMultiplier(pool.lastRewardBlock, block.number);
        uint256 inuReward = multiplier
            .mul(inuPerBlock)
            .mul(pool.allocPoint)
            .div(totalAllocPoint);
        inu.mint(devaddr, inuReward.div(10));
        inu.mint(address(this), inuReward);
        pool.accInuPerShare = pool.accInuPerShare.add(
            inuReward.mul(1e12).div(lpSupply)
        );
        pool.lastRewardBlock = block.number;
    }

    // Deposit LP tokens to MasterChef for EGG allocation.
    function deposit(uint256 _pid, uint256 _amount) public {
        PoolInfo storage pool = poolInfo[_pid];
        UserInfo storage user = userInfo[_pid][msg.sender];
        updatePool(_pid);
        if (user.amount > 0) {
            uint256 pending = user
                .amount
                .mul(pool.accInuPerShare)
                .div(1e12)
                .sub(user.rewardDebt);
            if (pending > 0) {
                safeInuTransfer(msg.sender, pending);
            }
        }
        if (_amount > 0) {
            pool.lpToken.safeTransferFrom(
                address(msg.sender),
                address(this),
                _amount
            );
            if (pool.depositFeeBP > 0) {
                uint256 depositFee = _amount.mul(pool.depositFeeBP).div(10000);
                pool.lpToken.safeTransfer(feeAddress, depositFee);
                user.amount = user.amount.add(_amount).sub(depositFee);
            } else {
                user.amount = user.amount.add(_amount);
            }
        }
        user.rewardDebt = user.amount.mul(pool.accInuPerShare).div(1e12);
        emit Deposit(msg.sender, _pid, _amount);
    }

    // Withdraw LP tokens from MasterChef.
    function withdraw(uint256 _pid, uint256 _amount) public {
        PoolInfo storage pool = poolInfo[_pid];
        UserInfo storage user = userInfo[_pid][msg.sender];
        require(user.amount >= _amount, "withdraw: not good");
        updatePool(_pid);
        uint256 pending = user.amount.mul(pool.accInuPerShare).div(1e12).sub(
            user.rewardDebt
        );
        if (pending > 0) {
            safeInuTransfer(msg.sender, pending);
        }
        if (_amount > 0) {
            user.amount = user.amount.sub(_amount);
            pool.lpToken.safeTransfer(address(msg.sender), _amount);
        }
        user.rewardDebt = user.amount.mul(pool.accInuPerShare).div(1e12);
        emit Withdraw(msg.sender, _pid, _amount);
    }

    // CTRL+F Migrator
    // gotcha (  ═íÔîÉÔûá ═£╩û ═í-Ôûá)

    // Withdraw without caring about rewards. EMERGENCY ONLY.
    function emergencyWithdraw(uint256 _pid) public {
        PoolInfo storage pool = poolInfo[_pid];
        UserInfo storage user = userInfo[_pid][msg.sender];
        uint256 amount = user.amount;
        user.amount = 0;
        user.rewardDebt = 0;
        pool.lpToken.safeTransfer(address(msg.sender), amount);
        emit EmergencyWithdraw(msg.sender, _pid, amount);
    }

    // Safe inu transfer function, just in case a rounding error causes the pool to not have enough INUs.
    function safeInuTransfer(address _to, uint256 _amount) internal {
        uint256 inuBal = inu.balanceOf(address(this));
        if (_amount > inuBal) {
            inu.transfer(_to, inuBal);
        } else {
            inu.transfer(_to, _amount);
        }
    }

    // Update dev address by the previous dev.
    function setDevAddress(address _devaddr) public {
        require(msg.sender == devaddr, "dev: wut?");
        devaddr = _devaddr;
    }

    // Update fee address by the previous fee address.
    function setFeeAddress(address _feeAddress) public {
        require(msg.sender == feeAddress, "setFeeAddress: FORBIDDEN");
        feeAddress = _feeAddress;
    }

    // Pancake has to add hidden dummy pools inorder to alter the emission, here we make it simple and transparent to all.
    function updateEmissionRate(uint256 _inuPerBlock) public onlyOwner {
        massUpdatePools();
        emit EmissionUpdated(inuPerBlock, _inuPerBlock);
        inuPerBlock = _inuPerBlock;
    }

    // Thanks for reviewing
}
        

Contract ABI

[{"type":"constructor","stateMutability":"nonpayable","inputs":[{"type":"address","name":"_inu","internalType":"contract Inuswap"},{"type":"address","name":"_devaddr","internalType":"address"},{"type":"address","name":"_feeAddress","internalType":"address"},{"type":"uint256","name":"_inuPerBlock","internalType":"uint256"},{"type":"uint256","name":"_startBlock","internalType":"uint256"}]},{"type":"event","name":"Deposit","inputs":[{"type":"address","name":"user","internalType":"address","indexed":true},{"type":"uint256","name":"pid","internalType":"uint256","indexed":true},{"type":"uint256","name":"amount","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"event","name":"EmergencyWithdraw","inputs":[{"type":"address","name":"user","internalType":"address","indexed":true},{"type":"uint256","name":"pid","internalType":"uint256","indexed":true},{"type":"uint256","name":"amount","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"event","name":"EmissionUpdated","inputs":[{"type":"uint256","name":"previousInuPerBlock","internalType":"uint256","indexed":false},{"type":"uint256","name":"newInuPerBlock","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"event","name":"OwnerUpdated","inputs":[{"type":"address","name":"user","internalType":"address","indexed":true},{"type":"address","name":"newOwner","internalType":"address","indexed":true}],"anonymous":false},{"type":"event","name":"Withdraw","inputs":[{"type":"address","name":"user","internalType":"address","indexed":true},{"type":"uint256","name":"pid","internalType":"uint256","indexed":true},{"type":"uint256","name":"amount","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"BONUS_MULTIPLIER","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"add","inputs":[{"type":"uint256","name":"_allocPoint","internalType":"uint256"},{"type":"address","name":"_lpToken","internalType":"contract IERC20"},{"type":"uint16","name":"_depositFeeBP","internalType":"uint16"},{"type":"bool","name":"_withUpdate","internalType":"bool"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"deposit","inputs":[{"type":"uint256","name":"_pid","internalType":"uint256"},{"type":"uint256","name":"_amount","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"devaddr","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"emergencyWithdraw","inputs":[{"type":"uint256","name":"_pid","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"feeAddress","inputs":[]},{"type":"function","stateMutability":"pure","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"getMultiplier","inputs":[{"type":"uint256","name":"_from","internalType":"uint256"},{"type":"uint256","name":"_to","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"contract Inuswap"}],"name":"inu","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"inuPerBlock","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"massUpdatePools","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"owner","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"pendingInu","inputs":[{"type":"uint256","name":"_pid","internalType":"uint256"},{"type":"address","name":"_user","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"lpToken","internalType":"contract IERC20"},{"type":"uint256","name":"allocPoint","internalType":"uint256"},{"type":"uint256","name":"lastRewardBlock","internalType":"uint256"},{"type":"uint256","name":"accInuPerShare","internalType":"uint256"},{"type":"uint16","name":"depositFeeBP","internalType":"uint16"}],"name":"poolInfo","inputs":[{"type":"uint256","name":"","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"poolLength","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"set","inputs":[{"type":"uint256","name":"_pid","internalType":"uint256"},{"type":"uint256","name":"_allocPoint","internalType":"uint256"},{"type":"uint16","name":"_depositFeeBP","internalType":"uint16"},{"type":"bool","name":"_withUpdate","internalType":"bool"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setDevAddress","inputs":[{"type":"address","name":"_devaddr","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setFeeAddress","inputs":[{"type":"address","name":"_feeAddress","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setOwner","inputs":[{"type":"address","name":"newOwner","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"startBlock","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"totalAllocPoint","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"updateEmissionRate","inputs":[{"type":"uint256","name":"_inuPerBlock","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"updatePool","inputs":[{"type":"uint256","name":"_pid","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"amount","internalType":"uint256"},{"type":"uint256","name":"rewardDebt","internalType":"uint256"}],"name":"userInfo","inputs":[{"type":"uint256","name":"","internalType":"uint256"},{"type":"address","name":"","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"withdraw","inputs":[{"type":"uint256","name":"_pid","internalType":"uint256"},{"type":"uint256","name":"_amount","internalType":"uint256"}]}]
            

Contract Creation Code

0x60806040523480156200001157600080fd5b5060405162002043380380620020438339810160408190526200003491620000e3565b600080546001600160a01b0319166001600160a01b03861690811782556040518692907f8292fce18fa69edf4db7b94ea2e58241df0ae57f97e0a6c9b29067028bf92d76908290a350600180546001600160a01b03199081166001600160a01b03978816179091556002805482169587169590951790945560048054909416929094169190911790915560035560085562000148565b6001600160a01b0381168114620000e057600080fd5b50565b600080600080600060a08688031215620000fc57600080fd5b85516200010981620000ca565b60208701519095506200011c81620000ca565b60408701519094506200012f81620000ca565b6060870151608090970151959894975095949392505050565b611eeb80620001586000396000f3fe608060405234801561001057600080fd5b50600436106101975760003560e01c8063630b5ba1116100e35780638dbb1e3a1161008c578063d49e77cd11610066578063d49e77cd146103c4578063d9638422146103e4578063e2bbb158146103f757600080fd5b80638dbb1e3a1461035757806393f1a40b1461036a578063d0d41fe1146103b157600080fd5b80638705fcd4116100bd5780638705fcd41461031c5780638aa285501461032f5780638da5cb5b1461033757600080fd5b8063630b5ba1146102ee5780638144afa0146102f657806384e82a331461030957600080fd5b806341275358116101455780634e309dc21161011f5780634e309dc2146102a857806351eb05a6146102c85780635312ea8e146102db57600080fd5b80634127535814610247578063441a3e701461028c57806348cd4cb11461029f57600080fd5b806313af40351161017657806313af4035146101d55780631526fe27146101e857806317caf6f11461023e57600080fd5b80621721261461019c578063081e3eda146101b85780630ba84cd2146101c0575b600080fd5b6101a560035481565b6040519081526020015b60405180910390f35b6005546101a5565b6101d36101ce366004611b59565b61040a565b005b6101d36101e3366004611b97565b6104d9565b6101fb6101f6366004611b59565b6105ca565b6040805173ffffffffffffffffffffffffffffffffffffffff9096168652602086019490945292840191909152606083015261ffff16608082015260a0016101af565b6101a560075481565b6004546102679073ffffffffffffffffffffffffffffffffffffffff1681565b60405173ffffffffffffffffffffffffffffffffffffffff90911681526020016101af565b6101d361029a366004611bb4565b610626565b6101a560085481565b6001546102679073ffffffffffffffffffffffffffffffffffffffff1681565b6101d36102d6366004611b59565b6107b8565b6101d36102e9366004611b59565b610a5c565b6101d3610b0c565b6101a5610304366004611bd6565b610b37565b6101d3610317366004611c2b565b610cb9565b6101d361032a366004611b97565b611044565b6101a5600181565b6000546102679073ffffffffffffffffffffffffffffffffffffffff1681565b6101a5610365366004611bb4565b61110c565b61039c610378366004611bd6565b60066020908152600092835260408084209091529082529020805460019091015482565b604080519283526020830191909152016101af565b6101d36103bf366004611b97565b611124565b6002546102679073ffffffffffffffffffffffffffffffffffffffff1681565b6101d36103f2366004611c7c565b6111ec565b6101d3610405366004611bb4565b6113c7565b60005473ffffffffffffffffffffffffffffffffffffffff163314610490576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600c60248201527f554e415554484f52495a4544000000000000000000000000000000000000000060448201526064015b60405180910390fd5b610498610b0c565b60035460408051918252602082018390527f85ee8becc55d4250f969916f9c339815f9e41767bc0af6a0bbfd9fa38bfb3566910160405180910390a1600355565b60005473ffffffffffffffffffffffffffffffffffffffff16331461055a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600c60248201527f554e415554484f52495a454400000000000000000000000000000000000000006044820152606401610487565b600080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff83169081178255604051909133917f8292fce18fa69edf4db7b94ea2e58241df0ae57f97e0a6c9b29067028bf92d769190a350565b600581815481106105da57600080fd5b60009182526020909120600590910201805460018201546002830154600384015460049094015473ffffffffffffffffffffffffffffffffffffffff90931694509092909161ffff1685565b60006005838154811061063b5761063b611ca9565b6000918252602080832086845260068252604080852033865290925292208054600590920290920192508311156106ce576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601260248201527f77697468647261773a206e6f7420676f6f6400000000000000000000000000006044820152606401610487565b6106d7846107b8565b6000610711826001015461070b64e8d4a510006107058760030154876000015461155690919063ffffffff16565b90611562565b9061156e565b9050801561072357610723338261157a565b831561075a578154610735908561156e565b8255825461075a9073ffffffffffffffffffffffffffffffffffffffff16338661171f565b600383015482546107759164e8d4a510009161070591611556565b6001830155604051848152859033907ff279e6a1f5e320cca91135676d9cb6e44ca8a08c0b88342bcdb1144f6511b5689060200160405180910390a35050505050565b6000600582815481106107cd576107cd611ca9565b90600052602060002090600502019050806002015443116107ec575050565b80546040517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015260009173ffffffffffffffffffffffffffffffffffffffff16906370a0823190602401602060405180830381865afa15801561085a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061087e9190611cd8565b905080158061088f57506001820154155b1561089f57504360029091015550565b60006108af83600201544361110c565b905060006108dc60075461070586600101546108d66003548761155690919063ffffffff16565b90611556565b60015460025491925073ffffffffffffffffffffffffffffffffffffffff908116916340c10f19911661091084600a611562565b6040517fffffffff0000000000000000000000000000000000000000000000000000000060e085901b16815273ffffffffffffffffffffffffffffffffffffffff90921660048301526024820152604401600060405180830381600087803b15801561097b57600080fd5b505af115801561098f573d6000803e3d6000fd5b50506001546040517f40c10f190000000000000000000000000000000000000000000000000000000081523060048201526024810185905273ffffffffffffffffffffffffffffffffffffffff90911692506340c10f199150604401600060405180830381600087803b158015610a0557600080fd5b505af1158015610a19573d6000803e3d6000fd5b50505050610a47610a3c8461070564e8d4a510008561155690919063ffffffff16565b6003860154906117f3565b60038501555050436002909201919091555050565b600060058281548110610a7157610a71611ca9565b600091825260208083208584526006825260408085203380875293528420805485825560018201959095556005909302018054909450919291610ace9173ffffffffffffffffffffffffffffffffffffffff91909116908361171f565b604051818152849033907fbb757047c2b5f3974fe26b7c10f732e7bce710b0952a71082702781e62ae0595906020015b60405180910390a350505050565b60055460005b81811015610b3357610b23816107b8565b610b2c81611d20565b9050610b12565b5050565b60008060058481548110610b4d57610b4d611ca9565b6000918252602080832087845260068252604080852073ffffffffffffffffffffffffffffffffffffffff898116875293528085206005949094029091016003810154815492517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015291965093949291909116906370a0823190602401602060405180830381865afa158015610bee573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c129190611cd8565b9050836002015443118015610c2657508015155b15610c86576000610c3b85600201544361110c565b90506000610c6260075461070588600101546108d66003548761155690919063ffffffff16565b9050610c81610c7a846107058464e8d4a51000611556565b85906117f3565b935050505b610cae836001015461070b64e8d4a5100061070586886000015461155690919063ffffffff16565b979650505050505050565b60005473ffffffffffffffffffffffffffffffffffffffff163314610d3a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600c60248201527f554e415554484f52495a454400000000000000000000000000000000000000006044820152606401610487565b73ffffffffffffffffffffffffffffffffffffffff8316600090815260096020526040902054839060ff1615610dcc576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601960248201527f6e6f6e4475706c6963617465643a206475706c696361746564000000000000006044820152606401610487565b60648361ffff161115610e61576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602560248201527f6164643a20696e76616c6964206465706f73697420666565206261736973207060448201527f6f696e74730000000000000000000000000000000000000000000000000000006064820152608401610487565b8115610e6f57610e6f610b0c565b60006008544311610e8257600854610e84565b435b600754909150610e9490876117f3565b60075573ffffffffffffffffffffffffffffffffffffffff9485166000818152600960209081526040808320805460017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff009091168117909155815160a081018352948552918401998a5283019384526060830182815261ffff978816608085019081526005805493840181559384905293517f036b6384b5eca791c62761152d0c79bb0604c104a5fb6f4eb0703f3154bb3db09290930291820180547fffffffffffffffffffffffff000000000000000000000000000000000000000016939099169290921790975596517f036b6384b5eca791c62761152d0c79bb0604c104a5fb6f4eb0703f3154bb3db187015590517f036b6384b5eca791c62761152d0c79bb0604c104a5fb6f4eb0703f3154bb3db286015594517f036b6384b5eca791c62761152d0c79bb0604c104a5fb6f4eb0703f3154bb3db3850155505091517f036b6384b5eca791c62761152d0c79bb0604c104a5fb6f4eb0703f3154bb3db490910180547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00001691909216179055565b60045473ffffffffffffffffffffffffffffffffffffffff1633146110c5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601860248201527f736574466565416464726573733a20464f5242494444454e00000000000000006044820152606401610487565b600480547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b600061111d60016108d6848661156e565b9392505050565b60025473ffffffffffffffffffffffffffffffffffffffff1633146111a5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600960248201527f6465763a207775743f00000000000000000000000000000000000000000000006044820152606401610487565b600280547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b60005473ffffffffffffffffffffffffffffffffffffffff16331461126d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600c60248201527f554e415554484f52495a454400000000000000000000000000000000000000006044820152606401610487565b60648261ffff161115611302576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602560248201527f7365743a20696e76616c6964206465706f73697420666565206261736973207060448201527f6f696e74730000000000000000000000000000000000000000000000000000006064820152608401610487565b801561131057611310610b0c565b6113538361134d6005878154811061132a5761132a611ca9565b90600052602060002090600502016001015460075461156e90919063ffffffff16565b906117f3565b600781905550826005858154811061136d5761136d611ca9565b906000526020600020906005020160010181905550816005858154811061139657611396611ca9565b906000526020600020906005020160040160006101000a81548161ffff021916908361ffff16021790555050505050565b6000600583815481106113dc576113dc611ca9565b6000918252602080832086845260068252604080852033865290925292206005909102909101915061140d846107b8565b805415611456576000611442826001015461070b64e8d4a510006107058760030154876000015461155690919063ffffffff16565b9050801561145457611454338261157a565b505b82156115025781546114809073ffffffffffffffffffffffffffffffffffffffff163330866117ff565b600482015461ffff16156114f35760048201546000906114ad906127109061070590879061ffff16611556565b60045484549192506114d99173ffffffffffffffffffffffffffffffffffffffff90811691168361171f565b81546114eb90829061070b90876117f3565b825550611502565b80546114ff90846117f3565b81555b6003820154815461151d9164e8d4a510009161070591611556565b6001820155604051838152849033907f90890809c654f11d6e72a28fa60149770a0d11ec6c92319d6ceb2bb0a4ea1a1590602001610afe565b600061111d8284611d58565b600061111d8284611d95565b600061111d8284611dd0565b6001546040517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015260009173ffffffffffffffffffffffffffffffffffffffff16906370a0823190602401602060405180830381865afa1580156115e9573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061160d9190611cd8565b9050808211156116bb576001546040517fa9059cbb00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff8581166004830152602482018490529091169063a9059cbb906044015b6020604051808303816000875af1158015611691573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116b59190611de7565b50505050565b6001546040517fa9059cbb00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff8581166004830152602482018590529091169063a9059cbb90604401611672565b505050565b60405173ffffffffffffffffffffffffffffffffffffffff831660248201526044810182905261171a9084907fa9059cbb00000000000000000000000000000000000000000000000000000000906064015b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08184030181529190526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fffffffff000000000000000000000000000000000000000000000000000000009093169290921790915261185d565b600061111d8284611e04565b60405173ffffffffffffffffffffffffffffffffffffffff808516602483015283166044820152606481018290526116b59085907f23b872dd0000000000000000000000000000000000000000000000000000000090608401611771565b60006118bf826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff166119699092919063ffffffff16565b80519091501561171a57808060200190518101906118dd9190611de7565b61171a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f742073756363656564000000000000000000000000000000000000000000006064820152608401610487565b60606119788484600085611980565b949350505050565b606082471015611a12576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60448201527f722063616c6c00000000000000000000000000000000000000000000000000006064820152608401610487565b73ffffffffffffffffffffffffffffffffffffffff85163b611a90576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610487565b6000808673ffffffffffffffffffffffffffffffffffffffff168587604051611ab99190611e48565b60006040518083038185875af1925050503d8060008114611af6576040519150601f19603f3d011682016040523d82523d6000602084013e611afb565b606091505b5091509150610cae82828660608315611b1557508161111d565b825115611b255782518084602001fd5b816040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016104879190611e64565b600060208284031215611b6b57600080fd5b5035919050565b73ffffffffffffffffffffffffffffffffffffffff81168114611b9457600080fd5b50565b600060208284031215611ba957600080fd5b813561111d81611b72565b60008060408385031215611bc757600080fd5b50508035926020909101359150565b60008060408385031215611be957600080fd5b823591506020830135611bfb81611b72565b809150509250929050565b803561ffff81168114611c1857600080fd5b919050565b8015158114611b9457600080fd5b60008060008060808587031215611c4157600080fd5b843593506020850135611c5381611b72565b9250611c6160408601611c06565b91506060850135611c7181611c1d565b939692955090935050565b60008060008060808587031215611c9257600080fd5b8435935060208501359250611c6160408601611c06565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b600060208284031215611cea57600080fd5b5051919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8203611d5157611d51611cf1565b5060010190565b6000817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615611d9057611d90611cf1565b500290565b600082611dcb577f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b500490565b600082821015611de257611de2611cf1565b500390565b600060208284031215611df957600080fd5b815161111d81611c1d565b60008219821115611e1757611e17611cf1565b500190565b60005b83811015611e37578181015183820152602001611e1f565b838111156116b55750506000910152565b60008251611e5a818460208701611e1c565b9190910192915050565b6020815260008251806020840152611e83816040850160208701611e1c565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016919091016040019291505056fea26469706673582212208d7efe00f3af0fc438dad5cd859b2b766c2019da01dc0ed4de460fac3467579a64736f6c634300080d00330000000000000000000000003d84ce3da6ca29f8a1e87fae44e2840f2c3cbe850000000000000000000000009563e3507f1e68d5edba5c7340df0546339e4e660000000000000000000000009563e3507f1e68d5edba5c7340df0546339e4e660000000000000000000000000000000000000000000000878678326eac90000000000000000000000000000000000000000000000000000000000000001e8480

Deployed ByteCode

0x608060405234801561001057600080fd5b50600436106101975760003560e01c8063630b5ba1116100e35780638dbb1e3a1161008c578063d49e77cd11610066578063d49e77cd146103c4578063d9638422146103e4578063e2bbb158146103f757600080fd5b80638dbb1e3a1461035757806393f1a40b1461036a578063d0d41fe1146103b157600080fd5b80638705fcd4116100bd5780638705fcd41461031c5780638aa285501461032f5780638da5cb5b1461033757600080fd5b8063630b5ba1146102ee5780638144afa0146102f657806384e82a331461030957600080fd5b806341275358116101455780634e309dc21161011f5780634e309dc2146102a857806351eb05a6146102c85780635312ea8e146102db57600080fd5b80634127535814610247578063441a3e701461028c57806348cd4cb11461029f57600080fd5b806313af40351161017657806313af4035146101d55780631526fe27146101e857806317caf6f11461023e57600080fd5b80621721261461019c578063081e3eda146101b85780630ba84cd2146101c0575b600080fd5b6101a560035481565b6040519081526020015b60405180910390f35b6005546101a5565b6101d36101ce366004611b59565b61040a565b005b6101d36101e3366004611b97565b6104d9565b6101fb6101f6366004611b59565b6105ca565b6040805173ffffffffffffffffffffffffffffffffffffffff9096168652602086019490945292840191909152606083015261ffff16608082015260a0016101af565b6101a560075481565b6004546102679073ffffffffffffffffffffffffffffffffffffffff1681565b60405173ffffffffffffffffffffffffffffffffffffffff90911681526020016101af565b6101d361029a366004611bb4565b610626565b6101a560085481565b6001546102679073ffffffffffffffffffffffffffffffffffffffff1681565b6101d36102d6366004611b59565b6107b8565b6101d36102e9366004611b59565b610a5c565b6101d3610b0c565b6101a5610304366004611bd6565b610b37565b6101d3610317366004611c2b565b610cb9565b6101d361032a366004611b97565b611044565b6101a5600181565b6000546102679073ffffffffffffffffffffffffffffffffffffffff1681565b6101a5610365366004611bb4565b61110c565b61039c610378366004611bd6565b60066020908152600092835260408084209091529082529020805460019091015482565b604080519283526020830191909152016101af565b6101d36103bf366004611b97565b611124565b6002546102679073ffffffffffffffffffffffffffffffffffffffff1681565b6101d36103f2366004611c7c565b6111ec565b6101d3610405366004611bb4565b6113c7565b60005473ffffffffffffffffffffffffffffffffffffffff163314610490576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600c60248201527f554e415554484f52495a4544000000000000000000000000000000000000000060448201526064015b60405180910390fd5b610498610b0c565b60035460408051918252602082018390527f85ee8becc55d4250f969916f9c339815f9e41767bc0af6a0bbfd9fa38bfb3566910160405180910390a1600355565b60005473ffffffffffffffffffffffffffffffffffffffff16331461055a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600c60248201527f554e415554484f52495a454400000000000000000000000000000000000000006044820152606401610487565b600080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff83169081178255604051909133917f8292fce18fa69edf4db7b94ea2e58241df0ae57f97e0a6c9b29067028bf92d769190a350565b600581815481106105da57600080fd5b60009182526020909120600590910201805460018201546002830154600384015460049094015473ffffffffffffffffffffffffffffffffffffffff90931694509092909161ffff1685565b60006005838154811061063b5761063b611ca9565b6000918252602080832086845260068252604080852033865290925292208054600590920290920192508311156106ce576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601260248201527f77697468647261773a206e6f7420676f6f6400000000000000000000000000006044820152606401610487565b6106d7846107b8565b6000610711826001015461070b64e8d4a510006107058760030154876000015461155690919063ffffffff16565b90611562565b9061156e565b9050801561072357610723338261157a565b831561075a578154610735908561156e565b8255825461075a9073ffffffffffffffffffffffffffffffffffffffff16338661171f565b600383015482546107759164e8d4a510009161070591611556565b6001830155604051848152859033907ff279e6a1f5e320cca91135676d9cb6e44ca8a08c0b88342bcdb1144f6511b5689060200160405180910390a35050505050565b6000600582815481106107cd576107cd611ca9565b90600052602060002090600502019050806002015443116107ec575050565b80546040517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015260009173ffffffffffffffffffffffffffffffffffffffff16906370a0823190602401602060405180830381865afa15801561085a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061087e9190611cd8565b905080158061088f57506001820154155b1561089f57504360029091015550565b60006108af83600201544361110c565b905060006108dc60075461070586600101546108d66003548761155690919063ffffffff16565b90611556565b60015460025491925073ffffffffffffffffffffffffffffffffffffffff908116916340c10f19911661091084600a611562565b6040517fffffffff0000000000000000000000000000000000000000000000000000000060e085901b16815273ffffffffffffffffffffffffffffffffffffffff90921660048301526024820152604401600060405180830381600087803b15801561097b57600080fd5b505af115801561098f573d6000803e3d6000fd5b50506001546040517f40c10f190000000000000000000000000000000000000000000000000000000081523060048201526024810185905273ffffffffffffffffffffffffffffffffffffffff90911692506340c10f199150604401600060405180830381600087803b158015610a0557600080fd5b505af1158015610a19573d6000803e3d6000fd5b50505050610a47610a3c8461070564e8d4a510008561155690919063ffffffff16565b6003860154906117f3565b60038501555050436002909201919091555050565b600060058281548110610a7157610a71611ca9565b600091825260208083208584526006825260408085203380875293528420805485825560018201959095556005909302018054909450919291610ace9173ffffffffffffffffffffffffffffffffffffffff91909116908361171f565b604051818152849033907fbb757047c2b5f3974fe26b7c10f732e7bce710b0952a71082702781e62ae0595906020015b60405180910390a350505050565b60055460005b81811015610b3357610b23816107b8565b610b2c81611d20565b9050610b12565b5050565b60008060058481548110610b4d57610b4d611ca9565b6000918252602080832087845260068252604080852073ffffffffffffffffffffffffffffffffffffffff898116875293528085206005949094029091016003810154815492517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015291965093949291909116906370a0823190602401602060405180830381865afa158015610bee573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c129190611cd8565b9050836002015443118015610c2657508015155b15610c86576000610c3b85600201544361110c565b90506000610c6260075461070588600101546108d66003548761155690919063ffffffff16565b9050610c81610c7a846107058464e8d4a51000611556565b85906117f3565b935050505b610cae836001015461070b64e8d4a5100061070586886000015461155690919063ffffffff16565b979650505050505050565b60005473ffffffffffffffffffffffffffffffffffffffff163314610d3a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600c60248201527f554e415554484f52495a454400000000000000000000000000000000000000006044820152606401610487565b73ffffffffffffffffffffffffffffffffffffffff8316600090815260096020526040902054839060ff1615610dcc576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601960248201527f6e6f6e4475706c6963617465643a206475706c696361746564000000000000006044820152606401610487565b60648361ffff161115610e61576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602560248201527f6164643a20696e76616c6964206465706f73697420666565206261736973207060448201527f6f696e74730000000000000000000000000000000000000000000000000000006064820152608401610487565b8115610e6f57610e6f610b0c565b60006008544311610e8257600854610e84565b435b600754909150610e9490876117f3565b60075573ffffffffffffffffffffffffffffffffffffffff9485166000818152600960209081526040808320805460017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff009091168117909155815160a081018352948552918401998a5283019384526060830182815261ffff978816608085019081526005805493840181559384905293517f036b6384b5eca791c62761152d0c79bb0604c104a5fb6f4eb0703f3154bb3db09290930291820180547fffffffffffffffffffffffff000000000000000000000000000000000000000016939099169290921790975596517f036b6384b5eca791c62761152d0c79bb0604c104a5fb6f4eb0703f3154bb3db187015590517f036b6384b5eca791c62761152d0c79bb0604c104a5fb6f4eb0703f3154bb3db286015594517f036b6384b5eca791c62761152d0c79bb0604c104a5fb6f4eb0703f3154bb3db3850155505091517f036b6384b5eca791c62761152d0c79bb0604c104a5fb6f4eb0703f3154bb3db490910180547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00001691909216179055565b60045473ffffffffffffffffffffffffffffffffffffffff1633146110c5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601860248201527f736574466565416464726573733a20464f5242494444454e00000000000000006044820152606401610487565b600480547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b600061111d60016108d6848661156e565b9392505050565b60025473ffffffffffffffffffffffffffffffffffffffff1633146111a5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600960248201527f6465763a207775743f00000000000000000000000000000000000000000000006044820152606401610487565b600280547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b60005473ffffffffffffffffffffffffffffffffffffffff16331461126d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600c60248201527f554e415554484f52495a454400000000000000000000000000000000000000006044820152606401610487565b60648261ffff161115611302576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602560248201527f7365743a20696e76616c6964206465706f73697420666565206261736973207060448201527f6f696e74730000000000000000000000000000000000000000000000000000006064820152608401610487565b801561131057611310610b0c565b6113538361134d6005878154811061132a5761132a611ca9565b90600052602060002090600502016001015460075461156e90919063ffffffff16565b906117f3565b600781905550826005858154811061136d5761136d611ca9565b906000526020600020906005020160010181905550816005858154811061139657611396611ca9565b906000526020600020906005020160040160006101000a81548161ffff021916908361ffff16021790555050505050565b6000600583815481106113dc576113dc611ca9565b6000918252602080832086845260068252604080852033865290925292206005909102909101915061140d846107b8565b805415611456576000611442826001015461070b64e8d4a510006107058760030154876000015461155690919063ffffffff16565b9050801561145457611454338261157a565b505b82156115025781546114809073ffffffffffffffffffffffffffffffffffffffff163330866117ff565b600482015461ffff16156114f35760048201546000906114ad906127109061070590879061ffff16611556565b60045484549192506114d99173ffffffffffffffffffffffffffffffffffffffff90811691168361171f565b81546114eb90829061070b90876117f3565b825550611502565b80546114ff90846117f3565b81555b6003820154815461151d9164e8d4a510009161070591611556565b6001820155604051838152849033907f90890809c654f11d6e72a28fa60149770a0d11ec6c92319d6ceb2bb0a4ea1a1590602001610afe565b600061111d8284611d58565b600061111d8284611d95565b600061111d8284611dd0565b6001546040517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015260009173ffffffffffffffffffffffffffffffffffffffff16906370a0823190602401602060405180830381865afa1580156115e9573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061160d9190611cd8565b9050808211156116bb576001546040517fa9059cbb00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff8581166004830152602482018490529091169063a9059cbb906044015b6020604051808303816000875af1158015611691573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116b59190611de7565b50505050565b6001546040517fa9059cbb00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff8581166004830152602482018590529091169063a9059cbb90604401611672565b505050565b60405173ffffffffffffffffffffffffffffffffffffffff831660248201526044810182905261171a9084907fa9059cbb00000000000000000000000000000000000000000000000000000000906064015b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08184030181529190526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fffffffff000000000000000000000000000000000000000000000000000000009093169290921790915261185d565b600061111d8284611e04565b60405173ffffffffffffffffffffffffffffffffffffffff808516602483015283166044820152606481018290526116b59085907f23b872dd0000000000000000000000000000000000000000000000000000000090608401611771565b60006118bf826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff166119699092919063ffffffff16565b80519091501561171a57808060200190518101906118dd9190611de7565b61171a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f742073756363656564000000000000000000000000000000000000000000006064820152608401610487565b60606119788484600085611980565b949350505050565b606082471015611a12576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60448201527f722063616c6c00000000000000000000000000000000000000000000000000006064820152608401610487565b73ffffffffffffffffffffffffffffffffffffffff85163b611a90576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610487565b6000808673ffffffffffffffffffffffffffffffffffffffff168587604051611ab99190611e48565b60006040518083038185875af1925050503d8060008114611af6576040519150601f19603f3d011682016040523d82523d6000602084013e611afb565b606091505b5091509150610cae82828660608315611b1557508161111d565b825115611b255782518084602001fd5b816040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016104879190611e64565b600060208284031215611b6b57600080fd5b5035919050565b73ffffffffffffffffffffffffffffffffffffffff81168114611b9457600080fd5b50565b600060208284031215611ba957600080fd5b813561111d81611b72565b60008060408385031215611bc757600080fd5b50508035926020909101359150565b60008060408385031215611be957600080fd5b823591506020830135611bfb81611b72565b809150509250929050565b803561ffff81168114611c1857600080fd5b919050565b8015158114611b9457600080fd5b60008060008060808587031215611c4157600080fd5b843593506020850135611c5381611b72565b9250611c6160408601611c06565b91506060850135611c7181611c1d565b939692955090935050565b60008060008060808587031215611c9257600080fd5b8435935060208501359250611c6160408601611c06565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b600060208284031215611cea57600080fd5b5051919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8203611d5157611d51611cf1565b5060010190565b6000817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615611d9057611d90611cf1565b500290565b600082611dcb577f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b500490565b600082821015611de257611de2611cf1565b500390565b600060208284031215611df957600080fd5b815161111d81611c1d565b60008219821115611e1757611e17611cf1565b500190565b60005b83811015611e37578181015183820152602001611e1f565b838111156116b55750506000910152565b60008251611e5a818460208701611e1c565b9190910192915050565b6020815260008251806020840152611e83816040850160208701611e1c565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016919091016040019291505056fea26469706673582212208d7efe00f3af0fc438dad5cd859b2b766c2019da01dc0ed4de460fac3467579a64736f6c634300080d0033