ETH Price: $3,645.66 (+1.84%)

Contract

0xb52F322F7534D60807700Bd8414d3C498d4cef52
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Token Holdings

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Withdraw177215482023-07-18 17:18:47500 days ago1689700727IN
0xb52F322F...98d4cef52
0 ETH0.010598642.05930356
Set Governance138162102021-12-16 12:33:161079 days ago1639657996IN
0xb52F322F...98d4cef52
0 ETH0.0023168288.66539362
Set Governance138162102021-12-16 12:33:161079 days ago1639657996IN
0xb52F322F...98d4cef52
0 ETH0.0023336480.66539362
Set Governance138107602021-12-15 16:21:081080 days ago1639585268IN
0xb52F322F...98d4cef52
0 ETH0.0028370398.06557341
Set Governance138107022021-12-15 16:08:461080 days ago1639584526IN
0xb52F322F...98d4cef52
0 ETH0.0071819156.06737208
Withdraw133806222021-10-08 21:36:381148 days ago1633728998IN
0xb52F322F...98d4cef52
0 ETH0.0208638395.87717274
Withdraw130624212021-08-20 13:34:291197 days ago1629466469IN
0xb52F322F...98d4cef52
0 ETH0.0101710845
Withdraw130575662021-08-19 19:17:081198 days ago1629400628IN
0xb52F322F...98d4cef52
0 ETH0.01627272
Withdraw130572722021-08-19 18:10:381198 days ago1629396638IN
0xb52F322F...98d4cef52
0 ETH0.0053530224.17892612
Withdraw130494422021-08-18 13:18:071199 days ago1629292687IN
0xb52F322F...98d4cef52
0 ETH0.0086981937.80345805
Withdraw127598352021-07-04 7:52:001244 days ago1625385120IN
0xb52F322F...98d4cef52
0 ETH0.0024340910
Withdraw127588452021-07-04 4:08:501245 days ago1625371730IN
0xb52F322F...98d4cef52
0 ETH0.001000264
Withdraw127548172021-07-03 13:16:021245 days ago1625318162IN
0xb52F322F...98d4cef52
0 ETH0.0024091210
Withdraw127521022021-07-03 2:54:411246 days ago1625280881IN
0xb52F322F...98d4cef52
0 ETH0.002671910
Withdraw127509372021-07-02 22:38:281246 days ago1625265508IN
0xb52F322F...98d4cef52
0 ETH0.0032510113
Withdraw127499742021-07-02 19:00:271246 days ago1625252427IN
0xb52F322F...98d4cef52
0 ETH0.0032062812
Withdraw127494952021-07-02 17:08:501246 days ago1625245730IN
0xb52F322F...98d4cef52
0 ETH0.0040016316
Withdraw127490662021-07-02 15:42:411246 days ago1625240561IN
0xb52F322F...98d4cef52
0 ETH0.0065386723
Withdraw127488872021-07-02 15:01:081246 days ago1625238068IN
0xb52F322F...98d4cef52
0 ETH0.0065026526
Withdraw127487672021-07-02 14:35:541246 days ago1625236554IN
0xb52F322F...98d4cef52
0 ETH0.0067524327
Withdraw127487252021-07-02 14:26:591246 days ago1625236019IN
0xb52F322F...98d4cef52
0 ETH0.0064354822
Rebalance127472472021-07-02 9:02:301246 days ago1625216550IN
0xb52F322F...98d4cef52
0 ETH0.0056296511.390625
Rebalance127440382021-07-01 21:00:201247 days ago1625173220IN
0xb52F322F...98d4cef52
0 ETH0.0083143521.6
Rebalance127408092021-07-01 9:00:431247 days ago1625130043IN
0xb52F322F...98d4cef52
0 ETH0.0077405415.75
Rebalance127377042021-06-30 21:01:451248 days ago1625086905IN
0xb52F322F...98d4cef52
0 ETH0.016713539.375
View all transactions

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
PassiveRebalanceVault

Compiler Version
v0.7.6+commit.7338295f

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, Unlicense license

Contract Source Code (Solidity)

/**
 *Submitted for verification at Etherscan.io on 2021-05-07
*/

// SPDX-License-Identifier: Unlicense

pragma solidity 0.7.6;



// Part: IVault

interface IVault {
    function deposit(
        uint256,
        uint256,
        uint256,
        address
    ) external returns (uint256, uint256);

    function withdraw(
        uint256,
        uint256,
        uint256,
        address
    ) external returns (uint256, uint256);

    function rebalance() external;

    function getTotalAmounts() external view returns (uint256, uint256);

    event Deposit(
        address indexed sender,
        address indexed to,
        uint256 shares,
        uint256 amount0,
        uint256 amount1
    );

    event Withdraw(
        address indexed sender,
        address indexed to,
        uint256 shares,
        uint256 amount0,
        uint256 amount1
    );

    event Rebalance(
        int24 tick,
        uint256 totalAmount0,
        uint256 totalAmount1,
        uint256 totalSupply
    );
}

