ETH Price: $3,878.39 (-1.30%)

Contract

0xD377919FA87120584B21279a491F82D5265A139c
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To

There are no matching entries

Please try again later

Latest 1 internal transaction

Advanced mode:
Parent Transaction Hash Block From To
210871122024-10-31 17:27:3535 days ago1730395655  Contract Creation0 ETH
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
TokenizedStrategy

Compiler Version
v0.8.18+commit.87f61d96

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, GNU AGPLv3 license

Contract Source Code (Solidity)

/**
 *Submitted for verification at Etherscan.io on 2024-10-31
*/

// SPDX-License-Identifier: AGPL-3.0
pragma solidity >=0.8.18 ^0.8.0 ^0.8.1;

// lib/openzeppelin-contracts/contracts/token/ERC20/IERC20.sol

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

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

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

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

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

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

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

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

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

// lib/openzeppelin-contracts/contracts/token/ERC20/extensions/IERC20Permit.sol

// OpenZeppelin Contracts (last updated v4.9.4) (token/ERC20/extensions/IERC20Permit.sol)

/**
 * @dev Interface of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in
 * https://eips.ethereum.org/EIPS/eip-2612[EIP-2612].
 *
 * Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by
 * presenting a message signed by the account. By not relying on {IERC20-approve}, the token holder account doesn't
 * need to send a transaction, and thus is not required to hold Ether at all.
 *
 * ==== Security Considerations
 *
 * There are two important considerations concerning the use of `permit`. The first is that a valid permit signature
 * expresses an allowance, and it should not be assumed to convey additional meaning. In particular, it should not be
 * considered as an intention to spend the allowance in any specific way. The second is that because permits have
 * built-in replay protection and can be submitted by anyone, they can be frontrun. A protocol that uses permits should
 * take this into consideration and allow a `permit` call to fail. Combining these two aspects, a pattern that may be
 * generally recommended is:
 *
 * ```solidity
 * function doThingWithPermit(..., uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s) public {
 *     try token.permit(msg.sender, address(this), value, deadline, v, r, s) {} catch {}
 *     doThing(..., value);
 * }
 *
 * function doThing(..., uint256 value) public {
 *     token.safeTransferFrom(msg.sender, address(this), value);
 *     ...
 * }
 * ```
 *
 * Observe that: 1) `msg.sender` is used as the owner, leaving no ambiguity as to the signer intent, and 2) the use of
 * `try/catch` allows the permit to fail and makes the code tolerant to frontrunning. (See also
 * {SafeERC20-safeTransferFrom}).
 *
 * Additionally, note that smart contract wallets (such as Argent or Safe) are not able to produce permit signatures, so
 * contracts should have entry points that don't rely on permit.
 */
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].
     *
     * CAUTION: See Security Considerations above.
     */
    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);
}

// lib/openzeppelin-contracts/contracts/utils/Address.sol

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

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     *
     * Furthermore, `isContract` will also return true if the target contract within
     * the same transaction is already scheduled for destruction by `SELFDESTRUCT`,
     * which only has an effect at the end of a transaction.
     * ====
     *
     * [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://consensys.net/diligence/blog/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.8.0/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
     */
    function sendValue(address payable recipient, uint256 amount) internal {
        require(address(this).balance >= amount, "Address: insufficient balance");

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

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

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

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

    /**
     * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but
     * with `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(
        address target,
        bytes memory data,
        uint256 value,
        string memory errorMessage
    ) internal returns (bytes memory) {
        require(address(this).balance >= value, "Address: insufficient balance for call");
        (bool success, bytes memory returndata) = target.call{value: value}(data);
        return verifyCallResultFromTarget(target, 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) {
        (bool success, bytes memory returndata) = target.staticcall(data);
        return verifyCallResultFromTarget(target, 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) {
        (bool success, bytes memory returndata) = target.delegatecall(data);
        return verifyCallResultFromTarget(target, success, returndata, errorMessage);
    }

    /**
     * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling
     * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract.
     *
     * _Available since v4.8._
     */
    function verifyCallResultFromTarget(
        address target,
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal view returns (bytes memory) {
        if (success) {
            if (returndata.length == 0) {
                // only check isContract if the call was successful and the return data is empty
                // otherwise we already know that it was a contract
                require(isContract(target), "Address: call to non-contract");
            }
            return returndata;
        } else {
            _revert(returndata, errorMessage);
        }
    }

    /**
     * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the
     * revert reason or 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 {
            _revert(returndata, errorMessage);
        }
    }

    function _revert(bytes memory returndata, string memory errorMessage) private pure {
        // 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);
        }
    }
}

// lib/openzeppelin-contracts/contracts/utils/Context.sol

// OpenZeppelin Contracts (last updated v4.9.4) (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;
    }

    function _contextSuffixLength() internal view virtual returns (uint256) {
        return 0;
    }
}

// lib/openzeppelin-contracts/contracts/utils/math/Math.sol

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

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

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

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

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

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

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

            // Handle non-overflow cases, 256 by 256 division.
            if (prod1 == 0) {
                // Solidity will revert if denominator == 0, unlike the div opcode on its own.
                // The surrounding unchecked block does not change this fact.
                // See https://docs.soliditylang.org/en/latest/control-structures.html#checked-or-unchecked-arithmetic.
                return prod0 / denominator;
            }

            // Make sure the result is less than 2^256. Also prevents denominator == 0.
            require(denominator > prod1, "Math: mulDiv overflow");

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

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

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

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

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

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

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

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

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

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

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

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

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

        // For our first guess, we get the biggest power of 2 which is smaller than the square root of the target.
        //
        // We know that the "msb" (most significant bit) of our target number `a` is a power of 2 such that we have
        // `msb(a) <= a < 2*msb(a)`. This value can be written `msb(a)=2**k` with `k=log2(a)`.
        //
        // This can be rewritten `2**log2(a) <= a < 2**(log2(a) + 1)`
        // → `sqrt(2**k) <= sqrt(a) < sqrt(2**(k+1))`
        // → `2**(k/2) <= sqrt(a) < 2**((k+1)/2) <= 2**(k/2 + 1)`
        //
        // Consequently, `2**(log2(a) / 2)` is a good first approximation of `sqrt(a)` with at least 1 correct bit.
        uint256 result = 1 << (log2(a) >> 1);

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

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

    /**
     * @dev Return the log in base 2, rounded down, of a positive value.
     * Returns 0 if given 0.
     */
    function log2(uint256 value) internal pure returns (uint256) {
        uint256 result = 0;
        unchecked {
            if (value >> 128 > 0) {
                value >>= 128;
                result += 128;
            }
            if (value >> 64 > 0) {
                value >>= 64;
                result += 64;
            }
            if (value >> 32 > 0) {
                value >>= 32;
                result += 32;
            }
            if (value >> 16 > 0) {
                value >>= 16;
                result += 16;
            }
            if (value >> 8 > 0) {
                value >>= 8;
                result += 8;
            }
            if (value >> 4 > 0) {
                value >>= 4;
                result += 4;
            }
            if (value >> 2 > 0) {
                value >>= 2;
                result += 2;
            }
            if (value >> 1 > 0) {
                result += 1;
            }
        }
        return result;
    }

    /**
     * @dev Return the log in base 2, following the selected rounding direction, of a positive value.
     * Returns 0 if given 0.
     */
    function log2(uint256 value, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = log2(value);
            return result + (rounding == Rounding.Up && 1 << result < value ? 1 : 0);
        }
    }

    /**
     * @dev Return the log in base 10, rounded down, of a positive value.
     * Returns 0 if given 0.
     */
    function log10(uint256 value) internal pure returns (uint256) {
        uint256 result = 0;
        unchecked {
            if (value >= 10 ** 64) {
                value /= 10 ** 64;
                result += 64;
            }
            if (value >= 10 ** 32) {
                value /= 10 ** 32;
                result += 32;
            }
            if (value >= 10 ** 16) {
                value /= 10 ** 16;
                result += 16;
            }
            if (value >= 10 ** 8) {
                value /= 10 ** 8;
                result += 8;
            }
            if (value >= 10 ** 4) {
                value /= 10 ** 4;
                result += 4;
            }
            if (value >= 10 ** 2) {
                value /= 10 ** 2;
                result += 2;
            }
            if (value >= 10 ** 1) {
                result += 1;
            }
        }
        return result;
    }

    /**
     * @dev Return the log in base 10, following the selected rounding direction, of a positive value.
     * Returns 0 if given 0.
     */
    function log10(uint256 value, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = log10(value);
            return result + (rounding == Rounding.Up && 10 ** result < value ? 1 : 0);
        }
    }

    /**
     * @dev Return the log in base 256, rounded down, of a positive value.
     * Returns 0 if given 0.
     *
     * Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string.
     */
    function log256(uint256 value) internal pure returns (uint256) {
        uint256 result = 0;
        unchecked {
            if (value >> 128 > 0) {
                value >>= 128;
                result += 16;
            }
            if (value >> 64 > 0) {
                value >>= 64;
                result += 8;
            }
            if (value >> 32 > 0) {
                value >>= 32;
                result += 4;
            }
            if (value >> 16 > 0) {
                value >>= 16;
                result += 2;
            }
            if (value >> 8 > 0) {
                result += 1;
            }
        }
        return result;
    }

    /**
     * @dev Return the log in base 256, following the selected rounding direction, of a positive value.
     * Returns 0 if given 0.
     */
    function log256(uint256 value, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = log256(value);
            return result + (rounding == Rounding.Up && 1 << (result << 3) < value ? 1 : 0);
        }
    }
}

// src/interfaces/IBaseStrategy.sol

interface IBaseStrategy {
    function tokenizedStrategyAddress() external view returns (address);

    /*//////////////////////////////////////////////////////////////
                            IMMUTABLE FUNCTIONS
    //////////////////////////////////////////////////////////////*/

    function availableDepositLimit(
        address _owner
    ) external view returns (uint256);

    function availableWithdrawLimit(
        address _owner
    ) external view returns (uint256);

    function deployFunds(uint256 _assets) external;

    function freeFunds(uint256 _amount) external;

    function harvestAndReport() external returns (uint256);

    function tendThis(uint256 _totalIdle) external;

    function shutdownWithdraw(uint256 _amount) external;

    function tendTrigger() external view returns (bool, bytes memory);
}

// src/interfaces/IFactory.sol

interface IFactory {
    function protocol_fee_config() external view returns (uint16, address);
}

// lib/openzeppelin-contracts/contracts/token/ERC20/extensions/IERC20Metadata.sol

// OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/IERC20Metadata.sol)

/**
 * @dev Interface for the optional metadata functions from the ERC20 standard.
 *
 * _Available since v4.1._
 */
interface IERC20Metadata is IERC20 {
    /**
     * @dev Returns the name of the token.
     */
    function name() external view returns (string memory);

    /**
     * @dev Returns the symbol of the token.
     */
    function symbol() external view returns (string memory);

    /**
     * @dev Returns the decimals places of the token.
     */
    function decimals() external view returns (uint8);
}

// lib/openzeppelin-contracts/contracts/token/ERC20/ERC20.sol

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

/**
 * @dev Implementation of the {IERC20} interface.
 *
 * This implementation is agnostic to the way tokens are created. This means
 * that a supply mechanism has to be added in a derived contract using {_mint}.
 * For a generic mechanism see {ERC20PresetMinterPauser}.
 *
 * TIP: For a detailed writeup see our guide
 * https://forum.openzeppelin.com/t/how-to-implement-erc20-supply-mechanisms/226[How
 * to implement supply mechanisms].
 *
 * The default value of {decimals} is 18. To change this, you should override
 * this function so it returns a different value.
 *
 * We have followed general OpenZeppelin Contracts guidelines: functions revert
 * instead returning `false` on failure. This behavior is nonetheless
 * conventional and does not conflict with the expectations of ERC20
 * applications.
 *
 * Additionally, an {Approval} event is emitted on calls to {transferFrom}.
 * This allows applications to reconstruct the allowance for all accounts just
 * by listening to said events. Other implementations of the EIP may not emit
 * these events, as it isn't required by the specification.
 *
 * Finally, the non-standard {decreaseAllowance} and {increaseAllowance}
 * functions have been added to mitigate the well-known issues around setting
 * allowances. See {IERC20-approve}.
 */
contract ERC20 is Context, IERC20, IERC20Metadata {
    mapping(address => uint256) private _balances;

    mapping(address => mapping(address => uint256)) private _allowances;

    uint256 private _totalSupply;

    string private _name;
    string private _symbol;

    /**
     * @dev Sets the values for {name} and {symbol}.
     *
     * All two of these values are immutable: they can only be set once during
     * construction.
     */
    constructor(string memory name_, string memory symbol_) {
        _name = name_;
        _symbol = symbol_;
    }

    /**
     * @dev Returns the name of the token.
     */
    function name() public view virtual override returns (string memory) {
        return _name;
    }

    /**
     * @dev Returns the symbol of the token, usually a shorter version of the
     * name.
     */
    function symbol() public view virtual override returns (string memory) {
        return _symbol;
    }

    /**
     * @dev Returns the number of decimals used to get its user representation.
     * For example, if `decimals` equals `2`, a balance of `505` tokens should
     * be displayed to a user as `5.05` (`505 / 10 ** 2`).
     *
     * Tokens usually opt for a value of 18, imitating the relationship between
     * Ether and Wei. This is the default value returned by this function, unless
     * it's overridden.
     *
     * NOTE: This information is only used for _display_ purposes: it in
     * no way affects any of the arithmetic of the contract, including
     * {IERC20-balanceOf} and {IERC20-transfer}.
     */
    function decimals() public view virtual override returns (uint8) {
        return 18;
    }

    /**
     * @dev See {IERC20-totalSupply}.
     */
    function totalSupply() public view virtual override returns (uint256) {
        return _totalSupply;
    }

    /**
     * @dev See {IERC20-balanceOf}.
     */
    function balanceOf(address account) public view virtual override returns (uint256) {
        return _balances[account];
    }

    /**
     * @dev See {IERC20-transfer}.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - the caller must have a balance of at least `amount`.
     */
    function transfer(address to, uint256 amount) public virtual override returns (bool) {
        address owner = _msgSender();
        _transfer(owner, to, amount);
        return true;
    }

    /**
     * @dev See {IERC20-allowance}.
     */
    function allowance(address owner, address spender) public view virtual override returns (uint256) {
        return _allowances[owner][spender];
    }

    /**
     * @dev See {IERC20-approve}.
     *
     * NOTE: If `amount` is the maximum `uint256`, the allowance is not updated on
     * `transferFrom`. This is semantically equivalent to an infinite approval.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function approve(address spender, uint256 amount) public virtual override returns (bool) {
        address owner = _msgSender();
        _approve(owner, spender, amount);
        return true;
    }

    /**
     * @dev See {IERC20-transferFrom}.
     *
     * Emits an {Approval} event indicating the updated allowance. This is not
     * required by the EIP. See the note at the beginning of {ERC20}.
     *
     * NOTE: Does not update the allowance if the current allowance
     * is the maximum `uint256`.
     *
     * Requirements:
     *
     * - `from` and `to` cannot be the zero address.
     * - `from` must have a balance of at least `amount`.
     * - the caller must have allowance for ``from``'s tokens of at least
     * `amount`.
     */
    function transferFrom(address from, address to, uint256 amount) public virtual override returns (bool) {
        address spender = _msgSender();
        _spendAllowance(from, spender, amount);
        _transfer(from, to, amount);
        return true;
    }

    /**
     * @dev Atomically increases the allowance granted to `spender` by the caller.
     *
     * This is an alternative to {approve} that can be used as a mitigation for
     * problems described in {IERC20-approve}.
     *
     * Emits an {Approval} event indicating the updated allowance.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) {
        address owner = _msgSender();
        _approve(owner, spender, allowance(owner, spender) + addedValue);
        return true;
    }

    /**
     * @dev Atomically decreases the allowance granted to `spender` by the caller.
     *
     * This is an alternative to {approve} that can be used as a mitigation for
     * problems described in {IERC20-approve}.
     *
     * Emits an {Approval} event indicating the updated allowance.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     * - `spender` must have allowance for the caller of at least
     * `subtractedValue`.
     */
    function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) {
        address owner = _msgSender();
        uint256 currentAllowance = allowance(owner, spender);
        require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero");
        unchecked {
            _approve(owner, spender, currentAllowance - subtractedValue);
        }

        return true;
    }

    /**
     * @dev Moves `amount` of tokens from `from` to `to`.
     *
     * This internal function is equivalent to {transfer}, and can be used to
     * e.g. implement automatic token fees, slashing mechanisms, etc.
     *
     * Emits a {Transfer} event.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `from` must have a balance of at least `amount`.
     */
    function _transfer(address from, address to, uint256 amount) internal virtual {
        require(from != address(0), "ERC20: transfer from the zero address");
        require(to != address(0), "ERC20: transfer to the zero address");

        _beforeTokenTransfer(from, to, amount);

        uint256 fromBalance = _balances[from];
        require(fromBalance >= amount, "ERC20: transfer amount exceeds balance");
        unchecked {
            _balances[from] = fromBalance - amount;
            // Overflow not possible: the sum of all balances is capped by totalSupply, and the sum is preserved by
            // decrementing then incrementing.
            _balances[to] += amount;
        }

        emit Transfer(from, to, amount);

        _afterTokenTransfer(from, to, amount);
    }

    /** @dev Creates `amount` tokens and assigns them to `account`, increasing
     * the total supply.
     *
     * Emits a {Transfer} event with `from` set to the zero address.
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     */
    function _mint(address account, uint256 amount) internal virtual {
        require(account != address(0), "ERC20: mint to the zero address");

        _beforeTokenTransfer(address(0), account, amount);

        _totalSupply += amount;
        unchecked {
            // Overflow not possible: balance + amount is at most totalSupply + amount, which is checked above.
            _balances[account] += amount;
        }
        emit Transfer(address(0), account, amount);

        _afterTokenTransfer(address(0), account, amount);
    }

    /**
     * @dev Destroys `amount` tokens from `account`, reducing the
     * total supply.
     *
     * Emits a {Transfer} event with `to` set to the zero address.
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     * - `account` must have at least `amount` tokens.
     */
    function _burn(address account, uint256 amount) internal virtual {
        require(account != address(0), "ERC20: burn from the zero address");

        _beforeTokenTransfer(account, address(0), amount);

        uint256 accountBalance = _balances[account];
        require(accountBalance >= amount, "ERC20: burn amount exceeds balance");
        unchecked {
            _balances[account] = accountBalance - amount;
            // Overflow not possible: amount <= accountBalance <= totalSupply.
            _totalSupply -= amount;
        }

        emit Transfer(account, address(0), amount);

        _afterTokenTransfer(account, address(0), amount);
    }

    /**
     * @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens.
     *
     * This internal function is equivalent to `approve`, and can be used to
     * e.g. set automatic allowances for certain subsystems, etc.
     *
     * Emits an {Approval} event.
     *
     * Requirements:
     *
     * - `owner` cannot be the zero address.
     * - `spender` cannot be the zero address.
     */
    function _approve(address owner, address spender, uint256 amount) internal virtual {
        require(owner != address(0), "ERC20: approve from the zero address");
        require(spender != address(0), "ERC20: approve to the zero address");

        _allowances[owner][spender] = amount;
        emit Approval(owner, spender, amount);
    }

    /**
     * @dev Updates `owner` s allowance for `spender` based on spent `amount`.
     *
     * Does not update the allowance amount in case of infinite allowance.
     * Revert if not enough allowance is available.
     *
     * Might emit an {Approval} event.
     */
    function _spendAllowance(address owner, address spender, uint256 amount) internal virtual {
        uint256 currentAllowance = allowance(owner, spender);
        if (currentAllowance != type(uint256).max) {
            require(currentAllowance >= amount, "ERC20: insufficient allowance");
            unchecked {
                _approve(owner, spender, currentAllowance - amount);
            }
        }
    }

    /**
     * @dev Hook that is called before any transfer of tokens. This includes
     * minting and burning.
     *
     * Calling conditions:
     *
     * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens
     * will be transferred to `to`.
     * - when `from` is zero, `amount` tokens will be minted for `to`.
     * - when `to` is zero, `amount` of ``from``'s tokens will be burned.
     * - `from` and `to` are never both zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _beforeTokenTransfer(address from, address to, uint256 amount) internal virtual {}

    /**
     * @dev Hook that is called after any transfer of tokens. This includes
     * minting and burning.
     *
     * Calling conditions:
     *
     * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens
     * has been transferred to `to`.
     * - when `from` is zero, `amount` tokens have been minted for `to`.
     * - when `to` is zero, `amount` of ``from``'s tokens have been burned.
     * - `from` and `to` are never both zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _afterTokenTransfer(address from, address to, uint256 amount) internal virtual {}
}

// lib/openzeppelin-contracts/contracts/token/ERC20/utils/SafeERC20.sol

// OpenZeppelin Contracts (last updated v4.9.3) (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;

    /**
     * @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value,
     * non-reverting calls are assumed to be successful.
     */
    function safeTransfer(IERC20 token, address to, uint256 value) internal {
        _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value));
    }

    /**
     * @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the
     * calling contract. If `token` returns no value, non-reverting calls are assumed to be successful.
     */
    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));
    }

    /**
     * @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value,
     * non-reverting calls are assumed to be successful.
     */
    function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {
        uint256 oldAllowance = token.allowance(address(this), spender);
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, oldAllowance + value));
    }

    /**
     * @dev Decrease the calling contract's allowance toward `spender` by `value`. If `token` returns no value,
     * non-reverting calls are assumed to be successful.
     */
    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");
            _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, oldAllowance - value));
        }
    }

    /**
     * @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value,
     * non-reverting calls are assumed to be successful. Meant to be used with tokens that require the approval
     * to be set to zero before setting it to a non-zero value, such as USDT.
     */
    function forceApprove(IERC20 token, address spender, uint256 value) internal {
        bytes memory approvalCall = abi.encodeWithSelector(token.approve.selector, spender, value);

        if (!_callOptionalReturnBool(token, approvalCall)) {
            _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, 0));
            _callOptionalReturn(token, approvalCall);
        }
    }

    /**
     * @dev Use a ERC-2612 signature to set the `owner` approval toward `spender` on `token`.
     * Revert on invalid signature.
     */
    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");
        require(returndata.length == 0 || abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation 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).
     *
     * This is a variant of {_callOptionalReturn} that silents catches all reverts and returns a bool instead.
     */
    function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) {
        // 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 cannot use {Address-functionCall} here since this should return false
        // and not revert is the subcall reverts.

        (bool success, bytes memory returndata) = address(token).call(data);
        return
            success && (returndata.length == 0 || abi.decode(returndata, (bool))) && Address.isContract(address(token));
    }
}

// src/TokenizedStrategy.sol

/**$$$$$$$$$$$$$$$$$$$$$$$$$$$&Mr/|1+~>>iiiiiiiiiii>~+{|tuMW$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
$$$$$$$$$$$$$$$$$$$$$$$$$B#j]->iiiiiiiiiiiiiiiiiiiiiiiiiiii>-?f*B$$$$$$$$$$$$$$$$$$$$$$$$$
$$$$$$$$$$$$$$$$$$$$$@zj}~iiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii~}fv@$$$$$$$$$$$$$$$$$$$$$
$$$$$$$$$$$$$$$$$$@z(+iiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii+)zB$$$$$$$$$$$$$$$$$$
$$$$$$$$$$$$$$$$Mf~iiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii~t#@$$$$$$$$$$$$$$$
$$$$$$$$$$$$$@u[iiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii?n@$$$$$$$$$$$$$
$$$$$$$$$$$@z]iiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii?u@$$$$$$$$$$$
$$$$$$$$$$v]iiiiiiiiiiiiiiii,.';iiiiiiiiiiiiiiiiiiiiiiiiii;'."iiiiiiiiiiiiiiii?u$$$$$$$$$$
$$$$$$$$%)>iiiiiiiiiiiiiii,.    ';iiiiiiiiiiiiiiiiiiiiii;'    ."iiiiiiiiiiiiiiii1%$$$$$$$$
$$$$$$$c~iiiiiiiiiiiiiii,.        ';iiiiiiiiiiiiiiiiii;'        ."iiiiiiiiiiiiiii~u$$$$$$$
$$$$$B/>iiiiiiiiiiiiii!'            `IiiiiiiiiiiiiiiI`            .Iiiiiiiiiiiiiii>|%$$$$$
$$$$@)iiiiiiiiiiiiiiiii;'             `Iiiiiiiiiiil`             ';iiiiiiiiiiiiiiiii}@$$$$
$$$B|iiiiiiiiiiiiiiiiiiii;'             `Iiiiiiil`             ';iiiiiiiiiiiiiiiiiiii1B$$$
$$@)iiiiiiiiiiiiiiiiiiiiiii:'             `;iiI`             ':iiiiiiiiiiiiiiiiiiiiiii{B$$
$$|iiiiiiiiiiiiiiiiiiiiiiiiii;'             ``             ':iiiiiiiiiiiiiiiiiiiiiiiiii1$$
$v>iiiiiiiiiiiiiiiiiiiiiiiiiiii:'                        ':iiiiiiiiiiiiiiiiiiiiiiiiiiii>x$
&?iiiiiiiiiiiiiiiiiiiiiiiiiiiiiii:'                    .,iiiiiiiiiiiiiiiiiiiiiiiiiiiiiii-W
ziiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii:'                .,iiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiv
-iiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii:'            .,iiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii-
<iiiiiiiiiiiiiiiiiiii!.':iiiiiiiiiiiiii,          "iiiiiiiiiiiiii;'.Iiiiiiiiiiiiiiiiiiiii<
iiiiiiiiiiiiiiiiiiiii'   ';iiiiiiiiiiiii          Iiiiiiiiiiiii;'   .iiiiiiiiiiiiiiiiiiiii
iiiiiiiiiiiiiiiiiiii,      ';iiiiiiiiiii          IiiiiiiiiiiI`      `iiiiiiiiiiiiiiiiiiii
iiiiiiiiiiiiiiiiiiii.        `Iiiiiiiiii          Iiiiiiiii!`         !iiiiiiiiiiiiiiiiiii
iiiiiiiiiiiiiiiiiii;          :iiiiiiiii          Iiiiiiiii!          ,iiiiiiiiiiiiiiiiiii
iiiiiiiiiiiiiiiiiii,          iiiiiiiiii          Iiiiiiiiii.         ^iiiiiiiiiiiiiiiiiii
<iiiiiiiiiiiiiiiiii,          iiiiiiiiii          Iiiiiiiiii'         ^iiiiiiiiiiiiiiiiii<
-iiiiiiiiiiiiiiiiii;          Iiiiiiiiii          Iiiiiiiiii.         "iiiiiiiiiiiiiiiiii-
ziiiiiiiiiiiiiiiiiii.         'iiiiiiiii''''''''''liiiiiiii^          liiiiiiiiiiiiiiiiiiv
&?iiiiiiiiiiiiiiiiii^          ^iiiiiiiiiiiiiiiiiiiiiiiiii,          `iiiiiiiiiiiiiiiiii_W
$u>iiiiiiiiiiiiiiiiii.          `!iiiiiiiiiiiiiiiiiiiiiii^          .liiiiiiiiiiiiiiiiiir$
$$(iiiiiiiiiiiiiiiiii;.          ."iiiiiiiiiiiiiiiiiiii,.           :iiiiiiiiiiiiiiiiii}$$
$$@{iiiiiiiiiiiiiiiiii;.           .`:iiiiiiiiiiiiii;^.            :iiiiiiiiiiiiiiiiii}B$$
$$$B)iiiiiiiiiiiiiiiiii!'              '`",::::,"`'.             .Iiiiiiiiiiiiiiiiiii{%$$$
$$$$@1iiiiiiiiiiiiiiiiiii,.                                     ^iiiiiiiiiiiiiiiiiii[@$$$$
$$$$$B|>iiiiiiiiiiiiiiiiii!^.                                 `liiiiiiiiiiiiiiiiii>)%$$$$$
$$$$$$$c~iiiiiiiiiiiiiiiiiiii"'                            ."!iiiiiiiiiiiiiiiiiii~n$$$$$$$
$$$$$$$$B)iiiiiiiiiiiiiiiiiiiii!,`.                    .'"liiiiiiiiiiiiiiiiiiiii1%$$$$$$$$
$$$$$$$$$@u]iiiiiiiiiiiiiiiiiiiiiiil,^`'..      ..''^,liiiiiiiiiiiiiiiiiiiiiii-x@$$$$$$$$$
$$$$$$$$$$$@v?iiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii-x$$$$$$$$$$$$
$$$$$$$$$$$$$@n?iiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii-rB$$$$$$$$$$$$$
$$$$$$$$$$$$$$$$/~iiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii<\*@$$$$$$$$$$$$$$$$
$$$$$$$$$$$$$$$$$$Bc1~iiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii~{v%$$$$$$$$$$$$$$$$$$
$$$$$$$$$$$$$$$$$$$$$Bvf]<iiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii<]tuB$$$$$$$$$$$$$$$$$$$$$
$$$$$$$$$$$$$$$$$$$$$$$$$%zt-+>iiiiiiiiiiiiiiiiiiiiiiiiiiiii+_tc%$$$$$$$$$$$$$$$$$$$$$$$$$
$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$W#u/|{+~>iiiiiiiiiiii><+{|/n#W$$$$$$$$$$$$$$$$$$$$$$$$$$$$*/

