Contract 0x838FAf89D602DfDeFFe2EE12Ad93C455E56BCe68

 

Contract Overview

Balance:
0 MATIC

MATIC Value:
$0.00

Token:
 
Txn Hash
Method
Block
From
To
Value [Txn Fee]
0x2a28691dc070874ce90a65d1522306d29f7abc4484c74f135da373f9eacc681bSet Liquidator385129712023-01-25 14:59:002 days 6 hrs ago0xe3c601b1fc6564ebf5603fcad7956697761e39db IN  0x838faf89d602dfdeffe2ee12ad93c455e56bce680 MATIC0.003863080034 80.574838027
0x65baa180627f7d765edc52a33a5bfe76745f4e566f2e26a6b9db18e2f04f1715Set Order Keeper385129512023-01-25 14:58:182 days 6 hrs ago0xe3c601b1fc6564ebf5603fcad7956697761e39db IN  0x838faf89d602dfdeffe2ee12ad93c455e56bce680 MATIC0.003904136108 81.731203081
0x60ec0e52582185707ebcfc2333a06064f571ec9da1fb6e89fcd8dfd8dcaecff7Set Should Valid...385129482023-01-25 14:58:122 days 6 hrs ago0xe3c601b1fc6564ebf5603fcad7956697761e39db IN  0x838faf89d602dfdeffe2ee12ad93c455e56bce680 MATIC0.002452411536 82.395227014
0xf4696882050181dcc3c04631719594738ea224cf688142dfd56089b42a9f6b08Set Referral Sto...385129452023-01-25 14:58:062 days 6 hrs ago0xe3c601b1fc6564ebf5603fcad7956697761e39db IN  0x838faf89d602dfdeffe2ee12ad93c455e56bce680 MATIC0.003884153651 81.473206597
0x844107be8f7daa7e03f59de9d9763e4aabd7963f33bad02c1a4c4b1d4e6870120x60806040385112642023-01-25 13:58:322 days 7 hrs ago0xe3c601b1fc6564ebf5603fcad7956697761e39db IN  Create: PositionManager0 MATIC0.374486085812 78.428540633
[ Download CSV Export 
Parent Txn Hash Block From To Value
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
PositionManager

Compiler Version
v0.6.12+commit.27d51765

Optimization Enabled:
Yes with 1 runs

Other Settings:
default evmVersion, None license

Contract Source Code (Solidity)

/**
 *Submitted for verification at polygonscan.com on 2023-01-25
*/

// SPDX-License-Identifier: MIT

pragma solidity 0.6.12;

interface IReferralStorage {
    function codeOwners(bytes32 _code) external view returns (address);
    function getTraderReferralInfo(address _account) external view returns (bytes32, address);
    function setTraderReferralCode(address _account, bytes32 _code) external;
    function setTier(uint256 _tierId, uint256 _totalRebate, uint256 _discountShare) external;
    function setReferrerTier(address _referrer, uint256 _tierId) external;
    function govSetCodeOwner(bytes32 _code, address _newAccount) external;
}

pragma solidity 0.6.12;

contract Governable {
    address public gov;

    constructor() public {
        gov = msg.sender;
    }

    modifier onlyGov() {
        require(msg.sender == gov, "Governable: forbidden");
        _;
    }

    function setGov(address _gov) external onlyGov {
        gov = _gov;
    }
}

pragma solidity 0.6.12;

interface IBasePositionManager {
    function maxGlobalLongSizes(address _token) external view returns (uint256);
    function maxGlobalShortSizes(address _token) external view returns (uint256);
}

pragma solidity 0.6.12;

interface IShortsTracker {
    function isGlobalShortDataReady() external view returns (bool);
    function globalShortAveragePrices(address _token) external view returns (uint256);
    function getNextGlobalShortData(
        address _account,
        address _collateralToken,
        address _indexToken,
        uint256 _nextPrice,
        uint256 _sizeDelta,
        bool _isIncrease
    ) external view returns (uint256, uint256);
    function updateGlobalShortData(
        address _account,
        address _collateralToken,
        address _indexToken,
        bool _isLong,
        uint256 _sizeDelta,
        uint256 _markPrice,
        bool _isIncrease
    ) external;
}

pragma solidity 0.6.12;

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

pragma solidity ^0.6.2;

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

pragma solidity 0.6.12;

interface IWETH {
    function deposit() external payable;
    function transfer(address to, uint value) external returns (bool);
    function withdraw(uint) external;
}

pragma solidity 0.6.12;

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

pragma solidity 0.6.12;

/**
 * @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, 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) {
        return sub(a, b, "SafeMath: subtraction overflow");
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting with custom message on
     * overflow (when the result is negative).
     *
     * 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);
        uint256 c = a - b;

        return c;
    }

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

        uint256 c = a * b;
        require(c / a == b, "SafeMath: multiplication overflow");

        return c;
    }

    /**
     * @dev Returns the integer division of two unsigned integers. Reverts 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) {
        return div(a, b, "SafeMath: division by zero");
    }

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

        return c;
    }

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

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * Reverts with custom message 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, string memory errorMessage) internal pure returns (uint256) {
        require(b != 0, errorMessage);
        return a % b;
    }
}

pragma solidity 0.6.12;

interface IVaultUtils {
    function updateCumulativeFundingRate(address _collateralToken, address _indexToken) external returns (bool);
    function validateIncreasePosition(address _account, address _collateralToken, address _indexToken, uint256 _sizeDelta, bool _isLong) external view;
    function validateDecreasePosition(address _account, address _collateralToken, address _indexToken, uint256 _collateralDelta, uint256 _sizeDelta, bool _isLong, address _receiver) external view;
    function validateLiquidation(address _account, address _collateralToken, address _indexToken, bool _isLong, bool _raise) external view returns (uint256, uint256);
    function getEntryFundingRate(address _collateralToken, address _indexToken, bool _isLong) external view returns (uint256);
    function getPositionFee(address _account, address _collateralToken, address _indexToken, bool _isLong, uint256 _sizeDelta) external view returns (uint256);
    function getFundingFee(address _account, address _collateralToken, address _indexToken, bool _isLong, uint256 _size, uint256 _entryFundingRate) external view returns (uint256);
    function getBuyUsdgFeeBasisPoints(address _token, uint256 _usdgAmount) external view returns (uint256);
    function getSellUsdgFeeBasisPoints(address _token, uint256 _usdgAmount) external view returns (uint256);
    function getSwapFeeBasisPoints(address _tokenIn, address _tokenOut, uint256 _usdgAmount) external view returns (uint256);
    function getFeeBasisPoints(address _token, uint256 _usdgDelta, uint256 _feeBasisPoints, uint256 _taxBasisPoints, bool _increment) external view returns (uint256);
}

pragma solidity 0.6.12;


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

pragma solidity 0.6.12;

interface ITimelock {
    function setAdmin(address _admin) external;
    function enableLeverage(address _vault) external;
    function disableLeverage(address _vault) external;
    function setIsLeverageEnabled(address _vault, bool _isLeverageEnabled) external;
    function signalSetGov(address _target, address _gov) external;
}

pragma solidity 0.6.12;

interface IOrderBook {
	function getSwapOrder(address _account, uint256 _orderIndex) external view returns (
        address path0, 
        address path1,
        address path2,
        uint256 amountIn,
        uint256 minOut,
        uint256 triggerRatio,
        bool triggerAboveThreshold,
        bool shouldUnwrap,
        uint256 executionFee
    );

    function getIncreaseOrder(address _account, uint256 _orderIndex) external view returns (
        address purchaseToken, 
        uint256 purchaseTokenAmount,
        address collateralToken,
        address indexToken,
        uint256 sizeDelta,
        bool isLong,
        uint256 triggerPrice,
        bool triggerAboveThreshold,
        uint256 executionFee
    );

    function getDecreaseOrder(address _account, uint256 _orderIndex) external view returns (
        address collateralToken,
        uint256 collateralDelta,
        address indexToken,
        uint256 sizeDelta,
        bool isLong,
        uint256 triggerPrice,
        bool triggerAboveThreshold,
        uint256 executionFee
    );

    function executeSwapOrder(address, uint256, address payable) external;
    function executeDecreaseOrder(address, uint256, address payable) external;
    function executeIncreaseOrder(address, uint256, address payable) external;
}

pragma solidity 0.6.12;

interface IVault {
    function isInitialized() external view returns (bool);
    function isSwapEnabled() external view returns (bool);
    function isLeverageEnabled() external view returns (bool);

    function setVaultUtils(IVaultUtils _vaultUtils) external;
    function setError(uint256 _errorCode, string calldata _error) external;

    function router() external view returns (address);
    function usdg() external view returns (address);
    function gov() external view returns (address);

    function whitelistedTokenCount() external view returns (uint256);
    function maxLeverage() external view returns (uint256);

    function minProfitTime() external view returns (uint256);
    function hasDynamicFees() external view returns (bool);
    function fundingInterval() external view returns (uint256);
    function totalTokenWeights() external view returns (uint256);
    function getTargetUsdgAmount(address _token) external view returns (uint256);

    function inManagerMode() external view returns (bool);
    function inPrivateLiquidationMode() external view returns (bool);

    function maxGasPrice() external view returns (uint256);

    function approvedRouters(address _account, address _router) external view returns (bool);
    function isLiquidator(address _account) external view returns (bool);
    function isManager(address _account) external view returns (bool);

    function minProfitBasisPoints(address _token) external view returns (uint256);
    function tokenBalances(address _token) external view returns (uint256);
    function lastFundingTimes(address _token) external view returns (uint256);

    function setMaxLeverage(uint256 _maxLeverage) external;
    function setInManagerMode(bool _inManagerMode) external;
    function setManager(address _manager, bool _isManager) external;
    function setIsSwapEnabled(bool _isSwapEnabled) external;
    function setIsLeverageEnabled(bool _isLeverageEnabled) external;
    function setMaxGasPrice(uint256 _maxGasPrice) external;
    function setUsdgAmount(address _token, uint256 _amount) external;
    function setBufferAmount(address _token, uint256 _amount) external;
    function setMaxGlobalShortSize(address _token, uint256 _amount) external;
    function setInPrivateLiquidationMode(bool _inPrivateLiquidationMode) external;
    function setLiquidator(address _liquidator, bool _isActive) external;

    function setFundingRate(uint256 _fundingInterval, uint256 _fundingRateFactor, uint256 _stableFundingRateFactor) external;

    function setFees(
        uint256 _taxBasisPoints,
        uint256 _stableTaxBasisPoints,
        uint256 _mintBurnFeeBasisPoints,
        uint256 _swapFeeBasisPoints,
        uint256 _stableSwapFeeBasisPoints,
        uint256 _marginFeeBasisPoints,
        uint256 _liquidationFeeUsd,
        uint256 _minProfitTime,
        bool _hasDynamicFees
    ) external;

    function setTokenConfig(
        address _token,
        uint256 _tokenDecimals,
        uint256 _redemptionBps,
        uint256 _minProfitBps,
        uint256 _maxUsdgAmount,
        bool _isStable,
        bool _isShortable
    ) external;

    function setPriceFeed(address _priceFeed) external;
    function withdrawFees(address _token, address _receiver) external returns (uint256);

    function directPoolDeposit(address _token) external;
    function buyUSDG(address _token, address _receiver) external returns (uint256);
    function sellUSDG(address _token, address _receiver) external returns (uint256);
    function swap(address _tokenIn, address _tokenOut, address _receiver) external returns (uint256);
    function increasePosition(address _account, address _collateralToken, address _indexToken, uint256 _sizeDelta, bool _isLong) external;
    function decreasePosition(address _account, address _collateralToken, address _indexToken, uint256 _collateralDelta, uint256 _sizeDelta, bool _isLong, address _receiver) external returns (uint256);
    function validateLiquidation(address _account, address _collateralToken, address _indexToken, bool _isLong, bool _raise) external view returns (uint256, uint256);
    function liquidatePosition(address _account, address _collateralToken, address _indexToken, bool _isLong, address _feeReceiver) external;
    function tokenToUsdMin(address _token, uint256 _tokenAmount) external view returns (uint256);

    function priceFeed() external view returns (address);
    function fundingRateFactor() external view returns (uint256);
    function stableFundingRateFactor() external view returns (uint256);
    function cumulativeFundingRates(address _token) external view returns (uint256);
    function getNextFundingRate(address _token) external view returns (uint256);
    function getFeeBasisPoints(address _token, uint256 _usdgDelta, uint256 _feeBasisPoints, uint256 _taxBasisPoints, bool _increment) external view returns (uint256);

    function liquidationFeeUsd() external view returns (uint256);
    function taxBasisPoints() external view returns (uint256);
    function stableTaxBasisPoints() external view returns (uint256);
    function mintBurnFeeBasisPoints() external view returns (uint256);
    function swapFeeBasisPoints() external view returns (uint256);
    function stableSwapFeeBasisPoints() external view returns (uint256);
    function marginFeeBasisPoints() external view returns (uint256);

    function allWhitelistedTokensLength() external view returns (uint256);
    function allWhitelistedTokens(uint256) external view returns (address);
    function whitelistedTokens(address _token) external view returns (bool);
    function stableTokens(address _token) external view returns (bool);
    function shortableTokens(address _token) external view returns (bool);
    function feeReserves(address _token) external view returns (uint256);
    function globalShortSizes(address _token) external view returns (uint256);
    function globalShortAveragePrices(address _token) external view returns (uint256);
    function maxGlobalShortSizes(address _token) external view returns (uint256);
    function tokenDecimals(address _token) external view returns (uint256);
    function tokenWeights(address _token) external view returns (uint256);
    function guaranteedUsd(address _token) external view returns (uint256);
    function poolAmounts(address _token) external view returns (uint256);
    function bufferAmounts(address _token) external view returns (uint256);
    function reservedAmounts(address _token) external view returns (uint256);
    function usdgAmounts(address _token) external view returns (uint256);
    function maxUsdgAmounts(address _token) external view returns (uint256);
    function getRedemptionAmount(address _token, uint256 _usdgAmount) external view returns (uint256);
    function getMaxPrice(address _token) external view returns (uint256);
    function getMinPrice(address _token) external view returns (uint256);

    function getDelta(address _indexToken, uint256 _size, uint256 _averagePrice, bool _isLong, uint256 _lastIncreasedTime) external view returns (bool, uint256);
    function getPosition(address _account, address _collateralToken, address _indexToken, bool _isLong) external view returns (uint256, uint256, uint256, uint256, uint256, uint256, bool, uint256);
}

pragma solidity 0.6.12;

interface IRouter {
    function addPlugin(address _plugin) external;
    function pluginTransfer(address _token, address _account, address _receiver, uint256 _amount) external;
    function pluginIncreasePosition(address _account, address _collateralToken, address _indexToken, uint256 _sizeDelta, bool _isLong) external;
    function pluginDecreasePosition(address _account, address _collateralToken, address _indexToken, uint256 _collateralDelta, uint256 _sizeDelta, bool _isLong, address _receiver) external returns (uint256);
    function swap(address[] memory _path, uint256 _amountIn, uint256 _minOut, address _receiver) external;
}


pragma solidity ^0.6.0;


contract BasePositionManager is IBasePositionManager, ReentrancyGuard, Governable {

    using SafeMath for uint256;
    using SafeERC20 for IERC20;
    using Address for address payable;

    uint256 public constant BASIS_POINTS_DIVISOR = 10000;

    address public admin;

    address public vault;
    address public shortsTracker;
    address public router;
    address public weth;

    // to prevent using the deposit and withdrawal of collateral as a zero fee swap,
    // there is a small depositFee charged if a collateral deposit results in the decrease
    // of leverage for an existing position
    // increasePositionBufferBps allows for a small amount of decrease of leverage
    uint256 public depositFee;
    uint256 public increasePositionBufferBps = 100;

    address public referralStorage;

    mapping (address => uint256) public feeReserves;

    mapping (address => uint256) public override maxGlobalLongSizes;
    mapping (address => uint256) public override maxGlobalShortSizes;

    event SetDepositFee(uint256 depositFee);
    event SetIncreasePositionBufferBps(uint256 increasePositionBufferBps);
    event SetReferralStorage(address referralStorage);
    event SetAdmin(address admin);
    event WithdrawFees(address token, address receiver, uint256 amount);

    event SetMaxGlobalSizes(
        address[] tokens,
        uint256[] longSizes,
        uint256[] shortSizes
    );

    event IncreasePositionReferral(
        address account,
        uint256 sizeDelta,
        uint256 marginFeeBasisPoints,
        bytes32 referralCode,
        address referrer
    );

    event DecreasePositionReferral(
        address account,
        uint256 sizeDelta,
        uint256 marginFeeBasisPoints,
        bytes32 referralCode,
        address referrer
    );

    modifier onlyAdmin() {
        require(msg.sender == admin, "BasePositionManager: forbidden");
        _;
    }

    constructor(
        address _vault,
        address _router,
        address _shortsTracker,
        address _weth,
        uint256 _depositFee
    ) public {
        require(_vault != address(0x0), 'Wrong address');
        require(_router != address(0x0), 'Wrong address');
        require(_shortsTracker != address(0x0), 'Wrong address');
        require(_weth != address(0x0), 'Wrong address');

        vault = _vault;
        router = _router;
        weth = _weth;
        depositFee = _depositFee;
        shortsTracker = _shortsTracker;

        admin = msg.sender;
    }

    receive() external payable {
        require(msg.sender == weth, "BasePositionManager: invalid sender");
    }

    function setAdmin(address _admin) external onlyGov {
        require(_admin != address(0x0), 'Wrong address');
        admin = _admin;
        emit SetAdmin(_admin);
    }

    function setDepositFee(uint256 _depositFee) external onlyAdmin {
        depositFee = _depositFee;
        emit SetDepositFee(_depositFee);
    }

    function setIncreasePositionBufferBps(uint256 _increasePositionBufferBps) external onlyAdmin {
        increasePositionBufferBps = _increasePositionBufferBps;
        emit SetIncreasePositionBufferBps(_increasePositionBufferBps);
    }

    function setReferralStorage(address _referralStorage) external onlyAdmin {
        require(_referralStorage != address(0x0), 'Wrong address');
        referralStorage = _referralStorage;
        emit SetReferralStorage(_referralStorage);
    }

    function setMaxGlobalSizes(
        address[] memory _tokens,
        uint256[] memory _longSizes,
        uint256[] memory _shortSizes
    ) external onlyAdmin {
        for (uint256 i = 0; i < _tokens.length; i++) {
            address token = _tokens[i];
            maxGlobalLongSizes[token] = _longSizes[i];
            maxGlobalShortSizes[token] = _shortSizes[i];
        }

        emit SetMaxGlobalSizes(_tokens, _longSizes, _shortSizes);
    }

    function withdrawFees(address _token, address _receiver) external onlyAdmin {
        uint256 amount = feeReserves[_token];
        if (amount == 0) { return; }

        feeReserves[_token] = 0;
        IERC20(_token).safeTransfer(_receiver, amount);

        emit WithdrawFees(_token, _receiver, amount);
    }

    function approve(address _token, address _spender, uint256 _amount) external onlyGov {
        IERC20(_token).approve(_spender, _amount);
    }

    function sendValue(address payable _receiver, uint256 _amount) external onlyGov {
        _receiver.sendValue(_amount);
    }

    function _validateMaxGlobalSize(address _indexToken, bool _isLong, uint256 _sizeDelta) internal view {
        if (_sizeDelta == 0) {
            return;
        }

        if (_isLong) {
            uint256 maxGlobalLongSize = maxGlobalLongSizes[_indexToken];
            if (maxGlobalLongSize > 0 && IVault(vault).guaranteedUsd(_indexToken).add(_sizeDelta) > maxGlobalLongSize) {
                revert("BasePositionManager: max global longs exceeded");
            }
        } else {
            uint256 maxGlobalShortSize = maxGlobalShortSizes[_indexToken];
            if (maxGlobalShortSize > 0 && IVault(vault).globalShortSizes(_indexToken).add(_sizeDelta) > maxGlobalShortSize) {
                revert("BasePositionManager: max global shorts exceeded");
            }
        }
    }

    function _increasePosition(address _account, address _collateralToken, address _indexToken, uint256 _sizeDelta, bool _isLong, uint256 _price) internal {
        address _vault = vault;

        uint256 markPrice = _isLong ? IVault(_vault).getMaxPrice(_indexToken) : IVault(_vault).getMinPrice(_indexToken);
        if (_isLong) {
            require(markPrice <= _price, "BasePositionManager: mark price higher than limit");
        } else {
            require(markPrice >= _price, "BasePositionManager: mark price lower than limit");
        }

        _validateMaxGlobalSize(_indexToken, _isLong, _sizeDelta);

        address timelock = IVault(_vault).gov();

        // should be called strictly before position is updated in Vault
        IShortsTracker(shortsTracker).updateGlobalShortData(_account, _collateralToken, _indexToken, _isLong, _sizeDelta, markPrice, true);

        ITimelock(timelock).enableLeverage(_vault);
        IRouter(router).pluginIncreasePosition(_account, _collateralToken, _indexToken, _sizeDelta, _isLong);
        ITimelock(timelock).disableLeverage(_vault);

        _emitIncreasePositionReferral(_account, _sizeDelta);
    }

    function _decreasePosition(address _account, address _collateralToken, address _indexToken, uint256 _collateralDelta, uint256 _sizeDelta, bool _isLong, address _receiver, uint256 _price) internal returns (uint256) {
        address _vault = vault;

        uint256 markPrice = _isLong ? IVault(_vault).getMinPrice(_indexToken) : IVault(_vault).getMaxPrice(_indexToken);
        if (_isLong) {
            require(markPrice >= _price, "BasePositionManager: mark price lower than limit");
        } else {
            require(markPrice <= _price, "BasePositionManager: mark price higher than limit");
        }

        address timelock = IVault(_vault).gov();

        // should be called strictly before position is updated in Vault
        IShortsTracker(shortsTracker).updateGlobalShortData(_account, _collateralToken, _indexToken, _isLong, _sizeDelta, markPrice, false);

        ITimelock(timelock).enableLeverage(_vault);
        uint256 amountOut = IRouter(router).pluginDecreasePosition(_account, _collateralToken, _indexToken, _collateralDelta, _sizeDelta, _isLong, _receiver);
        ITimelock(timelock).disableLeverage(_vault);

        _emitDecreasePositionReferral(_account, _sizeDelta);

        return amountOut;
    }

    function _emitIncreasePositionReferral(address _account, uint256 _sizeDelta) internal {
        address _referralStorage = referralStorage;
        if (_referralStorage == address(0)) {
            return;
        }

        (bytes32 referralCode, address referrer) = IReferralStorage(_referralStorage).getTraderReferralInfo(_account);
        emit IncreasePositionReferral(
            _account,
            _sizeDelta,
            IVault(vault).marginFeeBasisPoints(),
            referralCode,
            referrer
        );
    }

    function _emitDecreasePositionReferral(address _account, uint256 _sizeDelta) internal {
        address _referralStorage = referralStorage;
        if (_referralStorage == address(0)) {
            return;
        }

        (bytes32 referralCode, address referrer) = IReferralStorage(_referralStorage).getTraderReferralInfo(_account);

        if (referralCode == bytes32(0)) {
            return;
        }

        emit DecreasePositionReferral(
            _account,
            _sizeDelta,
            IVault(vault).marginFeeBasisPoints(),
            referralCode,
            referrer
        );
    }

    function _swap(address[] memory _path, uint256 _minOut, address _receiver) internal returns (uint256) {
        if (_path.length == 2) {
            return _vaultSwap(_path[0], _path[1], _minOut, _receiver);
        }
        revert("BasePositionManager: invalid _path.length");
    }

    function _vaultSwap(address _tokenIn, address _tokenOut, uint256 _minOut, address _receiver) internal returns (uint256) {
        uint256 amountOut = IVault(vault).swap(_tokenIn, _tokenOut, _receiver);
        require(amountOut >= _minOut, "BasePositionManager: insufficient amountOut");
        return amountOut;
    }

    function _transferInETH() internal {
        if (msg.value != 0) {
            IWETH(weth).deposit{value: msg.value}();
        }
    }

    function _transferOutETHWithGasLimitIgnoreFail(uint256 _amountOut, address payable _receiver) internal {
        IWETH(weth).withdraw(_amountOut);

        // use `send` instead of `transfer` to not revert whole transaction in case ETH transfer was failed
        // it has limit of 2300 gas
        // this is to avoid front-running
        // _receiver.send(_amountOut);
        (bool sent, bytes memory data) = _receiver.call{value: msg.value}("");
        require(sent, "Failed to send Ether");
    }

    function _collectFees(
        address _account,
        address[] memory _path,
        uint256 _amountIn,
        address _indexToken,
        bool _isLong,
        uint256 _sizeDelta
    ) internal returns (uint256) {
        bool shouldDeductFee = _shouldDeductFee(
            _account,
            _path,
            _amountIn,
            _indexToken,
            _isLong,
            _sizeDelta
        );

        if (shouldDeductFee) {
            uint256 afterFeeAmount = _amountIn.mul(BASIS_POINTS_DIVISOR.sub(depositFee)).div(BASIS_POINTS_DIVISOR);
            uint256 feeAmount = _amountIn.sub(afterFeeAmount);
            address feeToken = _path[_path.length - 1];
            feeReserves[feeToken] = feeReserves[feeToken].add(feeAmount);
            return afterFeeAmount;
        }

        return _amountIn;
    }

    function _shouldDeductFee(
        address _account,
        address[] memory _path,
        uint256 _amountIn,
        address _indexToken,
        bool _isLong,
        uint256 _sizeDelta
    ) internal view returns (bool) {
        // if the position is a short, do not charge a fee
        if (!_isLong) { return false; }

        // if the position size is not increasing, this is a collateral deposit
        if (_sizeDelta == 0) { return true; }

        address collateralToken = _path[_path.length - 1];

        IVault _vault = IVault(vault);
        (uint256 size, uint256 collateral, , , , , , ) = _vault.getPosition(_account, collateralToken, _indexToken, _isLong);

        // if there is no existing position, do not charge a fee
        if (size == 0) { return false; }

        uint256 nextSize = size.add(_sizeDelta);
        uint256 collateralDelta = _vault.tokenToUsdMin(collateralToken, _amountIn);
        uint256 nextCollateral = collateral.add(collateralDelta);

        uint256 prevLeverage = size.mul(BASIS_POINTS_DIVISOR).div(collateral);
        // allow for a maximum of a increasePositionBufferBps decrease since there might be some swap fees taken from the collateral
        uint256 nextLeverage = nextSize.mul(BASIS_POINTS_DIVISOR + increasePositionBufferBps).div(nextCollateral);

        // deduct a fee if the leverage is decreased
        return nextLeverage < prevLeverage;
    }
}


pragma solidity ^0.6.0;


contract PositionManager is BasePositionManager {

    address public orderBook;
    bool public inLegacyMode;

    bool public shouldValidateIncreaseOrder = true;

    mapping (address => bool) public isOrderKeeper;
    mapping (address => bool) public isPartner;
    mapping (address => bool) public isLiquidator;

    event SetOrderKeeper(address indexed account, bool isActive);
    event SetLiquidator(address indexed account, bool isActive);
    event SetPartner(address account, bool isActive);
    event SetInLegacyMode(bool inLegacyMode);
    event SetShouldValidateIncreaseOrder(bool shouldValidateIncreaseOrder);

    modifier onlyOrderKeeper() {
        require(isOrderKeeper[msg.sender], "PositionManager: forbidden");
        _;
    }

    modifier onlyLiquidator() {
        require(isLiquidator[msg.sender], "PositionManager: forbidden");
        _;
    }

    modifier onlyPartnersOrLegacyMode() {
        require(isPartner[msg.sender] || inLegacyMode, "PositionManager: forbidden");
        _;
    }

    constructor(
        address _vault,
        address _router,
        address _shortsTracker,
        address _weth,
        uint256 _depositFee,
        address _orderBook
    ) public BasePositionManager(_vault, _router, _shortsTracker, _weth, _depositFee) {
        orderBook = _orderBook;
    }

    function setOrderKeeper(address _account, bool _isActive) external onlyAdmin {
        isOrderKeeper[_account] = _isActive;
        emit SetOrderKeeper(_account, _isActive);
    }

    function setLiquidator(address _account, bool _isActive) external onlyAdmin {
        isLiquidator[_account] = _isActive;
        emit SetLiquidator(_account, _isActive);
    }

    function setPartner(address _account, bool _isActive) external onlyAdmin {
        isPartner[_account] = _isActive;
        emit SetPartner(_account, _isActive);
    }

    function setInLegacyMode(bool _inLegacyMode) external onlyAdmin {
        inLegacyMode = _inLegacyMode;
        emit SetInLegacyMode(_inLegacyMode);
    }

    function setShouldValidateIncreaseOrder(bool _shouldValidateIncreaseOrder) external onlyAdmin {
        shouldValidateIncreaseOrder = _shouldValidateIncreaseOrder;
        emit SetShouldValidateIncreaseOrder(_shouldValidateIncreaseOrder);
    }

    function increasePosition(
        address[] memory _path,
        address _indexToken,
        uint256 _amountIn,
        uint256 _minOut,
        uint256 _sizeDelta,
        bool _isLong,
        uint256 _price
    ) external nonReentrant onlyPartnersOrLegacyMode {
        require(_path.length == 1 || _path.length == 2, "PositionManager: invalid _path.length");

        if (_amountIn > 0) {
            if (_path.length == 1) {
                IRouter(router).pluginTransfer(_path[0], msg.sender, address(this), _amountIn);
            } else {
                IRouter(router).pluginTransfer(_path[0], msg.sender, vault, _amountIn);
                _amountIn = _swap(_path, _minOut, address(this));
            }

            uint256 afterFeeAmount = _collectFees(msg.sender, _path, _amountIn, _indexToken, _isLong, _sizeDelta);
            IERC20(_path[_path.length - 1]).safeTransfer(vault, afterFeeAmount);
        }

        _increasePosition(msg.sender, _path[_path.length - 1], _indexToken, _sizeDelta, _isLong, _price);
    }

    function increasePositionETH(
        address[] memory _path,
        address _indexToken,
        uint256 _minOut,
        uint256 _sizeDelta,
        bool _isLong,
        uint256 _price
    ) external payable nonReentrant onlyPartnersOrLegacyMode {
        require(_path.length == 1 || _path.length == 2, "PositionManager: invalid _path.length");
        require(_path[0] == weth, "PositionManager: invalid _path");

        if (msg.value > 0) {
            _transferInETH();
            uint256 _amountIn = msg.value;

            if (_path.length > 1) {
                IERC20(weth).safeTransfer(vault, msg.value);
                _amountIn = _swap(_path, _minOut, address(this));
            }

            uint256 afterFeeAmount = _collectFees(msg.sender, _path, _amountIn, _indexToken, _isLong, _sizeDelta);
            IERC20(_path[_path.length - 1]).safeTransfer(vault, afterFeeAmount);
        }

        _increasePosition(msg.sender, _path[_path.length - 1], _indexToken, _sizeDelta, _isLong, _price);
    }

    function decreasePosition(
        address _collateralToken,
        address _indexToken,
        uint256 _collateralDelta,
        uint256 _sizeDelta,
        bool _isLong,
        address _receiver,
        uint256 _price
    ) external nonReentrant onlyPartnersOrLegacyMode {
        _decreasePosition(msg.sender, _collateralToken, _indexToken, _collateralDelta, _sizeDelta, _isLong, _receiver, _price);
    }

    function decreasePositionETH(
        address _collateralToken,
        address _indexToken,
        uint256 _collateralDelta,
        uint256 _sizeDelta,
        bool _isLong,
        address payable _receiver,
        uint256 _price
    ) external nonReentrant onlyPartnersOrLegacyMode {
        require(_collateralToken == weth, "PositionManager: invalid _collateralToken");

        uint256 amountOut = _decreasePosition(msg.sender, _collateralToken, _indexToken, _collateralDelta, _sizeDelta, _isLong, address(this), _price);
        _transferOutETHWithGasLimitIgnoreFail(amountOut, _receiver);
    }

    function decreasePositionAndSwap(
        address[] memory _path,
        address _indexToken,
        uint256 _collateralDelta,
        uint256 _sizeDelta,
        bool _isLong,
        address _receiver,
        uint256 _price,
        uint256 _minOut
    ) external nonReentrant onlyPartnersOrLegacyMode {
        require(_path.length == 2, "PositionManager: invalid _path.length");

        uint256 amount = _decreasePosition(msg.sender, _path[0], _indexToken, _collateralDelta, _sizeDelta, _isLong, address(this), _price);
        IERC20(_path[0]).safeTransfer(vault, amount);
        _swap(_path, _minOut, _receiver);
    }

    function decreasePositionAndSwapETH(
        address[] memory _path,
        address _indexToken,
        uint256 _collateralDelta,
        uint256 _sizeDelta,
        bool _isLong,
        address payable _receiver,
        uint256 _price,
        uint256 _minOut
    ) external nonReentrant onlyPartnersOrLegacyMode {
        require(_path.length == 2, "PositionManager: invalid _path.length");
        require(_path[_path.length - 1] == weth, "PositionManager: invalid _path");

        uint256 amount = _decreasePosition(msg.sender, _path[0], _indexToken, _collateralDelta, _sizeDelta, _isLong, address(this), _price);
        IERC20(_path[0]).safeTransfer(vault, amount);
        uint256 amountOut = _swap(_path, _minOut, address(this));
        _transferOutETHWithGasLimitIgnoreFail(amountOut, _receiver);
    }

    function liquidatePosition(
        address _account,
        address _collateralToken,
        address _indexToken,
        bool _isLong,
        address _feeReceiver
    ) external nonReentrant onlyLiquidator {
        address _vault = vault;
        address timelock = IVault(_vault).gov();
        (uint256 size, , , , , , , ) = IVault(vault).getPosition(_account, _collateralToken, _indexToken, _isLong);

        uint256 markPrice = _isLong ? IVault(_vault).getMinPrice(_indexToken) : IVault(_vault).getMaxPrice(_indexToken);
        // should be called strictly before position is updated in Vault
        IShortsTracker(shortsTracker).updateGlobalShortData(_account, _collateralToken, _indexToken, _isLong, size, markPrice, false);

        ITimelock(timelock).enableLeverage(_vault);
        IVault(_vault).liquidatePosition(_account, _collateralToken, _indexToken, _isLong, _feeReceiver);
        ITimelock(timelock).disableLeverage(_vault);
    }

    function executeSwapOrder(address _account, uint256 _orderIndex, address payable _feeReceiver) external onlyOrderKeeper {
        IOrderBook(orderBook).executeSwapOrder(_account, _orderIndex, _feeReceiver);
    }

    function executeIncreaseOrder(address _account, uint256 _orderIndex, address payable _feeReceiver) external onlyOrderKeeper {
        _validateIncreaseOrder(_account, _orderIndex);

        address _vault = vault;
        address timelock = IVault(_vault).gov();

        (
            /*address purchaseToken*/,
            /*uint256 purchaseTokenAmount*/,
            address collateralToken,
            address indexToken,
            uint256 sizeDelta,
            bool isLong,
            /*uint256 triggerPrice*/,
            /*bool triggerAboveThreshold*/,
            /*uint256 executionFee*/
        ) = IOrderBook(orderBook).getIncreaseOrder(_account, _orderIndex);

        uint256 markPrice = isLong ? IVault(_vault).getMaxPrice(indexToken) : IVault(_vault).getMinPrice(indexToken);
        // should be called strictly before position is updated in Vault
        IShortsTracker(shortsTracker).updateGlobalShortData(_account, collateralToken, indexToken, isLong, sizeDelta, markPrice, true);

        ITimelock(timelock).enableLeverage(_vault);
        IOrderBook(orderBook).executeIncreaseOrder(_account, _orderIndex, _feeReceiver);
        ITimelock(timelock).disableLeverage(_vault);

        _emitIncreasePositionReferral(_account, sizeDelta);
    }

    function executeDecreaseOrder(address _account, uint256 _orderIndex, address payable _feeReceiver) external onlyOrderKeeper {
        address _vault = vault;
        address timelock = IVault(_vault).gov();

        (
            address collateralToken,
            /*uint256 collateralDelta*/,
            address indexToken,
            uint256 sizeDelta,
            bool isLong,
            /*uint256 triggerPrice*/,
            /*bool triggerAboveThreshold*/,
            /*uint256 executionFee*/
        ) = IOrderBook(orderBook).getDecreaseOrder(_account, _orderIndex);

        uint256 markPrice = isLong ? IVault(_vault).getMinPrice(indexToken) : IVault(_vault).getMaxPrice(indexToken);
        // should be called strictly before position is updated in Vault
        IShortsTracker(shortsTracker).updateGlobalShortData(_account, collateralToken, indexToken, isLong, sizeDelta, markPrice, false);

        ITimelock(timelock).enableLeverage(_vault);
        IOrderBook(orderBook).executeDecreaseOrder(_account, _orderIndex, _feeReceiver);
        ITimelock(timelock).disableLeverage(_vault);

        _emitDecreasePositionReferral(_account, sizeDelta);
    }

    function _validateIncreaseOrder(address _account, uint256 _orderIndex) internal view {
        (
            address _purchaseToken,
            uint256 _purchaseTokenAmount,
            address _collateralToken,
            address _indexToken,
            uint256 _sizeDelta,
            bool _isLong,
            , // triggerPrice
            , // triggerAboveThreshold
            // executionFee
        ) = IOrderBook(orderBook).getIncreaseOrder(_account, _orderIndex);

        _validateMaxGlobalSize(_indexToken, _isLong, _sizeDelta);

        if (!shouldValidateIncreaseOrder) { return; }

        // shorts are okay
        if (!_isLong) { return; }

        // if the position size is not increasing, this is a collateral deposit
        require(_sizeDelta > 0, "PositionManager: long deposit");

        IVault _vault = IVault(vault);
        (uint256 size, uint256 collateral, , , , , , ) = _vault.getPosition(_account, _collateralToken, _indexToken, _isLong);

        // if there is no existing position, do not charge a fee
        if (size == 0) { return; }

        uint256 nextSize = size.add(_sizeDelta);
        uint256 collateralDelta = _vault.tokenToUsdMin(_purchaseToken, _purchaseTokenAmount);
        uint256 nextCollateral = collateral.add(collateralDelta);

        uint256 prevLeverage = size.mul(BASIS_POINTS_DIVISOR).div(collateral);
        // allow for a maximum of a increasePositionBufferBps decrease since there might be some swap fees taken from the collateral
        uint256 nextLeverageWithBuffer = nextSize.mul(BASIS_POINTS_DIVISOR + increasePositionBufferBps).div(nextCollateral);

        require(nextLeverageWithBuffer >= prevLeverage, "PositionManager: long leverage decrease");
    }
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_vault","type":"address"},{"internalType":"address","name":"_router","type":"address"},{"internalType":"address","name":"_shortsTracker","type":"address"},{"internalType":"address","name":"_weth","type":"address"},{"internalType":"uint256","name":"_depositFee","type":"uint256"},{"internalType":"address","name":"_orderBook","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"uint256","name":"sizeDelta","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"marginFeeBasisPoints","type":"uint256"},{"indexed":false,"internalType":"bytes32","name":"referralCode","type":"bytes32"},{"indexed":false,"internalType":"address","name":"referrer","type":"address"}],"name":"DecreasePositionReferral","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"uint256","name":"sizeDelta","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"marginFeeBasisPoints","type":"uint256"},{"indexed":false,"internalType":"bytes32","name":"referralCode","type":"bytes32"},{"indexed":false,"internalType":"address","name":"referrer","type":"address"}],"name":"IncreasePositionReferral","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"admin","type":"address"}],"name":"SetAdmin","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"depositFee","type":"uint256"}],"name":"SetDepositFee","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bool","name":"inLegacyMode","type":"bool"}],"name":"SetInLegacyMode","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"increasePositionBufferBps","type":"uint256"}],"name":"SetIncreasePositionBufferBps","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"bool","name":"isActive","type":"bool"}],"name":"SetLiquidator","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address[]","name":"tokens","type":"address[]"},{"indexed":false,"internalType":"uint256[]","name":"longSizes","type":"uint256[]"},{"indexed":false,"internalType":"uint256[]","name":"shortSizes","type":"uint256[]"}],"name":"SetMaxGlobalSizes","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"bool","name":"isActive","type":"bool"}],"name":"SetOrderKeeper","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"bool","name":"isActive","type":"bool"}],"name":"SetPartner","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"referralStorage","type":"address"}],"name":"SetReferralStorage","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bool","name":"shouldValidateIncreaseOrder","type":"bool"}],"name":"SetShouldValidateIncreaseOrder","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"token","type":"address"},{"indexed":false,"internalType":"address","name":"receiver","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"WithdrawFees","type":"event"},{"inputs":[],"name":"BASIS_POINTS_DIVISOR","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"admin","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"},{"internalType":"address","name":"_spender","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_collateralToken","type":"address"},{"internalType":"address","name":"_indexToken","type":"address"},{"internalType":"uint256","name":"_collateralDelta","type":"uint256"},{"internalType":"uint256","name":"_sizeDelta","type":"uint256"},{"internalType":"bool","name":"_isLong","type":"bool"},{"internalType":"address","name":"_receiver","type":"address"},{"internalType":"uint256","name":"_price","type":"uint256"}],"name":"decreasePosition","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"_path","type":"address[]"},{"internalType":"address","name":"_indexToken","type":"address"},{"internalType":"uint256","name":"_collateralDelta","type":"uint256"},{"internalType":"uint256","name":"_sizeDelta","type":"uint256"},{"internalType":"bool","name":"_isLong","type":"bool"},{"internalType":"address","name":"_receiver","type":"address"},{"internalType":"uint256","name":"_price","type":"uint256"},{"internalType":"uint256","name":"_minOut","type":"uint256"}],"name":"decreasePositionAndSwap","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"_path","type":"address[]"},{"internalType":"address","name":"_indexToken","type":"address"},{"internalType":"uint256","name":"_collateralDelta","type":"uint256"},{"internalType":"uint256","name":"_sizeDelta","type":"uint256"},{"internalType":"bool","name":"_isLong","type":"bool"},{"internalType":"address payable","name":"_receiver","type":"address"},{"internalType":"uint256","name":"_price","type":"uint256"},{"internalType":"uint256","name":"_minOut","type":"uint256"}],"name":"decreasePositionAndSwapETH","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_collateralToken","type":"address"},{"internalType":"address","name":"_indexToken","type":"address"},{"internalType":"uint256","name":"_collateralDelta","type":"uint256"},{"internalType":"uint256","name":"_sizeDelta","type":"uint256"},{"internalType":"bool","name":"_isLong","type":"bool"},{"internalType":"address payable","name":"_receiver","type":"address"},{"internalType":"uint256","name":"_price","type":"uint256"}],"name":"decreasePositionETH","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"depositFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_account","type":"address"},{"internalType":"uint256","name":"_orderIndex","type":"uint256"},{"internalType":"address payable","name":"_feeReceiver","type":"address"}],"name":"executeDecreaseOrder","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_account","type":"address"},{"internalType":"uint256","name":"_orderIndex","type":"uint256"},{"internalType":"address payable","name":"_feeReceiver","type":"address"}],"name":"executeIncreaseOrder","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_account","type":"address"},{"internalType":"uint256","name":"_orderIndex","type":"uint256"},{"internalType":"address payable","name":"_feeReceiver","type":"address"}],"name":"executeSwapOrder","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"feeReserves","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"gov","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"inLegacyMode","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"_path","type":"address[]"},{"internalType":"address","name":"_indexToken","type":"address"},{"internalType":"uint256","name":"_amountIn","type":"uint256"},{"internalType":"uint256","name":"_minOut","type":"uint256"},{"internalType":"uint256","name":"_sizeDelta","type":"uint256"},{"internalType":"bool","name":"_isLong","type":"bool"},{"internalType":"uint256","name":"_price","type":"uint256"}],"name":"increasePosition","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"increasePositionBufferBps","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"_path","type":"address[]"},{"internalType":"address","name":"_indexToken","type":"address"},{"internalType":"uint256","name":"_minOut","type":"uint256"},{"internalType":"uint256","name":"_sizeDelta","type":"uint256"},{"internalType":"bool","name":"_isLong","type":"bool"},{"internalType":"uint256","name":"_price","type":"uint256"}],"name":"increasePositionETH","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"isLiquidator","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"isOrderKeeper","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"isPartner","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_account","type":"address"},{"internalType":"address","name":"_collateralToken","type":"address"},{"internalType":"address","name":"_indexToken","type":"address"},{"internalType":"bool","name":"_isLong","type":"bool"},{"internalType":"address","name":"_feeReceiver","type":"address"}],"name":"liquidatePosition","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"maxGlobalLongSizes","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"maxGlobalShortSizes","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"orderBook","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"referralStorage","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"router","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address payable","name":"_receiver","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"sendValue","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_admin","type":"address"}],"name":"setAdmin","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_depositFee","type":"uint256"}],"name":"setDepositFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_gov","type":"address"}],"name":"setGov","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_inLegacyMode","type":"bool"}],"name":"setInLegacyMode","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_increasePositionBufferBps","type":"uint256"}],"name":"setIncreasePositionBufferBps","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_account","type":"address"},{"internalType":"bool","name":"_isActive","type":"bool"}],"name":"setLiquidator","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"_tokens","type":"address[]"},{"internalType":"uint256[]","name":"_longSizes","type":"uint256[]"},{"internalType":"uint256[]","name":"_shortSizes","type":"uint256[]"}],"name":"setMaxGlobalSizes","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_account","type":"address"},{"internalType":"bool","name":"_isActive","type":"bool"}],"name":"setOrderKeeper","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_account","type":"address"},{"internalType":"bool","name":"_isActive","type":"bool"}],"name":"setPartner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_referralStorage","type":"address"}],"name":"setReferralStorage","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_shouldValidateIncreaseOrder","type":"bool"}],"name":"setShouldValidateIncreaseOrder","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"shortsTracker","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"shouldValidateIncreaseOrder","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"vault","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"weth","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"},{"internalType":"address","name":"_receiver","type":"address"}],"name":"withdrawFees","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]