// Part: OpenZeppelin/[email protected]/Address

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize, which returns 0 for contracts in
        // construction, since the code is only stored at the end of the
        // constructor execution.

        uint256 size;
        // solhint-disable-next-line no-inline-assembly
        assembly { size := extcodesize(account) }
        return size > 0;
    }

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

        // solhint-disable-next-line avoid-low-level-calls, avoid-call-value
        (bool success, ) = recipient.call{ value: amount }("");
        require(success, "Address: unable to send value, recipient may have reverted");
    }

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

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

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

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

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

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

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

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

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

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

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

    function _verifyCallResult(bool success, bytes memory returndata, string memory errorMessage) private pure returns(bytes memory) {
        if (success) {
            return returndata;
        } else {
            // Look for revert reason and bubble it up if present
            if (returndata.length > 0) {
                // The easiest way to bubble the revert reason is using memory via assembly

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

// Part: OpenZeppelin/[email protected]/Context

/*
 * @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 GSN 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 payable) {
        return msg.sender;
    }

    function _msgData() internal view virtual returns (bytes memory) {
        this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691
        return msg.data;
    }
}

// Part: OpenZeppelin/[email protected]/IERC20

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

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

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

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

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

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

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

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

// Part: OpenZeppelin/[email protected]/ReentrancyGuard

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

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

    uint256 private _status;

    constructor () internal {
        _status = _NOT_ENTERED;
    }

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

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

        _;

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

// Part: OpenZeppelin/[email protected]/SafeMath

/**
 * @dev Wrappers over Solidity's arithmetic operations with added overflow
 * checks.
 *
 * Arithmetic operations in Solidity wrap on overflow. This can easily result
 * in bugs, because programmers usually assume that an overflow raises an
 * error, which is the standard behavior in high level programming languages.
 * `SafeMath` restores this intuition by reverting the transaction when an
 * operation overflows.
 *
 * Using this library instead of the unchecked operations eliminates an entire
 * class of bugs, so it's recommended to use it always.
 */
library SafeMath {
    /**
     * @dev Returns the addition of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        uint256 c = a + b;
        if (c < a) return (false, 0);
        return (true, c);
    }

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

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

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

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

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

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

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

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

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

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

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

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

// Part: Uniswap/[email protected]/FixedPoint96

/// @title FixedPoint96
/// @notice A library for handling binary fixed point numbers, see https://en.wikipedia.org/wiki/Q_(number_format)
/// @dev Used in SqrtPriceMath.sol
library FixedPoint96 {
    uint8 internal constant RESOLUTION = 96;
    uint256 internal constant Q96 = 0x1000000000000000000000000;
}

// Part: Uniswap/[email protected]/FullMath

/// @title Contains 512-bit math functions
/// @notice Facilitates multiplication and division that can have overflow of an intermediate value without any loss of precision
/// @dev Handles "phantom overflow" i.e., allows multiplication and division where an intermediate value overflows 256 bits
library FullMath {
    /// @notice Calculates floor(a×b÷denominator) with full precision. Throws if result overflows a uint256 or denominator == 0
    /// @param a The multiplicand
    /// @param b The multiplier
    /// @param denominator The divisor
    /// @return result The 256-bit result
    /// @dev Credit to Remco Bloemen under MIT license https://xn--2-umb.com/21/muldiv
    function mulDiv(
        uint256 a,
        uint256 b,
        uint256 denominator
    ) internal pure returns (uint256 result) {
        // 512-bit multiply [prod1 prod0] = a * b
        // Compute the product mod 2**256 and mod 2**256 - 1
        // then 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(a, b, not(0))
            prod0 := mul(a, b)
            prod1 := sub(sub(mm, prod0), lt(mm, prod0))
        }

        // Handle non-overflow cases, 256 by 256 division
        if (prod1 == 0) {
            require(denominator > 0);
            assembly {
                result := div(prod0, denominator)
            }
            return result;
        }

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

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

        // Make division exact by subtracting the remainder from [prod1 prod0]
        // Compute remainder using mulmod
        uint256 remainder;
        assembly {
            remainder := mulmod(a, b, denominator)
        }
        // Subtract 256 bit number from 512 bit number
        assembly {
            prod1 := sub(prod1, gt(remainder, prod0))
            prod0 := sub(prod0, remainder)
        }

        // Factor powers of two out of denominator
        // Compute largest power of two divisor of denominator.
        // Always >= 1.
        uint256 twos = -denominator & denominator;
        // Divide denominator by power of two
        assembly {
            denominator := div(denominator, twos)
        }

        // Divide [prod1 prod0] by the factors of two
        assembly {
            prod0 := div(prod0, twos)
        }
        // Shift in bits from prod1 into prod0. For this we need
        // to flip `twos` such that it is 2**256 / twos.
        // If twos is zero, then it becomes one
        assembly {
            twos := add(div(sub(0, twos), twos), 1)
        }
        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
        // correct for four bits. That is, denominator * inv = 1 mod 2**4
        uint256 inv = (3 * denominator) ^ 2;
        // Now use 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.
        inv *= 2 - denominator * inv; // inverse mod 2**8
        inv *= 2 - denominator * inv; // inverse mod 2**16
        inv *= 2 - denominator * inv; // inverse mod 2**32
        inv *= 2 - denominator * inv; // inverse mod 2**64
        inv *= 2 - denominator * inv; // inverse mod 2**128
        inv *= 2 - denominator * inv; // 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 precoditions 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 * inv;
        return result;
    }

    /// @notice Calculates ceil(a×b÷denominator) with full precision. Throws if result overflows a uint256 or denominator == 0
    /// @param a The multiplicand
    /// @param b The multiplier
    /// @param denominator The divisor
    /// @return result The 256-bit result
    function mulDivRoundingUp(
        uint256 a,
        uint256 b,
        uint256 denominator
    ) internal pure returns (uint256 result) {
        result = mulDiv(a, b, denominator);
        if (mulmod(a, b, denominator) > 0) {
            require(result < type(uint256).max);
            result++;
        }
    }
}

// Part: Uniswap/[email protected]/IUniswapV3MintCallback

/// @title Callback for IUniswapV3PoolActions#mint
/// @notice Any contract that calls IUniswapV3PoolActions#mint must implement this interface
interface IUniswapV3MintCallback {
    /// @notice Called to `msg.sender` after minting liquidity to a position from IUniswapV3Pool#mint.
    /// @dev In the implementation you must pay the pool tokens owed for the minted liquidity.
    /// The caller of this method must be checked to be a UniswapV3Pool deployed by the canonical UniswapV3Factory.
    /// @param amount0Owed The amount of token0 due to the pool for the minted liquidity
    /// @param amount1Owed The amount of token1 due to the pool for the minted liquidity
    /// @param data Any data passed through by the caller via the IUniswapV3PoolActions#mint call
    function uniswapV3MintCallback(
        uint256 amount0Owed,
        uint256 amount1Owed,
        bytes calldata data
    ) external;
}

// Part: Uniswap/[email protected]/IUniswapV3PoolActions

/// @title Permissionless pool actions
/// @notice Contains pool methods that can be called by anyone
interface IUniswapV3PoolActions {
    /// @notice Sets the initial price for the pool
    /// @dev Price is represented as a sqrt(amountToken1/amountToken0) Q64.96 value
    /// @param sqrtPriceX96 the initial sqrt price of the pool as a Q64.96
    function initialize(uint160 sqrtPriceX96) external;

    /// @notice Adds liquidity for the given recipient/tickLower/tickUpper position
    /// @dev The caller of this method receives a callback in the form of IUniswapV3MintCallback#uniswapV3MintCallback
    /// in which they must pay any token0 or token1 owed for the liquidity. The amount of token0/token1 due depends
    /// on tickLower, tickUpper, the amount of liquidity, and the current price.
    /// @param recipient The address for which the liquidity will be created
    /// @param tickLower The lower tick of the position in which to add liquidity
    /// @param tickUpper The upper tick of the position in which to add liquidity
    /// @param amount The amount of liquidity to mint
    /// @param data Any data that should be passed through to the callback
    /// @return amount0 The amount of token0 that was paid to mint the given amount of liquidity. Matches the value in the callback
    /// @return amount1 The amount of token1 that was paid to mint the given amount of liquidity. Matches the value in the callback
    function mint(
        address recipient,
        int24 tickLower,
        int24 tickUpper,
        uint128 amount,
        bytes calldata data
    ) external returns (uint256 amount0, uint256 amount1);

    /// @notice Collects tokens owed to a position
    /// @dev Does not recompute fees earned, which must be done either via mint or burn of any amount of liquidity.
    /// Collect must be called by the position owner. To withdraw only token0 or only token1, amount0Requested or
    /// amount1Requested may be set to zero. To withdraw all tokens owed, caller may pass any value greater than the
    /// actual tokens owed, e.g. type(uint128).max. Tokens owed may be from accumulated swap fees or burned liquidity.
    /// @param recipient The address which should receive the fees collected
    /// @param tickLower The lower tick of the position for which to collect fees
    /// @param tickUpper The upper tick of the position for which to collect fees
    /// @param amount0Requested How much token0 should be withdrawn from the fees owed
    /// @param amount1Requested How much token1 should be withdrawn from the fees owed
    /// @return amount0 The amount of fees collected in token0
    /// @return amount1 The amount of fees collected in token1
    function collect(
        address recipient,
        int24 tickLower,
        int24 tickUpper,
        uint128 amount0Requested,
        uint128 amount1Requested
    ) external returns (uint128 amount0, uint128 amount1);

    /// @notice Burn liquidity from the sender and account tokens owed for the liquidity to the position
    /// @dev Can be used to trigger a recalculation of fees owed to a position by calling with an amount of 0
    /// @dev Fees must be collected separately via a call to #collect
    /// @param tickLower The lower tick of the position for which to burn liquidity
    /// @param tickUpper The upper tick of the position for which to burn liquidity
    /// @param amount How much liquidity to burn
    /// @return amount0 The amount of token0 sent to the recipient
    /// @return amount1 The amount of token1 sent to the recipient
    function burn(
        int24 tickLower,
        int24 tickUpper,
        uint128 amount
    ) external returns (uint256 amount0, uint256 amount1);

    /// @notice Swap token0 for token1, or token1 for token0
    /// @dev The caller of this method receives a callback in the form of IUniswapV3SwapCallback#uniswapV3SwapCallback
    /// @param recipient The address to receive the output of the swap
    /// @param zeroForOne The direction of the swap, true for token0 to token1, false for token1 to token0
    /// @param amountSpecified The amount of the swap, which implicitly configures the swap as exact input (positive), or exact output (negative)
    /// @param sqrtPriceLimitX96 The Q64.96 sqrt price limit. If zero for one, the price cannot be less than this
    /// value after the swap. If one for zero, the price cannot be greater than this value after the swap
    /// @param data Any data to be passed through to the callback
    /// @return amount0 The delta of the balance of token0 of the pool, exact when negative, minimum when positive
    /// @return amount1 The delta of the balance of token1 of the pool, exact when negative, minimum when positive
    function swap(
        address recipient,
        bool zeroForOne,
        int256 amountSpecified,
        uint160 sqrtPriceLimitX96,
        bytes calldata data
    ) external returns (int256 amount0, int256 amount1);

    /// @notice Receive token0 and/or token1 and pay it back, plus a fee, in the callback
    /// @dev The caller of this method receives a callback in the form of IUniswapV3FlashCallback#uniswapV3FlashCallback
    /// @dev Can be used to donate underlying tokens pro-rata to currently in-range liquidity providers by calling
    /// with 0 amount{0,1} and sending the donation amount(s) from the callback
    /// @param recipient The address which will receive the token0 and token1 amounts
    /// @param amount0 The amount of token0 to send
    /// @param amount1 The amount of token1 to send
    /// @param data Any data to be passed through to the callback
    function flash(
        address recipient,
        uint256 amount0,
        uint256 amount1,
        bytes calldata data
    ) external;

    /// @notice Increase the maximum number of price and liquidity observations that this pool will store
    /// @dev This method is no-op if the pool already has an observationCardinalityNext greater than or equal to
    /// the input observationCardinalityNext.
    /// @param observationCardinalityNext The desired minimum number of observations for the pool to store
    function increaseObservationCardinalityNext(uint16 observationCardinalityNext) external;
}

// Part: Uniswap/[email protected]/IUniswapV3PoolDerivedState

/// @title Pool state that is not stored
/// @notice Contains view functions to provide information about the pool that is computed rather than stored on the
/// blockchain. The functions here may have variable gas costs.
interface IUniswapV3PoolDerivedState {
    /// @notice Returns the cumulative tick and liquidity as of each timestamp `secondsAgo` from the current block timestamp
    /// @dev To get a time weighted average tick or liquidity-in-range, you must call this with two values, one representing
    /// the beginning of the period and another for the end of the period. E.g., to get the last hour time-weighted average tick,
    /// you must call it with secondsAgos = [3600, 0].
    /// @dev The time weighted average tick represents the geometric time weighted average price of the pool, in
    /// log base sqrt(1.0001) of token1 / token0. The TickMath library can be used to go from a tick value to a ratio.
    /// @param secondsAgos From how long ago each cumulative tick and liquidity value should be returned
    /// @return tickCumulatives Cumulative tick values as of each `secondsAgos` from the current block timestamp
    /// @return secondsPerLiquidityCumulativeX128s Cumulative seconds per liquidity-in-range value as of each `secondsAgos` from the current block
    /// timestamp
    function observe(uint32[] calldata secondsAgos)
        external
        view
        returns (int56[] memory tickCumulatives, uint160[] memory secondsPerLiquidityCumulativeX128s);

    /// @notice Returns a snapshot of the tick cumulative, seconds per liquidity and seconds inside a tick range
    /// @dev Snapshots must only be compared to other snapshots, taken over a period for which a position existed.
    /// I.e., snapshots cannot be compared if a position is not held for the entire period between when the first
    /// snapshot is taken and the second snapshot is taken.
    /// @param tickLower The lower tick of the range
    /// @param tickUpper The upper tick of the range
    /// @return tickCumulativeInside The snapshot of the tick accumulator for the range
    /// @return secondsPerLiquidityInsideX128 The snapshot of seconds per liquidity for the range
    /// @return secondsInside The snapshot of seconds per liquidity for the range
    function snapshotCumulativesInside(int24 tickLower, int24 tickUpper)
        external
        view
        returns (
            int56 tickCumulativeInside,
            uint160 secondsPerLiquidityInsideX128,
            uint32 secondsInside
        );
}

// Part: Uniswap/[email protected]/IUniswapV3PoolEvents

/// @title Events emitted by a pool
/// @notice Contains all events emitted by the pool
interface IUniswapV3PoolEvents {
    /// @notice Emitted exactly once by a pool when #initialize is first called on the pool
    /// @dev Mint/Burn/Swap cannot be emitted by the pool before Initialize
    /// @param sqrtPriceX96 The initial sqrt price of the pool, as a Q64.96
    /// @param tick The initial tick of the pool, i.e. log base 1.0001 of the starting price of the pool
    event Initialize(uint160 sqrtPriceX96, int24 tick);

    /// @notice Emitted when liquidity is minted for a given position
    /// @param sender The address that minted the liquidity
    /// @param owner The owner of the position and recipient of any minted liquidity
    /// @param tickLower The lower tick of the position
    /// @param tickUpper The upper tick of the position
    /// @param amount The amount of liquidity minted to the position range
    /// @param amount0 How much token0 was required for the minted liquidity
    /// @param amount1 How much token1 was required for the minted liquidity
    event Mint(
        address sender,
        address indexed owner,
        int24 indexed tickLower,
        int24 indexed tickUpper,
        uint128 amount,
        uint256 amount0,
        uint256 amount1
    );

    /// @notice Emitted when fees are collected by the owner of a position
    /// @dev Collect events may be emitted with zero amount0 and amount1 when the caller chooses not to collect fees
    /// @param owner The owner of the position for which fees are collected
    /// @param tickLower The lower tick of the position
    /// @param tickUpper The upper tick of the position
    /// @param amount0 The amount of token0 fees collected
    /// @param amount1 The amount of token1 fees collected
    event Collect(
        address indexed owner,
        address recipient,
        int24 indexed tickLower,
        int24 indexed tickUpper,
        uint128 amount0,
        uint128 amount1
    );

    /// @notice Emitted when a position's liquidity is removed
    /// @dev Does not withdraw any fees earned by the liquidity position, which must be withdrawn via #collect
    /// @param owner The owner of the position for which liquidity is removed
    /// @param tickLower The lower tick of the position
    /// @param tickUpper The upper tick of the position
    /// @param amount The amount of liquidity to remove
    /// @param amount0 The amount of token0 withdrawn
    /// @param amount1 The amount of token1 withdrawn
    event Burn(
        address indexed owner,
        int24 indexed tickLower,
        int24 indexed tickUpper,
        uint128 amount,
        uint256 amount0,
        uint256 amount1
    );

    /// @notice Emitted by the pool for any swaps between token0 and token1
    /// @param sender The address that initiated the swap call, and that received the callback
    /// @param recipient The address that received the output of the swap
    /// @param amount0 The delta of the token0 balance of the pool
    /// @param amount1 The delta of the token1 balance of the pool
    /// @param sqrtPriceX96 The sqrt(price) of the pool after the swap, as a Q64.96
    /// @param liquidity The liquidity of the pool after the swap
    /// @param tick The log base 1.0001 of price of the pool after the swap
    event Swap(
        address indexed sender,
        address indexed recipient,
        int256 amount0,
        int256 amount1,
        uint160 sqrtPriceX96,
        uint128 liquidity,
        int24 tick
    );

    /// @notice Emitted by the pool for any flashes of token0/token1
    /// @param sender The address that initiated the swap call, and that received the callback
    /// @param recipient The address that received the tokens from flash
    /// @param amount0 The amount of token0 that was flashed
    /// @param amount1 The amount of token1 that was flashed
    /// @param paid0 The amount of token0 paid for the flash, which can exceed the amount0 plus the fee
    /// @param paid1 The amount of token1 paid for the flash, which can exceed the amount1 plus the fee
    event Flash(
        address indexed sender,
        address indexed recipient,
        uint256 amount0,
        uint256 amount1,
        uint256 paid0,
        uint256 paid1
    );

    /// @notice Emitted by the pool for increases to the number of observations that can be stored
    /// @dev observationCardinalityNext is not the observation cardinality until an observation is written at the index
    /// just before a mint/swap/burn.
    /// @param observationCardinalityNextOld The previous value of the next observation cardinality
    /// @param observationCardinalityNextNew The updated value of the next observation cardinality
    event IncreaseObservationCardinalityNext(
        uint16 observationCardinalityNextOld,
        uint16 observationCardinalityNextNew
    );

    /// @notice Emitted when the protocol fee is changed by the pool
    /// @param feeProtocol0Old The previous value of the token0 protocol fee
    /// @param feeProtocol1Old The previous value of the token1 protocol fee
    /// @param feeProtocol0New The updated value of the token0 protocol fee
    /// @param feeProtocol1New The updated value of the token1 protocol fee
    event SetFeeProtocol(uint8 feeProtocol0Old, uint8 feeProtocol1Old, uint8 feeProtocol0New, uint8 feeProtocol1New);

    /// @notice Emitted when the collected protocol fees are withdrawn by the factory owner
    /// @param sender The address that collects the protocol fees
    /// @param recipient The address that receives the collected protocol fees
    /// @param amount0 The amount of token0 protocol fees that is withdrawn
    /// @param amount0 The amount of token1 protocol fees that is withdrawn
    event CollectProtocol(address indexed sender, address indexed recipient, uint128 amount0, uint128 amount1);
}

// Part: Uniswap/[email protected]/IUniswapV3PoolImmutables

/// @title Pool state that never changes
/// @notice These parameters are fixed for a pool forever, i.e., the methods will always return the same values
interface IUniswapV3PoolImmutables {
    /// @notice The contract that deployed the pool, which must adhere to the IUniswapV3Factory interface
    /// @return The contract address
    function factory() external view returns (address);

    /// @notice The first of the two tokens of the pool, sorted by address
    /// @return The token contract address
    function token0() external view returns (address);

    /// @notice The second of the two tokens of the pool, sorted by address
    /// @return The token contract address
    function token1() external view returns (address);

    /// @notice The pool's fee in hundredths of a bip, i.e. 1e-6
    /// @return The fee
    function fee() external view returns (uint24);

    /// @notice The pool tick spacing
    /// @dev Ticks can only be used at multiples of this value, minimum of 1 and always positive
    /// e.g.: a tickSpacing of 3 means ticks can be initialized every 3rd tick, i.e., ..., -6, -3, 0, 3, 6, ...
    /// This value is an int24 to avoid casting even though it is always positive.
    /// @return The tick spacing
    function tickSpacing() external view returns (int24);

    /// @notice The maximum amount of position liquidity that can use any tick in the range
    /// @dev This parameter is enforced per tick to prevent liquidity from overflowing a uint128 at any point, and
    /// also prevents out-of-range liquidity from being used to prevent adding in-range liquidity to a pool
    /// @return The max amount of liquidity per tick
    function maxLiquidityPerTick() external view returns (uint128);
}

// Part: Uniswap/[email protected]/IUniswapV3PoolOwnerActions

/// @title Permissioned pool actions
/// @notice Contains pool methods that may only be called by the factory owner
interface IUniswapV3PoolOwnerActions {
    /// @notice Set the denominator of the protocol's % share of the fees
    /// @param feeProtocol0 new protocol fee for token0 of the pool
    /// @param feeProtocol1 new protocol fee for token1 of the pool
    function setFeeProtocol(uint8 feeProtocol0, uint8 feeProtocol1) external;

    /// @notice Collect the protocol fee accrued to the pool
    /// @param recipient The address to which collected protocol fees should be sent
    /// @param amount0Requested The maximum amount of token0 to send, can be 0 to collect fees in only token1
    /// @param amount1Requested The maximum amount of token1 to send, can be 0 to collect fees in only token0
    /// @return amount0 The protocol fee collected in token0
    /// @return amount1 The protocol fee collected in token1
    function collectProtocol(
        address recipient,
        uint128 amount0Requested,
        uint128 amount1Requested
    ) external returns (uint128 amount0, uint128 amount1);
}

// Part: Uniswap/[email protected]/IUniswapV3PoolState

/// @title Pool state that can change
/// @notice These methods compose the pool's state, and can change with any frequency including multiple times
/// per transaction
interface IUniswapV3PoolState {
    /// @notice The 0th storage slot in the pool stores many values, and is exposed as a single method to save gas
    /// when accessed externally.
    /// @return sqrtPriceX96 The current price of the pool as a sqrt(token1/token0) Q64.96 value
    /// tick The current tick of the pool, i.e. according to the last tick transition that was run.
    /// This value may not always be equal to SqrtTickMath.getTickAtSqrtRatio(sqrtPriceX96) if the price is on a tick
    /// boundary.
    /// observationIndex The index of the last oracle observation that was written,
    /// observationCardinality The current maximum number of observations stored in the pool,
    /// observationCardinalityNext The next maximum number of observations, to be updated when the observation.
    /// feeProtocol The protocol fee for both tokens of the pool.
    /// Encoded as two 4 bit values, where the protocol fee of token1 is shifted 4 bits and the protocol fee of token0
    /// is the lower 4 bits. Used as the denominator of a fraction of the swap fee, e.g. 4 means 1/4th of the swap fee.
    /// unlocked Whether the pool is currently locked to reentrancy
    function slot0()
        external
        view
        returns (
            uint160 sqrtPriceX96,
            int24 tick,
            uint16 observationIndex,
            uint16 observationCardinality,
            uint16 observationCardinalityNext,
            uint8 feeProtocol,
            bool unlocked
        );

    /// @notice The fee growth as a Q128.128 fees of token0 collected per unit of liquidity for the entire life of the pool
    /// @dev This value can overflow the uint256
    function feeGrowthGlobal0X128() external view returns (uint256);

    /// @notice The fee growth as a Q128.128 fees of token1 collected per unit of liquidity for the entire life of the pool
    /// @dev This value can overflow the uint256
    function feeGrowthGlobal1X128() external view returns (uint256);

    /// @notice The amounts of token0 and token1 that are owed to the protocol
    /// @dev Protocol fees will never exceed uint128 max in either token
    function protocolFees() external view returns (uint128 token0, uint128 token1);

    /// @notice The currently in range liquidity available to the pool
    /// @dev This value has no relationship to the total liquidity across all ticks
    function liquidity() external view returns (uint128);

    /// @notice Look up information about a specific tick in the pool
    /// @param tick The tick to look up
    /// @return liquidityGross the total amount of position liquidity that uses the pool either as tick lower or
    /// tick upper,
    /// liquidityNet how much liquidity changes when the pool price crosses the tick,
    /// feeGrowthOutside0X128 the fee growth on the other side of the tick from the current tick in token0,
    /// feeGrowthOutside1X128 the fee growth on the other side of the tick from the current tick in token1,
    /// tickCumulativeOutside the cumulative tick value on the other side of the tick from the current tick
    /// secondsPerLiquidityOutsideX128 the seconds spent per liquidity on the other side of the tick from the current tick,
    /// secondsOutside the seconds spent on the other side of the tick from the current tick,
    /// initialized Set to true if the tick is initialized, i.e. liquidityGross is greater than 0, otherwise equal to false.
    /// Outside values can only be used if the tick is initialized, i.e. if liquidityGross is greater than 0.
    /// In addition, these values are only relative and must be used only in comparison to previous snapshots for
    /// a specific position.
    function ticks(int24 tick)
        external
        view
        returns (
            uint128 liquidityGross,
            int128 liquidityNet,
            uint256 feeGrowthOutside0X128,
            uint256 feeGrowthOutside1X128,
            int56 tickCumulativeOutside,
            uint160 secondsPerLiquidityOutsideX128,
            uint32 secondsOutside,
            bool initialized
        );

    /// @notice Returns 256 packed tick initialized boolean values. See TickBitmap for more information
    function tickBitmap(int16 wordPosition) external view returns (uint256);

    /// @notice Returns the information about a position by the position's key
    /// @param key The position's key is a hash of a preimage composed by the owner, tickLower and tickUpper
    /// @return _liquidity The amount of liquidity in the position,
    /// Returns feeGrowthInside0LastX128 fee growth of token0 inside the tick range as of the last mint/burn/poke,
    /// Returns feeGrowthInside1LastX128 fee growth of token1 inside the tick range as of the last mint/burn/poke,
    /// Returns tokensOwed0 the computed amount of token0 owed to the position as of the last mint/burn/poke,
    /// Returns tokensOwed1 the computed amount of token1 owed to the position as of the last mint/burn/poke
    function positions(bytes32 key)
        external
        view
        returns (
            uint128 _liquidity,
            uint256 feeGrowthInside0LastX128,
            uint256 feeGrowthInside1LastX128,
            uint128 tokensOwed0,
            uint128 tokensOwed1
        );

    /// @notice Returns data about a specific observation index
    /// @param index The element of the observations array to fetch
    /// @dev You most likely want to use #observe() instead of this method to get an observation as of some amount of time
    /// ago, rather than at a specific index in the array.
    /// @return blockTimestamp The timestamp of the observation,
    /// Returns tickCumulative the tick multiplied by seconds elapsed for the life of the pool as of the observation timestamp,
    /// Returns secondsPerLiquidityCumulativeX128 the seconds per in range liquidity for the life of the pool as of the observation timestamp,
    /// Returns initialized whether the observation has been initialized and the values are safe to use
    function observations(uint256 index)
        external
        view
        returns (
            uint32 blockTimestamp,
            int56 tickCumulative,
            uint160 secondsPerLiquidityCumulativeX128,
            bool initialized
        );
}

// Part: Uniswap/[email protected]/TickMath

/// @title Math library for computing sqrt prices from ticks and vice versa
/// @notice Computes sqrt price for ticks of size 1.0001, i.e. sqrt(1.0001^tick) as fixed point Q64.96 numbers. Supports
/// prices between 2**-128 and 2**128
library TickMath {
    /// @dev The minimum tick that may be passed to #getSqrtRatioAtTick computed from log base 1.0001 of 2**-128
    int24 internal constant MIN_TICK = -887272;
    /// @dev The maximum tick that may be passed to #getSqrtRatioAtTick computed from log base 1.0001 of 2**128
    int24 internal constant MAX_TICK = -MIN_TICK;

    /// @dev The minimum value that can be returned from #getSqrtRatioAtTick. Equivalent to getSqrtRatioAtTick(MIN_TICK)
    uint160 internal constant MIN_SQRT_RATIO = 4295128739;
    /// @dev The maximum value that can be returned from #getSqrtRatioAtTick. Equivalent to getSqrtRatioAtTick(MAX_TICK)
    uint160 internal constant MAX_SQRT_RATIO = 1461446703485210103287273052203988822378723970342;

    /// @notice Calculates sqrt(1.0001^tick) * 2^96
    /// @dev Throws if |tick| > max tick
    /// @param tick The input tick for the above formula
    /// @return sqrtPriceX96 A Fixed point Q64.96 number representing the sqrt of the ratio of the two assets (token1/token0)
    /// at the given tick
    function getSqrtRatioAtTick(int24 tick) internal pure returns (uint160 sqrtPriceX96) {
        uint256 absTick = tick < 0 ? uint256(-int256(tick)) : uint256(int256(tick));
        require(absTick <= uint256(MAX_TICK), 'T');

        uint256 ratio = absTick & 0x1 != 0 ? 0xfffcb933bd6fad37aa2d162d1a594001 : 0x100000000000000000000000000000000;
        if (absTick & 0x2 != 0) ratio = (ratio * 0xfff97272373d413259a46990580e213a) >> 128;
        if (absTick & 0x4 != 0) ratio = (ratio * 0xfff2e50f5f656932ef12357cf3c7fdcc) >> 128;
        if (absTick & 0x8 != 0) ratio = (ratio * 0xffe5caca7e10e4e61c3624eaa0941cd0) >> 128;
        if (absTick & 0x10 != 0) ratio = (ratio * 0xffcb9843d60f6159c9db58835c926644) >> 128;
        if (absTick & 0x20 != 0) ratio = (ratio * 0xff973b41fa98c081472e6896dfb254c0) >> 128;
        if (absTick & 0x40 != 0) ratio = (ratio * 0xff2ea16466c96a3843ec78b326b52861) >> 128;
        if (absTick & 0x80 != 0) ratio = (ratio * 0xfe5dee046a99a2a811c461f1969c3053) >> 128;
        if (absTick & 0x100 != 0) ratio = (ratio * 0xfcbe86c7900a88aedcffc83b479aa3a4) >> 128;
        if (absTick & 0x200 != 0) ratio = (ratio * 0xf987a7253ac413176f2b074cf7815e54) >> 128;
        if (absTick & 0x400 != 0) ratio = (ratio * 0xf3392b0822b70005940c7a398e4b70f3) >> 128;
        if (absTick & 0x800 != 0) ratio = (ratio * 0xe7159475a2c29b7443b29c7fa6e889d9) >> 128;
        if (absTick & 0x1000 != 0) ratio = (ratio * 0xd097f3bdfd2022b8845ad8f792aa5825) >> 128;
        if (absTick & 0x2000 != 0) ratio = (ratio * 0xa9f746462d870fdf8a65dc1f90e061e5) >> 128;
        if (absTick & 0x4000 != 0) ratio = (ratio * 0x70d869a156d2a1b890bb3df62baf32f7) >> 128;
        if (absTick & 0x8000 != 0) ratio = (ratio * 0x31be135f97d08fd981231505542fcfa6) >> 128;
        if (absTick & 0x10000 != 0) ratio = (ratio * 0x9aa508b5b7a84e1c677de54f3e99bc9) >> 128;
        if (absTick & 0x20000 != 0) ratio = (ratio * 0x5d6af8dedb81196699c329225ee604) >> 128;
        if (absTick & 0x40000 != 0) ratio = (ratio * 0x2216e584f5fa1ea926041bedfe98) >> 128;
        if (absTick & 0x80000 != 0) ratio = (ratio * 0x48a170391f7dc42444e8fa2) >> 128;

        if (tick > 0) ratio = type(uint256).max / ratio;

        // this divides by 1<<32 rounding up to go from a Q128.128 to a Q128.96.
        // we then downcast because we know the result always fits within 160 bits due to our tick input constraint
        // we round up in the division so getTickAtSqrtRatio of the output price is always consistent
        sqrtPriceX96 = uint160((ratio >> 32) + (ratio % (1 << 32) == 0 ? 0 : 1));
    }

    /// @notice Calculates the greatest tick value such that getRatioAtTick(tick) <= ratio
    /// @dev Throws in case sqrtPriceX96 < MIN_SQRT_RATIO, as MIN_SQRT_RATIO is the lowest value getRatioAtTick may
    /// ever return.
    /// @param sqrtPriceX96 The sqrt ratio for which to compute the tick as a Q64.96
    /// @return tick The greatest tick for which the ratio is less than or equal to the input ratio
    function getTickAtSqrtRatio(uint160 sqrtPriceX96) internal pure returns (int24 tick) {
        // second inequality must be < because the price can never reach the price at the max tick
        require(sqrtPriceX96 >= MIN_SQRT_RATIO && sqrtPriceX96 < MAX_SQRT_RATIO, 'R');
        uint256 ratio = uint256(sqrtPriceX96) << 32;

        uint256 r = ratio;
        uint256 msb = 0;

        assembly {
            let f := shl(7, gt(r, 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF))
            msb := or(msb, f)
            r := shr(f, r)
        }
        assembly {
            let f := shl(6, gt(r, 0xFFFFFFFFFFFFFFFF))
            msb := or(msb, f)
            r := shr(f, r)
        }
        assembly {
            let f := shl(5, gt(r, 0xFFFFFFFF))
            msb := or(msb, f)
            r := shr(f, r)
        }
        assembly {
            let f := shl(4, gt(r, 0xFFFF))
            msb := or(msb, f)
            r := shr(f, r)
        }
        assembly {
            let f := shl(3, gt(r, 0xFF))
            msb := or(msb, f)
            r := shr(f, r)
        }
        assembly {
            let f := shl(2, gt(r, 0xF))
            msb := or(msb, f)
            r := shr(f, r)
        }
        assembly {
            let f := shl(1, gt(r, 0x3))
            msb := or(msb, f)
            r := shr(f, r)
        }
        assembly {
            let f := gt(r, 0x1)
            msb := or(msb, f)
        }

        if (msb >= 128) r = ratio >> (msb - 127);
        else r = ratio << (127 - msb);

        int256 log_2 = (int256(msb) - 128) << 64;

        assembly {
            r := shr(127, mul(r, r))
            let f := shr(128, r)
            log_2 := or(log_2, shl(63, f))
            r := shr(f, r)
        }
        assembly {
            r := shr(127, mul(r, r))
            let f := shr(128, r)
            log_2 := or(log_2, shl(62, f))
            r := shr(f, r)
        }
        assembly {
            r := shr(127, mul(r, r))
            let f := shr(128, r)
            log_2 := or(log_2, shl(61, f))
            r := shr(f, r)
        }
        assembly {
            r := shr(127, mul(r, r))
            let f := shr(128, r)
            log_2 := or(log_2, shl(60, f))
            r := shr(f, r)
        }
        assembly {
            r := shr(127, mul(r, r))
            let f := shr(128, r)
            log_2 := or(log_2, shl(59, f))
            r := shr(f, r)
        }
        assembly {
            r := shr(127, mul(r, r))
            let f := shr(128, r)
            log_2 := or(log_2, shl(58, f))
            r := shr(f, r)
        }
        assembly {
            r := shr(127, mul(r, r))
            let f := shr(128, r)
            log_2 := or(log_2, shl(57, f))
            r := shr(f, r)
        }
        assembly {
            r := shr(127, mul(r, r))
            let f := shr(128, r)
            log_2 := or(log_2, shl(56, f))
            r := shr(f, r)
        }
        assembly {
            r := shr(127, mul(r, r))
            let f := shr(128, r)
            log_2 := or(log_2, shl(55, f))
            r := shr(f, r)
        }
        assembly {
            r := shr(127, mul(r, r))
            let f := shr(128, r)
            log_2 := or(log_2, shl(54, f))
            r := shr(f, r)
        }
        assembly {
            r := shr(127, mul(r, r))
            let f := shr(128, r)
            log_2 := or(log_2, shl(53, f))
            r := shr(f, r)
        }
        assembly {
            r := shr(127, mul(r, r))
            let f := shr(128, r)
            log_2 := or(log_2, shl(52, f))
            r := shr(f, r)
        }
        assembly {
            r := shr(127, mul(r, r))
            let f := shr(128, r)
            log_2 := or(log_2, shl(51, f))
            r := shr(f, r)
        }
        assembly {
            r := shr(127, mul(r, r))
            let f := shr(128, r)
            log_2 := or(log_2, shl(50, f))
        }

        int256 log_sqrt10001 = log_2 * 255738958999603826347141; // 128.128 number

        int24 tickLow = int24((log_sqrt10001 - 3402992956809132418596140100660247210) >> 128);
        int24 tickHi = int24((log_sqrt10001 + 291339464771989622907027621153398088495) >> 128);

        tick = tickLow == tickHi ? tickLow : getSqrtRatioAtTick(tickHi) <= sqrtPriceX96 ? tickHi : tickLow;
    }
}

// Part: LiquidityAmounts

/// @title Liquidity amount functions
/// @notice Provides functions for computing liquidity amounts from token amounts and prices
library LiquidityAmounts {
    /// @notice Downcasts uint256 to uint128
    /// @param x The uint258 to be downcasted
    /// @return y The passed value, downcasted to uint128
    function toUint128(uint256 x) private pure returns (uint128 y) {
        require((y = uint128(x)) == x);
    }

    /// @notice Computes the amount of liquidity received for a given amount of token0 and price range
    /// @dev Calculates amount0 * (sqrt(upper) * sqrt(lower)) / (sqrt(upper) - sqrt(lower))
    /// @param sqrtRatioAX96 A sqrt price representing the first tick boundary
    /// @param sqrtRatioBX96 A sqrt price representing the second tick boundary
    /// @param amount0 The amount0 being sent in
    /// @return liquidity The amount of returned liquidity
    function getLiquidityForAmount0(
        uint160 sqrtRatioAX96,
        uint160 sqrtRatioBX96,
        uint256 amount0
    ) internal pure returns (uint128 liquidity) {
        if (sqrtRatioAX96 > sqrtRatioBX96) (sqrtRatioAX96, sqrtRatioBX96) = (sqrtRatioBX96, sqrtRatioAX96);
        uint256 intermediate = FullMath.mulDiv(sqrtRatioAX96, sqrtRatioBX96, FixedPoint96.Q96);
        return toUint128(FullMath.mulDiv(amount0, intermediate, sqrtRatioBX96 - sqrtRatioAX96));
    }

    /// @notice Computes the amount of liquidity received for a given amount of token1 and price range
    /// @dev Calculates amount1 / (sqrt(upper) - sqrt(lower)).
    /// @param sqrtRatioAX96 A sqrt price representing the first tick boundary
    /// @param sqrtRatioBX96 A sqrt price representing the second tick boundary
    /// @param amount1 The amount1 being sent in
    /// @return liquidity The amount of returned liquidity
    function getLiquidityForAmount1(
        uint160 sqrtRatioAX96,
        uint160 sqrtRatioBX96,
        uint256 amount1
    ) internal pure returns (uint128 liquidity) {
        if (sqrtRatioAX96 > sqrtRatioBX96) (sqrtRatioAX96, sqrtRatioBX96) = (sqrtRatioBX96, sqrtRatioAX96);
        return toUint128(FullMath.mulDiv(amount1, FixedPoint96.Q96, sqrtRatioBX96 - sqrtRatioAX96));
    }

    /// @notice Computes the maximum amount of liquidity received for a given amount of token0, token1, the current
    /// pool prices and the prices at the tick boundaries
    /// @param sqrtRatioX96 A sqrt price representing the current pool prices
    /// @param sqrtRatioAX96 A sqrt price representing the first tick boundary
    /// @param sqrtRatioBX96 A sqrt price representing the second tick boundary
    /// @param amount0 The amount of token0 being sent in
    /// @param amount1 The amount of token1 being sent in
    /// @return liquidity The maximum amount of liquidity received
    function getLiquidityForAmounts(
        uint160 sqrtRatioX96,
        uint160 sqrtRatioAX96,
        uint160 sqrtRatioBX96,
        uint256 amount0,
        uint256 amount1
    ) internal pure returns (uint128 liquidity) {
        if (sqrtRatioAX96 > sqrtRatioBX96) (sqrtRatioAX96, sqrtRatioBX96) = (sqrtRatioBX96, sqrtRatioAX96);

        if (sqrtRatioX96 <= sqrtRatioAX96) {
            liquidity = getLiquidityForAmount0(sqrtRatioAX96, sqrtRatioBX96, amount0);
        } else if (sqrtRatioX96 < sqrtRatioBX96) {
            uint128 liquidity0 = getLiquidityForAmount0(sqrtRatioX96, sqrtRatioBX96, amount0);
            uint128 liquidity1 = getLiquidityForAmount1(sqrtRatioAX96, sqrtRatioX96, amount1);

            liquidity = liquidity0 < liquidity1 ? liquidity0 : liquidity1;
        } else {
            liquidity = getLiquidityForAmount1(sqrtRatioAX96, sqrtRatioBX96, amount1);
        }
    }

    /// @notice Computes the amount of token0 for a given amount of liquidity and a price range
    /// @param sqrtRatioAX96 A sqrt price representing the first tick boundary
    /// @param sqrtRatioBX96 A sqrt price representing the second tick boundary
    /// @param liquidity The liquidity being valued
    /// @return amount0 The amount of token0
    function getAmount0ForLiquidity(
        uint160 sqrtRatioAX96,
        uint160 sqrtRatioBX96,
        uint128 liquidity
    ) internal pure returns (uint256 amount0) {
        if (sqrtRatioAX96 > sqrtRatioBX96) (sqrtRatioAX96, sqrtRatioBX96) = (sqrtRatioBX96, sqrtRatioAX96);

        return
            FullMath.mulDiv(
                uint256(liquidity) << FixedPoint96.RESOLUTION,
                sqrtRatioBX96 - sqrtRatioAX96,
                sqrtRatioBX96
            ) / sqrtRatioAX96;
    }

    /// @notice Computes the amount of token1 for a given amount of liquidity and a price range
    /// @param sqrtRatioAX96 A sqrt price representing the first tick boundary
    /// @param sqrtRatioBX96 A sqrt price representing the second tick boundary
    /// @param liquidity The liquidity being valued
    /// @return amount1 The amount of token1
    function getAmount1ForLiquidity(
        uint160 sqrtRatioAX96,
        uint160 sqrtRatioBX96,
        uint128 liquidity
    ) internal pure returns (uint256 amount1) {
        if (sqrtRatioAX96 > sqrtRatioBX96) (sqrtRatioAX96, sqrtRatioBX96) = (sqrtRatioBX96, sqrtRatioAX96);

        return FullMath.mulDiv(liquidity, sqrtRatioBX96 - sqrtRatioAX96, FixedPoint96.Q96);
    }

    /// @notice Computes the token0 and token1 value for a given amount of liquidity, the current
    /// pool prices and the prices at the tick boundaries
    /// @param sqrtRatioX96 A sqrt price representing the current pool prices
    /// @param sqrtRatioAX96 A sqrt price representing the first tick boundary
    /// @param sqrtRatioBX96 A sqrt price representing the second tick boundary
    /// @param liquidity The liquidity being valued
    /// @return amount0 The amount of token0
    /// @return amount1 The amount of token1
    function getAmountsForLiquidity(
        uint160 sqrtRatioX96,
        uint160 sqrtRatioAX96,
        uint160 sqrtRatioBX96,
        uint128 liquidity
    ) internal pure returns (uint256 amount0, uint256 amount1) {
        if (sqrtRatioAX96 > sqrtRatioBX96) (sqrtRatioAX96, sqrtRatioBX96) = (sqrtRatioBX96, sqrtRatioAX96);

        if (sqrtRatioX96 <= sqrtRatioAX96) {
            amount0 = getAmount0ForLiquidity(sqrtRatioAX96, sqrtRatioBX96, liquidity);
        } else if (sqrtRatioX96 < sqrtRatioBX96) {
            amount0 = getAmount0ForLiquidity(sqrtRatioX96, sqrtRatioBX96, liquidity);
            amount1 = getAmount1ForLiquidity(sqrtRatioAX96, sqrtRatioX96, liquidity);
        } else {
            amount1 = getAmount1ForLiquidity(sqrtRatioAX96, sqrtRatioBX96, liquidity);
        }
    }
}

// Part: OpenZeppelin/[email protected]/ERC20

/**
 * @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.zeppelin.solutions/t/how-to-implement-erc20-supply-mechanisms/226[How
 * to implement supply mechanisms].
 *
 * We have followed general OpenZeppelin guidelines: functions revert instead
 * of 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 {
    using SafeMath for uint256;

    mapping (address => uint256) private _balances;

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

    uint256 private _totalSupply;

    string private _name;
    string private _symbol;
    uint8 private _decimals;

    /**
     * @dev Sets the values for {name} and {symbol}, initializes {decimals} with
     * a default value of 18.
     *
     * To select a different value for {decimals}, use {_setupDecimals}.
     *
     * All three of these values are immutable: they can only be set once during
     * construction.
     */
    constructor (string memory name_, string memory symbol_) public {
        _name = name_;
        _symbol = symbol_;
        _decimals = 18;
    }

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

    /**
     * @dev Returns the symbol of the token, usually a shorter version of the
     * name.
     */
    function symbol() public view virtual 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 value {ERC20} uses, unless {_setupDecimals} is
     * called.
     *
     * 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 returns (uint8) {
        return _decimals;
    }

    /**
     * @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:
     *
     * - `recipient` cannot be the zero address.
     * - the caller must have a balance of at least `amount`.
     */
    function transfer(address recipient, uint256 amount) public virtual override returns (bool) {
        _transfer(_msgSender(), recipient, 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}.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function approve(address spender, uint256 amount) public virtual override returns (bool) {
        _approve(_msgSender(), 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}.
     *
     * Requirements:
     *
     * - `sender` and `recipient` cannot be the zero address.
     * - `sender` must have a balance of at least `amount`.
     * - the caller must have allowance for ``sender``'s tokens of at least
     * `amount`.
     */
    function transferFrom(address sender, address recipient, uint256 amount) public virtual override returns (bool) {
        _transfer(sender, recipient, amount);
        _approve(sender, _msgSender(), _allowances[sender][_msgSender()].sub(amount, "ERC20: transfer amount exceeds allowance"));
        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) {
        _approve(_msgSender(), spender, _allowances[_msgSender()][spender].add(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) {
        _approve(_msgSender(), spender, _allowances[_msgSender()][spender].sub(subtractedValue, "ERC20: decreased allowance below zero"));
        return true;
    }

    /**
     * @dev Moves tokens `amount` from `sender` to `recipient`.
     *
     * This is 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:
     *
     * - `sender` cannot be the zero address.
     * - `recipient` cannot be the zero address.
     * - `sender` must have a balance of at least `amount`.
     */
    function _transfer(address sender, address recipient, uint256 amount) internal virtual {
        require(sender != address(0), "ERC20: transfer from the zero address");
        require(recipient != address(0), "ERC20: transfer to the zero address");

        _beforeTokenTransfer(sender, recipient, amount);

        _balances[sender] = _balances[sender].sub(amount, "ERC20: transfer amount exceeds balance");
        _balances[recipient] = _balances[recipient].add(amount);
        emit Transfer(sender, recipient, 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:
     *
     * - `to` 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 = _totalSupply.add(amount);
        _balances[account] = _balances[account].add(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(address account, uint256 amount) internal virtual {
        require(account != address(0), "ERC20: burn from the zero address");

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

        _balances[account] = _balances[account].sub(amount, "ERC20: burn amount exceeds balance");
        _totalSupply = _totalSupply.sub(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(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 Sets {decimals} to a value other than the default one of 18.
     *
     * WARNING: This function should only be called from the constructor. Most
     * applications that interact with token contracts will not expect
     * {decimals} to ever change, and may work incorrectly if it does.
     */
    function _setupDecimals(uint8 decimals_) internal virtual {
        _decimals = decimals_;
    }

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

// Part: OpenZeppelin/[email protected]/SafeERC20

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

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

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

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

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

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

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

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

// Part: Uniswap/[email protected]/IUniswapV3Pool

/// @title The interface for a Uniswap V3 Pool
/// @notice A Uniswap pool facilitates swapping and automated market making between any two assets that strictly conform
/// to the ERC20 specification
/// @dev The pool interface is broken up into many smaller pieces
interface IUniswapV3Pool is
    IUniswapV3PoolImmutables,
    IUniswapV3PoolState,
    IUniswapV3PoolDerivedState,
    IUniswapV3PoolActions,
    IUniswapV3PoolOwnerActions,
    IUniswapV3PoolEvents
{

}

// File: PassiveRebalanceVault.sol

/**
 * @title   Passive Rebalance Vault
 * @notice  Automatically manages liquidity on Uniswap V3 on behalf of users.
 *
 *          When a user calls deposit(), they have to add amounts of the two
 *          tokens proportional to the vault's current holdings. These are
 *          directly deposited into the Uniswap V3 pool. Similarly, when a user
 *          calls withdraw(), the proportion of liquidity is withdrawn from the
 *          pool and the resulting amounts are returned to the user.
 *
 *          The rebalance() method has to be called periodically. This method
 *          withdraws all liquidity from the pool, collects fees and then uses
 *          all the tokens it holds to place the two range orders below.
 *
 *              1. Base order is placed between X - B and X + B + TS.
 *              2. Limit order is placed between X - L and X, or between X + TS
 *                 and X + L + TS, depending on which token it holds more of.
 *
 *          where:
 *
 *              X = current tick rounded down to multiple of tick spacing
 *              TS = tick spacing
 *              B = base threshold
 *              L = limit threshold
 *
 *          Note that after the rebalance, the vault should theoretically
 *          have deposited all its tokens and shouldn't have any unused
 *          balance. The base order deposits equal values, so it uses up
 *          the entire balance of whichever token it holds less of. Then, the
 *          limit order is placed only one side of the current price so that
 *          the other token which it holds more of is used up.
 */
contract PassiveRebalanceVault is IVault, IUniswapV3MintCallback, ERC20, ReentrancyGuard {
    using SafeERC20 for IERC20;
    using SafeMath for uint256;

    uint256 public constant MIN_TOTAL_SUPPLY = 1000;
    uint256 public constant DUST_THRESHOLD = 1000;

    IUniswapV3Pool public pool;
    IERC20 public token0;
    IERC20 public token1;
    uint24 public fee;
    int24 public tickSpacing;

    int24 public baseThreshold;
    int24 public limitThreshold;
    int24 public maxTwapDeviation;
    uint32 public twapDuration;
    uint256 public rebalanceCooldown;
    uint256 public maxTotalSupply;

    int24 public baseLower;
    int24 public baseUpper;
    int24 public limitLower;
    int24 public limitUpper;

    address public governance;
    address public pendingGovernance;
    bool public finalized;
    address public keeper;
    uint256 public lastUpdate;

    /**
     * @param _pool Underlying Uniswap V3 pool
     * @param _baseThreshold Used to determine base range
     * @param _limitThreshold Used to determine limit range
     * @param _maxTwapDeviation Max deviation from TWAP during rebalance
     * @param _twapDuration TWAP duration in seconds for rebalance check
     * @param _rebalanceCooldown Min time between rebalance() calls in seconds
     * @param _maxTotalSupply Pause deposits if total supply exceeds this
     */
    constructor(
        address _pool,
        int24 _baseThreshold,
        int24 _limitThreshold,
        int24 _maxTwapDeviation,
        uint32 _twapDuration,
        uint256 _rebalanceCooldown,
        uint256 _maxTotalSupply
    ) ERC20("Alpha Vault", "AV") {
        pool = IUniswapV3Pool(_pool);
        token0 = IERC20(pool.token0());
        token1 = IERC20(pool.token1());
        fee = pool.fee();
        tickSpacing = pool.tickSpacing();

        baseThreshold = _baseThreshold;
        limitThreshold = _limitThreshold;
        maxTwapDeviation = _maxTwapDeviation;
        twapDuration = _twapDuration;
        rebalanceCooldown = _rebalanceCooldown;
        maxTotalSupply = _maxTotalSupply;
        governance = msg.sender;

        int24 mid = _mid();
        _checkMid(mid);
        _checkThreshold(_baseThreshold);
        _checkThreshold(_limitThreshold);
        require(_maxTwapDeviation >= 0, "maxTwapDeviation");

        (baseLower, baseUpper) = _baseRange(mid);
        (limitLower, limitUpper) = _bidRange(mid);
    }

    /**
     * @notice Deposit tokens in proportion to the vault's holdings.
     * @param shares Shares minted to recipient
     * @param amount0Max Revert if resulting amount0 is larger than this
     * @param amount1Max Revert if resulting amount1 is larger than this
     * @param to Recipient of shares
     * @return amount0 Amount of token0 paid by sender
     * @return amount1 Amount of token1 paid by sender
     */
    function deposit(
        uint256 shares,
        uint256 amount0Max,
        uint256 amount1Max,
        address to
    ) external override nonReentrant returns (uint256 amount0, uint256 amount1) {
        require(shares > 0, "shares");
        require(to != address(0), "to");

        if (totalSupply() == 0) {
            // For the initial deposit, place just the base order and ignore
            // the limit order
            (amount0, amount1) = _mintLiquidity(
                baseLower,
                baseUpper,
                _uint128Safe(shares),
                msg.sender
            );

            // Lock small number of shares and mint rest to recipient
            require(shares > MIN_TOTAL_SUPPLY, "MIN_TOTAL_SUPPLY");
            _mint(address(this), MIN_TOTAL_SUPPLY);
            shares = shares.sub(MIN_TOTAL_SUPPLY);
        } else {
            // Calculate how much liquidity to deposit
            uint128 baseLiquidity = _liquidityForShares(baseLower, baseUpper, shares);
            uint128 limitLiquidity = _liquidityForShares(limitLower, limitUpper, shares);

            // Deposit liquidity into Uniswap pool
            (uint256 base0, uint256 base1) =
                _mintLiquidity(baseLower, baseUpper, baseLiquidity, msg.sender);
            (uint256 limit0, uint256 limit1) =
                _mintLiquidity(limitLower, limitUpper, limitLiquidity, msg.sender);

            // Transfer in tokens proportional to unused balances
            uint256 unused0 = _depositUnused(token0, shares);
            uint256 unused1 = _depositUnused(token1, shares);

            // Sum up total amounts paid by sender
            amount0 = base0.add(limit0).add(unused0);
            amount1 = base1.add(limit1).add(unused1);
        }

        // Mint shares to recipient
        _mint(to, shares);

        require(amount0 <= amount0Max, "amount0Max");
        require(amount1 <= amount1Max, "amount1Max");
        emit Deposit(msg.sender, to, shares, amount0, amount1);

        // Check total supply cap not exceeded. A value of 0 means no limit.
        require(maxTotalSupply == 0 || totalSupply() <= maxTotalSupply, "maxTotalSupply");
    }

    /**
     * @notice Withdraw tokens in proportion to the vault's holdings.
     * @param shares Shares burned by sender
     * @param amount0Min Revert if resulting amount0 is smaller than this
     * @param amount1Min Revert if resulting amount1 is smaller than this
     * @param to Recipient of tokens
     * @return amount0 Amount of token0 sent to recipient
     * @return amount1 Amount of token1 sent to recipient
     */
    function withdraw(
        uint256 shares,
        uint256 amount0Min,
        uint256 amount1Min,
        address to
    ) external override nonReentrant returns (uint256 amount0, uint256 amount1) {
        require(shares > 0, "shares");
        require(to != address(0), "to");

        {
            // Calculate how much liquidity to withdraw
            uint128 baseLiquidity = _liquidityForShares(baseLower, baseUpper, shares);
            uint128 limitLiquidity = _liquidityForShares(limitLower, limitUpper, shares);

            // Withdraw liquidity from Uniswap pool
            (uint256 base0, uint256 base1) =
                _burnLiquidity(baseLower, baseUpper, baseLiquidity, to, false);
            (uint256 limit0, uint256 limit1) =
                _burnLiquidity(limitLower, limitUpper, limitLiquidity, to, false);

            // Transfer out tokens proportional to unused balances
            uint256 unused0 = _withdrawUnused(token0, shares, to);
            uint256 unused1 = _withdrawUnused(token1, shares, to);

            // Sum up total amounts sent to recipient
            amount0 = base0.add(limit0).add(unused0);
            amount1 = base1.add(limit1).add(unused1);
        }

        // Burn shares
        _burn(msg.sender, shares);

        require(amount0 >= amount0Min, "amount0Min");
        require(amount1 >= amount1Min, "amount1Min");
        emit Withdraw(msg.sender, to, shares, amount0, amount1);
    }

    /**
     * @notice Update vault's positions depending on how the price has moved.
     * Reverts if cooldown period after last rebalance hasn't elapsed, or if
     * current price deviates too much from the TWAP, or if current price is
     * too close to boundary.
     */
    function rebalance() external override nonReentrant {
        require(keeper == address(0) || msg.sender == keeper, "keeper");
        require(block.timestamp >= lastUpdate.add(rebalanceCooldown), "cooldown");
        lastUpdate = block.timestamp;

        int24 mid = _mid();
        _checkMid(mid);

        // Withdraw all liquidity and collect all fees from Uniswap pool
        uint128 basePosition = _position(baseLower, baseUpper);
        uint128 limitPosition = _position(limitLower, limitUpper);
        _burnLiquidity(baseLower, baseUpper, basePosition, address(this), true);
        _burnLiquidity(limitLower, limitUpper, limitPosition, address(this), true);

        // Emit event with useful info
        uint256 balance0 = token0.balanceOf(address(this));
        uint256 balance1 = token1.balanceOf(address(this));
        emit Rebalance(mid, balance0, balance1, totalSupply());

        // Update base range and deposit liquidity in Uniswap pool. Base range
        // is symmetric so this order should use up all of one of the tokens.
        (baseLower, baseUpper) = _baseRange(mid);
        uint128 baseLiquidity = _maxDepositable(baseLower, baseUpper);
        _mintLiquidity(baseLower, baseUpper, baseLiquidity, address(this));

        // Calculate limit ranges
        (int24 bidLower, int24 bidUpper) = _bidRange(mid);
        (int24 askLower, int24 askUpper) = _askRange(mid);
        uint128 bidLiquidity = _maxDepositable(bidLower, bidUpper);
        uint128 askLiquidity = _maxDepositable(askLower, askUpper);

        // After base order, should be left with just one token, so place a
        // limit order to sell that token
        if (bidLiquidity > askLiquidity) {
            (limitLower, limitUpper) = (bidLower, bidUpper);
            _mintLiquidity(bidLower, bidUpper, bidLiquidity, address(this));
        } else {
            (limitLower, limitUpper) = (askLower, askUpper);
            _mintLiquidity(askLower, askUpper, askLiquidity, address(this));
        }

        // Assert base and limit ranges aren't the same, otherwise positions
        // would get mixed up
        assert(baseLower != limitLower || baseUpper != limitUpper);
    }

    function _mintLiquidity(
        int24 tickLower,
        int24 tickUpper,
        uint128 liquidity,
        address payer
    ) internal returns (uint256 amount0, uint256 amount1) {
        if (liquidity > 0) {
            (amount0, amount1) = pool.mint(
                address(this),
                tickLower,
                tickUpper,
                liquidity,
                abi.encode(payer)
            );
        }
    }

    /// @param collectAll Whether to also collect all accumulated fees.
    function _burnLiquidity(
        int24 tickLower,
        int24 tickUpper,
        uint128 liquidity,
        address to,
        bool collectAll
    ) internal returns (uint256 amount0, uint256 amount1) {
        if (liquidity > 0) {
            // Burn liquidity
            (uint256 owed0, uint256 owed1) = pool.burn(tickLower, tickUpper, liquidity);

            // Collect amount owed
            uint128 collect0 = collectAll ? type(uint128).max : _uint128Safe(owed0);
            uint128 collect1 = collectAll ? type(uint128).max : _uint128Safe(owed1);
            if (collect0 > 0 || collect1 > 0) {
                (amount0, amount1) = pool.collect(to, tickLower, tickUpper, collect0, collect1);
            }
        }
    }

    /// @dev If vault holds enough unused token balance, transfer in
    /// proportional amount from sender. In general, the unused balance should
    /// be very low, so this transfer wouldn't be triggered.
    function _depositUnused(IERC20 token, uint256 shares) internal returns (uint256 amount) {
        uint256 balance = token.balanceOf(address(this));
        if (balance >= DUST_THRESHOLD) {
            // Add 1 to round up
            amount = balance.mul(shares).div(totalSupply()).add(1);
            token.safeTransferFrom(msg.sender, address(this), amount);
        }
    }

    /// @dev If vault holds enough unused token balance, transfer proportional
    /// amount to sender. In general, the unused balance should be very low, so
    /// this transfer wouldn't be triggered.
    function _withdrawUnused(
        IERC20 token,
        uint256 shares,
        address to
    ) internal returns (uint256 amount) {
        uint256 balance = token.balanceOf(address(this));
        if (balance >= DUST_THRESHOLD) {
            amount = balance.mul(shares).div(totalSupply());
            token.safeTransfer(to, amount);
        }
    }

    /// @dev Convert shares into amount of liquidity. Shouldn't be called
    /// when total supply is 0.
    function _liquidityForShares(
        int24 tickLower,
        int24 tickUpper,
        uint256 shares
    ) internal view returns (uint128) {
        uint256 position = uint256(_position(tickLower, tickUpper));
        return _uint128Safe(position.mul(shares).div(totalSupply()));
    }

    /// @dev Amount of liquidity deposited by vault into Uniswap V3 pool for a
    /// certain range.
    function _position(int24 tickLower, int24 tickUpper)
        internal
        view
        returns (uint128 liquidity)
    {
        bytes32 positionKey = keccak256(abi.encodePacked(address(this), tickLower, tickUpper));
        (liquidity, , , , ) = pool.positions(positionKey);
    }

    /// @dev Maximum liquidity that can deposited in range by vault given
    /// its balances of token0 and token1.
    function _maxDepositable(int24 tickLower, int24 tickUpper) internal view returns (uint128) {
        uint256 balance0 = token0.balanceOf(address(this));
        uint256 balance1 = token1.balanceOf(address(this));
        return _liquidityForAmounts(tickLower, tickUpper, balance0, balance1);
    }

    /// @dev Return lower and upper ticks for the base order. This order is
    /// roughly symmetric around the mid price.
    function _baseRange(int24 mid) internal view returns (int24, int24) {
        int24 midFloor = _floor(mid);
        return (midFloor - baseThreshold, midFloor + tickSpacing + baseThreshold);
    }

    /// @dev Return lower and upper ticks for the bid limit order. This order
    /// sits just below the mid price and helps rebalance closer to 50/50.
    function _bidRange(int24 mid) internal view returns (int24, int24) {
        int24 midFloor = _floor(mid);
        return (midFloor - limitThreshold, midFloor);
    }

    /// @dev Return lower and upper ticks for the ask limit order. This order
    /// sits just above the mid price and helps rebalance closer to 50/50.
    function _askRange(int24 mid) internal view returns (int24, int24) {
        int24 midCeil = _floor(mid) + tickSpacing;
        return (midCeil, midCeil + limitThreshold);
    }

    /// @dev Callback for Uniswap V3 pool.
    function uniswapV3MintCallback(
        uint256 amount0,
        uint256 amount1,
        bytes calldata data
    ) external override {
        require(msg.sender == address(pool));
        address payer = abi.decode(data, (address));

        if (payer == address(this)) {
            if (amount0 > 0) token0.safeTransfer(msg.sender, amount0);
            if (amount1 > 0) token1.safeTransfer(msg.sender, amount1);
        } else {
            if (amount0 > 0) token0.safeTransferFrom(payer, msg.sender, amount0);
            if (amount1 > 0) token1.safeTransferFrom(payer, msg.sender, amount1);
        }
    }

    /**
     * @notice Calculate total holdings of token0 and token1, or how much of
     * each token this vault would hold if it withdrew all its liquidity.
     */
    function getTotalAmounts() external view override returns (uint256 total0, uint256 total1) {
        (, uint256 base0, uint256 base1) = getBasePosition();
        (, uint256 limit0, uint256 limit1) = getLimitPosition();
        total0 = token0.balanceOf(address(this)).add(base0).add(limit0);
        total1 = token1.balanceOf(address(this)).add(base1).add(limit1);
    }

    /**
     * @notice Calculate liquidity and equivalent token amounts of base order.
     */
    function getBasePosition()
        public
        view
        returns (
            uint128 liquidity,
            uint256 amount0,
            uint256 amount1
        )
    {
        liquidity = _position(baseLower, baseUpper);
        (amount0, amount1) = _amountsForLiquidity(baseLower, baseUpper, liquidity);
    }

    /**
     * @notice Calculate liquidity and equivalent token amounts of limit order.
     */
    function getLimitPosition()
        public
        view
        returns (
            uint128 liquidity,
            uint256 amount0,
            uint256 amount1
        )
    {
        liquidity = _position(limitLower, limitUpper);
        (amount0, amount1) = _amountsForLiquidity(limitLower, limitUpper, liquidity);
    }

    /// @dev Wrapper around `getAmountsForLiquidity()` for convenience.
    function _amountsForLiquidity(
        int24 tickLower,
        int24 tickUpper,
        uint128 liquidity
    ) internal view returns (uint256, uint256) {
        (uint160 sqrtRatioX96, , , , , , ) = pool.slot0();
        return
            LiquidityAmounts.getAmountsForLiquidity(
                sqrtRatioX96,
                TickMath.getSqrtRatioAtTick(tickLower),
                TickMath.getSqrtRatioAtTick(tickUpper),
                liquidity
            );
    }

    /// @dev Wrapper around `getLiquidityForAmounts()` for convenience.
    function _liquidityForAmounts(
        int24 tickLower,
        int24 tickUpper,
        uint256 amount0,
        uint256 amount1
    ) internal view returns (uint128) {
        (uint160 sqrtRatioX96, , , , , , ) = pool.slot0();
        return
            LiquidityAmounts.getLiquidityForAmounts(
                sqrtRatioX96,
                TickMath.getSqrtRatioAtTick(tickLower),
                TickMath.getSqrtRatioAtTick(tickUpper),
                amount0,
                amount1
            );
    }

    /// @dev Revert if current price is too close to min or max ticks allowed
    /// by Uniswap, or if it deviates too much from the TWAP. Should be called
    /// whenever base and limit ranges are updated. In practice, prices should
    /// only become this extreme if there's no liquidity in the Uniswap pool.
    function _checkMid(int24 mid) internal view {
        int24 maxThreshold = baseThreshold > limitThreshold ? baseThreshold : limitThreshold;
        require(mid > TickMath.MIN_TICK + maxThreshold + tickSpacing, "price too low");
        require(mid < TickMath.MAX_TICK - maxThreshold - tickSpacing, "price too high");

        // Check TWAP deviation. This check prevents price manipulation before
        // the rebalance and also avoids rebalancing when price has just spiked.
        int24 twap = getTwap();
        int24 deviation = mid > twap ? mid - twap : twap - mid;
        require(deviation <= maxTwapDeviation, "maxTwapDeviation");
    }

    function _checkThreshold(int24 threshold) internal view {
        require(threshold % tickSpacing == 0, "threshold not tick multiple");
        require(threshold < TickMath.MAX_TICK, "threshold too high");
        require(threshold > 0, "threshold not positive");
    }

    /// @dev Round tick down towards negative infinity so that it is a multiple
    /// of `tickSpacing`.
    function _floor(int24 tick) internal view returns (int24) {
        int24 compressed = tick / tickSpacing;
        if (tick < 0 && tick % tickSpacing != 0) compressed--;
        return compressed * tickSpacing;
    }

    /// @dev Get current price from pool
    function _mid() internal view returns (int24 mid) {
        (, mid, , , , , ) = pool.slot0();
    }

    function _uint128Safe(uint256 x) internal pure returns (uint128) {
        assert(x <= type(uint128).max);
        return uint128(x);
    }

    /**
     * @notice Fetch TWAP from Uniswap V3 pool. If `twapDuration` is 0, returns
     * current price.
     */
    function getTwap() public view returns (int24) {
        uint32 _twapDuration = twapDuration;
        if (_twapDuration == 0) {
            return _mid();
        }

        uint32[] memory secondsAgo = new uint32[](2);
        secondsAgo[0] = _twapDuration;
        secondsAgo[1] = 0;

        (int56[] memory tickCumulatives, ) = pool.observe(secondsAgo);
        return int24((tickCumulatives[1] - tickCumulatives[0]) / _twapDuration);
    }

    function setBaseThreshold(int24 _baseThreshold) external onlyGovernance {
        _checkThreshold(_baseThreshold);
        baseThreshold = _baseThreshold;
    }

    function setLimitThreshold(int24 _limitThreshold) external onlyGovernance {
        _checkThreshold(_limitThreshold);
        limitThreshold = _limitThreshold;
    }

    function setMaxTwapDeviation(int24 _maxTwapDeviation) external onlyGovernance {
        require(_maxTwapDeviation >= 0, "maxTwapDeviation");
        maxTwapDeviation = _maxTwapDeviation;
    }

    function setTwapDuration(uint32 _twapDuration) external onlyGovernance {
        twapDuration = _twapDuration;
    }

    function setRebalanceCooldown(uint256 _rebalanceCooldown) external onlyGovernance {
        rebalanceCooldown = _rebalanceCooldown;
    }

    function setMaxTotalSupply(uint256 _maxTotalSupply) external onlyGovernance {
        maxTotalSupply = _maxTotalSupply;
    }

    function setKeeper(address _keeper) external onlyGovernance {
        keeper = _keeper;
    }

    /**
     * @notice Renounce emergency powers.
     */
    function finalize() external onlyGovernance {
        finalized = true;
    }

    /**
     * @notice Transfer tokens to governance in case of emergency. Cannot be
     * called if already finalized.
     */
    function emergencyWithdraw(IERC20 token, uint256 amount) external onlyGovernance {
        require(!finalized, "finalized");
        token.safeTransfer(msg.sender, amount);
    }

    /**
     * @notice Burn liquidity and transfer tokens to governance in case of
     * emergency. Cannot be called if already finalized.
     */
    function emergencyBurn(
        int24 tickLower,
        int24 tickUpper,
        uint128 liquidity
    ) external onlyGovernance {
        require(!finalized, "finalized");
        pool.burn(tickLower, tickUpper, liquidity);
        pool.collect(msg.sender, tickLower, tickUpper, type(uint128).max, type(uint128).max);
    }

    /**
     * @notice Governance address is not updated until the new governance
     * address has called acceptGovernance() to accept this responsibility.
     */
    function setGovernance(address _governance) external onlyGovernance {
        pendingGovernance = _governance;
    }

    /**
     * @notice setGovernance() should be called by the existing governance
     * address prior to calling this function.
     */
    function acceptGovernance() external {
        require(msg.sender == pendingGovernance, "pendingGovernance");
        governance = msg.sender;
    }

    modifier onlyGovernance {
        require(msg.sender == governance, "governance");
        _;
    }
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_pool","type":"address"},{"internalType":"int24","name":"_baseThreshold","type":"int24"},{"internalType":"int24","name":"_limitThreshold","type":"int24"},{"internalType":"int24","name":"_maxTwapDeviation","type":"int24"},{"internalType":"uint32","name":"_twapDuration","type":"uint32"},{"internalType":"uint256","name":"_rebalanceCooldown","type":"uint256"},{"internalType":"uint256","name":"_maxTotalSupply","type":"uint256"}],"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":"sender","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"shares","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount0","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount1","type":"uint256"}],"name":"Deposit","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"int24","name":"tick","type":"int24"},{"indexed":false,"internalType":"uint256","name":"totalAmount0","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"totalAmount1","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"totalSupply","type":"uint256"}],"name":"Rebalance","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":"sender","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"shares","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount0","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount1","type":"uint256"}],"name":"Withdraw","type":"event"},{"inputs":[],"name":"DUST_THRESHOLD","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MIN_TOTAL_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"acceptGovernance","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":[{"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":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseLower","outputs":[{"internalType":"int24","name":"","type":"int24"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseThreshold","outputs":[{"internalType":"int24","name":"","type":"int24"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseUpper","outputs":[{"internalType":"int24","name":"","type":"int24"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"subtractedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"shares","type":"uint256"},{"internalType":"uint256","name":"amount0Max","type":"uint256"},{"internalType":"uint256","name":"amount1Max","type":"uint256"},{"internalType":"address","name":"to","type":"address"}],"name":"deposit","outputs":[{"internalType":"uint256","name":"amount0","type":"uint256"},{"internalType":"uint256","name":"amount1","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"int24","name":"tickLower","type":"int24"},{"internalType":"int24","name":"tickUpper","type":"int24"},{"internalType":"uint128","name":"liquidity","type":"uint128"}],"name":"emergencyBurn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"token","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"emergencyWithdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"fee","outputs":[{"internalType":"uint24","name":"","type":"uint24"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"finalize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"finalized","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getBasePosition","outputs":[{"internalType":"uint128","name":"liquidity","type":"uint128"},{"internalType":"uint256","name":"amount0","type":"uint256"},{"internalType":"uint256","name":"amount1","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getLimitPosition","outputs":[{"internalType":"uint128","name":"liquidity","type":"uint128"},{"internalType":"uint256","name":"amount0","type":"uint256"},{"internalType":"uint256","name":"amount1","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getTotalAmounts","outputs":[{"internalType":"uint256","name":"total0","type":"uint256"},{"internalType":"uint256","name":"total1","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getTwap","outputs":[{"internalType":"int24","name":"","type":"int24"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"governance","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"keeper","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lastUpdate","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"limitLower","outputs":[{"internalType":"int24","name":"","type":"int24"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"limitThreshold","outputs":[{"internalType":"int24","name":"","type":"int24"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"limitUpper","outputs":[{"internalType":"int24","name":"","type":"int24"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxTotalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxTwapDeviation","outputs":[{"internalType":"int24","name":"","type":"int24"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pendingGovernance","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pool","outputs":[{"internalType":"contract IUniswapV3Pool","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rebalance","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"rebalanceCooldown","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"int24","name":"_baseThreshold","type":"int24"}],"name":"setBaseThreshold","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_governance","type":"address"}],"name":"setGovernance","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_keeper","type":"address"}],"name":"setKeeper","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"int24","name":"_limitThreshold","type":"int24"}],"name":"setLimitThreshold","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_maxTotalSupply","type":"uint256"}],"name":"setMaxTotalSupply","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"int24","name":"_maxTwapDeviation","type":"int24"}],"name":"setMaxTwapDeviation","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_rebalanceCooldown","type":"uint256"}],"name":"setRebalanceCooldown","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint32","name":"_twapDuration","type":"uint32"}],"name":"setTwapDuration","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tickSpacing","outputs":[{"internalType":"int24","name":"","type":"int24"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"token0","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"token1","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"twapDuration","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount0","type":"uint256"},{"internalType":"uint256","name":"amount1","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"uniswapV3MintCallback","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"shares","type":"uint256"},{"internalType":"uint256","name":"amount0Min","type":"uint256"},{"internalType":"uint256","name":"amount1Min","type":"uint256"},{"internalType":"address","name":"to","type":"address"}],"name":"withdraw","outputs":[{"internalType":"uint256","name":"amount0","type":"uint256"},{"internalType":"uint256","name":"amount1","type":"uint256"}],"stateMutability":"nonpayable","type":"function"}]

60806040523480156200001157600080fd5b5060405162004f4d38038062004f4d833981810160405260e08110156200003757600080fd5b5080516020808301516040808501516060860151608087015160a088015160c09098015184518086018652600b81526a105b1c1a184815985d5b1d60aa1b8189019081528651808801909752600287526120ab60f11b9887019890985280519899969894979396929592949193909291620000b59160039162000bb3565b508051620000cb90600490602084019062000bb3565b50506005805460ff19166012179055506001600655600780546001600160a01b03808a166001600160a01b0319909216919091179182905560408051630dfe168160e01b815290519290911691630dfe168191600480820192602092909190829003018186803b1580156200013f57600080fd5b505afa15801562000154573d6000803e3d6000fd5b505050506040513d60208110156200016b57600080fd5b5051600880546001600160a01b0319166001600160a01b039283161790556007546040805163d21220a760e01b81529051919092169163d21220a7916004808301926020929190829003018186803b158015620001c757600080fd5b505afa158015620001dc573d6000803e3d6000fd5b505050506040513d6020811015620001f357600080fd5b5051600980546001600160a01b0319166001600160a01b039283161790556007546040805163ddca3f4360e01b81529051919092169163ddca3f43916004808301926020929190829003018186803b1580156200024f57600080fd5b505afa15801562000264573d6000803e3d6000fd5b505050506040513d60208110156200027b57600080fd5b50516009805462ffffff909216600160a01b0262ffffff60a01b19909216919091179055600754604080516334324e9f60e21b815290516001600160a01b039092169163d0c93a7c91600480820192602092909190829003018186803b158015620002e557600080fd5b505afa158015620002fa573d6000803e3d6000fd5b505050506040513d60208110156200031157600080fd5b50516009805462ffffff60b81b1916600160b81b600293840b62ffffff908116919091029190911762ffffff60d01b1916600160d01b8a850b831602176001600160e81b0316600160e81b89850b83160217909155600a805462ffffff19169287900b9091169190911766ffffffff0000001916630100000063ffffffff861602179055600b829055600c819055600d80546001600160601b0316336c01000000000000000000000000021790556000620003cb620004de565b9050620003d8816200055a565b620003e387620006ef565b620003ee86620006ef565b60008560020b12156200043b576040805162461bcd60e51b815260206004820152601060248201526f36b0bc2a3bb0b82232bb34b0ba34b7b760811b604482015290519081900360640190fd5b620004468162000810565b600d8054600293840b62ffffff90811662ffffff199490950b1663010000000265ffffff000000199091161791909116919091179055620004878162000849565b600d8054600293840b62ffffff90811666010000000000000262ffffff60301b199490950b1669010000000000000000000262ffffff60481b1990911617919091169190911790555062000c5f9650505050505050565b60075460408051633850c7bd60e01b815290516000926001600160a01b031691633850c7bd9160048083019260e0929190829003018186803b1580156200052457600080fd5b505afa15801562000539573d6000803e3d6000fd5b505050506040513d60e08110156200055057600080fd5b5060200151919050565b600954600090600160e81b8104600290810b810b600160d01b909204810b900b136200059357600954600160e81b900460020b620005a1565b600954600160d01b900460020b5b9050600960179054906101000a900460020b81620d89e719010160020b8260020b1362000605576040805162461bcd60e51b815260206004820152600d60248201526c707269636520746f6f206c6f7760981b604482015290519081900360640190fd5b600954600160b81b9004600290810b620d89e883900303810b9083900b1262000666576040805162461bcd60e51b815260206004820152600e60248201526d0e0e4d2c6ca40e8dede40d0d2ced60931b604482015290519081900360640190fd5b60006200067262000871565b905060008160020b8460020b136200068d5783820362000691565b8184035b600a54909150600290810b810b9082900b1315620006e9576040805162461bcd60e51b815260206004820152601060248201526f36b0bc2a3bb0b82232bb34b0ba34b7b760811b604482015290519081900360640190fd5b50505050565b600954600160b81b9004600290810b810b9082900b816200070c57fe5b0760020b1562000763576040805162461bcd60e51b815260206004820152601b60248201527f7468726573686f6c64206e6f74207469636b206d756c7469706c650000000000604482015290519081900360640190fd5b620d89e8600282900b12620007b4576040805162461bcd60e51b81526020600482015260126024820152710e8d0e4cae6d0ded8c840e8dede40d0d2ced60731b604482015290519081900360640190fd5b60008160020b136200080d576040805162461bcd60e51b815260206004820152601660248201527f7468726573686f6c64206e6f7420706f73697469766500000000000000000000604482015290519081900360640190fd5b50565b600080806200081f8462000b3c565b600954600160d01b8104600290810b8084039650600160b81b909204900b90910101915050915091565b60008080620008588462000b3c565b600954600160e81b900460020b81039350915050915091565b600a546000906301000000900463ffffffff16806200089d5762000894620004de565b91505062000b39565b6040805160028082526060820183526000926020830190803683370190505090508181600081518110620008cd57fe5b602002602001019063ffffffff16908163ffffffff1681525050600081600181518110620008f757fe5b63ffffffff90921660209283029190910182015260075460405163883bdbfd60e01b8152600481018381528451602483015284516000946001600160a01b039094169363883bdbfd93879392839260449092019185810191028083838b5b838110156200096f57818101518382015260200162000955565b505050509050019250505060006040518083038186803b1580156200099357600080fd5b505afa158015620009a8573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040908152811015620009d257600080fd5b8101908080516040519392919084640100000000821115620009f357600080fd5b90830190602082018581111562000a0957600080fd5b825186602082028301116401000000008211171562000a2757600080fd5b82525081516020918201928201910280838360005b8381101562000a5657818101518382015260200162000a3c565b505050509050016040526020018051604051939291908464010000000082111562000a8057600080fd5b90830190602082018581111562000a9657600080fd5b825186602082028301116401000000008211171562000ab457600080fd5b82525081516020918201928201910280838360005b8381101562000ae357818101518382015260200162000ac9565b505050509050016040525050505090508263ffffffff168160008151811062000b0857fe5b60200260200101518260018151811062000b1e57fe5b60200260200101510360060b8162000b3257fe5b0593505050505b90565b600080600960179054906101000a900460020b60020b8360020b8162000b5e57fe5b05905060008360020b12801562000b945750600954600160b81b9004600290810b810b9084900b8162000b8d57fe5b0760020b15155b1562000b9f57600019015b600954600160b81b900460020b0292915050565b828054600181600116156101000203166002900490600052602060002090601f01602090048101928262000beb576000855562000c36565b82601f1062000c0657805160ff191683800117855562000c36565b8280016001018555821562000c36579182015b8281111562000c3657825182559160200191906001019062000c19565b5062000c4492915062000c48565b5090565b5b8082111562000c44576000815560010162000c49565b6142de8062000c6f6000396000f3fe608060405234801561001057600080fd5b50600436106103275760003560e01c806395d89b41116101b8578063c433c80a11610104578063dd62ed3e116100a2578063e7c7cb911161007c578063e7c7cb91146108c7578063f39c38a0146108cf578063fa082743146108d7578063fad3cc4b146108df57610327565b8063dd62ed3e14610879578063dd7dc9a91461054e578063ddca3f43146108a757610327565b8063d21220a7116100de578063d21220a7146107b7578063d2eabcfc146107bf578063d331bef7146107c7578063d3487997146107ff57610327565b8063c433c80a1461076b578063c4a7761e1461078e578063d0c93a7c146107af57610327565b8063ab033ea911610171578063af7944801161014b578063af79448014610733578063b3de272d14610753578063b3f05b971461075b578063c04637111461076357610327565b8063ab033ea9146106cb578063abbffcb9146106f1578063aced16611461072b57610327565b806395d89b4114610613578063a049de6b1461061b578063a457c2d71461064b578063a632935514610677578063a87bab9c14610697578063a9059cbb1461069f57610327565b80633cbff3fe116102775780635d752a9a116102305780637d7c2a1c1161020a5780637d7c2a1c146105ba57806381ca52cf146105c2578063888a9134146105df57806395ccea67146105e757610327565b80635d752a9a1461056657806370a082311461056e578063748747e61461059457610327565b80633cbff3fe146105095780633f3e4c11146105295780634bb278f3146105465780635122c4091461054e57806351e87af7146105565780635aa6e6751461055e57610327565b806318160ddd116102e457806326d89545116102be57806326d89545146104965780632ab4d052146104b7578063313ce567146104bf57806339509351146104dd57610327565b806318160ddd1461043c578063238efcbc1461045657806323b872dd1461046057610327565b806306fdde031461032c578063095ea7b3146103a95780630dfe1681146103e95780630f35bcac1461040d57806316c3e29d1461042c57806316f0115b14610434575b600080fd5b610334610917565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561036e578181015183820152602001610356565b50505050905090810190601f16801561039b5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6103d5600480360360408110156103bf57600080fd5b506001600160a01b0381351690602001356109ae565b604080519115158252519081900360200190f35b6103f16109cc565b604080516001600160a01b039092168252519081900360200190f35b6104156109db565b6040805160029290920b8252519081900360200190f35b6104156109eb565b6103f16109fb565b610444610a0a565b60408051918252519081900360200190f35b61045e610a10565b005b6103d56004803603606081101561047657600080fd5b506001600160a01b03813581169160208101359091169060400135610a81565b61049e610b09565b6040805163ffffffff9092168252519081900360200190f35b610444610b1c565b6104c7610b22565b6040805160ff9092168252519081900360200190f35b6103d5600480360360408110156104f357600080fd5b506001600160a01b038135169060200135610b2b565b61045e6004803603602081101561051f57600080fd5b503560020b610b79565b61045e6004803603602081101561053f57600080fd5b5035610c37565b61045e610c8f565b610444610cf7565b610415610cfd565b6103f1610d0d565b610415610d23565b6104446004803603602081101561058457600080fd5b50356001600160a01b0316610fd1565b61045e600480360360208110156105aa57600080fd5b50356001600160a01b0316610ff0565b61045e611065565b61045e600480360360208110156105d857600080fd5b503561152e565b610415611586565b61045e600480360360408110156105fd57600080fd5b506001600160a01b038135169060200135611596565b61033461164c565b6106236116ad565b604080516001600160801b039094168452602084019290925282820152519081900360600190f35b6103d56004803603604081101561066157600080fd5b506001600160a01b038135169060200135611706565b61045e6004803603602081101561068d57600080fd5b503560020b61176e565b6104156117f2565b6103d5600480360360408110156106b557600080fd5b506001600160a01b038135169060200135611802565b61045e600480360360208110156106e157600080fd5b50356001600160a01b0316611816565b61045e6004803603606081101561070757600080fd5b508035600290810b91602081013590910b90604001356001600160801b031661188b565b6103f1611a5b565b61045e6004803603602081101561074957600080fd5b503560020b611a6a565b610444611aee565b6103d5611af4565b610444611b04565b61045e6004803603602081101561078157600080fd5b503563ffffffff16611b0a565b610796611b83565b6040805192835260208301919091528051918290030190f35b610415611c99565b6103f1611ca9565b610623611cb8565b610796600480360360808110156107dd57600080fd5b50803590602081013590604081013590606001356001600160a01b0316611cf9565b61045e6004803603606081101561081557600080fd5b813591602081013591810190606081016040820135600160201b81111561083b57600080fd5b82018360208201111561084d57600080fd5b803590602001918460018302840111600160201b8311171561086e57600080fd5b509092509050611fc2565b6104446004803603604081101561088f57600080fd5b506001600160a01b038135811691602001351661207b565b6108af6120a6565b6040805162ffffff9092168252519081900360200190f35b6104156120b8565b6103f16120c1565b6104156120d0565b610796600480360360808110156108f557600080fd5b50803590602081013590604081013590606001356001600160a01b03166120d9565b60038054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156109a35780601f10610978576101008083540402835291602001916109a3565b820191906000526020600020905b81548152906001019060200180831161098657829003601f168201915b505050505090505b90565b60006109c26109bb612497565b848461249b565b5060015b92915050565b6008546001600160a01b031681565b600d54600160481b900460020b81565b600954600160e81b900460020b81565b6007546001600160a01b031681565b60025490565b600e546001600160a01b03163314610a63576040805162461bcd60e51b815260206004820152601160248201527070656e64696e67476f7665726e616e636560781b604482015290519081900360640190fd5b600d80546bffffffffffffffffffffffff1633600160601b02179055565b6000610a8e848484612587565b610afe84610a9a612497565b610af9856040518060600160405280602881526020016141c8602891396001600160a01b038a16600090815260016020526040812090610ad8612497565b6001600160a01b0316815260208101919091526040016000205491906126e2565b61249b565b5060015b9392505050565b600a546301000000900463ffffffff1681565b600c5481565b60055460ff1690565b60006109c2610b38612497565b84610af98560016000610b49612497565b6001600160a01b03908116825260208083019390935260409182016000908120918c168152925290205490612779565b600d54600160601b90046001600160a01b03163314610bcc576040805162461bcd60e51b815260206004820152600a602482015269676f7665726e616e636560b01b604482015290519081900360640190fd5b60008160020b1215610c18576040805162461bcd60e51b815260206004820152601060248201526f36b0bc2a3bb0b82232bb34b0ba34b7b760811b604482015290519081900360640190fd5b600a805460029290920b62ffffff1662ffffff19909216919091179055565b600d54600160601b90046001600160a01b03163314610c8a576040805162461bcd60e51b815260206004820152600a602482015269676f7665726e616e636560b01b604482015290519081900360640190fd5b600c55565b600d54600160601b90046001600160a01b03163314610ce2576040805162461bcd60e51b815260206004820152600a602482015269676f7665726e616e636560b01b604482015290519081900360640190fd5b600e805460ff60a01b1916600160a01b179055565b6103e881565b600d54600160301b900460020b81565b600d54600160601b90046001600160a01b031681565b600a546000906301000000900463ffffffff1680610d4b57610d436127d3565b9150506109ab565b6040805160028082526060820183526000926020830190803683370190505090508181600081518110610d7a57fe5b602002602001019063ffffffff16908163ffffffff1681525050600081600181518110610da357fe5b63ffffffff90921660209283029190910182015260075460405163883bdbfd60e01b8152600481018381528451602483015284516000946001600160a01b039094169363883bdbfd93879392839260449092019185810191028083838b5b83811015610e19578181015183820152602001610e01565b505050509050019250505060006040518083038186803b158015610e3c57600080fd5b505afa158015610e50573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040908152811015610e7957600080fd5b8101908080516040519392919084600160201b821115610e9857600080fd5b908301906020820185811115610ead57600080fd5b82518660208202830111600160201b82111715610ec957600080fd5b82525081516020918201928201910280838360005b83811015610ef6578181015183820152602001610ede565b5050505090500160405260200180516040519392919084600160201b821115610f1e57600080fd5b908301906020820185811115610f3357600080fd5b82518660208202830111600160201b82111715610f4f57600080fd5b82525081516020918201928201910280838360005b83811015610f7c578181015183820152602001610f64565b505050509050016040525050505090508263ffffffff1681600081518110610fa057fe5b602002602001015182600181518110610fb557fe5b60200260200101510360060b81610fc857fe5b05935050505090565b6001600160a01b0381166000908152602081905260409020545b919050565b600d54600160601b90046001600160a01b03163314611043576040805162461bcd60e51b815260206004820152600a602482015269676f7665726e616e636560b01b604482015290519081900360640190fd5b600f80546001600160a01b0319166001600160a01b0392909216919091179055565b600260065414156110bd576040805162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015290519081900360640190fd5b6002600655600f546001600160a01b031615806110e45750600f546001600160a01b031633145b61111e576040805162461bcd60e51b815260206004820152600660248201526535b2b2b832b960d11b604482015290519081900360640190fd5b600b5460105461112d91612779565b42101561116c576040805162461bcd60e51b815260206004820152600860248201526731b7b7b63237bbb760c11b604482015290519081900360640190fd5b42601055600061117a6127d3565b90506111858161284c565b600d546000906111a390600281810b9163010000009004900b6129d8565b600d549091506000906111cb90600160301b8104600290810b91600160481b9004900b6129d8565b600d549091506111ed90600281810b9163010000009004900b84306001612a9b565b5050600d5461121590600160301b8104600290810b91600160481b9004900b83306001612a9b565b5050600854604080516370a0823160e01b815230600482015290516000926001600160a01b0316916370a08231916024808301926020929190829003018186803b15801561126257600080fd5b505afa158015611276573d6000803e3d6000fd5b505050506040513d602081101561128c57600080fd5b5051600954604080516370a0823160e01b815230600482015290519293506000926001600160a01b03909216916370a0823191602480820192602092909190829003018186803b1580156112df57600080fd5b505afa1580156112f3573d6000803e3d6000fd5b505050506040513d602081101561130957600080fd5b505190507fc73adb760e747dc4ed7b1c9e0c0cd134b745cd3e73f971c94f1a35ddfe47343c858383611339610a0a565b6040805160029590950b85526020850193909352838301919091526060830152519081900360800190a161136c85612c79565b600d805465ffffff00000019166301000000600293840b62ffffff90811682029290921762ffffff191694840b9190911693909317908190556000926113bb9282810b9291909104900b612cb1565b600d549091506113db90600281810b9163010000009004900b8330612dc1565b50506000806113e988612f12565b915091506000806113f98a612f39565b9150915060006114098585612cb1565b905060006114178484612cb1565b9050806001600160801b0316826001600160801b0316111561148757600d8054600288810b62ffffff908116600160301b0268ffffff00000000000019928a900b909116600160481b0262ffffff60481b19909316929092171617905561148086868430612dc1565b50506114d7565b600d8054600286810b62ffffff908116600160301b0268ffffff000000000000199288900b909116600160481b0262ffffff60481b1990931692909217161790556114d484848330612dc1565b50505b600d54600281810b810b600160301b909204810b900b1415806115155750600d5463010000008104600290810b810b600160481b909204810b900b14155b61151b57fe5b5050600160065550505050505050505050565b600d54600160601b90046001600160a01b03163314611581576040805162461bcd60e51b815260206004820152600a602482015269676f7665726e616e636560b01b604482015290519081900360640190fd5b600b55565b600d546301000000900460020b81565b600d54600160601b90046001600160a01b031633146115e9576040805162461bcd60e51b815260206004820152600a602482015269676f7665726e616e636560b01b604482015290519081900360640190fd5b600e54600160a01b900460ff1615611634576040805162461bcd60e51b8152602060048201526009602482015268199a5b985b1a5e995960ba1b604482015290519081900360640190fd5b6116486001600160a01b0383163383612f71565b5050565b60048054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156109a35780601f10610978576101008083540402835291602001916109a3565b600d54600090819081906116d690600160301b8104600290810b91600160481b9004900b6129d8565b600d549093506116fc90600160301b8104600290810b91600160481b9004900b85612fc8565b9394909392509050565b60006109c2611713612497565b84610af985604051806060016040528060258152602001614284602591396001600061173d612497565b6001600160a01b03908116825260208083019390935260409182016000908120918d168152925290205491906126e2565b600d54600160601b90046001600160a01b031633146117c1576040805162461bcd60e51b815260206004820152600a602482015269676f7665726e616e636560b01b604482015290519081900360640190fd5b6117ca81613072565b6009805460029290920b62ffffff16600160d01b0262ffffff60d01b19909216919091179055565b600954600160d01b900460020b81565b60006109c261180f612497565b8484612587565b600d54600160601b90046001600160a01b03163314611869576040805162461bcd60e51b815260206004820152600a602482015269676f7665726e616e636560b01b604482015290519081900360640190fd5b600e80546001600160a01b0319166001600160a01b0392909216919091179055565b600d54600160601b90046001600160a01b031633146118de576040805162461bcd60e51b815260206004820152600a602482015269676f7665726e616e636560b01b604482015290519081900360640190fd5b600e54600160a01b900460ff1615611929576040805162461bcd60e51b8152602060048201526009602482015268199a5b985b1a5e995960ba1b604482015290519081900360640190fd5b6007546040805163a34123a760e01b8152600286810b600483015285900b60248201526001600160801b038416604482015281516001600160a01b039093169263a34123a7926064808401939192918290030181600087803b15801561198e57600080fd5b505af11580156119a2573d6000803e3d6000fd5b505050506040513d60408110156119b857600080fd5b5050600754604080516309e3d67b60e31b8152336004820152600286810b602483015285900b60448201526001600160801b0360648201819052608482015281516001600160a01b0390931692634f1eb3d89260a4808401939192918290030181600087803b158015611a2a57600080fd5b505af1158015611a3e573d6000803e3d6000fd5b505050506040513d6040811015611a5457600080fd5b5050505050565b600f546001600160a01b031681565b600d54600160601b90046001600160a01b03163314611abd576040805162461bcd60e51b815260206004820152600a602482015269676f7665726e616e636560b01b604482015290519081900360640190fd5b611ac681613072565b6009805460029290920b62ffffff16600160e81b026001600160e81b03909216919091179055565b600b5481565b600e54600160a01b900460ff1681565b60105481565b600d54600160601b90046001600160a01b03163314611b5d576040805162461bcd60e51b815260206004820152600a602482015269676f7665726e616e636560b01b604482015290519081900360640190fd5b600a805463ffffffff90921663010000000266ffffffff00000019909216919091179055565b600080600080611b91611cb8565b9250925050600080611ba16116ad565b600854604080516370a0823160e01b81523060048201529051939650919450611c3593508592611c2f9289926001600160a01b0316916370a0823191602480820192602092909190829003018186803b158015611bfd57600080fd5b505afa158015611c11573d6000803e3d6000fd5b505050506040513d6020811015611c2757600080fd5b505190612779565b90612779565b600954604080516370a0823160e01b81523060048201529051929850611c8f928492611c2f9288926001600160a01b03909216916370a0823191602480820192602092909190829003018186803b158015611bfd57600080fd5b9450505050509091565b600954600160b81b900460020b81565b6009546001600160a01b031681565b600d5460009081908190611cda90600281810b9163010000009004900b6129d8565b600d549093506116fc90600281810b9163010000009004900b85612fc8565b60008060026006541415611d54576040805162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015290519081900360640190fd5b600260065585611d94576040805162461bcd60e51b815260206004820152600660248201526573686172657360d01b604482015290519081900360640190fd5b6001600160a01b038316611dd4576040805162461bcd60e51b8152602060048201526002602482015261746f60f01b604482015290519081900360640190fd5b600d54600090611df390600281810b9163010000009004900b89613188565b600d54909150600090611e1c90600160301b8104600290810b91600160481b9004900b8a613188565b600d549091506000908190611e4290600281810b9163010000009004900b868a85612a9b565b600d5491935091506000908190611e7190600160301b8104600290810b91600160481b9004900b878c85612a9b565b6008549193509150600090611e90906001600160a01b03168e8c6131c3565b600954909150600090611ead906001600160a01b03168f8d6131c3565b9050611ebd82611c2f8887612779565b9950611ecd81611c2f8786612779565b98505050505050505050611ee1338761327d565b84821015611f23576040805162461bcd60e51b815260206004820152600a60248201526930b6b7bab73a1826b4b760b11b604482015290519081900360640190fd5b83811015611f65576040805162461bcd60e51b815260206004820152600a60248201526930b6b7bab73a18a6b4b760b11b604482015290519081900360640190fd5b604080518781526020810184905280820183905290516001600160a01b0385169133917febff2602b3f468259e1e99f613fed6691f3a6526effe6ef3e768ba7ae7a36c4f9181900360600190a36001600655909590945092505050565b6007546001600160a01b03163314611fd957600080fd5b600082826020811015611feb57600080fd5b50356001600160a01b031690503081141561203f57841561201d5760085461201d906001600160a01b03163387612f71565b831561203a5760095461203a906001600160a01b03163386612f71565b611a54565b841561205d5760085461205d906001600160a01b0316823388613379565b8315611a5457600954611a54906001600160a01b0316823387613379565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b600954600160a01b900462ffffff1681565b600a5460020b81565b600e546001600160a01b031681565b600d5460020b81565b60008060026006541415612134576040805162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015290519081900360640190fd5b600260065585612174576040805162461bcd60e51b815260206004820152600660248201526573686172657360d01b604482015290519081900360640190fd5b6001600160a01b0383166121b4576040805162461bcd60e51b8152602060048201526002602482015261746f60f01b604482015290519081900360640190fd5b6121bc610a0a565b61225257600d546121e590600281810b9163010000009004900b6121df896133d3565b33612dc1565b90925090506103e88611612233576040805162461bcd60e51b815260206004820152601060248201526f4d494e5f544f54414c5f535550504c5960801b604482015290519081900360640190fd5b61223f306103e86133ea565b61224b866103e86134da565b9550612352565b600d5460009061227190600281810b9163010000009004900b89613188565b600d5490915060009061229a90600160301b8104600290810b91600160481b9004900b8a613188565b600d5490915060009081906122bf90600281810b9163010000009004900b8633612dc1565b600d54919350915060009081906122ed90600160301b8104600290810b91600160481b9004900b8733612dc1565b600854919350915060009061230b906001600160a01b03168e613537565b600954909150600090612327906001600160a01b03168f613537565b905061233782611c2f8887612779565b995061234781611c2f8786612779565b985050505050505050505b61235c83876133ea565b8482111561239e576040805162461bcd60e51b815260206004820152600a6024820152690c2dadeeadce8609ac2f60b31b604482015290519081900360640190fd5b838111156123e0576040805162461bcd60e51b815260206004820152600a6024820152690c2dadeeadce8629ac2f60b31b604482015290519081900360640190fd5b604080518781526020810184905280820183905290516001600160a01b0385169133917f4e2ca0515ed1aef1395f66b5303bb5d6f1bf9d61a353fa53f73f8ac9973fa9f69181900360600190a3600c5415806124455750600c54612442610a0a565b11155b612487576040805162461bcd60e51b815260206004820152600e60248201526d6d6178546f74616c537570706c7960901b604482015290519081900360640190fd5b6001600655909590945092505050565b3390565b6001600160a01b0383166124e05760405162461bcd60e51b81526004018080602001828103825260248152602001806142366024913960400191505060405180910390fd5b6001600160a01b0382166125255760405162461bcd60e51b81526004018080602001828103825260228152602001806141396022913960400191505060405180910390fd5b6001600160a01b03808416600081815260016020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b6001600160a01b0383166125cc5760405162461bcd60e51b81526004018080602001828103825260258152602001806142116025913960400191505060405180910390fd5b6001600160a01b0382166126115760405162461bcd60e51b81526004018080602001828103825260238152602001806140f46023913960400191505060405180910390fd5b61261c838383612fc3565b6126598160405180606001604052806026815260200161415b602691396001600160a01b03861660009081526020819052604090205491906126e2565b6001600160a01b0380851660009081526020819052604080822093909355908416815220546126889082612779565b6001600160a01b038084166000818152602081815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3505050565b600081848411156127715760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561273657818101518382015260200161271e565b50505050905090810190601f1680156127635780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b600082820183811015610b02576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b60075460408051633850c7bd60e01b815290516000926001600160a01b031691633850c7bd9160048083019260e0929190829003018186803b15801561281857600080fd5b505afa15801561282c573d6000803e3d6000fd5b505050506040513d60e081101561284257600080fd5b5060200151919050565b600954600090600160e81b8104600290810b810b600160d01b909204810b900b1361288357600954600160e81b900460020b612891565b600954600160d01b900460020b5b9050600960179054906101000a900460020b81620d89e719010160020b8260020b136128f4576040805162461bcd60e51b815260206004820152600d60248201526c707269636520746f6f206c6f7760981b604482015290519081900360640190fd5b600954600160b81b9004600290810b620d89e883900303810b9083900b12612954576040805162461bcd60e51b815260206004820152600e60248201526d0e0e4d2c6ca40e8dede40d0d2ced60931b604482015290519081900360640190fd5b600061295e610d23565b905060008160020b8460020b136129775783820361297b565b8184035b600a54909150600290810b810b9082900b13156129d2576040805162461bcd60e51b815260206004820152601060248201526f36b0bc2a3bb0b82232bb34b0ba34b7b760811b604482015290519081900360640190fd5b50505050565b604080513060601b602080830191909152600285810b60e890811b60348501529085900b901b60378301528251808303601a018152603a83018085528151919092012060075463514ea4bf60e01b909252603e83018190529251600093926001600160a01b039092169163514ea4bf91605e8083019260a0929190829003018186803b158015612a6757600080fd5b505afa158015612a7b573d6000803e3d6000fd5b505050506040513d60a0811015612a9157600080fd5b5051949350505050565b6000806001600160801b03851615612c6f576007546040805163a34123a760e01b815260028a810b600483015289900b60248201526001600160801b0388166044820152815160009384936001600160a01b039091169263a34123a7926064808301939282900301818787803b158015612b1457600080fd5b505af1158015612b28573d6000803e3d6000fd5b505050506040513d6040811015612b3e57600080fd5b5080516020909101519092509050600085612b6157612b5c836133d3565b612b6a565b6001600160801b035b9050600086612b8157612b7c836133d3565b612b8a565b6001600160801b035b90506000826001600160801b03161180612bad57506000816001600160801b0316115b15612c6a57600754604080516309e3d67b60e31b81526001600160a01b038b8116600483015260028f810b60248401528e900b60448301526001600160801b038087166064840152851660848301528251931692634f1eb3d89260a4808401939192918290030181600087803b158015612c2657600080fd5b505af1158015612c3a573d6000803e3d6000fd5b505050506040513d6040811015612c5057600080fd5b5080516020909101516001600160801b0391821697501694505b505050505b9550959350505050565b6000806000612c87846135f6565b600954600160d01b8104600290810b8084039650600160b81b909204900b90910101915050915091565b600854604080516370a0823160e01b8152306004820152905160009283926001600160a01b03909116916370a0823191602480820192602092909190829003018186803b158015612d0157600080fd5b505afa158015612d15573d6000803e3d6000fd5b505050506040513d6020811015612d2b57600080fd5b5051600954604080516370a0823160e01b815230600482015290519293506000926001600160a01b03909216916370a0823191602480820192602092909190829003018186803b158015612d7e57600080fd5b505afa158015612d92573d6000803e3d6000fd5b505050506040513d6020811015612da857600080fd5b50519050612db885858484613669565b95945050505050565b6000806001600160801b03841615612f0957600754604080516001600160a01b0386811660208084019190915283518084038201815283850194859052633c8a7d8d60e01b909452306044840181815260028d810b60648701528c900b60848601526001600160801b038b1660a486015260a060c48601908152865160e487015286519490971696633c8a7d8d9692958e958e958e9594939261010401919085019080838360005b83811015612e81578181015183820152602001612e69565b50505050905090810190601f168015612eae5780820380516001836020036101000a031916815260200191505b5096505050505050506040805180830381600087803b158015612ed057600080fd5b505af1158015612ee4573d6000803e3d6000fd5b505050506040513d6040811015612efa57600080fd5b50805160209091015190925090505b94509492505050565b6000806000612f20846135f6565b600954600160e81b900460020b81039350915050915091565b60095460009081908190600160b81b900460020b612f56856135f6565b60095491019350600160e81b900460020b8301915050915091565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052612fc390849061370f565b505050565b6000806000600760009054906101000a90046001600160a01b03166001600160a01b0316633850c7bd6040518163ffffffff1660e01b815260040160e06040518083038186803b15801561301b57600080fd5b505afa15801561302f573d6000803e3d6000fd5b505050506040513d60e081101561304557600080fd5b5051905061306581613056886137c0565b61305f886137c0565b87613af1565b9250925050935093915050565b600954600160b81b9004600290810b810b9082900b8161308e57fe5b0760020b156130e4576040805162461bcd60e51b815260206004820152601b60248201527f7468726573686f6c64206e6f74207469636b206d756c7469706c650000000000604482015290519081900360640190fd5b620d89e8600282900b12613134576040805162461bcd60e51b81526020600482015260126024820152710e8d0e4cae6d0ded8c840e8dede40d0d2ced60731b604482015290519081900360640190fd5b60008160020b13613185576040805162461bcd60e51b81526020600482015260166024820152757468726573686f6c64206e6f7420706f73697469766560501b604482015290519081900360640190fd5b50565b60008061319585856129d8565b6001600160801b03169050612db86131be6131ae610a0a565b6131b88487613b8c565b90613be5565b6133d3565b600080846001600160a01b03166370a08231306040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b15801561321357600080fd5b505afa158015613227573d6000803e3d6000fd5b505050506040513d602081101561323d57600080fd5b505190506103e881106132755761325f613255610a0a565b6131b88387613b8c565b91506132756001600160a01b0386168484612f71565b509392505050565b6001600160a01b0382166132c25760405162461bcd60e51b81526004018080602001828103825260218152602001806141f06021913960400191505060405180910390fd5b6132ce82600083612fc3565b61330b81604051806060016040528060228152602001614117602291396001600160a01b03851660009081526020819052604090205491906126e2565b6001600160a01b03831660009081526020819052604090205560025461333190826134da565b6002556040805182815290516000916001600160a01b038516917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9181900360200190a35050565b604080516001600160a01b0380861660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b1790526129d290859061370f565b60006001600160801b038211156133e657fe5b5090565b6001600160a01b038216613445576040805162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015290519081900360640190fd5b61345160008383612fc3565b60025461345e9082612779565b6002556001600160a01b0382166000908152602081905260409020546134849082612779565b6001600160a01b0383166000818152602081815260408083209490945583518581529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35050565b600082821115613531576040805162461bcd60e51b815260206004820152601e60248201527f536166654d6174683a207375627472616374696f6e206f766572666c6f770000604482015290519081900360640190fd5b50900390565b600080836001600160a01b03166370a08231306040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b15801561358757600080fd5b505afa15801561359b573d6000803e3d6000fd5b505050506040513d60208110156135b157600080fd5b505190506103e881106135ef576135d86001611c2f6135ce610a0a565b6131b88588613b8c565b91506135ef6001600160a01b038516333085613379565b5092915050565b600080600960179054906101000a900460020b60020b8360020b8161361757fe5b05905060008360020b12801561364b5750600954600160b81b9004600290810b810b9084900b8161364457fe5b0760020b15155b1561365557600019015b600954600160b81b900460020b0292915050565b600080600760009054906101000a90046001600160a01b03166001600160a01b0316633850c7bd6040518163ffffffff1660e01b815260040160e06040518083038186803b1580156136ba57600080fd5b505afa1580156136ce573d6000803e3d6000fd5b505050506040513d60e08110156136e457600080fd5b50519050613705816136f5886137c0565b6136fe886137c0565b8787613c4c565b9695505050505050565b6000613764826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316613d049092919063ffffffff16565b805190915015612fc35780806020019051602081101561378357600080fd5b5051612fc35760405162461bcd60e51b815260040180806020018281038252602a81526020018061425a602a913960400191505060405180910390fd5b60008060008360020b126137d7578260020b6137df565b8260020b6000035b9050620d89e881111561381d576040805162461bcd60e51b81526020600482015260016024820152601560fa1b604482015290519081900360640190fd5b60006001821661383157600160801b613843565b6ffffcb933bd6fad37aa2d162d1a5940015b70ffffffffffffffffffffffffffffffffff1690506002821615613877576ffff97272373d413259a46990580e213a0260801c5b6004821615613896576ffff2e50f5f656932ef12357cf3c7fdcc0260801c5b60088216156138b5576fffe5caca7e10e4e61c3624eaa0941cd00260801c5b60108216156138d4576fffcb9843d60f6159c9db58835c9266440260801c5b60208216156138f3576fff973b41fa98c081472e6896dfb254c00260801c5b6040821615613912576fff2ea16466c96a3843ec78b326b528610260801c5b6080821615613931576ffe5dee046a99a2a811c461f1969c30530260801c5b610100821615613951576ffcbe86c7900a88aedcffc83b479aa3a40260801c5b610200821615613971576ff987a7253ac413176f2b074cf7815e540260801c5b610400821615613991576ff3392b0822b70005940c7a398e4b70f30260801c5b6108008216156139b1576fe7159475a2c29b7443b29c7fa6e889d90260801c5b6110008216156139d1576fd097f3bdfd2022b8845ad8f792aa58250260801c5b6120008216156139f1576fa9f746462d870fdf8a65dc1f90e061e50260801c5b614000821615613a11576f70d869a156d2a1b890bb3df62baf32f70260801c5b618000821615613a31576f31be135f97d08fd981231505542fcfa60260801c5b62010000821615613a52576f09aa508b5b7a84e1c677de54f3e99bc90260801c5b62020000821615613a72576e5d6af8dedb81196699c329225ee6040260801c5b62040000821615613a91576d2216e584f5fa1ea926041bedfe980260801c5b62080000821615613aae576b048a170391f7dc42444e8fa20260801c5b60008460020b1315613ac9578060001981613ac557fe5b0490505b600160201b810615613adc576001613adf565b60005b60ff16602082901c0192505050919050565b600080836001600160a01b0316856001600160a01b03161115613b12579293925b846001600160a01b0316866001600160a01b031611613b3d57613b36858585613d1b565b9150612f09565b836001600160a01b0316866001600160a01b03161015613b7657613b62868585613d1b565b9150613b6f858785613d84565b9050612f09565b613b81858585613d84565b905094509492505050565b600082613b9b575060006109c6565b82820282848281613ba857fe5b0414610b025760405162461bcd60e51b81526004018080602001828103825260218152602001806141a76021913960400191505060405180910390fd5b6000808211613c3b576040805162461bcd60e51b815260206004820152601a60248201527f536166654d6174683a206469766973696f6e206279207a65726f000000000000604482015290519081900360640190fd5b818381613c4457fe5b049392505050565b6000836001600160a01b0316856001600160a01b03161115613c6c579293925b846001600160a01b0316866001600160a01b031611613c9757613c90858585613dc7565b9050612db8565b836001600160a01b0316866001600160a01b03161015613cf9576000613cbe878686613dc7565b90506000613ccd878986613e2a565b9050806001600160801b0316826001600160801b031610613cee5780613cf0565b815b92505050612db8565b613705858584613e2a565b6060613d138484600085613e67565b949350505050565b6000826001600160a01b0316846001600160a01b03161115613d3b579192915b836001600160a01b0316613d74606060ff16846001600160801b0316901b8686036001600160a01b0316866001600160a01b0316613fc2565b81613d7b57fe5b04949350505050565b6000826001600160a01b0316846001600160a01b03161115613da4579192915b613d13826001600160801b03168585036001600160a01b0316600160601b613fc2565b6000826001600160a01b0316846001600160a01b03161115613de7579192915b6000613e0a856001600160a01b0316856001600160a01b0316600160601b613fc2565b9050612db8613e2584838888036001600160a01b0316613fc2565b614071565b6000826001600160a01b0316846001600160a01b03161115613e4a579192915b613d13613e2583600160601b8787036001600160a01b0316613fc2565b606082471015613ea85760405162461bcd60e51b81526004018080602001828103825260268152602001806141816026913960400191505060405180910390fd5b613eb185614087565b613f02576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b600080866001600160a01b031685876040518082805190602001908083835b60208310613f405780518252601f199092019160209182019101613f21565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114613fa2576040519150601f19603f3d011682016040523d82523d6000602084013e613fa7565b606091505b5091509150613fb782828661408d565b979650505050505050565b6000808060001985870986860292508281109083900303905080613ff85760008411613fed57600080fd5b508290049050610b02565b80841161400457600080fd5b6000848688096000868103871696879004966002600389028118808a02820302808a02820302808a02820302808a02820302808a02820302808a02909103029181900381900460010186841190950394909402919094039290920491909117919091029150509392505050565b806001600160801b0381168114610feb57600080fd5b3b151590565b6060831561409c575081610b02565b8251156140ac5782518084602001fd5b60405162461bcd60e51b815260206004820181815284516024840152845185939192839260440191908501908083836000831561273657818101518382015260200161271e56fe45524332303a207472616e7366657220746f20746865207a65726f206164647265737345524332303a206275726e20616d6f756e7420657863656564732062616c616e636545524332303a20617070726f766520746f20746865207a65726f206164647265737345524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e6365416464726573733a20696e73756666696369656e742062616c616e636520666f722063616c6c536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f7745524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e636545524332303a206275726e2066726f6d20746865207a65726f206164647265737345524332303a207472616e736665722066726f6d20746865207a65726f206164647265737345524332303a20617070726f76652066726f6d20746865207a65726f20616464726573735361666545524332303a204552433230206f7065726174696f6e20646964206e6f74207375636365656445524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa2646970667358221220c6dd6d52d6497c0af2336c8345160ea8507ac02c48e7bcf2ca8aaa638fe7bc0e64736f6c634300070600330000000000000000000000008ad599c3a0ff1de082011efddc58f1908eb6e6d800000000000000000000000000000000000000000000000000000000000007080000000000000000000000000000000000000000000000000000000000000258000000000000000000000000000000000000000000000000000000000000006400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000e10000000000000000000000000000000000000000000000000016345785d8a0000

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106103275760003560e01c806395d89b41116101b8578063c433c80a11610104578063dd62ed3e116100a2578063e7c7cb911161007c578063e7c7cb91146108c7578063f39c38a0146108cf578063fa082743146108d7578063fad3cc4b146108df57610327565b8063dd62ed3e14610879578063dd7dc9a91461054e578063ddca3f43146108a757610327565b8063d21220a7116100de578063d21220a7146107b7578063d2eabcfc146107bf578063d331bef7146107c7578063d3487997146107ff57610327565b8063c433c80a1461076b578063c4a7761e1461078e578063d0c93a7c146107af57610327565b8063ab033ea911610171578063af7944801161014b578063af79448014610733578063b3de272d14610753578063b3f05b971461075b578063c04637111461076357610327565b8063ab033ea9146106cb578063abbffcb9146106f1578063aced16611461072b57610327565b806395d89b4114610613578063a049de6b1461061b578063a457c2d71461064b578063a632935514610677578063a87bab9c14610697578063a9059cbb1461069f57610327565b80633cbff3fe116102775780635d752a9a116102305780637d7c2a1c1161020a5780637d7c2a1c146105ba57806381ca52cf146105c2578063888a9134146105df57806395ccea67146105e757610327565b80635d752a9a1461056657806370a082311461056e578063748747e61461059457610327565b80633cbff3fe146105095780633f3e4c11146105295780634bb278f3146105465780635122c4091461054e57806351e87af7146105565780635aa6e6751461055e57610327565b806318160ddd116102e457806326d89545116102be57806326d89545146104965780632ab4d052146104b7578063313ce567146104bf57806339509351146104dd57610327565b806318160ddd1461043c578063238efcbc1461045657806323b872dd1461046057610327565b806306fdde031461032c578063095ea7b3146103a95780630dfe1681146103e95780630f35bcac1461040d57806316c3e29d1461042c57806316f0115b14610434575b600080fd5b610334610917565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561036e578181015183820152602001610356565b50505050905090810190601f16801561039b5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6103d5600480360360408110156103bf57600080fd5b506001600160a01b0381351690602001356109ae565b604080519115158252519081900360200190f35b6103f16109cc565b604080516001600160a01b039092168252519081900360200190f35b6104156109db565b6040805160029290920b8252519081900360200190f35b6104156109eb565b6103f16109fb565b610444610a0a565b60408051918252519081900360200190f35b61045e610a10565b005b6103d56004803603606081101561047657600080fd5b506001600160a01b03813581169160208101359091169060400135610a81565b61049e610b09565b6040805163ffffffff9092168252519081900360200190f35b610444610b1c565b6104c7610b22565b6040805160ff9092168252519081900360200190f35b6103d5600480360360408110156104f357600080fd5b506001600160a01b038135169060200135610b2b565b61045e6004803603602081101561051f57600080fd5b503560020b610b79565b61045e6004803603602081101561053f57600080fd5b5035610c37565b61045e610c8f565b610444610cf7565b610415610cfd565b6103f1610d0d565b610415610d23565b6104446004803603602081101561058457600080fd5b50356001600160a01b0316610fd1565b61045e600480360360208110156105aa57600080fd5b50356001600160a01b0316610ff0565b61045e611065565b61045e600480360360208110156105d857600080fd5b503561152e565b610415611586565b61045e600480360360408110156105fd57600080fd5b506001600160a01b038135169060200135611596565b61033461164c565b6106236116ad565b604080516001600160801b039094168452602084019290925282820152519081900360600190f35b6103d56004803603604081101561066157600080fd5b506001600160a01b038135169060200135611706565b61045e6004803603602081101561068d57600080fd5b503560020b61176e565b6104156117f2565b6103d5600480360360408110156106b557600080fd5b506001600160a01b038135169060200135611802565b61045e600480360360208110156106e157600080fd5b50356001600160a01b0316611816565b61045e6004803603606081101561070757600080fd5b508035600290810b91602081013590910b90604001356001600160801b031661188b565b6103f1611a5b565b61045e6004803603602081101561074957600080fd5b503560020b611a6a565b610444611aee565b6103d5611af4565b610444611b04565b61045e6004803603602081101561078157600080fd5b503563ffffffff16611b0a565b610796611b83565b6040805192835260208301919091528051918290030190f35b610415611c99565b6103f1611ca9565b610623611cb8565b610796600480360360808110156107dd57600080fd5b50803590602081013590604081013590606001356001600160a01b0316611cf9565b61045e6004803603606081101561081557600080fd5b813591602081013591810190606081016040820135600160201b81111561083b57600080fd5b82018360208201111561084d57600080fd5b803590602001918460018302840111600160201b8311171561086e57600080fd5b509092509050611fc2565b6104446004803603604081101561088f57600080fd5b506001600160a01b038135811691602001351661207b565b6108af6120a6565b6040805162ffffff9092168252519081900360200190f35b6104156120b8565b6103f16120c1565b6104156120d0565b610796600480360360808110156108f557600080fd5b50803590602081013590604081013590606001356001600160a01b03166120d9565b60038054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156109a35780601f10610978576101008083540402835291602001916109a3565b820191906000526020600020905b81548152906001019060200180831161098657829003601f168201915b505050505090505b90565b60006109c26109bb612497565b848461249b565b5060015b92915050565b6008546001600160a01b031681565b600d54600160481b900460020b81565b600954600160e81b900460020b81565b6007546001600160a01b031681565b60025490565b600e546001600160a01b03163314610a63576040805162461bcd60e51b815260206004820152601160248201527070656e64696e67476f7665726e616e636560781b604482015290519081900360640190fd5b600d80546bffffffffffffffffffffffff1633600160601b02179055565b6000610a8e848484612587565b610afe84610a9a612497565b610af9856040518060600160405280602881526020016141c8602891396001600160a01b038a16600090815260016020526040812090610ad8612497565b6001600160a01b0316815260208101919091526040016000205491906126e2565b61249b565b5060015b9392505050565b600a546301000000900463ffffffff1681565b600c5481565b60055460ff1690565b60006109c2610b38612497565b84610af98560016000610b49612497565b6001600160a01b03908116825260208083019390935260409182016000908120918c168152925290205490612779565b600d54600160601b90046001600160a01b03163314610bcc576040805162461bcd60e51b815260206004820152600a602482015269676f7665726e616e636560b01b604482015290519081900360640190fd5b60008160020b1215610c18576040805162461bcd60e51b815260206004820152601060248201526f36b0bc2a3bb0b82232bb34b0ba34b7b760811b604482015290519081900360640190fd5b600a805460029290920b62ffffff1662ffffff19909216919091179055565b600d54600160601b90046001600160a01b03163314610c8a576040805162461bcd60e51b815260206004820152600a602482015269676f7665726e616e636560b01b604482015290519081900360640190fd5b600c55565b600d54600160601b90046001600160a01b03163314610ce2576040805162461bcd60e51b815260206004820152600a602482015269676f7665726e616e636560b01b604482015290519081900360640190fd5b600e805460ff60a01b1916600160a01b179055565b6103e881565b600d54600160301b900460020b81565b600d54600160601b90046001600160a01b031681565b600a546000906301000000900463ffffffff1680610d4b57610d436127d3565b9150506109ab565b6040805160028082526060820183526000926020830190803683370190505090508181600081518110610d7a57fe5b602002602001019063ffffffff16908163ffffffff1681525050600081600181518110610da357fe5b63ffffffff90921660209283029190910182015260075460405163883bdbfd60e01b8152600481018381528451602483015284516000946001600160a01b039094169363883bdbfd93879392839260449092019185810191028083838b5b83811015610e19578181015183820152602001610e01565b505050509050019250505060006040518083038186803b158015610e3c57600080fd5b505afa158015610e50573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040908152811015610e7957600080fd5b8101908080516040519392919084600160201b821115610e9857600080fd5b908301906020820185811115610ead57600080fd5b82518660208202830111600160201b82111715610ec957600080fd5b82525081516020918201928201910280838360005b83811015610ef6578181015183820152602001610ede565b5050505090500160405260200180516040519392919084600160201b821115610f1e57600080fd5b908301906020820185811115610f3357600080fd5b82518660208202830111600160201b82111715610f4f57600080fd5b82525081516020918201928201910280838360005b83811015610f7c578181015183820152602001610f64565b505050509050016040525050505090508263ffffffff1681600081518110610fa057fe5b602002602001015182600181518110610fb557fe5b60200260200101510360060b81610fc857fe5b05935050505090565b6001600160a01b0381166000908152602081905260409020545b919050565b600d54600160601b90046001600160a01b03163314611043576040805162461bcd60e51b815260206004820152600a602482015269676f7665726e616e636560b01b604482015290519081900360640190fd5b600f80546001600160a01b0319166001600160a01b0392909216919091179055565b600260065414156110bd576040805162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015290519081900360640190fd5b6002600655600f546001600160a01b031615806110e45750600f546001600160a01b031633145b61111e576040805162461bcd60e51b815260206004820152600660248201526535b2b2b832b960d11b604482015290519081900360640190fd5b600b5460105461112d91612779565b42101561116c576040805162461bcd60e51b815260206004820152600860248201526731b7b7b63237bbb760c11b604482015290519081900360640190fd5b42601055600061117a6127d3565b90506111858161284c565b600d546000906111a390600281810b9163010000009004900b6129d8565b600d549091506000906111cb90600160301b8104600290810b91600160481b9004900b6129d8565b600d549091506111ed90600281810b9163010000009004900b84306001612a9b565b5050600d5461121590600160301b8104600290810b91600160481b9004900b83306001612a9b565b5050600854604080516370a0823160e01b815230600482015290516000926001600160a01b0316916370a08231916024808301926020929190829003018186803b15801561126257600080fd5b505afa158015611276573d6000803e3d6000fd5b505050506040513d602081101561128c57600080fd5b5051600954604080516370a0823160e01b815230600482015290519293506000926001600160a01b03909216916370a0823191602480820192602092909190829003018186803b1580156112df57600080fd5b505afa1580156112f3573d6000803e3d6000fd5b505050506040513d602081101561130957600080fd5b505190507fc73adb760e747dc4ed7b1c9e0c0cd134b745cd3e73f971c94f1a35ddfe47343c858383611339610a0a565b6040805160029590950b85526020850193909352838301919091526060830152519081900360800190a161136c85612c79565b600d805465ffffff00000019166301000000600293840b62ffffff90811682029290921762ffffff191694840b9190911693909317908190556000926113bb9282810b9291909104900b612cb1565b600d549091506113db90600281810b9163010000009004900b8330612dc1565b50506000806113e988612f12565b915091506000806113f98a612f39565b9150915060006114098585612cb1565b905060006114178484612cb1565b9050806001600160801b0316826001600160801b0316111561148757600d8054600288810b62ffffff908116600160301b0268ffffff00000000000019928a900b909116600160481b0262ffffff60481b19909316929092171617905561148086868430612dc1565b50506114d7565b600d8054600286810b62ffffff908116600160301b0268ffffff000000000000199288900b909116600160481b0262ffffff60481b1990931692909217161790556114d484848330612dc1565b50505b600d54600281810b810b600160301b909204810b900b1415806115155750600d5463010000008104600290810b810b600160481b909204810b900b14155b61151b57fe5b5050600160065550505050505050505050565b600d54600160601b90046001600160a01b03163314611581576040805162461bcd60e51b815260206004820152600a602482015269676f7665726e616e636560b01b604482015290519081900360640190fd5b600b55565b600d546301000000900460020b81565b600d54600160601b90046001600160a01b031633146115e9576040805162461bcd60e51b815260206004820152600a602482015269676f7665726e616e636560b01b604482015290519081900360640190fd5b600e54600160a01b900460ff1615611634576040805162461bcd60e51b8152602060048201526009602482015268199a5b985b1a5e995960ba1b604482015290519081900360640190fd5b6116486001600160a01b0383163383612f71565b5050565b60048054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156109a35780601f10610978576101008083540402835291602001916109a3565b600d54600090819081906116d690600160301b8104600290810b91600160481b9004900b6129d8565b600d549093506116fc90600160301b8104600290810b91600160481b9004900b85612fc8565b9394909392509050565b60006109c2611713612497565b84610af985604051806060016040528060258152602001614284602591396001600061173d612497565b6001600160a01b03908116825260208083019390935260409182016000908120918d168152925290205491906126e2565b600d54600160601b90046001600160a01b031633146117c1576040805162461bcd60e51b815260206004820152600a602482015269676f7665726e616e636560b01b604482015290519081900360640190fd5b6117ca81613072565b6009805460029290920b62ffffff16600160d01b0262ffffff60d01b19909216919091179055565b600954600160d01b900460020b81565b60006109c261180f612497565b8484612587565b600d54600160601b90046001600160a01b03163314611869576040805162461bcd60e51b815260206004820152600a602482015269676f7665726e616e636560b01b604482015290519081900360640190fd5b600e80546001600160a01b0319166001600160a01b0392909216919091179055565b600d54600160601b90046001600160a01b031633146118de576040805162461bcd60e51b815260206004820152600a602482015269676f7665726e616e636560b01b604482015290519081900360640190fd5b600e54600160a01b900460ff1615611929576040805162461bcd60e51b8152602060048201526009602482015268199a5b985b1a5e995960ba1b604482015290519081900360640190fd5b6007546040805163a34123a760e01b8152600286810b600483015285900b60248201526001600160801b038416604482015281516001600160a01b039093169263a34123a7926064808401939192918290030181600087803b15801561198e57600080fd5b505af11580156119a2573d6000803e3d6000fd5b505050506040513d60408110156119b857600080fd5b5050600754604080516309e3d67b60e31b8152336004820152600286810b602483015285900b60448201526001600160801b0360648201819052608482015281516001600160a01b0390931692634f1eb3d89260a4808401939192918290030181600087803b158015611a2a57600080fd5b505af1158015611a3e573d6000803e3d6000fd5b505050506040513d6040811015611a5457600080fd5b5050505050565b600f546001600160a01b031681565b600d54600160601b90046001600160a01b03163314611abd576040805162461bcd60e51b815260206004820152600a602482015269676f7665726e616e636560b01b604482015290519081900360640190fd5b611ac681613072565b6009805460029290920b62ffffff16600160e81b026001600160e81b03909216919091179055565b600b5481565b600e54600160a01b900460ff1681565b60105481565b600d54600160601b90046001600160a01b03163314611b5d576040805162461bcd60e51b815260206004820152600a602482015269676f7665726e616e636560b01b604482015290519081900360640190fd5b600a805463ffffffff90921663010000000266ffffffff00000019909216919091179055565b600080600080611b91611cb8565b9250925050600080611ba16116ad565b600854604080516370a0823160e01b81523060048201529051939650919450611c3593508592611c2f9289926001600160a01b0316916370a0823191602480820192602092909190829003018186803b158015611bfd57600080fd5b505afa158015611c11573d6000803e3d6000fd5b505050506040513d6020811015611c2757600080fd5b505190612779565b90612779565b600954604080516370a0823160e01b81523060048201529051929850611c8f928492611c2f9288926001600160a01b03909216916370a0823191602480820192602092909190829003018186803b158015611bfd57600080fd5b9450505050509091565b600954600160b81b900460020b81565b6009546001600160a01b031681565b600d5460009081908190611cda90600281810b9163010000009004900b6129d8565b600d549093506116fc90600281810b9163010000009004900b85612fc8565b60008060026006541415611d54576040805162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015290519081900360640190fd5b600260065585611d94576040805162461bcd60e51b815260206004820152600660248201526573686172657360d01b604482015290519081900360640190fd5b6001600160a01b038316611dd4576040805162461bcd60e51b8152602060048201526002602482015261746f60f01b604482015290519081900360640190fd5b600d54600090611df390600281810b9163010000009004900b89613188565b600d54909150600090611e1c90600160301b8104600290810b91600160481b9004900b8a613188565b600d549091506000908190611e4290600281810b9163010000009004900b868a85612a9b565b600d5491935091506000908190611e7190600160301b8104600290810b91600160481b9004900b878c85612a9b565b6008549193509150600090611e90906001600160a01b03168e8c6131c3565b600954909150600090611ead906001600160a01b03168f8d6131c3565b9050611ebd82611c2f8887612779565b9950611ecd81611c2f8786612779565b98505050505050505050611ee1338761327d565b84821015611f23576040805162461bcd60e51b815260206004820152600a60248201526930b6b7bab73a1826b4b760b11b604482015290519081900360640190fd5b83811015611f65576040805162461bcd60e51b815260206004820152600a60248201526930b6b7bab73a18a6b4b760b11b604482015290519081900360640190fd5b604080518781526020810184905280820183905290516001600160a01b0385169133917febff2602b3f468259e1e99f613fed6691f3a6526effe6ef3e768ba7ae7a36c4f9181900360600190a36001600655909590945092505050565b6007546001600160a01b03163314611fd957600080fd5b600082826020811015611feb57600080fd5b50356001600160a01b031690503081141561203f57841561201d5760085461201d906001600160a01b03163387612f71565b831561203a5760095461203a906001600160a01b03163386612f71565b611a54565b841561205d5760085461205d906001600160a01b0316823388613379565b8315611a5457600954611a54906001600160a01b0316823387613379565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b600954600160a01b900462ffffff1681565b600a5460020b81565b600e546001600160a01b031681565b600d5460020b81565b60008060026006541415612134576040805162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015290519081900360640190fd5b600260065585612174576040805162461bcd60e51b815260206004820152600660248201526573686172657360d01b604482015290519081900360640190fd5b6001600160a01b0383166121b4576040805162461bcd60e51b8152602060048201526002602482015261746f60f01b604482015290519081900360640190fd5b6121bc610a0a565b61225257600d546121e590600281810b9163010000009004900b6121df896133d3565b33612dc1565b90925090506103e88611612233576040805162461bcd60e51b815260206004820152601060248201526f4d494e5f544f54414c5f535550504c5960801b604482015290519081900360640190fd5b61223f306103e86133ea565b61224b866103e86134da565b9550612352565b600d5460009061227190600281810b9163010000009004900b89613188565b600d5490915060009061229a90600160301b8104600290810b91600160481b9004900b8a613188565b600d5490915060009081906122bf90600281810b9163010000009004900b8633612dc1565b600d54919350915060009081906122ed90600160301b8104600290810b91600160481b9004900b8733612dc1565b600854919350915060009061230b906001600160a01b03168e613537565b600954909150600090612327906001600160a01b03168f613537565b905061233782611c2f8887612779565b995061234781611c2f8786612779565b985050505050505050505b61235c83876133ea565b8482111561239e576040805162461bcd60e51b815260206004820152600a6024820152690c2dadeeadce8609ac2f60b31b604482015290519081900360640190fd5b838111156123e0576040805162461bcd60e51b815260206004820152600a6024820152690c2dadeeadce8629ac2f60b31b604482015290519081900360640190fd5b604080518781526020810184905280820183905290516001600160a01b0385169133917f4e2ca0515ed1aef1395f66b5303bb5d6f1bf9d61a353fa53f73f8ac9973fa9f69181900360600190a3600c5415806124455750600c54612442610a0a565b11155b612487576040805162461bcd60e51b815260206004820152600e60248201526d6d6178546f74616c537570706c7960901b604482015290519081900360640190fd5b6001600655909590945092505050565b3390565b6001600160a01b0383166124e05760405162461bcd60e51b81526004018080602001828103825260248152602001806142366024913960400191505060405180910390fd5b6001600160a01b0382166125255760405162461bcd60e51b81526004018080602001828103825260228152602001806141396022913960400191505060405180910390fd5b6001600160a01b03808416600081815260016020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b6001600160a01b0383166125cc5760405162461bcd60e51b81526004018080602001828103825260258152602001806142116025913960400191505060405180910390fd5b6001600160a01b0382166126115760405162461bcd60e51b81526004018080602001828103825260238152602001806140f46023913960400191505060405180910390fd5b61261c838383612fc3565b6126598160405180606001604052806026815260200161415b602691396001600160a01b03861660009081526020819052604090205491906126e2565b6001600160a01b0380851660009081526020819052604080822093909355908416815220546126889082612779565b6001600160a01b038084166000818152602081815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3505050565b600081848411156127715760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561273657818101518382015260200161271e565b50505050905090810190601f1680156127635780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b600082820183811015610b02576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b60075460408051633850c7bd60e01b815290516000926001600160a01b031691633850c7bd9160048083019260e0929190829003018186803b15801561281857600080fd5b505afa15801561282c573d6000803e3d6000fd5b505050506040513d60e081101561284257600080fd5b5060200151919050565b600954600090600160e81b8104600290810b810b600160d01b909204810b900b1361288357600954600160e81b900460020b612891565b600954600160d01b900460020b5b9050600960179054906101000a900460020b81620d89e719010160020b8260020b136128f4576040805162461bcd60e51b815260206004820152600d60248201526c707269636520746f6f206c6f7760981b604482015290519081900360640190fd5b600954600160b81b9004600290810b620d89e883900303810b9083900b12612954576040805162461bcd60e51b815260206004820152600e60248201526d0e0e4d2c6ca40e8dede40d0d2ced60931b604482015290519081900360640190fd5b600061295e610d23565b905060008160020b8460020b136129775783820361297b565b8184035b600a54909150600290810b810b9082900b13156129d2576040805162461bcd60e51b815260206004820152601060248201526f36b0bc2a3bb0b82232bb34b0ba34b7b760811b604482015290519081900360640190fd5b50505050565b604080513060601b602080830191909152600285810b60e890811b60348501529085900b901b60378301528251808303601a018152603a83018085528151919092012060075463514ea4bf60e01b909252603e83018190529251600093926001600160a01b039092169163514ea4bf91605e8083019260a0929190829003018186803b158015612a6757600080fd5b505afa158015612a7b573d6000803e3d6000fd5b505050506040513d60a0811015612a9157600080fd5b5051949350505050565b6000806001600160801b03851615612c6f576007546040805163a34123a760e01b815260028a810b600483015289900b60248201526001600160801b0388166044820152815160009384936001600160a01b039091169263a34123a7926064808301939282900301818787803b158015612b1457600080fd5b505af1158015612b28573d6000803e3d6000fd5b505050506040513d6040811015612b3e57600080fd5b5080516020909101519092509050600085612b6157612b5c836133d3565b612b6a565b6001600160801b035b9050600086612b8157612b7c836133d3565b612b8a565b6001600160801b035b90506000826001600160801b03161180612bad57506000816001600160801b0316115b15612c6a57600754604080516309e3d67b60e31b81526001600160a01b038b8116600483015260028f810b60248401528e900b60448301526001600160801b038087166064840152851660848301528251931692634f1eb3d89260a4808401939192918290030181600087803b158015612c2657600080fd5b505af1158015612c3a573d6000803e3d6000fd5b505050506040513d6040811015612c5057600080fd5b5080516020909101516001600160801b0391821697501694505b505050505b9550959350505050565b6000806000612c87846135f6565b600954600160d01b8104600290810b8084039650600160b81b909204900b90910101915050915091565b600854604080516370a0823160e01b8152306004820152905160009283926001600160a01b03909116916370a0823191602480820192602092909190829003018186803b158015612d0157600080fd5b505afa158015612d15573d6000803e3d6000fd5b505050506040513d6020811015612d2b57600080fd5b5051600954604080516370a0823160e01b815230600482015290519293506000926001600160a01b03909216916370a0823191602480820192602092909190829003018186803b158015612d7e57600080fd5b505afa158015612d92573d6000803e3d6000fd5b505050506040513d6020811015612da857600080fd5b50519050612db885858484613669565b95945050505050565b6000806001600160801b03841615612f0957600754604080516001600160a01b0386811660208084019190915283518084038201815283850194859052633c8a7d8d60e01b909452306044840181815260028d810b60648701528c900b60848601526001600160801b038b1660a486015260a060c48601908152865160e487015286519490971696633c8a7d8d9692958e958e958e9594939261010401919085019080838360005b83811015612e81578181015183820152602001612e69565b50505050905090810190601f168015612eae5780820380516001836020036101000a031916815260200191505b5096505050505050506040805180830381600087803b158015612ed057600080fd5b505af1158015612ee4573d6000803e3d6000fd5b505050506040513d6040811015612efa57600080fd5b50805160209091015190925090505b94509492505050565b6000806000612f20846135f6565b600954600160e81b900460020b81039350915050915091565b60095460009081908190600160b81b900460020b612f56856135f6565b60095491019350600160e81b900460020b8301915050915091565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052612fc390849061370f565b505050565b6000806000600760009054906101000a90046001600160a01b03166001600160a01b0316633850c7bd6040518163ffffffff1660e01b815260040160e06040518083038186803b15801561301b57600080fd5b505afa15801561302f573d6000803e3d6000fd5b505050506040513d60e081101561304557600080fd5b5051905061306581613056886137c0565b61305f886137c0565b87613af1565b9250925050935093915050565b600954600160b81b9004600290810b810b9082900b8161308e57fe5b0760020b156130e4576040805162461bcd60e51b815260206004820152601b60248201527f7468726573686f6c64206e6f74207469636b206d756c7469706c650000000000604482015290519081900360640190fd5b620d89e8600282900b12613134576040805162461bcd60e51b81526020600482015260126024820152710e8d0e4cae6d0ded8c840e8dede40d0d2ced60731b604482015290519081900360640190fd5b60008160020b13613185576040805162461bcd60e51b81526020600482015260166024820152757468726573686f6c64206e6f7420706f73697469766560501b604482015290519081900360640190fd5b50565b60008061319585856129d8565b6001600160801b03169050612db86131be6131ae610a0a565b6131b88487613b8c565b90613be5565b6133d3565b600080846001600160a01b03166370a08231306040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b15801561321357600080fd5b505afa158015613227573d6000803e3d6000fd5b505050506040513d602081101561323d57600080fd5b505190506103e881106132755761325f613255610a0a565b6131b88387613b8c565b91506132756001600160a01b0386168484612f71565b509392505050565b6001600160a01b0382166132c25760405162461bcd60e51b81526004018080602001828103825260218152602001806141f06021913960400191505060405180910390fd5b6132ce82600083612fc3565b61330b81604051806060016040528060228152602001614117602291396001600160a01b03851660009081526020819052604090205491906126e2565b6001600160a01b03831660009081526020819052604090205560025461333190826134da565b6002556040805182815290516000916001600160a01b038516917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9181900360200190a35050565b604080516001600160a01b0380861660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b1790526129d290859061370f565b60006001600160801b038211156133e657fe5b5090565b6001600160a01b038216613445576040805162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015290519081900360640190fd5b61345160008383612fc3565b60025461345e9082612779565b6002556001600160a01b0382166000908152602081905260409020546134849082612779565b6001600160a01b0383166000818152602081815260408083209490945583518581529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35050565b600082821115613531576040805162461bcd60e51b815260206004820152601e60248201527f536166654d6174683a207375627472616374696f6e206f766572666c6f770000604482015290519081900360640190fd5b50900390565b600080836001600160a01b03166370a08231306040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b15801561358757600080fd5b505afa15801561359b573d6000803e3d6000fd5b505050506040513d60208110156135b157600080fd5b505190506103e881106135ef576135d86001611c2f6135ce610a0a565b6131b88588613b8c565b91506135ef6001600160a01b038516333085613379565b5092915050565b600080600960179054906101000a900460020b60020b8360020b8161361757fe5b05905060008360020b12801561364b5750600954600160b81b9004600290810b810b9084900b8161364457fe5b0760020b15155b1561365557600019015b600954600160b81b900460020b0292915050565b600080600760009054906101000a90046001600160a01b03166001600160a01b0316633850c7bd6040518163ffffffff1660e01b815260040160e06040518083038186803b1580156136ba57600080fd5b505afa1580156136ce573d6000803e3d6000fd5b505050506040513d60e08110156136e457600080fd5b50519050613705816136f5886137c0565b6136fe886137c0565b8787613c4c565b9695505050505050565b6000613764826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316613d049092919063ffffffff16565b805190915015612fc35780806020019051602081101561378357600080fd5b5051612fc35760405162461bcd60e51b815260040180806020018281038252602a81526020018061425a602a913960400191505060405180910390fd5b60008060008360020b126137d7578260020b6137df565b8260020b6000035b9050620d89e881111561381d576040805162461bcd60e51b81526020600482015260016024820152601560fa1b604482015290519081900360640190fd5b60006001821661383157600160801b613843565b6ffffcb933bd6fad37aa2d162d1a5940015b70ffffffffffffffffffffffffffffffffff1690506002821615613877576ffff97272373d413259a46990580e213a0260801c5b6004821615613896576ffff2e50f5f656932ef12357cf3c7fdcc0260801c5b60088216156138b5576fffe5caca7e10e4e61c3624eaa0941cd00260801c5b60108216156138d4576fffcb9843d60f6159c9db58835c9266440260801c5b60208216156138f3576fff973b41fa98c081472e6896dfb254c00260801c5b6040821615613912576fff2ea16466c96a3843ec78b326b528610260801c5b6080821615613931576ffe5dee046a99a2a811c461f1969c30530260801c5b610100821615613951576ffcbe86c7900a88aedcffc83b479aa3a40260801c5b610200821615613971576ff987a7253ac413176f2b074cf7815e540260801c5b610400821615613991576ff3392b0822b70005940c7a398e4b70f30260801c5b6108008216156139b1576fe7159475a2c29b7443b29c7fa6e889d90260801c5b6110008216156139d1576fd097f3bdfd2022b8845ad8f792aa58250260801c5b6120008216156139f1576fa9f746462d870fdf8a65dc1f90e061e50260801c5b614000821615613a11576f70d869a156d2a1b890bb3df62baf32f70260801c5b618000821615613a31576f31be135f97d08fd981231505542fcfa60260801c5b62010000821615613a52576f09aa508b5b7a84e1c677de54f3e99bc90260801c5b62020000821615613a72576e5d6af8dedb81196699c329225ee6040260801c5b62040000821615613a91576d2216e584f5fa1ea926041bedfe980260801c5b62080000821615613aae576b048a170391f7dc42444e8fa20260801c5b60008460020b1315613ac9578060001981613ac557fe5b0490505b600160201b810615613adc576001613adf565b60005b60ff16602082901c0192505050919050565b600080836001600160a01b0316856001600160a01b03161115613b12579293925b846001600160a01b0316866001600160a01b031611613b3d57613b36858585613d1b565b9150612f09565b836001600160a01b0316866001600160a01b03161015613b7657613b62868585613d1b565b9150613b6f858785613d84565b9050612f09565b613b81858585613d84565b905094509492505050565b600082613b9b575060006109c6565b82820282848281613ba857fe5b0414610b025760405162461bcd60e51b81526004018080602001828103825260218152602001806141a76021913960400191505060405180910390fd5b6000808211613c3b576040805162461bcd60e51b815260206004820152601a60248201527f536166654d6174683a206469766973696f6e206279207a65726f000000000000604482015290519081900360640190fd5b818381613c4457fe5b049392505050565b6000836001600160a01b0316856001600160a01b03161115613c6c579293925b846001600160a01b0316866001600160a01b031611613c9757613c90858585613dc7565b9050612db8565b836001600160a01b0316866001600160a01b03161015613cf9576000613cbe878686613dc7565b90506000613ccd878986613e2a565b9050806001600160801b0316826001600160801b031610613cee5780613cf0565b815b92505050612db8565b613705858584613e2a565b6060613d138484600085613e67565b949350505050565b6000826001600160a01b0316846001600160a01b03161115613d3b579192915b836001600160a01b0316613d74606060ff16846001600160801b0316901b8686036001600160a01b0316866001600160a01b0316613fc2565b81613d7b57fe5b04949350505050565b6000826001600160a01b0316846001600160a01b03161115613da4579192915b613d13826001600160801b03168585036001600160a01b0316600160601b613fc2565b6000826001600160a01b0316846001600160a01b03161115613de7579192915b6000613e0a856001600160a01b0316856001600160a01b0316600160601b613fc2565b9050612db8613e2584838888036001600160a01b0316613fc2565b614071565b6000826001600160a01b0316846001600160a01b03161115613e4a579192915b613d13613e2583600160601b8787036001600160a01b0316613fc2565b606082471015613ea85760405162461bcd60e51b81526004018080602001828103825260268152602001806141816026913960400191505060405180910390fd5b613eb185614087565b613f02576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b600080866001600160a01b031685876040518082805190602001908083835b60208310613f405780518252601f199092019160209182019101613f21565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114613fa2576040519150601f19603f3d011682016040523d82523d6000602084013e613fa7565b606091505b5091509150613fb782828661408d565b979650505050505050565b6000808060001985870986860292508281109083900303905080613ff85760008411613fed57600080fd5b508290049050610b02565b80841161400457600080fd5b6000848688096000868103871696879004966002600389028118808a02820302808a02820302808a02820302808a02820302808a02820302808a02909103029181900381900460010186841190950394909402919094039290920491909117919091029150509392505050565b806001600160801b0381168114610feb57600080fd5b3b151590565b6060831561409c575081610b02565b8251156140ac5782518084602001fd5b60405162461bcd60e51b815260206004820181815284516024840152845185939192839260440191908501908083836000831561273657818101518382015260200161271e56fe45524332303a207472616e7366657220746f20746865207a65726f206164647265737345524332303a206275726e20616d6f756e7420657863656564732062616c616e636545524332303a20617070726f766520746f20746865207a65726f206164647265737345524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e6365416464726573733a20696e73756666696369656e742062616c616e636520666f722063616c6c536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f7745524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e636545524332303a206275726e2066726f6d20746865207a65726f206164647265737345524332303a207472616e736665722066726f6d20746865207a65726f206164647265737345524332303a20617070726f76652066726f6d20746865207a65726f20616464726573735361666545524332303a204552433230206f7065726174696f6e20646964206e6f74207375636365656445524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa2646970667358221220c6dd6d52d6497c0af2336c8345160ea8507ac02c48e7bcf2ca8aaa638fe7bc0e64736f6c63430007060033

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

0000000000000000000000008ad599c3a0ff1de082011efddc58f1908eb6e6d800000000000000000000000000000000000000000000000000000000000007080000000000000000000000000000000000000000000000000000000000000258000000000000000000000000000000000000000000000000000000000000006400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000e10000000000000000000000000000000000000000000000000016345785d8a0000

-----Decoded View---------------
Arg [0] : _pool (address): 0x8ad599c3A0ff1De082011EFDDc58f1908eb6e6D8
Arg [1] : _baseThreshold (int24): 1800
Arg [2] : _limitThreshold (int24): 600
Arg [3] : _maxTwapDeviation (int24): 100
Arg [4] : _twapDuration (uint32): 0
Arg [5] : _rebalanceCooldown (uint256): 3600
Arg [6] : _maxTotalSupply (uint256): 100000000000000000

-----Encoded View---------------
7 Constructor Arguments found :
Arg [0] : 0000000000000000000000008ad599c3a0ff1de082011efddc58f1908eb6e6d8
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000708
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000258
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000064
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000000
Arg [5] : 0000000000000000000000000000000000000000000000000000000000000e10
Arg [6] : 000000000000000000000000000000000000000000000000016345785d8a0000


Deployed Bytecode Sourcemap

86734:22816:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;71939:91;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;74085:169;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;74085:169:0;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;87039:20;;;:::i;:::-;;;;-1:-1:-1;;;;;87039:20:0;;;;;;;;;;;;;;87451:23;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;87183:27;;;:::i;87006:26::-;;;:::i;73038:108::-;;;:::i;:::-;;;;;;;;;;;;;;;;109286:151;;;:::i;:::-;;74736:321;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;74736:321:0;;;;;;;;;;;;;;;;;:::i;87253:26::-;;;:::i;:::-;;;;;;;;;;;;;;;;;;;87325:29;;;:::i;72882:91::-;;;:::i;:::-;;;;;;;;;;;;;;;;;;;75466:218;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;75466:218:0;;;;;;;;:::i;107171:195::-;;;;;;;;;;;;;;;;-1:-1:-1;107171:195:0;;;;:::i;107647:127::-;;;;;;;;;;;;;;;;-1:-1:-1;107647:127:0;;:::i;107946:79::-;;;:::i;86898:47::-;;;:::i;87421:23::-;;;:::i;87483:25::-;;;:::i;106360:456::-;;;:::i;73209:127::-;;;;;;;;;;;;;;;;-1:-1:-1;73209:127:0;-1:-1:-1;;;;;73209:127:0;;:::i;107782:95::-;;;;;;;;;;;;;;;;-1:-1:-1;107782:95:0;-1:-1:-1;;;;;107782:95:0;;:::i;94100:2229::-;;;:::i;107500:139::-;;;;;;;;;;;;;;;;-1:-1:-1;107500:139:0;;:::i;87392:22::-;;;:::i;108166:181::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;108166:181:0;;;;;;;;:::i;72149:95::-;;;:::i;102825:335::-;;;:::i;:::-;;;;-1:-1:-1;;;;;102825:335:0;;;;;;;;;;;;;;;;;;;;;;;;;76187:269;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;76187:269:0;;;;;;;;:::i;106824:163::-;;;;;;;;;;;;;;;;-1:-1:-1;106824:163:0;;;;:::i;87150:26::-;;;:::i;73549:175::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;73549:175:0;;;;;;;;:::i;109018:118::-;;;;;;;;;;;;;;;;-1:-1:-1;109018:118:0;-1:-1:-1;;;;;109018:118:0;;:::i;108507:333::-;;;;;;;;;;;;;;;;-1:-1:-1;108507:333:0;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;108507:333:0;;:::i;87582:21::-;;;:::i;106995:168::-;;;;;;;;;;;;;;;;-1:-1:-1;106995:168:0;;;;:::i;87286:32::-;;;:::i;87554:21::-;;;:::i;87610:25::-;;;:::i;107374:118::-;;;;;;;;;;;;;;;;-1:-1:-1;107374:118:0;;;;:::i;101906:376::-;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;87117:24;;;:::i;87066:20::-;;;:::i;102388:330::-;;;:::i;92328:1480::-;;;;;;;;;;;;;;;;-1:-1:-1;92328:1480:0;;;;;;;;;;;;;;;;-1:-1:-1;;;;;92328:1480:0;;:::i;101100:627::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;101100:627:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;101100:627:0;;;;;;;;;;-1:-1:-1;101100:627:0;;-1:-1:-1;101100:627:0;-1:-1:-1;101100:627:0;:::i;73787:151::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;73787:151:0;;;;;;;;;;:::i;87093:17::-;;;:::i;:::-;;;;;;;;;;;;;;;;;;;87217:29;;;:::i;87515:32::-;;;:::i;87363:22::-;;;:::i;89650:2229::-;;;;;;;;;;;;;;;;-1:-1:-1;89650:2229:0;;;;;;;;;;;;;;;;-1:-1:-1;;;;;89650:2229:0;;:::i;71939:91::-;72017:5;72010:12;;;;;;;;-1:-1:-1;;72010:12:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;71984:13;;72010:12;;72017:5;;72010:12;;72017:5;72010:12;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;71939:91;;:::o;74085:169::-;74168:4;74185:39;74194:12;:10;:12::i;:::-;74208:7;74217:6;74185:8;:39::i;:::-;-1:-1:-1;74242:4:0;74085:169;;;;;:::o;87039:20::-;;;-1:-1:-1;;;;;87039:20:0;;:::o;87451:23::-;;;-1:-1:-1;;;87451:23:0;;;;;:::o;87183:27::-;;;-1:-1:-1;;;87183:27:0;;;;;:::o;87006:26::-;;;-1:-1:-1;;;;;87006:26:0;;:::o;73038:108::-;73126:12;;73038:108;:::o;109286:151::-;109356:17;;-1:-1:-1;;;;;109356:17:0;109342:10;:31;109334:61;;;;;-1:-1:-1;;;109334:61:0;;;;;;;;;;;;-1:-1:-1;;;109334:61:0;;;;;;;;;;;;;;;109406:10;:23;;;;109419:10;-1:-1:-1;;;109406:23:0;;;;109286:151::o;74736:321::-;74842:4;74859:36;74869:6;74877:9;74888:6;74859:9;:36::i;:::-;74906:121;74915:6;74923:12;:10;:12::i;:::-;74937:89;74975:6;74937:89;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;74937:19:0;;;;;;:11;:19;;;;;;74957:12;:10;:12::i;:::-;-1:-1:-1;;;;;74937:33:0;;;;;;;;;;;;-1:-1:-1;74937:33:0;;;:89;:37;:89::i;:::-;74906:8;:121::i;:::-;-1:-1:-1;75045:4:0;74736:321;;;;;;:::o;87253:26::-;;;;;;;;;:::o;87325:29::-;;;;:::o;72882:91::-;72956:9;;;;72882:91;:::o;75466:218::-;75554:4;75571:83;75580:12;:10;:12::i;:::-;75594:7;75603:50;75642:10;75603:11;:25;75615:12;:10;:12::i;:::-;-1:-1:-1;;;;;75603:25:0;;;;;;;;;;;;;;;;;-1:-1:-1;75603:25:0;;;:34;;;;;;;;;;;:38;:50::i;107171:195::-;109502:10;;-1:-1:-1;;;109502:10:0;;-1:-1:-1;;;;;109502:10:0;109488;:24;109480:47;;;;;-1:-1:-1;;;109480:47:0;;;;;;;;;;;;-1:-1:-1;;;109480:47:0;;;;;;;;;;;;;;;107289:1:::1;107268:17;:22;;;;107260:51;;;::::0;;-1:-1:-1;;;107260:51:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;-1:-1:-1;;;107260:51:0;;;;;;;;;;;;;::::1;;107322:16;:36:::0;;::::1;::::0;;;::::1;;;-1:-1:-1::0;;107322:36:0;;::::1;::::0;;;::::1;::::0;;107171:195::o;107647:127::-;109502:10;;-1:-1:-1;;;109502:10:0;;-1:-1:-1;;;;;109502:10:0;109488;:24;109480:47;;;;;-1:-1:-1;;;109480:47:0;;;;;;;;;;;;-1:-1:-1;;;109480:47:0;;;;;;;;;;;;;;;107734:14:::1;:32:::0;107647:127::o;107946:79::-;109502:10;;-1:-1:-1;;;109502:10:0;;-1:-1:-1;;;;;109502:10:0;109488;:24;109480:47;;;;;-1:-1:-1;;;109480:47:0;;;;;;;;;;;;-1:-1:-1;;;109480:47:0;;;;;;;;;;;;;;;108001:9:::1;:16:::0;;-1:-1:-1;;;;108001:16:0::1;-1:-1:-1::0;;;108001:16:0::1;::::0;;107946:79::o;86898:47::-;86941:4;86898:47;:::o;87421:23::-;;;-1:-1:-1;;;87421:23:0;;;;;:::o;87483:25::-;;;-1:-1:-1;;;87483:25:0;;-1:-1:-1;;;;;87483:25:0;;:::o;106360:456::-;106441:12;;106400:5;;106441:12;;;;;;106464:64;;106510:6;:4;:6::i;:::-;106503:13;;;;;106464:64;106569:15;;;106582:1;106569:15;;;;;;;;106540:26;;106569:15;;;;;;;;;;-1:-1:-1;106569:15:0;106540:44;;106611:13;106595:10;106606:1;106595:13;;;;;;;;;;;;;:29;;;;;;;;;;;106651:1;106635:10;106646:1;106635:13;;;;;;;;:17;;;;:13;;;;;;;;;;:17;106702:4;;:24;;-1:-1:-1;;;106702:24:0;;;;;;;;;;;;;;;;106666:30;;-1:-1:-1;;;;;106702:4:0;;;;:12;;106715:10;;106702:24;;;;;;;;;;;;;;;;106666:30;106702:24;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;106702:24:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;106702:24:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;106702:24:0;;;;;;;;;;;;-1:-1:-1;106702:24:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;106702:24:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;106702:24:0;;;;;;;;;;;;-1:-1:-1;106702:24:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;106665:61;;;106794:13;106750:57;;106772:15;106788:1;106772:18;;;;;;;;;;;;;;106751:15;106767:1;106751:18;;;;;;;;;;;;;;:39;106750:57;;;;;;;;106737:71;;;;;106360:456;:::o;73209:127::-;-1:-1:-1;;;;;73310:18:0;;73283:7;73310:18;;;;;;;;;;;73209:127;;;;:::o;107782:95::-;109502:10;;-1:-1:-1;;;109502:10:0;;-1:-1:-1;;;;;109502:10:0;109488;:24;109480:47;;;;;-1:-1:-1;;;109480:47:0;;;;;;;;;;;;-1:-1:-1;;;109480:47:0;;;;;;;;;;;;;;;107853:6:::1;:16:::0;;-1:-1:-1;;;;;;107853:16:0::1;-1:-1:-1::0;;;;;107853:16:0;;;::::1;::::0;;;::::1;::::0;;107782:95::o;94100:2229::-;14445:1;15051:7;;:19;;15043:63;;;;;-1:-1:-1;;;15043:63:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;14445:1;15184:7;:18;94171:6:::1;::::0;-1:-1:-1;;;;;94171:6:0::1;:20:::0;;:44:::1;;-1:-1:-1::0;94209:6:0::1;::::0;-1:-1:-1;;;;;94209:6:0::1;94195:10;:20;94171:44;94163:63;;;::::0;;-1:-1:-1;;;94163:63:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;-1:-1:-1;;;94163:63:0;;;;;;;;;;;;;::::1;;94279:17;::::0;94264:10:::1;::::0;:33:::1;::::0;:14:::1;:33::i;:::-;94245:15;:52;;94237:73;;;::::0;;-1:-1:-1;;;94237:73:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;-1:-1:-1;;;94237:73:0;;;;;;;;;;;;;::::1;;94334:15;94321:10;:28:::0;94362:9:::1;94374:6;:4;:6::i;:::-;94362:18;;94391:14;94401:3;94391:9;:14::i;:::-;94525:9;::::0;94492:20:::1;::::0;94515:31:::1;::::0;94525:9:::1;::::0;;::::1;::::0;94536;;::::1;::::0;::::1;94515;:31::i;:::-;94591:10;::::0;94492:54;;-1:-1:-1;94557:21:0::1;::::0;94581:33:::1;::::0;-1:-1:-1;;;94591:10:0;::::1;;::::0;;::::1;::::0;-1:-1:-1;;;94603:10:0;::::1;::::0;::::1;94581:9;:33::i;:::-;94640:9;::::0;94557:57;;-1:-1:-1;94625:71:0::1;::::0;94640:9:::1;::::0;;::::1;::::0;94651;;::::1;::::0;::::1;94662:12:::0;94684:4:::1;94640:9:::0;94625:14:::1;:71::i;:::-;-1:-1:-1::0;;94722:10:0::1;::::0;94707:74:::1;::::0;-1:-1:-1;;;94722:10:0;::::1;;::::0;;::::1;::::0;-1:-1:-1;;;94734:10:0;::::1;::::0;::::1;94746:13:::0;94769:4:::1;94776;94707:14;:74::i;:::-;-1:-1:-1::0;;94853:6:0::1;::::0;:31:::1;::::0;;-1:-1:-1;;;94853:31:0;;94878:4:::1;94853:31;::::0;::::1;::::0;;;94834:16:::1;::::0;-1:-1:-1;;;;;94853:6:0::1;::::0;:16:::1;::::0;:31;;;;;::::1;::::0;;;;;;;;:6;:31;::::1;;::::0;::::1;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;::::0;::::1;;-1:-1:-1::0;94853:31:0;94914:6:::1;::::0;:31:::1;::::0;;-1:-1:-1;;;94914:31:0;;94939:4:::1;94914:31;::::0;::::1;::::0;;;94853;;-1:-1:-1;94895:16:0::1;::::0;-1:-1:-1;;;;;94914:6:0;;::::1;::::0;:16:::1;::::0;:31;;;;;94853::::1;::::0;94914;;;;;;;;:6;:31;::::1;;::::0;::::1;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;::::0;::::1;;-1:-1:-1::0;94914:31:0;;-1:-1:-1;94961:49:0::1;94971:3:::0;94976:8;94914:31;94996:13:::1;:11;:13::i;:::-;94961:49;::::0;;::::1;::::0;;;::::1;::::0;;::::1;::::0;::::1;::::0;;;;;;;;;;;;;;;;;;;;;;;::::1;95207:15;95218:3;95207:10;:15::i;:::-;95183:9;95182:40:::0;;-1:-1:-1;;95182:40:0::1;::::0;::::1;::::0;;::::1;;::::0;;::::1;::::0;::::1;::::0;;;::::1;-1:-1:-1::0;;95182:40:0::1;::::0;;::::1;::::0;;;::::1;::::0;;;::::1;::::0;;;;-1:-1:-1;;95257:37:0::1;::::0;95273:9;;::::1;::::0;95284;;;::::1;::::0;::::1;95257:15;:37::i;:::-;95320:9;::::0;95233:61;;-1:-1:-1;95305:66:0::1;::::0;95320:9:::1;::::0;;::::1;::::0;95331;;::::1;::::0;::::1;95233:61:::0;95365:4:::1;95305:14;:66::i;:::-;;;95420:14;95436::::0;95454::::1;95464:3;95454:9;:14::i;:::-;95419:49;;;;95480:14;95496::::0;95514::::1;95524:3;95514:9;:14::i;:::-;95479:49;;;;95539:20;95562:35;95578:8;95588;95562:15;:35::i;:::-;95539:58;;95608:20;95631:35;95647:8;95657;95631:15;:35::i;:::-;95608:58;;95818:12;-1:-1:-1::0;;;;;95803:27:0::1;:12;-1:-1:-1::0;;;;;95803:27:0::1;;95799:343;;;95848:10;95847:47:::0;;::::1;::::0;;::::1;;::::0;;::::1;-1:-1:-1::0;;;95847:47:0::1;-1:-1:-1::0;;95847:47:0;;;::::1;::::0;;::::1;-1:-1:-1::0;;;95847:47:0::1;-1:-1:-1::0;;;;95847:47:0;;::::1;::::0;;;::::1;;;::::0;;95909:63:::1;95875:8:::0;95885;95944:12;95966:4:::1;95909:14;:63::i;:::-;;;95799:343;;;96006:10;96005:47:::0;;::::1;::::0;;::::1;;::::0;;::::1;-1:-1:-1::0;;;96005:47:0::1;-1:-1:-1::0;;96005:47:0;;;::::1;::::0;;::::1;-1:-1:-1::0;;;96005:47:0::1;-1:-1:-1::0;;;;96005:47:0;;::::1;::::0;;;::::1;;;::::0;;96067:63:::1;96033:8:::0;96043;96102:12;96124:4:::1;96067:14;:63::i;:::-;;;95799:343;96283:10;::::0;::::1;96270:9:::0;;::::1;:23:::0;::::1;-1:-1:-1::0;;;96283:10:0;;::::1;::::0;::::1;96270:23:::0;::::1;;;::::0;:50:::1;;-1:-1:-1::0;96310:10:0::1;::::0;96297:9;;::::1;96310:10;96297:9:::0;;::::1;:23:::0;::::1;-1:-1:-1::0;;;96310:10:0;;::::1;::::0;::::1;96297:23:::0;::::1;;;96270:50;96263:58;;;;-1:-1:-1::0;;14401:1:0;15363:7;:22;-1:-1:-1;;;;;;;;;;94100:2229:0:o;107500:139::-;109502:10;;-1:-1:-1;;;109502:10:0;;-1:-1:-1;;;;;109502:10:0;109488;:24;109480:47;;;;;-1:-1:-1;;;109480:47:0;;;;;;;;;;;;-1:-1:-1;;;109480:47:0;;;;;;;;;;;;;;;107593:17:::1;:38:::0;107500:139::o;87392:22::-;;;;;;;;;:::o;108166:181::-;109502:10;;-1:-1:-1;;;109502:10:0;;-1:-1:-1;;;;;109502:10:0;109488;:24;109480:47;;;;;-1:-1:-1;;;109480:47:0;;;;;;;;;;;;-1:-1:-1;;;109480:47:0;;;;;;;;;;;;;;;108267:9:::1;::::0;-1:-1:-1;;;108267:9:0;::::1;;;108266:10;108258:32;;;::::0;;-1:-1:-1;;;108258:32:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;-1:-1:-1;;;108258:32:0;;;;;;;;;;;;;::::1;;108301:38;-1:-1:-1::0;;;;;108301:18:0;::::1;108320:10;108332:6:::0;108301:18:::1;:38::i;:::-;108166:181:::0;;:::o;72149:95::-;72229:7;72222:14;;;;;;;;-1:-1:-1;;72222:14:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;72196:13;;72222:14;;72229:7;;72222:14;;72229:7;72222:14;;;;;;;;;;;;;;;;;;;;;;;;102825:335;103042:10;;102915:17;;;;;;103032:33;;-1:-1:-1;;;103042:10:0;;;;;;;-1:-1:-1;;;103054:10:0;;;;103032:9;:33::i;:::-;103118:10;;103020:45;;-1:-1:-1;103097:55:0;;-1:-1:-1;;;103118:10:0;;;;;;;-1:-1:-1;;;103130:10:0;;;;103020:45;103097:20;:55::i;:::-;102825:335;;103076:76;;;-1:-1:-1;102825:335:0;-1:-1:-1;102825:335:0:o;76187:269::-;76280:4;76297:129;76306:12;:10;:12::i;:::-;76320:7;76329:96;76368:15;76329:96;;;;;;;;;;;;;;;;;:11;:25;76341:12;:10;:12::i;:::-;-1:-1:-1;;;;;76329:25:0;;;;;;;;;;;;;;;;;-1:-1:-1;76329:25:0;;;:34;;;;;;;;;;;:96;:38;:96::i;106824:163::-;109502:10;;-1:-1:-1;;;109502:10:0;;-1:-1:-1;;;;;109502:10:0;109488;:24;109480:47;;;;;-1:-1:-1;;;109480:47:0;;;;;;;;;;;;-1:-1:-1;;;109480:47:0;;;;;;;;;;;;;;;106907:31:::1;106923:14;106907:15;:31::i;:::-;106949:13;:30:::0;;::::1;::::0;;;::::1;;;-1:-1:-1::0;;;106949:30:0::1;-1:-1:-1::0;;;;106949:30:0;;::::1;::::0;;;::::1;::::0;;106824:163::o;87150:26::-;;;-1:-1:-1;;;87150:26:0;;;;;:::o;73549:175::-;73635:4;73652:42;73662:12;:10;:12::i;:::-;73676:9;73687:6;73652:9;:42::i;109018:118::-;109502:10;;-1:-1:-1;;;109502:10:0;;-1:-1:-1;;;;;109502:10:0;109488;:24;109480:47;;;;;-1:-1:-1;;;109480:47:0;;;;;;;;;;;;-1:-1:-1;;;109480:47:0;;;;;;;;;;;;;;;109097:17:::1;:31:::0;;-1:-1:-1;;;;;;109097:31:0::1;-1:-1:-1::0;;;;;109097:31:0;;;::::1;::::0;;;::::1;::::0;;109018:118::o;108507:333::-;109502:10;;-1:-1:-1;;;109502:10:0;;-1:-1:-1;;;;;109502:10:0;109488;:24;109480:47;;;;;-1:-1:-1;;;109480:47:0;;;;;;;;;;;;-1:-1:-1;;;109480:47:0;;;;;;;;;;;;;;;108661:9:::1;::::0;-1:-1:-1;;;108661:9:0;::::1;;;108660:10;108652:32;;;::::0;;-1:-1:-1;;;108652:32:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;-1:-1:-1;;;108652:32:0;;;;;;;;;;;;;::::1;;108695:4;::::0;:42:::1;::::0;;-1:-1:-1;;;108695:42:0;;::::1;::::0;;::::1;;::::0;::::1;::::0;;;::::1;::::0;;;;-1:-1:-1;;;;;108695:42:0;::::1;::::0;;;;;;-1:-1:-1;;;;;108695:4:0;;::::1;::::0;:9:::1;::::0;:42;;;;;;;;;;;;;:4:::1;::::0;:42;::::1;;::::0;::::1;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;::::0;::::1;;-1:-1:-1::0;;108748:4:0::1;::::0;108695:42;108748:84;;-1:-1:-1;;;108748:84:0;;108761:10:::1;108748:84;::::0;::::1;::::0;::::1;::::0;;::::1;::::0;;;;;;::::1;::::0;;;;-1:-1:-1;;;;;108748:84:0;;;;;;;;;;;;-1:-1:-1;;;;;108748:4:0;;::::1;::::0;:12:::1;::::0;:84;;;;;108695:42;;108748:84;;;;;;:4:::1;::::0;:84;::::1;;::::0;::::1;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;::::0;::::1;;-1:-1:-1::0;;;;;108507:333:0:o;87582:21::-;;;-1:-1:-1;;;;;87582:21:0;;:::o;106995:168::-;109502:10;;-1:-1:-1;;;109502:10:0;;-1:-1:-1;;;;;109502:10:0;109488;:24;109480:47;;;;;-1:-1:-1;;;109480:47:0;;;;;;;;;;;;-1:-1:-1;;;109480:47:0;;;;;;;;;;;;;;;107080:32:::1;107096:15;107080;:32::i;:::-;107123:14;:32:::0;;::::1;::::0;;;::::1;;;-1:-1:-1::0;;;107123:32:0::1;-1:-1:-1::0;;;;;107123:32:0;;::::1;::::0;;;::::1;::::0;;106995:168::o;87286:32::-;;;;:::o;87554:21::-;;;-1:-1:-1;;;87554:21:0;;;;;:::o;87610:25::-;;;;:::o;107374:118::-;109502:10;;-1:-1:-1;;;109502:10:0;;-1:-1:-1;;;;;109502:10:0;109488;:24;109480:47;;;;;-1:-1:-1;;;109480:47:0;;;;;;;;;;;;-1:-1:-1;;;109480:47:0;;;;;;;;;;;;;;;107456:12:::1;:28:::0;;::::1;::::0;;::::1;::::0;::::1;-1:-1:-1::0;;107456:28:0;;::::1;::::0;;;::::1;::::0;;107374:118::o;101906:376::-;101965:14;101981;102011:13;102026;102043:17;:15;:17::i;:::-;102008:52;;;;;102074:14;102090;102108:18;:16;:18::i;:::-;102146:6;;:31;;;-1:-1:-1;;;102146:31:0;;102171:4;102146:31;;;;;;102071:55;;-1:-1:-1;102071:55:0;;-1:-1:-1;102146:54:0;;-1:-1:-1;102071:55:0;;102146:42;;102182:5;;-1:-1:-1;;;;;102146:6:0;;:16;;:31;;;;;;;;;;;;;;;:6;:31;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;102146:31:0;;:35;:42::i;:::-;:46;;:54::i;:::-;102220:6;;:31;;;-1:-1:-1;;;102220:31:0;;102245:4;102220:31;;;;;;102137:63;;-1:-1:-1;102220:54:0;;102267:6;;102220:42;;102256:5;;-1:-1:-1;;;;;102220:6:0;;;;:16;;:31;;;;;;;;;;;;;;;:6;:31;;;;;;;;;;:54;102211:63;;101906:376;;;;;;:::o;87117:24::-;;;-1:-1:-1;;;87117:24:0;;;;;:::o;87066:20::-;;;-1:-1:-1;;;;;87066:20:0;;:::o;102388:330::-;102604:9;;102477:17;;;;;;102594:31;;102604:9;;;;;102615;;;;;102594;:31::i;:::-;102678:9;;102582:43;;-1:-1:-1;102657:53:0;;102678:9;;;;;102689;;;;;102582:43;102657:20;:53::i;92328:1480::-;92497:15;92514;14445:1;15051:7;;:19;;15043:63;;;;;-1:-1:-1;;;15043:63:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;14445:1;15184:7;:18;92550:10;92542:29:::1;;;::::0;;-1:-1:-1;;;92542:29:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;-1:-1:-1;;;92542:29:0;;;;;;;;;;;;;::::1;;-1:-1:-1::0;;;;;92590:16:0;::::1;92582:31;;;::::0;;-1:-1:-1;;;92582:31:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;-1:-1:-1;;;92582:31:0;;;;;;;;;;;;;::::1;;92742:9;::::0;92698:21:::1;::::0;92722:49:::1;::::0;92742:9:::1;::::0;;::::1;::::0;92753;;::::1;::::0;::::1;92764:6:::0;92722:19:::1;:49::i;:::-;92831:10;::::0;92698:73;;-1:-1:-1;92786:22:0::1;::::0;92811:51:::1;::::0;-1:-1:-1;;;92831:10:0;::::1;;::::0;;::::1;::::0;-1:-1:-1;;;92843:10:0;::::1;::::0;::::1;92855:6:::0;92811:19:::1;:51::i;:::-;92997:9;::::0;92786:76;;-1:-1:-1;92933:13:0::1;::::0;;;92982:62:::1;::::0;92997:9:::1;::::0;;::::1;::::0;93008;;::::1;::::0;::::1;93019:13:::0;93034:2;92933:13;92982:14:::1;:62::i;:::-;93126:10;::::0;92932:112;;-1:-1:-1;92932:112:0;-1:-1:-1;93060:14:0::1;::::0;;;93111:65:::1;::::0;-1:-1:-1;;;93126:10:0;::::1;;::::0;;::::1;::::0;-1:-1:-1;;;93138:10:0;::::1;::::0;::::1;93150:14:::0;93166:2;93060:14;93111::::1;:65::i;:::-;93295:6;::::0;93059:117;;-1:-1:-1;93059:117:0;-1:-1:-1;93261:15:0::1;::::0;93279:35:::1;::::0;-1:-1:-1;;;;;93295:6:0::1;93303::::0;93311:2;93279:15:::1;:35::i;:::-;93363:6;::::0;93261:53;;-1:-1:-1;93329:15:0::1;::::0;93347:35:::1;::::0;-1:-1:-1;;;;;93363:6:0::1;93371::::0;93379:2;93347:15:::1;:35::i;:::-;93329:53:::0;-1:-1:-1;93464:30:0::1;93486:7:::0;93464:17:::1;:5:::0;93474:6;93464:9:::1;:17::i;:30::-;93454:40:::0;-1:-1:-1;93519:30:0::1;93541:7:::0;93519:17:::1;:5:::0;93529:6;93519:9:::1;:17::i;:30::-;93509:40;;15215:1;;;;;;;;93597:25;93603:10;93615:6;93597:5;:25::i;:::-;93654:10;93643:7;:21;;93635:44;;;::::0;;-1:-1:-1;;;93635:44:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;-1:-1:-1;;;93635:44:0;;;;;;;;;;;;;::::1;;93709:10;93698:7;:21;;93690:44;;;::::0;;-1:-1:-1;;;93690:44:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;-1:-1:-1;;;93690:44:0;;;;;;;;;;;;;::::1;;93750:50;::::0;;;;;::::1;::::0;::::1;::::0;;;;;;;;;;;-1:-1:-1;;;;;93750:50:0;::::1;::::0;93759:10:::1;::::0;93750:50:::1;::::0;;;;;;;::::1;14401:1:::0;15363:7;:22;92328:1480;;;;-1:-1:-1;92328:1480:0;-1:-1:-1;;;92328:1480:0:o;101100:627::-;101279:4;;-1:-1:-1;;;;;101279:4:0;101257:10;:27;101249:36;;;;;;101296:13;101323:4;;101312:27;;;;;;;;;;-1:-1:-1;101312:27:0;-1:-1:-1;;;;;101312:27:0;;-1:-1:-1;101373:4:0;101356:22;;101352:368;;;101399:11;;101395:57;;101412:6;;:40;;-1:-1:-1;;;;;101412:6:0;101432:10;101444:7;101412:19;:40::i;:::-;101471:11;;101467:57;;101484:6;;:40;;-1:-1:-1;;;;;101484:6:0;101504:10;101516:7;101484:19;:40::i;:::-;101352:368;;;101561:11;;101557:68;;101574:6;;:51;;-1:-1:-1;;;;;101574:6:0;101598:5;101605:10;101617:7;101574:23;:51::i;:::-;101644:11;;101640:68;;101657:6;;:51;;-1:-1:-1;;;;;101657:6:0;101681:5;101688:10;101700:7;101657:23;:51::i;73787:151::-;-1:-1:-1;;;;;73903:18:0;;;73876:7;73903:18;;;:11;:18;;;;;;;;:27;;;;;;;;;;;;;73787:151::o;87093:17::-;;;-1:-1:-1;;;87093:17:0;;;;;:::o;87217:29::-;;;;;;:::o;87515:32::-;;;-1:-1:-1;;;;;87515:32:0;;:::o;87363:22::-;;;;;;:::o;89650:2229::-;89818:15;89835;14445:1;15051:7;;:19;;15043:63;;;;;-1:-1:-1;;;15043:63:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;14445:1;15184:7;:18;89871:10;89863:29:::1;;;::::0;;-1:-1:-1;;;89863:29:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;-1:-1:-1;;;89863:29:0;;;;;;;;;;;;;::::1;;-1:-1:-1::0;;;;;89911:16:0;::::1;89903:31;;;::::0;;-1:-1:-1;;;89903:31:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;-1:-1:-1;;;89903:31:0;;;;;;;;;;;;;::::1;;89951:13;:11;:13::i;:::-;89947:1509;;90150:9;::::0;90117:153:::1;::::0;90150:9:::1;::::0;;::::1;::::0;90178;;::::1;::::0;::::1;90206:20;90219:6:::0;90206:12:::1;:20::i;:::-;90245:10;90117:14;:153::i;:::-;90096:174:::0;;-1:-1:-1;90096:174:0;-1:-1:-1;86941:4:0::1;90366:25:::0;::::1;90358:54;;;::::0;;-1:-1:-1;;;90358:54:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;-1:-1:-1;;;90358:54:0;;;;;;;;;;;;;::::1;;90427:38;90441:4;86941;90427:5;:38::i;:::-;90489:28;:6:::0;86941:4:::1;90489:10;:28::i;:::-;90480:37;;89947:1509;;;90650:9;::::0;90606:21:::1;::::0;90630:49:::1;::::0;90650:9:::1;::::0;;::::1;::::0;90661;;::::1;::::0;::::1;90672:6:::0;90630:19:::1;:49::i;:::-;90739:10;::::0;90606:73;;-1:-1:-1;90694:22:0::1;::::0;90719:51:::1;::::0;-1:-1:-1;;;90739:10:0;::::1;;::::0;;::::1;::::0;-1:-1:-1;;;90751:10:0;::::1;::::0;::::1;90763:6:::0;90719:19:::1;:51::i;:::-;90904:9;::::0;90694:76;;-1:-1:-1;90840:13:0::1;::::0;;;90889:63:::1;::::0;90904:9:::1;::::0;;::::1;::::0;90915;;::::1;::::0;::::1;90926:13:::0;90941:10:::1;90889:14;:63::i;:::-;91034:10;::::0;90839:113;;-1:-1:-1;90839:113:0;-1:-1:-1;90968:14:0::1;::::0;;;91019:66:::1;::::0;-1:-1:-1;;;91034:10:0;::::1;;::::0;;::::1;::::0;-1:-1:-1;;;91046:10:0;::::1;::::0;::::1;91058:14:::0;91074:10:::1;91019:14;:66::i;:::-;91202:6;::::0;90967:118;;-1:-1:-1;90967:118:0;-1:-1:-1;91169:15:0::1;::::0;91187:30:::1;::::0;-1:-1:-1;;;;;91202:6:0::1;91210::::0;91187:14:::1;:30::i;:::-;91265:6;::::0;91169:48;;-1:-1:-1;91232:15:0::1;::::0;91250:30:::1;::::0;-1:-1:-1;;;;;91265:6:0::1;91273::::0;91250:14:::1;:30::i;:::-;91232:48:::0;-1:-1:-1;91359:30:0::1;91381:7:::0;91359:17:::1;:5:::0;91369:6;91359:9:::1;:17::i;:30::-;91349:40:::0;-1:-1:-1;91414:30:0::1;91436:7:::0;91414:17:::1;:5:::0;91424:6;91414:9:::1;:17::i;:30::-;91404:40;;89947:1509;;;;;;;;;91505:17;91511:2;91515:6;91505:5;:17::i;:::-;91554:10;91543:7;:21;;91535:44;;;::::0;;-1:-1:-1;;;91535:44:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;-1:-1:-1;;;91535:44:0;;;;;;;;;;;;;::::1;;91609:10;91598:7;:21;;91590:44;;;::::0;;-1:-1:-1;;;91590:44:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;-1:-1:-1;;;91590:44:0;;;;;;;;;;;;;::::1;;91650:49;::::0;;;;;::::1;::::0;::::1;::::0;;;;;;;;;;;-1:-1:-1;;;;;91650:49:0;::::1;::::0;91658:10:::1;::::0;91650:49:::1;::::0;;;;;;;::::1;91798:14;::::0;:19;;:54:::1;;;91838:14;;91821:13;:11;:13::i;:::-;:31;;91798:54;91790:81;;;::::0;;-1:-1:-1;;;91790:81:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;-1:-1:-1;;;91790:81:0;;;;;;;;;;;;;::::1;;14401:1:::0;15363:7;:22;89650:2229;;;;-1:-1:-1;89650:2229:0;-1:-1:-1;;;89650:2229:0:o;9596:106::-;9684:10;9596:106;:::o;79334:346::-;-1:-1:-1;;;;;79436:19:0;;79428:68;;;;-1:-1:-1;;;79428:68:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;79515:21:0;;79507:68;;;;-1:-1:-1;;;79507:68:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;79588:18:0;;;;;;;:11;:18;;;;;;;;:27;;;;;;;;;;;;;:36;;;79640:32;;;;;;;;;;;;;;;;;79334:346;;;:::o;76946:539::-;-1:-1:-1;;;;;77052:20:0;;77044:70;;;;-1:-1:-1;;;77044:70:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;77133:23:0;;77125:71;;;;-1:-1:-1;;;77125:71:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;77209:47;77230:6;77238:9;77249:6;77209:20;:47::i;:::-;77289:71;77311:6;77289:71;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;77289:17:0;;:9;:17;;;;;;;;;;;;:71;:21;:71::i;:::-;-1:-1:-1;;;;;77269:17:0;;;:9;:17;;;;;;;;;;;:91;;;;77394:20;;;;;;;:32;;77419:6;77394:24;:32::i;:::-;-1:-1:-1;;;;;77371:20:0;;;:9;:20;;;;;;;;;;;;:55;;;;77442:35;;;;;;;77371:20;;77442:35;;;;;;;;;;;;;76946:539;;;:::o;20994:166::-;21080:7;21116:12;21108:6;;;;21100:29;;;;-1:-1:-1;;;21100:29:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;21147:5:0;;;20994:166::o;18167:179::-;18225:7;18257:5;;;18281:6;;;;18273:46;;;;;-1:-1:-1;;;18273:46:0;;;;;;;;;;;;;;;;;;;;;;;;;;;105979:101;106060:4;;:12;;;-1:-1:-1;;;106060:12:0;;;;106018:9;;-1:-1:-1;;;;;106060:4:0;;:10;;:12;;;;;;;;;;;;;;:4;:12;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;106060:12:0;;;;105979:101;-1:-1:-1;105979:101:0:o;104655:657::-;104747:14;;104710:18;;-1:-1:-1;;;104747:14:0;;;;;;104731:30;;-1:-1:-1;;;104731:13:0;;;;;:30;;;:63;;104780:14;;-1:-1:-1;;;104780:14:0;;;;104731:63;;;104764:13;;-1:-1:-1;;;104764:13:0;;;;104731:63;104710:84;;104854:11;;;;;;;;;;;104839:12;-1:-1:-1;;104819:32:0;:46;104813:52;;:3;:52;;;104805:78;;;;;-1:-1:-1;;;104805:78:0;;;;;;;;;;;;-1:-1:-1;;;104805:78:0;;;;;;;;;;;;;;;104943:11;;-1:-1:-1;;;104943:11:0;;;;;;54835:9;104908:32;;;:46;104902:52;;;;;;;104894:79;;;;;-1:-1:-1;;;104894:79:0;;;;;;;;;;;;-1:-1:-1;;;104894:79:0;;;;;;;;;;;;;;;105148:10;105161:9;:7;:9::i;:::-;105148:22;;105181:15;105205:4;105199:10;;:3;:10;;;:36;;105232:3;105225:4;:10;105199:36;;;105218:4;105212:3;:10;105199:36;105267:16;;105181:54;;-1:-1:-1;105267:16:0;;;;105254:29;;;;;;;;105246:58;;;;;-1:-1:-1;;;105246:58:0;;;;;;;;;;;;-1:-1:-1;;;105246:58:0;;;;;;;;;;;;;;;104655:657;;;;:::o;99320:292::-;99490:53;;;99515:4;99490:53;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;99480:64;;;;;;;99577:4;;-1:-1:-1;;;99577:27:0;;;;;;;;;;;-1:-1:-1;;99480:64:0;-1:-1:-1;;;;;99577:4:0;;;;:14;;:27;;;;;;;;;;;;;;:4;:27;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;99577:27:0;;99320:292;-1:-1:-1;;;;99320:292:0:o;96866:752::-;97042:15;;-1:-1:-1;;;;;97091:13:0;;;97087:524;;97185:4;;:42;;;-1:-1:-1;;;97185:42:0;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;97185:42:0;;;;;;;;97153:13;;;;-1:-1:-1;;;;;97185:4:0;;;;:9;;:42;;;;;;;;;;;97153:13;97185:4;:42;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;97185:42:0;;;;;;;;;-1:-1:-1;97185:42:0;-1:-1:-1;97280:16:0;97299:10;:52;;97332:19;97345:5;97332:12;:19::i;:::-;97299:52;;;-1:-1:-1;;;;;97299:52:0;97280:71;;97366:16;97385:10;:52;;97418:19;97431:5;97418:12;:19::i;:::-;97385:52;;;-1:-1:-1;;;;;97385:52:0;97366:71;;97467:1;97456:8;-1:-1:-1;;;;;97456:12:0;;:28;;;;97483:1;97472:8;-1:-1:-1;;;;;97472:12:0;;97456:28;97452:148;;;97526:4;;:58;;;-1:-1:-1;;;97526:58:0;;-1:-1:-1;;;;;97526:58:0;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;97526:58:0;;;;;;;;;;;;;;;:4;;;:12;;:58;;;;;;;;;;;;;:4;;:58;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;97526:58:0;;;;;;;-1:-1:-1;;;;;97505:79:0;;;;-1:-1:-1;97505:79:0;;-1:-1:-1;97452:148:0;97087:524;;;;;96866:752;;;;;;;;:::o;100174:199::-;100228:5;100235;100253:14;100270:11;100277:3;100270:6;:11::i;:::-;100311:13;;-1:-1:-1;;;100311:13:0;;;;;;100300:24;;;;-1:-1:-1;;;;100337:11:0;;;;;100326:22;;;:38;;-1:-1:-1;;100174:199:0;;;:::o;99739:301::-;99860:6;;:31;;;-1:-1:-1;;;99860:31:0;;99885:4;99860:31;;;;;;99821:7;;;;-1:-1:-1;;;;;99860:6:0;;;;:16;;:31;;;;;;;;;;;;;;;:6;:31;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;99860:31:0;99921:6;;:31;;;-1:-1:-1;;;99921:31:0;;99946:4;99921:31;;;;;;99860;;-1:-1:-1;99902:16:0;;-1:-1:-1;;;;;99921:6:0;;;;:16;;:31;;;;;99860;;99921;;;;;;;;:6;:31;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;99921:31:0;;-1:-1:-1;99970:62:0;99991:9;100002;100013:8;99921:31;99970:20;:62::i;:::-;99963:69;99739:301;-1:-1:-1;;;;;99739:301:0:o;96337:448::-;96490:15;;-1:-1:-1;;;;;96539:13:0;;;96535:243;;96590:4;;96734:17;;;-1:-1:-1;;;;;96734:17:0;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;96590:176:0;;;96626:4;96590:176;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;96590:176:0;;;;;;;;;;;;;;;;;;;;;:4;;;;;:9;;96626:4;;96650:9;;96678;;96706;;96734:17;96590:176;;;;;;;;;;;;:4;:176;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;96590:176:0;;;;;;;;;-1:-1:-1;96590:176:0;-1:-1:-1;96535:243:0;96337:448;;;;;;;:::o;100536:169::-;100589:5;100596;100614:14;100631:11;100638:3;100631:6;:11::i;:::-;100672:14;;-1:-1:-1;;;100672:14:0;;;;100661:25;;;-1:-1:-1;100614:28:0;-1:-1:-1;;100536:169:0;;;:::o;100868:180::-;100976:11;;100921:5;;;;;;-1:-1:-1;;;100976:11:0;;;;100962;100969:3;100962:6;:11::i;:::-;101025:14;;100962:25;;;-1:-1:-1;;;;101025:14:0;;;;101015:24;;;-1:-1:-1;;100868:180:0;;;:::o;81435:177::-;81545:58;;;-1:-1:-1;;;;;81545:58:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;81545:58:0;-1:-1:-1;;;81545:58:0;;;81518:86;;81538:5;;81518:19;:86::i;:::-;81435:177;;;:::o;103241:484::-;103381:7;103390;103411:20;103447:4;;;;;;;;;-1:-1:-1;;;;;103447:4:0;-1:-1:-1;;;;;103447:10:0;;:12;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;103447:12:0;;-1:-1:-1;103490:227:0;103447:12;103579:38;103607:9;103579:27;:38::i;:::-;103636;103664:9;103636:27;:38::i;:::-;103693:9;103490:39;:227::i;:::-;103470:247;;;;;103241:484;;;;;;:::o;105320:273::-;105407:11;;-1:-1:-1;;;105407:11:0;;;;;;105395:23;;;;;;;;;;;;:28;;;105387:68;;;;;-1:-1:-1;;;105387:68:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;54835:9;105474:29;;;;;105466:60;;;;;-1:-1:-1;;;105466:60:0;;;;;;;;;;;;-1:-1:-1;;;105466:60:0;;;;;;;;;;;;;;;105557:1;105545:9;:13;;;105537:48;;;;;-1:-1:-1;;;105537:48:0;;;;;;;;;;;;-1:-1:-1;;;105537:48:0;;;;;;;;;;;;;;;105320:273;:::o;98914:294::-;99050:7;99070:16;99097:31;99107:9;99118;99097;:31::i;:::-;-1:-1:-1;;;;;99089:40:0;99070:59;;99147:53;99160:39;99185:13;:11;:13::i;:::-;99160:20;:8;99173:6;99160:12;:20::i;:::-;:24;;:39::i;:::-;99147:12;:53::i;98436:362::-;98555:14;98582:15;98600:5;-1:-1:-1;;;;;98600:15:0;;98624:4;98600:30;;;;;;;;;;;;;-1:-1:-1;;;;;98600:30:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;98600:30:0;;-1:-1:-1;86993:4:0;98645:25;;98641:150;;98696:38;98720:13;:11;:13::i;:::-;98696:19;:7;98708:6;98696:11;:19::i;:38::-;98687:47;-1:-1:-1;98749:30:0;-1:-1:-1;;;;;98749:18:0;;98768:2;98687:47;98749:18;:30::i;:::-;98436:362;;;;;;:::o;78478:418::-;-1:-1:-1;;;;;78562:21:0;;78554:67;;;;-1:-1:-1;;;78554:67:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;78634:49;78655:7;78672:1;78676:6;78634:20;:49::i;:::-;78717:68;78740:6;78717:68;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;78717:18:0;;:9;:18;;;;;;;;;;;;:68;:22;:68::i;:::-;-1:-1:-1;;;;;78696:18:0;;:9;:18;;;;;;;;;;:89;78811:12;;:24;;78828:6;78811:16;:24::i;:::-;78796:12;:39;78851:37;;;;;;;;78877:1;;-1:-1:-1;;;;;78851:37:0;;;;;;;;;;;;78478:418;;:::o;81620:205::-;81748:68;;;-1:-1:-1;;;;;81748:68:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;81748:68:0;-1:-1:-1;;;81748:68:0;;;81721:96;;81741:5;;81721:19;:96::i;106088:142::-;106144:7;-1:-1:-1;;;;;106171:22:0;;;106164:30;;;;-1:-1:-1;106220:1:0;106088:142::o;77767:378::-;-1:-1:-1;;;;;77851:21:0;;77843:65;;;;;-1:-1:-1;;;77843:65:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;77921:49;77950:1;77954:7;77963:6;77921:20;:49::i;:::-;77998:12;;:24;;78015:6;77998:16;:24::i;:::-;77983:12;:39;-1:-1:-1;;;;;78054:18:0;;:9;:18;;;;;;;;;;;:30;;78077:6;78054:22;:30::i;:::-;-1:-1:-1;;;;;78033:18:0;;:9;:18;;;;;;;;;;;:51;;;;78100:37;;;;;;;78033:18;;:9;;78100:37;;;;;;;;;;77767:378;;:::o;18629:158::-;18687:7;18720:1;18715;:6;;18707:49;;;;;-1:-1:-1;;;18707:49:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;18774:5:0;;;18629:158::o;97838:383::-;97910:14;97937:15;97955:5;-1:-1:-1;;;;;97955:15:0;;97979:4;97955:30;;;;;;;;;;;;;-1:-1:-1;;;;;97955:30:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;97955:30:0;;-1:-1:-1;86993:4:0;98000:25;;97996:218;;98085:45;98128:1;98085:38;98109:13;:11;:13::i;:::-;98085:19;:7;98097:6;98085:11;:19::i;:45::-;98076:54;-1:-1:-1;98145:57:0;-1:-1:-1;;;;;98145:22:0;;98168:10;98188:4;98076:54;98145:22;:57::i;:::-;97838:383;;;;;:::o;105709:220::-;105760:5;105778:16;105804:11;;;;;;;;;;;105797:18;;:4;:18;;;;;;;;105778:37;;105837:1;105830:4;:8;;;:35;;;;-1:-1:-1;105849:11:0;;-1:-1:-1;;;105849:11:0;;;;;;105842:18;;;;;;;;;;;;:23;;;;105830:35;105826:53;;;-1:-1:-1;;105867:12:0;105826:53;105910:11;;-1:-1:-1;;;105910:11:0;;;;105897:24;;105709:220;-1:-1:-1;;105709:220:0:o;103806:523::-;103970:7;103991:20;104027:4;;;;;;;;;-1:-1:-1;;;;;104027:4:0;-1:-1:-1;;;;;104027:10:0;;:12;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;104027:12:0;;-1:-1:-1;104070:251:0;104027:12;104159:38;104187:9;104159:27;:38::i;:::-;104216;104244:9;104216:27;:38::i;:::-;104273:7;104299;104070:39;:251::i;:::-;104050:271;103806:523;-1:-1:-1;;;;;;103806:523:0:o;83740:761::-;84164:23;84190:69;84218:4;84190:69;;;;;;;;;;;;;;;;;84198:5;-1:-1:-1;;;;;84190:27:0;;;:69;;;;;:::i;:::-;84274:17;;84164:95;;-1:-1:-1;84274:21:0;84270:224;;84416:10;84405:30;;;;;;;;;;;;;;;-1:-1:-1;84405:30:0;84397:85;;;;-1:-1:-1;;;84397:85:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;55565:2611;55628:20;55661:15;55686:1;55679:4;:8;;;:57;;55730:4;55723:12;;55679:57;;;55706:4;55699:12;;55698:13;;55679:57;55661:75;-1:-1:-1;54835:9:0;55755:28;;;55747:42;;;;;-1:-1:-1;;;55747:42:0;;;;;;;;;;;;-1:-1:-1;;;55747:42:0;;;;;;;;;;;;;;;55802:13;55828:3;55818:13;;:93;;-1:-1:-1;;;55818:93:0;;;55839:34;55818:93;55802:109;;;-1:-1:-1;55936:3:0;55926:13;;:18;55922:83;;55963:34;55955:42;56002:3;55954:51;55922:83;56030:3;56020:13;;:18;56016:83;;56057:34;56049:42;56096:3;56048:51;56016:83;56124:3;56114:13;;:18;56110:83;;56151:34;56143:42;56190:3;56142:51;56110:83;56218:4;56208:14;;:19;56204:84;;56246:34;56238:42;56285:3;56237:51;56204:84;56313:4;56303:14;;:19;56299:84;;56341:34;56333:42;56380:3;56332:51;56299:84;56408:4;56398:14;;:19;56394:84;;56436:34;56428:42;56475:3;56427:51;56394:84;56503:4;56493:14;;:19;56489:84;;56531:34;56523:42;56570:3;56522:51;56489:84;56598:5;56588:15;;:20;56584:85;;56627:34;56619:42;56666:3;56618:51;56584:85;56694:5;56684:15;;:20;56680:85;;56723:34;56715:42;56762:3;56714:51;56680:85;56790:5;56780:15;;:20;56776:85;;56819:34;56811:42;56858:3;56810:51;56776:85;56886:5;56876:15;;:20;56872:85;;56915:34;56907:42;56954:3;56906:51;56872:85;56982:6;56972:16;;:21;56968:86;;57012:34;57004:42;57051:3;57003:51;56968:86;57079:6;57069:16;;:21;57065:86;;57109:34;57101:42;57148:3;57100:51;57065:86;57176:6;57166:16;;:21;57162:86;;57206:34;57198:42;57245:3;57197:51;57162:86;57273:6;57263:16;;:21;57259:86;;57303:34;57295:42;57342:3;57294:51;57259:86;57370:7;57360:17;;:22;57356:86;;57401:33;57393:41;57439:3;57392:50;57356:86;57467:7;57457:17;;:22;57453:85;;57498:32;57490:40;57535:3;57489:49;57453:85;57563:7;57553:17;;:22;57549:83;;57594:30;57586:38;57629:3;57585:47;57549:83;57657:7;57647:17;;:22;57643:78;;57688:25;57680:33;57718:3;57679:42;57643:78;57745:1;57738:4;:8;;;57734:47;;;57776:5;-1:-1:-1;;57756:25:0;;;;;;57748:33;;57734:47;-1:-1:-1;;;58136:5:0;:17;:22;:30;;58165:1;58136:30;;;58161:1;58136:30;58119:48;;58129:2;58120:5;:11;;58119:48;58096:72;;55565:2611;;;;;:::o;68992:815::-;69177:15;69194;69242:13;-1:-1:-1;;;;;69226:29:0;:13;-1:-1:-1;;;;;69226:29:0;;69222:98;;;69291:13;;69306;69222:98;69353:13;-1:-1:-1;;;;;69337:29:0;:12;-1:-1:-1;;;;;69337:29:0;;69333:467;;69393:63;69416:13;69431;69446:9;69393:22;:63::i;:::-;69383:73;;69333:467;;;69493:13;-1:-1:-1;;;;;69478:28:0;:12;-1:-1:-1;;;;;69478:28:0;;69474:326;;;69533:62;69556:12;69570:13;69585:9;69533:22;:62::i;:::-;69523:72;;69620:62;69643:13;69658:12;69672:9;69620:22;:62::i;:::-;69610:72;;69474:326;;;69725:63;69748:13;69763;69778:9;69725:22;:63::i;:::-;69715:73;;68992:815;;;;;;;:::o;19046:220::-;19104:7;19128:6;19124:20;;-1:-1:-1;19143:1:0;19136:8;;19124:20;19167:5;;;19171:1;19167;:5;:1;19191:5;;;;;:10;19183:56;;;;-1:-1:-1;;;19183:56:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;19744:153;19802:7;19834:1;19830;:5;19822:44;;;;;-1:-1:-1;;;19822:44:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;19888:1;19884;:5;;;;;;;19744:153;-1:-1:-1;;;19744:153:0:o;65897:920::-;66106:17;66156:13;-1:-1:-1;;;;;66140:29:0;:13;-1:-1:-1;;;;;66140:29:0;;66136:98;;;66205:13;;66220;66136:98;66267:13;-1:-1:-1;;;;;66251:29:0;:12;-1:-1:-1;;;;;66251:29:0;;66247:563;;66309:61;66332:13;66347;66362:7;66309:22;:61::i;:::-;66297:73;;66247:563;;;66407:13;-1:-1:-1;;;;;66392:28:0;:12;-1:-1:-1;;;;;66392:28:0;;66388:422;;;66437:18;66458:60;66481:12;66495:13;66510:7;66458:22;:60::i;:::-;66437:81;;66533:18;66554:60;66577:13;66592:12;66606:7;66554:22;:60::i;:::-;66533:81;;66656:10;-1:-1:-1;;;;;66643:23:0;:10;-1:-1:-1;;;;;66643:23:0;;:49;;66682:10;66643:49;;;66669:10;66643:49;66631:61;;66388:422;;;;;66737:61;66760:13;66775;66790:7;66737:22;:61::i;4650:195::-;4753:12;4785:52;4807:6;4815:4;4821:1;4824:12;4785:21;:52::i;:::-;4778:59;4650:195;-1:-1:-1;;;;4650:195:0:o;67182:511::-;67336:15;67384:13;-1:-1:-1;;;;;67368:29:0;:13;-1:-1:-1;;;;;67368:29:0;;67364:98;;;67433:13;;67448;67364:98;67672:13;-1:-1:-1;;;;;67495:190:0;:174;23131:2;67529:45;;67537:9;-1:-1:-1;;;;;67529:18:0;:45;;67609:13;67593;:29;-1:-1:-1;;;;;67495:174:0;67641:13;-1:-1:-1;;;;;67495:174:0;:15;:174::i;:::-;:190;;;;;;;67182:511;-1:-1:-1;;;;67182:511:0:o;68058:383::-;68212:15;68260:13;-1:-1:-1;;;;;68244:29:0;:13;-1:-1:-1;;;;;68244:29:0;;68240:98;;;68309:13;;68324;68240:98;68358:75;68374:9;-1:-1:-1;;;;;68358:75:0;68401:13;68385;:29;-1:-1:-1;;;;;68358:75:0;-1:-1:-1;;;68358:15:0;:75::i;63967:483::-;64119:17;64169:13;-1:-1:-1;;;;;64153:29:0;:13;-1:-1:-1;;;;;64153:29:0;;64149:98;;;64218:13;;64233;64149:98;64258:20;64281:63;64297:13;-1:-1:-1;;;;;64281:63:0;64312:13;-1:-1:-1;;;;;64281:63:0;-1:-1:-1;;;64281:15:0;:63::i;:::-;64258:86;;64362:80;64372:69;64388:7;64397:12;64427:13;64411;:29;-1:-1:-1;;;;;64372:69:0;:15;:69::i;:::-;64362:9;:80::i;64897:390::-;65049:17;65099:13;-1:-1:-1;;;;;65083:29:0;:13;-1:-1:-1;;;;;65083:29:0;;65079:98;;;65148:13;;65163;65079:98;65195:84;65205:73;65221:7;-1:-1:-1;;;65264:13:0;65248;:29;-1:-1:-1;;;;;65205:73:0;:15;:73::i;5702:530::-;5829:12;5887:5;5862:21;:30;;5854:81;;;;-1:-1:-1;;;5854:81:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5954:18;5965:6;5954:10;:18::i;:::-;5946:60;;;;;-1:-1:-1;;;5946:60:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;6080:12;6094:23;6121:6;-1:-1:-1;;;;;6121:11:0;6141:5;6149:4;6121:33;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;6121:33:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6079:75;;;;6172:52;6190:7;6199:10;6211:12;6172:17;:52::i;:::-;6165:59;5702:530;-1:-1:-1;;;;;;;5702:530:0:o;23952:3868::-;24068:14;;;-1:-1:-1;;24584:1:0;24581;24574:20;24617:9;;;;-1:-1:-1;24669:13:0;;;24653:14;;;;24649:34;;-1:-1:-1;24769:10:0;24765:185;;24818:1;24804:11;:15;24796:24;;;;;;-1:-1:-1;24873:23:0;;;;-1:-1:-1;24925:13:0;;24765:185;25081:5;25067:11;:19;25059:28;;;;;;25372:17;25450:11;25447:1;25444;25437:25;25813:12;25828;;;:26;;25951:22;;;;;26774:1;26755;:15;;26754:21;;27005:17;;;27001:21;;26994:28;27064:17;;;27060:21;;27053:28;27124:17;;;27120:21;;27113:28;27184:17;;;27180:21;;27173:28;27244:17;;;27240:21;;27233:28;27305:17;;;27301:21;;;27294:28;26334:12;;;;26330:23;;;26355:1;26326:31;25583:20;;;25572:32;;;26387:12;;;;25627:21;;;;26084:16;;;;26378:21;;;;27777:11;;;;;-1:-1:-1;;23952:3868:0;;;;;:::o;63379:112::-;63481:1;-1:-1:-1;;;;;63461:21:0;;;;63453:30;;;;;1732:422;2099:20;2138:8;;;1732:422::o;8242:742::-;8357:12;8386:7;8382:595;;;-1:-1:-1;8417:10:0;8410:17;;8382:595;8531:17;;:21;8527:439;;8794:10;8788:17;8855:15;8842:10;8838:2;8834:19;8827:44;8742:148;8930:20;;-1:-1:-1;;;8930:20:0;;;;;;;;;;;;;;;;;8937:12;;8930:20;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

Swarm Source

ipfs://c6dd6d52d6497c0af2336c8345160ea8507ac02c48e7bcf2ca8aaa638fe7bc0e

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.