/**
 * @title Yearn Tokenized Strategy
 * @author yearn.finance
 * @notice
 *  This TokenizedStrategy can be used by anyone wishing to easily build
 *  and deploy their own custom ERC4626 compliant single strategy Vault.
 *
 *  The TokenizedStrategy contract is meant to be used as the proxy
 *  implementation contract that will handle all logic, storage and
 *  management for a custom strategy that inherits the `BaseStrategy`.
 *  Any function calls to the strategy that are not defined within that
 *  strategy will be forwarded through a delegateCall to this contract.

 *  A strategist only needs to override a few simple functions that are
 *  focused entirely on the strategy specific needs to easily and cheaply
 *  deploy their own permissionless 4626 compliant vault.
 */
contract TokenizedStrategy {
    using Math for uint256;
    using SafeERC20 for ERC20;

    /*//////////////////////////////////////////////////////////////
                                 EVENTS
    //////////////////////////////////////////////////////////////*/
    /**
     * @notice Emitted when a strategy is shutdown.
     */
    event StrategyShutdown();

    /**
     * @notice Emitted on the initialization of any new `strategy` that uses `asset`
     * with this specific `apiVersion`.
     */
    event NewTokenizedStrategy(
        address indexed strategy,
        address indexed asset,
        string apiVersion
    );

    /**
     * @notice Emitted when the strategy reports `profit` or `loss` and
     * `performanceFees` and `protocolFees` are paid out.
     */
    event Reported(
        uint256 profit,
        uint256 loss,
        uint256 protocolFees,
        uint256 performanceFees
    );

    /**
     * @notice Emitted when the 'performanceFeeRecipient' address is
     * updated to 'newPerformanceFeeRecipient'.
     */
    event UpdatePerformanceFeeRecipient(
        address indexed newPerformanceFeeRecipient
    );

    /**
     * @notice Emitted when the 'keeper' address is updated to 'newKeeper'.
     */
    event UpdateKeeper(address indexed newKeeper);

    /**
     * @notice Emitted when the 'performanceFee' is updated to 'newPerformanceFee'.
     */
    event UpdatePerformanceFee(uint16 newPerformanceFee);

    /**
     * @notice Emitted when the 'management' address is updated to 'newManagement'.
     */
    event UpdateManagement(address indexed newManagement);

    /**
     * @notice Emitted when the 'emergencyAdmin' address is updated to 'newEmergencyAdmin'.
     */
    event UpdateEmergencyAdmin(address indexed newEmergencyAdmin);

    /**
     * @notice Emitted when the 'profitMaxUnlockTime' is updated to 'newProfitMaxUnlockTime'.
     */
    event UpdateProfitMaxUnlockTime(uint256 newProfitMaxUnlockTime);

    /**
     * @notice Emitted when the 'pendingManagement' address is updated to 'newPendingManagement'.
     */
    event UpdatePendingManagement(address indexed newPendingManagement);

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

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

    /**
     * @notice Emitted when the `caller` has exchanged `assets` for `shares`,
     * and transferred those `shares` to `owner`.
     */
    event Deposit(
        address indexed caller,
        address indexed owner,
        uint256 assets,
        uint256 shares
    );

    /**
     * @notice Emitted when the `caller` has exchanged `owner`s `shares` for `assets`,
     * and transferred those `assets` to `receiver`.
     */
    event Withdraw(
        address indexed caller,
        address indexed receiver,
        address indexed owner,
        uint256 assets,
        uint256 shares
    );

    /*//////////////////////////////////////////////////////////////
                        STORAGE STRUCT
    //////////////////////////////////////////////////////////////*/

    /**
     * @dev The struct that will hold all the storage data for each strategy
     * that uses this implementation.
     *
     * This replaces all state variables for a traditional contract. This
     * full struct will be initialized on the creation of the strategy
     * and continually updated and read from for the life of the contract.
     *
     * We combine all the variables into one struct to limit the amount of
     * times the custom storage slots need to be loaded during complex functions.
     *
     * Loading the corresponding storage slot for the struct does not
     * load any of the contents of the struct into memory. So the size
     * will not increase memory related gas usage.
     */
    // prettier-ignore
    struct StrategyData {
        // The ERC20 compliant underlying asset that will be
        // used by the Strategy
        ERC20 asset;

        // These are the corresponding ERC20 variables needed for the
        // strategies token that is issued and burned on each deposit or withdraw.
        uint8 decimals; // The amount of decimals that `asset` and strategy use.
        string name; // The name of the token for the strategy.
        uint256 totalSupply; // The total amount of shares currently issued.
        mapping(address => uint256) nonces; // Mapping of nonces used for permit functions.
        mapping(address => uint256) balances; // Mapping to track current balances for each account that holds shares.
        mapping(address => mapping(address => uint256)) allowances; // Mapping to track the allowances for the strategies shares.

        // We manually track `totalAssets` to prevent PPS manipulation through airdrops.
        uint256 totalAssets;

        // Variables for profit reporting and locking.
        // We use uint96 for timestamps to fit in the same slot as an address. That overflows in 2.5e+21 years.
        // I know Yearn moves slowly but surely V4 will be out by then.
        // If the timestamps ever overflow tell the cyborgs still using this code I'm sorry for being cheap.
        uint256 profitUnlockingRate; // The rate at which locked profit is unlocking.
        uint96 fullProfitUnlockDate; // The timestamp at which all locked shares will unlock.
        address keeper; // Address given permission to call {report} and {tend}.
        uint32 profitMaxUnlockTime; // The amount of seconds that the reported profit unlocks over.
        uint16 performanceFee; // The percent in basis points of profit that is charged as a fee.
        address performanceFeeRecipient; // The address to pay the `performanceFee` to.
        uint96 lastReport; // The last time a {report} was called.

        // Access management variables.
        address management; // Main address that can set all configurable variables.
        address pendingManagement; // Address that is pending to take over `management`.
        address emergencyAdmin; // Address to act in emergencies as well as `management`.

        // Strategy Status
        uint8 entered; // To prevent reentrancy. Use uint8 for gas savings.
        bool shutdown; // Bool that can be used to stop deposits into the strategy.
    }

    /*//////////////////////////////////////////////////////////////
                            MODIFIERS
    //////////////////////////////////////////////////////////////*/

    /**
     * @dev Require that the call is coming from the strategies management.
     */
    modifier onlyManagement() {
        requireManagement(msg.sender);
        _;
    }

    /**
     * @dev Require that the call is coming from either the strategies
     * management or the keeper.
     */
    modifier onlyKeepers() {
        requireKeeperOrManagement(msg.sender);
        _;
    }

    /**
     * @dev Require that the call is coming from either the strategies
     * management or the emergencyAdmin.
     */
    modifier onlyEmergencyAuthorized() {
        requireEmergencyAuthorized(msg.sender);
        _;
    }

    /**
     * @dev Prevents a contract from calling itself, directly or indirectly.
     * Placed over all state changing functions for increased safety.
     */
    modifier nonReentrant() {
        StrategyData storage S = _strategyStorage();
        // On the first call to nonReentrant, `entered` will be false (2)
        require(S.entered != ENTERED, "ReentrancyGuard: reentrant call");

        // Any calls to nonReentrant after this point will fail
        S.entered = ENTERED;

        _;

        // Reset to false (1) once call has finished.
        S.entered = NOT_ENTERED;
    }

    /**
     * @notice Require a caller is `management`.
     * @dev Is left public so that it can be used by the Strategy.
     *
     * When the Strategy calls this the msg.sender would be the
     * address of the strategy so we need to specify the sender.
     *
     * @param _sender The original msg.sender.
     */
    function requireManagement(address _sender) public view {
        require(_sender == _strategyStorage().management, "!management");
    }

    /**
     * @notice Require a caller is the `keeper` or `management`.
     * @dev Is left public so that it can be used by the Strategy.
     *
     * When the Strategy calls this the msg.sender would be the
     * address of the strategy so we need to specify the sender.
     *
     * @param _sender The original msg.sender.
     */
    function requireKeeperOrManagement(address _sender) public view {
        StrategyData storage S = _strategyStorage();
        require(_sender == S.keeper || _sender == S.management, "!keeper");
    }

    /**
     * @notice Require a caller is the `management` or `emergencyAdmin`.
     * @dev Is left public so that it can be used by the Strategy.
     *
     * When the Strategy calls this the msg.sender would be the
     * address of the strategy so we need to specify the sender.
     *
     * @param _sender The original msg.sender.
     */
    function requireEmergencyAuthorized(address _sender) public view {
        StrategyData storage S = _strategyStorage();
        require(
            _sender == S.emergencyAdmin || _sender == S.management,
            "!emergency authorized"
        );
    }

    /*//////////////////////////////////////////////////////////////
                               CONSTANTS
    //////////////////////////////////////////////////////////////*/

    /// @notice API version this TokenizedStrategy implements.
    string internal constant API_VERSION = "3.0.4";

    /// @notice Value to set the `entered` flag to during a call.
    uint8 internal constant ENTERED = 2;
    /// @notice Value to set the `entered` flag to at the end of the call.
    uint8 internal constant NOT_ENTERED = 1;

    /// @notice Maximum in Basis Points the Performance Fee can be set to.
    uint16 public constant MAX_FEE = 5_000; // 50%

    /// @notice Used for fee calculations.
    uint256 internal constant MAX_BPS = 10_000;
    /// @notice Used for profit unlocking rate calculations.
    uint256 internal constant MAX_BPS_EXTENDED = 1_000_000_000_000;

    /// @notice Seconds per year for max profit unlocking time.
    uint256 internal constant SECONDS_PER_YEAR = 31_556_952; // 365.2425 days

    /**
     * @dev Custom storage slot that will be used to store the
     * `StrategyData` struct that holds each strategies
     * specific storage variables.
     *
     * Any storage updates done by the TokenizedStrategy actually update
     * the storage of the calling contract. This variable points
     * to the specific location that will be used to store the
     * struct that holds all that data.
     *
     * We use a custom string in order to get a random
     * storage slot that will allow for strategists to use any
     * amount of storage in their strategy without worrying
     * about collisions.
     */
    bytes32 internal constant BASE_STRATEGY_STORAGE =
        bytes32(uint256(keccak256("yearn.base.strategy.storage")) - 1);

    /*//////////////////////////////////////////////////////////////
                               IMMUTABLE
    //////////////////////////////////////////////////////////////*/

    /// @notice Address of the previously deployed Vault factory that the
    // protocol fee config is retrieved from.
    address public immutable FACTORY;

    /*//////////////////////////////////////////////////////////////
                            STORAGE GETTER
    //////////////////////////////////////////////////////////////*/

    /**
     * @dev will return the actual storage slot where the strategy
     * specific `StrategyData` struct is stored for both read
     * and write operations.
     *
     * This loads just the slot location, not the full struct
     * so it can be used in a gas efficient manner.
     */
    function _strategyStorage() internal pure returns (StrategyData storage S) {
        // Since STORAGE_SLOT is a constant, we have to put a variable
        // on the stack to access it from an inline assembly block.
        bytes32 slot = BASE_STRATEGY_STORAGE;
        assembly {
            S.slot := slot
        }
    }

    /*//////////////////////////////////////////////////////////////
                          INITIALIZATION
    //////////////////////////////////////////////////////////////*/

    /**
     * @notice Used to initialize storage for a newly deployed strategy.
     * @dev This should be called atomically whenever a new strategy is
     * deployed and can only be called once for each strategy.
     *
     * This will set all the default storage that must be set for a
     * strategy to function. Any changes can be made post deployment
     * through external calls from `management`.
     *
     * The function will also emit an event that off chain indexers can
     * look for to track any new deployments using this TokenizedStrategy.
     *
     * @param _asset Address of the underlying asset.
     * @param _name Name the strategy will use.
     * @param _management Address to set as the strategies `management`.
     * @param _performanceFeeRecipient Address to receive performance fees.
     * @param _keeper Address to set as strategies `keeper`.
     */
    function initialize(
        address _asset,
        string memory _name,
        address _management,
        address _performanceFeeRecipient,
        address _keeper
    ) external {
        // Cache storage pointer.
        StrategyData storage S = _strategyStorage();

        // Make sure we aren't initialized.
        require(address(S.asset) == address(0), "initialized");

        // Set the strategy's underlying asset.
        S.asset = ERC20(_asset);
        // Set the Strategy Tokens name.
        S.name = _name;
        // Set decimals based off the `asset`.
        S.decimals = ERC20(_asset).decimals();

        // Default to a 10 day profit unlock period.
        S.profitMaxUnlockTime = 10 days;
        // Set address to receive performance fees.
        // Can't be address(0) or we will be burning fees.
        require(_performanceFeeRecipient != address(0), "ZERO ADDRESS");
        // Can't mint shares to its self because of profit locking.
        require(_performanceFeeRecipient != address(this), "self");
        S.performanceFeeRecipient = _performanceFeeRecipient;
        // Default to a 10% performance fee.
        S.performanceFee = 1_000;
        // Set last report to this block.
        S.lastReport = uint96(block.timestamp);

        // Set the default management address. Can't be 0.
        require(_management != address(0), "ZERO ADDRESS");
        S.management = _management;
        // Set the keeper address
        S.keeper = _keeper;

        // Emit event to signal a new strategy has been initialized.
        emit NewTokenizedStrategy(address(this), _asset, API_VERSION);
    }

    /*//////////////////////////////////////////////////////////////
                      ERC4626 WRITE METHODS
    //////////////////////////////////////////////////////////////*/

    /**
     * @notice Mints `shares` of strategy shares to `receiver` by
     * depositing exactly `assets` of underlying tokens.
     * @param assets The amount of underlying to deposit in.
     * @param receiver The address to receive the `shares`.
     * @return shares The actual amount of shares issued.
     */
    function deposit(
        uint256 assets,
        address receiver
    ) external nonReentrant returns (uint256 shares) {
        // Get the storage slot for all following calls.
        StrategyData storage S = _strategyStorage();

        // Deposit full balance if using max uint.
        if (assets == type(uint256).max) {
            assets = S.asset.balanceOf(msg.sender);
        }

        // Checking max deposit will also check if shutdown.
        require(
            assets <= _maxDeposit(S, receiver),
            "ERC4626: deposit more than max"
        );
        // Check for rounding error.
        require(
            (shares = _convertToShares(S, assets, Math.Rounding.Down)) != 0,
            "ZERO_SHARES"
        );

        _deposit(S, receiver, assets, shares);
    }

    /**
     * @notice Mints exactly `shares` of strategy shares to
     * `receiver` by depositing `assets` of underlying tokens.
     * @param shares The amount of strategy shares mint.
     * @param receiver The address to receive the `shares`.
     * @return assets The actual amount of asset deposited.
     */
    function mint(
        uint256 shares,
        address receiver
    ) external nonReentrant returns (uint256 assets) {
        // Get the storage slot for all following calls.
        StrategyData storage S = _strategyStorage();

        // Checking max mint will also check if shutdown.
        require(shares <= _maxMint(S, receiver), "ERC4626: mint more than max");
        // Check for rounding error.
        require(
            (assets = _convertToAssets(S, shares, Math.Rounding.Up)) != 0,
            "ZERO_ASSETS"
        );

        _deposit(S, receiver, assets, shares);
    }

    /**
     * @notice Withdraws exactly `assets` from `owners` shares and sends
     * the underlying tokens to `receiver`.
     * @dev This will default to not allowing any loss to be taken.
     * @param assets The amount of underlying to withdraw.
     * @param receiver The address to receive `assets`.
     * @param owner The address whose shares are burnt.
     * @return shares The actual amount of shares burnt.
     */
    function withdraw(
        uint256 assets,
        address receiver,
        address owner
    ) external returns (uint256 shares) {
        return withdraw(assets, receiver, owner, 0);
    }

    /**
     * @notice Withdraws `assets` from `owners` shares and sends
     * the underlying tokens to `receiver`.
     * @dev This includes an added parameter to allow for losses.
     * @param assets The amount of underlying to withdraw.
     * @param receiver The address to receive `assets`.
     * @param owner The address whose shares are burnt.
     * @param maxLoss The amount of acceptable loss in Basis points.
     * @return shares The actual amount of shares burnt.
     */
    function withdraw(
        uint256 assets,
        address receiver,
        address owner,
        uint256 maxLoss
    ) public nonReentrant returns (uint256 shares) {
        // Get the storage slot for all following calls.
        StrategyData storage S = _strategyStorage();
        require(
            assets <= _maxWithdraw(S, owner),
            "ERC4626: withdraw more than max"
        );
        // Check for rounding error or 0 value.
        require(
            (shares = _convertToShares(S, assets, Math.Rounding.Up)) != 0,
            "ZERO_SHARES"
        );

        // Withdraw and track the actual amount withdrawn for loss check.
        _withdraw(S, receiver, owner, assets, shares, maxLoss);
    }

    /**
     * @notice Redeems exactly `shares` from `owner` and
     * sends `assets` of underlying tokens to `receiver`.
     * @dev This will default to allowing any loss passed to be realized.
     * @param shares The amount of shares burnt.
     * @param receiver The address to receive `assets`.
     * @param owner The address whose shares are burnt.
     * @return assets The actual amount of underlying withdrawn.
     */
    function redeem(
        uint256 shares,
        address receiver,
        address owner
    ) external returns (uint256) {
        // We default to not limiting a potential loss.
        return redeem(shares, receiver, owner, MAX_BPS);
    }

    /**
     * @notice Redeems exactly `shares` from `owner` and
     * sends `assets` of underlying tokens to `receiver`.
     * @dev This includes an added parameter to allow for losses.
     * @param shares The amount of shares burnt.
     * @param receiver The address to receive `assets`.
     * @param owner The address whose shares are burnt.
     * @param maxLoss The amount of acceptable loss in Basis points.
     * @return . The actual amount of underlying withdrawn.
     */
    function redeem(
        uint256 shares,
        address receiver,
        address owner,
        uint256 maxLoss
    ) public nonReentrant returns (uint256) {
        // Get the storage slot for all following calls.
        StrategyData storage S = _strategyStorage();
        require(
            shares <= _maxRedeem(S, owner),
            "ERC4626: redeem more than max"
        );
        uint256 assets;
        // Check for rounding error or 0 value.
        require(
            (assets = _convertToAssets(S, shares, Math.Rounding.Down)) != 0,
            "ZERO_ASSETS"
        );

        // We need to return the actual amount withdrawn in case of a loss.
        return _withdraw(S, receiver, owner, assets, shares, maxLoss);
    }

    /*//////////////////////////////////////////////////////////////
                    EXTERNAL 4626 VIEW METHODS
    //////////////////////////////////////////////////////////////*/

    /**
     * @notice Get the total amount of assets this strategy holds
     * as of the last report.
     *
     * We manually track `totalAssets` to avoid any PPS manipulation.
     *
     * @return . Total assets the strategy holds.
     */
    function totalAssets() external view returns (uint256) {
        return _totalAssets(_strategyStorage());
    }

    /**
     * @notice Get the current supply of the strategies shares.
     *
     * Locked shares issued to the strategy from profits are not
     * counted towards the full supply until they are unlocked.
     *
     * As more shares slowly unlock the totalSupply will decrease
     * causing the PPS of the strategy to increase.
     *
     * @return . Total amount of shares outstanding.
     */
    function totalSupply() external view returns (uint256) {
        return _totalSupply(_strategyStorage());
    }

    /**
     * @notice The amount of shares that the strategy would
     *  exchange for the amount of assets provided, in an
     * ideal scenario where all the conditions are met.
     *
     * @param assets The amount of underlying.
     * @return . Expected shares that `assets` represents.
     */
    function convertToShares(uint256 assets) external view returns (uint256) {
        return _convertToShares(_strategyStorage(), assets, Math.Rounding.Down);
    }

    /**
     * @notice The amount of assets that the strategy would
     * exchange for the amount of shares provided, in an
     * ideal scenario where all the conditions are met.
     *
     * @param shares The amount of the strategies shares.
     * @return . Expected amount of `asset` the shares represents.
     */
    function convertToAssets(uint256 shares) external view returns (uint256) {
        return _convertToAssets(_strategyStorage(), shares, Math.Rounding.Down);
    }

    /**
     * @notice Allows an on-chain or off-chain user to simulate
     * the effects of their deposit at the current block, given
     * current on-chain conditions.
     * @dev This will round down.
     *
     * @param assets The amount of `asset` to deposits.
     * @return . Expected shares that would be issued.
     */
    function previewDeposit(uint256 assets) external view returns (uint256) {
        return _convertToShares(_strategyStorage(), assets, Math.Rounding.Down);
    }

    /**
     * @notice Allows an on-chain or off-chain user to simulate
     * the effects of their mint at the current block, given
     * current on-chain conditions.
     * @dev This is used instead of convertToAssets so that it can
     * round up for safer mints.
     *
     * @param shares The amount of shares to mint.
     * @return . The needed amount of `asset` for the mint.
     */
    function previewMint(uint256 shares) external view returns (uint256) {
        return _convertToAssets(_strategyStorage(), shares, Math.Rounding.Up);
    }

    /**
     * @notice Allows an on-chain or off-chain user to simulate
     * the effects of their withdrawal at the current block,
     * given current on-chain conditions.
     * @dev This is used instead of convertToShares so that it can
     * round up for safer withdraws.
     *
     * @param assets The amount of `asset` that would be withdrawn.
     * @return . The amount of shares that would be burnt.
     */
    function previewWithdraw(uint256 assets) external view returns (uint256) {
        return _convertToShares(_strategyStorage(), assets, Math.Rounding.Up);
    }

    /**
     * @notice Allows an on-chain or off-chain user to simulate
     * the effects of their redemption at the current block,
     * given current on-chain conditions.
     * @dev This will round down.
     *
     * @param shares The amount of shares that would be redeemed.
     * @return . The amount of `asset` that would be returned.
     */
    function previewRedeem(uint256 shares) external view returns (uint256) {
        return _convertToAssets(_strategyStorage(), shares, Math.Rounding.Down);
    }

    /**
     * @notice Total number of underlying assets that can
     * be deposited into the strategy, where `receiver`
     * corresponds to the receiver of the shares of a {deposit} call.
     *
     * @param receiver The address receiving the shares.
     * @return . The max that `receiver` can deposit in `asset`.
     */
    function maxDeposit(address receiver) external view returns (uint256) {
        return _maxDeposit(_strategyStorage(), receiver);
    }

    /**
     * @notice Total number of shares that can be minted to `receiver`
     * of a {mint} call.
     *
     * @param receiver The address receiving the shares.
     * @return _maxMint The max that `receiver` can mint in shares.
     */
    function maxMint(address receiver) external view returns (uint256) {
        return _maxMint(_strategyStorage(), receiver);
    }

    /**
     * @notice Total number of underlying assets that can be
     * withdrawn from the strategy by `owner`, where `owner`
     * corresponds to the msg.sender of a {redeem} call.
     *
     * @param owner The owner of the shares.
     * @return _maxWithdraw Max amount of `asset` that can be withdrawn.
     */
    function maxWithdraw(address owner) external view returns (uint256) {
        return _maxWithdraw(_strategyStorage(), owner);
    }

    /**
     * @notice Variable `maxLoss` is ignored.
     * @dev Accepts a `maxLoss` variable in order to match the multi
     * strategy vaults ABI.
     */
    function maxWithdraw(
        address owner,
        uint256 /*maxLoss*/
    ) external view returns (uint256) {
        return _maxWithdraw(_strategyStorage(), owner);
    }

    /**
     * @notice Total number of strategy shares that can be
     * redeemed from the strategy by `owner`, where `owner`
     * corresponds to the msg.sender of a {redeem} call.
     *
     * @param owner The owner of the shares.
     * @return _maxRedeem Max amount of shares that can be redeemed.
     */
    function maxRedeem(address owner) external view returns (uint256) {
        return _maxRedeem(_strategyStorage(), owner);
    }

    /**
     * @notice Variable `maxLoss` is ignored.
     * @dev Accepts a `maxLoss` variable in order to match the multi
     * strategy vaults ABI.
     */
    function maxRedeem(
        address owner,
        uint256 /*maxLoss*/
    ) external view returns (uint256) {
        return _maxRedeem(_strategyStorage(), owner);
    }

    /*//////////////////////////////////////////////////////////////
                    INTERNAL 4626 VIEW METHODS
    //////////////////////////////////////////////////////////////*/

    /// @dev Internal implementation of {totalAssets}.
    function _totalAssets(
        StrategyData storage S
    ) internal view returns (uint256) {
        return S.totalAssets;
    }

    /// @dev Internal implementation of {totalSupply}.
    function _totalSupply(
        StrategyData storage S
    ) internal view returns (uint256) {
        return S.totalSupply - _unlockedShares(S);
    }

    /// @dev Internal implementation of {convertToShares}.
    function _convertToShares(
        StrategyData storage S,
        uint256 assets,
        Math.Rounding _rounding
    ) internal view returns (uint256) {
        // Saves an extra SLOAD if values are non-zero.
        uint256 totalSupply_ = _totalSupply(S);
        // If supply is 0, PPS = 1.
        if (totalSupply_ == 0) return assets;

        uint256 totalAssets_ = _totalAssets(S);
        // If assets are 0 but supply is not PPS = 0.
        if (totalAssets_ == 0) return 0;

        return assets.mulDiv(totalSupply_, totalAssets_, _rounding);
    }

    /// @dev Internal implementation of {convertToAssets}.
    function _convertToAssets(
        StrategyData storage S,
        uint256 shares,
        Math.Rounding _rounding
    ) internal view returns (uint256) {
        // Saves an extra SLOAD if totalSupply() is non-zero.
        uint256 supply = _totalSupply(S);

        return
            supply == 0
                ? shares
                : shares.mulDiv(_totalAssets(S), supply, _rounding);
    }

    /// @dev Internal implementation of {maxDeposit}.
    function _maxDeposit(
        StrategyData storage S,
        address receiver
    ) internal view returns (uint256) {
        // Cannot deposit when shutdown or to the strategy.
        if (S.shutdown || receiver == address(this)) return 0;

        return IBaseStrategy(address(this)).availableDepositLimit(receiver);
    }

    /// @dev Internal implementation of {maxMint}.
    function _maxMint(
        StrategyData storage S,
        address receiver
    ) internal view returns (uint256 maxMint_) {
        // Cannot mint when shutdown or to the strategy.
        if (S.shutdown || receiver == address(this)) return 0;

        maxMint_ = IBaseStrategy(address(this)).availableDepositLimit(receiver);
        if (maxMint_ != type(uint256).max) {
            maxMint_ = _convertToShares(S, maxMint_, Math.Rounding.Down);
        }
    }

    /// @dev Internal implementation of {maxWithdraw}.
    function _maxWithdraw(
        StrategyData storage S,
        address owner
    ) internal view returns (uint256 maxWithdraw_) {
        // Get the max the owner could withdraw currently.
        maxWithdraw_ = IBaseStrategy(address(this)).availableWithdrawLimit(
            owner
        );

        // If there is no limit enforced.
        if (maxWithdraw_ == type(uint256).max) {
            // Saves a min check if there is no withdrawal limit.
            maxWithdraw_ = _convertToAssets(
                S,
                _balanceOf(S, owner),
                Math.Rounding.Down
            );
        } else {
            maxWithdraw_ = Math.min(
                _convertToAssets(S, _balanceOf(S, owner), Math.Rounding.Down),
                maxWithdraw_
            );
        }
    }

    /// @dev Internal implementation of {maxRedeem}.
    function _maxRedeem(
        StrategyData storage S,
        address owner
    ) internal view returns (uint256 maxRedeem_) {
        // Get the max the owner could withdraw currently.
        maxRedeem_ = IBaseStrategy(address(this)).availableWithdrawLimit(owner);

        // Conversion would overflow and saves a min check if there is no withdrawal limit.
        if (maxRedeem_ == type(uint256).max) {
            maxRedeem_ = _balanceOf(S, owner);
        } else {
            maxRedeem_ = Math.min(
                // Can't redeem more than the balance.
                _convertToShares(S, maxRedeem_, Math.Rounding.Down),
                _balanceOf(S, owner)
            );
        }
    }

    /*//////////////////////////////////////////////////////////////
                    INTERNAL 4626 WRITE METHODS
    //////////////////////////////////////////////////////////////*/

    /**
     * @dev Function to be called during {deposit} and {mint}.
     *
     * This function handles all logic including transfers,
     * minting and accounting.
     *
     * We do all external calls before updating any internal
     * values to prevent view reentrancy issues from the token
     * transfers or the _deployFunds() calls.
     */
    function _deposit(
        StrategyData storage S,
        address receiver,
        uint256 assets,
        uint256 shares
    ) internal {
        // Cache storage variables used more than once.
        ERC20 _asset = S.asset;

        // Need to transfer before minting or ERC777s could reenter.
        _asset.safeTransferFrom(msg.sender, address(this), assets);

        // We can deploy the full loose balance currently held.
        IBaseStrategy(address(this)).deployFunds(
            _asset.balanceOf(address(this))
        );

        // Adjust total Assets.
        S.totalAssets += assets;

        // mint shares
        _mint(S, receiver, shares);

        emit Deposit(msg.sender, receiver, assets, shares);
    }

    /**
     * @dev To be called during {redeem} and {withdraw}.
     *
     * This will handle all logic, transfers and accounting
     * in order to service the withdraw request.
     *
     * If we are not able to withdraw the full amount needed, it will
     * be counted as a loss and passed on to the user.
     */
    function _withdraw(
        StrategyData storage S,
        address receiver,
        address owner,
        uint256 assets,
        uint256 shares,
        uint256 maxLoss
    ) internal returns (uint256) {
        require(receiver != address(0), "ZERO ADDRESS");
        require(maxLoss <= MAX_BPS, "exceeds MAX_BPS");

        // Spend allowance if applicable.
        if (msg.sender != owner) {
            _spendAllowance(S, owner, msg.sender, shares);
        }

        // Cache `asset` since it is used multiple times..
        ERC20 _asset = S.asset;

        uint256 idle = _asset.balanceOf(address(this));
        uint256 loss;
        // Check if we need to withdraw funds.
        if (idle < assets) {
            // Tell Strategy to free what we need.
            unchecked {
                IBaseStrategy(address(this)).freeFunds(assets - idle);
            }

            // Return the actual amount withdrawn. Adjust for potential under withdraws.
            idle = _asset.balanceOf(address(this));

            // If we didn't get enough out then we have a loss.
            if (idle < assets) {
                unchecked {
                    loss = assets - idle;
                }
                // If a non-default max loss parameter was set.
                if (maxLoss < MAX_BPS) {
                    // Make sure we are within the acceptable range.
                    require(
                        loss <= (assets * maxLoss) / MAX_BPS,
                        "too much loss"
                    );
                }
                // Lower the amount to be withdrawn.
                assets = idle;
            }
        }

        // Update assets based on how much we took.
        S.totalAssets -= (assets + loss);

        _burn(S, owner, shares);

        // Transfer the amount of underlying to the receiver.
        _asset.safeTransfer(receiver, assets);

        emit Withdraw(msg.sender, receiver, owner, assets, shares);

        // Return the actual amount of assets withdrawn.
        return assets;
    }

    /*//////////////////////////////////////////////////////////////
                        PROFIT REPORTING
    //////////////////////////////////////////////////////////////*/

    /**
     * @notice Function for keepers to call to harvest and record all
     * profits accrued.
     *
     * @dev This will account for any gains/losses since the last report
     * and charge fees accordingly.
     *
     * Any profit over the fees charged will be immediately locked
     * so there is no change in PricePerShare. Then slowly unlocked
     * over the `maxProfitUnlockTime` each second based on the
     * calculated `profitUnlockingRate`.
     *
     * In case of a loss it will first attempt to offset the loss
     * with any remaining locked shares from the last report in
     * order to reduce any negative impact to PPS.
     *
     * Will then recalculate the new time to unlock profits over and the
     * rate based on a weighted average of any remaining time from the
     * last report and the new amount of shares to be locked.
     *
     * @return profit The notional amount of gain if any since the last
     * report in terms of `asset`.
     * @return loss The notional amount of loss if any since the last
     * report in terms of `asset`.
     */
    function report()
        external
        nonReentrant
        onlyKeepers
        returns (uint256 profit, uint256 loss)
    {
        // Cache storage pointer since its used repeatedly.
        StrategyData storage S = _strategyStorage();

        // Tell the strategy to report the real total assets it has.
        // It should do all reward selling and redepositing now and
        // account for deployed and loose `asset` so we can accurately
        // account for all funds including those potentially airdropped
        // and then have any profits immediately locked.
        uint256 newTotalAssets = IBaseStrategy(address(this))
            .harvestAndReport();

        uint256 oldTotalAssets = _totalAssets(S);

        // Get the amount of shares we need to burn from previous reports.
        uint256 sharesToBurn = _unlockedShares(S);

        // Initialize variables needed throughout.
        uint256 totalFees;
        uint256 protocolFees;
        uint256 sharesToLock;
        uint256 _profitMaxUnlockTime = S.profitMaxUnlockTime;
        // Calculate profit/loss.
        if (newTotalAssets > oldTotalAssets) {
            // We have a profit.
            unchecked {
                profit = newTotalAssets - oldTotalAssets;
            }

            // We need to get the equivalent amount of shares
            // at the current PPS before any minting or burning.
            sharesToLock = _convertToShares(S, profit, Math.Rounding.Down);

            // Cache the performance fee.
            uint16 fee = S.performanceFee;
            uint256 totalFeeShares;
            // If we are charging a performance fee
            if (fee != 0) {
                // Asses performance fees.
                unchecked {
                    // Get in `asset` for the event.
                    totalFees = (profit * fee) / MAX_BPS;
                    // And in shares for the payment.
                    totalFeeShares = (sharesToLock * fee) / MAX_BPS;
                }

                // Get the protocol fee config from the factory.
                (
                    uint16 protocolFeeBps,
                    address protocolFeesRecipient
                ) = IFactory(FACTORY).protocol_fee_config();

                uint256 protocolFeeShares;
                // Check if there is a protocol fee to charge.
                if (protocolFeeBps != 0) {
                    unchecked {
                        // Calculate protocol fees based on the performance Fees.
                        protocolFeeShares =
                            (totalFeeShares * protocolFeeBps) /
                            MAX_BPS;
                        // Need amount in underlying for event.
                        protocolFees = (totalFees * protocolFeeBps) / MAX_BPS;
                    }

                    // Mint the protocol fees to the recipient.
                    _mint(S, protocolFeesRecipient, protocolFeeShares);
                }

                // Mint the difference to the strategy fee recipient.
                unchecked {
                    _mint(
                        S,
                        S.performanceFeeRecipient,
                        totalFeeShares - protocolFeeShares
                    );
                }
            }

            // Check if we are locking profit.
            if (_profitMaxUnlockTime != 0) {
                // lock (profit - fees)
                unchecked {
                    sharesToLock -= totalFeeShares;
                }

                // If we are burning more than re-locking.
                if (sharesToBurn > sharesToLock) {
                    // Burn the difference
                    unchecked {
                        _burn(S, address(this), sharesToBurn - sharesToLock);
                    }
                } else if (sharesToLock > sharesToBurn) {
                    // Mint the shares to lock the strategy.
                    unchecked {
                        _mint(S, address(this), sharesToLock - sharesToBurn);
                    }
                }
            }
        } else {
            // Expect we have a loss.
            unchecked {
                loss = oldTotalAssets - newTotalAssets;
            }

            // Check in case `else` was due to being equal.
            if (loss != 0) {
                // We will try and burn the unlocked shares and as much from any
                // pending profit still unlocking to offset the loss to prevent any PPS decline post report.
                sharesToBurn = Math.min(
                    // Cannot burn more than we have.
                    S.balances[address(this)],
                    // Try and burn both the shares already unlocked and the amount for the loss.
                    _convertToShares(S, loss, Math.Rounding.Down) + sharesToBurn
                );
            }

            // Check if there is anything to burn.
            if (sharesToBurn != 0) {
                _burn(S, address(this), sharesToBurn);
            }
        }

        // Update unlocking rate and time to fully unlocked.
        uint256 totalLockedShares = S.balances[address(this)];
        if (totalLockedShares != 0) {
            uint256 previouslyLockedTime;
            uint96 _fullProfitUnlockDate = S.fullProfitUnlockDate;
            // Check if we need to account for shares still unlocking.
            if (_fullProfitUnlockDate > block.timestamp) {
                unchecked {
                    // There will only be previously locked shares if time remains.
                    // We calculate this here since it should be rare.
                    previouslyLockedTime =
                        (_fullProfitUnlockDate - block.timestamp) *
                        (totalLockedShares - sharesToLock);
                }
            }

            // newProfitLockingPeriod is a weighted average between the remaining
            // time of the previously locked shares and the profitMaxUnlockTime.
            uint256 newProfitLockingPeriod = (previouslyLockedTime +
                sharesToLock *
                _profitMaxUnlockTime) / totalLockedShares;

            // Calculate how many shares unlock per second.
            S.profitUnlockingRate =
                (totalLockedShares * MAX_BPS_EXTENDED) /
                newProfitLockingPeriod;

            // Calculate how long until the full amount of shares is unlocked.
            S.fullProfitUnlockDate = uint96(
                block.timestamp + newProfitLockingPeriod
            );
        } else {
            // Only setting this to 0 will turn in the desired effect,
            // no need to update profitUnlockingRate.
            S.fullProfitUnlockDate = 0;
        }

        // Update the new total assets value.
        S.totalAssets = newTotalAssets;
        S.lastReport = uint96(block.timestamp);

        // Emit event with info
        emit Reported(
            profit,
            loss,
            protocolFees, // Protocol fees
            totalFees - protocolFees // Performance Fees
        );
    }

    /**
     * @notice Get how many shares have been unlocked since last report.
     * @return . The amount of shares that have unlocked.
     */
    function unlockedShares() external view returns (uint256) {
        return _unlockedShares(_strategyStorage());
    }

    /**
     * @dev To determine how many of the shares that were locked during the last
     * report have since unlocked.
     *
     * If the `fullProfitUnlockDate` has passed the full strategy's balance will
     * count as unlocked.
     *
     * @return unlocked The amount of shares that have unlocked.
     */
    function _unlockedShares(
        StrategyData storage S
    ) internal view returns (uint256 unlocked) {
        uint96 _fullProfitUnlockDate = S.fullProfitUnlockDate;
        if (_fullProfitUnlockDate > block.timestamp) {
            unchecked {
                unlocked =
                    (S.profitUnlockingRate * (block.timestamp - S.lastReport)) /
                    MAX_BPS_EXTENDED;
            }
        } else if (_fullProfitUnlockDate != 0) {
            // All shares have been unlocked.
            unlocked = S.balances[address(this)];
        }
    }

    /*//////////////////////////////////////////////////////////////
                            TENDING
    //////////////////////////////////////////////////////////////*/

    /**
     * @notice For a 'keeper' to 'tend' the strategy if a custom
     * tendTrigger() is implemented.
     *
     * @dev Both 'tendTrigger' and '_tend' will need to be overridden
     * for this to be used.
     *
     * This will callback the internal '_tend' call in the BaseStrategy
     * with the total current amount available to the strategy to deploy.
     *
     * This is a permissioned function so if desired it could
     * be used for illiquid or manipulatable strategies to compound
     * rewards, perform maintenance or deposit/withdraw funds.
     *
     * This will not cause any change in PPS. Total assets will
     * be the same before and after.
     *
     * A report() call will be needed to record any profits or losses.
     */
    function tend() external nonReentrant onlyKeepers {
        // Tend the strategy with the current loose balance.
        IBaseStrategy(address(this)).tendThis(
            _strategyStorage().asset.balanceOf(address(this))
        );
    }

    /*//////////////////////////////////////////////////////////////
                        STRATEGY SHUTDOWN
    //////////////////////////////////////////////////////////////*/

    /**
     * @notice Used to shutdown the strategy preventing any further deposits.
     * @dev Can only be called by the current `management` or `emergencyAdmin`.
     *
     * This will stop any new {deposit} or {mint} calls but will
     * not prevent {withdraw} or {redeem}. It will also still allow for
     * {tend} and {report} so that management can report any last losses
     * in an emergency as well as provide any maintenance to allow for full
     * withdraw.
     *
     * This is a one way switch and can never be set back once shutdown.
     */
    function shutdownStrategy() external onlyEmergencyAuthorized {
        _strategyStorage().shutdown = true;

        emit StrategyShutdown();
    }

    /**
     * @notice To manually withdraw funds from the yield source after a
     * strategy has been shutdown.
     * @dev This can only be called post {shutdownStrategy}.
     *
     * This will never cause a change in PPS. Total assets will
     * be the same before and after.
     *
     * A strategist will need to override the {_emergencyWithdraw} function
     * in their strategy for this to work.
     *
     * @param amount The amount of asset to attempt to free.
     */
    function emergencyWithdraw(
        uint256 amount
    ) external nonReentrant onlyEmergencyAuthorized {
        // Make sure the strategy has been shutdown.
        require(_strategyStorage().shutdown, "not shutdown");

        // Withdraw from the yield source.
        IBaseStrategy(address(this)).shutdownWithdraw(amount);
    }

    /*//////////////////////////////////////////////////////////////
                        GETTER FUNCTIONS
    //////////////////////////////////////////////////////////////*/

    /**
     * @notice Get the underlying asset for the strategy.
     * @return . The underlying asset.
     */
    function asset() external view returns (address) {
        return address(_strategyStorage().asset);
    }

    /**
     * @notice Get the API version for this TokenizedStrategy.
     * @return . The API version for this TokenizedStrategy
     */
    function apiVersion() external pure returns (string memory) {
        return API_VERSION;
    }

    /**
     * @notice Get the current address that controls the strategy.
     * @return . Address of management
     */
    function management() external view returns (address) {
        return _strategyStorage().management;
    }

    /**
     * @notice Get the current pending management address if any.
     * @return . Address of pendingManagement
     */
    function pendingManagement() external view returns (address) {
        return _strategyStorage().pendingManagement;
    }

    /**
     * @notice Get the current address that can call tend and report.
     * @return . Address of the keeper
     */
    function keeper() external view returns (address) {
        return _strategyStorage().keeper;
    }

    /**
     * @notice Get the current address that can shutdown and emergency withdraw.
     * @return . Address of the emergencyAdmin
     */
    function emergencyAdmin() external view returns (address) {
        return _strategyStorage().emergencyAdmin;
    }

    /**
     * @notice Get the current performance fee charged on profits.
     * denominated in Basis Points where 10_000 == 100%
     * @return . Current performance fee.
     */
    function performanceFee() external view returns (uint16) {
        return _strategyStorage().performanceFee;
    }

    /**
     * @notice Get the current address that receives the performance fees.
     * @return . Address of performanceFeeRecipient
     */
    function performanceFeeRecipient() external view returns (address) {
        return _strategyStorage().performanceFeeRecipient;
    }

    /**
     * @notice Gets the timestamp at which all profits will be unlocked.
     * @return . The full profit unlocking timestamp
     */
    function fullProfitUnlockDate() external view returns (uint256) {
        return uint256(_strategyStorage().fullProfitUnlockDate);
    }

    /**
     * @notice The per second rate at which profits are unlocking.
     * @dev This is denominated in EXTENDED_BPS decimals.
     * @return . The current profit unlocking rate.
     */
    function profitUnlockingRate() external view returns (uint256) {
        return _strategyStorage().profitUnlockingRate;
    }

    /**
     * @notice Gets the current time profits are set to unlock over.
     * @return . The current profit max unlock time.
     */
    function profitMaxUnlockTime() external view returns (uint256) {
        return _strategyStorage().profitMaxUnlockTime;
    }

    /**
     * @notice The timestamp of the last time protocol fees were charged.
     * @return . The last report.
     */
    function lastReport() external view returns (uint256) {
        return uint256(_strategyStorage().lastReport);
    }

    /**
     * @notice Get the price per share.
     * @dev This value offers limited precision. Integrations that require
     * exact precision should use convertToAssets or convertToShares instead.
     *
     * @return . The price per share.
     */
    function pricePerShare() external view returns (uint256) {
        StrategyData storage S = _strategyStorage();
        return _convertToAssets(S, 10 ** S.decimals, Math.Rounding.Down);
    }

    /**
     * @notice To check if the strategy has been shutdown.
     * @return . Whether or not the strategy is shutdown.
     */
    function isShutdown() external view returns (bool) {
        return _strategyStorage().shutdown;
    }

    /*//////////////////////////////////////////////////////////////
                        SETTER FUNCTIONS
    //////////////////////////////////////////////////////////////*/

    /**
     * @notice Step one of two to set a new address to be in charge of the strategy.
     * @dev Can only be called by the current `management`. The address is
     * set to pending management and will then have to call {acceptManagement}
     * in order for the 'management' to officially change.
     *
     * Cannot set `management` to address(0).
     *
     * @param _management New address to set `pendingManagement` to.
     */
    function setPendingManagement(address _management) external onlyManagement {
        require(_management != address(0), "ZERO ADDRESS");
        _strategyStorage().pendingManagement = _management;

        emit UpdatePendingManagement(_management);
    }

    /**
     * @notice Step two of two to set a new 'management' of the strategy.
     * @dev Can only be called by the current `pendingManagement`.
     */
    function acceptManagement() external {
        StrategyData storage S = _strategyStorage();
        require(msg.sender == S.pendingManagement, "!pending");
        S.management = msg.sender;
        S.pendingManagement = address(0);

        emit UpdateManagement(msg.sender);
    }

    /**
     * @notice Sets a new address to be in charge of tend and reports.
     * @dev Can only be called by the current `management`.
     *
     * @param _keeper New address to set `keeper` to.
     */
    function setKeeper(address _keeper) external onlyManagement {
        _strategyStorage().keeper = _keeper;

        emit UpdateKeeper(_keeper);
    }

    /**
     * @notice Sets a new address to be able to shutdown the strategy.
     * @dev Can only be called by the current `management`.
     *
     * @param _emergencyAdmin New address to set `emergencyAdmin` to.
     */
    function setEmergencyAdmin(
        address _emergencyAdmin
    ) external onlyManagement {
        _strategyStorage().emergencyAdmin = _emergencyAdmin;

        emit UpdateEmergencyAdmin(_emergencyAdmin);
    }

    /**
     * @notice Sets the performance fee to be charged on reported gains.
     * @dev Can only be called by the current `management`.
     *
     * Denominated in Basis Points. So 100% == 10_000.
     * Cannot set greater than to MAX_FEE.
     *
     * @param _performanceFee New performance fee.
     */
    function setPerformanceFee(uint16 _performanceFee) external onlyManagement {
        require(_performanceFee <= MAX_FEE, "MAX FEE");
        _strategyStorage().performanceFee = _performanceFee;

        emit UpdatePerformanceFee(_performanceFee);
    }

    /**
     * @notice Sets a new address to receive performance fees.
     * @dev Can only be called by the current `management`.
     *
     * Cannot set to address(0).
     *
     * @param _performanceFeeRecipient New address to set `management` to.
     */
    function setPerformanceFeeRecipient(
        address _performanceFeeRecipient
    ) external onlyManagement {
        require(_performanceFeeRecipient != address(0), "ZERO ADDRESS");
        require(_performanceFeeRecipient != address(this), "Cannot be self");
        _strategyStorage().performanceFeeRecipient = _performanceFeeRecipient;

        emit UpdatePerformanceFeeRecipient(_performanceFeeRecipient);
    }

    /**
     * @notice Sets the time for profits to be unlocked over.
     * @dev Can only be called by the current `management`.
     *
     * Denominated in seconds and cannot be greater than 1 year.
     *
     * NOTE: Setting to 0 will cause all currently locked profit
     * to be unlocked instantly and should be done with care.
     *
     * `profitMaxUnlockTime` is stored as a uint32 for packing but can
     * be passed in as uint256 for simplicity.
     *
     * @param _profitMaxUnlockTime New `profitMaxUnlockTime`.
     */
    function setProfitMaxUnlockTime(
        uint256 _profitMaxUnlockTime
    ) external onlyManagement {
        // Must be less than a year.
        require(_profitMaxUnlockTime <= SECONDS_PER_YEAR, "too long");
        StrategyData storage S = _strategyStorage();

        // If we are setting to 0 we need to adjust amounts.
        if (_profitMaxUnlockTime == 0) {
            uint256 shares = S.balances[address(this)];
            if (shares != 0) {
                // Burn all shares if applicable.
                _burn(S, address(this), shares);
            }
            // Reset unlocking variables
            S.profitUnlockingRate = 0;
            S.fullProfitUnlockDate = 0;
        }

        S.profitMaxUnlockTime = uint32(_profitMaxUnlockTime);

        emit UpdateProfitMaxUnlockTime(_profitMaxUnlockTime);
    }

    /**
     * @notice Updates the name for the strategy.
     * @param _name The new name for the strategy.
     */
    function setName(string calldata _name) external onlyManagement {
        _strategyStorage().name = _name;
    }

    /*//////////////////////////////////////////////////////////////
                        ERC20 METHODS
    //////////////////////////////////////////////////////////////*/

    /**
     * @notice Returns the name of the token.
     * @return . The name the strategy is using for its token.
     */
    function name() external view returns (string memory) {
        return _strategyStorage().name;
    }

    /**
     * @notice Returns the symbol of the strategies token.
     * @dev Will be 'ys + asset symbol'.
     * @return . The symbol the strategy is using for its tokens.
     */
    function symbol() external view returns (string memory) {
        return
            string(abi.encodePacked("ys", _strategyStorage().asset.symbol()));
    }

    /**
     * @notice Returns the number of decimals used to get its user representation.
     * @return . The decimals used for the strategy and `asset`.
     */
    function decimals() external view returns (uint8) {
        return _strategyStorage().decimals;
    }

    /**
     * @notice Returns the current balance for a given '_account'.
     * @dev If the '_account` is the strategy then this will subtract
     * the amount of shares that have been unlocked since the last profit first.
     * @param account the address to return the balance for.
     * @return . The current balance in y shares of the '_account'.
     */
    function balanceOf(address account) external view returns (uint256) {
        return _balanceOf(_strategyStorage(), account);
    }

    /// @dev Internal implementation of {balanceOf}.
    function _balanceOf(
        StrategyData storage S,
        address account
    ) internal view returns (uint256) {
        if (account == address(this)) {
            return S.balances[account] - _unlockedShares(S);
        }
        return S.balances[account];
    }

    /**
     * @notice Transfer '_amount` of shares from `msg.sender` to `to`.
     * @dev
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - `to` cannot be the address of the strategy.
     * - the caller must have a balance of at least `_amount`.
     *
     * @param to The address shares will be transferred to.
     * @param amount The amount of shares to be transferred from sender.
     * @return . a boolean value indicating whether the operation succeeded.
     */
    function transfer(address to, uint256 amount) external returns (bool) {
        _transfer(_strategyStorage(), msg.sender, to, amount);
        return true;
    }

    /**
     * @notice 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.
     * @param owner The address who owns the shares.
     * @param spender The address who would be moving the owners shares.
     * @return . The remaining amount of shares of `owner` that could be moved by `spender`.
     */
    function allowance(
        address owner,
        address spender
    ) external view returns (uint256) {
        return _allowance(_strategyStorage(), owner, spender);
    }

    /// @dev Internal implementation of {allowance}.
    function _allowance(
        StrategyData storage S,
        address owner,
        address spender
    ) internal view returns (uint256) {
        return S.allowances[owner][spender];
    }

    /**
     * @notice Sets `amount` as the allowance of `spender` over the caller's tokens.
     * @dev
     *
     * NOTE: If `amount` is the maximum `uint256`, the allowance is not updated on
     * `transferFrom`. This is semantically equivalent to an infinite approval.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     *
     * 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.
     *
     * @param spender the address to allow the shares to be moved by.
     * @param amount the amount of shares to allow `spender` to move.
     * @return . a boolean value indicating whether the operation succeeded.
     */
    function approve(address spender, uint256 amount) external returns (bool) {
        _approve(_strategyStorage(), msg.sender, spender, amount);
        return true;
    }

    /**
     * @notice `amount` tokens from `from` to `to` using the
     * allowance mechanism. `amount` is then deducted from the caller's
     * allowance.
     *
     * @dev
     * Emits an {Approval} event indicating the updated allowance. This is not
     * required by the EIP.
     *
     * NOTE: Does not update the allowance if the current allowance
     * is the maximum `uint256`.
     *
     * Requirements:
     *
     * - `from` and `to` cannot be the zero address.
     * - `to` cannot be the address of the strategy.
     * - `from` must have a balance of at least `amount`.
     * - the caller must have allowance for ``from``'s tokens of at least
     * `amount`.
     *
     * Emits a {Transfer} event.
     *
     * @param from the address to be moving shares from.
     * @param to the address to be moving shares to.
     * @param amount the quantity of shares to move.
     * @return . a boolean value indicating whether the operation succeeded.
     */
    function transferFrom(
        address from,
        address to,
        uint256 amount
    ) external returns (bool) {
        StrategyData storage S = _strategyStorage();
        _spendAllowance(S, from, msg.sender, amount);
        _transfer(S, from, to, amount);
        return true;
    }

    /**
     * @dev Moves `amount` of tokens from `from` to `to`.
     *
     * This internal function is equivalent to {transfer}, and can be used to
     * e.g. implement automatic token fees, slashing mechanisms, etc.
     *
     * Emits a {Transfer} event.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `to` cannot be the strategies address
     * - `from` must have a balance of at least `amount`.
     *
     */
    function _transfer(
        StrategyData storage S,
        address from,
        address to,
        uint256 amount
    ) internal {
        require(from != address(0), "ERC20: transfer from the zero address");
        require(to != address(0), "ERC20: transfer to the zero address");
        require(to != address(this), "ERC20 transfer to strategy");

        S.balances[from] -= amount;
        unchecked {
            S.balances[to] += amount;
        }

        emit Transfer(from, to, amount);
    }

    /** @dev Creates `amount` tokens and assigns them to `account`, increasing
     * the total supply.
     *
     * Emits a {Transfer} event with `from` set to the zero address.
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     *
     */
    function _mint(
        StrategyData storage S,
        address account,
        uint256 amount
    ) internal {
        require(account != address(0), "ERC20: mint to the zero address");

        S.totalSupply += amount;
        unchecked {
            S.balances[account] += amount;
        }
        emit Transfer(address(0), account, amount);
    }

    /**
     * @dev Destroys `amount` tokens from `account`, reducing the
     * total supply.
     *
     * Emits a {Transfer} event with `to` set to the zero address.
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     * - `account` must have at least `amount` tokens.
     */
    function _burn(
        StrategyData storage S,
        address account,
        uint256 amount
    ) internal {
        require(account != address(0), "ERC20: burn from the zero address");

        S.balances[account] -= amount;
        unchecked {
            S.totalSupply -= amount;
        }
        emit Transfer(account, address(0), amount);
    }

    /**
     * @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens.
     *
     * This internal function is equivalent to `approve`, and can be used to
     * e.g. set automatic allowances for certain subsystems, etc.
     *
     * Emits an {Approval} event.
     *
     * Requirements:
     *
     * - `owner` cannot be the zero address.
     * - `spender` cannot be the zero address.
     */
    function _approve(
        StrategyData storage S,
        address owner,
        address spender,
        uint256 amount
    ) internal {
        require(owner != address(0), "ERC20: approve from the zero address");
        require(spender != address(0), "ERC20: approve to the zero address");

        S.allowances[owner][spender] = amount;
        emit Approval(owner, spender, amount);
    }

    /**
     * @dev Updates `owner` s allowance for `spender` based on spent `amount`.
     *
     * Does not update the allowance amount in case of infinite allowance.
     * Revert if not enough allowance is available.
     *
     * Might emit an {Approval} event.
     */
    function _spendAllowance(
        StrategyData storage S,
        address owner,
        address spender,
        uint256 amount
    ) internal {
        uint256 currentAllowance = _allowance(S, owner, spender);
        if (currentAllowance != type(uint256).max) {
            require(
                currentAllowance >= amount,
                "ERC20: insufficient allowance"
            );
            unchecked {
                _approve(S, owner, spender, currentAllowance - amount);
            }
        }
    }

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

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

    /**
     * @notice Sets `value` as the allowance of `spender` over ``owner``'s tokens,
     * given ``owner``'s signed approval.
     *
     * @dev 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 {
        require(deadline >= block.timestamp, "ERC20: 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,
                                _strategyStorage().nonces[owner]++,
                                deadline
                            )
                        )
                    )
                ),
                v,
                r,
                s
            );

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

            _approve(_strategyStorage(), recoveredAddress, spender, value);
        }
    }

    /**
     * @notice Returns the domain separator used in the encoding of the signature
     * for {permit}, as defined by {EIP712}.
     *
     * @return . The domain separator that will be used for any {permit} calls.
     */
    function DOMAIN_SEPARATOR() public view returns (bytes32) {
        return
            keccak256(
                abi.encode(
                    keccak256(
                        "EIP712Domain(string name,string version,uint256 chainId,address verifyingContract)"
                    ),
                    keccak256("Yearn Vault"),
                    keccak256(bytes(API_VERSION)),
                    block.chainid,
                    address(this)
                )
            );
    }

    /*//////////////////////////////////////////////////////////////
                            DEPLOYMENT
    //////////////////////////////////////////////////////////////*/

    /**
     * @dev On contract creation we set `asset` for this contract to address(1).
     * This prevents it from ever being initialized in the future.
     * @param _factory Address of the factory of the same version for protocol fees.
     */
    constructor(address _factory) {
        FACTORY = _factory;
        _strategyStorage().asset = ERC20(address(1));
    }
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_factory","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"caller","type":"address"},{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":false,"internalType":"uint256","name":"assets","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"shares","type":"uint256"}],"name":"Deposit","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"strategy","type":"address"},{"indexed":true,"internalType":"address","name":"asset","type":"address"},{"indexed":false,"internalType":"string","name":"apiVersion","type":"string"}],"name":"NewTokenizedStrategy","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"profit","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"loss","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"protocolFees","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"performanceFees","type":"uint256"}],"name":"Reported","type":"event"},{"anonymous":false,"inputs":[],"name":"StrategyShutdown","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"newEmergencyAdmin","type":"address"}],"name":"UpdateEmergencyAdmin","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"newKeeper","type":"address"}],"name":"UpdateKeeper","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"newManagement","type":"address"}],"name":"UpdateManagement","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"newPendingManagement","type":"address"}],"name":"UpdatePendingManagement","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint16","name":"newPerformanceFee","type":"uint16"}],"name":"UpdatePerformanceFee","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"newPerformanceFeeRecipient","type":"address"}],"name":"UpdatePerformanceFeeRecipient","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"newProfitMaxUnlockTime","type":"uint256"}],"name":"UpdateProfitMaxUnlockTime","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"caller","type":"address"},{"indexed":true,"internalType":"address","name":"receiver","type":"address"},{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":false,"internalType":"uint256","name":"assets","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"shares","type":"uint256"}],"name":"Withdraw","type":"event"},{"inputs":[],"name":"DOMAIN_SEPARATOR","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"FACTORY","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_FEE","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"acceptManagement","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"apiVersion","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"asset","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"shares","type":"uint256"}],"name":"convertToAssets","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"assets","type":"uint256"}],"name":"convertToShares","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"assets","type":"uint256"},{"internalType":"address","name":"receiver","type":"address"}],"name":"deposit","outputs":[{"internalType":"uint256","name":"shares","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"emergencyAdmin","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"emergencyWithdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"fullProfitUnlockDate","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_asset","type":"address"},{"internalType":"string","name":"_name","type":"string"},{"internalType":"address","name":"_management","type":"address"},{"internalType":"address","name":"_performanceFeeRecipient","type":"address"},{"internalType":"address","name":"_keeper","type":"address"}],"name":"initialize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"isShutdown","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"keeper","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lastReport","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"management","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"receiver","type":"address"}],"name":"maxDeposit","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"receiver","type":"address"}],"name":"maxMint","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"maxRedeem","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"maxRedeem","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"maxWithdraw","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"maxWithdraw","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"shares","type":"uint256"},{"internalType":"address","name":"receiver","type":"address"}],"name":"mint","outputs":[{"internalType":"uint256","name":"assets","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_owner","type":"address"}],"name":"nonces","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pendingManagement","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"performanceFee","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"performanceFeeRecipient","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"},{"internalType":"uint256","name":"deadline","type":"uint256"},{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"}],"name":"permit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"assets","type":"uint256"}],"name":"previewDeposit","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"shares","type":"uint256"}],"name":"previewMint","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"shares","type":"uint256"}],"name":"previewRedeem","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"assets","type":"uint256"}],"name":"previewWithdraw","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pricePerShare","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"profitMaxUnlockTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"profitUnlockingRate","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"shares","type":"uint256"},{"internalType":"address","name":"receiver","type":"address"},{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"maxLoss","type":"uint256"}],"name":"redeem","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"shares","type":"uint256"},{"internalType":"address","name":"receiver","type":"address"},{"internalType":"address","name":"owner","type":"address"}],"name":"redeem","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"report","outputs":[{"internalType":"uint256","name":"profit","type":"uint256"},{"internalType":"uint256","name":"loss","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_sender","type":"address"}],"name":"requireEmergencyAuthorized","outputs":[],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_sender","type":"address"}],"name":"requireKeeperOrManagement","outputs":[],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_sender","type":"address"}],"name":"requireManagement","outputs":[],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_emergencyAdmin","type":"address"}],"name":"setEmergencyAdmin","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_keeper","type":"address"}],"name":"setKeeper","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_name","type":"string"}],"name":"setName","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_management","type":"address"}],"name":"setPendingManagement","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"_performanceFee","type":"uint16"}],"name":"setPerformanceFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_performanceFeeRecipient","type":"address"}],"name":"setPerformanceFeeRecipient","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_profitMaxUnlockTime","type":"uint256"}],"name":"setProfitMaxUnlockTime","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"shutdownStrategy","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tend","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"totalAssets","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unlockedShares","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"assets","type":"uint256"},{"internalType":"address","name":"receiver","type":"address"},{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"maxLoss","type":"uint256"}],"name":"withdraw","outputs":[{"internalType":"uint256","name":"shares","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"assets","type":"uint256"},{"internalType":"address","name":"receiver","type":"address"},{"internalType":"address","name":"owner","type":"address"}],"name":"withdraw","outputs":[{"internalType":"uint256","name":"shares","type":"uint256"}],"stateMutability":"nonpayable","type":"function"}]