60806040526064600855600d805460ff60a81b1916600160a81b1790553480156200002957600080fd5b506040516200537a3803806200537a833981810160405260c08110156200004f57600080fd5b508051602082015160408301516060840151608085015160a0909501516001600081905580546001600160a01b03191633179055939492939192909185858585856001600160a01b038516620000dc576040805162461bcd60e51b815260206004820152600d60248201526c57726f6e67206164647265737360981b604482015290519081900360640190fd5b6001600160a01b03841662000128576040805162461bcd60e51b815260206004820152600d60248201526c57726f6e67206164647265737360981b604482015290519081900360640190fd5b6001600160a01b03831662000174576040805162461bcd60e51b815260206004820152600d60248201526c57726f6e67206164647265737360981b604482015290519081900360640190fd5b6001600160a01b038216620001c0576040805162461bcd60e51b815260206004820152600d60248201526c57726f6e67206164647265737360981b604482015290519081900360640190fd5b600380546001600160a01b039687166001600160a01b031991821617909155600580549587169582169590951790945560068054928616928516929092179091556007556004805491841691831691909117905560028054821633179055600d8054939092169216919091179055505050505061513780620002436000396000f3fe6080604052600436106101ef5760003560e01c80626cc35e1461024457806307c7edc3146102755780631045c74e146102b857806311d9444a146102fd578063126082cf1461034057806312d43a51146103555780631b9043591461036a5780631ce9cb8f146103965780631e261538146103c957806321acf65914610404578063233bfe3b1461043f57806324a084df146104695780633039e37f146104a25780633833f5f5146105825780633fc8cef3146105c9578063430ed37c146105de5780634453a3741461063d5780634584bd4b14610678578063490ae2101461068d578063529a356f146106b75780635fc8500e146106ea578063657bc5d0146107ca57806367a52793146107df578063704b6c02146107f4578063776af5ba146108275780638c0f9aac1461083c57806390205d8c1461086f5780639698d25a146108ce57806398d1e03a146109015780639c95332f14610916578063ae4d7f9a14610942578063b32755de14610975578063b7ddc99214610a38578063cfad57a214610b0e578063d38ab51914610b41578063d4ca83f914610b84578063de2ea94814610b99578063e1f21c6714610bee578063ef12c67e14610c31578063f255527814610de3578063f851a44014610e1e578063f887ea4014610e33578063fbfa77cf14610e485761023f565b3661023f576006546001600160a01b0316331461023d5760405162461bcd60e51b81526004018080602001828103825260238152602001806150906023913960400191505060405180910390fd5b005b600080fd5b34801561025057600080fd5b50610259610e5d565b604080516001600160a01b039092168252519081900360200190f35b34801561028157600080fd5b5061023d6004803603606081101561029857600080fd5b506001600160a01b03813581169160208101359160409091013516610e6c565b3480156102c457600080fd5b506102eb600480360360208110156102db57600080fd5b50356001600160a01b0316610f38565b60408051918252519081900360200190f35b34801561030957600080fd5b5061023d6004803603606081101561032057600080fd5b506001600160a01b03813581169160208101359160409091013516610f4a565b34801561034c57600080fd5b506102eb6113aa565b34801561036157600080fd5b506102596113b0565b34801561037657600080fd5b5061023d6004803603602081101561038d57600080fd5b503515156113bf565b3480156103a257600080fd5b506102eb600480360360208110156103b957600080fd5b50356001600160a01b031661145f565b3480156103d557600080fd5b5061023d600480360360408110156103ec57600080fd5b506001600160a01b0381351690602001351515611471565b34801561041057600080fd5b5061023d6004803603604081101561042757600080fd5b506001600160a01b038135169060200135151561151e565b34801561044b57600080fd5b5061023d6004803603602081101561046257600080fd5b50356115cf565b34801561047557600080fd5b5061023d6004803603604081101561048c57600080fd5b506001600160a01b038135169060200135611657565b3480156104ae57600080fd5b5061023d60048036036101008110156104c657600080fd5b810190602081018135600160201b8111156104e057600080fd5b8201836020820111156104f257600080fd5b803590602001918460208302840111600160201b8311171561051357600080fd5b919080806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250929550505081356001600160a01b0390811693506020830135926040810135925060608101351515916080820135169060a08101359060c001356116bb565b34801561058e57600080fd5b506105b5600480360360208110156105a557600080fd5b50356001600160a01b03166118b6565b604080519115158252519081900360200190f35b3480156105d557600080fd5b506102596118cb565b3480156105ea57600080fd5b5061023d600480360360e081101561060157600080fd5b506001600160a01b0381358116916020810135821691604082013591606081013591608082013515159160a08101359091169060c001356118da565b34801561064957600080fd5b5061023d6004803603604081101561066057600080fd5b506001600160a01b0381351690602001351515611a03565b34801561068457600080fd5b506105b5611ab0565b34801561069957600080fd5b5061023d600480360360208110156106b057600080fd5b5035611ac0565b3480156106c357600080fd5b506105b5600480360360208110156106da57600080fd5b50356001600160a01b0316611b48565b3480156106f657600080fd5b5061023d600480360361010081101561070e57600080fd5b810190602081018135600160201b81111561072857600080fd5b82018360208201111561073a57600080fd5b803590602001918460208302840111600160201b8311171561075b57600080fd5b919080806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250929550505081356001600160a01b0390811693506020830135926040810135925060608101351515916080820135169060a08101359060c00135611b5d565b3480156107d657600080fd5b50610259611c94565b3480156107eb57600080fd5b506102eb611ca3565b34801561080057600080fd5b5061023d6004803603602081101561081757600080fd5b50356001600160a01b0316611ca9565b34801561083357600080fd5b50610259611d95565b34801561084857600080fd5b506105b56004803603602081101561085f57600080fd5b50356001600160a01b0316611da4565b34801561087b57600080fd5b5061023d600480360360e081101561089257600080fd5b506001600160a01b0381358116916020810135821691604082013591606081013591608082013515159160a08101359091169060c00135611db9565b3480156108da57600080fd5b506102eb600480360360208110156108f157600080fd5b50356001600160a01b0316611e79565b34801561090d57600080fd5b506102eb611e8b565b34801561092257600080fd5b5061023d6004803603602081101561093957600080fd5b50351515611e91565b34801561094e57600080fd5b5061023d6004803603602081101561096557600080fd5b50356001600160a01b0316611f31565b61023d600480360360c081101561098b57600080fd5b810190602081018135600160201b8111156109a557600080fd5b8201836020820111156109b757600080fd5b803590602001918460208302840111600160201b831117156109d857600080fd5b919080806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250929550506001600160a01b038335169350505060208101359060408101359060608101351515906080013561201d565b348015610a4457600080fd5b5061023d600480360360e0811015610a5b57600080fd5b810190602081018135600160201b811115610a7557600080fd5b820183602082011115610a8757600080fd5b803590602001918460208302840111600160201b83111715610aa857600080fd5b919080806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250929550506001600160a01b0383351693505050602081013590604081013590606081013590608081013515159060a0013561223c565b348015610b1a57600080fd5b5061023d60048036036020811015610b3157600080fd5b50356001600160a01b031661251b565b348015610b4d57600080fd5b5061023d60048036036060811015610b6457600080fd5b506001600160a01b0381358116916020810135916040909101351661258a565b348015610b9057600080fd5b506105b56129eb565b348015610ba557600080fd5b5061023d600480360360a0811015610bbc57600080fd5b506001600160a01b038135811691602081013582169160408201358116916060810135151591608090910135166129fb565b348015610bfa57600080fd5b5061023d60048036036060811015610c1157600080fd5b506001600160a01b03813581169160208101359091169060400135612ea0565b348015610c3d57600080fd5b5061023d60048036036060811015610c5457600080fd5b810190602081018135600160201b811115610c6e57600080fd5b820183602082011115610c8057600080fd5b803590602001918460208302840111600160201b83111715610ca157600080fd5b9190808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152509295949360208101935035915050600160201b811115610cf057600080fd5b820183602082011115610d0257600080fd5b803590602001918460208302840111600160201b83111715610d2357600080fd5b9190808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152509295949360208101935035915050600160201b811115610d7257600080fd5b820183602082011115610d8457600080fd5b803590602001918460208302840111600160201b83111715610da557600080fd5b919080806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250929550612f75945050505050565b348015610def57600080fd5b5061023d60048036036040811015610e0657600080fd5b506001600160a01b0381358116916020013516613164565b348015610e2a57600080fd5b50610259613248565b348015610e3f57600080fd5b50610259613257565b348015610e5457600080fd5b50610259613266565b6009546001600160a01b031681565b336000908152600e602052604090205460ff16610ebe576040805162461bcd60e51b815260206004820152601a6024820152600080516020614ff7833981519152604482015290519081900360640190fd5b600d54604080516307c7edc360e01b81526001600160a01b038681166004830152602482018690528481166044830152915191909216916307c7edc391606480830192600092919082900301818387803b158015610f1b57600080fd5b505af1158015610f2f573d6000803e3d6000fd5b50505050505050565b600b6020526000908152604090205481565b336000908152600e602052604090205460ff16610f9c576040805162461bcd60e51b815260206004820152601a6024820152600080516020614ff7833981519152604482015290519081900360640190fd5b600354604080516312d43a5160e01b815290516001600160a01b039092169160009183916312d43a5191600480820192602092909190829003018186803b158015610fe657600080fd5b505afa158015610ffa573d6000803e3d6000fd5b505050506040513d602081101561101057600080fd5b5051600d5460408051630130197760e11b81526001600160a01b03898116600483015260248201899052915193945060009384938493849391169163026032ee9160448082019261010092909190829003018186803b15801561107257600080fd5b505afa158015611086573d6000803e3d6000fd5b505050506040513d61010081101561109d57600080fd5b508051604082015160608301516080909301519196509450909250905060008161113f57866001600160a01b031663e124e6d2856040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b15801561110e57600080fd5b505afa158015611122573d6000803e3d6000fd5b505050506040513d602081101561113857600080fd5b50516111b9565b866001600160a01b03166381a612d6856040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b15801561118c57600080fd5b505afa1580156111a0573d6000803e3d6000fd5b505050506040513d60208110156111b657600080fd5b50515b6004805460408051633cc8e33b60e21b81526001600160a01b038f8116948201949094528984166024820152888416604482015286151560648201526084810188905260a48101859052600060c482018190529151949550929091169263f3238cec9260e480820193929182900301818387803b15801561123957600080fd5b505af115801561124d573d6000803e3d6000fd5b50505050856001600160a01b0316636d63c1d0886040518263ffffffff1660e01b815260040180826001600160a01b03168152602001915050600060405180830381600087803b1580156112a057600080fd5b505af11580156112b4573d6000803e3d6000fd5b5050600d54604080516308eca22560e11b81526001600160a01b038f81166004830152602482018f90528d8116604483015291519190921693506311d9444a9250606480830192600092919082900301818387803b15801561131557600080fd5b505af1158015611329573d6000803e3d6000fd5b50505050856001600160a01b031663d3c87bbb886040518263ffffffff1660e01b815260040180826001600160a01b03168152602001915050600060405180830381600087803b15801561137c57600080fd5b505af1158015611390573d6000803e3d6000fd5b5050505061139e8a84613275565b50505050505050505050565b61271081565b6001546001600160a01b031681565b6002546001600160a01b0316331461140c576040805162461bcd60e51b815260206004820152601e6024820152600080516020614f36833981519152604482015290519081900360640190fd5b600d8054821515600160a81b810260ff60a81b199092169190911790915560408051918252517fa956222e37fe025ff51e5440ac729a9bd417ff91e485e14dcffa2c0ba8894f409181900360200190a150565b600a6020526000908152604090205481565b6002546001600160a01b031633146114be576040805162461bcd60e51b815260206004820152601e6024820152600080516020614f36833981519152604482015290519081900360640190fd5b6001600160a01b0382166000818152600e6020908152604091829020805460ff1916851515908117909155825190815291517f1d5bc0255b943d6a5b5279e8a55d74d620baccbceecb25e87a3558f14c4c118e9281900390910190a25050565b6002546001600160a01b0316331461156b576040805162461bcd60e51b815260206004820152601e6024820152600080516020614f36833981519152604482015290519081900360640190fd5b6001600160a01b0382166000818152600f6020908152604091829020805460ff191685151590811790915582519384529083015280517fa4e46c70ff429a91de7d1716d736e877c7cca1c22ac850b23d242530dd95e4749281900390910190a15050565b6002546001600160a01b0316331461161c576040805162461bcd60e51b815260206004820152601e6024820152600080516020614f36833981519152604482015290519081900360640190fd5b60088190556040805182815290517f21167d0d4661af93817ebce920f18986eed3d75d5e1c03f2aed05efcbafbc4529181900360200190a150565b6001546001600160a01b031633146116a4576040805162461bcd60e51b81526020600482015260156024820152600080516020614e5b833981519152604482015290519081900360640190fd5b6116b76001600160a01b038316826133fe565b5050565b60026000541415611701576040805162461bcd60e51b815260206004820152601f6024820152600080516020614e3b833981519152604482015290519081900360640190fd5b60026000908155338152600f602052604090205460ff168061172c5750600d54600160a01b900460ff165b61176b576040805162461bcd60e51b815260206004820152601a6024820152600080516020614ff7833981519152604482015290519081900360640190fd5b87516002146117ab5760405162461bcd60e51b81526004018080602001828103825260258152602001806150dd6025913960400191505060405180910390fd5b60065488516001600160a01b0390911690899060001981019081106117cc57fe5b60200260200101516001600160a01b03161461181d576040805162461bcd60e51b815260206004820152601e6024820152600080516020614f56833981519152604482015290519081900360640190fd5b6000611843338a60008151811061183057fe5b60200260200101518a8a8a8a308a6134e8565b905061188c600360009054906101000a90046001600160a01b0316828b60008151811061186c57fe5b60200260200101516001600160a01b03166139819092919063ffffffff16565b60006118998a84306139d3565b90506118a58186613a58565b505060016000555050505050505050565b600e6020526000908152604090205460ff1681565b6006546001600160a01b031681565b60026000541415611920576040805162461bcd60e51b815260206004820152601f6024820152600080516020614e3b833981519152604482015290519081900360640190fd5b60026000908155338152600f602052604090205460ff168061194b5750600d54600160a01b900460ff165b61198a576040805162461bcd60e51b815260206004820152601a6024820152600080516020614ff7833981519152604482015290519081900360640190fd5b6006546001600160a01b038881169116146119d65760405162461bcd60e51b81526004018080602001828103825260298152602001806150676029913960400191505060405180910390fd5b60006119e833898989898930896134e8565b90506119f48184613a58565b50506001600055505050505050565b6002546001600160a01b03163314611a50576040805162461bcd60e51b815260206004820152601e6024820152600080516020614f36833981519152604482015290519081900360640190fd5b6001600160a01b038216600081815260106020908152604091829020805460ff1916851515908117909155825190815291517f8c0d56805c3b43d441481229dc64bee168253ffe4305f37ab7cfe63b1c4268c69281900390910190a25050565b600d54600160a81b900460ff1681565b6002546001600160a01b03163314611b0d576040805162461bcd60e51b815260206004820152601e6024820152600080516020614f36833981519152604482015290519081900360640190fd5b60078190556040805182815290517f974fd3c1fcb4653dfc4fb740c4c692cd212d55c28f163f310128cb64d83006759181900360200190a150565b60106020526000908152604090205460ff1681565b60026000541415611ba3576040805162461bcd60e51b815260206004820152601f6024820152600080516020614e3b833981519152604482015290519081900360640190fd5b60026000908155338152600f602052604090205460ff1680611bce5750600d54600160a01b900460ff165b611c0d576040805162461bcd60e51b815260206004820152601a6024820152600080516020614ff7833981519152604482015290519081900360640190fd5b8751600214611c4d5760405162461bcd60e51b81526004018080602001828103825260258152602001806150dd6025913960400191505060405180910390fd5b6000611c60338a60008151811061183057fe5b9050611c89600360009054906101000a90046001600160a01b0316828b60008151811061186c57fe5b6118a58983866139d3565b6004546001600160a01b031681565b60075481565b6001546001600160a01b03163314611cf6576040805162461bcd60e51b81526020600482015260156024820152600080516020614e5b833981519152604482015290519081900360640190fd5b6001600160a01b038116611d41576040805162461bcd60e51b815260206004820152600d60248201526c57726f6e67206164647265737360981b604482015290519081900360640190fd5b600280546001600160a01b0383166001600160a01b0319909116811790915560408051918252517f5a272403b402d892977df56625f4164ccaf70ca3863991c43ecfe76a6905b0a19181900360200190a150565b600d546001600160a01b031681565b600f6020526000908152604090205460ff1681565b60026000541415611dff576040805162461bcd60e51b815260206004820152601f6024820152600080516020614e3b833981519152604482015290519081900360640190fd5b60026000908155338152600f602052604090205460ff1680611e2a5750600d54600160a01b900460ff165b611e69576040805162461bcd60e51b815260206004820152601a6024820152600080516020614ff7833981519152604482015290519081900360640190fd5b6119f433888888888888886134e8565b600c6020526000908152604090205481565b60085481565b6002546001600160a01b03163314611ede576040805162461bcd60e51b815260206004820152601e6024820152600080516020614f36833981519152604482015290519081900360640190fd5b600d8054821515600160a01b810260ff60a01b199092169190911790915560408051918252517feac6b3611e79ff0d8ea5daa8439f6b1ab7eea4ebf95f1dd360417f712c3fc3049181900360200190a150565b6002546001600160a01b03163314611f7e576040805162461bcd60e51b815260206004820152601e6024820152600080516020614f36833981519152604482015290519081900360640190fd5b6001600160a01b038116611fc9576040805162461bcd60e51b815260206004820152600d60248201526c57726f6e67206164647265737360981b604482015290519081900360640190fd5b600980546001600160a01b0383166001600160a01b0319909116811790915560408051918252517f828abcccea18192c21d645e575652c49e20b986dab777906fc473d056b01b6a89181900360200190a150565b60026000541415612063576040805162461bcd60e51b815260206004820152601f6024820152600080516020614e3b833981519152604482015290519081900360640190fd5b60026000908155338152600f602052604090205460ff168061208e5750600d54600160a01b900460ff165b6120cd576040805162461bcd60e51b815260206004820152601a6024820152600080516020614ff7833981519152604482015290519081900360640190fd5b8551600114806120de575085516002145b6121195760405162461bcd60e51b81526004018080602001828103825260258152602001806150dd6025913960400191505060405180910390fd5b60065486516001600160a01b0390911690879060009061213557fe5b60200260200101516001600160a01b031614612186576040805162461bcd60e51b815260206004820152601e6024820152600080516020614f56833981519152604482015290519081900360640190fd5b341561220a57612194613b64565b85513490600110156121cb576003546006546121bd916001600160a01b03918216911634613981565b6121c88786306139d3565b90505b60006121db3389848a888a613bd0565b9050612207600360009054906101000a90046001600160a01b0316828a60018c51038151811061186c57fe5b50505b61222f338760018951038151811061221e57fe5b602002602001015187868686613caf565b5050600160005550505050565b60026000541415612282576040805162461bcd60e51b815260206004820152601f6024820152600080516020614e3b833981519152604482015290519081900360640190fd5b60026000908155338152600f602052604090205460ff16806122ad5750600d54600160a01b900460ff165b6122ec576040805162461bcd60e51b815260206004820152601a6024820152600080516020614ff7833981519152604482015290519081900360640190fd5b8651600114806122fd575086516002145b6123385760405162461bcd60e51b81526004018080602001828103825260258152602001806150dd6025913960400191505060405180910390fd5b84156124e8578651600114156123f85760055487516001600160a01b0390911690631b82787890899060009061236a57fe5b60200260200101513330896040518563ffffffff1660e01b815260040180856001600160a01b03168152602001846001600160a01b03168152602001836001600160a01b03168152602001828152602001945050505050600060405180830381600087803b1580156123db57600080fd5b505af11580156123ef573d6000803e3d6000fd5b505050506124aa565b60055487516001600160a01b0390911690631b82787890899060009061241a57fe5b6020908102919091010151600354604080516001600160e01b031960e086901b1681526001600160a01b0393841660048201523360248201529290911660448301526064820189905251608480830192600092919082900301818387803b15801561248457600080fd5b505af1158015612498573d6000803e3d6000fd5b505050506124a78785306139d3565b94505b60006124ba3389888a8789613bd0565b90506124e6600360009054906101000a90046001600160a01b0316828a60018c51038151811061186c57fe5b505b61250d338860018a5103815181106124fc57fe5b602002602001015188868686613caf565b505060016000555050505050565b6001546001600160a01b03163314612568576040805162461bcd60e51b81526020600482015260156024820152600080516020614e5b833981519152604482015290519081900360640190fd5b600180546001600160a01b0319166001600160a01b0392909216919091179055565b336000908152600e602052604090205460ff166125dc576040805162461bcd60e51b815260206004820152601a6024820152600080516020614ff7833981519152604482015290519081900360640190fd5b6125e683836140b7565b600354604080516312d43a5160e01b815290516001600160a01b039092169160009183916312d43a5191600480820192602092909190829003018186803b15801561263057600080fd5b505afa158015612644573d6000803e3d6000fd5b505050506040513d602081101561265a57600080fd5b5051600d546040805163d3bab1d160e01b81526001600160a01b03898116600483015260248201899052915193945060009384938493849391169163d3bab1d19160448082019261012092909190829003018186803b1580156126bc57600080fd5b505afa1580156126d0573d6000803e3d6000fd5b505050506040513d6101208110156126e757600080fd5b5060408101516060820151608083015160a0909301519196509450909250905060008161278c57866001600160a01b03166381a612d6856040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b15801561275b57600080fd5b505afa15801561276f573d6000803e3d6000fd5b505050506040513d602081101561278557600080fd5b5051612806565b866001600160a01b031663e124e6d2856040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b1580156127d957600080fd5b505afa1580156127ed573d6000803e3d6000fd5b505050506040513d602081101561280357600080fd5b50515b6004805460408051633cc8e33b60e21b81526001600160a01b038f8116948201949094528984166024820152888416604482015286151560648201526084810188905260a48101859052600160c4820152905193945091169163f3238cec9160e48082019260009290919082900301818387803b15801561288657600080fd5b505af115801561289a573d6000803e3d6000fd5b50505050856001600160a01b0316636d63c1d0886040518263ffffffff1660e01b815260040180826001600160a01b03168152602001915050600060405180830381600087803b1580156128ed57600080fd5b505af1158015612901573d6000803e3d6000fd5b5050600d546040805163d38ab51960e01b81526001600160a01b038f81166004830152602482018f90528d81166044830152915191909216935063d38ab5199250606480830192600092919082900301818387803b15801561296257600080fd5b505af1158015612976573d6000803e3d6000fd5b50505050856001600160a01b031663d3c87bbb886040518263ffffffff1660e01b815260040180826001600160a01b03168152602001915050600060405180830381600087803b1580156129c957600080fd5b505af11580156129dd573d6000803e3d6000fd5b5050505061139e8a846143da565b600d54600160a01b900460ff1681565b60026000541415612a41576040805162461bcd60e51b815260206004820152601f6024820152600080516020614e3b833981519152604482015290519081900360640190fd5b600260009081553381526010602052604090205460ff16612a97576040805162461bcd60e51b815260206004820152601a6024820152600080516020614ff7833981519152604482015290519081900360640190fd5b600354604080516312d43a5160e01b815290516001600160a01b039092169160009183916312d43a5191600480820192602092909190829003018186803b158015612ae157600080fd5b505afa158015612af5573d6000803e3d6000fd5b505050506040513d6020811015612b0b57600080fd5b505160035460408051634a3f088d60e01b81526001600160a01b038b811660048301528a811660248301528981166044830152881515606483015291519394506000939190921691634a3f088d91608480830192610100929190829003018186803b158015612b7957600080fd5b505afa158015612b8d573d6000803e3d6000fd5b505050506040513d610100811015612ba457600080fd5b50519050600085612c2d57836001600160a01b031663e124e6d2886040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b158015612bfc57600080fd5b505afa158015612c10573d6000803e3d6000fd5b505050506040513d6020811015612c2657600080fd5b5051612ca7565b836001600160a01b03166381a612d6886040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b158015612c7a57600080fd5b505afa158015612c8e573d6000803e3d6000fd5b505050506040513d6020811015612ca457600080fd5b50515b6004805460408051633cc8e33b60e21b81526001600160a01b038e8116948201949094528c841660248201528b841660448201528a151560648201526084810187905260a48101859052600060c482018190529151949550929091169263f3238cec9260e480820193929182900301818387803b158015612d2757600080fd5b505af1158015612d3b573d6000803e3d6000fd5b50505050826001600160a01b0316636d63c1d0856040518263ffffffff1660e01b815260040180826001600160a01b03168152602001915050600060405180830381600087803b158015612d8e57600080fd5b505af1158015612da2573d6000803e3d6000fd5b505060408051631bc5d52960e31b81526001600160a01b038d811660048301528c811660248301528b811660448301528a1515606483015289811660848301529151918816935063de2ea948925060a48082019260009290919082900301818387803b158015612e1157600080fd5b505af1158015612e25573d6000803e3d6000fd5b50505050826001600160a01b031663d3c87bbb856040518263ffffffff1660e01b815260040180826001600160a01b03168152602001915050600060405180830381600087803b158015612e7857600080fd5b505af1158015612e8c573d6000803e3d6000fd5b505060016000555050505050505050505050565b6001546001600160a01b03163314612eed576040805162461bcd60e51b81526020600482015260156024820152600080516020614e5b833981519152604482015290519081900360640190fd5b826001600160a01b031663095ea7b383836040518363ffffffff1660e01b815260040180836001600160a01b0316815260200182815260200192505050602060405180830381600087803b158015612f4457600080fd5b505af1158015612f58573d6000803e3d6000fd5b505050506040513d6020811015612f6e57600080fd5b5050505050565b6002546001600160a01b03163314612fc2576040805162461bcd60e51b815260206004820152601e6024820152600080516020614f36833981519152604482015290519081900360640190fd5b60005b835181101561305d576000848281518110612fdc57fe5b60200260200101519050838281518110612ff257fe5b6020026020010151600b6000836001600160a01b03166001600160a01b031681526020019081526020016000208190555082828151811061302f57fe5b6020908102919091018101516001600160a01b039092166000908152600c9091526040902055600101612fc5565b507fae32d569b058895b9620d6552b09aaffedc9a6f396be4d595a224ad09f8b213983838360405180806020018060200180602001848103845287818151815260200191508051906020019060200280838360005b838110156130ca5781810151838201526020016130b2565b50505050905001848103835286818151815260200191508051906020019060200280838360005b838110156131095781810151838201526020016130f1565b50505050905001848103825285818151815260200191508051906020019060200280838360005b83811015613148578181015183820152602001613130565b50505050905001965050505050505060405180910390a1505050565b6002546001600160a01b031633146131b1576040805162461bcd60e51b815260206004820152601e6024820152600080516020614f36833981519152604482015290519081900360640190fd5b6001600160a01b0382166000908152600a6020526040902054806131d557506116b7565b6001600160a01b0383166000818152600a60205260408120556131f9908383613981565b604080516001600160a01b0380861682528416602082015280820183905290517f4f1b51dd7a2fcb861aa2670f668be66835c4ee12b4bbbf037e4d0018f39819e49181900360600190a1505050565b6002546001600160a01b031681565b6005546001600160a01b031681565b6003546001600160a01b031681565b6009546001600160a01b03168061328c57506116b7565b600080826001600160a01b031663534ef883866040518263ffffffff1660e01b815260040180826001600160a01b03168152602001915050604080518083038186803b1580156132db57600080fd5b505afa1580156132ef573d6000803e3d6000fd5b505050506040513d604081101561330557600080fd5b508051602090910151909250905081613320575050506116b7565b7f474c763ff84bf2c2039a6d9fea955ecd0f724030e3c365b91169c6a16fe751b78585600360009054906101000a90046001600160a01b03166001600160a01b031663318bc6896040518163ffffffff1660e01b815260040160206040518083038186803b15801561339157600080fd5b505afa1580156133a5573d6000803e3d6000fd5b505050506040513d60208110156133bb57600080fd5b5051604080516001600160a01b03948516815260208101939093528281019190915260608201869052918416608082015290519081900360a00190a15050505050565b80471015613453576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e6365000000604482015290519081900360640190fd5b6040516000906001600160a01b0384169083908381818185875af1925050503d806000811461349e576040519150601f19603f3d011682016040523d82523d6000602084013e6134a3565b606091505b50509050806134e35760405162461bcd60e51b815260040180806020018281038252603a815260200180614ea6603a913960400191505060405180910390fd5b505050565b6003546000906001600160a01b0316818561357b57816001600160a01b031663e124e6d28a6040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b15801561354a57600080fd5b505afa15801561355e573d6000803e3d6000fd5b505050506040513d602081101561357457600080fd5b50516135f5565b816001600160a01b03166381a612d68a6040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b1580156135c857600080fd5b505afa1580156135dc573d6000803e3d6000fd5b505050506040513d60208110156135f257600080fd5b50515b90508515613641578381101561363c5760405162461bcd60e51b8152600401808060200182810382526030815260200180614f066030913960400191505060405180910390fd5b613680565b838111156136805760405162461bcd60e51b8152600401808060200182810382526031815260200180614fc66031913960400191505060405180910390fd5b6000826001600160a01b03166312d43a516040518163ffffffff1660e01b815260040160206040518083038186803b1580156136bb57600080fd5b505afa1580156136cf573d6000803e3d6000fd5b505050506040513d60208110156136e557600080fd5b81019080805190602001909291905050509050600460009054906101000a90046001600160a01b03166001600160a01b031663f3238cec8d8d8d8b8d8860006040518863ffffffff1660e01b815260040180886001600160a01b03168152602001876001600160a01b03168152602001866001600160a01b0316815260200185151581526020018481526020018381526020018215158152602001975050505050505050600060405180830381600087803b1580156137a357600080fd5b505af11580156137b7573d6000803e3d6000fd5b50505050806001600160a01b0316636d63c1d0846040518263ffffffff1660e01b815260040180826001600160a01b03168152602001915050600060405180830381600087803b15801561380a57600080fd5b505af115801561381e573d6000803e3d6000fd5b505050506000600560009054906101000a90046001600160a01b03166001600160a01b0316632662166b8e8e8e8e8e8e8e6040518863ffffffff1660e01b815260040180886001600160a01b03168152602001876001600160a01b03168152602001866001600160a01b031681526020018581526020018481526020018315158152602001826001600160a01b03168152602001975050505050505050602060405180830381600087803b1580156138d557600080fd5b505af11580156138e9573d6000803e3d6000fd5b505050506040513d60208110156138ff57600080fd5b50516040805163d3c87bbb60e01b81526001600160a01b03878116600483015291519293509084169163d3c87bbb9160248082019260009290919082900301818387803b15801561394f57600080fd5b505af1158015613963573d6000803e3d6000fd5b505050506139718d8a613275565b9c9b505050505050505050505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b1790526134e39084906144e0565b6000835160021415613a1a57613a13846000815181106139ef57fe5b602002602001015185600181518110613a0457fe5b60200260200101518585614591565b9050613a51565b60405162461bcd60e51b815260040180806020018281038252602981526020018061503e6029913960400191505060405180910390fd5b9392505050565b60065460408051632e1a7d4d60e01b81526004810185905290516001600160a01b0390921691632e1a7d4d9160248082019260009290919082900301818387803b158015613aa557600080fd5b505af1158015613ab9573d6000803e3d6000fd5b505060405160009250606091506001600160a01b0384169034908481818185875af1925050503d8060008114613b0b576040519150601f19603f3d011682016040523d82523d6000602084013e613b10565b606091505b509150915081613b5e576040805162461bcd60e51b81526020600482015260146024820152732330b4b632b2103a379039b2b7321022ba3432b960611b604482015290519081900360640190fd5b50505050565b3415613bce57600660009054906101000a90046001600160a01b03166001600160a01b031663d0e30db0346040518263ffffffff1660e01b81526004016000604051808303818588803b158015613bba57600080fd5b505af1158015612f6e573d6000803e3d6000fd5b565b600080613be1888888888888614667565b90508015613ca0576000613c18612710613c12613c0b60075461271061484490919063ffffffff16565b8a9061488f565b906148e8565b90506000613c268883614844565b905060008960018b510381518110613c3a57fe5b60200260200101519050613c7c82600a6000846001600160a01b03166001600160a01b031681526020019081526020016000205461492790919063ffffffff16565b6001600160a01b039091166000908152600a6020526040902055509150613ca59050565b859150505b9695505050505050565b6003546001600160a01b0316600083613d4057816001600160a01b03166381a612d6876040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b158015613d0f57600080fd5b505afa158015613d23573d6000803e3d6000fd5b505050506040513d6020811015613d3957600080fd5b5051613dba565b816001600160a01b031663e124e6d2876040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b158015613d8d57600080fd5b505afa158015613da1573d6000803e3d6000fd5b505050506040513d6020811015613db757600080fd5b50515b90508315613e065782811115613e015760405162461bcd60e51b8152600401808060200182810382526031815260200180614fc66031913960400191505060405180910390fd5b613e45565b82811015613e455760405162461bcd60e51b8152600401808060200182810382526030815260200180614f066030913960400191505060405180910390fd5b613e5086858761497f565b6000826001600160a01b03166312d43a516040518163ffffffff1660e01b815260040160206040518083038186803b158015613e8b57600080fd5b505afa158015613e9f573d6000803e3d6000fd5b505050506040513d6020811015613eb557600080fd5b50516004805460408051633cc8e33b60e21b81526001600160a01b038e8116948201949094528c841660248201528b841660448201528915156064820152608481018b905260a48101879052600160c4820152905193945091169163f3238cec9160e48082019260009290919082900301818387803b158015613f3757600080fd5b505af1158015613f4b573d6000803e3d6000fd5b50505050806001600160a01b0316636d63c1d0846040518263ffffffff1660e01b815260040180826001600160a01b03168152602001915050600060405180830381600087803b158015613f9e57600080fd5b505af1158015613fb2573d6000803e3d6000fd5b505060055460408051630f8ee8bb60e11b81526001600160a01b038e811660048301528d811660248301528c81166044830152606482018c90528a151560848301529151919092169350631f1dd176925060a480830192600092919082900301818387803b15801561402357600080fd5b505af1158015614037573d6000803e3d6000fd5b50505050806001600160a01b031663d3c87bbb846040518263ffffffff1660e01b815260040180826001600160a01b03168152602001915050600060405180830381600087803b15801561408a57600080fd5b505af115801561409e573d6000803e3d6000fd5b505050506140ac89876143da565b505050505050505050565b600d546040805163d3bab1d160e01b81526001600160a01b03858116600483015260248201859052915160009384938493849384938493169163d3bab1d191604480830192610120929190829003018186803b15801561411657600080fd5b505afa15801561412a573d6000803e3d6000fd5b505050506040513d61012081101561414157600080fd5b508051602082015160408301516060840151608085015160a090950151939a5091985096509450909250905061417883828461497f565b600d54600160a81b900460ff16614194575050505050506116b7565b806141a4575050505050506116b7565b600082116141f9576040805162461bcd60e51b815260206004820152601d60248201527f506f736974696f6e4d616e616765723a206c6f6e67206465706f736974000000604482015290519081900360640190fd5b60035460408051634a3f088d60e01b81526001600160a01b038b811660048301528781166024830152868116604483015284151560648301529151919092169160009182918491634a3f088d9160848082019261010092909190829003018186803b15801561426757600080fd5b505afa15801561427b573d6000803e3d6000fd5b505050506040513d61010081101561429257600080fd5b5080516020909101519092509050816142b3575050505050505050506116b7565b60006142bf8387614927565b90506000846001600160a01b0316630a48d5a98c8c6040518363ffffffff1660e01b815260040180836001600160a01b031681526020018281526020019250505060206040518083038186803b15801561431857600080fd5b505afa15801561432c573d6000803e3d6000fd5b505050506040513d602081101561434257600080fd5b5051905060006143528483614927565b9050600061436685613c128861271061488f565b9050600061438783613c12600854612710018861488f90919063ffffffff16565b9050818110156143c85760405162461bcd60e51b81526004018080602001828103825260278152602001806150176027913960400191505060405180910390fd5b50505050505050505050505050505050565b6009546001600160a01b0316806143f157506116b7565b600080826001600160a01b031663534ef883866040518263ffffffff1660e01b815260040180826001600160a01b03168152602001915050604080518083038186803b15801561444057600080fd5b505afa158015614454573d6000803e3d6000fd5b505050506040513d604081101561446a57600080fd5b5080516020918201516003546040805163318bc68960e01b815290519396509194507fc2414023ce7002ee98557d1e7be21e5559073336f2217ee5f9b2e50fd85f71ee93899389936001600160a01b039093169263318bc689926004808301939192829003018186803b15801561339157600080fd5b6060614535826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316614b319092919063ffffffff16565b8051909150156134e35780806020019051602081101561455457600080fd5b50516134e35760405162461bcd60e51b815260040180806020018281038252602a8152602001806150b3602a913960400191505060405180910390fd5b60035460408051634998b10960e11b81526001600160a01b03878116600483015286811660248301528481166044830152915160009384931691639331621291606480830192602092919082900301818787803b1580156145f157600080fd5b505af1158015614605573d6000803e3d6000fd5b505050506040513d602081101561461b57600080fd5b505190508381101561465e5760405162461bcd60e51b815260040180806020018281038252602b815260200180614e7b602b913960400191505060405180910390fd5b95945050505050565b60008261467657506000613ca5565b8161468357506001613ca5565b60008660018851038151811061469557fe5b602090810291909101015160035460408051634a3f088d60e01b81526001600160a01b038c81166004830152808516602483015289811660448301528815156064830152915193945091169160009182918491634a3f088d91608480830192610100929190829003018186803b15801561470e57600080fd5b505afa158015614722573d6000803e3d6000fd5b505050506040513d61010081101561473957600080fd5b508051602090910151909250905081614759576000945050505050613ca5565b60006147658388614927565b90506000846001600160a01b0316630a48d5a9878d6040518363ffffffff1660e01b815260040180836001600160a01b031681526020018281526020019250505060206040518083038186803b1580156147be57600080fd5b505afa1580156147d2573d6000803e3d6000fd5b505050506040513d60208110156147e857600080fd5b5051905060006147f88483614927565b9050600061480c85613c128861271061488f565b9050600061482d83613c12600854612710018861488f90919063ffffffff16565b919091109f9e505050505050505050505050505050565b600061488683836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250614b48565b90505b92915050565b60008261489e57506000614889565b828202828482816148ab57fe5b04146148865760405162461bcd60e51b8152600401808060200182810382526021815260200180614fa56021913960400191505060405180910390fd5b600061488683836040518060400160405280601a815260200179536166654d6174683a206469766973696f6e206279207a65726f60301b815250614bdf565b600082820183811015614886576040805162461bcd60e51b815260206004820152601b60248201527a536166654d6174683a206164646974696f6e206f766572666c6f7760281b604482015290519081900360640190fd5b80614989576134e3565b8115614a7c576001600160a01b0383166000908152600b60205260409020548015801590614a3a57506003546040805163783a2b6760e11b81526001600160a01b03878116600483015291518493614a3893879391169163f07456ce91602480820192602092909190829003018186803b158015614a0657600080fd5b505afa158015614a1a573d6000803e3d6000fd5b505050506040513d6020811015614a3057600080fd5b505190614927565b115b15614a765760405162461bcd60e51b815260040180806020018281038252602e815260200180614e0d602e913960400191505060405180910390fd5b506134e3565b6001600160a01b0383166000908152600c60205260409020548015801590614af557506003546040805163114f1b5560e31b81526001600160a01b03878116600483015291518493614af3938793911691638a78daa891602480820192602092909190829003018186803b158015614a0657600080fd5b115b15613b5e5760405162461bcd60e51b815260040180806020018281038252602f815260200180614f76602f913960400191505060405180910390fd5b6060614b408484600085614c44565b949350505050565b60008184841115614bd75760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015614b9c578181015183820152602001614b84565b50505050905090810190601f168015614bc95780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b60008183614c2e5760405162461bcd60e51b8152602060048201818152835160248401528351909283926044909101919085019080838360008315614b9c578181015183820152602001614b84565b506000838581614c3a57fe5b0495945050505050565b606082471015614c855760405162461bcd60e51b8152600401808060200182810382526026815260200180614ee06026913960400191505060405180910390fd5b614c8e85614da0565b614cdf576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b60208310614d1e5780518252601f199092019160209182019101614cff565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114614d80576040519150601f19603f3d011682016040523d82523d6000602084013e614d85565b606091505b5091509150614d95828286614da6565b979650505050505050565b3b151590565b60608315614db5575081613a51565b825115614dc55782518084602001fd5b60405162461bcd60e51b8152602060048201818152845160248401528451859391928392604401919085019080838360008315614b9c578181015183820152602001614b8456fe42617365506f736974696f6e4d616e616765723a206d617820676c6f62616c206c6f6e67732065786365656465645265656e7472616e637947756172643a207265656e7472616e742063616c6c00476f7665726e61626c653a20666f7262696464656e000000000000000000000042617365506f736974696f6e4d616e616765723a20696e73756666696369656e7420616d6f756e744f7574416464726573733a20756e61626c6520746f2073656e642076616c75652c20726563697069656e74206d61792068617665207265766572746564416464726573733a20696e73756666696369656e742062616c616e636520666f722063616c6c42617365506f736974696f6e4d616e616765723a206d61726b207072696365206c6f776572207468616e206c696d697442617365506f736974696f6e4d616e616765723a20666f7262696464656e0000506f736974696f6e4d616e616765723a20696e76616c6964205f70617468000042617365506f736974696f6e4d616e616765723a206d617820676c6f62616c2073686f727473206578636565646564536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f7742617365506f736974696f6e4d616e616765723a206d61726b20707269636520686967686572207468616e206c696d6974506f736974696f6e4d616e616765723a20666f7262696464656e000000000000506f736974696f6e4d616e616765723a206c6f6e67206c6576657261676520646563726561736542617365506f736974696f6e4d616e616765723a20696e76616c6964205f706174682e6c656e677468506f736974696f6e4d616e616765723a20696e76616c6964205f636f6c6c61746572616c546f6b656e42617365506f736974696f6e4d616e616765723a20696e76616c69642073656e6465725361666545524332303a204552433230206f7065726174696f6e20646964206e6f742073756363656564506f736974696f6e4d616e616765723a20696e76616c6964205f706174682e6c656e677468a2646970667358221220eab7b3a21b857035b2395382f21e888e45bf752dcf1c0dfcc78ab925e34882e664736f6c634300060c003300000000000000000000000024afb3b27156e71e68e292e4ad71db827f83f05c000000000000000000000000b50e0e14d3ce8b1d6e1a2ae432480b5089ea32db00000000000000000000000072950e134ba9fef01674a26f9228a9b8d5cb0c560000000000000000000000000d500b1d8e8ef31e21c99d1db9a6444d3adf1270000000000000000000000000000000000000000000000000000000000000001e000000000000000000000000ab770aa6ce1fd9305c25e0c3ab03fd8c53e4c880

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