60a06040523480156200001157600080fd5b5060405162004030380380620040308339810160408190526200003491620000a8565b6001600160a01b03811660805260016200004d62000072565b80546001600160a01b0319166001600160a01b039290921691909117905550620000fc565b600080620000a260017fd2841a5d2692465040bd5e06a6f3b37483952c866e0f304dc0e03f76a1f8a0b1620000da565b92915050565b600060208284031215620000bb57600080fd5b81516001600160a01b0381168114620000d357600080fd5b9392505050565b81810381811115620000a257634e487b7160e01b600052601160045260246000fd5b608051613f116200011f600039600081816104dc0152610adc0152613f116000f3fe608060405234801561001057600080fd5b50600436106103d05760003560e01c806387788782116101ff578063bf86d6901161011a578063d505accf116100ad578063df69b22a1161007c578063df69b22a146107d5578063ed27f7c9146107e8578063ef8b30f714610753578063f629b790146107f057600080fd5b8063d505accf14610794578063d905777e146107a7578063d9a0e97a146107ba578063dd62ed3e146107c257600080fd5b8063c6e6f592116100e9578063c6e6f59214610753578063c8c2fe6c14610766578063ce96cb771461076e578063d43fdcf71461078157600080fd5b8063bf86d6901461071d578063c3535b5214610725578063c47f00271461072d578063c63d75b61461074057600080fd5b8063a9059cbb11610192578063b460af9411610161578063b460af94146106e6578063ba087652146106f9578063bc063e1a1461070c578063be8f16681461071557600080fd5b8063a9059cbb146106a5578063aa290e6d146106b8578063aced1661146106cb578063b3d7f6b9146106d357600080fd5b806397073ae6116101ce57806397073ae61461066457806399530b06146106775780639f40a7b31461067f578063a318c1a41461069257600080fd5b8063877887821461062657806388a8d6021461064157806394bf804d1461064957806395d89b411461065c57600080fd5b806338d52e0f116102ef5780636a5f1aa211610282578063748747e611610251578063748747e6146105da5780637ecebe00146105ed57806382e00a441461060057806385b687561461061357600080fd5b80636a5f1aa2146105995780636e553f65146105ac57806370905dce146105bf57806370a08231146105c757600080fd5b80634abe4137116102be5780634abe41371461056b5780634cdad506146104055780635141eebb1461057e5780635312ea8e1461058657600080fd5b806338d52e0f14610535578063402d267d1461053d578063440368a31461055057806348e4a6491461055857600080fd5b806323b872dd116103675780632dd31000116103365780632dd31000146104d7578063313ce567146104fe57806335da3394146105185780633644e5151461052d57600080fd5b806323b872dd1461047e57806325829410146104915780632606a10b146104b25780632d632692146104cf57600080fd5b8063095ea7b3116103a3578063095ea7b3146104205780630a28a477146104435780630b68f46f1461045657806318160ddd1461047657600080fd5b806301e1d114146103d557806306fdde03146103f057806307a2d13a146104055780630952864e14610418575b600080fd5b6103dd610803565b6040519081526020015b60405180910390f35b6103f861081c565b6040516103e79190613577565b6103dd6104133660046135aa565b6108b7565b6103dd6108d2565b61043361042e3660046135e8565b6108eb565b60405190151581526020016103e7565b6103dd6104513660046135aa565b610909565b61045e61091e565b6040516001600160a01b0390911681526020016103e7565b6103dd61093a565b61043361048c366004613614565b61094c565b6040805180820190915260058152640ccb8c0b8d60da1b60208201526103f8565b6104ba61097e565b604080519283526020830191909152016103e7565b6103dd610db1565b61045e7f000000000000000000000000000000000000000000000000000000000000000081565b610506610dcd565b60405160ff90911681526020016103e7565b61052b610526366004613655565b610de7565b005b6103dd610e46565b61045e610efe565b6103dd61054b366004613655565b610f17565b61052b610f2a565b61052b610566366004613655565b611065565b6103dd6105793660046135e8565b6110c3565b6103dd6110d6565b61052b6105943660046135aa565b6110e9565b61052b6105a7366004613655565b6111ff565b6103dd6105ba366004613672565b6112d9565b61045e61147b565b6103dd6105d5366004613655565b611497565b61052b6105e8366004613655565b6114aa565b6103dd6105fb366004613655565b61150e565b61052b61060e366004613655565b61153a565b6103dd6106213660046135e8565b6115c3565b61062e6115d6565b60405161ffff90911681526020016103e7565b61045e6115f5565b6103dd610657366004613672565b611618565b6103f8611728565b61052b610672366004613711565b6117c6565b6103dd611a50565b6103dd61068d3660046137d6565b611a88565b6103dd6106a03660046137d6565b611bbc565b6104336106b33660046135e8565b611cec565b61052b6106c636600461382e565b611d01565b61045e611da9565b6103dd6106e13660046135aa565b611dcc565b6103dd6106f436600461384b565b611de1565b6103dd61070736600461384b565b611df8565b61062e61138881565b61052b611e08565b610433611e63565b6103dd611e80565b61052b61073b36600461388d565b611e9c565b6103dd61074e366004613655565b611ec3565b6103dd6107613660046135aa565b611ed6565b61052b611eeb565b6103dd61077c366004613655565b611f9b565b61052b61078f366004613655565b611fae565b61052b6107a236600461390e565b61202c565b6103dd6107b5366004613655565b61223a565b6103dd61224d565b6103dd6107d036600461397f565b61225f565b61052b6107e33660046135aa565b61229a565b61045e612382565b61052b6107fe366004613655565b6123a5565b600061081761081061242a565b6006015490565b905090565b606061082661242a565b6001018054610834906139ad565b80601f0160208091040260200160405190810160405280929190818152602001828054610860906139ad565b80156108ad5780601f10610882576101008083540402835291602001916108ad565b820191906000526020600020905b81548152906001019060200180831161089057829003601f168201915b5050505050905090565b60006108cc6108c461242a565b836000612458565b92915050565b60006108dc61242a565b6009015463ffffffff16919050565b60006109006108f861242a565b338585612493565b50600192915050565b60006108cc61091661242a565b8360016125bb565b600061092861242a565b600b01546001600160a01b0316919050565b600061081761094761242a565b612612565b60008061095761242a565b90506109658186338661262c565b610971818686866126c2565b60019150505b9392505050565b600080600061098b61242a565b600c810154909150600119600160a01b90910460ff16016109c75760405162461bcd60e51b81526004016109be906139e1565b60405180910390fd5b600c8101805460ff60a01b1916600160a11b1790556109e533611fae565b60006109ef61242a565b90506000306001600160a01b03166349317f1d6040518163ffffffff1660e01b81526004016020604051808303816000875af1158015610a33573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a579190613a18565b90506000610a66836006015490565b90506000610a7384612867565b60098501549091506000908190819063ffffffff1685871115610bf4578587039a50610aa1888c60006125bb565b6009890154909250640100000000900461ffff1660008115610bb35761271061ffff83168e0204955061271061ffff831685020490506000807f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316635153b1996040518163ffffffff1660e01b81526004016040805180830381865afa158015610b37573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b5b9190613a47565b9150915060008261ffff16600014610b8c575061271061ffff83168981028290049850840204610b8c8d83836128cf565b60098d0154610baf908e90600160301b90046001600160a01b03168387036128cf565b5050505b8215610bed57808403935083871115610bd857610bd38a30868a03612996565b610bed565b86841115610bed57610bed8a308987036128cf565b5050610c49565b868603995089600014610c3857306000908152600489016020526040812054610c35918790610c26908c908f906125bb565b610c309190613a8c565b612a6e565b94505b8415610c4957610c49883087612996565b3060009081526004890160205260409020548015610d045760088901546000906001600160601b031642811115610c8d5784830342826001600160601b0316030291505b600083610c9a8688613a9f565b610ca49085613a8c565b610cae9190613ab6565b905080610cc064e8d4a5100086613a9f565b610cca9190613ab6565b60078d0155610cd98142613a8c565b60088d0180546001600160601b0319166001600160601b039290921691909117905550610d17915050565b6008890180546001600160601b03191690555b60068901889055600a890180546001600160601b031916426001600160601b03161790557fecdd072e4d5bd913a75a37f02daedcea7e2dc0281f9942c0063cfd1cfe5c4c4f8c8c86610d69818a613ad8565b60408051948552602085019390935291830152606082015260800160405180910390a1505050600c909601805460ff60a01b1916600160a01b17905550959694955050505050565b6000610dbb61242a565b600801546001600160601b0316919050565b6000610dd761242a565b54600160a01b900460ff16919050565b610df033611065565b80610df961242a565b600c0180546001600160a01b0319166001600160a01b03928316179055604051908216907f2bf242d027263e45fab022c28b4144255c97b30b8e54c30f1f5757906d487f0990600090a250565b60408051808201825260058152640ccb8c0b8d60da1b60209182015281517f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f818301527fda26655fe98828873f36b43d69dcf685bd7966c6141a47d0d8cf605a48cc4e6a818401527faa741e830036c691364b6111f364dcbe19c4c13e8962b6404784a49bef110d6460608201524660808201523060a0808301919091528351808303909101815260c0909101909252815191012090565b6000610f0861242a565b546001600160a01b0316919050565b60006108cc610f2461242a565b83612a84565b6000610f3461242a565b600c810154909150600119600160a01b90910460ff1601610f675760405162461bcd60e51b81526004016109be906139e1565b600c8101805460ff60a01b1916600160a11b179055610f8533611fae565b30639d7fb70c610f9361242a565b546040516370a0823160e01b81523060048201526001600160a01b03909116906370a0823190602401602060405180830381865afa158015610fd9573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ffd9190613a18565b6040518263ffffffff1660e01b815260040161101b91815260200190565b600060405180830381600087803b15801561103557600080fd5b505af1158015611049573d6000803e3d6000fd5b505050600c909101805460ff60a01b1916600160a01b17905550565b61106d61242a565b600a01546001600160a01b03828116600160601b90920416146110c05760405162461bcd60e51b815260206004820152600b60248201526a085b585b9859d95b595b9d60aa1b60448201526064016109be565b50565b60006109776110d061242a565b84612b1e565b60006110e061242a565b60070154905090565b60006110f361242a565b600c810154909150600119600160a01b90910460ff16016111265760405162461bcd60e51b81526004016109be906139e1565b600c8101805460ff60a01b1916600160a11b1790556111443361153a565b61114c61242a565b600c0154600160a81b900460ff166111955760405162461bcd60e51b815260206004820152600c60248201526b3737ba1039b43aba3237bbb760a11b60448201526064016109be565b604051631fbd027560e31b815260048101839052309063fde813a890602401600060405180830381600087803b1580156111ce57600080fd5b505af11580156111e2573d6000803e3d6000fd5b505050600c909101805460ff60a01b1916600160a01b1790555050565b61120833611065565b6001600160a01b03811661122e5760405162461bcd60e51b81526004016109be90613aeb565b306001600160a01b038216036112775760405162461bcd60e51b815260206004820152600e60248201526d21b0b73737ba1031329039b2b63360911b60448201526064016109be565b8061128061242a565b60090180546601000000000000600160d01b031916600160301b6001600160a01b0393841602179055604051908216907f9ebbf695dd251e855d9d15a146a72f5f654dc6f8630fbc11212f27e0c88ba11a90600090a250565b6000806112e461242a565b600c810154909150600119600160a01b90910460ff16016113175760405162461bcd60e51b81526004016109be906139e1565b600c8101805460ff60a01b1916600160a11b179055600061133661242a565b905060001985036113af5780546040516370a0823160e01b81523360048201526001600160a01b03909116906370a0823190602401602060405180830381865afa158015611388573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113ac9190613a18565b94505b6113b98185612a84565b8511156114085760405162461bcd60e51b815260206004820152601e60248201527f455243343632363a206465706f736974206d6f7265207468616e206d6178000060448201526064016109be565b611414818660006125bb565b9250826000036114545760405162461bcd60e51b815260206004820152600b60248201526a5a45524f5f53484152455360a81b60448201526064016109be565b61146081858786612bbe565b50600c01805460ff60a01b1916600160a01b17905592915050565b600061148561242a565b600c01546001600160a01b0316919050565b60006108cc6114a461242a565b83612d08565b6114b333611065565b806114bc61242a565b60080180546001600160601b0316600160601b6001600160a01b0393841602179055604051908216907fd7f49e282c36d417b290d4181a56943f6d670aaa2987c0d40e60d39919c6888290600090a250565b600061151861242a565b6001600160a01b03909216600090815260039290920160205250604090205490565b600061154461242a565b600c8101549091506001600160a01b038381169116148061157b5750600a8101546001600160a01b03838116600160601b90920416145b6115bf5760405162461bcd60e51b815260206004820152601560248201527408595b595c99d95b98de48185d5d1a1bdc9a5e9959605a1b60448201526064016109be565b5050565b60006109776115d061242a565b84612d68565b60006115e061242a565b60090154640100000000900461ffff16919050565b60006115ff61242a565b600a0154600160601b90046001600160a01b0316919050565b60008061162361242a565b600c810154909150600119600160a01b90910460ff16016116565760405162461bcd60e51b81526004016109be906139e1565b600c8101805460ff60a01b1916600160a11b179055600061167561242a565b90506116818185612e03565b8511156116d05760405162461bcd60e51b815260206004820152601b60248201527f455243343632363a206d696e74206d6f7265207468616e206d6178000000000060448201526064016109be565b6116dc81866001612458565b92508260000361171c5760405162461bcd60e51b815260206004820152600b60248201526a5a45524f5f41535345545360a81b60448201526064016109be565b61146081858588612bbe565b606061173261242a565b54604080516395d89b4160e01b815290516001600160a01b03909216916395d89b41916004808201926000929091908290030181865afa15801561177a573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526117a29190810190613b11565b6040516020016117b29190613b7f565b604051602081830303815290604052905090565b60006117d061242a565b80549091506001600160a01b0316156118195760405162461bcd60e51b815260206004820152600b60248201526a1a5b9a5d1a585b1a5e995960aa1b60448201526064016109be565b80546001600160a01b0319166001600160a01b038716178155600181016118408682613bf7565b50856001600160a01b031663313ce5676040518163ffffffff1660e01b8152600401602060405180830381865afa15801561187f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906118a39190613cb7565b815460ff91909116600160a01b0260ff60a01b1990911617815560098101805463ffffffff1916620d2f001790556001600160a01b0383166118f75760405162461bcd60e51b81526004016109be90613aeb565b306001600160a01b038416036119385760405162461bcd60e51b81526004016109be9060208082526004908201526339b2b63360e11b604082015260600190565b600981018054640100000000600160d01b031916600160301b6001600160a01b038681169190910265ffff000000001916919091176503e80000000017909155600a820180546001600160601b031916426001600160601b031617905584166119b35760405162461bcd60e51b81526004016109be90613aeb565b600a810180546001600160a01b03808716600160601b9081026001600160601b03938416179093556008840180548683169094029390921692909217905560408051808201825260058152640ccb8c0b8d60da1b602082015290519188169130917ffb1616746b8474b6b7c67f2fe5ada156ed24774d0efe8bfe529cf537ba17333091611a409190613577565b60405180910390a3505050505050565b600080611a5b61242a565b8054909150611a82908290611a7b90600160a01b900460ff16600a613db8565b6000612458565b91505090565b600080611a9361242a565b600c810154909150600119600160a01b90910460ff1601611ac65760405162461bcd60e51b81526004016109be906139e1565b600c8101805460ff60a01b1916600160a11b1790556000611ae561242a565b9050611af18186612b1e565b871115611b405760405162461bcd60e51b815260206004820152601d60248201527f455243343632363a2072656465656d206d6f7265207468616e206d617800000060448201526064016109be565b6000611b4e82896000612458565b905080600003611b8e5760405162461bcd60e51b815260206004820152600b60248201526a5a45524f5f41535345545360a81b60448201526064016109be565b611b9c828888848c8a612eb4565b93505050600c01805460ff60a01b1916600160a01b179055949350505050565b600080611bc761242a565b600c810154909150600119600160a01b90910460ff1601611bfa5760405162461bcd60e51b81526004016109be906139e1565b600c8101805460ff60a01b1916600160a11b1790556000611c1961242a565b9050611c258186612d68565b871115611c745760405162461bcd60e51b815260206004820152601f60248201527f455243343632363a207769746864726177206d6f7265207468616e206d61780060448201526064016109be565b611c80818860016125bb565b925082600003611cc05760405162461bcd60e51b815260206004820152600b60248201526a5a45524f5f53484152455360a81b60448201526064016109be565b611cce8187878a8789612eb4565b5050600c01805460ff60a01b1916600160a01b179055949350505050565b6000610900611cf961242a565b3385856126c2565b611d0a33611065565b61138861ffff82161115611d4a5760405162461bcd60e51b81526020600482015260076024820152664d41582046454560c81b60448201526064016109be565b80611d5361242a565b600901805465ffff00000000191664010000000061ffff9384160217905560405190821681527fdc843735e683348ec21c302ffff45462399c5c46f75f67b0a1a5395c535997539060200160405180910390a150565b6000611db361242a565b60080154600160601b90046001600160a01b0316919050565b60006108cc611dd961242a565b836001612458565b6000611df08484846000611bbc565b949350505050565b6000611df0848484612710611a88565b611e113361153a565b6001611e1b61242a565b600c018054911515600160a81b0260ff60a81b199092169190911790556040517ffc1249757a7f27c510c8173c55d03ba442e0d33d9223e06ceb416feac8c7693f90600090a1565b6000611e6d61242a565b600c0154600160a81b900460ff16919050565b6000611e8a61242a565b600a01546001600160601b0316919050565b611ea533611065565b8181611eaf61242a565b60010191611ebe919083613dc7565b505050565b60006108cc611ed061242a565b83612e03565b60006108cc611ee361242a565b8360006125bb565b6000611ef561242a565b600b8101549091506001600160a01b03163314611f3f5760405162461bcd60e51b81526020600482015260086024820152672170656e64696e6760c01b60448201526064016109be565b600a810180546001600160601b031633600160601b810291909117909155600b820180546001600160a01b03191690556040517fff54978127edd34aec0f9061fb3b155fbe0ededdfa881ee3e0d541d3a1eef43890600090a250565b60006108cc611fa861242a565b83612d68565b6000611fb861242a565b60088101549091506001600160a01b03838116600160601b909204161480611ff65750600a8101546001600160a01b03838116600160601b90920416145b6115bf5760405162461bcd60e51b815260206004820152600760248201526610b5b2b2b832b960c91b60448201526064016109be565b4284101561207c5760405162461bcd60e51b815260206004820152601e60248201527f45524332303a205045524d49545f444541444c494e455f45585049524544000060448201526064016109be565b60006001612088610e46565b7f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c98a8a8a6120b461242a565b6001600160a01b038f8116600090815260039290920160209081526040928390208054600181019091558351808301989098529582168784015293166060860152608085019190915260a084019290925260c08084018b90528251808503909101815260e08401909252815191012061190160f01b6101008301526101028201929092526101228101919091526101420160408051601f198184030181528282528051602091820120600084529083018083525260ff871690820152606081018590526080810184905260a0016020604051602081039080840390855afa1580156121a3573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116158015906121d95750876001600160a01b0316816001600160a01b0316145b61221d5760405162461bcd60e51b815260206004820152601560248201527422a92199181d1024a72b20a624a22fa9a4a3a722a960591b60448201526064016109be565b61223061222861242a565b828989612493565b5050505050505050565b60006108cc61224761242a565b83612b1e565b600061081761225a61242a565b612867565b600061097761226c61242a565b6001600160a01b03808616600090815260059290920160209081526040808420928716845291905290205490565b6122a333611065565b6301e185588111156122e25760405162461bcd60e51b8152602060048201526008602482015267746f6f206c6f6e6760c01b60448201526064016109be565b60006122ec61242a565b90508160000361233457306000908152600482016020526040902054801561231957612319823083612996565b50600060078201556008810180546001600160601b03191690555b60098101805463ffffffff191663ffffffff84161790556040518281527ff361aed463da6fa20358e45c6209f1d3e16d4eca706e6eab0b0aeb338729c77a9060200160405180910390a15050565b600061238c61242a565b60090154600160301b90046001600160a01b0316919050565b6123ae33611065565b6001600160a01b0381166123d45760405162461bcd60e51b81526004016109be90613aeb565b806123dd61242a565b600b0180546001600160a01b0319166001600160a01b03928316179055604051908216907fd74668a8c80a07cc56d7c3318a06439eaa815e740d97dcd83487e1fc75076b8b90600090a250565b6000806108cc60017fd2841a5d2692465040bd5e06a6f3b37483952c866e0f304dc0e03f76a1f8a0b1613ad8565b60008061246485612612565b905080156124885761248361247a866006015490565b8590838661317f565b61248a565b835b95945050505050565b6001600160a01b0383166124f55760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b60648201526084016109be565b6001600160a01b0382166125565760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b60648201526084016109be565b6001600160a01b03838116600081815260058701602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591015b60405180910390a350505050565b6000806125c785612612565b9050806000036125da5783915050610977565b60006125e7866006015490565b9050806000036125fc57600092505050610977565b6126088583838761317f565b9695505050505050565b600061261d82612867565b82600201546108cc9190613ad8565b6001600160a01b03838116600090815260058601602090815260408083209386168352929052205460001981146126bb57818110156126ad5760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e636500000060448201526064016109be565b6126bb858585858503612493565b5050505050565b6001600160a01b0383166127265760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b60648201526084016109be565b6001600160a01b0382166127885760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b60648201526084016109be565b306001600160a01b038316036127e05760405162461bcd60e51b815260206004820152601a60248201527f4552433230207472616e7366657220746f20737472617465677900000000000060448201526064016109be565b6001600160a01b03831660009081526004850160205260408120805483929061280a908490613ad8565b90915550506001600160a01b038083166000818152600487016020526040908190208054850190555190918516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef906125ad9085815260200190565b60088101546000906001600160601b0316428111156128a557600a830154600784015464e8d4a51000916001600160601b03164203020491506128c9565b6001600160601b038116156128c95730600090815260048401602052604090205491505b50919050565b6001600160a01b0382166129255760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f20616464726573730060448201526064016109be565b808360020160008282546129399190613a8c565b90915550506001600160a01b03821660008181526004850160209081526040808320805486019055518481527fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91015b60405180910390a3505050565b6001600160a01b0382166129f65760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b60648201526084016109be565b6001600160a01b038216600090815260048401602052604081208054839290612a20908490613ad8565b909155505060028301805482900390556040518181526000906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef90602001612989565b6000818310612a7d5781610977565b5090919050565b600c820154600090600160a81b900460ff1680612aa957506001600160a01b03821630145b15612ab6575060006108cc565b604051632355178960e11b81526001600160a01b038316600482015230906346aa2f1290602401602060405180830381865afa158015612afa573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109779190613a18565b6040516304bd462960e01b81526001600160a01b038216600482015260009030906304bd462990602401602060405180830381865afa158015612b65573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612b899190613a18565b90506000198103612ba557612b9e8383612d08565b90506108cc565b610977612bb4848360006125bb565b610c308585612d08565b83546001600160a01b0316612bd5813330866131d0565b6040516370a0823160e01b815230600482018190529063503160d9906001600160a01b038416906370a0823190602401602060405180830381865afa158015612c22573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612c469190613a18565b6040518263ffffffff1660e01b8152600401612c6491815260200190565b600060405180830381600087803b158015612c7e57600080fd5b505af1158015612c92573d6000803e3d6000fd5b5050505082856006016000828254612caa9190613a8c565b90915550612cbb90508585846128cf565b60408051848152602081018490526001600160a01b0386169133917fdcbc1c05240f31ff3ad067ef1ee35ce4997762752e3a095284754544f4c709d7910160405180910390a35050505050565b6000306001600160a01b03831603612d4857612d2383612867565b6001600160a01b0383166000908152600485016020526040902054612b9e9190613ad8565b506001600160a01b03166000908152600491909101602052604090205490565b6040516304bd462960e01b81526001600160a01b038216600482015260009030906304bd462990602401602060405180830381865afa158015612daf573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612dd39190613a18565b90506000198103612dec57612b9e83611a7b8585612d08565b610977612dfd84611a7b8686612d08565b82612a6e565b600c820154600090600160a81b900460ff1680612e2857506001600160a01b03821630145b15612e35575060006108cc565b604051632355178960e11b81526001600160a01b038316600482015230906346aa2f1290602401602060405180830381865afa158015612e79573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612e9d9190613a18565b905060001981146108cc57610977838260006125bb565b60006001600160a01b038616612edc5760405162461bcd60e51b81526004016109be90613aeb565b612710821115612f205760405162461bcd60e51b815260206004820152600f60248201526e65786365656473204d41585f42505360881b60448201526064016109be565b336001600160a01b03861614612f3c57612f3c8786338661262c565b86546040516370a0823160e01b81523060048201526001600160a01b039091169060009082906370a0823190602401602060405180830381865afa158015612f88573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612fac9190613a18565b90506000868210156130e457604051633d6cb57560e01b815282880360048201523090633d6cb57590602401600060405180830381600087803b158015612ff257600080fd5b505af1158015613006573d6000803e3d6000fd5b50506040516370a0823160e01b81523060048201526001600160a01b03861692506370a082319150602401602060405180830381865afa15801561304e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906130729190613a18565b9150868210156130e457508086036127108510156130e0576127106130978689613a9f565b6130a19190613ab6565b8111156130e05760405162461bcd60e51b815260206004820152600d60248201526c746f6f206d756368206c6f737360981b60448201526064016109be565b8196505b6130ee8188613a8c565b8a60060160008282546131019190613ad8565b9091555061311290508a8988612996565b6131266001600160a01b0384168a89613241565b60408051888152602081018890526001600160a01b03808b1692908c169133917ffbde797d201c681b91056529119e0b02407c7bb96a4a2c75c01fc9667232c8db910160405180910390a4509498975050505050505050565b60008061318d868686613271565b905060018360028111156131a3576131a3613e87565b1480156131c05750600084806131bb576131bb613a31565b868809115b1561248a57612608600182613a8c565b6040516001600160a01b038085166024830152831660448201526064810182905261323b9085906323b872dd60e01b906084015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b03199093169290921790915261335b565b50505050565b6040516001600160a01b038316602482015260448101829052611ebe90849063a9059cbb60e01b90606401613204565b60008080600019858709858702925082811083820303915050806000036132ab578382816132a1576132a1613a31565b0492505050610977565b8084116132f25760405162461bcd60e51b81526020600482015260156024820152744d6174683a206d756c446976206f766572666c6f7760581b60448201526064016109be565b60008486880960026001871981018816978890046003810283188082028403028082028403028082028403028082028403028082028403029081029092039091026000889003889004909101858311909403939093029303949094049190911702949350505050565b60006133b0826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166134309092919063ffffffff16565b90508051600014806133d15750808060200190518101906133d19190613e9d565b611ebe5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b60648201526084016109be565b6060611df0848460008585600080866001600160a01b031685876040516134579190613ebf565b60006040518083038185875af1925050503d8060008114613494576040519150601f19603f3d011682016040523d82523d6000602084013e613499565b606091505b50915091506134aa878383876134b5565b979650505050505050565b6060831561352457825160000361351d576001600160a01b0385163b61351d5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016109be565b5081611df0565b611df083838151156135395781518083602001fd5b8060405162461bcd60e51b81526004016109be9190613577565b60005b8381101561356e578181015183820152602001613556565b50506000910152565b6020815260008251806020840152613596816040850160208701613553565b601f01601f19169190910160400192915050565b6000602082840312156135bc57600080fd5b5035919050565b6001600160a01b03811681146110c057600080fd5b80356135e3816135c3565b919050565b600080604083850312156135fb57600080fd5b8235613606816135c3565b946020939093013593505050565b60008060006060848603121561362957600080fd5b8335613634816135c3565b92506020840135613644816135c3565b929592945050506040919091013590565b60006020828403121561366757600080fd5b8135610977816135c3565b6000806040838503121561368557600080fd5b823591506020830135613697816135c3565b809150509250929050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff811182821017156136e1576136e16136a2565b604052919050565b600067ffffffffffffffff821115613703576137036136a2565b50601f01601f191660200190565b600080600080600060a0868803121561372957600080fd5b8535613734816135c3565b9450602086013567ffffffffffffffff81111561375057600080fd5b8601601f8101881361376157600080fd5b803561377461376f826136e9565b6136b8565b81815289602083850101111561378957600080fd5b816020840160208301376000602083830101528096505050506137ae604087016135d8565b92506137bc606087016135d8565b91506137ca608087016135d8565b90509295509295909350565b600080600080608085870312156137ec57600080fd5b8435935060208501356137fe816135c3565b9250604085013561380e816135c3565b9396929550929360600135925050565b61ffff811681146110c057600080fd5b60006020828403121561384057600080fd5b81356109778161381e565b60008060006060848603121561386057600080fd5b833592506020840135613872816135c3565b91506040840135613882816135c3565b809150509250925092565b600080602083850312156138a057600080fd5b823567ffffffffffffffff808211156138b857600080fd5b818501915085601f8301126138cc57600080fd5b8135818111156138db57600080fd5b8660208285010111156138ed57600080fd5b60209290920196919550909350505050565b60ff811681146110c057600080fd5b600080600080600080600060e0888a03121561392957600080fd5b8735613934816135c3565b96506020880135613944816135c3565b955060408801359450606088013593506080880135613962816138ff565b9699959850939692959460a0840135945060c09093013592915050565b6000806040838503121561399257600080fd5b823561399d816135c3565b91506020830135613697816135c3565b600181811c908216806139c157607f821691505b6020821081036128c957634e487b7160e01b600052602260045260246000fd5b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b600060208284031215613a2a57600080fd5b5051919050565b634e487b7160e01b600052601260045260246000fd5b60008060408385031215613a5a57600080fd5b8251613a658161381e565b6020840151909250613697816135c3565b634e487b7160e01b600052601160045260246000fd5b808201808211156108cc576108cc613a76565b80820281158282048414176108cc576108cc613a76565b600082613ad357634e487b7160e01b600052601260045260246000fd5b500490565b818103818111156108cc576108cc613a76565b6020808252600c908201526b5a45524f204144445245535360a01b604082015260600190565b600060208284031215613b2357600080fd5b815167ffffffffffffffff811115613b3a57600080fd5b8201601f81018413613b4b57600080fd5b8051613b5961376f826136e9565b818152856020838501011115613b6e57600080fd5b61248a826020830160208601613553565b61797360f01b815260008251613b9c816002850160208701613553565b9190910160020192915050565b601f821115611ebe57600081815260208120601f850160051c81016020861015613bd05750805b601f850160051c820191505b81811015613bef57828155600101613bdc565b505050505050565b815167ffffffffffffffff811115613c1157613c116136a2565b613c2581613c1f84546139ad565b84613ba9565b602080601f831160018114613c5a5760008415613c425750858301515b600019600386901b1c1916600185901b178555613bef565b600085815260208120601f198616915b82811015613c8957888601518255948401946001909101908401613c6a565b5085821015613ca75787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b600060208284031215613cc957600080fd5b8151610977816138ff565b600181815b80851115613d0f578160001904821115613cf557613cf5613a76565b80851615613d0257918102915b93841c9390800290613cd9565b509250929050565b600082613d26575060016108cc565b81613d33575060006108cc565b8160018114613d495760028114613d5357613d6f565b60019150506108cc565b60ff841115613d6457613d64613a76565b50506001821b6108cc565b5060208310610133831016604e8410600b8410161715613d92575081810a6108cc565b613d9c8383613cd4565b8060001904821115613db057613db0613a76565b029392505050565b600061097760ff841683613d17565b67ffffffffffffffff831115613ddf57613ddf6136a2565b613df383613ded83546139ad565b83613ba9565b6000601f841160018114613e275760008515613e0f5750838201355b600019600387901b1c1916600186901b1783556126bb565b600083815260209020601f19861690835b82811015613e585786850135825560209485019460019092019101613e38565b5086821015613e755760001960f88860031b161c19848701351681555b505060018560011b0183555050505050565b634e487b7160e01b600052602160045260246000fd5b600060208284031215613eaf57600080fd5b8151801515811461097757600080fd5b60008251613ed1818460208701613553565b919091019291505056fea264697066735822122078217b19cda59fa3b0dd000bd2e8ed5e9eb975c62f213df8a6e2f9454ec72e3764736f6c63430008120033000000000000000000000000770d0d1fb036483ed4abb6d53c1c88fb277d812f

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106103d05760003560e01c806387788782116101ff578063bf86d6901161011a578063d505accf116100ad578063df69b22a1161007c578063df69b22a146107d5578063ed27f7c9146107e8578063ef8b30f714610753578063f629b790146107f057600080fd5b8063d505accf14610794578063d905777e146107a7578063d9a0e97a146107ba578063dd62ed3e146107c257600080fd5b8063c6e6f592116100e9578063c6e6f59214610753578063c8c2fe6c14610766578063ce96cb771461076e578063d43fdcf71461078157600080fd5b8063bf86d6901461071d578063c3535b5214610725578063c47f00271461072d578063c63d75b61461074057600080fd5b8063a9059cbb11610192578063b460af9411610161578063b460af94146106e6578063ba087652146106f9578063bc063e1a1461070c578063be8f16681461071557600080fd5b8063a9059cbb146106a5578063aa290e6d146106b8578063aced1661146106cb578063b3d7f6b9146106d357600080fd5b806397073ae6116101ce57806397073ae61461066457806399530b06146106775780639f40a7b31461067f578063a318c1a41461069257600080fd5b8063877887821461062657806388a8d6021461064157806394bf804d1461064957806395d89b411461065c57600080fd5b806338d52e0f116102ef5780636a5f1aa211610282578063748747e611610251578063748747e6146105da5780637ecebe00146105ed57806382e00a441461060057806385b687561461061357600080fd5b80636a5f1aa2146105995780636e553f65146105ac57806370905dce146105bf57806370a08231146105c757600080fd5b80634abe4137116102be5780634abe41371461056b5780634cdad506146104055780635141eebb1461057e5780635312ea8e1461058657600080fd5b806338d52e0f14610535578063402d267d1461053d578063440368a31461055057806348e4a6491461055857600080fd5b806323b872dd116103675780632dd31000116103365780632dd31000146104d7578063313ce567146104fe57806335da3394146105185780633644e5151461052d57600080fd5b806323b872dd1461047e57806325829410146104915780632606a10b146104b25780632d632692146104cf57600080fd5b8063095ea7b3116103a3578063095ea7b3146104205780630a28a477146104435780630b68f46f1461045657806318160ddd1461047657600080fd5b806301e1d114146103d557806306fdde03146103f057806307a2d13a146104055780630952864e14610418575b600080fd5b6103dd610803565b6040519081526020015b60405180910390f35b6103f861081c565b6040516103e79190613577565b6103dd6104133660046135aa565b6108b7565b6103dd6108d2565b61043361042e3660046135e8565b6108eb565b60405190151581526020016103e7565b6103dd6104513660046135aa565b610909565b61045e61091e565b6040516001600160a01b0390911681526020016103e7565b6103dd61093a565b61043361048c366004613614565b61094c565b6040805180820190915260058152640ccb8c0b8d60da1b60208201526103f8565b6104ba61097e565b604080519283526020830191909152016103e7565b6103dd610db1565b61045e7f000000000000000000000000770d0d1fb036483ed4abb6d53c1c88fb277d812f81565b610506610dcd565b60405160ff90911681526020016103e7565b61052b610526366004613655565b610de7565b005b6103dd610e46565b61045e610efe565b6103dd61054b366004613655565b610f17565b61052b610f2a565b61052b610566366004613655565b611065565b6103dd6105793660046135e8565b6110c3565b6103dd6110d6565b61052b6105943660046135aa565b6110e9565b61052b6105a7366004613655565b6111ff565b6103dd6105ba366004613672565b6112d9565b61045e61147b565b6103dd6105d5366004613655565b611497565b61052b6105e8366004613655565b6114aa565b6103dd6105fb366004613655565b61150e565b61052b61060e366004613655565b61153a565b6103dd6106213660046135e8565b6115c3565b61062e6115d6565b60405161ffff90911681526020016103e7565b61045e6115f5565b6103dd610657366004613672565b611618565b6103f8611728565b61052b610672366004613711565b6117c6565b6103dd611a50565b6103dd61068d3660046137d6565b611a88565b6103dd6106a03660046137d6565b611bbc565b6104336106b33660046135e8565b611cec565b61052b6106c636600461382e565b611d01565b61045e611da9565b6103dd6106e13660046135aa565b611dcc565b6103dd6106f436600461384b565b611de1565b6103dd61070736600461384b565b611df8565b61062e61138881565b61052b611e08565b610433611e63565b6103dd611e80565b61052b61073b36600461388d565b611e9c565b6103dd61074e366004613655565b611ec3565b6103dd6107613660046135aa565b611ed6565b61052b611eeb565b6103dd61077c366004613655565b611f9b565b61052b61078f366004613655565b611fae565b61052b6107a236600461390e565b61202c565b6103dd6107b5366004613655565b61223a565b6103dd61224d565b6103dd6107d036600461397f565b61225f565b61052b6107e33660046135aa565b61229a565b61045e612382565b61052b6107fe366004613655565b6123a5565b600061081761081061242a565b6006015490565b905090565b606061082661242a565b6001018054610834906139ad565b80601f0160208091040260200160405190810160405280929190818152602001828054610860906139ad565b80156108ad5780601f10610882576101008083540402835291602001916108ad565b820191906000526020600020905b81548152906001019060200180831161089057829003601f168201915b5050505050905090565b60006108cc6108c461242a565b836000612458565b92915050565b60006108dc61242a565b6009015463ffffffff16919050565b60006109006108f861242a565b338585612493565b50600192915050565b60006108cc61091661242a565b8360016125bb565b600061092861242a565b600b01546001600160a01b0316919050565b600061081761094761242a565b612612565b60008061095761242a565b90506109658186338661262c565b610971818686866126c2565b60019150505b9392505050565b600080600061098b61242a565b600c810154909150600119600160a01b90910460ff16016109c75760405162461bcd60e51b81526004016109be906139e1565b60405180910390fd5b600c8101805460ff60a01b1916600160a11b1790556109e533611fae565b60006109ef61242a565b90506000306001600160a01b03166349317f1d6040518163ffffffff1660e01b81526004016020604051808303816000875af1158015610a33573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a579190613a18565b90506000610a66836006015490565b90506000610a7384612867565b60098501549091506000908190819063ffffffff1685871115610bf4578587039a50610aa1888c60006125bb565b6009890154909250640100000000900461ffff1660008115610bb35761271061ffff83168e0204955061271061ffff831685020490506000807f000000000000000000000000770d0d1fb036483ed4abb6d53c1c88fb277d812f6001600160a01b0316635153b1996040518163ffffffff1660e01b81526004016040805180830381865afa158015610b37573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b5b9190613a47565b9150915060008261ffff16600014610b8c575061271061ffff83168981028290049850840204610b8c8d83836128cf565b60098d0154610baf908e90600160301b90046001600160a01b03168387036128cf565b5050505b8215610bed57808403935083871115610bd857610bd38a30868a03612996565b610bed565b86841115610bed57610bed8a308987036128cf565b5050610c49565b868603995089600014610c3857306000908152600489016020526040812054610c35918790610c26908c908f906125bb565b610c309190613a8c565b612a6e565b94505b8415610c4957610c49883087612996565b3060009081526004890160205260409020548015610d045760088901546000906001600160601b031642811115610c8d5784830342826001600160601b0316030291505b600083610c9a8688613a9f565b610ca49085613a8c565b610cae9190613ab6565b905080610cc064e8d4a5100086613a9f565b610cca9190613ab6565b60078d0155610cd98142613a8c565b60088d0180546001600160601b0319166001600160601b039290921691909117905550610d17915050565b6008890180546001600160601b03191690555b60068901889055600a890180546001600160601b031916426001600160601b03161790557fecdd072e4d5bd913a75a37f02daedcea7e2dc0281f9942c0063cfd1cfe5c4c4f8c8c86610d69818a613ad8565b60408051948552602085019390935291830152606082015260800160405180910390a1505050600c909601805460ff60a01b1916600160a01b17905550959694955050505050565b6000610dbb61242a565b600801546001600160601b0316919050565b6000610dd761242a565b54600160a01b900460ff16919050565b610df033611065565b80610df961242a565b600c0180546001600160a01b0319166001600160a01b03928316179055604051908216907f2bf242d027263e45fab022c28b4144255c97b30b8e54c30f1f5757906d487f0990600090a250565b60408051808201825260058152640ccb8c0b8d60da1b60209182015281517f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f818301527fda26655fe98828873f36b43d69dcf685bd7966c6141a47d0d8cf605a48cc4e6a818401527faa741e830036c691364b6111f364dcbe19c4c13e8962b6404784a49bef110d6460608201524660808201523060a0808301919091528351808303909101815260c0909101909252815191012090565b6000610f0861242a565b546001600160a01b0316919050565b60006108cc610f2461242a565b83612a84565b6000610f3461242a565b600c810154909150600119600160a01b90910460ff1601610f675760405162461bcd60e51b81526004016109be906139e1565b600c8101805460ff60a01b1916600160a11b179055610f8533611fae565b30639d7fb70c610f9361242a565b546040516370a0823160e01b81523060048201526001600160a01b03909116906370a0823190602401602060405180830381865afa158015610fd9573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ffd9190613a18565b6040518263ffffffff1660e01b815260040161101b91815260200190565b600060405180830381600087803b15801561103557600080fd5b505af1158015611049573d6000803e3d6000fd5b505050600c909101805460ff60a01b1916600160a01b17905550565b61106d61242a565b600a01546001600160a01b03828116600160601b90920416146110c05760405162461bcd60e51b815260206004820152600b60248201526a085b585b9859d95b595b9d60aa1b60448201526064016109be565b50565b60006109776110d061242a565b84612b1e565b60006110e061242a565b60070154905090565b60006110f361242a565b600c810154909150600119600160a01b90910460ff16016111265760405162461bcd60e51b81526004016109be906139e1565b600c8101805460ff60a01b1916600160a11b1790556111443361153a565b61114c61242a565b600c0154600160a81b900460ff166111955760405162461bcd60e51b815260206004820152600c60248201526b3737ba1039b43aba3237bbb760a11b60448201526064016109be565b604051631fbd027560e31b815260048101839052309063fde813a890602401600060405180830381600087803b1580156111ce57600080fd5b505af11580156111e2573d6000803e3d6000fd5b505050600c909101805460ff60a01b1916600160a01b1790555050565b61120833611065565b6001600160a01b03811661122e5760405162461bcd60e51b81526004016109be90613aeb565b306001600160a01b038216036112775760405162461bcd60e51b815260206004820152600e60248201526d21b0b73737ba1031329039b2b63360911b60448201526064016109be565b8061128061242a565b60090180546601000000000000600160d01b031916600160301b6001600160a01b0393841602179055604051908216907f9ebbf695dd251e855d9d15a146a72f5f654dc6f8630fbc11212f27e0c88ba11a90600090a250565b6000806112e461242a565b600c810154909150600119600160a01b90910460ff16016113175760405162461bcd60e51b81526004016109be906139e1565b600c8101805460ff60a01b1916600160a11b179055600061133661242a565b905060001985036113af5780546040516370a0823160e01b81523360048201526001600160a01b03909116906370a0823190602401602060405180830381865afa158015611388573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113ac9190613a18565b94505b6113b98185612a84565b8511156114085760405162461bcd60e51b815260206004820152601e60248201527f455243343632363a206465706f736974206d6f7265207468616e206d6178000060448201526064016109be565b611414818660006125bb565b9250826000036114545760405162461bcd60e51b815260206004820152600b60248201526a5a45524f5f53484152455360a81b60448201526064016109be565b61146081858786612bbe565b50600c01805460ff60a01b1916600160a01b17905592915050565b600061148561242a565b600c01546001600160a01b0316919050565b60006108cc6114a461242a565b83612d08565b6114b333611065565b806114bc61242a565b60080180546001600160601b0316600160601b6001600160a01b0393841602179055604051908216907fd7f49e282c36d417b290d4181a56943f6d670aaa2987c0d40e60d39919c6888290600090a250565b600061151861242a565b6001600160a01b03909216600090815260039290920160205250604090205490565b600061154461242a565b600c8101549091506001600160a01b038381169116148061157b5750600a8101546001600160a01b03838116600160601b90920416145b6115bf5760405162461bcd60e51b815260206004820152601560248201527408595b595c99d95b98de48185d5d1a1bdc9a5e9959605a1b60448201526064016109be565b5050565b60006109776115d061242a565b84612d68565b60006115e061242a565b60090154640100000000900461ffff16919050565b60006115ff61242a565b600a0154600160601b90046001600160a01b0316919050565b60008061162361242a565b600c810154909150600119600160a01b90910460ff16016116565760405162461bcd60e51b81526004016109be906139e1565b600c8101805460ff60a01b1916600160a11b179055600061167561242a565b90506116818185612e03565b8511156116d05760405162461bcd60e51b815260206004820152601b60248201527f455243343632363a206d696e74206d6f7265207468616e206d6178000000000060448201526064016109be565b6116dc81866001612458565b92508260000361171c5760405162461bcd60e51b815260206004820152600b60248201526a5a45524f5f41535345545360a81b60448201526064016109be565b61146081858588612bbe565b606061173261242a565b54604080516395d89b4160e01b815290516001600160a01b03909216916395d89b41916004808201926000929091908290030181865afa15801561177a573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526117a29190810190613b11565b6040516020016117b29190613b7f565b604051602081830303815290604052905090565b60006117d061242a565b80549091506001600160a01b0316156118195760405162461bcd60e51b815260206004820152600b60248201526a1a5b9a5d1a585b1a5e995960aa1b60448201526064016109be565b80546001600160a01b0319166001600160a01b038716178155600181016118408682613bf7565b50856001600160a01b031663313ce5676040518163ffffffff1660e01b8152600401602060405180830381865afa15801561187f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906118a39190613cb7565b815460ff91909116600160a01b0260ff60a01b1990911617815560098101805463ffffffff1916620d2f001790556001600160a01b0383166118f75760405162461bcd60e51b81526004016109be90613aeb565b306001600160a01b038416036119385760405162461bcd60e51b81526004016109be9060208082526004908201526339b2b63360e11b604082015260600190565b600981018054640100000000600160d01b031916600160301b6001600160a01b038681169190910265ffff000000001916919091176503e80000000017909155600a820180546001600160601b031916426001600160601b031617905584166119b35760405162461bcd60e51b81526004016109be90613aeb565b600a810180546001600160a01b03808716600160601b9081026001600160601b03938416179093556008840180548683169094029390921692909217905560408051808201825260058152640ccb8c0b8d60da1b602082015290519188169130917ffb1616746b8474b6b7c67f2fe5ada156ed24774d0efe8bfe529cf537ba17333091611a409190613577565b60405180910390a3505050505050565b600080611a5b61242a565b8054909150611a82908290611a7b90600160a01b900460ff16600a613db8565b6000612458565b91505090565b600080611a9361242a565b600c810154909150600119600160a01b90910460ff1601611ac65760405162461bcd60e51b81526004016109be906139e1565b600c8101805460ff60a01b1916600160a11b1790556000611ae561242a565b9050611af18186612b1e565b871115611b405760405162461bcd60e51b815260206004820152601d60248201527f455243343632363a2072656465656d206d6f7265207468616e206d617800000060448201526064016109be565b6000611b4e82896000612458565b905080600003611b8e5760405162461bcd60e51b815260206004820152600b60248201526a5a45524f5f41535345545360a81b60448201526064016109be565b611b9c828888848c8a612eb4565b93505050600c01805460ff60a01b1916600160a01b179055949350505050565b600080611bc761242a565b600c810154909150600119600160a01b90910460ff1601611bfa5760405162461bcd60e51b81526004016109be906139e1565b600c8101805460ff60a01b1916600160a11b1790556000611c1961242a565b9050611c258186612d68565b871115611c745760405162461bcd60e51b815260206004820152601f60248201527f455243343632363a207769746864726177206d6f7265207468616e206d61780060448201526064016109be565b611c80818860016125bb565b925082600003611cc05760405162461bcd60e51b815260206004820152600b60248201526a5a45524f5f53484152455360a81b60448201526064016109be565b611cce8187878a8789612eb4565b5050600c01805460ff60a01b1916600160a01b179055949350505050565b6000610900611cf961242a565b3385856126c2565b611d0a33611065565b61138861ffff82161115611d4a5760405162461bcd60e51b81526020600482015260076024820152664d41582046454560c81b60448201526064016109be565b80611d5361242a565b600901805465ffff00000000191664010000000061ffff9384160217905560405190821681527fdc843735e683348ec21c302ffff45462399c5c46f75f67b0a1a5395c535997539060200160405180910390a150565b6000611db361242a565b60080154600160601b90046001600160a01b0316919050565b60006108cc611dd961242a565b836001612458565b6000611df08484846000611bbc565b949350505050565b6000611df0848484612710611a88565b611e113361153a565b6001611e1b61242a565b600c018054911515600160a81b0260ff60a81b199092169190911790556040517ffc1249757a7f27c510c8173c55d03ba442e0d33d9223e06ceb416feac8c7693f90600090a1565b6000611e6d61242a565b600c0154600160a81b900460ff16919050565b6000611e8a61242a565b600a01546001600160601b0316919050565b611ea533611065565b8181611eaf61242a565b60010191611ebe919083613dc7565b505050565b60006108cc611ed061242a565b83612e03565b60006108cc611ee361242a565b8360006125bb565b6000611ef561242a565b600b8101549091506001600160a01b03163314611f3f5760405162461bcd60e51b81526020600482015260086024820152672170656e64696e6760c01b60448201526064016109be565b600a810180546001600160601b031633600160601b810291909117909155600b820180546001600160a01b03191690556040517fff54978127edd34aec0f9061fb3b155fbe0ededdfa881ee3e0d541d3a1eef43890600090a250565b60006108cc611fa861242a565b83612d68565b6000611fb861242a565b60088101549091506001600160a01b03838116600160601b909204161480611ff65750600a8101546001600160a01b03838116600160601b90920416145b6115bf5760405162461bcd60e51b815260206004820152600760248201526610b5b2b2b832b960c91b60448201526064016109be565b4284101561207c5760405162461bcd60e51b815260206004820152601e60248201527f45524332303a205045524d49545f444541444c494e455f45585049524544000060448201526064016109be565b60006001612088610e46565b7f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c98a8a8a6120b461242a565b6001600160a01b038f8116600090815260039290920160209081526040928390208054600181019091558351808301989098529582168784015293166060860152608085019190915260a084019290925260c08084018b90528251808503909101815260e08401909252815191012061190160f01b6101008301526101028201929092526101228101919091526101420160408051601f198184030181528282528051602091820120600084529083018083525260ff871690820152606081018590526080810184905260a0016020604051602081039080840390855afa1580156121a3573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116158015906121d95750876001600160a01b0316816001600160a01b0316145b61221d5760405162461bcd60e51b815260206004820152601560248201527422a92199181d1024a72b20a624a22fa9a4a3a722a960591b60448201526064016109be565b61223061222861242a565b828989612493565b5050505050505050565b60006108cc61224761242a565b83612b1e565b600061081761225a61242a565b612867565b600061097761226c61242a565b6001600160a01b03808616600090815260059290920160209081526040808420928716845291905290205490565b6122a333611065565b6301e185588111156122e25760405162461bcd60e51b8152602060048201526008602482015267746f6f206c6f6e6760c01b60448201526064016109be565b60006122ec61242a565b90508160000361233457306000908152600482016020526040902054801561231957612319823083612996565b50600060078201556008810180546001600160601b03191690555b60098101805463ffffffff191663ffffffff84161790556040518281527ff361aed463da6fa20358e45c6209f1d3e16d4eca706e6eab0b0aeb338729c77a9060200160405180910390a15050565b600061238c61242a565b60090154600160301b90046001600160a01b0316919050565b6123ae33611065565b6001600160a01b0381166123d45760405162461bcd60e51b81526004016109be90613aeb565b806123dd61242a565b600b0180546001600160a01b0319166001600160a01b03928316179055604051908216907fd74668a8c80a07cc56d7c3318a06439eaa815e740d97dcd83487e1fc75076b8b90600090a250565b6000806108cc60017fd2841a5d2692465040bd5e06a6f3b37483952c866e0f304dc0e03f76a1f8a0b1613ad8565b60008061246485612612565b905080156124885761248361247a866006015490565b8590838661317f565b61248a565b835b95945050505050565b6001600160a01b0383166124f55760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b60648201526084016109be565b6001600160a01b0382166125565760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b60648201526084016109be565b6001600160a01b03838116600081815260058701602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591015b60405180910390a350505050565b6000806125c785612612565b9050806000036125da5783915050610977565b60006125e7866006015490565b9050806000036125fc57600092505050610977565b6126088583838761317f565b9695505050505050565b600061261d82612867565b82600201546108cc9190613ad8565b6001600160a01b03838116600090815260058601602090815260408083209386168352929052205460001981146126bb57818110156126ad5760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e636500000060448201526064016109be565b6126bb858585858503612493565b5050505050565b6001600160a01b0383166127265760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b60648201526084016109be565b6001600160a01b0382166127885760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b60648201526084016109be565b306001600160a01b038316036127e05760405162461bcd60e51b815260206004820152601a60248201527f4552433230207472616e7366657220746f20737472617465677900000000000060448201526064016109be565b6001600160a01b03831660009081526004850160205260408120805483929061280a908490613ad8565b90915550506001600160a01b038083166000818152600487016020526040908190208054850190555190918516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef906125ad9085815260200190565b60088101546000906001600160601b0316428111156128a557600a830154600784015464e8d4a51000916001600160601b03164203020491506128c9565b6001600160601b038116156128c95730600090815260048401602052604090205491505b50919050565b6001600160a01b0382166129255760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f20616464726573730060448201526064016109be565b808360020160008282546129399190613a8c565b90915550506001600160a01b03821660008181526004850160209081526040808320805486019055518481527fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91015b60405180910390a3505050565b6001600160a01b0382166129f65760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b60648201526084016109be565b6001600160a01b038216600090815260048401602052604081208054839290612a20908490613ad8565b909155505060028301805482900390556040518181526000906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef90602001612989565b6000818310612a7d5781610977565b5090919050565b600c820154600090600160a81b900460ff1680612aa957506001600160a01b03821630145b15612ab6575060006108cc565b604051632355178960e11b81526001600160a01b038316600482015230906346aa2f1290602401602060405180830381865afa158015612afa573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109779190613a18565b6040516304bd462960e01b81526001600160a01b038216600482015260009030906304bd462990602401602060405180830381865afa158015612b65573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612b899190613a18565b90506000198103612ba557612b9e8383612d08565b90506108cc565b610977612bb4848360006125bb565b610c308585612d08565b83546001600160a01b0316612bd5813330866131d0565b6040516370a0823160e01b815230600482018190529063503160d9906001600160a01b038416906370a0823190602401602060405180830381865afa158015612c22573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612c469190613a18565b6040518263ffffffff1660e01b8152600401612c6491815260200190565b600060405180830381600087803b158015612c7e57600080fd5b505af1158015612c92573d6000803e3d6000fd5b5050505082856006016000828254612caa9190613a8c565b90915550612cbb90508585846128cf565b60408051848152602081018490526001600160a01b0386169133917fdcbc1c05240f31ff3ad067ef1ee35ce4997762752e3a095284754544f4c709d7910160405180910390a35050505050565b6000306001600160a01b03831603612d4857612d2383612867565b6001600160a01b0383166000908152600485016020526040902054612b9e9190613ad8565b506001600160a01b03166000908152600491909101602052604090205490565b6040516304bd462960e01b81526001600160a01b038216600482015260009030906304bd462990602401602060405180830381865afa158015612daf573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612dd39190613a18565b90506000198103612dec57612b9e83611a7b8585612d08565b610977612dfd84611a7b8686612d08565b82612a6e565b600c820154600090600160a81b900460ff1680612e2857506001600160a01b03821630145b15612e35575060006108cc565b604051632355178960e11b81526001600160a01b038316600482015230906346aa2f1290602401602060405180830381865afa158015612e79573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612e9d9190613a18565b905060001981146108cc57610977838260006125bb565b60006001600160a01b038616612edc5760405162461bcd60e51b81526004016109be90613aeb565b612710821115612f205760405162461bcd60e51b815260206004820152600f60248201526e65786365656473204d41585f42505360881b60448201526064016109be565b336001600160a01b03861614612f3c57612f3c8786338661262c565b86546040516370a0823160e01b81523060048201526001600160a01b039091169060009082906370a0823190602401602060405180830381865afa158015612f88573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612fac9190613a18565b90506000868210156130e457604051633d6cb57560e01b815282880360048201523090633d6cb57590602401600060405180830381600087803b158015612ff257600080fd5b505af1158015613006573d6000803e3d6000fd5b50506040516370a0823160e01b81523060048201526001600160a01b03861692506370a082319150602401602060405180830381865afa15801561304e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906130729190613a18565b9150868210156130e457508086036127108510156130e0576127106130978689613a9f565b6130a19190613ab6565b8111156130e05760405162461bcd60e51b815260206004820152600d60248201526c746f6f206d756368206c6f737360981b60448201526064016109be565b8196505b6130ee8188613a8c565b8a60060160008282546131019190613ad8565b9091555061311290508a8988612996565b6131266001600160a01b0384168a89613241565b60408051888152602081018890526001600160a01b03808b1692908c169133917ffbde797d201c681b91056529119e0b02407c7bb96a4a2c75c01fc9667232c8db910160405180910390a4509498975050505050505050565b60008061318d868686613271565b905060018360028111156131a3576131a3613e87565b1480156131c05750600084806131bb576131bb613a31565b868809115b1561248a57612608600182613a8c565b6040516001600160a01b038085166024830152831660448201526064810182905261323b9085906323b872dd60e01b906084015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b03199093169290921790915261335b565b50505050565b6040516001600160a01b038316602482015260448101829052611ebe90849063a9059cbb60e01b90606401613204565b60008080600019858709858702925082811083820303915050806000036132ab578382816132a1576132a1613a31565b0492505050610977565b8084116132f25760405162461bcd60e51b81526020600482015260156024820152744d6174683a206d756c446976206f766572666c6f7760581b60448201526064016109be565b60008486880960026001871981018816978890046003810283188082028403028082028403028082028403028082028403028082028403029081029092039091026000889003889004909101858311909403939093029303949094049190911702949350505050565b60006133b0826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166134309092919063ffffffff16565b90508051600014806133d15750808060200190518101906133d19190613e9d565b611ebe5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b60648201526084016109be565b6060611df0848460008585600080866001600160a01b031685876040516134579190613ebf565b60006040518083038185875af1925050503d8060008114613494576040519150601f19603f3d011682016040523d82523d6000602084013e613499565b606091505b50915091506134aa878383876134b5565b979650505050505050565b6060831561352457825160000361351d576001600160a01b0385163b61351d5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016109be565b5081611df0565b611df083838151156135395781518083602001fd5b8060405162461bcd60e51b81526004016109be9190613577565b60005b8381101561356e578181015183820152602001613556565b50506000910152565b6020815260008251806020840152613596816040850160208701613553565b601f01601f19169190910160400192915050565b6000602082840312156135bc57600080fd5b5035919050565b6001600160a01b03811681146110c057600080fd5b80356135e3816135c3565b919050565b600080604083850312156135fb57600080fd5b8235613606816135c3565b946020939093013593505050565b60008060006060848603121561362957600080fd5b8335613634816135c3565b92506020840135613644816135c3565b929592945050506040919091013590565b60006020828403121561366757600080fd5b8135610977816135c3565b6000806040838503121561368557600080fd5b823591506020830135613697816135c3565b809150509250929050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff811182821017156136e1576136e16136a2565b604052919050565b600067ffffffffffffffff821115613703576137036136a2565b50601f01601f191660200190565b600080600080600060a0868803121561372957600080fd5b8535613734816135c3565b9450602086013567ffffffffffffffff81111561375057600080fd5b8601601f8101881361376157600080fd5b803561377461376f826136e9565b6136b8565b81815289602083850101111561378957600080fd5b816020840160208301376000602083830101528096505050506137ae604087016135d8565b92506137bc606087016135d8565b91506137ca608087016135d8565b90509295509295909350565b600080600080608085870312156137ec57600080fd5b8435935060208501356137fe816135c3565b9250604085013561380e816135c3565b9396929550929360600135925050565b61ffff811681146110c057600080fd5b60006020828403121561384057600080fd5b81356109778161381e565b60008060006060848603121561386057600080fd5b833592506020840135613872816135c3565b91506040840135613882816135c3565b809150509250925092565b600080602083850312156138a057600080fd5b823567ffffffffffffffff808211156138b857600080fd5b818501915085601f8301126138cc57600080fd5b8135818111156138db57600080fd5b8660208285010111156138ed57600080fd5b60209290920196919550909350505050565b60ff811681146110c057600080fd5b600080600080600080600060e0888a03121561392957600080fd5b8735613934816135c3565b96506020880135613944816135c3565b955060408801359450606088013593506080880135613962816138ff565b9699959850939692959460a0840135945060c09093013592915050565b6000806040838503121561399257600080fd5b823561399d816135c3565b91506020830135613697816135c3565b600181811c908216806139c157607f821691505b6020821081036128c957634e487b7160e01b600052602260045260246000fd5b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b600060208284031215613a2a57600080fd5b5051919050565b634e487b7160e01b600052601260045260246000fd5b60008060408385031215613a5a57600080fd5b8251613a658161381e565b6020840151909250613697816135c3565b634e487b7160e01b600052601160045260246000fd5b808201808211156108cc576108cc613a76565b80820281158282048414176108cc576108cc613a76565b600082613ad357634e487b7160e01b600052601260045260246000fd5b500490565b818103818111156108cc576108cc613a76565b6020808252600c908201526b5a45524f204144445245535360a01b604082015260600190565b600060208284031215613b2357600080fd5b815167ffffffffffffffff811115613b3a57600080fd5b8201601f81018413613b4b57600080fd5b8051613b5961376f826136e9565b818152856020838501011115613b6e57600080fd5b61248a826020830160208601613553565b61797360f01b815260008251613b9c816002850160208701613553565b9190910160020192915050565b601f821115611ebe57600081815260208120601f850160051c81016020861015613bd05750805b601f850160051c820191505b81811015613bef57828155600101613bdc565b505050505050565b815167ffffffffffffffff811115613c1157613c116136a2565b613c2581613c1f84546139ad565b84613ba9565b602080601f831160018114613c5a5760008415613c425750858301515b600019600386901b1c1916600185901b178555613bef565b600085815260208120601f198616915b82811015613c8957888601518255948401946001909101908401613c6a565b5085821015613ca75787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b600060208284031215613cc957600080fd5b8151610977816138ff565b600181815b80851115613d0f578160001904821115613cf557613cf5613a76565b80851615613d0257918102915b93841c9390800290613cd9565b509250929050565b600082613d26575060016108cc565b81613d33575060006108cc565b8160018114613d495760028114613d5357613d6f565b60019150506108cc565b60ff841115613d6457613d64613a76565b50506001821b6108cc565b5060208310610133831016604e8410600b8410161715613d92575081810a6108cc565b613d9c8383613cd4565b8060001904821115613db057613db0613a76565b029392505050565b600061097760ff841683613d17565b67ffffffffffffffff831115613ddf57613ddf6136a2565b613df383613ded83546139ad565b83613ba9565b6000601f841160018114613e275760008515613e0f5750838201355b600019600387901b1c1916600186901b1783556126bb565b600083815260209020601f19861690835b82811015613e585786850135825560209485019460019092019101613e38565b5086821015613e755760001960f88860031b161c19848701351681555b505060018560011b0183555050505050565b634e487b7160e01b600052602160045260246000fd5b600060208284031215613eaf57600080fd5b8151801515811461097757600080fd5b60008251613ed1818460208701613553565b919091019291505056fea264697066735822122078217b19cda59fa3b0dd000bd2e8ed5e9eb975c62f213df8a6e2f9454ec72e3764736f6c63430008120033

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