00000000000000000000000024afb3b27156e71e68e292e4ad71db827f83f05c000000000000000000000000b50e0e14d3ce8b1d6e1a2ae432480b5089ea32db00000000000000000000000072950e134ba9fef01674a26f9228a9b8d5cb0c560000000000000000000000000d500b1d8e8ef31e21c99d1db9a6444d3adf1270000000000000000000000000000000000000000000000000000000000000001e000000000000000000000000ab770aa6ce1fd9305c25e0c3ab03fd8c53e4c880

-----Decoded View---------------
Arg [0] : _vault (address): 0x24afb3b27156e71e68e292e4ad71db827f83f05c
Arg [1] : _router (address): 0xb50e0e14d3ce8b1d6e1a2ae432480b5089ea32db
Arg [2] : _shortsTracker (address): 0x72950e134ba9fef01674a26f9228a9b8d5cb0c56
Arg [3] : _weth (address): 0x0d500b1d8e8ef31e21c99d1db9a6444d3adf1270
Arg [4] : _depositFee (uint256): 30
Arg [5] : _orderBook (address): 0xab770aa6ce1fd9305c25e0c3ab03fd8c53e4c880

-----Encoded View---------------
6 Constructor Arguments found :
Arg [0] : 00000000000000000000000024afb3b27156e71e68e292e4ad71db827f83f05c
Arg [1] : 000000000000000000000000b50e0e14d3ce8b1d6e1a2ae432480b5089ea32db
Arg [2] : 00000000000000000000000072950e134ba9fef01674a26f9228a9b8d5cb0c56
Arg [3] : 0000000000000000000000000d500b1d8e8ef31e21c99d1db9a6444d3adf1270
Arg [4] : 000000000000000000000000000000000000000000000000000000000000001e
Arg [5] : 000000000000000000000000ab770aa6ce1fd9305c25e0c3ab03fd8c53e4c880