000000000000000000000000770d0d1fb036483ed4abb6d53c1c88fb277d812f

-----Decoded View---------------
Arg [0] : _factory (address): 0x770D0d1Fb036483Ed4AbB6d53c1C88fb277D812F

-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 000000000000000000000000770d0d1fb036483ed4abb6d53c1c88fb277d812f


Deployed Bytecode Sourcemap

57383:73360:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;79643:113;;;:::i;:::-;;;160:25:1;;;148:2;133:18;79643:113:0;;;;;;;;116381:103;;;:::i;:::-;;;;;;;:::i;81108:163::-;;;;;;:::i;:::-;;:::i;109839:127::-;;;:::i;120690:172::-;;;;;;:::i;:::-;;:::i;:::-;;;1797:14:1;;1790:22;1772:41;;1760:2;1745:18;120690:172:0;1632:187:1;82791:161:0;;;;;;:::i;:::-;;:::i;107830:123::-;;;:::i;:::-;;;-1:-1:-1;;;;;1988:32:1;;;1970:51;;1958:2;1943:18;107830:123:0;1824:203:1;80176:113:0;;;:::i;121875:302::-;;;;;;:::i;:::-;;:::i;107350:97::-;107428:11;;;;;;;;;;;;-1:-1:-1;;;107428:11:0;;;;107350:97;;95367:7243;;;:::i;:::-;;;;2667:25:1;;;2723:2;2708:18;;2701:34;;;;2640:18;95367:7243:0;2493:248:1;109218:138:0;;;:::i;69431:32::-;;;;;117015:103;;;:::i;:::-;;;2918:4:1;2906:17;;;2888:36;;2876:2;2861:18;117015:103:0;2746:184:1;112907:217:0;;;;;;:::i;:::-;;:::i;:::-;;129668:506;;;:::i;107091:108::-;;;:::i;83828:137::-;;;;;;:::i;:::-;;:::i;104773:243::-;;;:::i;65983:139::-;;;;;;:::i;:::-;;:::i;85805:175::-;;;;;;:::i;:::-;;:::i;109562:127::-;;;:::i;106442:340::-;;;;;;:::i;:::-;;:::i;113987:424::-;;;;;;:::i;:::-;;:::i;73585:817::-;;;;;;:::i;:::-;;:::i;108347:117::-;;;:::i;117496:133::-;;;;;;:::i;:::-;;:::i;112516:153::-;;;;;;:::i;:::-;;:::i;126895:123::-;;;;;;:::i;:::-;;:::i;67043:263::-;;;;;;:::i;:::-;;:::i;84996:179::-;;;;;;:::i;:::-;;:::i;108658:116::-;;;:::i;:::-;;;3863:6:1;3851:19;;;3833:38;;3821:2;3806:18;108658:116:0;3689:188:1;107581:109:0;;;:::i;74733:604::-;;;;;;:::i;:::-;;:::i;116679:160::-;;;:::i;71391:1674::-;;;;;;:::i;:::-;;:::i;110489:194::-;;;:::i;78428:763::-;;;;;;:::i;:::-;;:::i;76486:740::-;;;;;;:::i;:::-;;:::i;118491:164::-;;;;;;:::i;:::-;;:::i;113453:257::-;;;;;;:::i;:::-;;:::i;108090:101::-;;;:::i;82195:157::-;;;;;;:::i;:::-;;:::i;75783:197::-;;;;;;:::i;:::-;;:::i;77674:249::-;;;;;;:::i;:::-;;:::i;67926:38::-;;67959:5;67926:38;;105785:150;;;:::i;110828:104::-;;;:::i;110102:118::-;;;:::i;115949:114::-;;;;;;:::i;:::-;;:::i;84224:131::-;;;;;;:::i;:::-;;:::i;80608:163::-;;;;;;:::i;:::-;;:::i;112005:289::-;;;:::i;84691:133::-;;;;;;:::i;:::-;;:::i;66477:203::-;;;;;;:::i;:::-;;:::i;127852:1572::-;;;;;;:::i;:::-;;:::i;85504:129::-;;;;;;:::i;:::-;;:::i;102769:119::-;;;:::i;119164:180::-;;;;;;:::i;:::-;;:::i;114971:849::-;;;;;;:::i;:::-;;:::i;108929:135::-;;;:::i;111577:259::-;;;;;;:::i;:::-;;:::i;79643:113::-;79689:7;79716:32;79729:18;:16;:18::i;:::-;86346:13;;;;86234:133;79716:32;79709:39;;79643:113;:::o;116381:103::-;116420:13;116453:18;:16;:18::i;:::-;:23;;116446:30;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;116381:103;:::o;81108:163::-;81172:7;81199:64;81216:18;:16;:18::i;:::-;81236:6;81244:18;81199:16;:64::i;:::-;81192:71;81108:163;-1:-1:-1;;81108:163:0:o;109839:127::-;109893:7;109920:18;:16;:18::i;:::-;:38;;;;;;109839:127;-1:-1:-1;109839:127:0:o;120690:172::-;120758:4;120775:57;120784:18;:16;:18::i;:::-;120804:10;120816:7;120825:6;120775:8;:57::i;:::-;-1:-1:-1;120850:4:0;120690:172;;;;:::o;82791:161::-;82855:7;82882:62;82899:18;:16;:18::i;:::-;82919:6;82927:16;82882;:62::i;107830:123::-;107882:7;107909:18;:16;:18::i;:::-;:36;;;-1:-1:-1;;;;;107909:36:0;;107830:123;-1:-1:-1;107830:123:0:o;80176:113::-;80222:7;80249:32;80262:18;:16;:18::i;:::-;80249:12;:32::i;121875:302::-;121991:4;122008:22;122033:18;:16;:18::i;:::-;122008:43;;122062:44;122078:1;122081:4;122087:10;122099:6;122062:15;:44::i;:::-;122117:30;122127:1;122130:4;122136:2;122140:6;122117:9;:30::i;:::-;122165:4;122158:11;;;121875:302;;;;;;:::o;95367:7243::-;95464:14;95480:12;65241:22;65266:18;:16;:18::i;:::-;65378:9;;;;65241:43;;-1:-1:-1;;;;;;65378:9:0;;;:20;:9;:20;65370:64;;;;-1:-1:-1;;;65370:64:0;;;;;;;:::i;:::-;;;;;;;;;65512:9;;;:19;;-1:-1:-1;;;;65512:19:0;-1:-1:-1;;;65512:19:0;;;64730:37:::1;64756:10;64730:25;:37::i;:::-;95571:22:::2;95596:18;:16;:18::i;:::-;95571:43;;95969:22;96016:4;-1:-1:-1::0;;;;;95994:59:0::2;;:61;;;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::2;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;95969:86;;96068:22;96093:15;96106:1;86346:13:::0;;;;86234:133;96093:15:::2;96068:40;;96197:20;96220:18;96236:1;96220:15;:18::i;:::-;96424:21;::::0;::::2;::::0;96197:41;;-1:-1:-1;96303:17:0::2;::::0;;;;;96424:21:::2;;96495:31:::0;;::::2;96491:4029;;;96632:14;96615;:31;96606:40;;96822:47;96839:1;96842:6;96850:18;96822:16;:47::i;:::-;96942:16;::::0;::::2;::::0;96807:62;;-1:-1:-1;96942:16:0;;::::2;;;96929:10;97067:8:::0;;97063:1662:::2;;68060:6;97240:12;::::0;::::2;::::0;::::2;97239:24;::::0;-1:-1:-1;68060:6:0::2;97359:18;::::0;::::2;::::0;::::2;97358:30;97341:47;;97517:21;97561:29:::0;97621:7:::2;-1:-1:-1::0;;;;;97612:37:0::2;;:39;;;;;;;;;;;;::::0;::::2;;;;;;;;;;;;;;;::::0;::::2;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;97494:157;;;;97672:25;97784:14;:19;;97802:1;97784:19;97780:617;;-1:-1:-1::0;68060:6:0::2;97998:31;::::0;::::2;98177:26:::0;;::::2;98176:38:::0;;::::2;::::0;-1:-1:-1;97998:31:0;::::2;97997:72;98327:50;98333:1:::0;98336:21;97997:72;98327:5:::2;:50::i;:::-;98581:25;::::0;::::2;::::0;98521:169:::2;::::0;98581:25;;-1:-1:-1;;;98581:25:0;::::2;-1:-1:-1::0;;;;;98581:25:0::2;98633:34:::0;;::::2;98521:5;:169::i;:::-;97077:1648;;;97063:1662;98793:25:::0;;98789:757:::2;;98929:14;98913:30;;;;99062:12;99047;:27;99043:488;;;99180:52;99186:1;99197:4;99219:12;99204;:27;99180:5;:52::i;:::-;99043:488;;;99300:12;99285;:27;99281:250;;;99436:52;99442:1;99453:4;99475:12;99460;:27;99436:5;:52::i;:::-;96528:3029;;96491:4029;;;99670:14;99653;:31;99646:38;;99781:4;99789:1;99781:9;99777:569;;100123:4;100104:25;::::0;;;:10:::2;::::0;::::2;:25;::::0;;;;;100018:312:::2;::::0;100299:12;;100251:45:::2;::::0;100104:1;;100271:4;;100251:16:::2;:45::i;:::-;:60;;;;:::i;:::-;100018:8;:312::i;:::-;100003:327;;99777:569;100418:17:::0;;100414:95:::2;;100456:37;100462:1;100473:4;100480:12;100456:5;:37::i;:::-;100641:4;100594:25;100622::::0;;;:10:::2;::::0;::::2;:25;::::0;;;;;100662:22;;100658:1593:::2;;100775:22;::::0;::::2;::::0;100701:28:::2;::::0;-1:-1:-1;;;;;100775:22:0::2;100912:15;100888:39:::0;::::2;100884:440;;;101276:12;101256:17;:32;101211:15;101187:21;-1:-1:-1::0;;;;;101187:39:0::2;;101186:103;101138:151;;100884:440;101505:30;101635:17:::0;101579:52:::2;101611:20:::0;101579:12;:52:::2;:::i;:::-;101539:92;::::0;:20;:92:::2;:::i;:::-;101538:114;;;;:::i;:::-;101505:147:::0;-1:-1:-1;101505:147:0;101772:36:::2;68180:17;101772::::0;:36:::2;:::i;:::-;101771:80;;;;:::i;:::-;101730:21;::::0;::::2;:121:::0;101998:40:::2;102016:22:::0;101998:15:::2;:40;:::i;:::-;101948:22;::::0;::::2;:105:::0;;-1:-1:-1;;;;;;101948:105:0::2;-1:-1:-1::0;;;;;101948:105:0;;;::::2;::::0;;;::::2;::::0;;-1:-1:-1;100658:1593:0::2;::::0;-1:-1:-1;;100658:1593:0::2;;102213:22;::::0;::::2;:26:::0;;-1:-1:-1;;;;;;102213:26:0::2;::::0;;100658:1593:::2;102310:13;::::0;::::2;:30:::0;;;102351:12:::2;::::0;::::2;:38:::0;;-1:-1:-1;;;;;;102351:38:0::2;102373:15;-1:-1:-1::0;;;;;102351:38:0::2;;::::0;;102440:162:::2;102463:6:::0;102484:4;102503:12;102547:24:::2;102503:12:::0;102547:9;:24:::2;:::i;:::-;102440:162;::::0;;11276:25:1;;;11332:2;11317:18;;11310:34;;;;11360:18;;;11353:34;11418:2;11403:18;;11396:34;11263:3;11248:19;102440:162:0::2;;;;;;;-1:-1:-1::0;;;65613:9:0;;;;:23;;-1:-1:-1;;;;65613:23:0;-1:-1:-1;;;65613:23:0;;;-1:-1:-1;95367:7243:0;;;;-1:-1:-1;;;;;95367:7243:0:o;109218:138::-;109273:7;109308:18;:16;:18::i;:::-;:39;;;-1:-1:-1;;;;;109308:39:0;;109218:138;-1:-1:-1;109218:138:0:o;117015:103::-;117058:5;117083:18;:16;:18::i;:::-;:27;-1:-1:-1;;;117083:27:0;;;;;;-1:-1:-1;117015:103:0:o;112907:217::-;64515:29;64533:10;64515:17;:29::i;:::-;113046:15:::1;113010:18;:16;:18::i;:::-;:33;;:51:::0;;-1:-1:-1;;;;;;113010:51:0::1;-1:-1:-1::0;;;;;113010:51:0;;::::1;;::::0;;113079:37:::1;::::0;;;::::1;::::0;::::1;::::0;-1:-1:-1;;113079:37:0::1;112907:217:::0;:::o;129668:506::-;130047:11;;;;;;;;;;;-1:-1:-1;;;130047:11:0;;;;;129785:366;;129818:143;129785:366;;;11700:25:1;129984:24:0;11741:18:1;;;11734:34;130031:29:0;11784:18:1;;;11777:34;130083:13:0;11827:18:1;;;11820:34;130127:4:0;11870:19:1;;;;11863:61;;;;129785:366:0;;;;;;;;;;11672:19:1;;;;129785:366:0;;;129757:409;;;;;;129668:506::o;107091:108::-;107131:7;107166:18;:16;:18::i;:::-;:24;-1:-1:-1;;;;;107166:24:0;;107091:108;-1:-1:-1;107091:108:0:o;83828:137::-;83889:7;83916:41;83928:18;:16;:18::i;:::-;83948:8;83916:11;:41::i;104773:243::-;65241:22;65266:18;:16;:18::i;:::-;65378:9;;;;65241:43;;-1:-1:-1;;;;;;65378:9:0;;;:20;:9;:20;65370:64;;;;-1:-1:-1;;;65370:64:0;;;;;;;:::i;:::-;65512:9;;;:19;;-1:-1:-1;;;;65512:19:0;-1:-1:-1;;;65512:19:0;;;64730:37:::1;64756:10;64730:25;:37::i;:::-;104918:4:::2;104896:37;104948:18;:16;:18::i;:::-;:24:::0;:49:::2;::::0;-1:-1:-1;;;104948:49:0;;104991:4:::2;104948:49;::::0;::::2;1970:51:1::0;-1:-1:-1;;;;;104948:24:0;;::::2;::::0;:34:::2;::::0;1943:18:1;;104948:49:0::2;;;;;;;;;;;;;;;;;::::0;::::2;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;104896:112;;;;;;;;;;;;;160:25:1::0;;148:2;133:18;;14:177;104896:112:0::2;;;;;;;;;;;;;;;;;;::::0;::::2;;;;;;;;;;;;::::0;::::2;;;;;-1:-1:-1::0;;;65613:9:0;;;;:23;;-1:-1:-1;;;;65613:23:0;-1:-1:-1;;;65613:23:0;;;-1:-1:-1;104773:243:0:o;65983:139::-;66069:18;:16;:18::i;:::-;:29;;;-1:-1:-1;;;;;66058:40:0;;;-1:-1:-1;;;66069:29:0;;;;66058:40;66050:64;;;;-1:-1:-1;;;66050:64:0;;12137:2:1;66050:64:0;;;12119:21:1;12176:2;12156:18;;;12149:30;-1:-1:-1;;;12195:18:1;;;12188:41;12246:18;;66050:64:0;11935:335:1;66050:64:0;65983:139;:::o;85805:175::-;85908:7;85935:37;85946:18;:16;:18::i;:::-;85966:5;85935:10;:37::i;109562:127::-;109616:7;109643:18;:16;:18::i;:::-;:38;;;109636:45;;109562:127;:::o;106442:340::-;65241:22;65266:18;:16;:18::i;:::-;65378:9;;;;65241:43;;-1:-1:-1;;;;;;65378:9:0;;;:20;:9;:20;65370:64;;;;-1:-1:-1;;;65370:64:0;;;;;;;:::i;:::-;65512:9;;;:19;;-1:-1:-1;;;;65512:19:0;-1:-1:-1;;;65512:19:0;;;64973:38:::1;65000:10;64973:26;:38::i;:::-;106620:18:::2;:16;:18::i;:::-;:27;;::::0;-1:-1:-1;;;106620:27:0;::::2;;;106612:52;;;::::0;-1:-1:-1;;;106612:52:0;;12477:2:1;106612:52:0::2;::::0;::::2;12459:21:1::0;12516:2;12496:18;;;12489:30;-1:-1:-1;;;12535:18:1;;;12528:42;12587:18;;106612:52:0::2;12275:336:1::0;106612:52:0::2;106721:53;::::0;-1:-1:-1;;;106721:53:0;;::::2;::::0;::::2;160:25:1::0;;;106743:4:0::2;::::0;106721:45:::2;::::0;133:18:1;;106721:53:0::2;;;;;;;;;;;;;;;;;::::0;::::2;;;;;;;;;;;;::::0;::::2;;;;;-1:-1:-1::0;;;65613:9:0;;;;:23;;-1:-1:-1;;;;65613:23:0;-1:-1:-1;;;65613:23:0;;;-1:-1:-1;;106442:340:0:o;113987:424::-;64515:29;64533:10;64515:17;:29::i;:::-;-1:-1:-1;;;;;114116:38:0;::::1;114108:63;;;;-1:-1:-1::0;;;114108:63:0::1;;;;;;;:::i;:::-;114226:4;-1:-1:-1::0;;;;;114190:41:0;::::1;::::0;114182:68:::1;;;::::0;-1:-1:-1;;;114182:68:0;;13159:2:1;114182:68:0::1;::::0;::::1;13141:21:1::0;13198:2;13178:18;;;13171:30;-1:-1:-1;;;13217:18:1;;;13210:44;13271:18;;114182:68:0::1;12957:338:1::0;114182:68:0::1;114306:24;114261:18;:16;:18::i;:::-;:42;;:69:::0;;-1:-1:-1;;;;;;114261:69:0::1;-1:-1:-1::0;;;;;;;;114261:69:0;;::::1;;;::::0;;114348:55:::1;::::0;;;::::1;::::0;::::1;::::0;-1:-1:-1;;114348:55:0::1;113987:424:::0;:::o;73585:817::-;73692:14;65241:22;65266:18;:16;:18::i;:::-;65378:9;;;;65241:43;;-1:-1:-1;;;;;;65378:9:0;;;:20;:9;:20;65370:64;;;;-1:-1:-1;;;65370:64:0;;;;;;;:::i;:::-;65512:9;;;:19;;-1:-1:-1;;;;65512:19:0;-1:-1:-1;;;65512:19:0;;;-1:-1:-1;73802:18:0::1;:16;:18::i;:::-;73777:43;;-1:-1:-1::0;;73889:6:0::1;:27:::0;73885:98:::1;;73942:7:::0;;:29:::1;::::0;-1:-1:-1;;;73942:29:0;;73960:10:::1;73942:29;::::0;::::1;1970:51:1::0;-1:-1:-1;;;;;73942:7:0;;::::1;::::0;:17:::1;::::0;1943:18:1;;73942:29:0::1;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;73933:38;;73885:98;74089:24;74101:1;74104:8;74089:11;:24::i;:::-;74079:6;:34;;74057:114;;;::::0;-1:-1:-1;;;74057:114:0;;13502:2:1;74057:114:0::1;::::0;::::1;13484:21:1::0;13541:2;13521:18;;;13514:30;13580:32;13560:18;;;13553:60;13630:18;;74057:114:0::1;13300:354:1::0;74057:114:0::1;74252:47;74269:1;74272:6;74280:18;74252:16;:47::i;:::-;74243:56;;;74304:1;74242:63:::0;74220:124:::1;;;::::0;-1:-1:-1;;;74220:124:0;;13861:2:1;74220:124:0::1;::::0;::::1;13843:21:1::0;13900:2;13880:18;;;13873:30;-1:-1:-1;;;13919:18:1;;;13912:41;13970:18;;74220:124:0::1;13659:335:1::0;74220:124:0::1;74357:37;74366:1;74369:8;74379:6;74387;74357:8;:37::i;:::-;-1:-1:-1::0;65613:9:0;;:23;;-1:-1:-1;;;;65613:23:0;-1:-1:-1;;;65613:23:0;;;73585:817;;-1:-1:-1;;73585:817:0:o;108347:117::-;108396:7;108423:18;:16;:18::i;:::-;:33;;;-1:-1:-1;;;;;108423:33:0;;108347:117;-1:-1:-1;108347:117:0:o;117496:133::-;117555:7;117582:39;117593:18;:16;:18::i;:::-;117613:7;117582:10;:39::i;112516:153::-;64515:29;64533:10;64515:17;:29::i;:::-;112615:7:::1;112587:18;:16;:18::i;:::-;:25;;:35:::0;;-1:-1:-1;;;;;112587:35:0::1;-1:-1:-1::0;;;;;;;;112587:35:0;;::::1;;;::::0;;112640:21:::1;::::0;;;::::1;::::0;::::1;::::0;-1:-1:-1;;112640:21:0::1;112516:153:::0;:::o;126895:123::-;126950:7;126977:18;:16;:18::i;:::-;-1:-1:-1;;;;;126977:33:0;;;;;;;:25;;;;;:33;;-1:-1:-1;126977:33:0;;;;;126895:123::o;67043:263::-;67119:22;67144:18;:16;:18::i;:::-;67206:16;;;;67119:43;;-1:-1:-1;;;;;;67195:27:0;;;67206:16;;67195:27;;:54;;-1:-1:-1;67237:12:0;;;;-1:-1:-1;;;;;67226:23:0;;;-1:-1:-1;;;67237:12:0;;;;67226:23;67195:54;67173:125;;;;-1:-1:-1;;;67173:125:0;;14201:2:1;67173:125:0;;;14183:21:1;14240:2;14220:18;;;14213:30;-1:-1:-1;;;14259:18:1;;;14252:51;14320:18;;67173:125:0;13999:345:1;67173:125:0;67108:198;67043:263;:::o;84996:179::-;85101:7;85128:39;85141:18;:16;:18::i;:::-;85161:5;85128:12;:39::i;108658:116::-;108707:6;108733:18;:16;:18::i;:::-;:33;;;;;;;;;;-1:-1:-1;108658:116:0:o;107581:109::-;107626:7;107653:18;:16;:18::i;:::-;:29;;;-1:-1:-1;;;107653:29:0;;-1:-1:-1;;;;;107653:29:0;;;-1:-1:-1;107581:109:0:o;74733:604::-;74837:14;65241:22;65266:18;:16;:18::i;:::-;65378:9;;;;65241:43;;-1:-1:-1;;;;;;65378:9:0;;;:20;:9;:20;65370:64;;;;-1:-1:-1;;;65370:64:0;;;;;;;:::i;:::-;65512:9;;;:19;;-1:-1:-1;;;;65512:19:0;-1:-1:-1;;;65512:19:0;;;-1:-1:-1;74947:18:0::1;:16;:18::i;:::-;74922:43;;75055:21;75064:1;75067:8;75055;:21::i;:::-;75045:6;:31;;75037:71;;;::::0;-1:-1:-1;;;75037:71:0;;14551:2:1;75037:71:0::1;::::0;::::1;14533:21:1::0;14590:2;14570:18;;;14563:30;14629:29;14609:18;;;14602:57;14676:18;;75037:71:0::1;14349:351:1::0;75037:71:0::1;75189:45;75206:1;75209:6;75217:16;75189;:45::i;:::-;75180:54;;;75239:1;75179:61:::0;75157:122:::1;;;::::0;-1:-1:-1;;;75157:122:0;;14907:2:1;75157:122:0::1;::::0;::::1;14889:21:1::0;14946:2;14926:18;;;14919:30;-1:-1:-1;;;14965:18:1;;;14958:41;15016:18;;75157:122:0::1;14705:335:1::0;75157:122:0::1;75292:37;75301:1;75304:8;75314:6;75322;75292:8;:37::i;116679:160::-:0;116720:13;116796:18;:16;:18::i;:::-;:24;:33;;;-1:-1:-1;;;116796:33:0;;;;-1:-1:-1;;;;;116796:24:0;;;;:31;;:33;;;;;:24;;:33;;;;;;;;:24;:33;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;116796:33:0;;;;;;;;;;;;:::i;:::-;116773:57;;;;;;;;:::i;:::-;;;;;;;;;;;;;116746:85;;116679:160;:::o;71391:1674::-;71627:22;71652:18;:16;:18::i;:::-;71744:7;;71627:43;;-1:-1:-1;;;;;;71744:7:0;71736:30;71728:54;;;;-1:-1:-1;;;71728:54:0;;16338:2:1;71728:54:0;;;16320:21:1;16377:2;16357:18;;;16350:30;-1:-1:-1;;;16396:18:1;;;16389:41;16447:18;;71728:54:0;16136:335:1;71728:54:0;71844:23;;-1:-1:-1;;;;;;71844:23:0;-1:-1:-1;;;;;71844:23:0;;;;;-1:-1:-1;71920:6:0;;:14;71929:5;71920:6;:14;:::i;:::-;;72012:6;-1:-1:-1;;;;;72006:22:0;;:24;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;71993:37;;;;;;;-1:-1:-1;;;71993:37:0;-1:-1:-1;;;;71993:37:0;;;;;;72097:21;;;:31;;-1:-1:-1;;72097:31:0;72121:7;72097:31;;;-1:-1:-1;;;;;72260:38:0;;72252:63;;;;-1:-1:-1;;;72252:63:0;;;;;;;:::i;:::-;72439:4;-1:-1:-1;;;;;72403:41:0;;;72395:58;;;;-1:-1:-1;;;72395:58:0;;;;;;19134:2:1;19116:21;;;19173:1;19153:18;;;19146:29;-1:-1:-1;;;19206:2:1;19191:18;;19184:34;19250:2;19235:18;;18932:327;72395:58:0;72464:25;;;:52;;-1:-1:-1;;;;;;72573:24:0;-1:-1:-1;;;;;;;;72464:52:0;;;;;;;-1:-1:-1;;72573:24:0;;;;;;;;;;72651:12;;;:38;;-1:-1:-1;;;;;;72651:38:0;72673:15;-1:-1:-1;;;;;72651:38:0;;;;72770:25;;72762:50;;;;-1:-1:-1;;;72762:50:0;;;;;;;:::i;:::-;72823:12;;;:26;;-1:-1:-1;;;;;72823:26:0;;;-1:-1:-1;;;72823:26:0;;;-1:-1:-1;;;;;72823:26:0;;;;;;;72895:8;;;:18;;;;;;;;;;;;;;;;;;73045:11;;;;;;;;;;;-1:-1:-1;;;73045:11:0;;;;73001:56;;;;;;73030:4;;73001:56;;;;73045:11;73001:56;:::i;:::-;;;;;;;;71581:1484;71391:1674;;;;;:::o;110489:194::-;110537:7;110557:22;110582:18;:16;:18::i;:::-;110644:10;;;;-1:-1:-1;110618:57:0;;110644:10;;110638:16;;-1:-1:-1;;;110644:10:0;;;;110638:2;:16;:::i;:::-;110656:18;110618:16;:57::i;:::-;110611:64;;;110489:194;:::o;78428:763::-;78582:7;65241:22;65266:18;:16;:18::i;:::-;65378:9;;;;65241:43;;-1:-1:-1;;;;;;65378:9:0;;;:20;:9;:20;65370:64;;;;-1:-1:-1;;;65370:64:0;;;;;;;:::i;:::-;65512:9;;;:19;;-1:-1:-1;;;;65512:19:0;-1:-1:-1;;;65512:19:0;;;-1:-1:-1;78685:18:0::1;:16;:18::i;:::-;78660:43;;78746:20;78757:1;78760:5;78746:10;:20::i;:::-;78736:6;:30;;78714:109;;;::::0;-1:-1:-1;;;78714:109:0;;20849:2:1;78714:109:0::1;::::0;::::1;20831:21:1::0;20888:2;20868:18;;;20861:30;20927:31;20907:18;;;20900:59;20976:18;;78714:109:0::1;20647:353:1::0;78714:109:0::1;78834:14;78940:47;78957:1;78960:6;78968:18;78940:16;:47::i;:::-;78931:56;;;78992:1;78930:63:::0;78908:124:::1;;;::::0;-1:-1:-1;;;78908:124:0;;14907:2:1;78908:124:0::1;::::0;::::1;14889:21:1::0;14946:2;14926:18;;;14919:30;-1:-1:-1;;;14965:18:1;;;14958:41;15016:18;;78908:124:0::1;14705:335:1::0;78908:124:0::1;79129:54;79139:1;79142:8;79152:5;79159:6;79167;79175:7;79129:9;:54::i;:::-;79122:61;;;;65613:9:::0;;:23;;-1:-1:-1;;;;65613:23:0;-1:-1:-1;;;65613:23:0;;;78428:763;;-1:-1:-1;;;;78428:763:0:o;76486:740::-;76642:14;65241:22;65266:18;:16;:18::i;:::-;65378:9;;;;65241:43;;-1:-1:-1;;;;;;65378:9:0;;;:20;:9;:20;65370:64;;;;-1:-1:-1;;;65370:64:0;;;;;;;:::i;:::-;65512:9;;;:19;;-1:-1:-1;;;;65512:19:0;-1:-1:-1;;;65512:19:0;;;-1:-1:-1;76752:18:0::1;:16;:18::i;:::-;76727:43;;76813:22;76826:1;76829:5;76813:12;:22::i;:::-;76803:6;:32;;76781:113;;;::::0;-1:-1:-1;;;76781:113:0;;21207:2:1;76781:113:0::1;::::0;::::1;21189:21:1::0;21246:2;21226:18;;;21219:30;21285:33;21265:18;;;21258:61;21336:18;;76781:113:0::1;21005:355:1::0;76781:113:0::1;76986:45;77003:1;77006:6;77014:16;76986;:45::i;:::-;76977:54;;;77036:1;76976:61:::0;76954:122:::1;;;::::0;-1:-1:-1;;;76954:122:0;;13861:2:1;76954:122:0::1;::::0;::::1;13843:21:1::0;13900:2;13880:18;;;13873:30;-1:-1:-1;;;13919:18:1;;;13912:41;13970:18;;76954:122:0::1;13659:335:1::0;76954:122:0::1;77164:54;77174:1;77177:8;77187:5;77194:6;77202;77210:7;77164:9;:54::i;:::-;-1:-1:-1::0;;65613:9:0;;:23;;-1:-1:-1;;;;65613:23:0;-1:-1:-1;;;65613:23:0;;;76486:740;;-1:-1:-1;;;;76486:740:0:o;118491:164::-;118555:4;118572:53;118582:18;:16;:18::i;:::-;118602:10;118614:2;118618:6;118572:9;:53::i;113453:257::-;64515:29;64533:10;64515:17;:29::i;:::-;67959:5:::1;113547:26;::::0;::::1;;;113539:46;;;::::0;-1:-1:-1;;;113539:46:0;;21567:2:1;113539:46:0::1;::::0;::::1;21549:21:1::0;21606:1;21586:18;;;21579:29;-1:-1:-1;;;21624:18:1;;;21617:37;21671:18;;113539:46:0::1;21365:330:1::0;113539:46:0::1;113632:15;113596:18;:16;:18::i;:::-;:33;;:51:::0;;-1:-1:-1;;113596:51:0::1;::::0;::::1;::::0;;::::1;;;::::0;;113665:37:::1;::::0;3851:19:1;;;3833:38;;113665:37:0::1;::::0;3821:2:1;3806:18;113665:37:0::1;;;;;;;113453:257:::0;:::o;108090:101::-;108131:7;108158:18;:16;:18::i;:::-;:25;;;-1:-1:-1;;;108158:25:0;;-1:-1:-1;;;;;108158:25:0;;;-1:-1:-1;108090:101:0:o;82195:157::-;82255:7;82282:62;82299:18;:16;:18::i;:::-;82319:6;82327:16;82282;:62::i;75783:197::-;75902:14;75936:36;75945:6;75953:8;75963:5;75970:1;75936:8;:36::i;:::-;75929:43;75783:197;-1:-1:-1;;;;75783:197:0:o;77674:249::-;77791:7;77875:40;77882:6;77890:8;77900:5;68060:6;77875;:40::i;105785:150::-;64973:38;65000:10;64973:26;:38::i;:::-;105887:4:::1;105857:18;:16;:18::i;:::-;:27;;:34:::0;;;::::1;;-1:-1:-1::0;;;105857:34:0::1;-1:-1:-1::0;;;;105857:34:0;;::::1;::::0;;;::::1;::::0;;105909:18:::1;::::0;::::1;::::0;-1:-1:-1;;105909:18:0::1;105785:150::o:0;110828:104::-;110873:4;110897:18;:16;:18::i;:::-;:27;;;-1:-1:-1;;;110897:27:0;;;;;;-1:-1:-1;110828:104:0:o;110102:118::-;110147:7;110182:18;:16;:18::i;:::-;:29;;;-1:-1:-1;;;;;110182:29:0;;110102:118;-1:-1:-1;110102:118:0:o;115949:114::-;64515:29;64533:10;64515:17;:29::i;:::-;116050:5:::1;;116024:18;:16;:18::i;:::-;:23;;::::0;:31:::1;::::0;;:23;:31:::1;:::i;:::-;;115949:114:::0;;:::o;84224:131::-;84282:7;84309:38;84318:18;:16;:18::i;:::-;84338:8;84309;:38::i;80608:163::-;80672:7;80699:64;80716:18;:16;:18::i;:::-;80736:6;80744:18;80699:16;:64::i;112005:289::-;112053:22;112078:18;:16;:18::i;:::-;112129:19;;;;;;-1:-1:-1;;;;;;112129:19:0;112115:10;:33;112107:54;;;;-1:-1:-1;;;112107:54:0;;23113:2:1;112107:54:0;;;23095:21:1;23152:1;23132:18;;;23125:29;-1:-1:-1;;;23170:18:1;;;23163:38;23218:18;;112107:54:0;22911:331:1;112107:54:0;112172:12;;;:25;;-1:-1:-1;;;;;112172:25:0;112187:10;-1:-1:-1;;;112172:25:0;;;;;;;;;112208:19;;;:32;;-1:-1:-1;;;;;;112208:32:0;;;112258:28;;;;-1:-1:-1;;112258:28:0;112042:252;112005:289::o;84691:133::-;84750:7;84777:39;84790:18;:16;:18::i;:::-;84810:5;84777:12;:39::i;66477:203::-;66552:22;66577:18;:16;:18::i;:::-;66625:8;;;;66552:43;;-1:-1:-1;;;;;;66614:19:0;;;-1:-1:-1;;;66625:8:0;;;;66614:19;;:46;;-1:-1:-1;66648:12:0;;;;-1:-1:-1;;;;;66637:23:0;;;-1:-1:-1;;;66648:12:0;;;;66637:23;66614:46;66606:66;;;;-1:-1:-1;;;66606:66:0;;23449:2:1;66606:66:0;;;23431:21:1;23488:1;23468:18;;;23461:29;-1:-1:-1;;;23506:18:1;;;23499:37;23553:18;;66606:66:0;23247:330:1;127852:1572:0;128074:15;128062:8;:27;;128054:70;;;;-1:-1:-1;;;128054:70:0;;23784:2:1;128054:70:0;;;23766:21:1;23823:2;23803:18;;;23796:30;23862:32;23842:18;;;23835:60;23912:18;;128054:70:0;23582:354:1;128054:70:0;128294:24;128321:846;128461:18;:16;:18::i;:::-;128591:167;128793:5;128833:7;128875:5;128915:18;:16;:18::i;:::-;-1:-1:-1;;;;;128915:32:0;;;;;;;:25;;;;;:32;;;;;;;;;:34;;;;;;;;128546:477;;;;;24228:25:1;;;;24327:15;;;24307:18;;;24300:43;24379:15;;24359:18;;;24352:43;24411:18;;;24404:34;;;;24454:19;;;24447:35;;;;24498:19;;;;24491:35;;;128546:477:0;;;;;;;;;;24200:19:1;;;128546:477:0;;;128506:544;;;;;-1:-1:-1;;;128381:692:0;;;24795:27:1;24838:11;;;24831:27;;;;24874:12;;;24867:28;;;;24911:12;;128381:692:0;;;-1:-1:-1;;128381:692:0;;;;;;;;;128349:743;;128381:692;128349:743;;;;128321:846;;;;;;;;;25161:25:1;25234:4;25222:17;;25202:18;;;25195:45;25256:18;;;25249:34;;;25299:18;;;25292:34;;;25133:19;;128321:846:0;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;128321:846:0;;-1:-1:-1;;128321:846:0;;;-1:-1:-1;;;;;;;129210:30:0;;;;;;:59;;;129264:5;-1:-1:-1;;;;;129244:25:0;:16;-1:-1:-1;;;;;129244:25:0;;129210:59;129184:142;;;;-1:-1:-1;;;129184:142:0;;25539:2:1;129184:142:0;;;25521:21:1;25578:2;25558:18;;;25551:30;-1:-1:-1;;;25597:18:1;;;25590:51;25658:18;;129184:142:0;25337:345:1;129184:142:0;129343:62;129352:18;:16;:18::i;:::-;129372:16;129390:7;129399:5;129343:8;:62::i;:::-;128269:1148;127852:1572;;;;;;;:::o;85504:129::-;85561:7;85588:37;85599:18;:16;:18::i;:::-;85619:5;85588:10;:37::i;102769:119::-;102818:7;102845:35;102861:18;:16;:18::i;:::-;102845:15;:35::i;119164:180::-;119263:7;119290:46;119301:18;:16;:18::i;:::-;-1:-1:-1;;;;;119566:19:0;;;119539:7;119566:19;;;:12;;;;;:19;;;;;;;;:28;;;;;;;;;;;;119406:196;114971:849;64515:29;64533:10;64515:17;:29::i;:::-;68316:10:::1;115130:20;:40;;115122:61;;;::::0;-1:-1:-1;;;115122:61:0;;25889:2:1;115122:61:0::1;::::0;::::1;25871:21:1::0;25928:1;25908:18;;;25901:29;-1:-1:-1;;;25946:18:1;;;25939:38;25994:18;;115122:61:0::1;25687:331:1::0;115122:61:0::1;115194:22;115219:18;:16;:18::i;:::-;115194:43;;115316:20;115340:1;115316:25:::0;115312:371:::1;;115394:4;115358:14;115375:25:::0;;;:10:::1;::::0;::::1;:25;::::0;;;;;115419:11;;115415:134:::1;;115502:31;115508:1;115519:4;115526:6;115502:5;:31::i;:::-;-1:-1:-1::0;115629:1:0::1;115605:21;::::0;::::1;:25:::0;115645:22:::1;::::0;::::1;:26:::0;;-1:-1:-1;;;;;;115645:26:0::1;::::0;;115312:371:::1;115695:21;::::0;::::1;:52:::0;;-1:-1:-1;;115695:52:0::1;;::::0;::::1;;::::0;;115765:47:::1;::::0;160:25:1;;;115765:47:0::1;::::0;148:2:1;133:18;115765:47:0::1;;;;;;;115073:747;114971:849:::0;:::o;108929:135::-;108987:7;109014:18;:16;:18::i;:::-;:42;;;-1:-1:-1;;;109014:42:0;;-1:-1:-1;;;;;109014:42:0;;;-1:-1:-1;108929:135:0:o;111577:259::-;64515:29;64533:10;64515:17;:29::i;:::-;-1:-1:-1;;;;;111671:25:0;::::1;111663:50;;;;-1:-1:-1::0;;;111663:50:0::1;;;;;;;:::i;:::-;111763:11;111724:18;:16;:18::i;:::-;:36;;:50:::0;;-1:-1:-1;;;;;;111724:50:0::1;-1:-1:-1::0;;;;;111724:50:0;;::::1;;::::0;;111792:36:::1;::::0;;;::::1;::::0;::::1;::::0;-1:-1:-1;;111792:36:0::1;111577:259:::0;:::o;69961:330::-;70012:22;;69062:53;69114:1;69070:40;69062:53;:::i;87296:410::-;87444:7;87527:14;87544:15;87557:1;87544:12;:15::i;:::-;87527:32;-1:-1:-1;87592:11:0;;:106;;87649:49;87663:15;87676:1;86346:13;;;;86234:133;87663:15;87649:6;;87680;87688:9;87649:13;:49::i;:::-;87592:106;;;87623:6;87592:106;87572:126;87296:410;-1:-1:-1;;;;;87296:410:0:o;125021:406::-;-1:-1:-1;;;;;125182:19:0;;125174:68;;;;-1:-1:-1;;;125174:68:0;;26225:2:1;125174:68:0;;;26207:21:1;26264:2;26244:18;;;26237:30;26303:34;26283:18;;;26276:62;-1:-1:-1;;;26354:18:1;;;26347:34;26398:19;;125174:68:0;26023:400:1;125174:68:0;-1:-1:-1;;;;;125261:21:0;;125253:68;;;;-1:-1:-1;;;125253:68:0;;26630:2:1;125253:68:0;;;26612:21:1;26669:2;26649:18;;;26642:30;26708:34;26688:18;;;26681:62;-1:-1:-1;;;26759:18:1;;;26752:32;26801:19;;125253:68:0;26428:398:1;125253:68:0;-1:-1:-1;;;;;125334:19:0;;;;;;;:12;;;:19;;;;;;;;:28;;;;;;;;;;;;;:37;;;125387:32;;160:25:1;;;125387:32:0;;133:18:1;125387:32:0;;;;;;;;125021:406;;;;:::o;86653:575::-;86801:7;86878:20;86901:15;86914:1;86901:12;:15::i;:::-;86878:38;;86968:12;86984:1;86968:17;86964:36;;86994:6;86987:13;;;;;86964:36;87013:20;87036:15;87049:1;86346:13;;;;86234:133;87036:15;87013:38;;87121:12;87137:1;87121:17;87117:31;;87147:1;87140:8;;;;;;87117:31;87168:52;:6;87182:12;87196;87210:9;87168:13;:52::i;:::-;87161:59;86653:575;-1:-1:-1;;;;;;86653:575:0:o;86431:154::-;86516:7;86559:18;86575:1;86559:15;:18::i;:::-;86543:1;:13;;;:34;;;;:::i;125718:534::-;-1:-1:-1;;;;;119566:19:0;;;125878:24;119566:19;;;:12;;;:19;;;;;;;;:28;;;;;;;;;;-1:-1:-1;;125949:37:0;;125945:300;;126049:6;126029:16;:26;;126003:117;;;;-1:-1:-1;;;126003:117:0;;27033:2:1;126003:117:0;;;27015:21:1;27072:2;27052:18;;;27045:30;27111:31;27091:18;;;27084:59;27160:18;;126003:117:0;26831:353:1;126003:117:0;126164:54;126173:1;126176:5;126183:7;126211:6;126192:16;:25;126164:8;:54::i;:::-;125867:385;125718:534;;;;:::o;122703:522::-;-1:-1:-1;;;;;122859:18:0;;122851:68;;;;-1:-1:-1;;;122851:68:0;;27391:2:1;122851:68:0;;;27373:21:1;27430:2;27410:18;;;27403:30;27469:34;27449:18;;;27442:62;-1:-1:-1;;;27520:18:1;;;27513:35;27565:19;;122851:68:0;27189:401:1;122851:68:0;-1:-1:-1;;;;;122938:16:0;;122930:64;;;;-1:-1:-1;;;122930:64:0;;27797:2:1;122930:64:0;;;27779:21:1;27836:2;27816:18;;;27809:30;27875:34;27855:18;;;27848:62;-1:-1:-1;;;27926:18:1;;;27919:33;27969:19;;122930:64:0;27595:399:1;122930:64:0;123027:4;-1:-1:-1;;;;;123013:19:0;;;123005:58;;;;-1:-1:-1;;;123005:58:0;;28201:2:1;123005:58:0;;;28183:21:1;28240:2;28220:18;;;28213:30;28279:28;28259:18;;;28252:56;28325:18;;123005:58:0;27999:350:1;123005:58:0;-1:-1:-1;;;;;123076:16:0;;;;;;:10;;;:16;;;;;:26;;123096:6;;123076:16;:26;;123096:6;;123076:26;:::i;:::-;;;;-1:-1:-1;;;;;;;123138:14:0;;;;;;;:10;;;:14;;;;;;;:24;;;;;;123191:26;123138:14;;123191:26;;;;;;;123156:6;160:25:1;;148:2;133:18;;14:177;103223:582:0;103371:22;;;;103311:16;;-1:-1:-1;;;;;103371:22:0;103432:15;103408:39;;103404:394;;;103569:12;;;;103526:21;;;;68180:17;;-1:-1:-1;;;;;103569:12:0;103551:15;:30;103526:56;103525:98;103493:130;;103404:394;;;-1:-1:-1;;;;;103660:26:0;;;103656:142;;103780:4;103761:25;;;;:10;;;:25;;;;;;;-1:-1:-1;103656:142:0;103329:476;103223:582;;;:::o;123520:364::-;-1:-1:-1;;;;;123654:21:0;;123646:65;;;;-1:-1:-1;;;123646:65:0;;28556:2:1;123646:65:0;;;28538:21:1;28595:2;28575:18;;;28568:30;28634:33;28614:18;;;28607:61;28685:18;;123646:65:0;28354:355:1;123646:65:0;123741:6;123724:1;:13;;;:23;;;;;;;:::i;:::-;;;;-1:-1:-1;;;;;;;123783:19:0;;;;;;:10;;;:19;;;;;;;;:29;;;;;;123839:37;160:25:1;;;123839:37:0;;133:18:1;123839:37:0;;;;;;;;123520:364;;;:::o;124217:366::-;-1:-1:-1;;;;;124351:21:0;;124343:67;;;;-1:-1:-1;;;124343:67:0;;28916:2:1;124343:67:0;;;28898:21:1;28955:2;28935:18;;;28928:30;28994:34;28974:18;;;28967:62;-1:-1:-1;;;29045:18:1;;;29038:31;29086:19;;124343:67:0;28714:397:1;124343:67:0;-1:-1:-1;;;;;124423:19:0;;;;;;:10;;;:19;;;;;:29;;124446:6;;124423:19;:29;;124446:6;;124423:29;:::i;:::-;;;;-1:-1:-1;;124488:13:0;;;:23;;;;;;;124538:37;;160:25:1;;;-1:-1:-1;;;;;;;124538:37:0;;;;;148:2:1;133:18;124538:37:0;14:177:1;18041:106:0;18099:7;18130:1;18126;:5;:13;;18138:1;18126:13;;;-1:-1:-1;18134:1:0;;18041:106;-1:-1:-1;18041:106:0:o;87769:333::-;87965:10;;;;87880:7;;-1:-1:-1;;;87965:10:0;;;;;:39;;-1:-1:-1;;;;;;87979:25:0;;87999:4;87979:25;87965:39;87961:53;;;-1:-1:-1;88013:1:0;88006:8;;87961:53;88034:60;;-1:-1:-1;;;88034:60:0;;-1:-1:-1;;;;;1988:32:1;;88034:60:0;;;1970:51:1;88056:4:0;;88034:50;;1943:18:1;;88034:60:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;89579:713::-;89790:58;;-1:-1:-1;;;89790:58:0;;-1:-1:-1;;;;;1988:32:1;;89790:58:0;;;1970:51:1;89686:18:0;;89812:4;;89790:51;;1943:18:1;;89790:58:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;89777:71;;-1:-1:-1;;89958:10:0;:31;89954:331;;90019:20;90030:1;90033:5;90019:10;:20::i;:::-;90006:33;;89954:331;;;90085:188;90168:51;90185:1;90188:10;90200:18;90168:16;:51::i;:::-;90238:20;90249:1;90252:5;90238:10;:20::i;90855:753::-;91082:7;;-1:-1:-1;;;;;91082:7:0;91172:58;91082:7;91196:10;91216:4;91223:6;91172:23;:58::i;:::-;91363:31;;-1:-1:-1;;;91363:31:0;;91330:4;91363:31;;;1970:51:1;;;91330:4:0;91308:40;;-1:-1:-1;;;;;91363:16:0;;;;;1943:18:1;;91363:31:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;91308:97;;;;;;;;;;;;;160:25:1;;148:2;133:18;;14:177;91308:97:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;91468:6;91451:1;:13;;;:23;;;;;;;:::i;:::-;;;;-1:-1:-1;91511:26:0;;-1:-1:-1;91517:1:0;91520:8;91530:6;91511:5;:26::i;:::-;91555:45;;;2667:25:1;;;2723:2;2708:18;;2701:34;;;-1:-1:-1;;;;;91555:45:0;;;91563:10;;91555:45;;2640:18:1;91555:45:0;;;;;;;90999:609;90855:753;;;;:::o;117691:277::-;117800:7;117843:4;-1:-1:-1;;;;;117824:24:0;;;117820:104;;117894:18;117910:1;117894:15;:18::i;:::-;-1:-1:-1;;;;;117872:19:0;;;;;;:10;;;:19;;;;;;:40;;;;:::i;117820:104::-;-1:-1:-1;;;;;;117941:19:0;;;;;:10;;;;;:19;;;;;;;117691:277::o;88698:819::-;88915:82;;-1:-1:-1;;;88915:82:0;;-1:-1:-1;;;;;1988:32:1;;88915:82:0;;;1970:51:1;88807:20:0;;88937:4;;88915:51;;1943:18:1;;88915:82:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;88900:97;;-1:-1:-1;;89057:12:0;:33;89053:457;;89189:127;89224:1;89244:20;89255:1;89258:5;89244:10;:20::i;89053:457::-;89364:134;89391:61;89408:1;89411:20;89422:1;89425:5;89411:10;:20::i;89391:61::-;89471:12;89364:8;:134::i;88162:472::-;88361:10;;;;88270:16;;-1:-1:-1;;;88361:10:0;;;;;:39;;-1:-1:-1;;;;;;88375:25:0;;88395:4;88375:25;88361:39;88357:53;;;-1:-1:-1;88409:1:0;88402:8;;88357:53;88434:60;;-1:-1:-1;;;88434:60:0;;-1:-1:-1;;;;;1988:32:1;;88434:60:0;;;1970:51:1;88456:4:0;;88434:50;;1943:18:1;;88434:60:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;88423:71;;-1:-1:-1;;88509:8:0;:29;88505:122;;88566:49;88583:1;88586:8;88596:18;88566:16;:49::i;91946:2112::-;92150:7;-1:-1:-1;;;;;92178:22:0;;92170:47;;;;-1:-1:-1;;;92170:47:0;;;;;;;:::i;:::-;68060:6;92236:7;:18;;92228:46;;;;-1:-1:-1;;;92228:46:0;;29318:2:1;92228:46:0;;;29300:21:1;29357:2;29337:18;;;29330:30;-1:-1:-1;;;29376:18:1;;;29369:45;29431:18;;92228:46:0;29116:339:1;92228:46:0;92334:10;-1:-1:-1;;;;;92334:19:0;;;92330:97;;92370:45;92386:1;92389:5;92396:10;92408:6;92370:15;:45::i;:::-;92514:7;;92549:31;;-1:-1:-1;;;92549:31:0;;92574:4;92549:31;;;1970:51:1;-1:-1:-1;;;;;92514:7:0;;;;92499:12;;92514:7;;92549:16;;1943:18:1;;92549:31:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;92534:46;;92591:12;92673:6;92666:4;:13;92662:987;;;92777:53;;-1:-1:-1;;;92777:53:0;;92816:13;;;92777:53;;;160:25:1;92799:4:0;;92777:38;;133:18:1;;92777:53:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;92959:31:0;;-1:-1:-1;;;92959:31:0;;92984:4;92959:31;;;1970:51:1;-1:-1:-1;;;;;92959:16:0;;;-1:-1:-1;92959:16:0;;-1:-1:-1;1943:18:1;;92959:31:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;92952:38;;93083:6;93076:4;:13;93072:566;;;-1:-1:-1;93150:13:0;;;68060:6;93270:17;;93266:271;;;68060:6;93425:16;93434:7;93425:6;:16;:::i;:::-;93424:28;;;;:::i;:::-;93416:4;:36;;93382:135;;;;-1:-1:-1;;;93382:135:0;;29662:2:1;93382:135:0;;;29644:21:1;29701:2;29681:18;;;29674:30;-1:-1:-1;;;29720:18:1;;;29713:43;29773:18;;93382:135:0;29460:337:1;93382:135:0;93618:4;93609:13;;93072:566;93732:13;93741:4;93732:6;:13;:::i;:::-;93714:1;:13;;;:32;;;;;;;:::i;:::-;;;;-1:-1:-1;93759:23:0;;-1:-1:-1;93765:1:0;93768:5;93775:6;93759:5;:23::i;:::-;93858:37;-1:-1:-1;;;;;93858:19:0;;93878:8;93888:6;93858:19;:37::i;:::-;93913:53;;;2667:25:1;;;2723:2;2708:18;;2701:34;;;-1:-1:-1;;;;;93913:53:0;;;;;;;;93922:10;;93913:53;;2640:18:1;93913:53:0;;;;;;;-1:-1:-1;94044:6:0;;91946:2112;-1:-1:-1;;;;;;;;91946:2112:0:o;23578:305::-;23679:7;23699:14;23716:25;23723:1;23726;23729:11;23716:6;:25::i;:::-;23699:42;-1:-1:-1;23768:11:0;23756:8;:23;;;;;;;;:::i;:::-;;:56;;;;;23811:1;23796:11;23783:25;;;;;:::i;:::-;23793:1;23790;23783:25;:29;23756:56;23752:100;;;23829:11;23839:1;23829:11;;:::i;46715:205::-;46843:68;;-1:-1:-1;;;;;30192:15:1;;;46843:68:0;;;30174:34:1;30244:15;;30224:18;;;30217:43;30276:18;;;30269:34;;;46816:96:0;;46836:5;;-1:-1:-1;;;46866:27:0;30109:18:1;;46843:68:0;;;;-1:-1:-1;;46843:68:0;;;;;;;;;;;;;;-1:-1:-1;;;;;46843:68:0;-1:-1:-1;;;;;;46843:68:0;;;;;;;;;;46816:19;:96::i;:::-;46715:205;;;;:::o;46293:177::-;46403:58;;-1:-1:-1;;;;;30506:32:1;;46403:58:0;;;30488:51:1;30555:18;;;30548:34;;;46376:86:0;;46396:5;;-1:-1:-1;;;46426:23:0;30461:18:1;;46403:58:0;30314:274:1;19149:4292:0;19231:14;;;-1:-1:-1;;19776:1:0;19773;19766:20;19820:1;19817;19813:9;19804:18;;19876:5;19872:2;19869:13;19861:5;19857:2;19853:14;19849:34;19840:43;;;19982:5;19991:1;19982:10;19978:373;;20324:11;20316:5;:19;;;;;:::i;:::-;;20309:26;;;;;;19978:373;20478:5;20464:11;:19;20456:53;;;;-1:-1:-1;;;20456:53:0;;30795:2:1;20456:53:0;;;30777:21:1;30834:2;30814:18;;;30807:30;-1:-1:-1;;;30853:18:1;;;30846:51;30914:18;;20456:53:0;30593:345:1;20456:53:0;20772:17;20910:11;20907:1;20904;20897:25;22317:1;21469;21454:12;;:16;;21439:32;;21577:22;;;;22298:1;:15;;22297:21;;22554;;;22550:25;;22539:36;22624:21;;;22620:25;;22609:36;22695:21;;;22691:25;;22680:36;22766:21;;;22762:25;;22751:36;22837:21;;;22833:25;;22822:36;22909:21;;;22905:25;;;22894:36;;;21424:12;21828;;;21824:23;;;21820:31;;;21027:20;;;21016:32;;;21944:12;;;;21075:21;;21678:16;;;;21935:21;;;;23379:15;;;-1:-1:-1;;;;19149:4292:0:o;50639:649::-;51063:23;51089:69;51117:4;51089:69;;;;;;;;;;;;;;;;;51097:5;-1:-1:-1;;;;;51089:27:0;;;:69;;;;;:::i;:::-;51063:95;;51177:10;:17;51198:1;51177:22;:56;;;;51214:10;51203:30;;;;;;;;;;;;:::i;:::-;51169:111;;;;-1:-1:-1;;;51169:111:0;;31427:2:1;51169:111:0;;;31409:21:1;31466:2;31446:18;;;31439:30;31505:34;31485:18;;;31478:62;-1:-1:-1;;;31556:18:1;;;31549:40;31606:19;;51169:111:0;31225:406:1;11028:229:0;11165:12;11197:52;11219:6;11227:4;11233:1;11236:12;11165;12402;12416:23;12443:6;-1:-1:-1;;;;;12443:11:0;12462:5;12469:4;12443:31;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;12401:73;;;;12492:69;12519:6;12527:7;12536:10;12548:12;12492:26;:69::i;:::-;12485:76;12114:455;-1:-1:-1;;;;;;;12114:455:0:o;14687:644::-;14872:12;14901:7;14897:427;;;14929:10;:17;14950:1;14929:22;14925:290;;-1:-1:-1;;;;;8568:19:0;;;15139:60;;;;-1:-1:-1;;;15139:60:0;;32537:2:1;15139:60:0;;;32519:21:1;32576:2;32556:18;;;32549:30;32615:31;32595:18;;;32588:59;32664:18;;15139:60:0;32335:353:1;15139:60:0;-1:-1:-1;15236:10:0;15229:17;;14897:427;15279:33;15287:10;15299:12;16034:17;;:21;16030:388;;16266:10;16260:17;16323:15;16310:10;16306:2;16302:19;16295:44;16030:388;16393:12;16386:20;;-1:-1:-1;;;16386:20:0;;;;;;;;:::i;196:250:1:-;281:1;291:113;305:6;302:1;299:13;291:113;;;381:11;;;375:18;362:11;;;355:39;327:2;320:10;291:113;;;-1:-1:-1;;438:1:1;420:16;;413:27;196:250::o;451:396::-;600:2;589:9;582:21;563:4;632:6;626:13;675:6;670:2;659:9;655:18;648:34;691:79;763:6;758:2;747:9;743:18;738:2;730:6;726:15;691:79;:::i;:::-;831:2;810:15;-1:-1:-1;;806:29:1;791:45;;;;838:2;787:54;;451:396;-1:-1:-1;;451:396:1:o;852:180::-;911:6;964:2;952:9;943:7;939:23;935:32;932:52;;;980:1;977;970:12;932:52;-1:-1:-1;1003:23:1;;852:180;-1:-1:-1;852:180:1:o;1037:131::-;-1:-1:-1;;;;;1112:31:1;;1102:42;;1092:70;;1158:1;1155;1148:12;1173:134;1241:20;;1270:31;1241:20;1270:31;:::i;:::-;1173:134;;;:::o;1312:315::-;1380:6;1388;1441:2;1429:9;1420:7;1416:23;1412:32;1409:52;;;1457:1;1454;1447:12;1409:52;1496:9;1483:23;1515:31;1540:5;1515:31;:::i;:::-;1565:5;1617:2;1602:18;;;;1589:32;;-1:-1:-1;;;1312:315:1:o;2032:456::-;2109:6;2117;2125;2178:2;2166:9;2157:7;2153:23;2149:32;2146:52;;;2194:1;2191;2184:12;2146:52;2233:9;2220:23;2252:31;2277:5;2252:31;:::i;:::-;2302:5;-1:-1:-1;2359:2:1;2344:18;;2331:32;2372:33;2331:32;2372:33;:::i;:::-;2032:456;;2424:7;;-1:-1:-1;;;2478:2:1;2463:18;;;;2450:32;;2032:456::o;2935:247::-;2994:6;3047:2;3035:9;3026:7;3022:23;3018:32;3015:52;;;3063:1;3060;3053:12;3015:52;3102:9;3089:23;3121:31;3146:5;3121:31;:::i;3369:315::-;3437:6;3445;3498:2;3486:9;3477:7;3473:23;3469:32;3466:52;;;3514:1;3511;3504:12;3466:52;3550:9;3537:23;3527:33;;3610:2;3599:9;3595:18;3582:32;3623:31;3648:5;3623:31;:::i;:::-;3673:5;3663:15;;;3369:315;;;;;:::o;3882:127::-;3943:10;3938:3;3934:20;3931:1;3924:31;3974:4;3971:1;3964:15;3998:4;3995:1;3988:15;4014:275;4085:2;4079:9;4150:2;4131:13;;-1:-1:-1;;4127:27:1;4115:40;;4185:18;4170:34;;4206:22;;;4167:62;4164:88;;;4232:18;;:::i;:::-;4268:2;4261:22;4014:275;;-1:-1:-1;4014:275:1:o;4294:187::-;4343:4;4376:18;4368:6;4365:30;4362:56;;;4398:18;;:::i;:::-;-1:-1:-1;4464:2:1;4443:15;-1:-1:-1;;4439:29:1;4470:4;4435:40;;4294:187::o;4486:1032::-;4591:6;4599;4607;4615;4623;4676:3;4664:9;4655:7;4651:23;4647:33;4644:53;;;4693:1;4690;4683:12;4644:53;4732:9;4719:23;4751:31;4776:5;4751:31;:::i;:::-;4801:5;-1:-1:-1;4857:2:1;4842:18;;4829:32;4884:18;4873:30;;4870:50;;;4916:1;4913;4906:12;4870:50;4939:22;;4992:4;4984:13;;4980:27;-1:-1:-1;4970:55:1;;5021:1;5018;5011:12;4970:55;5057:2;5044:16;5082:49;5098:32;5127:2;5098:32;:::i;:::-;5082:49;:::i;:::-;5154:2;5147:5;5140:17;5194:7;5189:2;5184;5180;5176:11;5172:20;5169:33;5166:53;;;5215:1;5212;5205:12;5166:53;5270:2;5265;5261;5257:11;5252:2;5245:5;5241:14;5228:45;5314:1;5309:2;5304;5297:5;5293:14;5289:23;5282:34;5335:5;5325:15;;;;;5359:38;5393:2;5382:9;5378:18;5359:38;:::i;:::-;5349:48;;5416:38;5450:2;5439:9;5435:18;5416:38;:::i;:::-;5406:48;;5473:39;5507:3;5496:9;5492:19;5473:39;:::i;:::-;5463:49;;4486:1032;;;;;;;;:::o;5523:525::-;5609:6;5617;5625;5633;5686:3;5674:9;5665:7;5661:23;5657:33;5654:53;;;5703:1;5700;5693:12;5654:53;5739:9;5726:23;5716:33;;5799:2;5788:9;5784:18;5771:32;5812:31;5837:5;5812:31;:::i;:::-;5862:5;-1:-1:-1;5919:2:1;5904:18;;5891:32;5932:33;5891:32;5932:33;:::i;:::-;5523:525;;;;-1:-1:-1;5984:7:1;;6038:2;6023:18;6010:32;;-1:-1:-1;;5523:525:1:o;6053:117::-;6138:6;6131:5;6127:18;6120:5;6117:29;6107:57;;6160:1;6157;6150:12;6175:245;6233:6;6286:2;6274:9;6265:7;6261:23;6257:32;6254:52;;;6302:1;6299;6292:12;6254:52;6341:9;6328:23;6360:30;6384:5;6360:30;:::i;6425:456::-;6502:6;6510;6518;6571:2;6559:9;6550:7;6546:23;6542:32;6539:52;;;6587:1;6584;6577:12;6539:52;6623:9;6610:23;6600:33;;6683:2;6672:9;6668:18;6655:32;6696:31;6721:5;6696:31;:::i;:::-;6746:5;-1:-1:-1;6803:2:1;6788:18;;6775:32;6816:33;6775:32;6816:33;:::i;:::-;6868:7;6858:17;;;6425:456;;;;;:::o;6886:592::-;6957:6;6965;7018:2;7006:9;6997:7;6993:23;6989:32;6986:52;;;7034:1;7031;7024:12;6986:52;7074:9;7061:23;7103:18;7144:2;7136:6;7133:14;7130:34;;;7160:1;7157;7150:12;7130:34;7198:6;7187:9;7183:22;7173:32;;7243:7;7236:4;7232:2;7228:13;7224:27;7214:55;;7265:1;7262;7255:12;7214:55;7305:2;7292:16;7331:2;7323:6;7320:14;7317:34;;;7347:1;7344;7337:12;7317:34;7392:7;7387:2;7378:6;7374:2;7370:15;7366:24;7363:37;7360:57;;;7413:1;7410;7403:12;7360:57;7444:2;7436:11;;;;;7466:6;;-1:-1:-1;6886:592:1;;-1:-1:-1;;;;6886:592:1:o;7483:114::-;7567:4;7560:5;7556:16;7549:5;7546:27;7536:55;;7587:1;7584;7577:12;7602:801;7713:6;7721;7729;7737;7745;7753;7761;7814:3;7802:9;7793:7;7789:23;7785:33;7782:53;;;7831:1;7828;7821:12;7782:53;7870:9;7857:23;7889:31;7914:5;7889:31;:::i;:::-;7939:5;-1:-1:-1;7996:2:1;7981:18;;7968:32;8009:33;7968:32;8009:33;:::i;:::-;8061:7;-1:-1:-1;8115:2:1;8100:18;;8087:32;;-1:-1:-1;8166:2:1;8151:18;;8138:32;;-1:-1:-1;8222:3:1;8207:19;;8194:33;8236:31;8194:33;8236:31;:::i;:::-;7602:801;;;;-1:-1:-1;7602:801:1;;;;8286:7;8340:3;8325:19;;8312:33;;-1:-1:-1;8392:3:1;8377:19;;;8364:33;;7602:801;-1:-1:-1;;7602:801:1:o;8408:388::-;8476:6;8484;8537:2;8525:9;8516:7;8512:23;8508:32;8505:52;;;8553:1;8550;8543:12;8505:52;8592:9;8579:23;8611:31;8636:5;8611:31;:::i;:::-;8661:5;-1:-1:-1;8718:2:1;8703:18;;8690:32;8731:33;8690:32;8731:33;:::i;8801:380::-;8880:1;8876:12;;;;8923;;;8944:61;;8998:4;8990:6;8986:17;8976:27;;8944:61;9051:2;9043:6;9040:14;9020:18;9017:38;9014:161;;9097:10;9092:3;9088:20;9085:1;9078:31;9132:4;9129:1;9122:15;9160:4;9157:1;9150:15;9186:355;9388:2;9370:21;;;9427:2;9407:18;;;9400:30;9466:33;9461:2;9446:18;;9439:61;9532:2;9517:18;;9186:355::o;9546:184::-;9616:6;9669:2;9657:9;9648:7;9644:23;9640:32;9637:52;;;9685:1;9682;9675:12;9637:52;-1:-1:-1;9708:16:1;;9546:184;-1:-1:-1;9546:184:1:o;9735:127::-;9796:10;9791:3;9787:20;9784:1;9777:31;9827:4;9824:1;9817:15;9851:4;9848:1;9841:15;9867:383;9945:6;9953;10006:2;9994:9;9985:7;9981:23;9977:32;9974:52;;;10022:1;10019;10012:12;9974:52;10054:9;10048:16;10073:30;10097:5;10073:30;:::i;:::-;10172:2;10157:18;;10151:25;10122:5;;-1:-1:-1;10185:33:1;10151:25;10185:33;:::i;10255:127::-;10316:10;10311:3;10307:20;10304:1;10297:31;10347:4;10344:1;10337:15;10371:4;10368:1;10361:15;10387:125;10452:9;;;10473:10;;;10470:36;;;10486:18;;:::i;10517:168::-;10590:9;;;10621;;10638:15;;;10632:22;;10618:37;10608:71;;10659:18;;:::i;10690:217::-;10730:1;10756;10746:132;;10800:10;10795:3;10791:20;10788:1;10781:31;10835:4;10832:1;10825:15;10863:4;10860:1;10853:15;10746:132;-1:-1:-1;10892:9:1;;10690:217::o;10912:128::-;10979:9;;;11000:11;;;10997:37;;;11014:18;;:::i;12616:336::-;12818:2;12800:21;;;12857:2;12837:18;;;12830:30;-1:-1:-1;;;12891:2:1;12876:18;;12869:42;12943:2;12928:18;;12616:336::o;15045:649::-;15125:6;15178:2;15166:9;15157:7;15153:23;15149:32;15146:52;;;15194:1;15191;15184:12;15146:52;15227:9;15221:16;15260:18;15252:6;15249:30;15246:50;;;15292:1;15289;15282:12;15246:50;15315:22;;15368:4;15360:13;;15356:27;-1:-1:-1;15346:55:1;;15397:1;15394;15387:12;15346:55;15426:2;15420:9;15451:49;15467:32;15496:2;15467:32;:::i;15451:49::-;15523:2;15516:5;15509:17;15563:7;15558:2;15553;15549;15545:11;15541:20;15538:33;15535:53;;;15584:1;15581;15574:12;15535:53;15597:67;15661:2;15656;15649:5;15645:14;15640:2;15636;15632:11;15597:67;:::i;15699:432::-;-1:-1:-1;;;15956:3:1;15949:17;15931:3;15995:6;15989:13;16011:74;16078:6;16074:1;16069:3;16065:11;16058:4;16050:6;16046:17;16011:74;:::i;:::-;16105:16;;;;16123:1;16101:24;;15699:432;-1:-1:-1;;15699:432:1:o;16602:545::-;16704:2;16699:3;16696:11;16693:448;;;16740:1;16765:5;16761:2;16754:17;16810:4;16806:2;16796:19;16880:2;16868:10;16864:19;16861:1;16857:27;16851:4;16847:38;16916:4;16904:10;16901:20;16898:47;;;-1:-1:-1;16939:4:1;16898:47;16994:2;16989:3;16985:12;16982:1;16978:20;16972:4;16968:31;16958:41;;17049:82;17067:2;17060:5;17057:13;17049:82;;;17112:17;;;17093:1;17082:13;17049:82;;;17053:3;;;16602:545;;;:::o;17323:1352::-;17449:3;17443:10;17476:18;17468:6;17465:30;17462:56;;;17498:18;;:::i;:::-;17527:97;17617:6;17577:38;17609:4;17603:11;17577:38;:::i;:::-;17571:4;17527:97;:::i;:::-;17679:4;;17743:2;17732:14;;17760:1;17755:663;;;;18462:1;18479:6;18476:89;;;-1:-1:-1;18531:19:1;;;18525:26;18476:89;-1:-1:-1;;17280:1:1;17276:11;;;17272:24;17268:29;17258:40;17304:1;17300:11;;;17255:57;18578:81;;17725:944;;17755:663;16549:1;16542:14;;;16586:4;16573:18;;-1:-1:-1;;17791:20:1;;;17909:236;17923:7;17920:1;17917:14;17909:236;;;18012:19;;;18006:26;17991:42;;18104:27;;;;18072:1;18060:14;;;;17939:19;;17909:236;;;17913:3;18173:6;18164:7;18161:19;18158:201;;;18234:19;;;18228:26;-1:-1:-1;;18317:1:1;18313:14;;;18329:3;18309:24;18305:37;18301:42;18286:58;18271:74;;18158:201;-1:-1:-1;;;;;18405:1:1;18389:14;;;18385:22;18372:36;;-1:-1:-1;17323:1352:1:o;18680:247::-;18748:6;18801:2;18789:9;18780:7;18776:23;18772:32;18769:52;;;18817:1;18814;18807:12;18769:52;18849:9;18843:16;18868:29;18891:5;18868:29;:::i;19264:422::-;19353:1;19396:5;19353:1;19410:270;19431:7;19421:8;19418:21;19410:270;;;19490:4;19486:1;19482:6;19478:17;19472:4;19469:27;19466:53;;;19499:18;;:::i;:::-;19549:7;19539:8;19535:22;19532:55;;;19569:16;;;;19532:55;19648:22;;;;19608:15;;;;19410:270;;;19414:3;19264:422;;;;;:::o;19691:806::-;19740:5;19770:8;19760:80;;-1:-1:-1;19811:1:1;19825:5;;19760:80;19859:4;19849:76;;-1:-1:-1;19896:1:1;19910:5;;19849:76;19941:4;19959:1;19954:59;;;;20027:1;20022:130;;;;19934:218;;19954:59;19984:1;19975:10;;19998:5;;;20022:130;20059:3;20049:8;20046:17;20043:43;;;20066:18;;:::i;:::-;-1:-1:-1;;20122:1:1;20108:16;;20137:5;;19934:218;;20236:2;20226:8;20223:16;20217:3;20211:4;20208:13;20204:36;20198:2;20188:8;20185:16;20180:2;20174:4;20171:12;20167:35;20164:77;20161:159;;;-1:-1:-1;20273:19:1;;;20305:5;;20161:159;20352:34;20377:8;20371:4;20352:34;:::i;:::-;20422:6;20418:1;20414:6;20410:19;20401:7;20398:32;20395:58;;;20433:18;;:::i;:::-;20471:20;;19691:806;-1:-1:-1;;;19691:806:1:o;20502:140::-;20560:5;20589:47;20630:4;20620:8;20616:19;20610:4;20589:47;:::i;21700:1206::-;21824:18;21819:3;21816:27;21813:53;;;21846:18;;:::i;:::-;21875:94;21965:3;21925:38;21957:4;21951:11;21925:38;:::i;:::-;21919:4;21875:94;:::i;:::-;21995:1;22020:2;22015:3;22012:11;22037:1;22032:616;;;;22692:1;22709:3;22706:93;;;-1:-1:-1;22765:19:1;;;22752:33;22706:93;-1:-1:-1;;17280:1:1;17276:11;;;17272:24;17268:29;17258:40;17304:1;17300:11;;;17255:57;22812:78;;22005:895;;22032:616;16549:1;16542:14;;;16586:4;16573:18;;-1:-1:-1;;22068:17:1;;;22169:9;22191:229;22205:7;22202:1;22199:14;22191:229;;;22294:19;;;22281:33;22266:49;;22401:4;22386:20;;;;22354:1;22342:14;;;;22221:12;22191:229;;;22195:3;22448;22439:7;22436:16;22433:159;;;22572:1;22568:6;22562:3;22556;22553:1;22549:11;22545:21;22541:34;22537:39;22524:9;22519:3;22515:19;22502:33;22498:79;22490:6;22483:95;22433:159;;;22635:1;22629:3;22626:1;22622:11;22618:19;22612:4;22605:33;22005:895;;21700:1206;;;:::o;29802:127::-;29863:10;29858:3;29854:20;29851:1;29844:31;29894:4;29891:1;29884:15;29918:4;29915:1;29908:15;30943:277;31010:6;31063:2;31051:9;31042:7;31038:23;31034:32;31031:52;;;31079:1;31076;31069:12;31031:52;31111:9;31105:16;31164:5;31157:13;31150:21;31143:5;31140:32;31130:60;;31186:1;31183;31176:12;32043:287;32172:3;32210:6;32204:13;32226:66;32285:6;32280:3;32273:4;32265:6;32261:17;32226:66;:::i;:::-;32308:16;;;;;32043:287;-1:-1:-1;;32043:287:1:o

Swarm Source

ipfs://78217b19cda59fa3b0dd000bd2e8ed5e9eb975c62f213df8a6e2f9454ec72e37

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading
[ Download: CSV Export  ]

A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.