Deployed ByteCode Sourcemap

48714:12492:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;38618:4;;-1:-1:-1;;;;;38618:4:0;38604:10;:18;38596:66;;;;-1:-1:-1;;;38596:66:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;48714:12492;;;;;36779:30;;;;;;;;;;;;;:::i;:::-;;;;-1:-1:-1;;;;;36779:30:0;;;;;;;;;;;;;;56713:214;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;56713:214:0;;;;;;;;;;;;;;;;;:::i;36874:63::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;36874:63:0;-1:-1:-1;;;;;36874:63:0;;:::i;:::-;;;;;;;;;;;;;;;;58236:1192;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;58236:1192:0;;;;;;;;;;;;;;;;;:::i;36177:52::-;;;;;;;;;;;;;:::i;646:18::-;;;;;;;;;;;;;:::i;50804:247::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;50804:247:0;;;;:::i;36818:47::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;36818:47:0;-1:-1:-1;;;;;36818:47:0;;:::i;50084:182::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;50084:182:0;;;;;;;;;;:::i;50461:170::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;50461:170:0;;;;;;;;;;:::i;39017:238::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;39017:238:0;;:::i;40470:127::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;40470:127:0;;;;;;;;:::i;54888:834::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;54888:834:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;54888:834:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;54888:834:0;;-1:-1:-1;;;54888:834:0;;-1:-1:-1;;;;;54888:834:0;;;;-1:-1:-1;54888:834:0;;;;;;;;;;-1:-1:-1;54888:834:0;;;;;;;;;;;;;;;;;;;;;;:::i;48890:46::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;48890:46:0;-1:-1:-1;;;;;48890:46:0;;:::i;:::-;;;;;;;;;;;;;;;;;;36357:19;;;;;;;;;;;;;:::i;53610:618::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;53610:618:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;50274:179::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;50274:179:0;;;;;;;;;;:::i;48835:46::-;;;;;;;;;;;;;:::i;38861:148::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;38861:148:0;;:::i;48992:45::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;48992:45:0;-1:-1:-1;;;;;48992:45:0;;:::i;54236:644::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;54236:644:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;54236:644:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;54236:644:0;;-1:-1:-1;;;54236:644:0;;-1:-1:-1;;;;;54236:644:0;;;;-1:-1:-1;54236:644:0;;;;;;;;;;-1:-1:-1;54236:644:0;;;;;;;;;;;;;;;;;;;;;;:::i;36294:28::-;;;;;;;;;;;;;:::i;36692:25::-;;;;;;;;;;;;;:::i;38678:175::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;38678:175:0;-1:-1:-1;;;;;38678:175:0;;:::i;48771:24::-;;;;;;;;;;;;;:::i;48943:42::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;48943:42:0;-1:-1:-1;;;;;48943:42:0;;:::i;53180:422::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;53180:422:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;36944:64::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;36944:64:0;-1:-1:-1;;;;;36944:64:0;;:::i;36724:46::-;;;;;;;;;;;;;:::i;50639:157::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;50639:157:0;;;;:::i;39263:247::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;39263:247:0;-1:-1:-1;;;;;39263:247:0;;:::i;52128:1044::-;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;52128:1044:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;52128:1044:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;52128:1044:0;;-1:-1:-1;;;;;;;52128:1044:0;;;;-1:-1:-1;;;52128:1044:0;;;;;;;;;;;;;;;;;;;;;:::i;51059:1061::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;51059:1061:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;51059:1061:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;51059:1061:0;;-1:-1:-1;;;;;;;51059:1061:0;;;;-1:-1:-1;;;51059:1061:0;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;846:76::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;846:76:0;-1:-1:-1;;;;;846:76:0;;:::i;56935:1293::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;56935:1293:0;;;;;;;;;;;;;;;;;:::i;48802:24::-;;;;;;;;;;;;;:::i;55730:975::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;55730:975:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;40317:145::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;40317:145:0;;;;;;;;;;;;;;;;;:::i;39518:464::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;39518:464:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;39518:464:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;39518:464:0;;;;;;;;-1:-1:-1;39518:464:0;;-1:-1:-1;;;;;39518:464:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;39518:464:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;39518:464:0;;;;;;;;-1:-1:-1;39518:464:0;;-1:-1:-1;;;;;39518:464:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;39518:464:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;39518:464:0;;-1:-1:-1;39518:464:0;;-1:-1:-1;;;;;39518:464:0:i;39990:319::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;39990:319:0;;;;;;;;;;:::i;36238:20::-;;;;;;;;;;;;;:::i;36329:21::-;;;;;;;;;;;;;:::i;36267:20::-;;;;;;;;;;;;;:::i;36779:30::-;;;-1:-1:-1;;;;;36779:30:0;;:::o;56713:214::-;49420:10;49406:25;;;;:13;:25;;;;;;;;49398:64;;;;;-1:-1:-1;;;49398:64:0;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;49398:64:0;;;;;;;;;;;;;;;56855:9:::1;::::0;56844:75:::1;::::0;;-1:-1:-1;;;56844:75:0;;-1:-1:-1;;;;;56844:75:0;;::::1;;::::0;::::1;::::0;;;;;;;;;::::1;::::0;;;;;;56855:9;;;::::1;::::0;56844:38:::1;::::0;:75;;;;;56855:9:::1;::::0;56844:75;;;;;;;56855:9;;56844:75;::::1;;::::0;::::1;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;56713:214:::0;;;:::o;36874:63::-;;;;;;;;;;;;;:::o;58236:1192::-;49420:10;49406:25;;;;:13;:25;;;;;;;;49398:64;;;;;-1:-1:-1;;;49398:64:0;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;49398:64:0;;;;;;;;;;;;;;;58388:5:::1;::::0;58423:20:::1;::::0;;-1:-1:-1;;;58423:20:0;;;;-1:-1:-1;;;;;58388:5:0;;::::1;::::0;58371:14:::1;::::0;58388:5;;58423:18:::1;::::0;:20:::1;::::0;;::::1;::::0;::::1;::::0;;;;;;;;;58388:5;58423:20;::::1;;::::0;::::1;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;::::0;::::1;;-1:-1:-1::0;58423:20:0;58775:9:::1;::::0;58764:61:::1;::::0;;-1:-1:-1;;;58764:61:0;;-1:-1:-1;;;;;58764:61:0;;::::1;;::::0;::::1;::::0;;;;;;;;;58423:20;;-1:-1:-1;58471:23:0::1;::::0;;;;;;;58775:9;::::1;::::0;58764:38:::1;::::0;:61;;;;;58775:9:::1;::::0;58764:61;;;;;;;;58775:9;58764:61;::::1;;::::0;::::1;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;::::0;::::1;;-1:-1:-1::0;58764:61:0;;;;;;;;;;;;;;;;;-1:-1:-1;58764:61:0;-1:-1:-1;58764:61:0;;-1:-1:-1;58764:61:0;-1:-1:-1;58838:17:0::1;58764:61:::0;58858:88:::1;;58915:6;-1:-1:-1::0;;;;;58908:26:0::1;;58935:10;58908:38;;;;;;;;;;;;;-1:-1:-1::0;;;;;58908:38:0::1;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;::::0;::::1;;-1:-1:-1::0;58908:38:0;58858:88:::1;;;58874:6;-1:-1:-1::0;;;;;58867:26:0::1;;58894:10;58867:38;;;;;;;;;;;;;-1:-1:-1::0;;;;;58867:38:0::1;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;::::0;::::1;;-1:-1:-1::0;58867:38:0;58858:88:::1;59046:13;::::0;;59031:127:::1;::::0;;-1:-1:-1;;;59031:127:0;;-1:-1:-1;;;;;59031:127:0;;::::1;::::0;;::::1;::::0;;;;;;::::1;::::0;;;;;;::::1;::::0;;;;;::::1;;::::0;;;;;;;;;;;;;;;;59046:13:::1;59031:127:::0;;;;;;;;58838:108;;-1:-1:-1;59046:13:0;;;::::1;::::0;59031:51:::1;::::0;:127;;;;;59046:13;59031:127;;;;;;59046:13;;59031:127;::::1;;::::0;::::1;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;59181:8;-1:-1:-1::0;;;;;59171:34:0::1;;59206:6;59171:42;;;;;;;;;;;;;-1:-1:-1::0;;;;;59171:42:0::1;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;-1:-1:-1::0;;59235:9:0::1;::::0;59224:79:::1;::::0;;-1:-1:-1;;;59224:79:0;;-1:-1:-1;;;;;59224:79:0;;::::1;;::::0;::::1;::::0;;;;;;;;;::::1;::::0;;;;;;59235:9;;;::::1;::::0;-1:-1:-1;59224:42:0::1;::::0;-1:-1:-1;59224:79:0;;;;;59235:9:::1;::::0;59224:79;;;;;;;59235:9;;59224:79;::::1;;::::0;::::1;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;59324:8;-1:-1:-1::0;;;;;59314:35:0::1;;59350:6;59314:43;;;;;;;;;;;;;-1:-1:-1::0;;;;;59314:43:0::1;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;59370:50;59400:8;59410:9;59370:29;:50::i;:::-;49473:1;;;;;;;58236:1192:::0;;;:::o;36177:52::-;36224:5;36177:52;:::o;646:18::-;;;-1:-1:-1;;;;;646:18:0;;:::o;50804:247::-;37882:5;;-1:-1:-1;;;;;37882:5:0;37868:10;:19;37860:62;;;;;-1:-1:-1;;;37860:62:0;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;37860:62:0;;;;;;;;;;;;;;;50909:27:::1;:58:::0;;;::::1;;-1:-1:-1::0;;;50909:58:0;::::1;-1:-1:-1::0;;;;50909:58:0;;::::1;::::0;;;::::1;::::0;;;50983:60:::1;::::0;;;;;;::::1;::::0;;;;::::1;::::0;;::::1;50804:247:::0;:::o;36818:47::-;;;;;;;;;;;;;:::o;50084:182::-;37882:5;;-1:-1:-1;;;;;37882:5:0;37868:10;:19;37860:62;;;;;-1:-1:-1;;;37860:62:0;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;37860:62:0;;;;;;;;;;;;;;;-1:-1:-1;;;;;50172:23:0;::::1;;::::0;;;:13:::1;:23;::::0;;;;;;;;:35;;-1:-1:-1;;50172:35:0::1;::::0;::::1;;::::0;;::::1;::::0;;;50223;;;;;;;::::1;::::0;;;;;;;;::::1;50084:182:::0;;:::o;50461:170::-;37882:5;;-1:-1:-1;;;;;37882:5:0;37868:10;:19;37860:62;;;;;-1:-1:-1;;;37860:62:0;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;37860:62:0;;;;;;;;;;;;;;;-1:-1:-1;;;;;50545:19:0;::::1;;::::0;;;:9:::1;:19;::::0;;;;;;;;:31;;-1:-1:-1;;50545:31:0::1;::::0;::::1;;::::0;;::::1;::::0;;;50592;;;;;;;::::1;::::0;;;::::1;::::0;;;;;;;;::::1;50461:170:::0;;:::o;39017:238::-;37882:5;;-1:-1:-1;;;;;37882:5:0;37868:10;:19;37860:62;;;;;-1:-1:-1;;;37860:62:0;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;37860:62:0;;;;;;;;;;;;;;;39121:25:::1;:54:::0;;;39191:56:::1;::::0;;;;;;;::::1;::::0;;;;::::1;::::0;;::::1;39017:238:::0;:::o;40470:127::-;789:3;;-1:-1:-1;;;;;789:3:0;775:10;:17;767:51;;;;;-1:-1:-1;;;767:51:0;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;767:51:0;;;;;;;;;;;;;;;40561:28:::1;-1:-1:-1::0;;;;;40561:19:0;::::1;40581:7:::0;40561:19:::1;:28::i;:::-;40470:127:::0;;:::o;54888:834::-;3562:1;4168:7;;:19;;4160:63;;;;;-1:-1:-1;;;4160:63:0;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;4160:63:0;;;;;;;;;;;;;;;3562:1;4301:7;:18;;;49683:10:::1;49673:21:::0;;:9:::1;:21;::::0;;;;;::::1;;::::0;:37:::1;;-1:-1:-1::0;49698:12:0::1;::::0;-1:-1:-1;;;49698:12:0;::::1;;;49673:37;49665:76;;;::::0;;-1:-1:-1;;;49665:76:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;-1:-1:-1;;;;;;;;;;;49665:76:0;;;;;;;;;;;;;::::1;;55234:5:::2;:12;55250:1;55234:17;55226:67;;;;-1:-1:-1::0;;;55226:67:0::2;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;55339:4;::::0;55318:12;;-1:-1:-1;;;;;55339:4:0;;::::2;::::0;55312:5;;-1:-1:-1;;55318:16:0;;;55312:23;::::2;;;;;;;;;;;-1:-1:-1::0;;;;;55312:31:0::2;;55304:74;;;::::0;;-1:-1:-1;;;55304:74:0;;::::2;;::::0;::::2;::::0;::::2;::::0;;;;-1:-1:-1;;;;;;;;;;;55304:74:0;;;;;;;;;;;;;::::2;;55391:14;55408:114;55426:10;55438:5;55444:1;55438:8;;;;;;;;;;;;;;55448:11;55461:16;55479:10;55491:7;55508:4;55515:6;55408:17;:114::i;:::-;55391:131;;55533:44;55563:5;;;;;;;;;-1:-1:-1::0;;;;;55563:5:0::2;55570:6;55540:5;55546:1;55540:8;;;;;;;;;;;;;;-1:-1:-1::0;;;;;55533:29:0::2;;;:44;;;;;:::i;:::-;55588:17;55608:36;55614:5;55621:7;55638:4;55608:5;:36::i;:::-;55588:56;;55655:59;55693:9;55704;55655:37;:59::i;:::-;-1:-1:-1::0;;3518:1:0;4480:7;:22;-1:-1:-1;;;;;;;;54888:834:0:o;48890:46::-;;;;;;;;;;;;;;;:::o;36357:19::-;;;-1:-1:-1;;;;;36357:19:0;;:::o;53610:618::-;3562:1;4168:7;;:19;;4160:63;;;;;-1:-1:-1;;;4160:63:0;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;4160:63:0;;;;;;;;;;;;;;;3562:1;4301:7;:18;;;49683:10:::1;49673:21:::0;;:9:::1;:21;::::0;;;;;::::1;;::::0;:37:::1;;-1:-1:-1::0;49698:12:0::1;::::0;-1:-1:-1;;;49698:12:0;::::1;;;49673:37;49665:76;;;::::0;;-1:-1:-1;;;49665:76:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;-1:-1:-1;;;;;;;;;;;49665:76:0;;;;;;;;;;;;;::::1;;53945:4:::2;::::0;-1:-1:-1;;;;;53925:24:0;;::::2;53945:4:::0;::::2;53925:24;53917:78;;;;-1:-1:-1::0;;;53917:78:0::2;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;54008:17;54028:122;54046:10;54058:16;54076:11;54089:16;54107:10;54119:7;54136:4;54143:6;54028:17;:122::i;:::-;54008:142;;54161:59;54199:9;54210;54161:37;:59::i;:::-;-1:-1:-1::0;;3518:1:0;4480:7;:22;-1:-1:-1;;;;;;53610:618:0:o;50274:179::-;37882:5;;-1:-1:-1;;;;;37882:5:0;37868:10;:19;37860:62;;;;;-1:-1:-1;;;37860:62:0;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;37860:62:0;;;;;;;;;;;;;;;-1:-1:-1;;;;;50361:22:0;::::1;;::::0;;;:12:::1;:22;::::0;;;;;;;;:34;;-1:-1:-1;;50361:34:0::1;::::0;::::1;;::::0;;::::1;::::0;;;50411;;;;;;;::::1;::::0;;;;;;;;::::1;50274:179:::0;;:::o;48835:46::-;;;-1:-1:-1;;;48835:46:0;;;;;:::o;38861:148::-;37882:5;;-1:-1:-1;;;;;37882:5:0;37868:10;:19;37860:62;;;;;-1:-1:-1;;;37860:62:0;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;37860:62:0;;;;;;;;;;;;;;;38935:10:::1;:24:::0;;;38975:26:::1;::::0;;;;;;;::::1;::::0;;;;::::1;::::0;;::::1;38861:148:::0;:::o;48992:45::-;;;;;;;;;;;;;;;:::o;54236:644::-;3562:1;4168:7;;:19;;4160:63;;;;;-1:-1:-1;;;4160:63:0;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;4160:63:0;;;;;;;;;;;;;;;3562:1;4301:7;:18;;;49683:10:::1;49673:21:::0;;:9:::1;:21;::::0;;;;;::::1;;::::0;:37:::1;;-1:-1:-1::0;49698:12:0::1;::::0;-1:-1:-1;;;49698:12:0;::::1;;;49673:37;49665:76;;;::::0;;-1:-1:-1;;;49665:76:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;-1:-1:-1;;;;;;;;;;;49665:76:0;;;;;;;;;;;;;::::1;;54571:5:::2;:12;54587:1;54571:17;54563:67;;;;-1:-1:-1::0;;;54563:67:0::2;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;54643:14;54660:114;54678:10;54690:5;54696:1;54690:8;;;;;;;54660:114;54643:131;;54785:44;54815:5;;;;;;;;;-1:-1:-1::0;;;;;54815:5:0::2;54822:6;54792:5;54798:1;54792:8;;;;;;;54785:44;54840:32;54846:5;54853:7;54862:9;54840:5;:32::i;36294:28::-:0;;;-1:-1:-1;;;;;36294:28:0;;:::o;36692:25::-;;;;:::o;38678:175::-;789:3;;-1:-1:-1;;;;;789:3:0;775:10;:17;767:51;;;;;-1:-1:-1;;;767:51:0;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;767:51:0;;;;;;;;;;;;;;;-1:-1:-1;;;;;38748:22:0;::::1;38740:48;;;::::0;;-1:-1:-1;;;38740:48:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;-1:-1:-1;;;38740:48:0;;;;;;;;;;;;;::::1;;38799:5;:14:::0;;-1:-1:-1;;;;;38799:14:0;::::1;-1:-1:-1::0;;;;;;38799:14:0;;::::1;::::0;::::1;::::0;;;38829:16:::1;::::0;;;;;;::::1;::::0;;;;::::1;::::0;;::::1;38678:175:::0;:::o;48771:24::-;;;-1:-1:-1;;;;;48771:24:0;;:::o;48943:42::-;;;;;;;;;;;;;;;:::o;53180:422::-;3562:1;4168:7;;:19;;4160:63;;;;;-1:-1:-1;;;4160:63:0;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;4160:63:0;;;;;;;;;;;;;;;3562:1;4301:7;:18;;;49683:10:::1;49673:21:::0;;:9:::1;:21;::::0;;;;;::::1;;::::0;:37:::1;;-1:-1:-1::0;49698:12:0::1;::::0;-1:-1:-1;;;49698:12:0;::::1;;;49673:37;49665:76;;;::::0;;-1:-1:-1;;;49665:76:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;-1:-1:-1;;;;;;;;;;;49665:76:0;;;;;;;;;;;;;::::1;;53476:118:::2;53494:10;53506:16;53524:11;53537:16;53555:10;53567:7;53576:9;53587:6;53476:17;:118::i;36944:64::-:0;;;;;;;;;;;;;:::o;36724:46::-;;;;:::o;50639:157::-;37882:5;;-1:-1:-1;;;;;37882:5:0;37868:10;:19;37860:62;;;;;-1:-1:-1;;;37860:62:0;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;37860:62:0;;;;;;;;;;;;;;;50714:12:::1;:28:::0;;;::::1;;-1:-1:-1::0;;;50714:28:0;::::1;-1:-1:-1::0;;;;50714:28:0;;::::1;::::0;;;::::1;::::0;;;50758:30:::1;::::0;;;;;;::::1;::::0;;;;::::1;::::0;;::::1;50639:157:::0;:::o;39263:247::-;37882:5;;-1:-1:-1;;;;;37882:5:0;37868:10;:19;37860:62;;;;;-1:-1:-1;;;37860:62:0;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;37860:62:0;;;;;;;;;;;;;;;-1:-1:-1;;;;;39355:32:0;::::1;39347:58;;;::::0;;-1:-1:-1;;;39347:58:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;-1:-1:-1;;;39347:58:0;;;;;;;;;;;;;::::1;;39416:15;:34:::0;;-1:-1:-1;;;;;39416:34:0;::::1;-1:-1:-1::0;;;;;;39416:34:0;;::::1;::::0;::::1;::::0;;;39466:36:::1;::::0;;;;;;::::1;::::0;;;;::::1;::::0;;::::1;39263:247:::0;:::o;52128:1044::-;3562:1;4168:7;;:19;;4160:63;;;;;-1:-1:-1;;;4160:63:0;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;4160:63:0;;;;;;;;;;;;;;;3562:1;4301:7;:18;;;49683:10:::1;49673:21:::0;;:9:::1;:21;::::0;;;;;::::1;;::::0;:37:::1;;-1:-1:-1::0;49698:12:0::1;::::0;-1:-1:-1;;;49698:12:0;::::1;;;49673:37;49665:76;;;::::0;;-1:-1:-1;;;49665:76:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;-1:-1:-1;;;;;;;;;;;49665:76:0;;;;;;;;;;;;;::::1;;52404:5:::2;:12;52420:1;52404:17;:38;;;;52425:5;:12;52441:1;52425:17;52404:38;52396:88;;;;-1:-1:-1::0;;;52396:88:0::2;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;52515:4;::::0;52503:8;;-1:-1:-1;;;;;52515:4:0;;::::2;::::0;52503:5;;52515:4:::2;::::0;52503:8:::2;;;;;;;;;;-1:-1:-1::0;;;;;52503:16:0::2;;52495:59;;;::::0;;-1:-1:-1;;;52495:59:0;;::::2;;::::0;::::2;::::0;::::2;::::0;;;;-1:-1:-1;;;;;;;;;;;52495:59:0;;;;;;;;;;;;;::::2;;52571:9;:13:::0;52567:489:::2;;52601:16;:14;:16::i;:::-;52682:12:::0;;52652:9:::2;::::0;52697:1:::2;-1:-1:-1::0;52678:167:0::2;;;52745:5;::::0;52726:4:::2;::::0;52719:43:::2;::::0;-1:-1:-1;;;;;52726:4:0;;::::2;::::0;52745:5:::2;52752:9;52719:25;:43::i;:::-;52793:36;52799:5;52806:7;52823:4;52793:5;:36::i;:::-;52781:48;;52678:167;52861:22;52886:76;52899:10;52911:5;52918:9;52929:11;52942:7;52951:10;52886:12;:76::i;:::-;52861:101;;52977:67;53022:5;;;;;;;;;-1:-1:-1::0;;;;;53022:5:0::2;53029:14;52984:5;53005:1;52990:5;:12;:16;52984:23;;;;;;;52977:67;52567:489;;;53068:96;53086:10;53098:5;53119:1;53104:5;:12;:16;53098:23;;;;;;;;;;;;;;53123:11;53136:10;53148:7;53157:6;53068:17;:96::i;:::-;-1:-1:-1::0;;3518:1:0;4480:7;:22;-1:-1:-1;;;;52128:1044:0:o;51059:1061::-;3562:1;4168:7;;:19;;4160:63;;;;;-1:-1:-1;;;4160:63:0;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;4160:63:0;;;;;;;;;;;;;;;3562:1;4301:7;:18;;;49683:10:::1;49673:21:::0;;:9:::1;:21;::::0;;;;;::::1;;::::0;:37:::1;;-1:-1:-1::0;49698:12:0::1;::::0;-1:-1:-1;;;49698:12:0;::::1;;;49673:37;49665:76;;;::::0;;-1:-1:-1;;;49665:76:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;-1:-1:-1;;;;;;;;;;;49665:76:0;;;;;;;;;;;;;::::1;;51352:5:::2;:12;51368:1;51352:17;:38;;;;51373:5;:12;51389:1;51373:17;51352:38;51344:88;;;;-1:-1:-1::0;;;51344:88:0::2;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;51449:13:::0;;51445:559:::2;;51483:5;:12;51499:1;51483:17;51479:314;;;51529:6;::::0;51552:8;;-1:-1:-1;;;;;51529:6:0;;::::2;::::0;51521:30:::2;::::0;51552:5;;51529:6:::2;::::0;51552:8:::2;;;;;;;;;;51562:10;51582:4;51589:9;51521:78;;;;;;;;;;;;;-1:-1:-1::0;;;;;51521:78:0::2;;;;;;-1:-1:-1::0;;;;;51521:78:0::2;;;;;;-1:-1:-1::0;;;;;51521:78:0::2;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::2;;;;;;;;;;;;::::0;::::2;;;;;;;;;51479:314;;;51648:6;::::0;51671:8;;-1:-1:-1;;;;;51648:6:0;;::::2;::::0;51640:30:::2;::::0;51671:5;;51648:6:::2;::::0;51671:8:::2;;;;;::::0;;::::2;::::0;;;;;;51693:5:::2;::::0;51640:70:::2;::::0;;-1:-1:-1;;;;;;51640:70:0::2;::::0;;;;;;-1:-1:-1;;;;;51640:70:0;;::::2;;::::0;::::2;::::0;51681:10:::2;51640:70:::0;;;;51693:5;;;::::2;51640:70:::0;;;;;;;;;;;;;;;;51693:5:::2;::::0;51640:70;;;;;;;51693:5;51640:70;;::::2;;::::0;::::2;;;;::::0;::::2;;;;;;;;;;;;::::0;::::2;;;;;;;;;51741:36;51747:5;51754:7;51771:4;51741:5;:36::i;:::-;51729:48;;51479:314;51809:22;51834:76;51847:10;51859:5;51866:9;51877:11;51890:7;51899:10;51834:12;:76::i;:::-;51809:101;;51925:67;51970:5;;;;;;;;;-1:-1:-1::0;;;;;51970:5:0::2;51977:14;51932:5;51953:1;51938:5;:12;:16;51932:23;;;;;;;51925:67;51445:559;;52016:96;52034:10;52046:5;52067:1;52052:5;:12;:16;52046:23;;;;;;;;;;;;;;52071:11;52084:10;52096:7;52105:6;52016:17;:96::i;:::-;-1:-1:-1::0;;3518:1:0;4480:7;:22;-1:-1:-1;;;;;51059:1061:0:o;846:76::-;789:3;;-1:-1:-1;;;;;789:3:0;775:10;:17;767:51;;;;;-1:-1:-1;;;767:51:0;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;767:51:0;;;;;;;;;;;;;;;904:3:::1;:10:::0;;-1:-1:-1;;;;;;904:10:0::1;-1:-1:-1::0;;;;;904:10:0;;;::::1;::::0;;;::::1;::::0;;846:76::o;56935:1293::-;49420:10;49406:25;;;;:13;:25;;;;;;;;49398:64;;;;;-1:-1:-1;;;49398:64:0;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;49398:64:0;;;;;;;;;;;;;;;57070:45:::1;57093:8;57103:11;57070:22;:45::i;:::-;57145:5;::::0;57180:20:::1;::::0;;-1:-1:-1;;;57180:20:0;;;;-1:-1:-1;;;;;57145:5:0;;::::1;::::0;57128:14:::1;::::0;57145:5;;57180:18:::1;::::0;:20:::1;::::0;;::::1;::::0;::::1;::::0;;;;;;;;;57145:5;57180:20;::::1;;::::0;::::1;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;::::0;::::1;;-1:-1:-1::0;57180:20:0;57576:9:::1;::::0;57565:61:::1;::::0;;-1:-1:-1;;;57565:61:0;;-1:-1:-1;;;;;57565:61:0;;::::1;;::::0;::::1;::::0;;;;;;;;;57180:20;;-1:-1:-1;57314:23:0::1;::::0;;;;;;;57576:9;::::1;::::0;57565:38:::1;::::0;:61;;;;;::::1;::::0;;;;;;;;;57576:9;57565:61;::::1;;::::0;::::1;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;::::0;::::1;;-1:-1:-1::0;57565:61:0;;;;;;;;;;;;;;;;;;;-1:-1:-1;57565:61:0;-1:-1:-1;57565:61:0;;-1:-1:-1;57565:61:0;-1:-1:-1;57639:17:0::1;57565:61:::0;57659:88:::1;;57716:6;-1:-1:-1::0;;;;;57709:26:0::1;;57736:10;57709:38;;;;;;;;;;;;;-1:-1:-1::0;;;;;57709:38:0::1;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;::::0;::::1;;-1:-1:-1::0;57709:38:0;57659:88:::1;;;57675:6;-1:-1:-1::0;;;;;57668:26:0::1;;57695:10;57668:38;;;;;;;;;;;;;-1:-1:-1::0;;;;;57668:38:0::1;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;::::0;::::1;;-1:-1:-1::0;57668:38:0;57659:88:::1;57847:13;::::0;;57832:126:::1;::::0;;-1:-1:-1;;;57832:126:0;;-1:-1:-1;;;;;57832:126:0;;::::1;::::0;;::::1;::::0;;;;;;::::1;::::0;;;;;;::::1;::::0;;;;;::::1;;::::0;;;;;;;;;;;;;;;;57847:13;57832:126;;;;;;57639:108;;-1:-1:-1;57847:13:0;::::1;::::0;57832:51:::1;::::0;:126;;;;;57847:13:::1;::::0;57832:126;;;;;;;;57847:13;;57832:126;::::1;;::::0;::::1;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;57981:8;-1:-1:-1::0;;;;;57971:34:0::1;;58006:6;57971:42;;;;;;;;;;;;;-1:-1:-1::0;;;;;57971:42:0::1;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;-1:-1:-1::0;;58035:9:0::1;::::0;58024:79:::1;::::0;;-1:-1:-1;;;58024:79:0;;-1:-1:-1;;;;;58024:79:0;;::::1;;::::0;::::1;::::0;;;;;;;;;::::1;::::0;;;;;;58035:9;;;::::1;::::0;-1:-1:-1;58024:42:0::1;::::0;-1:-1:-1;58024:79:0;;;;;58035:9:::1;::::0;58024:79;;;;;;;58035:9;;58024:79;::::1;;::::0;::::1;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;58124:8;-1:-1:-1::0;;;;;58114:35:0::1;;58150:6;58114:43;;;;;;;;;;;;;-1:-1:-1::0;;;;;58114:43:0::1;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;58170:50;58200:8;58210:9;58170:29;:50::i;48802:24::-:0;;;-1:-1:-1;;;48802:24:0;;;;;:::o;55730:975::-;3562:1;4168:7;;:19;;4160:63;;;;;-1:-1:-1;;;4160:63:0;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;4160:63:0;;;;;;;;;;;;;;;3562:1;4301:7;:18;;;49548:10:::1;49535:24:::0;;:12:::1;:24;::::0;;;;;::::1;;49527:63;;;::::0;;-1:-1:-1;;;49527:63:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;-1:-1:-1;;;;;;;;;;;49527:63:0;;;;;;;;;;;;;::::1;;55975:5:::2;::::0;56010:20:::2;::::0;;-1:-1:-1;;;56010:20:0;;;;-1:-1:-1;;;;;55975:5:0;;::::2;::::0;55958:14:::2;::::0;55975:5;;56010:18:::2;::::0;:20:::2;::::0;;::::2;::::0;::::2;::::0;;;;;;;;;55975:5;56010:20;::::2;;::::0;::::2;;;;::::0;::::2;;;;;;;;;;;;::::0;::::2;;;;;;;;;;;;;;;;;;;::::0;::::2;;-1:-1:-1::0;56010:20:0;56079:5:::2;::::0;56072:75:::2;::::0;;-1:-1:-1;;;56072:75:0;;-1:-1:-1;;;;;56072:75:0;;::::2;;::::0;::::2;::::0;;;::::2;::::0;;;;;;::::2;::::0;;;;;::::2;;::::0;;;;;;56010:20;;-1:-1:-1;56042:12:0::2;::::0;56079:5;;;::::2;::::0;56072:25:::2;::::0;:75;;;;;56079:5:::2;::::0;56072:75;;;;;;;56079:5;56072:75;::::2;;::::0;::::2;;;;::::0;::::2;;;;;;;;;;;;::::0;::::2;;;;;;;;;;;;;;;;;;;::::0;::::2;;-1:-1:-1::0;56072:75:0;;-1:-1:-1;56160:17:0::2;56180:7:::0;:91:::2;;56239:6;-1:-1:-1::0;;;;;56232:26:0::2;;56259:11;56232:39;;;;;;;;;;;;;-1:-1:-1::0;;;;;56232:39:0::2;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::2;;;;;;;;;;;;::::0;::::2;;;;;;;;;;;;;;;;;;;::::0;::::2;;-1:-1:-1::0;56232:39:0;56180:91:::2;;;56197:6;-1:-1:-1::0;;;;;56190:26:0::2;;56217:11;56190:39;;;;;;;;;;;;;-1:-1:-1::0;;;;;56190:39:0::2;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::2;;;;;;;;;;;;::::0;::::2;;;;;;;;;;;;;;;;;;;::::0;::::2;;-1:-1:-1::0;56190:39:0;56180:91:::2;56371:13;::::0;;56356:125:::2;::::0;;-1:-1:-1;;;56356:125:0;;-1:-1:-1;;;;;56356:125:0;;::::2;::::0;;::::2;::::0;;;;;;::::2;::::0;;;;;;::::2;::::0;;;;;::::2;;::::0;;;;;;;;;;;;;;;;56371:13:::2;56356:125:::0;;;;;;;;56160:111;;-1:-1:-1;56371:13:0;;;::::2;::::0;56356:51:::2;::::0;:125;;;;;56371:13;56356:125;;;;;;56371:13;;56356:125;::::2;;::::0;::::2;;;;::::0;::::2;;;;;;;;;;;;::::0;::::2;;;;;;;;;56504:8;-1:-1:-1::0;;;;;56494:34:0::2;;56529:6;56494:42;;;;;;;;;;;;;-1:-1:-1::0;;;;;56494:42:0::2;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::2;;;;;;;;;;;;::::0;::::2;;;;;-1:-1:-1::0;;56547:96:0::2;::::0;;-1:-1:-1;;;56547:96:0;;-1:-1:-1;;;;;56547:96:0;;::::2;;::::0;::::2;::::0;;;::::2;::::0;;;;;;::::2;::::0;;;;;::::2;;::::0;;;;;;::::2;::::0;;;;;;:32;;::::2;::::0;-1:-1:-1;56547:32:0::2;::::0;-1:-1:-1;56547:96:0;;;;;-1:-1:-1;;56547:96:0;;;;;;;;-1:-1:-1;56547:32:0;:96;::::2;;::::0;::::2;;;;::::0;::::2;;;;;;;;;;;;::::0;::::2;;;;;;;;;56664:8;-1:-1:-1::0;;;;;56654:35:0::2;;56690:6;56654:43;;;;;;;;;;;;;-1:-1:-1::0;;;;;56654:43:0::2;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::2;;;;;;;;;;;;::::0;::::2;;;;;-1:-1:-1::0;;3518:1:0;4480:7;:22;-1:-1:-1;;;;;;;;;;;55730:975:0:o;40317:145::-;789:3;;-1:-1:-1;;;;;789:3:0;775:10;:17;767:51;;;;;-1:-1:-1;;;767:51:0;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;767:51:0;;;;;;;;;;;;;;;40420:6:::1;-1:-1:-1::0;;;;;40413:22:0::1;;40436:8;40446:7;40413:41;;;;;;;;;;;;;-1:-1:-1::0;;;;;40413:41:0::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;::::0;::::1;;-1:-1:-1::0;;;;;40317:145:0:o;39518:464::-;37882:5;;-1:-1:-1;;;;;37882:5:0;37868:10;:19;37860:62;;;;;-1:-1:-1;;;37860:62:0;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;37860:62:0;;;;;;;;;;;;;;;39699:9:::1;39694:212;39718:7;:14;39714:1;:18;39694:212;;;39754:13;39770:7;39778:1;39770:10;;;;;;;;;;;;;;39754:26;;39823:10;39834:1;39823:13;;;;;;;;;;;;;;39795:18;:25;39814:5;-1:-1:-1::0;;;;;39795:25:0::1;-1:-1:-1::0;;;;;39795:25:0::1;;;;;;;;;;;;:41;;;;39880:11;39892:1;39880:14;;;;;;;;;::::0;;::::1;::::0;;;;;;;-1:-1:-1;;;;;39851:26:0;;::::1;;::::0;;;:19:::1;:26:::0;;;;;;:43;39734:3:::1;;39694:212;;;;39923:51;39941:7;39950:10;39962:11;39923:51;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;;::::1;::::0;;;::::1;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;;::::1;::::0;;;::::1;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;;::::1;::::0;;;::::1;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;39518:464:::0;;;:::o;39990:319::-;37882:5;;-1:-1:-1;;;;;37882:5:0;37868:10;:19;37860:62;;;;;-1:-1:-1;;;37860:62:0;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;37860:62:0;;;;;;;;;;;;;;;-1:-1:-1;;;;;40094:19:0;::::1;40077:14;40094:19:::0;;;:11:::1;:19;::::0;;;;;40128:11;40124:28:::1;;40143:7;;;40124:28;-1:-1:-1::0;;;;;40164:19:0;::::1;40186:1;40164:19:::0;;;:11:::1;:19;::::0;;;;:23;40198:46:::1;::::0;40226:9;40237:6;40198:27:::1;:46::i;:::-;40262:39;::::0;;-1:-1:-1;;;;;40262:39:0;;::::1;::::0;;;::::1;;::::0;::::1;::::0;;;;;;;;;::::1;::::0;;;;;;;::::1;37933:1;39990:319:::0;;:::o;36238:20::-;;;-1:-1:-1;;;;;36238:20:0;;:::o;36329:21::-;;;-1:-1:-1;;;;;36329:21:0;;:::o;36267:20::-;;;-1:-1:-1;;;;;36267:20:0;;:::o;44430:627::-;44554:15;;-1:-1:-1;;;;;44554:15:0;44584:30;44580:69;;44631:7;;;44580:69;44662:20;44684:16;44721;-1:-1:-1;;;;;44704:56:0;;44761:8;44704:66;;;;;;;;;;;;;-1:-1:-1;;;;;44704:66:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;44704:66:0;;;;;;;;;-1:-1:-1;44704:66:0;-1:-1:-1;44787:26:0;44783:65;;44830:7;;;;;44783:65;44865:184;44904:8;44927:10;44959:5;;;;;;;;;-1:-1:-1;;;;;44959:5:0;-1:-1:-1;;;;;44952:34:0;;:36;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;44952:36:0;44865:184;;;-1:-1:-1;;;;;44865:184:0;;;;;44952:36;44865:184;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;44430:627;;;;;:::o;6582:397::-;6697:6;6672:21;:31;;6664:73;;;;;-1:-1:-1;;;6664:73:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;6847:35;;6829:12;;-1:-1:-1;;;;;6847:14:0;;;6870:6;;6829:12;6847:35;6829:12;6847:35;6870:6;6847:14;:35;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6828:54;;;6901:7;6893:78;;;;-1:-1:-1;;;6893:78:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6582:397;;;:::o;42611:1255::-;42853:5;;42816:7;;-1:-1:-1;;;;;42853:5:0;42816:7;42891;:91;;42950:6;-1:-1:-1;;;;;42943:26:0;;42970:11;42943:39;;;;;;;;;;;;;-1:-1:-1;;;;;42943:39:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;42943:39:0;42891:91;;;42908:6;-1:-1:-1;;;;;42901:26:0;;42928:11;42901:39;;;;;;;;;;;;;-1:-1:-1;;;;;42901:39:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;42901:39:0;42891:91;42871:111;;42997:7;42993:234;;;43042:6;43029:9;:19;;43021:80;;;;-1:-1:-1;;;43021:80:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;42993:234;;;43155:6;43142:9;:19;;43134:81;;;;-1:-1:-1;;;43134:81:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;43239:16;43265:6;-1:-1:-1;;;;;43258:18:0;;:20;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;43239:39;;43380:13;;;;;;;;;-1:-1:-1;;;;;43380:13:0;-1:-1:-1;;;;;43365:51:0;;43417:8;43427:16;43445:11;43458:7;43467:10;43479:9;43490:5;43365:131;;;;;;;;;;;;;-1:-1:-1;;;;;43365:131:0;;;;;;-1:-1:-1;;;;;43365:131:0;;;;;;-1:-1:-1;;;;;43365:131:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;43519:8;-1:-1:-1;;;;;43509:34:0;;43544:6;43509:42;;;;;;;;;;;;;-1:-1:-1;;;;;43509:42:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;43562:17;43590:6;;;;;;;;;-1:-1:-1;;;;;43590:6:0;-1:-1:-1;;;;;43582:38:0;;43621:8;43631:16;43649:11;43662:16;43680:10;43692:7;43701:9;43582:129;;;;;;;;;;;;;-1:-1:-1;;;;;43582:129:0;;;;;;-1:-1:-1;;;;;43582:129:0;;;;;;-1:-1:-1;;;;;43582:129:0;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;43582:129:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;43582:129:0;43722:43;;;-1:-1:-1;;;43722:43:0;;-1:-1:-1;;;;;43722:43:0;;;;;;;;;43582:129;;-1:-1:-1;43722:35:0;;;;;;:43;;;;;-1:-1:-1;;43722:43:0;;;;;;;;-1:-1:-1;43722:35:0;:43;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;43778:51;43808:8;43818:10;43778:29;:51::i;:::-;43849:9;42611:1255;-1:-1:-1;;;;;;;;;;;;42611:1255:0:o;23018:177::-;23128:58;;;-1:-1:-1;;;;;23128:58:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;23128:58:0;-1:-1:-1;;;23128:58:0;;;23101:86;;23121:5;;23101:19;:86::i;45065:289::-;45158:7;45182:5;:12;45198:1;45182:17;45178:107;;;45223:50;45234:5;45240:1;45234:8;;;;;;;;;;;;;;45244:5;45250:1;45244:8;;;;;;;;;;;;;;45254:7;45263:9;45223:10;:50::i;:::-;45216:57;;;;45178:107;45295:51;;-1:-1:-1;;;45295:51:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;45065:289;;;;;;:::o;45840:513::-;45960:4;;45954:32;;;-1:-1:-1;;;45954:32:0;;;;;;;;;;-1:-1:-1;;;;;45960:4:0;;;;45954:20;;:32;;;;;45960:4;;45954:32;;;;;;;;45960:4;;45954:32;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;46261:36:0;;46229:9;;-1:-1:-1;46240:17:0;;-1:-1:-1;;;;;;46261:14:0;;;46283:9;;46229;46261:36;46229:9;46261:36;46283:9;46261:14;:36;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;46228:69;;;;46316:4;46308:37;;;;;-1:-1:-1;;;46308:37:0;;;;;;;;;;;;-1:-1:-1;;;46308:37:0;;;;;;;;;;;;;;;45840:513;;;;:::o;45693:139::-;45743:9;:14;45739:86;;45780:4;;;;;;;;;-1:-1:-1;;;;;45780:4:0;-1:-1:-1;;;;;45774:19:0;;45801:9;45774:39;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;45739:86;45693:139::o;46361:858::-;46578:7;46598:20;46621:167;46652:8;46675:5;46695:9;46719:11;46745:7;46767:10;46621:16;:167::i;:::-;46598:190;;46805:15;46801:382;;;46837:22;46862:77;36224:5;46862:51;46876:36;46901:10;;36224:5;46876:24;;:36;;;;:::i;:::-;46862:9;;:13;:51::i;:::-;:55;;:77::i;:::-;46837:102;-1:-1:-1;46954:17:0;46974:29;:9;46837:102;46974:13;:29::i;:::-;46954:49;;47018:16;47037:5;47058:1;47043:5;:12;:16;47037:23;;;;;;;;;;;;;;47018:42;;47099:36;47125:9;47099:11;:21;47111:8;-1:-1:-1;;;;;47099:21:0;-1:-1:-1;;;;;47099:21:0;;;;;;;;;;;;;:25;;:36;;;;:::i;:::-;-1:-1:-1;;;;;47075:21:0;;;;;;;:11;:21;;;;;:60;-1:-1:-1;47157:14:0;-1:-1:-1;47150:21:0;;-1:-1:-1;47150:21:0;46801:382;47202:9;47195:16;;;46361:858;;;;;;;;;:::o;41421:1182::-;41600:5;;-1:-1:-1;;;;;41600:5:0;41583:14;41638:7;:91;;41697:6;-1:-1:-1;;;;;41690:26:0;;41717:11;41690:39;;;;;;;;;;;;;-1:-1:-1;;;;;41690:39:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;41690:39:0;41638:91;;;41655:6;-1:-1:-1;;;;;41648:26:0;;41675:11;41648:39;;;;;;;;;;;;;-1:-1:-1;;;;;41648:39:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;41648:39:0;41638:91;41618:111;;41744:7;41740:234;;;41789:6;41776:9;:19;;41768:81;;;;-1:-1:-1;;;41768:81:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;41740:234;;;41903:6;41890:9;:19;;41882:80;;;;-1:-1:-1;;;41882:80:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;41986:56;42009:11;42022:7;42031:10;41986:22;:56::i;:::-;42055:16;42081:6;-1:-1:-1;;;;;42074:18:0;;:20;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;42074:20:0;42196:13;;;42181:130;;;-1:-1:-1;;;42181:130:0;;-1:-1:-1;;;;;42181:130:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;42196:13;42181:130;;;;;;42074:20;;-1:-1:-1;42196:13:0;;;42181:51;;:130;;;;;42196:13;;42181:130;;;;;;;;42196:13;;42181:130;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;42334:8;-1:-1:-1;;;;;42324:34:0;;42359:6;42324:42;;;;;;;;;;;;;-1:-1:-1;;;;;42324:42:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;42385:6:0;;42377:100;;;-1:-1:-1;;;42377:100:0;;-1:-1:-1;;;;;42377:100:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;42385:6;;;;;-1:-1:-1;42377:38:0;;-1:-1:-1;42377:100:0;;;;;42385:6;;42377:100;;;;;;;42385:6;;42377:100;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;42498:8;-1:-1:-1;;;;;42488:35:0;;42524:6;42488:43;;;;;;;;;;;;;-1:-1:-1;;;;;42488:43:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;42544:51;42574:8;42584:10;42544:29;:51::i;:::-;41421:1182;;;;;;;;;:::o;59436:1767::-;59871:9;;59860:61;;;-1:-1:-1;;;59860:61:0;;-1:-1:-1;;;;;59860:61:0;;;;;;;;;;;;;;;59547:22;;;;;;;;;;;;59871:9;;59860:38;;:61;;;;;;;;;;;;;;59871:9;59860:61;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;59860:61:0;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;59860:61:0;;-1:-1:-1;59860:61:0;-1:-1:-1;59860:61:0;-1:-1:-1;59860:61:0;;-1:-1:-1;59860:61:0;-1:-1:-1;59934:56:0;59860:61;;;59934:22;:56::i;:::-;60008:27;;-1:-1:-1;;;60008:27:0;;;;60003:45;;60039:7;;;;;;;;60003:45;60093:7;60088:25;;60104:7;;;;;;;;60088:25;60227:1;60214:10;:14;60206:56;;;;;-1:-1:-1;;;60206:56:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;60298:5;;60364:68;;;-1:-1:-1;;;60364:68:0;;-1:-1:-1;;;;;60364:68:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;60298:5;;;;;60275:13;;;;60298:5;;60364:18;;:68;;;;;60298:5;;60364:68;;;;;;;;60298:5;60364:68;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;60364:68:0;;;;;;;;;-1:-1:-1;60364:68:0;-1:-1:-1;60515:9:0;60511:26;;60528:7;;;;;;;;;;;60511:26;60549:16;60568:20;:4;60577:10;60568:8;:20::i;:::-;60549:39;;60599:23;60625:6;-1:-1:-1;;;;;60625:20:0;;60646:14;60662:20;60625:58;;;;;;;;;;;;;-1:-1:-1;;;;;60625:58:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;60625:58:0;;-1:-1:-1;60694:22:0;60719:31;:10;60625:58;60719:14;:31::i;:::-;60694:56;-1:-1:-1;60763:20:0;60786:46;60821:10;60786:30;:4;36224:5;60786:8;:30::i;:46::-;60763:69;;60977:30;61010:82;61077:14;61010:62;61046:25;;36224:5;61023:48;61010:8;:12;;:62;;;;:::i;:82::-;60977:115;;61139:12;61113:22;:38;;61105:90;;;;-1:-1:-1;;;61105:90:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;59436:1767;;;;;;;;;;;;;;;;:::o;43874:548::-;43998:15;;-1:-1:-1;;;;;43998:15:0;44028:30;44024:69;;44075:7;;;44024:69;44106:20;44128:16;44165;-1:-1:-1;;;;;44148:56:0;;44205:8;44148:66;;;;;;;;;;;;;-1:-1:-1;;;;;44148:66:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;44148:66:0;;;;;;;44324:5;;44148:66;44317:36;;-1:-1:-1;;;44317:36:0;;;;44148:66;;-1:-1:-1;44148:66:0;;-1:-1:-1;44230:184:0;;44269:8;;44292:10;;-1:-1:-1;;;;;44324:5:0;;;;44317:34;;:36;;;;;44148:66;;44317:36;;;;;44324:5;44317:36;;;;;;;;;;25323:761;25747:23;25773:69;25801:4;25773:69;;;;;;;;;;;;;;;;;25781:5;-1:-1:-1;;;;;25773:27:0;;;:69;;;;;:::i;:::-;25857:17;;25747:95;;-1:-1:-1;25857:21:0;25853:224;;25999:10;25988:30;;;;;;;;;;;;;;;-1:-1:-1;25988:30:0;25980:85;;;;-1:-1:-1;;;25980:85:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;45362:323;45520:5;;45513:50;;;-1:-1:-1;;;45513:50:0;;-1:-1:-1;;;;;45513:50:0;;;;;;;;;;;;;;;;;;;;;;;45473:7;;;;45520:5;;45513:18;;:50;;;;;;;;;;;;;;45473:7;45520:5;45513:50;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;45513:50:0;;-1:-1:-1;45582:20:0;;;;45574:76;;;;-1:-1:-1;;;45574:76:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;45668:9;45362:323;-1:-1:-1;;;;;45362:323:0:o;47227:1449::-;47453:4;47535:7;47530:31;;-1:-1:-1;47553:5:0;47546:12;;47530:31;47658:15;47654:37;;-1:-1:-1;47684:4:0;47677:11;;47654:37;47703:23;47729:5;47750:1;47735:5;:12;:16;47729:23;;;;;;;;;;;;;;;;;;47788:5;;47854:67;;;-1:-1:-1;;;47854:67:0;;-1:-1:-1;;;;;47854:67:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;47729:23;;-1:-1:-1;47788:5:0;;;47765:13;;;;47788:5;;47854:18;;:67;;;;;47788:5;;47854:67;;;;;;;47788:5;47854:67;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;47854:67:0;;;;;;;;;-1:-1:-1;47854:67:0;-1:-1:-1;48004:9:0;48000:32;;48024:5;48017:12;;;;;;;;48000:32;48044:16;48063:20;:4;48072:10;48063:8;:20::i;:::-;48044:39;;48094:23;48120:6;-1:-1:-1;;;;;48120:20:0;;48141:15;48158:9;48120:48;;;;;;;;;;;;;-1:-1:-1;;;;;48120:48:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;48120:48:0;;-1:-1:-1;48179:22:0;48204:31;:10;48120:48;48204:14;:31::i;:::-;48179:56;-1:-1:-1;48248:20:0;48271:46;48306:10;48271:30;:4;36224:5;48271:8;:30::i;:46::-;48248:69;;48462:20;48485:82;48552:14;48485:62;48521:25;;36224:5;48498:48;48485:8;:12;;:62;;;;:::i;:82::-;48641:27;;;;;47227:1449;-1:-1:-1;;;;;;;;;;;;;;;47227:1449:0:o;16759:136::-;16817:7;16844:43;16848:1;16851;16844:43;;;;;;;;;;;;;;;;;:3;:43::i;:::-;16837:50;;16759:136;;;;;:::o;17649:471::-;17707:7;17952:6;17948:47;;-1:-1:-1;17982:1:0;17975:8;;17948:47;18019:5;;;18023:1;18019;:5;:1;18043:5;;;;;:10;18035:56;;;;-1:-1:-1;;;18035:56:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;18596:132;18654:7;18681:39;18685:1;18688;18681:39;;;;;;;;;;;;;-1:-1:-1;;;18681:39:0;;;:3;:39::i;16295:181::-;16353:7;16385:5;;;16409:6;;;;16401:46;;;;;-1:-1:-1;;;16401:46:0;;;;;;;;;;;;-1:-1:-1;;;16401:46:0;;;;;;;;;;;;;;40605:808;40721:15;40717:54;;40753:7;;40717:54;40787:7;40783:623;;;-1:-1:-1;;;;;40839:31:0;;40811:25;40839:31;;;:18;:31;;;;;;40889:21;;;;;:101;;-1:-1:-1;40921:5:0;;40914:40;;;-1:-1:-1;;;40914:40:0;;-1:-1:-1;;;;;40914:40:0;;;;;;;;;40973:17;;40914:56;;40959:10;;40921:5;;;40914:27;;:40;;;;;;;;;;;;;;;40921:5;40914:40;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;40914:40:0;;:44;:56::i;:::-;:76;40889:101;40885:198;;;41011:56;;-1:-1:-1;;;41011:56:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;40885:198;40783:623;;;;-1:-1:-1;;;;;41144:32:0;;41115:26;41144:32;;;:19;:32;;;;;;41195:22;;;;;:106;;-1:-1:-1;41228:5:0;;41221:43;;;-1:-1:-1;;;41221:43:0;;-1:-1:-1;;;;;41221:43:0;;;;;;;;;41283:18;;41221:59;;41269:10;;41228:5;;;41221:30;;:43;;;;;;;;;;;;;;;41228:5;41221:43;;;;;;;;;;:59;:80;41195:106;41191:204;;;41322:57;;-1:-1:-1;;;41322:57:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8143:195;8246:12;8278:52;8300:6;8308:4;8314:1;8317:12;8278:21;:52::i;:::-;8271:59;8143:195;-1:-1:-1;;;;8143:195:0:o;17198:192::-;17284:7;17320:12;17312:6;;;;17304:29;;;;-1:-1:-1;;;17304:29:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;17356:5:0;;;17198:192::o;19224:278::-;19310:7;19345:12;19338:5;19330:28;;;;-1:-1:-1;;;19330:28:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;19369:9;19385:1;19381;:5;;;;;;;19224:278;-1:-1:-1;;;;;19224:278:0:o;9195:530::-;9322:12;9380:5;9355:21;:30;;9347:81;;;;-1:-1:-1;;;9347:81:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;9447:18;9458:6;9447:10;:18::i;:::-;9439:60;;;;;-1:-1:-1;;;9439:60:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;9573:12;9587:23;9614:6;-1:-1:-1;;;;;9614:11:0;9634:5;9642:4;9614:33;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;9614:33:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;9572:75;;;;9665:52;9683:7;9692:10;9704:12;9665:17;:52::i;:::-;9658:59;9195:530;-1:-1:-1;;;;;;;9195:530:0:o;5225:422::-;5592:20;5631:8;;;5225:422::o;11735:742::-;11850:12;11879:7;11875:595;;;-1:-1:-1;11910:10:0;11903:17;;11875:595;12024:17;;:21;12020:439;;12287:10;12281:17;12348:15;12335:10;12331:2;12327:19;12320:44;12235:148;12423:20;;-1:-1:-1;;;12423:20:0;;;;;;;;;;;;;;;;;12430:12;;12423:20;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

Swarm Source

ipfs://eab7b3a21b857035b2395382f21e888e45bf752dcf1c0dfcc78ab925e34882e6
Block Transaction Gas Used Reward
Age Block Fee Address BC Fee Address Voting Power Jailed Incoming
Block Uncle Number Difficulty Gas Used Reward
Loading
Loading
Make sure to use the "Vote Down" button for any spammy posts, and the "Vote Up" for interesting conversations.