ETH Price: $2,314.30 (+0.55%)

Contract

0x2f81B5870BA2C8E883DBC0aD2686F06Ee6499e97
Transaction Hash
Method
Block
From
To
Cancel Decrease ...160188512024-09-15 8:27:492 days ago1726388869IN
0x2f81B587...Ee6499e97
0 ETH0.000007510.14598884
Cancel Decrease ...160135222024-09-15 3:59:262 days ago1726372766IN
0x2f81B587...Ee6499e97
0 ETH0.000005970.11611421
Cancel Decrease ...159849822024-09-14 4:01:373 days ago1726286497IN
0x2f81B587...Ee6499e97
0 ETH0.000008830.17169914
Cancel Decrease ...159539622024-09-13 2:02:214 days ago1726192941IN
0x2f81B587...Ee6499e97
0 ETH0.000009330.18150919
Cancel Decrease ...159052402024-09-11 9:13:186 days ago1726045998IN
0x2f81B587...Ee6499e97
0 ETH0.000010970.21321959
Cancel Decrease ...158559772024-09-09 15:55:557 days ago1725897355IN
0x2f81B587...Ee6499e97
0 ETH0.000013670.26583841
Cancel Decrease ...157730562024-09-06 18:24:3910 days ago1725647079IN
0x2f81B587...Ee6499e97
0 ETH0.000015270.29683383
Cancel Decrease ...157185922024-09-04 20:45:4112 days ago1725482741IN
0x2f81B587...Ee6499e97
0 ETH0.000019080.37098147
Cancel Decrease ...156693302024-09-03 3:36:4514 days ago1725334605IN
0x2f81B587...Ee6499e97
0 ETH0.000007230.14059722
Cancel Decrease ...156536192024-09-02 14:26:3314 days ago1725287193IN
0x2f81B587...Ee6499e97
0 ETH0.000015790.30708777
Cancel Decrease ...155917432024-08-31 10:43:3217 days ago1725101012IN
0x2f81B587...Ee6499e97
0 ETH0.000006340.12330948
Cancel Decrease ...155848702024-08-31 4:57:1617 days ago1725080236IN
0x2f81B587...Ee6499e97
0 ETH0.000009320.18132257
Cancel Decrease ...155779122024-08-30 23:06:2317 days ago1725059183IN
0x2f81B587...Ee6499e97
0 ETH0.000009270.18021031
Cancel Decrease ...155734472024-08-30 19:21:4017 days ago1725045700IN
0x2f81B587...Ee6499e97
0 ETH0.000008230.16006275
Cancel Decrease ...155116512024-08-28 15:37:3419 days ago1724859454IN
0x2f81B587...Ee6499e97
0 ETH0.000010950.21288754
Cancel Decrease ...154905452024-08-27 21:56:5620 days ago1724795816IN
0x2f81B587...Ee6499e97
0 ETH0.000015730.30579324
Cancel Decrease ...154902082024-08-27 21:40:0220 days ago1724794802IN
0x2f81B587...Ee6499e97
0 ETH0.00001130.21969819
Cancel Decrease ...154380692024-08-26 1:57:2322 days ago1724637443IN
0x2f81B587...Ee6499e97
0 ETH0.00001010.19643738
Cancel Decrease ...154349272024-08-25 23:19:1222 days ago1724627952IN
0x2f81B587...Ee6499e97
0 ETH0.000006030.11737589
Cancel Decrease ...153548262024-08-23 4:07:4825 days ago1724386068IN
0x2f81B587...Ee6499e97
0 ETH0.000009790.19033333
Cancel Decrease ...153394782024-08-22 15:14:5625 days ago1724339696IN
0x2f81B587...Ee6499e97
0 ETH0.000006990.1358837
Cancel Decrease ...153063692024-08-21 11:28:4627 days ago1724239726IN
0x2f81B587...Ee6499e97
0 ETH0.000010610.20625717
Cancel Decrease ...152897012024-08-20 21:29:1127 days ago1724189351IN
0x2f81B587...Ee6499e97
0 ETH0.000008720.16961118
Cancel Decrease ...152803292024-08-20 13:36:0227 days ago1724160962IN
0x2f81B587...Ee6499e97
0 ETH0.000009720.18899189
Cancel Decrease ...152426462024-08-19 6:02:1929 days ago1724047339IN
0x2f81B587...Ee6499e97
0 ETH0.000006950.1351766
View all transactions

Latest 25 internal transactions (View All)

Parent Transaction Hash Block From To
139412982024-07-04 18:37:2474 days ago1720118244
0x2f81B587...Ee6499e97
0.0005 ETH
123925892024-05-11 14:54:08128 days ago1715439248
0x2f81B587...Ee6499e97
0.0005 ETH
123925892024-05-11 14:54:08128 days ago1715439248
0x2f81B587...Ee6499e97
0.0005 ETH
123925402024-05-11 14:51:43128 days ago1715439103
0x2f81B587...Ee6499e97
0.0005 ETH
123925112024-05-11 14:50:15128 days ago1715439015
0x2f81B587...Ee6499e97
0.0005 ETH
123925112024-05-11 14:50:15128 days ago1715439015
0x2f81B587...Ee6499e97
0.0005 ETH
123924912024-05-11 14:49:14128 days ago1715438954
0x2f81B587...Ee6499e97
0.0045 ETH
123924682024-05-11 14:48:06128 days ago1715438886
0x2f81B587...Ee6499e97
0.0005 ETH
123924682024-05-11 14:48:06128 days ago1715438886
0x2f81B587...Ee6499e97
0.0005 ETH
123924682024-05-11 14:48:06128 days ago1715438886
0x2f81B587...Ee6499e97
0.00200754 ETH
123924682024-05-11 14:48:06128 days ago1715438886
0x2f81B587...Ee6499e97
0.00200754 ETH
123924602024-05-11 14:47:42128 days ago1715438862
0x2f81B587...Ee6499e97
0.0005 ETH
123924512024-05-11 14:47:14128 days ago1715438834
0x2f81B587...Ee6499e97
0.0005 ETH
123924282024-05-11 14:46:06128 days ago1715438766
0x2f81B587...Ee6499e97
0.0005 ETH
123924282024-05-11 14:46:06128 days ago1715438766
0x2f81B587...Ee6499e97
0.0005 ETH
123924122024-05-11 14:45:17128 days ago1715438717
0x2f81B587...Ee6499e97
0.00418 ETH
102264402024-02-25 12:33:39204 days ago1708864419
0x2f81B587...Ee6499e97
0.0016205 ETH
102264402024-02-25 12:33:39204 days ago1708864419
0x2f81B587...Ee6499e97
0.0016205 ETH
102264402024-02-25 12:33:39204 days ago1708864419
0x2f81B587...Ee6499e97
0.01 ETH
102264402024-02-25 12:33:39204 days ago1708864419
0x2f81B587...Ee6499e97
0.01 ETH
102264112024-02-25 12:32:12204 days ago1708864332
0x2f81B587...Ee6499e97
0.0116205 ETH
101958232024-02-24 11:07:43206 days ago1708772863
0x2f81B587...Ee6499e97
0.001155 ETH
101958232024-02-24 11:07:43206 days ago1708772863
0x2f81B587...Ee6499e97
0.001155 ETH
101958232024-02-24 11:07:43206 days ago1708772863
0x2f81B587...Ee6499e97
0.00563601 ETH
101958232024-02-24 11:07:43206 days ago1708772863
0x2f81B587...Ee6499e97
0.00563601 ETH
View All Internal Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
PositionRouter

Compiler Version
v0.6.12+commit.27d51765

Optimization Enabled:
Yes with 10 runs

Other Settings:
default evmVersion, MIT license

Contract Source Code (Solidity)

/**
 *Submitted for verification at zkevm.polygonscan.com on 2023-06-30
*/

//SPDX-License-Identifier: MIT

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 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 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.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;
    function setIsGlobalShortDataReady(bool value) external;
    function setInitData(address[] calldata _tokens, uint256[] calldata _averagePrices) external;
}






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;

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;

/**
 * @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 ITimelock {
    function marginFeeBasisPoints() external returns (uint256);
    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.0;




library PositionUtils {
    using SafeMath for uint256;

    uint256 public constant BASIS_POINTS_DIVISOR = 10000;

    event LeverageDecreased(uint256 collateralDelta, uint256 prevLeverage, uint256 nextLeverage);

    function shouldDeductFee(
        address _vault,
        address _account,
        address[] memory _path,
        uint256 _amountIn,
        address _indexToken,
        bool _isLong,
        uint256 _sizeDelta,
        uint256 _increasePositionBufferBps
    ) external 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);

        emit LeverageDecreased(collateralDelta, prevLeverage, nextLeverage);

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

    function increasePosition(
        address _vault,
        address _router,
        address _shortsTracker,
        address _account,
        address _collateralToken,
        address _indexToken,
        uint256 _sizeDelta,
        bool _isLong,
        uint256 _price
    ) external {
        uint256 markPrice = _isLong ? IVault(_vault).getMaxPrice(_indexToken) : IVault(_vault).getMinPrice(_indexToken);
        if (_isLong) {
            require(markPrice <= _price, "markPrice > price");
        } else {
            require(markPrice >= _price, "markPrice < price");
        }

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






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.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;



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

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

interface IReferralStorage {
    function codeOwners(bytes32 _code) external view returns (address);
    function traderReferralCodes(address _account) external view returns (bytes32);
    function referrerDiscountShares(address _account) external view returns (uint256);
    function referrerTiers(address _account) external view returns (uint256);
    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;

interface IWETH {
    function deposit() external payable;
    function transfer(address to, uint value) external returns (bool);
    function withdraw(uint) 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;

    uint256 public ethTransferGasLimit = 500 * 1000;

    // 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 SetEthTransferGasLimit(uint256 ethTransferGasLimit);
    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, "forbidden");
        _;
    }

    constructor(
        address _vault,
        address _router,
        address _shortsTracker,
        address _weth,
        uint256 _depositFee
    ) public {
        vault = _vault;
        router = _router;
        weth = _weth;
        depositFee = _depositFee;
        shortsTracker = _shortsTracker;

        admin = msg.sender;
    }

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

    function setAdmin(address _admin) external onlyGov {
        admin = _admin;
        emit SetAdmin(_admin);
    }

    function setEthTransferGasLimit(uint256 _ethTransferGasLimit) external onlyAdmin {
        ethTransferGasLimit = _ethTransferGasLimit;
        emit SetEthTransferGasLimit(_ethTransferGasLimit);
    }

    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 {
        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("max longs exceeded");
            }
        } else {
            uint256 maxGlobalShortSize = maxGlobalShortSizes[_indexToken];
            if (maxGlobalShortSize > 0 && IVault(vault).globalShortSizes(_indexToken).add(_sizeDelta) > maxGlobalShortSize) {
                revert("max shorts exceeded");
            }
        }
    }

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

        PositionUtils.increasePosition(
            vault,
            router,
            shortsTracker,
            _account,
            _collateralToken,
            _indexToken,
            _sizeDelta,
            _isLong,
            _price
        );

        _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, "markPrice < price");
        } else {
            require(markPrice <= _price, "markPrice > price");
        }

        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 _swap(address[] memory _path, uint256 _minOut, address _receiver) internal returns (uint256) {
        if (_path.length == 2) {
            return _vaultSwap(_path[0], _path[1], _minOut, _receiver);
        }
        revert("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, "insufficient amountOut");
        return amountOut;
    }

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

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

        (bool success, /* bytes memory data */) = _receiver.call{ value: _amountOut, gas: ethTransferGasLimit }("");

        if (success) { return; }

        // if the transfer failed, re-wrap the token and send it to the receiver
        _weth.deposit{ value: _amountOut }();
        _weth.transfer(address(_receiver), _amountOut);
    }

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

        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 _emitIncreasePositionReferral(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; }

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

        emit IncreasePositionReferral(
            _account,
            _sizeDelta,
            ITimelock(timelock).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; }

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

        emit DecreasePositionReferral(
            _account,
            _sizeDelta,
            ITimelock(timelock).marginFeeBasisPoints(),
            referralCode,
            referrer
        );
    }
}






pragma solidity 0.6.12;

interface IPositionRouter {
    function increasePositionRequestKeysStart() external view returns (uint256);
    function decreasePositionRequestKeysStart() external view returns (uint256);
    function increasePositionRequestKeys(uint256 index) external view returns (bytes32);
    function decreasePositionRequestKeys(uint256 index) external view returns (bytes32);
    function executeIncreasePositions(uint256 _count, address payable _executionFeeReceiver) external;
    function executeDecreasePositions(uint256 _count, address payable _executionFeeReceiver) external;
    function getRequestQueueLengths() external view returns (uint256, uint256, uint256, uint256);
    function getIncreasePositionRequestPath(bytes32 _key) external view returns (address[] memory);
    function getDecreasePositionRequestPath(bytes32 _key) external view returns (address[] memory);
}






pragma solidity ^0.6.0;

interface IPositionRouterCallbackReceiver {
    function gmxPositionCallback(bytes32 positionKey, bool isExecuted, bool isIncrease) external;
}






pragma solidity ^0.6.0;
contract PositionRouter is BasePositionManager, IPositionRouter {
    using Address for address;

    struct IncreasePositionRequest {
        address account;
        address[] path;
        address indexToken;
        uint256 amountIn;
        uint256 minOut;
        uint256 sizeDelta;
        bool isLong;
        uint256 acceptablePrice;
        uint256 executionFee;
        uint256 blockNumber;
        uint256 blockTime;
        bool hasCollateralInETH;
        address callbackTarget;
    }

    struct DecreasePositionRequest {
        address account;
        address[] path;
        address indexToken;
        uint256 collateralDelta;
        uint256 sizeDelta;
        bool isLong;
        address receiver;
        uint256 acceptablePrice;
        uint256 minOut;
        uint256 executionFee;
        uint256 blockNumber;
        uint256 blockTime;
        bool withdrawETH;
        address callbackTarget;
    }

    uint256 public minExecutionFee;

    uint256 public minBlockDelayKeeper;
    uint256 public minTimeDelayPublic;
    uint256 public maxTimeDelay;

    bool public isLeverageEnabled = true;

    bytes32[] public override increasePositionRequestKeys;
    bytes32[] public override decreasePositionRequestKeys;

    uint256 public override increasePositionRequestKeysStart;
    uint256 public override decreasePositionRequestKeysStart;

    uint256 public callbackGasLimit;
    mapping (address => uint256) public customCallbackGasLimits;

    mapping (address => bool) public isPositionKeeper;

    mapping (address => uint256) public increasePositionsIndex;
    mapping (bytes32 => IncreasePositionRequest) public increasePositionRequests;

    mapping (address => uint256) public decreasePositionsIndex;
    mapping (bytes32 => DecreasePositionRequest) public decreasePositionRequests;

    event CreateIncreasePosition(
        address indexed account,
        address[] path,
        address indexToken,
        uint256 amountIn,
        uint256 minOut,
        uint256 sizeDelta,
        bool isLong,
        uint256 acceptablePrice,
        uint256 executionFee,
        uint256 index,
        uint256 queueIndex,
        uint256 blockNumber,
        uint256 blockTime,
        uint256 gasPrice
    );

    event ExecuteIncreasePosition(
        address indexed account,
        address[] path,
        address indexToken,
        uint256 amountIn,
        uint256 minOut,
        uint256 sizeDelta,
        bool isLong,
        uint256 acceptablePrice,
        uint256 executionFee,
        uint256 blockGap,
        uint256 timeGap
    );

    event CancelIncreasePosition(
        address indexed account,
        address[] path,
        address indexToken,
        uint256 amountIn,
        uint256 minOut,
        uint256 sizeDelta,
        bool isLong,
        uint256 acceptablePrice,
        uint256 executionFee,
        uint256 blockGap,
        uint256 timeGap
    );

    event CreateDecreasePosition(
        address indexed account,
        address[] path,
        address indexToken,
        uint256 collateralDelta,
        uint256 sizeDelta,
        bool isLong,
        address receiver,
        uint256 acceptablePrice,
        uint256 minOut,
        uint256 executionFee,
        uint256 index,
        uint256 queueIndex,
        uint256 blockNumber,
        uint256 blockTime
    );

    event ExecuteDecreasePosition(
        address indexed account,
        address[] path,
        address indexToken,
        uint256 collateralDelta,
        uint256 sizeDelta,
        bool isLong,
        address receiver,
        uint256 acceptablePrice,
        uint256 minOut,
        uint256 executionFee,
        uint256 blockGap,
        uint256 timeGap
    );

    event CancelDecreasePosition(
        address indexed account,
        address[] path,
        address indexToken,
        uint256 collateralDelta,
        uint256 sizeDelta,
        bool isLong,
        address receiver,
        uint256 acceptablePrice,
        uint256 minOut,
        uint256 executionFee,
        uint256 blockGap,
        uint256 timeGap
    );

    event SetPositionKeeper(address indexed account, bool isActive);
    event SetMinExecutionFee(uint256 minExecutionFee);
    event SetIsLeverageEnabled(bool isLeverageEnabled);
    event SetDelayValues(uint256 minBlockDelayKeeper, uint256 minTimeDelayPublic, uint256 maxTimeDelay);
    event SetRequestKeysStartValues(uint256 increasePositionRequestKeysStart, uint256 decreasePositionRequestKeysStart);
    event SetCallbackGasLimit(uint256 callbackGasLimit);
    event SetCustomCallbackGasLimit(address callbackTarget, uint256 callbackGasLimit);
    event Callback(address callbackTarget, bool success, uint256 callbackGasLimit);

    modifier onlyPositionKeeper() {
        require(isPositionKeeper[msg.sender], "403");
        _;
    }

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

    function setPositionKeeper(address _account, bool _isActive) external onlyAdmin {
        isPositionKeeper[_account] = _isActive;
        emit SetPositionKeeper(_account, _isActive);
    }

    function setCallbackGasLimit(uint256 _callbackGasLimit) external onlyAdmin {
        callbackGasLimit = _callbackGasLimit;
        emit SetCallbackGasLimit(_callbackGasLimit);
    }

    function setCustomCallbackGasLimit(address _callbackTarget, uint256 _callbackGasLimit) external onlyAdmin {
        customCallbackGasLimits[_callbackTarget] = _callbackGasLimit;
        emit SetCustomCallbackGasLimit(_callbackTarget, _callbackGasLimit);
    }

    function setMinExecutionFee(uint256 _minExecutionFee) external onlyAdmin {
        minExecutionFee = _minExecutionFee;
        emit SetMinExecutionFee(_minExecutionFee);
    }

    function setIsLeverageEnabled(bool _isLeverageEnabled) external onlyAdmin {
        isLeverageEnabled = _isLeverageEnabled;
        emit SetIsLeverageEnabled(_isLeverageEnabled);
    }

    function setDelayValues(uint256 _minBlockDelayKeeper, uint256 _minTimeDelayPublic, uint256 _maxTimeDelay) external onlyAdmin {
        minBlockDelayKeeper = _minBlockDelayKeeper;
        minTimeDelayPublic = _minTimeDelayPublic;
        maxTimeDelay = _maxTimeDelay;
        emit SetDelayValues(_minBlockDelayKeeper, _minTimeDelayPublic, _maxTimeDelay);
    }

    function setRequestKeysStartValues(uint256 _increasePositionRequestKeysStart, uint256 _decreasePositionRequestKeysStart) external onlyAdmin {
        increasePositionRequestKeysStart = _increasePositionRequestKeysStart;
        decreasePositionRequestKeysStart = _decreasePositionRequestKeysStart;

        emit SetRequestKeysStartValues(_increasePositionRequestKeysStart, _decreasePositionRequestKeysStart);
    }

    function executeIncreasePositions(uint256 _endIndex, address payable _executionFeeReceiver) external override onlyPositionKeeper {
        uint256 index = increasePositionRequestKeysStart;
        uint256 length = increasePositionRequestKeys.length;

        if (index >= length) { return; }

        if (_endIndex > length) {
            _endIndex = length;
        }

        while (index < _endIndex) {
            bytes32 key = increasePositionRequestKeys[index];

            // if the request was executed then delete the key from the array
            // if the request was not executed then break from the loop, this can happen if the
            // minimum number of blocks has not yet passed
            // an error could be thrown if the request is too old or if the slippage is
            // higher than what the user specified, or if there is insufficient liquidity for the position
            // in case an error was thrown, cancel the request
            try this.executeIncreasePosition(key, _executionFeeReceiver) returns (bool _wasExecuted) {
                if (!_wasExecuted) { break; }
            } catch {
                // wrap this call in a try catch to prevent invalid cancels from blocking the loop
                try this.cancelIncreasePosition(key, _executionFeeReceiver) returns (bool _wasCancelled) {
                    if (!_wasCancelled) { break; }
                } catch {}
            }

            delete increasePositionRequestKeys[index];
            index++;
        }

        increasePositionRequestKeysStart = index;
    }

    function executeDecreasePositions(uint256 _endIndex, address payable _executionFeeReceiver) external override onlyPositionKeeper {
        uint256 index = decreasePositionRequestKeysStart;
        uint256 length = decreasePositionRequestKeys.length;

        if (index >= length) { return; }

        if (_endIndex > length) {
            _endIndex = length;
        }

        while (index < _endIndex) {
            bytes32 key = decreasePositionRequestKeys[index];

            // if the request was executed then delete the key from the array
            // if the request was not executed then break from the loop, this can happen if the
            // minimum number of blocks has not yet passed
            // an error could be thrown if the request is too old
            // in case an error was thrown, cancel the request
            try this.executeDecreasePosition(key, _executionFeeReceiver) returns (bool _wasExecuted) {
                if (!_wasExecuted) { break; }
            } catch {
                // wrap this call in a try catch to prevent invalid cancels from blocking the loop
                try this.cancelDecreasePosition(key, _executionFeeReceiver) returns (bool _wasCancelled) {
                    if (!_wasCancelled) { break; }
                } catch {}
            }

            delete decreasePositionRequestKeys[index];
            index++;
        }

        decreasePositionRequestKeysStart = index;
    }

    function createIncreasePosition(
        address[] memory _path,
        address _indexToken,
        uint256 _amountIn,
        uint256 _minOut,
        uint256 _sizeDelta,
        bool _isLong,
        uint256 _acceptablePrice,
        uint256 _executionFee,
        bytes32 _referralCode,
        address _callbackTarget
    ) external payable nonReentrant returns (bytes32) {
        require(_executionFee >= minExecutionFee, "fee");
        require(msg.value == _executionFee, "val");
        require(_path.length == 1 || _path.length == 2, "len");

        _transferInETH();
        _setTraderReferralCode(_referralCode);

        if (_amountIn > 0) {
            IRouter(router).pluginTransfer(_path[0], msg.sender, address(this), _amountIn);
        }

        return _createIncreasePosition(
            msg.sender,
            _path,
            _indexToken,
            _amountIn,
            _minOut,
            _sizeDelta,
            _isLong,
            _acceptablePrice,
            _executionFee,
            false,
            _callbackTarget
        );
    }

    function createIncreasePositionETH(
        address[] memory _path,
        address _indexToken,
        uint256 _minOut,
        uint256 _sizeDelta,
        bool _isLong,
        uint256 _acceptablePrice,
        uint256 _executionFee,
        bytes32 _referralCode,
        address _callbackTarget
    ) external payable nonReentrant returns (bytes32) {
        require(_executionFee >= minExecutionFee, "fee");
        require(msg.value >= _executionFee, "val");
        require(_path.length == 1 || _path.length == 2, "len");
        require(_path[0] == weth, "path");
        _transferInETH();
        _setTraderReferralCode(_referralCode);

        uint256 amountIn = msg.value.sub(_executionFee);

        return _createIncreasePosition(
            msg.sender,
            _path,
            _indexToken,
            amountIn,
            _minOut,
            _sizeDelta,
            _isLong,
            _acceptablePrice,
            _executionFee,
            true,
            _callbackTarget
        );
    }

    function createDecreasePosition(
        address[] memory _path,
        address _indexToken,
        uint256 _collateralDelta,
        uint256 _sizeDelta,
        bool _isLong,
        address _receiver,
        uint256 _acceptablePrice,
        uint256 _minOut,
        uint256 _executionFee,
        bool _withdrawETH,
        address _callbackTarget
    ) external payable nonReentrant returns (bytes32) {
        require(_executionFee >= minExecutionFee, "fee");
        require(msg.value == _executionFee, "val");
        require(_path.length == 1 || _path.length == 2, "len");

        if (_withdrawETH) {
            require(_path[_path.length - 1] == weth, "path");
        }

        _transferInETH();

        return _createDecreasePosition(
            msg.sender,
            _path,
            _indexToken,
            _collateralDelta,
            _sizeDelta,
            _isLong,
            _receiver,
            _acceptablePrice,
            _minOut,
            _executionFee,
            _withdrawETH,
            _callbackTarget
        );
    }

    function getRequestQueueLengths() external view override returns (uint256, uint256, uint256, uint256) {
        return (
            increasePositionRequestKeysStart,
            increasePositionRequestKeys.length,
            decreasePositionRequestKeysStart,
            decreasePositionRequestKeys.length
        );
    }

    function executeIncreasePosition(bytes32 _key, address payable _executionFeeReceiver) public nonReentrant returns (bool) {
        IncreasePositionRequest memory request = increasePositionRequests[_key];
        // if the request was already executed or cancelled, return true so that the executeIncreasePositions loop will continue executing the next request
        if (request.account == address(0)) { return true; }

        bool shouldExecute = _validateExecution(request.blockNumber, request.blockTime, request.account);
        if (!shouldExecute) { return false; }

        delete increasePositionRequests[_key];

        if (request.amountIn > 0) {
            uint256 amountIn = request.amountIn;

            if (request.path.length > 1) {
                IERC20(request.path[0]).safeTransfer(vault, request.amountIn);
                amountIn = _swap(request.path, request.minOut, address(this));
            }

            uint256 afterFeeAmount = _collectFees(request.account, request.path, amountIn, request.indexToken, request.isLong, request.sizeDelta);
            IERC20(request.path[request.path.length - 1]).safeTransfer(vault, afterFeeAmount);
        }

        _increasePosition(request.account, request.path[request.path.length - 1], request.indexToken, request.sizeDelta, request.isLong, request.acceptablePrice);

        _transferOutETHWithGasLimitFallbackToWeth(request.executionFee, _executionFeeReceiver);

        emit ExecuteIncreasePosition(
            request.account,
            request.path,
            request.indexToken,
            request.amountIn,
            request.minOut,
            request.sizeDelta,
            request.isLong,
            request.acceptablePrice,
            request.executionFee,
            block.number.sub(request.blockNumber),
            block.timestamp.sub(request.blockTime)
        );

        _callRequestCallback(request.callbackTarget, _key, true, true);

        return true;
    }

    function cancelIncreasePosition(bytes32 _key, address payable _executionFeeReceiver) public nonReentrant returns (bool) {
        IncreasePositionRequest memory request = increasePositionRequests[_key];
        // if the request was already executed or cancelled, return true so that the executeIncreasePositions loop will continue executing the next request
        if (request.account == address(0)) { return true; }

        bool shouldCancel = _validateCancellation(request.blockNumber, request.blockTime, request.account);
        if (!shouldCancel) { return false; }

        delete increasePositionRequests[_key];

        if (request.hasCollateralInETH) {
            _transferOutETHWithGasLimitFallbackToWeth(request.amountIn, payable(request.account));
        } else {
            IERC20(request.path[0]).safeTransfer(request.account, request.amountIn);
        }

       _transferOutETHWithGasLimitFallbackToWeth(request.executionFee, _executionFeeReceiver);

        emit CancelIncreasePosition(
            request.account,
            request.path,
            request.indexToken,
            request.amountIn,
            request.minOut,
            request.sizeDelta,
            request.isLong,
            request.acceptablePrice,
            request.executionFee,
            block.number.sub(request.blockNumber),
            block.timestamp.sub(request.blockTime)
        );

        _callRequestCallback(request.callbackTarget, _key, false, true);

        return true;
    }

    function executeDecreasePosition(bytes32 _key, address payable _executionFeeReceiver) public nonReentrant returns (bool) {
        DecreasePositionRequest memory request = decreasePositionRequests[_key];
        // if the request was already executed or cancelled, return true so that the executeDecreasePositions loop will continue executing the next request
        if (request.account == address(0)) { return true; }

        bool shouldExecute = _validateExecution(request.blockNumber, request.blockTime, request.account);
        if (!shouldExecute) { return false; }

        delete decreasePositionRequests[_key];

        uint256 amountOut = _decreasePosition(request.account, request.path[0], request.indexToken, request.collateralDelta, request.sizeDelta, request.isLong, address(this), request.acceptablePrice);

        if (amountOut > 0) {
            if (request.path.length > 1) {
                IERC20(request.path[0]).safeTransfer(vault, amountOut);
                amountOut = _swap(request.path, request.minOut, address(this));
            }

            if (request.withdrawETH) {
               _transferOutETHWithGasLimitFallbackToWeth(amountOut, payable(request.receiver));
            } else {
               IERC20(request.path[request.path.length - 1]).safeTransfer(request.receiver, amountOut);
            }
        }

       _transferOutETHWithGasLimitFallbackToWeth(request.executionFee, _executionFeeReceiver);

        emit ExecuteDecreasePosition(
            request.account,
            request.path,
            request.indexToken,
            request.collateralDelta,
            request.sizeDelta,
            request.isLong,
            request.receiver,
            request.acceptablePrice,
            request.minOut,
            request.executionFee,
            block.number.sub(request.blockNumber),
            block.timestamp.sub(request.blockTime)
        );

        _callRequestCallback(request.callbackTarget, _key, true, false);

        return true;
    }

    function cancelDecreasePosition(bytes32 _key, address payable _executionFeeReceiver) public nonReentrant returns (bool) {
        DecreasePositionRequest memory request = decreasePositionRequests[_key];
        // if the request was already executed or cancelled, return true so that the executeDecreasePositions loop will continue executing the next request
        if (request.account == address(0)) { return true; }

        bool shouldCancel = _validateCancellation(request.blockNumber, request.blockTime, request.account);
        if (!shouldCancel) { return false; }

        delete decreasePositionRequests[_key];

       _transferOutETHWithGasLimitFallbackToWeth(request.executionFee, _executionFeeReceiver);

        emit CancelDecreasePosition(
            request.account,
            request.path,
            request.indexToken,
            request.collateralDelta,
            request.sizeDelta,
            request.isLong,
            request.receiver,
            request.acceptablePrice,
            request.minOut,
            request.executionFee,
            block.number.sub(request.blockNumber),
            block.timestamp.sub(request.blockTime)
        );

        _callRequestCallback(request.callbackTarget, _key, false, false);

        return true;
    }

    function getRequestKey(address _account, uint256 _index) public pure returns (bytes32) {
        return keccak256(abi.encodePacked(_account, _index));
    }

    function getIncreasePositionRequestPath(bytes32 _key) public view override returns (address[] memory) {
        IncreasePositionRequest memory request = increasePositionRequests[_key];
        return request.path;
    }

    function getDecreasePositionRequestPath(bytes32 _key) public view override returns (address[] memory) {
        DecreasePositionRequest memory request = decreasePositionRequests[_key];
        return request.path;
    }

    function _setTraderReferralCode(bytes32 _referralCode) internal {
        if (_referralCode != bytes32(0) && referralStorage != address(0)) {
            IReferralStorage(referralStorage).setTraderReferralCode(msg.sender, _referralCode);
        }
    }

    function _validateExecution(uint256 _positionBlockNumber, uint256 _positionBlockTime, address _account) internal view returns (bool) {
        if (_positionBlockTime.add(maxTimeDelay) <= block.timestamp) {
            revert("expired");
        }

        return _validateExecutionOrCancellation(_positionBlockNumber, _positionBlockTime, _account);
    }

    function _validateCancellation(uint256 _positionBlockNumber, uint256 _positionBlockTime, address _account) internal view returns (bool) {
        return _validateExecutionOrCancellation(_positionBlockNumber, _positionBlockTime, _account);
    }

    function _validateExecutionOrCancellation(uint256 _positionBlockNumber, uint256 _positionBlockTime, address _account) internal view returns (bool) {
        bool isKeeperCall = msg.sender == address(this) || isPositionKeeper[msg.sender];

        if (!isLeverageEnabled && !isKeeperCall) {
            revert("403");
        }

        if (isKeeperCall) {
            return _positionBlockNumber.add(minBlockDelayKeeper) <= block.number;
        }

        require(msg.sender == _account, "403");

        require(_positionBlockTime.add(minTimeDelayPublic) <= block.timestamp, "delay");

        return true;
    }

    function _createIncreasePosition(
        address _account,
        address[] memory _path,
        address _indexToken,
        uint256 _amountIn,
        uint256 _minOut,
        uint256 _sizeDelta,
        bool _isLong,
        uint256 _acceptablePrice,
        uint256 _executionFee,
        bool _hasCollateralInETH,
        address _callbackTarget
    ) internal returns (bytes32) {
        IncreasePositionRequest memory request = IncreasePositionRequest(
            _account,
            _path,
            _indexToken,
            _amountIn,
            _minOut,
            _sizeDelta,
            _isLong,
            _acceptablePrice,
            _executionFee,
            block.number,
            block.timestamp,
            _hasCollateralInETH,
            _callbackTarget
        );

        (uint256 index, bytes32 requestKey) = _storeIncreasePositionRequest(request);
        emit CreateIncreasePosition(
            _account,
            _path,
            _indexToken,
            _amountIn,
            _minOut,
            _sizeDelta,
            _isLong,
            _acceptablePrice,
            _executionFee,
            index,
            increasePositionRequestKeys.length - 1,
            block.number,
            block.timestamp,
            tx.gasprice
        );

        return requestKey;
    }

    function _storeIncreasePositionRequest(IncreasePositionRequest memory _request) internal returns (uint256, bytes32) {
        address account = _request.account;
        uint256 index = increasePositionsIndex[account].add(1);
        increasePositionsIndex[account] = index;
        bytes32 key = getRequestKey(account, index);

        increasePositionRequests[key] = _request;
        increasePositionRequestKeys.push(key);

        return (index, key);
    }

    function _storeDecreasePositionRequest(DecreasePositionRequest memory _request) internal returns (uint256, bytes32) {
        address account = _request.account;
        uint256 index = decreasePositionsIndex[account].add(1);
        decreasePositionsIndex[account] = index;
        bytes32 key = getRequestKey(account, index);

        decreasePositionRequests[key] = _request;
        decreasePositionRequestKeys.push(key);

        return (index, key);
    }

    function _createDecreasePosition(
        address _account,
        address[] memory _path,
        address _indexToken,
        uint256 _collateralDelta,
        uint256 _sizeDelta,
        bool _isLong,
        address _receiver,
        uint256 _acceptablePrice,
        uint256 _minOut,
        uint256 _executionFee,
        bool _withdrawETH,
        address _callbackTarget
    ) internal returns (bytes32) {
        DecreasePositionRequest memory request = DecreasePositionRequest(
            _account,
            _path,
            _indexToken,
            _collateralDelta,
            _sizeDelta,
            _isLong,
            _receiver,
            _acceptablePrice,
            _minOut,
            _executionFee,
            block.number,
            block.timestamp,
            _withdrawETH,
            _callbackTarget
        );

        (uint256 index, bytes32 requestKey) = _storeDecreasePositionRequest(request);
        emit CreateDecreasePosition(
            request.account,
            request.path,
            request.indexToken,
            request.collateralDelta,
            request.sizeDelta,
            request.isLong,
            request.receiver,
            request.acceptablePrice,
            request.minOut,
            request.executionFee,
            index,
            decreasePositionRequestKeys.length - 1,
            block.number,
            block.timestamp
        );
        return requestKey;
    }

    function _callRequestCallback(
        address _callbackTarget,
        bytes32 _key,
        bool _wasExecuted,
        bool _isIncrease
    ) internal {
        if (_callbackTarget == address(0)) {
            return;
        }

        if (!_callbackTarget.isContract()) {
            return;
        }

        uint256 _gasLimit = callbackGasLimit;

        uint256 _customCallbackGasLimit = customCallbackGasLimits[_callbackTarget];

        if (_customCallbackGasLimit > _gasLimit) {
            _gasLimit = _customCallbackGasLimit;
        }

        if (_gasLimit == 0) {
            return;
        }

        bool success;
        try IPositionRouterCallbackReceiver(_callbackTarget).gmxPositionCallback{ gas: _gasLimit }(_key, _wasExecuted, _isIncrease) {
            success = true;
        } catch {}

        emit Callback(_callbackTarget, success, _gasLimit);
    }
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_vault","type":"address"},{"internalType":"address","name":"_router","type":"address"},{"internalType":"address","name":"_weth","type":"address"},{"internalType":"address","name":"_shortsTracker","type":"address"},{"internalType":"uint256","name":"_depositFee","type":"uint256"},{"internalType":"uint256","name":"_minExecutionFee","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"callbackTarget","type":"address"},{"indexed":false,"internalType":"bool","name":"success","type":"bool"},{"indexed":false,"internalType":"uint256","name":"callbackGasLimit","type":"uint256"}],"name":"Callback","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"address[]","name":"path","type":"address[]"},{"indexed":false,"internalType":"address","name":"indexToken","type":"address"},{"indexed":false,"internalType":"uint256","name":"collateralDelta","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"sizeDelta","type":"uint256"},{"indexed":false,"internalType":"bool","name":"isLong","type":"bool"},{"indexed":false,"internalType":"address","name":"receiver","type":"address"},{"indexed":false,"internalType":"uint256","name":"acceptablePrice","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"minOut","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"executionFee","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"blockGap","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"timeGap","type":"uint256"}],"name":"CancelDecreasePosition","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"address[]","name":"path","type":"address[]"},{"indexed":false,"internalType":"address","name":"indexToken","type":"address"},{"indexed":false,"internalType":"uint256","name":"amountIn","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"minOut","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"sizeDelta","type":"uint256"},{"indexed":false,"internalType":"bool","name":"isLong","type":"bool"},{"indexed":false,"internalType":"uint256","name":"acceptablePrice","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"executionFee","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"blockGap","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"timeGap","type":"uint256"}],"name":"CancelIncreasePosition","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"address[]","name":"path","type":"address[]"},{"indexed":false,"internalType":"address","name":"indexToken","type":"address"},{"indexed":false,"internalType":"uint256","name":"collateralDelta","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"sizeDelta","type":"uint256"},{"indexed":false,"internalType":"bool","name":"isLong","type":"bool"},{"indexed":false,"internalType":"address","name":"receiver","type":"address"},{"indexed":false,"internalType":"uint256","name":"acceptablePrice","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"minOut","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"executionFee","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"index","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"queueIndex","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"blockNumber","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"blockTime","type":"uint256"}],"name":"CreateDecreasePosition","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"address[]","name":"path","type":"address[]"},{"indexed":false,"internalType":"address","name":"indexToken","type":"address"},{"indexed":false,"internalType":"uint256","name":"amountIn","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"minOut","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"sizeDelta","type":"uint256"},{"indexed":false,"internalType":"bool","name":"isLong","type":"bool"},{"indexed":false,"internalType":"uint256","name":"acceptablePrice","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"executionFee","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"index","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"queueIndex","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"blockNumber","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"blockTime","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"gasPrice","type":"uint256"}],"name":"CreateIncreasePosition","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":"DecreasePositionReferral","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"address[]","name":"path","type":"address[]"},{"indexed":false,"internalType":"address","name":"indexToken","type":"address"},{"indexed":false,"internalType":"uint256","name":"collateralDelta","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"sizeDelta","type":"uint256"},{"indexed":false,"internalType":"bool","name":"isLong","type":"bool"},{"indexed":false,"internalType":"address","name":"receiver","type":"address"},{"indexed":false,"internalType":"uint256","name":"acceptablePrice","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"minOut","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"executionFee","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"blockGap","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"timeGap","type":"uint256"}],"name":"ExecuteDecreasePosition","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"address[]","name":"path","type":"address[]"},{"indexed":false,"internalType":"address","name":"indexToken","type":"address"},{"indexed":false,"internalType":"uint256","name":"amountIn","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"minOut","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"sizeDelta","type":"uint256"},{"indexed":false,"internalType":"bool","name":"isLong","type":"bool"},{"indexed":false,"internalType":"uint256","name":"acceptablePrice","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"executionFee","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"blockGap","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"timeGap","type":"uint256"}],"name":"ExecuteIncreasePosition","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":"callbackGasLimit","type":"uint256"}],"name":"SetCallbackGasLimit","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"callbackTarget","type":"address"},{"indexed":false,"internalType":"uint256","name":"callbackGasLimit","type":"uint256"}],"name":"SetCustomCallbackGasLimit","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"minBlockDelayKeeper","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"minTimeDelayPublic","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"maxTimeDelay","type":"uint256"}],"name":"SetDelayValues","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"depositFee","type":"uint256"}],"name":"SetDepositFee","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"ethTransferGasLimit","type":"uint256"}],"name":"SetEthTransferGasLimit","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"increasePositionBufferBps","type":"uint256"}],"name":"SetIncreasePositionBufferBps","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bool","name":"isLeverageEnabled","type":"bool"}],"name":"SetIsLeverageEnabled","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":false,"internalType":"uint256","name":"minExecutionFee","type":"uint256"}],"name":"SetMinExecutionFee","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"bool","name":"isActive","type":"bool"}],"name":"SetPositionKeeper","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"referralStorage","type":"address"}],"name":"SetReferralStorage","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"increasePositionRequestKeysStart","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"decreasePositionRequestKeysStart","type":"uint256"}],"name":"SetRequestKeysStartValues","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":[],"name":"callbackGasLimit","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_key","type":"bytes32"},{"internalType":"address payable","name":"_executionFeeReceiver","type":"address"}],"name":"cancelDecreasePosition","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_key","type":"bytes32"},{"internalType":"address payable","name":"_executionFeeReceiver","type":"address"}],"name":"cancelIncreasePosition","outputs":[{"internalType":"bool","name":"","type":"bool"}],"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":"_acceptablePrice","type":"uint256"},{"internalType":"uint256","name":"_minOut","type":"uint256"},{"internalType":"uint256","name":"_executionFee","type":"uint256"},{"internalType":"bool","name":"_withdrawETH","type":"bool"},{"internalType":"address","name":"_callbackTarget","type":"address"}],"name":"createDecreasePosition","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"payable","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":"_acceptablePrice","type":"uint256"},{"internalType":"uint256","name":"_executionFee","type":"uint256"},{"internalType":"bytes32","name":"_referralCode","type":"bytes32"},{"internalType":"address","name":"_callbackTarget","type":"address"}],"name":"createIncreasePosition","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"payable","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":"_acceptablePrice","type":"uint256"},{"internalType":"uint256","name":"_executionFee","type":"uint256"},{"internalType":"bytes32","name":"_referralCode","type":"bytes32"},{"internalType":"address","name":"_callbackTarget","type":"address"}],"name":"createIncreasePositionETH","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"customCallbackGasLimits","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"decreasePositionRequestKeys","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decreasePositionRequestKeysStart","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"name":"decreasePositionRequests","outputs":[{"internalType":"address","name":"account","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":"acceptablePrice","type":"uint256"},{"internalType":"uint256","name":"minOut","type":"uint256"},{"internalType":"uint256","name":"executionFee","type":"uint256"},{"internalType":"uint256","name":"blockNumber","type":"uint256"},{"internalType":"uint256","name":"blockTime","type":"uint256"},{"internalType":"bool","name":"withdrawETH","type":"bool"},{"internalType":"address","name":"callbackTarget","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"decreasePositionsIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"depositFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ethTransferGasLimit","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_key","type":"bytes32"},{"internalType":"address payable","name":"_executionFeeReceiver","type":"address"}],"name":"executeDecreasePosition","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_endIndex","type":"uint256"},{"internalType":"address payable","name":"_executionFeeReceiver","type":"address"}],"name":"executeDecreasePositions","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_key","type":"bytes32"},{"internalType":"address payable","name":"_executionFeeReceiver","type":"address"}],"name":"executeIncreasePosition","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_endIndex","type":"uint256"},{"internalType":"address payable","name":"_executionFeeReceiver","type":"address"}],"name":"executeIncreasePositions","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"feeReserves","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_key","type":"bytes32"}],"name":"getDecreasePositionRequestPath","outputs":[{"internalType":"address[]","name":"","type":"address[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_key","type":"bytes32"}],"name":"getIncreasePositionRequestPath","outputs":[{"internalType":"address[]","name":"","type":"address[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_account","type":"address"},{"internalType":"uint256","name":"_index","type":"uint256"}],"name":"getRequestKey","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"getRequestQueueLengths","outputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"gov","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"increasePositionBufferBps","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"increasePositionRequestKeys","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"increasePositionRequestKeysStart","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"name":"increasePositionRequests","outputs":[{"internalType":"address","name":"account","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":"acceptablePrice","type":"uint256"},{"internalType":"uint256","name":"executionFee","type":"uint256"},{"internalType":"uint256","name":"blockNumber","type":"uint256"},{"internalType":"uint256","name":"blockTime","type":"uint256"},{"internalType":"bool","name":"hasCollateralInETH","type":"bool"},{"internalType":"address","name":"callbackTarget","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"increasePositionsIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isLeverageEnabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"isPositionKeeper","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","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":"maxTimeDelay","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"minBlockDelayKeeper","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"minExecutionFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"minTimeDelayPublic","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":"_callbackGasLimit","type":"uint256"}],"name":"setCallbackGasLimit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_callbackTarget","type":"address"},{"internalType":"uint256","name":"_callbackGasLimit","type":"uint256"}],"name":"setCustomCallbackGasLimit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_minBlockDelayKeeper","type":"uint256"},{"internalType":"uint256","name":"_minTimeDelayPublic","type":"uint256"},{"internalType":"uint256","name":"_maxTimeDelay","type":"uint256"}],"name":"setDelayValues","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_depositFee","type":"uint256"}],"name":"setDepositFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_ethTransferGasLimit","type":"uint256"}],"name":"setEthTransferGasLimit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_gov","type":"address"}],"name":"setGov","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_increasePositionBufferBps","type":"uint256"}],"name":"setIncreasePositionBufferBps","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_isLeverageEnabled","type":"bool"}],"name":"setIsLeverageEnabled","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":"uint256","name":"_minExecutionFee","type":"uint256"}],"name":"setMinExecutionFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_account","type":"address"},{"internalType":"bool","name":"_isActive","type":"bool"}],"name":"setPositionKeeper","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_referralStorage","type":"address"}],"name":"setReferralStorage","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_increasePositionRequestKeysStart","type":"uint256"},{"internalType":"uint256","name":"_decreasePositionRequestKeysStart","type":"uint256"}],"name":"setRequestKeysStartValues","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"shortsTracker","outputs":[{"internalType":"address","name":"","type":"address"}],"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"}]

60806040526207a12060075560646009556012805460ff191660011790553480156200002a57600080fd5b5060405162005faa38038062005faa833981810160405260c08110156200005057600080fd5b508051602082015160408301516060840151608085015160a090950151600160008181558154336001600160a01b031991821681179093556003805482166001600160a01b03998a16179055600580548216978916979097179096556006805487169588169590951790945560089690965560048054851695909216949094179055600280549092169093179055600e55615eb8908190620000f290396000f3fe6080604052600436106102aa5760003560e01c80626cc35e1461030657806304225954146103375780630d4d003d146103735780631045c74e146103c0578063126082cf146103f357806312d43a51146104085780631bca8cf01461041d5780631ce9cb8f146104325780631f28510614610465578063225fc9fd14610507578063233bfe3b1461054057806324a084df1461056a57806324f74697146105a357806327b42c0f146105b85780632d79cf42146105f1578063308aa81f146106065780633422ead11461063657806336eba48a146106715780633a2a80c7146106a45780633a9b52ad146106b95780633e72a262146106e35780633fc8cef3146106f85780634067b1321461070d5780634278555f14610743578063490ae2101461076d5780635841fcaa146107975780635b88e8c6146107ac5780635d5c22e81461088557806360a362e2146108ff57806362f8a3fe14610938578063633451de1461097157806363ae2103146109a4578063657bc5d0146109b957806367a52793146109ce578063704b6c02146109e35780637be7d14114610a165780637c2eb9f714610b01578063804fc70214610b2d5780638a54942f14610b6657806395e9bbd714610b905780639698d25a14610bba57806398d1e03a14610bed5780639a20810014610c025780639b57862014610c3b578063ae4d7f9a14610c50578063c4f38e3314610c83578063cb0269c914610cb6578063cfad57a214610ccb578063e1f21c6714610cfe578063ef12c67e14610d41578063f255527814610ef3578063f2ae372f14610f2e578063f2cea6a51461100d578063f3883d8b14611048578063f851a44014611081578063f887ea4014611096578063fa444577146110ab578063faf990f3146110de578063fbfa77cf14611177578063fc2cee621461118c57610301565b36610301576006546001600160a01b031633146102ff576040805162461bcd60e51b815260206004820152600e60248201526d34b73b30b634b21039b2b73232b960911b604482015290519081900360640190fd5b005b600080fd5b34801561031257600080fd5b5061031b6111b6565b604080516001600160a01b039092168252519081900360200190f35b34801561034357600080fd5b506103616004803603602081101561035a57600080fd5b50356111c5565b60408051918252519081900360200190f35b34801561037f57600080fd5b506103ac6004803603604081101561039657600080fd5b50803590602001356001600160a01b03166111e3565b604080519115158252519081900360200190f35b3480156103cc57600080fd5b50610361600480360360208110156103e357600080fd5b50356001600160a01b0316611681565b3480156103ff57600080fd5b50610361611693565b34801561041457600080fd5b5061031b611699565b34801561042957600080fd5b506103616116a8565b34801561043e57600080fd5b506103616004803603602081101561045557600080fd5b50356001600160a01b03166116ae565b34801561047157600080fd5b5061048f6004803603602081101561048857600080fd5b50356116c0565b604080516001600160a01b039e8f1681529c8e1660208e01528c81019b909b5260608c019990995296151560808b0152948a1660a08a015260c089019390935260e088019190915261010087015261012086015261014085015215156101608401529092166101808201529051908190036101a00190f35b34801561051357600080fd5b506103ac6004803603604081101561052a57600080fd5b50803590602001356001600160a01b0316611733565b34801561054c57600080fd5b506102ff6004803603602081101561056357600080fd5b5035611afd565b34801561057657600080fd5b506102ff6004803603604081101561058d57600080fd5b506001600160a01b038135169060200135611b83565b3480156105af57600080fd5b50610361611be7565b3480156105c457600080fd5b506103ac600480360360408110156105db57600080fd5b50803590602001356001600160a01b0316611bed565b3480156105fd57600080fd5b50610361612053565b34801561061257600080fd5b506102ff6004803603604081101561062957600080fd5b5080359060200135612059565b34801561064257600080fd5b506102ff6004803603604081101561065957600080fd5b506001600160a01b03813516906020013515156120ed565b34801561067d57600080fd5b506103ac6004803603602081101561069457600080fd5b50356001600160a01b0316612198565b3480156106b057600080fd5b506103616121ad565b3480156106c557600080fd5b506102ff600480360360208110156106dc57600080fd5b50356121b3565b3480156106ef57600080fd5b506103ac612239565b34801561070457600080fd5b5061031b612242565b34801561071957600080fd5b506102ff6004803603606081101561073057600080fd5b5080359060208101359060400135612251565b34801561074f57600080fd5b506103616004803603602081101561076657600080fd5b50356122f0565b34801561077957600080fd5b506102ff6004803603602081101561079057600080fd5b50356122fd565b3480156107a357600080fd5b50610361612383565b61036160048036036101208110156107c357600080fd5b810190602081018135600160201b8111156107dd57600080fd5b8201836020820111156107ef57600080fd5b803590602001918460208302840111600160201b8311171561081057600080fd5b919080806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250929550505081356001600160a01b03908116935060208301359260408101359250606081013515159160808201359160a08101359160c08201359160e0013516612389565b34801561089157600080fd5b506108af600480360360208110156108a857600080fd5b5035612545565b60408051602080825283518183015283519192839290830191858101910280838360005b838110156108eb5781810151838201526020016108d3565b505050509050019250505060405180910390f35b34801561090b57600080fd5b506103ac6004803603604081101561092257600080fd5b50803590602001356001600160a01b031661267b565b34801561094457600080fd5b506103616004803603604081101561095b57600080fd5b506001600160a01b038135169060200135612a19565b34801561097d57600080fd5b506103616004803603602081101561099457600080fd5b50356001600160a01b0316612a5f565b3480156109b057600080fd5b50610361612a71565b3480156109c557600080fd5b5061031b612a77565b3480156109da57600080fd5b50610361612a86565b3480156109ef57600080fd5b506102ff60048036036020811015610a0657600080fd5b50356001600160a01b0316612a8c565b6103616004803603610160811015610a2d57600080fd5b810190602081018135600160201b811115610a4757600080fd5b820183602082011115610a5957600080fd5b803590602001918460208302840111600160201b83111715610a7a57600080fd5b919080806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250929550505081356001600160a01b039081169350602083013592604081013592506060810135151591608082013581169160a08101359160c08201359160e081013591610100820135151591610120013516612b2d565b348015610b0d57600080fd5b506102ff60048036036020811015610b2457600080fd5b50351515612cdd565b348015610b3957600080fd5b506102ff60048036036040811015610b5057600080fd5b506001600160a01b038135169060200135612d6f565b348015610b7257600080fd5b506102ff60048036036020811015610b8957600080fd5b5035612e13565b348015610b9c57600080fd5b506108af60048036036020811015610bb357600080fd5b5035612e99565b348015610bc657600080fd5b5061036160048036036020811015610bdd57600080fd5b50356001600160a01b0316612fc7565b348015610bf957600080fd5b50610361612fd9565b348015610c0e57600080fd5b506102ff60048036036040811015610c2557600080fd5b50803590602001356001600160a01b0316612fdf565b348015610c4757600080fd5b506103616131b7565b348015610c5c57600080fd5b506102ff60048036036020811015610c7357600080fd5b50356001600160a01b03166131bd565b348015610c8f57600080fd5b5061036160048036036020811015610ca657600080fd5b50356001600160a01b031661325c565b348015610cc257600080fd5b5061036161326e565b348015610cd757600080fd5b506102ff60048036036020811015610cee57600080fd5b50356001600160a01b0316613274565b348015610d0a57600080fd5b506102ff60048036036060811015610d2157600080fd5b506001600160a01b038135811691602081013590911690604001356132e3565b348015610d4d57600080fd5b506102ff60048036036060811015610d6457600080fd5b810190602081018135600160201b811115610d7e57600080fd5b820183602082011115610d9057600080fd5b803590602001918460208302840111600160201b83111715610db157600080fd5b9190808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152509295949360208101935035915050600160201b811115610e0057600080fd5b820183602082011115610e1257600080fd5b803590602001918460208302840111600160201b83111715610e3357600080fd5b9190808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152509295949360208101935035915050600160201b811115610e8257600080fd5b820183602082011115610e9457600080fd5b803590602001918460208302840111600160201b83111715610eb557600080fd5b9190808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152509295506133b8945050505050565b348015610eff57600080fd5b506102ff60048036036040811015610f1657600080fd5b506001600160a01b03813581169160200135166135a5565b6103616004803603610140811015610f4557600080fd5b810190602081018135600160201b811115610f5f57600080fd5b820183602082011115610f7157600080fd5b803590602001918460208302840111600160201b83111715610f9257600080fd5b919080806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250929550506001600160a01b038335811694506020840135936040810135935060608101359250608081013515159160a08201359160c08101359160e082013591610100013516613687565b34801561101957600080fd5b5061102261386a565b604080519485526020850193909352838301919091526060830152519081900360800190f35b34801561105457600080fd5b506102ff6004803603604081101561106b57600080fd5b50803590602001356001600160a01b031661387c565b34801561108d57600080fd5b5061031b613a54565b3480156110a257600080fd5b5061031b613a63565b3480156110b757600080fd5b50610361600480360360208110156110ce57600080fd5b50356001600160a01b0316613a72565b3480156110ea57600080fd5b506111086004803603602081101561110157600080fd5b5035613a84565b604080516001600160a01b039d8e1681529b8d1660208d01528b81019a909a5260608b019890985260808a019690965293151560a089015260c088019290925260e087015261010086015261012085015215156101408401529092166101608201529051908190036101800190f35b34801561118357600080fd5b5061031b613af8565b34801561119857600080fd5b506102ff600480360360208110156111af57600080fd5b5035613b07565b600a546001600160a01b031681565b601381815481106111d257fe5b600091825260209091200154905081565b60006002600054141561122b576040805162461bcd60e51b815260206004820152601f6024820152600080516020615d98833981519152604482015290519081900360640190fd5b6002600055611238615bc2565b6000848152601d602090815260409182902082516101c08101845281546001600160a01b03168152600182018054855181860281018601909652808652919492938581019392908301828280156112b857602002820191906000526020600020905b81546001600160a01b0316815260019091019060200180831161129a575b505050918352505060028201546001600160a01b0390811660208301526003830154604083015260048301546060830152600583015460ff8082161515608085015261010091829004831660a0850152600685015460c0850152600785015460e08501526008850154828501526009850154610120850152600a850154610140850152600b90940154938416151561016084015290920482166101809091015281519192501661136c576001915050611676565b60006113878261014001518361016001518460000151613b8d565b90508061139957600092505050611676565b6000858152601d6020526040812080546001600160a01b0319168155906113c36001830182615c59565b506002810180546001600160a01b0319169055600060038201819055600482018190556005820180546001600160a81b031990811690915560068301829055600783018290556008830182905560098301829055600a8301829055600b9092018054909216909155825160208401518051611469929190849061144257fe5b60200260200101518560400151866060015187608001518860a00151308a60e00151613bf6565b9050801561151857600183602001515111156114d957600354602084015180516114c2926001600160a01b03169184916000906114a257fe5b60200260200101516001600160a01b03166140a39092919063ffffffff16565b6114d68360200151846101000151306140fa565b90505b826101800151156114f7576114f2818460c00151614185565b611518565b6115188360c00151828560200151600187602001515103815181106114a257fe5b61152783610120015186614185565b82600001516001600160a01b03167f21435c5b618d77ff3657140cd3318e2cffaebc5e0e1b7318f56a9ba4044c3ed284602001518560400151866060015187608001518860a001518960c001518a60e001518b61010001518c610120015161159d8e61014001514361432d90919063ffffffff16565b6101608f01516115ae90429061432d565b60405180806020018c6001600160a01b031681526020018b81526020018a81526020018915158152602001886001600160a01b0316815260200187815260200186815260200185815260200184815260200183815260200182810382528d818151815260200191508051906020019060200280838360005b8381101561163e578181015183820152602001611626565b505050509050019c5050505050505050505050505060405180910390a261166e836101a00151876001600061436f565b600193505050505b600160005592915050565b600c6020526000908152604090205481565b61271081565b6001546001600160a01b031681565b60165481565b600b6020526000908152604090205481565b601d602052600090815260409020805460028201546003830154600484015460058501546006860154600787015460088801546009890154600a8a0154600b909a01546001600160a01b03998a169a988a16999798969760ff80881698610100988990048316989093918216929104168d565b60006002600054141561177b576040805162461bcd60e51b815260206004820152601f6024820152600080516020615d98833981519152604482015290519081900360640190fd5b6002600055611788615c77565b6000848152601b602090815260409182902082516101a08101845281546001600160a01b031681526001820180548551818602810186019096528086529194929385810193929083018282801561180857602002820191906000526020600020905b81546001600160a01b031681526001909101906020018083116117ea575b505050918352505060028201546001600160a01b039081166020830152600383015460408301526004830154606083015260058301546080830152600683015460ff908116151560a0840152600784015460c0840152600884015460e0840152600984015461010080850191909152600a850154610120850152600b909401549081161515610140840152929092048216610160909101528151919250166118b4576001915050611676565b60006118cf82610120015183610140015184600001516144a1565b9050806118e157600092505050611676565b6000858152601b6020526040812080546001600160a01b03191681559061190b6001830182615c59565b506002810180546001600160a01b0319169055600060038201819055600482018190556005820181905560068201805460ff19169055600782018190556008820181905560098201819055600a820155600b0180546001600160a81b03191690556101608201511561198e5761198982606001518360000151614185565b6119ac565b6119ac8260000151836060015184602001516000815181106114a257fe5b6119bb82610100015185614185565b81600001516001600160a01b03167f35b638e650e2328786fb405bd69d2083dbedc018d086662e74b775b4f1dae4bf83602001518460400151856060015186608001518760a001518860c001518960e001518a6101000151611a2b8c61012001514361432d90919063ffffffff16565b6101408d0151611a3c90429061432d565b60405180806020018b6001600160a01b031681526020018a8152602001898152602001888152602001871515815260200186815260200185815260200184815260200183815260200182810382528c818151815260200191508051906020019060200280838360005b83811015611abd578181015183820152602001611aa5565b505050509050019b50505050505050505050505060405180910390a2611aec826101800151866000600161436f565b600192505050600160005592915050565b6002546001600160a01b03163314611b48576040805162461bcd60e51b81526020600482015260096024820152683337b93134b23232b760b91b604482015290519081900360640190fd5b60098190556040805182815290517f21167d0d4661af93817ebce920f18986eed3d75d5e1c03f2aed05efcbafbc4529181900360200190a150565b6001546001600160a01b03163314611bd0576040805162461bcd60e51b81526020600482015260156024820152600080516020615db8833981519152604482015290519081900360640190fd5b611be36001600160a01b038316826144ae565b5050565b60175481565b600060026000541415611c35576040805162461bcd60e51b815260206004820152601f6024820152600080516020615d98833981519152604482015290519081900360640190fd5b6002600055611c42615c77565b6000848152601b602090815260409182902082516101a08101845281546001600160a01b0316815260018201805485518186028101860190965280865291949293858101939290830182828015611cc257602002820191906000526020600020905b81546001600160a01b03168152600190910190602001808311611ca4575b505050918352505060028201546001600160a01b039081166020830152600383015460408301526004830154606083015260058301546080830152600683015460ff908116151560a0840152600784015460c0840152600884015460e0840152600984015461010080850191909152600a850154610120850152600b90940154908116151561014084015292909204821661016090910152815191925016611d6e576001915050611676565b6000611d898261012001518361014001518460000151613b8d565b905080611d9b57600092505050611676565b6000858152601b6020526040812080546001600160a01b031916815590611dc56001830182615c59565b506002810180546001600160a01b0319169055600060038201819055600482018190556005820181905560068201805460ff19169055600782018190556008820181905560098201819055600a820155600b0180546001600160a81b0319169055606082015115611ed657606082015160208301515160011015611e8157600354606084015160208501518051611e6b936001600160a01b03169291906000906114a257fe5b611e7e83602001518460800151306140fa565b90505b6000611ea5846000015185602001518487604001518860c001518960a00151614593565b60035460208601518051929350611ed3926001600160a01b039092169184919060001981019081106114a257fe5b50505b815160208301518051611f149291906000198101908110611ef357fe5b602002602001015184604001518560a001518660c001518760e00151614789565b611f2382610100015185614185565b81600001516001600160a01b03167f1be316b94d38c07bd41cdb4913772d0a0a82802786a2f8b657b6e85dbcdfc64183602001518460400151856060015186608001518760a001518860c001518960e001518a6101000151611f938c61012001514361432d90919063ffffffff16565b6101408d0151611fa490429061432d565b60405180806020018b6001600160a01b031681526020018a8152602001898152602001888152602001871515815260200186815260200185815260200184815260200183815260200182810382528c818151815260200191508051906020019060200280838360005b8381101561202557818101518382015260200161200d565b505050509050019b50505050505050505050505060405180910390a2611aec8261018001518660018061436f565b60075481565b6002546001600160a01b031633146120a4576040805162461bcd60e51b81526020600482015260096024820152683337b93134b23232b760b91b604482015290519081900360640190fd5b60158290556016819055604080518381526020810183905281517febb0f666150f4be5b60c45df8f3e49992510b0128027fe58eea6110f296493bc929181900390910190a15050565b6002546001600160a01b03163314612138576040805162461bcd60e51b81526020600482015260096024820152683337b93134b23232b760b91b604482015290519081900360640190fd5b6001600160a01b038216600081815260196020908152604091829020805460ff1916851515908117909155825190815291517ffbabc02389290a451c6e600d05bf9887b99bfad39d8e1237e4e3df042e4941fe9281900390910190a25050565b60196020526000908152604090205460ff1681565b60105481565b6002546001600160a01b031633146121fe576040805162461bcd60e51b81526020600482015260096024820152683337b93134b23232b760b91b604482015290519081900360640190fd5b60078190556040805182815290517f4d371d598d3a13f99ce992a17975bbaf1e1c256e072ec7d2f93ce88e40d9ba1c9181900360200190a150565b60125460ff1681565b6006546001600160a01b031681565b6002546001600160a01b0316331461229c576040805162461bcd60e51b81526020600482015260096024820152683337b93134b23232b760b91b604482015290519081900360640190fd5b600f83905560108290556011819055604080518481526020810184905280820183905290517fb98e759701eaca2e60c25e91109003c1c7442ef731b5d569037063005da8254d9181900360600190a1505050565b601481815481106111d257fe5b6002546001600160a01b03163314612348576040805162461bcd60e51b81526020600482015260096024820152683337b93134b23232b760b91b604482015290519081900360640190fd5b60088190556040805182815290517f974fd3c1fcb4653dfc4fb740c4c692cd212d55c28f163f310128cb64d83006759181900360200190a150565b600f5481565b6000600260005414156123d1576040805162461bcd60e51b815260206004820152601f6024820152600080516020615d98833981519152604482015290519081900360640190fd5b6002600055600e54841015612413576040805162461bcd60e51b815260206004820152600360248201526266656560e81b604482015290519081900360640190fd5b8334101561244e576040805162461bcd60e51b81526020600482015260036024820152621d985b60ea1b604482015290519081900360640190fd5b89516001148061245f575089516002145b612496576040805162461bcd60e51b81526020600482015260036024820152623632b760e91b604482015290519081900360640190fd5b6006548a516001600160a01b03909116908b906000906124b257fe5b60200260200101516001600160a01b0316146124fe576040805162461bcd60e51b815260206004808301919091526024820152630e0c2e8d60e31b604482015290519081900360640190fd5b61250661485b565b61250f836148c7565b600061251b348661432d565b9050612531338c8c848d8d8d8d8d60018d61493b565b60016000559b9a5050505050505050505050565b606061254f615bc2565b6000838152601d602090815260409182902082516101c08101845281546001600160a01b03168152600182018054855181860281018601909652808652919492938581019392908301828280156125cf57602002820191906000526020600020905b81546001600160a01b031681526001909101906020018083116125b1575b505050918352505060028201546001600160a01b039081166020808401919091526003840154604084015260048401546060840152600584015460ff8082161515608086015261010091829004841660a0860152600686015460c0860152600786015460e08601526008860154828601526009860154610120860152600a860154610140860152600b909501549485161515610160850152909304166101809091015201519392505050565b6000600260005414156126c3576040805162461bcd60e51b815260206004820152601f6024820152600080516020615d98833981519152604482015290519081900360640190fd5b60026000556126d0615bc2565b6000848152601d602090815260409182902082516101c08101845281546001600160a01b031681526001820180548551818602810186019096528086529194929385810193929083018282801561275057602002820191906000526020600020905b81546001600160a01b03168152600190910190602001808311612732575b505050918352505060028201546001600160a01b0390811660208301526003830154604083015260048301546060830152600583015460ff8082161515608085015261010091829004831660a0850152600685015460c0850152600785015460e08501526008850154828501526009850154610120850152600a850154610140850152600b909401549384161515610160840152909204821661018090910152815191925016612804576001915050611676565b600061281f82610140015183610160015184600001516144a1565b90508061283157600092505050611676565b6000858152601d6020526040812080546001600160a01b03191681559061285b6001830182615c59565b506002810180546001600160a01b0319169055600060038201819055600482018190556005820180546001600160a81b031990811690915560068301829055600783018290556008830182905560098301829055600a830191909155600b909101805490911690556101208201516128d39085614185565b81600001516001600160a01b03167f87abfd78e844f28318363bdf3da99eab2f4a2da9ff7ae365484507f7b6c3f80583602001518460400151856060015186608001518760a001518860c001518960e001518a61010001518b61012001516129498d61014001514361432d90919063ffffffff16565b6101608e015161295a90429061432d565b60405180806020018c6001600160a01b031681526020018b81526020018a81526020018915158152602001886001600160a01b0316815260200187815260200186815260200185815260200184815260200183815260200182810382528d818151815260200191508051906020019060200280838360005b838110156129ea5781810151838201526020016129d2565b505050509050019c5050505050505050505050505060405180910390a2611aec826101a001518660008061436f565b6000828260405160200180836001600160a01b031660601b8152601401828152602001925050506040516020818303038152906040528051906020012090505b92915050565b601a6020526000908152604090205481565b600e5481565b6004546001600160a01b031681565b60085481565b6001546001600160a01b03163314612ad9576040805162461bcd60e51b81526020600482015260156024820152600080516020615db8833981519152604482015290519081900360640190fd5b600280546001600160a01b0383166001600160a01b0319909116811790915560408051918252517f5a272403b402d892977df56625f4164ccaf70ca3863991c43ecfe76a6905b0a19181900360200190a150565b600060026000541415612b75576040805162461bcd60e51b815260206004820152601f6024820152600080516020615d98833981519152604482015290519081900360640190fd5b6002600055600e54841015612bb7576040805162461bcd60e51b815260206004820152600360248201526266656560e81b604482015290519081900360640190fd5b833414612bf1576040805162461bcd60e51b81526020600482015260036024820152621d985b60ea1b604482015290519081900360640190fd5b8b5160011480612c0257508b516002145b612c39576040805162461bcd60e51b81526020600482015260036024820152623632b760e91b604482015290519081900360640190fd5b8215612cac576006548c516001600160a01b03909116908d906000198101908110612c6057fe5b60200260200101516001600160a01b031614612cac576040805162461bcd60e51b815260206004808301919091526024820152630e0c2e8d60e31b604482015290519081900360640190fd5b612cb461485b565b612cc8338d8d8d8d8d8d8d8d8d8d8d614ad2565b60016000559c9b505050505050505050505050565b6002546001600160a01b03163314612d28576040805162461bcd60e51b81526020600482015260096024820152683337b93134b23232b760b91b604482015290519081900360640190fd5b6012805482151560ff19909116811790915560408051918252517f4eb87a5935d402aa24c01b45bfb30adefcd2328b480f2d967864de4b64ea929f9181900360200190a150565b6002546001600160a01b03163314612dba576040805162461bcd60e51b81526020600482015260096024820152683337b93134b23232b760b91b604482015290519081900360640190fd5b6001600160a01b0382166000818152601860209081526040918290208490558151928352820183905280517f0a585bcfd5f265014b902e5350c05f3a465468d433f13009dcf83f17dc1316be9281900390910190a15050565b6002546001600160a01b03163314612e5e576040805162461bcd60e51b81526020600482015260096024820152683337b93134b23232b760b91b604482015290519081900360640190fd5b60178190556040805182815290517f22bd2c9f980325d046be74aaef5fc76df4a2bc3fbc7c5a1200fcc79fe80dab6c9181900360200190a150565b6060612ea3615c77565b6000838152601b602090815260409182902082516101a08101845281546001600160a01b0316815260018201805485518186028101860190965280865291949293858101939290830182828015612f2357602002820191906000526020600020905b81546001600160a01b03168152600190910190602001808311612f05575b505050918352505060028201546001600160a01b03908116602080840191909152600384015460408401526004840154606084015260058401546080840152600684015460ff908116151560a0850152600785015460c0850152600885015460e0850152600985015461010080860191909152600a860154610120860152600b90950154908116151561014085015293909304166101609091015201519392505050565b600d6020526000908152604090205481565b60095481565b3360009081526019602052604090205460ff16613029576040805162461bcd60e51b815260206004820152600360248201526234303360e81b604482015290519081900360640190fd5b60155460135480821061303d575050611be3565b80841115613049578093505b838210156131af5760006013838154811061306057fe5b90600052602060002001549050306001600160a01b03166327b42c0f82866040518363ffffffff1660e01b815260040180838152602001826001600160a01b0316815260200192505050602060405180830381600087803b1580156130c457600080fd5b505af19250505080156130e957506040513d60208110156130e457600080fd5b505160015b61317d576040805163225fc9fd60e01b8152600481018390526001600160a01b03861660248201529051309163225fc9fd9160448083019260209291908290030181600087803b15801561313c57600080fd5b505af192505050801561316157506040513d602081101561315c57600080fd5b505160015b61316a57613178565b806131765750506131af565b505b61318b565b806131895750506131af565b505b6013838154811061319857fe5b600091825260208220015550600190910190613049565b506015555050565b60155481565b6002546001600160a01b03163314613208576040805162461bcd60e51b81526020600482015260096024820152683337b93134b23232b760b91b604482015290519081900360640190fd5b600a80546001600160a01b0383166001600160a01b0319909116811790915560408051918252517f828abcccea18192c21d645e575652c49e20b986dab777906fc473d056b01b6a89181900360200190a150565b60186020526000908152604090205481565b60115481565b6001546001600160a01b031633146132c1576040805162461bcd60e51b81526020600482015260156024820152600080516020615db8833981519152604482015290519081900360640190fd5b600180546001600160a01b0319166001600160a01b0392909216919091179055565b6001546001600160a01b03163314613330576040805162461bcd60e51b81526020600482015260156024820152600080516020615db8833981519152604482015290519081900360640190fd5b826001600160a01b031663095ea7b383836040518363ffffffff1660e01b815260040180836001600160a01b0316815260200182815260200192505050602060405180830381600087803b15801561338757600080fd5b505af115801561339b573d6000803e3d6000fd5b505050506040513d60208110156133b157600080fd5b5050505050565b6002546001600160a01b03163314613403576040805162461bcd60e51b81526020600482015260096024820152683337b93134b23232b760b91b604482015290519081900360640190fd5b60005b835181101561349e57600084828151811061341d57fe5b6020026020010151905083828151811061343357fe5b6020026020010151600c6000836001600160a01b03166001600160a01b031681526020019081526020016000208190555082828151811061347057fe5b6020908102919091018101516001600160a01b039092166000908152600d9091526040902055600101613406565b507fae32d569b058895b9620d6552b09aaffedc9a6f396be4d595a224ad09f8b213983838360405180806020018060200180602001848103845287818151815260200191508051906020019060200280838360005b8381101561350b5781810151838201526020016134f3565b50505050905001848103835286818151815260200191508051906020019060200280838360005b8381101561354a578181015183820152602001613532565b50505050905001848103825285818151815260200191508051906020019060200280838360005b83811015613589578181015183820152602001613571565b50505050905001965050505050505060405180910390a1505050565b6002546001600160a01b031633146135f0576040805162461bcd60e51b81526020600482015260096024820152683337b93134b23232b760b91b604482015290519081900360640190fd5b6001600160a01b0382166000908152600b6020526040902054806136145750611be3565b6001600160a01b0383166000818152600b60205260408120556136389083836140a3565b604080516001600160a01b0380861682528416602082015280820183905290517f4f1b51dd7a2fcb861aa2670f668be66835c4ee12b4bbbf037e4d0018f39819e49181900360600190a1505050565b6000600260005414156136cf576040805162461bcd60e51b815260206004820152601f6024820152600080516020615d98833981519152604482015290519081900360640190fd5b6002600055600e54841015613711576040805162461bcd60e51b815260206004820152600360248201526266656560e81b604482015290519081900360640190fd5b83341461374b576040805162461bcd60e51b81526020600482015260036024820152621d985b60ea1b604482015290519081900360640190fd5b8a516001148061375c57508a516002145b613793576040805162461bcd60e51b81526020600482015260036024820152623632b760e91b604482015290519081900360640190fd5b61379b61485b565b6137a4836148c7565b8815613856576005548b516001600160a01b0390911690631b827878908d906000906137cc57fe5b602002602001015133308d6040518563ffffffff1660e01b815260040180856001600160a01b03168152602001846001600160a01b03168152602001836001600160a01b03168152602001828152602001945050505050600060405180830381600087803b15801561383d57600080fd5b505af1158015613851573d6000803e3d6000fd5b505050505b612531338c8c8c8c8c8c8c8c60008c61493b565b60155460135460165460145490919293565b3360009081526019602052604090205460ff166138c6576040805162461bcd60e51b815260206004820152600360248201526234303360e81b604482015290519081900360640190fd5b6016546014548082106138da575050611be3565b808411156138e6578093505b83821015613a4c576000601483815481106138fd57fe5b90600052602060002001549050306001600160a01b0316630d4d003d82866040518363ffffffff1660e01b815260040180838152602001826001600160a01b0316815260200192505050602060405180830381600087803b15801561396157600080fd5b505af192505050801561398657506040513d602081101561398157600080fd5b505160015b613a1a5760408051633051b17160e11b8152600481018390526001600160a01b0386166024820152905130916360a362e29160448083019260209291908290030181600087803b1580156139d957600080fd5b505af19250505080156139fe57506040513d60208110156139f957600080fd5b505160015b613a0757613a15565b80613a13575050613a4c565b505b613a28565b80613a26575050613a4c565b505b60148381548110613a3557fe5b6000918252602082200155506001909101906138e6565b506016555050565b6002546001600160a01b031681565b6005546001600160a01b031681565b601c6020526000908152604090205481565b601b602052600090815260409020805460028201546003830154600484015460058501546006860154600787015460088801546009890154600a8a0154600b909a01546001600160a01b03998a169a988a169997989697959660ff958616969495939492939092908216916101009004168c565b6003546001600160a01b031681565b6002546001600160a01b03163314613b52576040805162461bcd60e51b81526020600482015260096024820152683337b93134b23232b760b91b604482015290519081900360640190fd5b600e8190556040805182815290517f52a8358457e20bbb36e4086b83fb0749599f1893fe4c35a876c46dc4886d12db9181900360200190a150565b600042613ba560115485614cac90919063ffffffff16565b11613be1576040805162461bcd60e51b8152602060048201526007602482015266195e1c1a5c995960ca1b604482015290519081900360640190fd5b613bec848484614d04565b90505b9392505050565b6003546000906001600160a01b03168185613c8957816001600160a01b031663e124e6d28a6040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b158015613c5857600080fd5b505afa158015613c6c573d6000803e3d6000fd5b505050506040513d6020811015613c8257600080fd5b5051613d03565b816001600160a01b03166381a612d68a6040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b158015613cd657600080fd5b505afa158015613cea573d6000803e3d6000fd5b505050506040513d6020811015613d0057600080fd5b50515b90508515613d595783811015613d54576040805162461bcd60e51b81526020600482015260116024820152706d61726b5072696365203c20707269636560781b604482015290519081900360640190fd5b613da2565b83811115613da2576040805162461bcd60e51b81526020600482015260116024820152706d61726b5072696365203e20707269636560781b604482015290519081900360640190fd5b6000826001600160a01b03166312d43a516040518163ffffffff1660e01b815260040160206040518083038186803b158015613ddd57600080fd5b505afa158015613df1573d6000803e3d6000fd5b505050506040513d6020811015613e0757600080fd5b81019080805190602001909291905050509050600460009054906101000a90046001600160a01b03166001600160a01b031663f3238cec8d8d8d8b8d8860006040518863ffffffff1660e01b815260040180886001600160a01b03168152602001876001600160a01b03168152602001866001600160a01b0316815260200185151581526020018481526020018381526020018215158152602001975050505050505050600060405180830381600087803b158015613ec557600080fd5b505af1158015613ed9573d6000803e3d6000fd5b50505050806001600160a01b0316636d63c1d0846040518263ffffffff1660e01b815260040180826001600160a01b03168152602001915050600060405180830381600087803b158015613f2c57600080fd5b505af1158015613f40573d6000803e3d6000fd5b505050506000600560009054906101000a90046001600160a01b03166001600160a01b0316632662166b8e8e8e8e8e8e8e6040518863ffffffff1660e01b815260040180886001600160a01b03168152602001876001600160a01b03168152602001866001600160a01b031681526020018581526020018481526020018315158152602001826001600160a01b03168152602001975050505050505050602060405180830381600087803b158015613ff757600080fd5b505af115801561400b573d6000803e3d6000fd5b505050506040513d602081101561402157600080fd5b50516040805163d3c87bbb60e01b81526001600160a01b03878116600483015291519293509084169163d3c87bbb9160248082019260009290919082900301818387803b15801561407157600080fd5b505af1158015614085573d6000803e3d6000fd5b505050506140938d8a614e35565b9c9b505050505050505050505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b1790526140f590849061502a565b505050565b60008351600214156141415761413a8460008151811061411657fe5b60200260200101518560018151811061412b57fe5b602002602001015185856150db565b9050613bef565b6040805162461bcd60e51b81526020600482015260146024820152730d2dcecc2d8d2c840bee0c2e8d05cd8cadccee8d60631b604482015290519081900360640190fd5b60065460408051632e1a7d4d60e01b81526004810185905290516001600160a01b03909216918291632e1a7d4d91602480830192600092919082900301818387803b1580156141d357600080fd5b505af11580156141e7573d6000803e3d6000fd5b5050600754604051600093506001600160a01b0386169250869084818181858888f193505050503d806000811461423a576040519150601f19603f3d011682016040523d82523d6000602084013e61423f565b606091505b505090508015614250575050611be3565b816001600160a01b031663d0e30db0856040518263ffffffff1660e01b81526004016000604051808303818588803b15801561428b57600080fd5b505af115801561429f573d6000803e3d6000fd5b5050505050816001600160a01b031663a9059cbb84866040518363ffffffff1660e01b815260040180836001600160a01b0316815260200182815260200192505050602060405180830381600087803b1580156142fb57600080fd5b505af115801561430f573d6000803e3d6000fd5b505050506040513d602081101561432557600080fd5b505050505050565b6000613bef83836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f7700008152506151c0565b6001600160a01b0384166143825761449b565b614394846001600160a01b0316615257565b61439d5761449b565b6017546001600160a01b038516600090815260186020526040902054818111156143c5578091505b816143d157505061449b565b6000866001600160a01b031663edf3daec848888886040518563ffffffff1660e01b815260040180848152602001831515815260200182151581526020019350505050600060405180830381600088803b15801561442e57600080fd5b5087f193505050508015614440575060015b6144495761444d565b5060015b604080516001600160a01b0389168152821515602082015280820185905290517fc9123a2a8e16684aa24686f2bf8a6d0eb0c601bdc109140c9729916865a58bc49181900360600190a15050505b50505050565b6000613bec848484614d04565b80471015614503576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e6365000000604482015290519081900360640190fd5b6040516000906001600160a01b0384169083908381818185875af1925050503d806000811461454e576040519150601f19603f3d011682016040523d82523d6000602084013e614553565b606091505b50509050806140f55760405162461bcd60e51b815260040180806020018281038252603a815260200180615dd8603a913960400191505060405180910390fd5b60008073ea2b03f7f83aecec3128f38336382a52e54a5b7063e0cab550600360009054906101000a90046001600160a01b03168a8a8a8a8a8a6009546040518963ffffffff1660e01b815260040180896001600160a01b03168152602001886001600160a01b0316815260200180602001878152602001866001600160a01b031681526020018515158152602001848152602001838152602001828103825288818151815260200191508051906020019060200280838360005b8381101561466557818101518382015260200161464d565b50505050905001995050505050505050505060206040518083038186803b15801561468f57600080fd5b505af41580156146a3573d6000803e3d6000fd5b505050506040513d60208110156146b957600080fd5b50519050801561477a5760006146f26127106146ec6146e560085461271061432d90919063ffffffff16565b8a9061525d565b906152b6565b90506000614700888361432d565b905060008960018b51038151811061471457fe5b6020026020010151905061475682600b6000846001600160a01b03166001600160a01b0316815260200190815260200160002054614cac90919063ffffffff16565b6001600160a01b039091166000908152600b602052604090205550915061477f9050565b859150505b9695505050505050565b6147948483856152f5565b60035460055460048054604080516317c3cf0f60e31b81526001600160a01b03958616938101939093529284166024830152831660448201528883166064820152878316608482015291861660a483015260c4820185905283151560e483015261010482018390525173ea2b03f7f83aecec3128f38336382a52e54a5b709163be1e787891610124808301926000929190829003018186803b15801561483957600080fd5b505af415801561484d573d6000803e3d6000fd5b5050505061432586846154be565b34156148c557600660009054906101000a90046001600160a01b03166001600160a01b031663d0e30db0346040518263ffffffff1660e01b81526004016000604051808303818588803b1580156148b157600080fd5b505af11580156133b1573d6000803e3d6000fd5b565b80158015906148e05750600a546001600160a01b031615155b1561493857600a54604080516356b4b2ad60e01b81523360048201526024810184905290516001600160a01b03909216916356b4b2ad9160448082019260009290919082900301818387803b1580156148b157600080fd5b50565b6000614945615c77565b604051806101a001604052808e6001600160a01b031681526020018d81526020018c6001600160a01b031681526020018b81526020018a815260200189815260200188151581526020018781526020018681526020014381526020014281526020018515158152602001846001600160a01b031681525090506000806149ca83615645565b915091508e6001600160a01b03167f5265bc4952da402633b3fc35f67ab4245493a0ab94dd8ab123667c8d45a4485c8f8f8f8f8f8f8f8f8b60016013805490500343423a60405180806020018e6001600160a01b031681526020018d81526020018c81526020018b81526020018a1515815260200189815260200188815260200187815260200186815260200185815260200184815260200183815260200182810382528f818151815260200191508051906020019060200280838360005b83811015614aa1578181015183820152602001614a89565b505050509050019e50505050505050505050505050505060405180910390a29e9d5050505050505050505050505050565b6000614adc615bc2565b604051806101c001604052808f6001600160a01b031681526020018e81526020018d6001600160a01b031681526020018c81526020018b81526020018a15158152602001896001600160a01b031681526020018881526020018781526020018681526020014381526020014281526020018515158152602001846001600160a01b03168152509050600080614b70836157e3565b9150915082600001516001600160a01b03167f81ed0476a7e785a9e4728fffd679ea97176ca1ac85e1003462558bb5677da57b84602001518560400151866060015187608001518860a001518960c001518a60e001518b61010001518c61012001518c600160148054905003434260405180806020018e6001600160a01b031681526020018d81526020018c81526020018b151581526020018a6001600160a01b0316815260200189815260200188815260200187815260200186815260200185815260200184815260200183815260200182810382528f818151815260200191508051906020019060200280838360005b83811015614c7a578181015183820152602001614c62565b505050509050019e50505050505050505050505050505060405180910390a29f9e505050505050505050505050505050565b600082820183811015613bef576040805162461bcd60e51b815260206004820152601b60248201527a536166654d6174683a206164646974696f6e206f766572666c6f7760281b604482015290519081900360640190fd5b60008033301480614d2457503360009081526019602052604090205460ff165b60125490915060ff16158015614d38575080155b15614d70576040805162461bcd60e51b815260206004820152600360248201526234303360e81b604482015290519081900360640190fd5b8015614d965743614d8c600f5487614cac90919063ffffffff16565b1115915050613bef565b336001600160a01b03841614614dd9576040805162461bcd60e51b815260206004820152600360248201526234303360e81b604482015290519081900360640190fd5b42614def60105486614cac90919063ffffffff16565b1115614e2a576040805162461bcd60e51b815260206004820152600560248201526464656c617960d81b604482015290519081900360640190fd5b506001949350505050565b600a546001600160a01b031680614e4c5750611be3565b600080826001600160a01b031663534ef883866040518263ffffffff1660e01b815260040180826001600160a01b03168152602001915050604080518083038186803b158015614e9b57600080fd5b505afa158015614eaf573d6000803e3d6000fd5b505050506040513d6040811015614ec557600080fd5b508051602090910151909250905081614ee057505050611be3565b600354604080516312d43a5160e01b815290516000926001600160a01b0316916312d43a51916004808301926020929190829003018186803b158015614f2557600080fd5b505afa158015614f39573d6000803e3d6000fd5b505050506040513d6020811015614f4f57600080fd5b50516040805163318bc68960e01b815290519192507f474c763ff84bf2c2039a6d9fea955ecd0f724030e3c365b91169c6a16fe751b791889188916001600160a01b0386169163318bc6899160048083019260209291908290030181600087803b158015614fbc57600080fd5b505af1158015614fd0573d6000803e3d6000fd5b505050506040513d6020811015614fe657600080fd5b5051604080516001600160a01b03948516815260208101939093528281019190915260608201879052918516608082015290519081900360a00190a1505050505050565b606061507f826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b031661598c9092919063ffffffff16565b8051909150156140f55780806020019051602081101561509e57600080fd5b50516140f55760405162461bcd60e51b815260040180806020018281038252602a815260200180615e59602a913960400191505060405180910390fd5b60035460408051634998b10960e11b81526001600160a01b03878116600483015286811660248301528481166044830152915160009384931691639331621291606480830192602092919082900301818787803b15801561513b57600080fd5b505af115801561514f573d6000803e3d6000fd5b505050506040513d602081101561516557600080fd5b50519050838110156151b7576040805162461bcd60e51b81526020600482015260166024820152751a5b9cdd59999a58da595b9d08185b5bdd5b9d13dd5d60521b604482015290519081900360640190fd5b95945050505050565b6000818484111561524f5760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b838110156152145781810151838201526020016151fc565b50505050905090810190601f1680156152415780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b3b151590565b60008261526c57506000612a59565b8282028284828161527957fe5b0414613bef5760405162461bcd60e51b8152600401808060200182810382526021815260200180615e386021913960400191505060405180910390fd5b6000613bef83836040518060400160405280601a815260200179536166654d6174683a206469766973696f6e206279207a65726f60301b81525061599b565b806152ff576140f5565b81156153fd576001600160a01b0383166000908152600c602052604090205480158015906153b057506003546040805163783a2b6760e11b81526001600160a01b038781166004830152915184936153ae93879391169163f07456ce91602480820192602092909190829003018186803b15801561537c57600080fd5b505afa158015615390573d6000803e3d6000fd5b505050506040513d60208110156153a657600080fd5b505190614cac565b115b156153f7576040805162461bcd60e51b81526020600482015260126024820152711b585e081b1bdb99dcc8195e18d95959195960721b604482015290519081900360640190fd5b506140f5565b6001600160a01b0383166000908152600d6020526040902054801580159061547657506003546040805163114f1b5560e31b81526001600160a01b03878116600483015291518493615474938793911691638a78daa891602480820192602092909190829003018186803b15801561537c57600080fd5b115b1561449b576040805162461bcd60e51b81526020600482015260136024820152721b585e081cda1bdc9d1cc8195e18d959591959606a1b604482015290519081900360640190fd5b600a546001600160a01b0316806154d55750611be3565b600080826001600160a01b031663534ef883866040518263ffffffff1660e01b815260040180826001600160a01b03168152602001915050604080518083038186803b15801561552457600080fd5b505afa158015615538573d6000803e3d6000fd5b505050506040513d604081101561554e57600080fd5b50805160209091015190925090508161556957505050611be3565b600354604080516312d43a5160e01b815290516000926001600160a01b0316916312d43a51916004808301926020929190829003018186803b1580156155ae57600080fd5b505afa1580156155c2573d6000803e3d6000fd5b505050506040513d60208110156155d857600080fd5b50516040805163318bc68960e01b815290519192507fc2414023ce7002ee98557d1e7be21e5559073336f2217ee5f9b2e50fd85f71ee91889188916001600160a01b0386169163318bc6899160048083019260209291908290030181600087803b158015614fbc57600080fd5b80516001600160a01b0381166000908152601a6020526040812054909182918290615671906001614cac565b6001600160a01b0383166000908152601a602052604081208290559091506156998383612a19565b6000818152601b60209081526040909120885181546001600160a01b0319166001600160a01b03909116178155888201518051939450899391926156e592600185019290910190615cfe565b5060408201516002820180546001600160a01b039283166001600160a01b0319909116179055606083015160038301556080830151600483015560a0830151600583015560c083015160068301805491151560ff1992831617905560e084015160078401556101008085015160088501556101208501516009850155610140850151600a850155610160850151600b90940180546101809096015190931602610100600160a81b0319931515949091169390931791909116919091179055601380546001810182556000919091527f66de8ffda797e3de9c05e8fc57b3bf0ec28a930d40b0d285d93c06501cf6a09001819055909350915050915091565b80516001600160a01b0381166000908152601c602052604081205490918291829061580f906001614cac565b6001600160a01b0383166000908152601c602052604081208290559091506158378383612a19565b6000818152601d60209081526040909120885181546001600160a01b0319166001600160a01b039091161781558882015180519394508993919261588392600185019290910190615cfe565b5060408201516002820180546001600160a01b039283166001600160a01b0319909116179055606083015160038301556080830151600483015560a083015160058301805460c08601518416610100908102610100600160a81b031994151560ff199384161785161790925560e0860151600686015581860151600786015561012086015160088601556101408601516009860155610160860151600a860155610180860151600b90950180546101a090970151909416909102931515941693909317909216179055601480546001810182556000919091527fce6d7b5282bd9a3661ae061feed1dbda4e52ab073b1f9285be6e155d9c38d4ec01819055909350915050915091565b6060613bec8484600085615a00565b600081836159ea5760405162461bcd60e51b81526020600482018181528351602484015283519092839260449091019190850190808383600083156152145781810151838201526020016151fc565b5060008385816159f657fe5b0495945050505050565b606082471015615a415760405162461bcd60e51b8152600401808060200182810382526026815260200180615e126026913960400191505060405180910390fd5b615a4a85615257565b615a9b576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b60208310615ada5780518252601f199092019160209182019101615abb565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114615b3c576040519150601f19603f3d011682016040523d82523d6000602084013e615b41565b606091505b5091509150615b51828286615b5c565b979650505050505050565b60608315615b6b575081613bef565b825115615b7b5782518084602001fd5b60405162461bcd60e51b81526020600482018181528451602484015284518593919283926044019190850190808383600083156152145781810151838201526020016151fc565b604051806101c0016040528060006001600160a01b031681526020016060815260200160006001600160a01b03168152602001600081526020016000815260200160001515815260200160006001600160a01b03168152602001600081526020016000815260200160008152602001600081526020016000815260200160001515815260200160006001600160a01b031681525090565b50805460008255906000526020600020908101906149389190615d63565b604051806101a0016040528060006001600160a01b031681526020016060815260200160006001600160a01b031681526020016000815260200160008152602001600081526020016000151581526020016000815260200160008152602001600081526020016000815260200160001515815260200160006001600160a01b031681525090565b828054828255906000526020600020908101928215615d53579160200282015b82811115615d5357825182546001600160a01b0319166001600160a01b03909116178255602090920191600190910190615d1e565b50615d5f929150615d78565b5090565b5b80821115615d5f5760008155600101615d64565b5b80821115615d5f5780546001600160a01b0319168155600101615d7956fe5265656e7472616e637947756172643a207265656e7472616e742063616c6c00476f7665726e61626c653a20666f7262696464656e0000000000000000000000416464726573733a20756e61626c6520746f2073656e642076616c75652c20726563697069656e74206d61792068617665207265766572746564416464726573733a20696e73756666696369656e742062616c616e636520666f722063616c6c536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f775361666545524332303a204552433230206f7065726174696f6e20646964206e6f742073756363656564a2646970667358221220da8f7e8864d91c91b30e4325ceca5063c4c91fa0f586c0969cfb19e3599117d364736f6c634300060c00330000000000000000000000003371195e36f45cbdc6cc0ef9e94d87ac8424621d00000000000000000000000005a1f74fe55f0dc69b4018324dfe8c6f158c86a50000000000000000000000004f9a0e7fd2bf6067db6994cf12e4495df938e6e9000000000000000000000000565cc3bce3817300c632a35fc820dac19bff7a5a000000000000000000000000000000000000000000000000000000000000001e00000000000000000000000000000000000000000000000000005af3107a4000

Deployed Bytecode

0x6080604052600436106102aa5760003560e01c80626cc35e1461030657806304225954146103375780630d4d003d146103735780631045c74e146103c0578063126082cf146103f357806312d43a51146104085780631bca8cf01461041d5780631ce9cb8f146104325780631f28510614610465578063225fc9fd14610507578063233bfe3b1461054057806324a084df1461056a57806324f74697146105a357806327b42c0f146105b85780632d79cf42146105f1578063308aa81f146106065780633422ead11461063657806336eba48a146106715780633a2a80c7146106a45780633a9b52ad146106b95780633e72a262146106e35780633fc8cef3146106f85780634067b1321461070d5780634278555f14610743578063490ae2101461076d5780635841fcaa146107975780635b88e8c6146107ac5780635d5c22e81461088557806360a362e2146108ff57806362f8a3fe14610938578063633451de1461097157806363ae2103146109a4578063657bc5d0146109b957806367a52793146109ce578063704b6c02146109e35780637be7d14114610a165780637c2eb9f714610b01578063804fc70214610b2d5780638a54942f14610b6657806395e9bbd714610b905780639698d25a14610bba57806398d1e03a14610bed5780639a20810014610c025780639b57862014610c3b578063ae4d7f9a14610c50578063c4f38e3314610c83578063cb0269c914610cb6578063cfad57a214610ccb578063e1f21c6714610cfe578063ef12c67e14610d41578063f255527814610ef3578063f2ae372f14610f2e578063f2cea6a51461100d578063f3883d8b14611048578063f851a44014611081578063f887ea4014611096578063fa444577146110ab578063faf990f3146110de578063fbfa77cf14611177578063fc2cee621461118c57610301565b36610301576006546001600160a01b031633146102ff576040805162461bcd60e51b815260206004820152600e60248201526d34b73b30b634b21039b2b73232b960911b604482015290519081900360640190fd5b005b600080fd5b34801561031257600080fd5b5061031b6111b6565b604080516001600160a01b039092168252519081900360200190f35b34801561034357600080fd5b506103616004803603602081101561035a57600080fd5b50356111c5565b60408051918252519081900360200190f35b34801561037f57600080fd5b506103ac6004803603604081101561039657600080fd5b50803590602001356001600160a01b03166111e3565b604080519115158252519081900360200190f35b3480156103cc57600080fd5b50610361600480360360208110156103e357600080fd5b50356001600160a01b0316611681565b3480156103ff57600080fd5b50610361611693565b34801561041457600080fd5b5061031b611699565b34801561042957600080fd5b506103616116a8565b34801561043e57600080fd5b506103616004803603602081101561045557600080fd5b50356001600160a01b03166116ae565b34801561047157600080fd5b5061048f6004803603602081101561048857600080fd5b50356116c0565b604080516001600160a01b039e8f1681529c8e1660208e01528c81019b909b5260608c019990995296151560808b0152948a1660a08a015260c089019390935260e088019190915261010087015261012086015261014085015215156101608401529092166101808201529051908190036101a00190f35b34801561051357600080fd5b506103ac6004803603604081101561052a57600080fd5b50803590602001356001600160a01b0316611733565b34801561054c57600080fd5b506102ff6004803603602081101561056357600080fd5b5035611afd565b34801561057657600080fd5b506102ff6004803603604081101561058d57600080fd5b506001600160a01b038135169060200135611b83565b3480156105af57600080fd5b50610361611be7565b3480156105c457600080fd5b506103ac600480360360408110156105db57600080fd5b50803590602001356001600160a01b0316611bed565b3480156105fd57600080fd5b50610361612053565b34801561061257600080fd5b506102ff6004803603604081101561062957600080fd5b5080359060200135612059565b34801561064257600080fd5b506102ff6004803603604081101561065957600080fd5b506001600160a01b03813516906020013515156120ed565b34801561067d57600080fd5b506103ac6004803603602081101561069457600080fd5b50356001600160a01b0316612198565b3480156106b057600080fd5b506103616121ad565b3480156106c557600080fd5b506102ff600480360360208110156106dc57600080fd5b50356121b3565b3480156106ef57600080fd5b506103ac612239565b34801561070457600080fd5b5061031b612242565b34801561071957600080fd5b506102ff6004803603606081101561073057600080fd5b5080359060208101359060400135612251565b34801561074f57600080fd5b506103616004803603602081101561076657600080fd5b50356122f0565b34801561077957600080fd5b506102ff6004803603602081101561079057600080fd5b50356122fd565b3480156107a357600080fd5b50610361612383565b61036160048036036101208110156107c357600080fd5b810190602081018135600160201b8111156107dd57600080fd5b8201836020820111156107ef57600080fd5b803590602001918460208302840111600160201b8311171561081057600080fd5b919080806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250929550505081356001600160a01b03908116935060208301359260408101359250606081013515159160808201359160a08101359160c08201359160e0013516612389565b34801561089157600080fd5b506108af600480360360208110156108a857600080fd5b5035612545565b60408051602080825283518183015283519192839290830191858101910280838360005b838110156108eb5781810151838201526020016108d3565b505050509050019250505060405180910390f35b34801561090b57600080fd5b506103ac6004803603604081101561092257600080fd5b50803590602001356001600160a01b031661267b565b34801561094457600080fd5b506103616004803603604081101561095b57600080fd5b506001600160a01b038135169060200135612a19565b34801561097d57600080fd5b506103616004803603602081101561099457600080fd5b50356001600160a01b0316612a5f565b3480156109b057600080fd5b50610361612a71565b3480156109c557600080fd5b5061031b612a77565b3480156109da57600080fd5b50610361612a86565b3480156109ef57600080fd5b506102ff60048036036020811015610a0657600080fd5b50356001600160a01b0316612a8c565b6103616004803603610160811015610a2d57600080fd5b810190602081018135600160201b811115610a4757600080fd5b820183602082011115610a5957600080fd5b803590602001918460208302840111600160201b83111715610a7a57600080fd5b919080806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250929550505081356001600160a01b039081169350602083013592604081013592506060810135151591608082013581169160a08101359160c08201359160e081013591610100820135151591610120013516612b2d565b348015610b0d57600080fd5b506102ff60048036036020811015610b2457600080fd5b50351515612cdd565b348015610b3957600080fd5b506102ff60048036036040811015610b5057600080fd5b506001600160a01b038135169060200135612d6f565b348015610b7257600080fd5b506102ff60048036036020811015610b8957600080fd5b5035612e13565b348015610b9c57600080fd5b506108af60048036036020811015610bb357600080fd5b5035612e99565b348015610bc657600080fd5b5061036160048036036020811015610bdd57600080fd5b50356001600160a01b0316612fc7565b348015610bf957600080fd5b50610361612fd9565b348015610c0e57600080fd5b506102ff60048036036040811015610c2557600080fd5b50803590602001356001600160a01b0316612fdf565b348015610c4757600080fd5b506103616131b7565b348015610c5c57600080fd5b506102ff60048036036020811015610c7357600080fd5b50356001600160a01b03166131bd565b348015610c8f57600080fd5b5061036160048036036020811015610ca657600080fd5b50356001600160a01b031661325c565b348015610cc257600080fd5b5061036161326e565b348015610cd757600080fd5b506102ff60048036036020811015610cee57600080fd5b50356001600160a01b0316613274565b348015610d0a57600080fd5b506102ff60048036036060811015610d2157600080fd5b506001600160a01b038135811691602081013590911690604001356132e3565b348015610d4d57600080fd5b506102ff60048036036060811015610d6457600080fd5b810190602081018135600160201b811115610d7e57600080fd5b820183602082011115610d9057600080fd5b803590602001918460208302840111600160201b83111715610db157600080fd5b9190808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152509295949360208101935035915050600160201b811115610e0057600080fd5b820183602082011115610e1257600080fd5b803590602001918460208302840111600160201b83111715610e3357600080fd5b9190808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152509295949360208101935035915050600160201b811115610e8257600080fd5b820183602082011115610e9457600080fd5b803590602001918460208302840111600160201b83111715610eb557600080fd5b9190808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152509295506133b8945050505050565b348015610eff57600080fd5b506102ff60048036036040811015610f1657600080fd5b506001600160a01b03813581169160200135166135a5565b6103616004803603610140811015610f4557600080fd5b810190602081018135600160201b811115610f5f57600080fd5b820183602082011115610f7157600080fd5b803590602001918460208302840111600160201b83111715610f9257600080fd5b919080806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250929550506001600160a01b038335811694506020840135936040810135935060608101359250608081013515159160a08201359160c08101359160e082013591610100013516613687565b34801561101957600080fd5b5061102261386a565b604080519485526020850193909352838301919091526060830152519081900360800190f35b34801561105457600080fd5b506102ff6004803603604081101561106b57600080fd5b50803590602001356001600160a01b031661387c565b34801561108d57600080fd5b5061031b613a54565b3480156110a257600080fd5b5061031b613a63565b3480156110b757600080fd5b50610361600480360360208110156110ce57600080fd5b50356001600160a01b0316613a72565b3480156110ea57600080fd5b506111086004803603602081101561110157600080fd5b5035613a84565b604080516001600160a01b039d8e1681529b8d1660208d01528b81019a909a5260608b019890985260808a019690965293151560a089015260c088019290925260e087015261010086015261012085015215156101408401529092166101608201529051908190036101800190f35b34801561118357600080fd5b5061031b613af8565b34801561119857600080fd5b506102ff600480360360208110156111af57600080fd5b5035613b07565b600a546001600160a01b031681565b601381815481106111d257fe5b600091825260209091200154905081565b60006002600054141561122b576040805162461bcd60e51b815260206004820152601f6024820152600080516020615d98833981519152604482015290519081900360640190fd5b6002600055611238615bc2565b6000848152601d602090815260409182902082516101c08101845281546001600160a01b03168152600182018054855181860281018601909652808652919492938581019392908301828280156112b857602002820191906000526020600020905b81546001600160a01b0316815260019091019060200180831161129a575b505050918352505060028201546001600160a01b0390811660208301526003830154604083015260048301546060830152600583015460ff8082161515608085015261010091829004831660a0850152600685015460c0850152600785015460e08501526008850154828501526009850154610120850152600a850154610140850152600b90940154938416151561016084015290920482166101809091015281519192501661136c576001915050611676565b60006113878261014001518361016001518460000151613b8d565b90508061139957600092505050611676565b6000858152601d6020526040812080546001600160a01b0319168155906113c36001830182615c59565b506002810180546001600160a01b0319169055600060038201819055600482018190556005820180546001600160a81b031990811690915560068301829055600783018290556008830182905560098301829055600a8301829055600b9092018054909216909155825160208401518051611469929190849061144257fe5b60200260200101518560400151866060015187608001518860a00151308a60e00151613bf6565b9050801561151857600183602001515111156114d957600354602084015180516114c2926001600160a01b03169184916000906114a257fe5b60200260200101516001600160a01b03166140a39092919063ffffffff16565b6114d68360200151846101000151306140fa565b90505b826101800151156114f7576114f2818460c00151614185565b611518565b6115188360c00151828560200151600187602001515103815181106114a257fe5b61152783610120015186614185565b82600001516001600160a01b03167f21435c5b618d77ff3657140cd3318e2cffaebc5e0e1b7318f56a9ba4044c3ed284602001518560400151866060015187608001518860a001518960c001518a60e001518b61010001518c610120015161159d8e61014001514361432d90919063ffffffff16565b6101608f01516115ae90429061432d565b60405180806020018c6001600160a01b031681526020018b81526020018a81526020018915158152602001886001600160a01b0316815260200187815260200186815260200185815260200184815260200183815260200182810382528d818151815260200191508051906020019060200280838360005b8381101561163e578181015183820152602001611626565b505050509050019c5050505050505050505050505060405180910390a261166e836101a00151876001600061436f565b600193505050505b600160005592915050565b600c6020526000908152604090205481565b61271081565b6001546001600160a01b031681565b60165481565b600b6020526000908152604090205481565b601d602052600090815260409020805460028201546003830154600484015460058501546006860154600787015460088801546009890154600a8a0154600b909a01546001600160a01b03998a169a988a16999798969760ff80881698610100988990048316989093918216929104168d565b60006002600054141561177b576040805162461bcd60e51b815260206004820152601f6024820152600080516020615d98833981519152604482015290519081900360640190fd5b6002600055611788615c77565b6000848152601b602090815260409182902082516101a08101845281546001600160a01b031681526001820180548551818602810186019096528086529194929385810193929083018282801561180857602002820191906000526020600020905b81546001600160a01b031681526001909101906020018083116117ea575b505050918352505060028201546001600160a01b039081166020830152600383015460408301526004830154606083015260058301546080830152600683015460ff908116151560a0840152600784015460c0840152600884015460e0840152600984015461010080850191909152600a850154610120850152600b909401549081161515610140840152929092048216610160909101528151919250166118b4576001915050611676565b60006118cf82610120015183610140015184600001516144a1565b9050806118e157600092505050611676565b6000858152601b6020526040812080546001600160a01b03191681559061190b6001830182615c59565b506002810180546001600160a01b0319169055600060038201819055600482018190556005820181905560068201805460ff19169055600782018190556008820181905560098201819055600a820155600b0180546001600160a81b03191690556101608201511561198e5761198982606001518360000151614185565b6119ac565b6119ac8260000151836060015184602001516000815181106114a257fe5b6119bb82610100015185614185565b81600001516001600160a01b03167f35b638e650e2328786fb405bd69d2083dbedc018d086662e74b775b4f1dae4bf83602001518460400151856060015186608001518760a001518860c001518960e001518a6101000151611a2b8c61012001514361432d90919063ffffffff16565b6101408d0151611a3c90429061432d565b60405180806020018b6001600160a01b031681526020018a8152602001898152602001888152602001871515815260200186815260200185815260200184815260200183815260200182810382528c818151815260200191508051906020019060200280838360005b83811015611abd578181015183820152602001611aa5565b505050509050019b50505050505050505050505060405180910390a2611aec826101800151866000600161436f565b600192505050600160005592915050565b6002546001600160a01b03163314611b48576040805162461bcd60e51b81526020600482015260096024820152683337b93134b23232b760b91b604482015290519081900360640190fd5b60098190556040805182815290517f21167d0d4661af93817ebce920f18986eed3d75d5e1c03f2aed05efcbafbc4529181900360200190a150565b6001546001600160a01b03163314611bd0576040805162461bcd60e51b81526020600482015260156024820152600080516020615db8833981519152604482015290519081900360640190fd5b611be36001600160a01b038316826144ae565b5050565b60175481565b600060026000541415611c35576040805162461bcd60e51b815260206004820152601f6024820152600080516020615d98833981519152604482015290519081900360640190fd5b6002600055611c42615c77565b6000848152601b602090815260409182902082516101a08101845281546001600160a01b0316815260018201805485518186028101860190965280865291949293858101939290830182828015611cc257602002820191906000526020600020905b81546001600160a01b03168152600190910190602001808311611ca4575b505050918352505060028201546001600160a01b039081166020830152600383015460408301526004830154606083015260058301546080830152600683015460ff908116151560a0840152600784015460c0840152600884015460e0840152600984015461010080850191909152600a850154610120850152600b90940154908116151561014084015292909204821661016090910152815191925016611d6e576001915050611676565b6000611d898261012001518361014001518460000151613b8d565b905080611d9b57600092505050611676565b6000858152601b6020526040812080546001600160a01b031916815590611dc56001830182615c59565b506002810180546001600160a01b0319169055600060038201819055600482018190556005820181905560068201805460ff19169055600782018190556008820181905560098201819055600a820155600b0180546001600160a81b0319169055606082015115611ed657606082015160208301515160011015611e8157600354606084015160208501518051611e6b936001600160a01b03169291906000906114a257fe5b611e7e83602001518460800151306140fa565b90505b6000611ea5846000015185602001518487604001518860c001518960a00151614593565b60035460208601518051929350611ed3926001600160a01b039092169184919060001981019081106114a257fe5b50505b815160208301518051611f149291906000198101908110611ef357fe5b602002602001015184604001518560a001518660c001518760e00151614789565b611f2382610100015185614185565b81600001516001600160a01b03167f1be316b94d38c07bd41cdb4913772d0a0a82802786a2f8b657b6e85dbcdfc64183602001518460400151856060015186608001518760a001518860c001518960e001518a6101000151611f938c61012001514361432d90919063ffffffff16565b6101408d0151611fa490429061432d565b60405180806020018b6001600160a01b031681526020018a8152602001898152602001888152602001871515815260200186815260200185815260200184815260200183815260200182810382528c818151815260200191508051906020019060200280838360005b8381101561202557818101518382015260200161200d565b505050509050019b50505050505050505050505060405180910390a2611aec8261018001518660018061436f565b60075481565b6002546001600160a01b031633146120a4576040805162461bcd60e51b81526020600482015260096024820152683337b93134b23232b760b91b604482015290519081900360640190fd5b60158290556016819055604080518381526020810183905281517febb0f666150f4be5b60c45df8f3e49992510b0128027fe58eea6110f296493bc929181900390910190a15050565b6002546001600160a01b03163314612138576040805162461bcd60e51b81526020600482015260096024820152683337b93134b23232b760b91b604482015290519081900360640190fd5b6001600160a01b038216600081815260196020908152604091829020805460ff1916851515908117909155825190815291517ffbabc02389290a451c6e600d05bf9887b99bfad39d8e1237e4e3df042e4941fe9281900390910190a25050565b60196020526000908152604090205460ff1681565b60105481565b6002546001600160a01b031633146121fe576040805162461bcd60e51b81526020600482015260096024820152683337b93134b23232b760b91b604482015290519081900360640190fd5b60078190556040805182815290517f4d371d598d3a13f99ce992a17975bbaf1e1c256e072ec7d2f93ce88e40d9ba1c9181900360200190a150565b60125460ff1681565b6006546001600160a01b031681565b6002546001600160a01b0316331461229c576040805162461bcd60e51b81526020600482015260096024820152683337b93134b23232b760b91b604482015290519081900360640190fd5b600f83905560108290556011819055604080518481526020810184905280820183905290517fb98e759701eaca2e60c25e91109003c1c7442ef731b5d569037063005da8254d9181900360600190a1505050565b601481815481106111d257fe5b6002546001600160a01b03163314612348576040805162461bcd60e51b81526020600482015260096024820152683337b93134b23232b760b91b604482015290519081900360640190fd5b60088190556040805182815290517f974fd3c1fcb4653dfc4fb740c4c692cd212d55c28f163f310128cb64d83006759181900360200190a150565b600f5481565b6000600260005414156123d1576040805162461bcd60e51b815260206004820152601f6024820152600080516020615d98833981519152604482015290519081900360640190fd5b6002600055600e54841015612413576040805162461bcd60e51b815260206004820152600360248201526266656560e81b604482015290519081900360640190fd5b8334101561244e576040805162461bcd60e51b81526020600482015260036024820152621d985b60ea1b604482015290519081900360640190fd5b89516001148061245f575089516002145b612496576040805162461bcd60e51b81526020600482015260036024820152623632b760e91b604482015290519081900360640190fd5b6006548a516001600160a01b03909116908b906000906124b257fe5b60200260200101516001600160a01b0316146124fe576040805162461bcd60e51b815260206004808301919091526024820152630e0c2e8d60e31b604482015290519081900360640190fd5b61250661485b565b61250f836148c7565b600061251b348661432d565b9050612531338c8c848d8d8d8d8d60018d61493b565b60016000559b9a5050505050505050505050565b606061254f615bc2565b6000838152601d602090815260409182902082516101c08101845281546001600160a01b03168152600182018054855181860281018601909652808652919492938581019392908301828280156125cf57602002820191906000526020600020905b81546001600160a01b031681526001909101906020018083116125b1575b505050918352505060028201546001600160a01b039081166020808401919091526003840154604084015260048401546060840152600584015460ff8082161515608086015261010091829004841660a0860152600686015460c0860152600786015460e08601526008860154828601526009860154610120860152600a860154610140860152600b909501549485161515610160850152909304166101809091015201519392505050565b6000600260005414156126c3576040805162461bcd60e51b815260206004820152601f6024820152600080516020615d98833981519152604482015290519081900360640190fd5b60026000556126d0615bc2565b6000848152601d602090815260409182902082516101c08101845281546001600160a01b031681526001820180548551818602810186019096528086529194929385810193929083018282801561275057602002820191906000526020600020905b81546001600160a01b03168152600190910190602001808311612732575b505050918352505060028201546001600160a01b0390811660208301526003830154604083015260048301546060830152600583015460ff8082161515608085015261010091829004831660a0850152600685015460c0850152600785015460e08501526008850154828501526009850154610120850152600a850154610140850152600b909401549384161515610160840152909204821661018090910152815191925016612804576001915050611676565b600061281f82610140015183610160015184600001516144a1565b90508061283157600092505050611676565b6000858152601d6020526040812080546001600160a01b03191681559061285b6001830182615c59565b506002810180546001600160a01b0319169055600060038201819055600482018190556005820180546001600160a81b031990811690915560068301829055600783018290556008830182905560098301829055600a830191909155600b909101805490911690556101208201516128d39085614185565b81600001516001600160a01b03167f87abfd78e844f28318363bdf3da99eab2f4a2da9ff7ae365484507f7b6c3f80583602001518460400151856060015186608001518760a001518860c001518960e001518a61010001518b61012001516129498d61014001514361432d90919063ffffffff16565b6101608e015161295a90429061432d565b60405180806020018c6001600160a01b031681526020018b81526020018a81526020018915158152602001886001600160a01b0316815260200187815260200186815260200185815260200184815260200183815260200182810382528d818151815260200191508051906020019060200280838360005b838110156129ea5781810151838201526020016129d2565b505050509050019c5050505050505050505050505060405180910390a2611aec826101a001518660008061436f565b6000828260405160200180836001600160a01b031660601b8152601401828152602001925050506040516020818303038152906040528051906020012090505b92915050565b601a6020526000908152604090205481565b600e5481565b6004546001600160a01b031681565b60085481565b6001546001600160a01b03163314612ad9576040805162461bcd60e51b81526020600482015260156024820152600080516020615db8833981519152604482015290519081900360640190fd5b600280546001600160a01b0383166001600160a01b0319909116811790915560408051918252517f5a272403b402d892977df56625f4164ccaf70ca3863991c43ecfe76a6905b0a19181900360200190a150565b600060026000541415612b75576040805162461bcd60e51b815260206004820152601f6024820152600080516020615d98833981519152604482015290519081900360640190fd5b6002600055600e54841015612bb7576040805162461bcd60e51b815260206004820152600360248201526266656560e81b604482015290519081900360640190fd5b833414612bf1576040805162461bcd60e51b81526020600482015260036024820152621d985b60ea1b604482015290519081900360640190fd5b8b5160011480612c0257508b516002145b612c39576040805162461bcd60e51b81526020600482015260036024820152623632b760e91b604482015290519081900360640190fd5b8215612cac576006548c516001600160a01b03909116908d906000198101908110612c6057fe5b60200260200101516001600160a01b031614612cac576040805162461bcd60e51b815260206004808301919091526024820152630e0c2e8d60e31b604482015290519081900360640190fd5b612cb461485b565b612cc8338d8d8d8d8d8d8d8d8d8d8d614ad2565b60016000559c9b505050505050505050505050565b6002546001600160a01b03163314612d28576040805162461bcd60e51b81526020600482015260096024820152683337b93134b23232b760b91b604482015290519081900360640190fd5b6012805482151560ff19909116811790915560408051918252517f4eb87a5935d402aa24c01b45bfb30adefcd2328b480f2d967864de4b64ea929f9181900360200190a150565b6002546001600160a01b03163314612dba576040805162461bcd60e51b81526020600482015260096024820152683337b93134b23232b760b91b604482015290519081900360640190fd5b6001600160a01b0382166000818152601860209081526040918290208490558151928352820183905280517f0a585bcfd5f265014b902e5350c05f3a465468d433f13009dcf83f17dc1316be9281900390910190a15050565b6002546001600160a01b03163314612e5e576040805162461bcd60e51b81526020600482015260096024820152683337b93134b23232b760b91b604482015290519081900360640190fd5b60178190556040805182815290517f22bd2c9f980325d046be74aaef5fc76df4a2bc3fbc7c5a1200fcc79fe80dab6c9181900360200190a150565b6060612ea3615c77565b6000838152601b602090815260409182902082516101a08101845281546001600160a01b0316815260018201805485518186028101860190965280865291949293858101939290830182828015612f2357602002820191906000526020600020905b81546001600160a01b03168152600190910190602001808311612f05575b505050918352505060028201546001600160a01b03908116602080840191909152600384015460408401526004840154606084015260058401546080840152600684015460ff908116151560a0850152600785015460c0850152600885015460e0850152600985015461010080860191909152600a860154610120860152600b90950154908116151561014085015293909304166101609091015201519392505050565b600d6020526000908152604090205481565b60095481565b3360009081526019602052604090205460ff16613029576040805162461bcd60e51b815260206004820152600360248201526234303360e81b604482015290519081900360640190fd5b60155460135480821061303d575050611be3565b80841115613049578093505b838210156131af5760006013838154811061306057fe5b90600052602060002001549050306001600160a01b03166327b42c0f82866040518363ffffffff1660e01b815260040180838152602001826001600160a01b0316815260200192505050602060405180830381600087803b1580156130c457600080fd5b505af19250505080156130e957506040513d60208110156130e457600080fd5b505160015b61317d576040805163225fc9fd60e01b8152600481018390526001600160a01b03861660248201529051309163225fc9fd9160448083019260209291908290030181600087803b15801561313c57600080fd5b505af192505050801561316157506040513d602081101561315c57600080fd5b505160015b61316a57613178565b806131765750506131af565b505b61318b565b806131895750506131af565b505b6013838154811061319857fe5b600091825260208220015550600190910190613049565b506015555050565b60155481565b6002546001600160a01b03163314613208576040805162461bcd60e51b81526020600482015260096024820152683337b93134b23232b760b91b604482015290519081900360640190fd5b600a80546001600160a01b0383166001600160a01b0319909116811790915560408051918252517f828abcccea18192c21d645e575652c49e20b986dab777906fc473d056b01b6a89181900360200190a150565b60186020526000908152604090205481565b60115481565b6001546001600160a01b031633146132c1576040805162461bcd60e51b81526020600482015260156024820152600080516020615db8833981519152604482015290519081900360640190fd5b600180546001600160a01b0319166001600160a01b0392909216919091179055565b6001546001600160a01b03163314613330576040805162461bcd60e51b81526020600482015260156024820152600080516020615db8833981519152604482015290519081900360640190fd5b826001600160a01b031663095ea7b383836040518363ffffffff1660e01b815260040180836001600160a01b0316815260200182815260200192505050602060405180830381600087803b15801561338757600080fd5b505af115801561339b573d6000803e3d6000fd5b505050506040513d60208110156133b157600080fd5b5050505050565b6002546001600160a01b03163314613403576040805162461bcd60e51b81526020600482015260096024820152683337b93134b23232b760b91b604482015290519081900360640190fd5b60005b835181101561349e57600084828151811061341d57fe5b6020026020010151905083828151811061343357fe5b6020026020010151600c6000836001600160a01b03166001600160a01b031681526020019081526020016000208190555082828151811061347057fe5b6020908102919091018101516001600160a01b039092166000908152600d9091526040902055600101613406565b507fae32d569b058895b9620d6552b09aaffedc9a6f396be4d595a224ad09f8b213983838360405180806020018060200180602001848103845287818151815260200191508051906020019060200280838360005b8381101561350b5781810151838201526020016134f3565b50505050905001848103835286818151815260200191508051906020019060200280838360005b8381101561354a578181015183820152602001613532565b50505050905001848103825285818151815260200191508051906020019060200280838360005b83811015613589578181015183820152602001613571565b50505050905001965050505050505060405180910390a1505050565b6002546001600160a01b031633146135f0576040805162461bcd60e51b81526020600482015260096024820152683337b93134b23232b760b91b604482015290519081900360640190fd5b6001600160a01b0382166000908152600b6020526040902054806136145750611be3565b6001600160a01b0383166000818152600b60205260408120556136389083836140a3565b604080516001600160a01b0380861682528416602082015280820183905290517f4f1b51dd7a2fcb861aa2670f668be66835c4ee12b4bbbf037e4d0018f39819e49181900360600190a1505050565b6000600260005414156136cf576040805162461bcd60e51b815260206004820152601f6024820152600080516020615d98833981519152604482015290519081900360640190fd5b6002600055600e54841015613711576040805162461bcd60e51b815260206004820152600360248201526266656560e81b604482015290519081900360640190fd5b83341461374b576040805162461bcd60e51b81526020600482015260036024820152621d985b60ea1b604482015290519081900360640190fd5b8a516001148061375c57508a516002145b613793576040805162461bcd60e51b81526020600482015260036024820152623632b760e91b604482015290519081900360640190fd5b61379b61485b565b6137a4836148c7565b8815613856576005548b516001600160a01b0390911690631b827878908d906000906137cc57fe5b602002602001015133308d6040518563ffffffff1660e01b815260040180856001600160a01b03168152602001846001600160a01b03168152602001836001600160a01b03168152602001828152602001945050505050600060405180830381600087803b15801561383d57600080fd5b505af1158015613851573d6000803e3d6000fd5b505050505b612531338c8c8c8c8c8c8c8c60008c61493b565b60155460135460165460145490919293565b3360009081526019602052604090205460ff166138c6576040805162461bcd60e51b815260206004820152600360248201526234303360e81b604482015290519081900360640190fd5b6016546014548082106138da575050611be3565b808411156138e6578093505b83821015613a4c576000601483815481106138fd57fe5b90600052602060002001549050306001600160a01b0316630d4d003d82866040518363ffffffff1660e01b815260040180838152602001826001600160a01b0316815260200192505050602060405180830381600087803b15801561396157600080fd5b505af192505050801561398657506040513d602081101561398157600080fd5b505160015b613a1a5760408051633051b17160e11b8152600481018390526001600160a01b0386166024820152905130916360a362e29160448083019260209291908290030181600087803b1580156139d957600080fd5b505af19250505080156139fe57506040513d60208110156139f957600080fd5b505160015b613a0757613a15565b80613a13575050613a4c565b505b613a28565b80613a26575050613a4c565b505b60148381548110613a3557fe5b6000918252602082200155506001909101906138e6565b506016555050565b6002546001600160a01b031681565b6005546001600160a01b031681565b601c6020526000908152604090205481565b601b602052600090815260409020805460028201546003830154600484015460058501546006860154600787015460088801546009890154600a8a0154600b909a01546001600160a01b03998a169a988a169997989697959660ff958616969495939492939092908216916101009004168c565b6003546001600160a01b031681565b6002546001600160a01b03163314613b52576040805162461bcd60e51b81526020600482015260096024820152683337b93134b23232b760b91b604482015290519081900360640190fd5b600e8190556040805182815290517f52a8358457e20bbb36e4086b83fb0749599f1893fe4c35a876c46dc4886d12db9181900360200190a150565b600042613ba560115485614cac90919063ffffffff16565b11613be1576040805162461bcd60e51b8152602060048201526007602482015266195e1c1a5c995960ca1b604482015290519081900360640190fd5b613bec848484614d04565b90505b9392505050565b6003546000906001600160a01b03168185613c8957816001600160a01b031663e124e6d28a6040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b158015613c5857600080fd5b505afa158015613c6c573d6000803e3d6000fd5b505050506040513d6020811015613c8257600080fd5b5051613d03565b816001600160a01b03166381a612d68a6040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b158015613cd657600080fd5b505afa158015613cea573d6000803e3d6000fd5b505050506040513d6020811015613d0057600080fd5b50515b90508515613d595783811015613d54576040805162461bcd60e51b81526020600482015260116024820152706d61726b5072696365203c20707269636560781b604482015290519081900360640190fd5b613da2565b83811115613da2576040805162461bcd60e51b81526020600482015260116024820152706d61726b5072696365203e20707269636560781b604482015290519081900360640190fd5b6000826001600160a01b03166312d43a516040518163ffffffff1660e01b815260040160206040518083038186803b158015613ddd57600080fd5b505afa158015613df1573d6000803e3d6000fd5b505050506040513d6020811015613e0757600080fd5b81019080805190602001909291905050509050600460009054906101000a90046001600160a01b03166001600160a01b031663f3238cec8d8d8d8b8d8860006040518863ffffffff1660e01b815260040180886001600160a01b03168152602001876001600160a01b03168152602001866001600160a01b0316815260200185151581526020018481526020018381526020018215158152602001975050505050505050600060405180830381600087803b158015613ec557600080fd5b505af1158015613ed9573d6000803e3d6000fd5b50505050806001600160a01b0316636d63c1d0846040518263ffffffff1660e01b815260040180826001600160a01b03168152602001915050600060405180830381600087803b158015613f2c57600080fd5b505af1158015613f40573d6000803e3d6000fd5b505050506000600560009054906101000a90046001600160a01b03166001600160a01b0316632662166b8e8e8e8e8e8e8e6040518863ffffffff1660e01b815260040180886001600160a01b03168152602001876001600160a01b03168152602001866001600160a01b031681526020018581526020018481526020018315158152602001826001600160a01b03168152602001975050505050505050602060405180830381600087803b158015613ff757600080fd5b505af115801561400b573d6000803e3d6000fd5b505050506040513d602081101561402157600080fd5b50516040805163d3c87bbb60e01b81526001600160a01b03878116600483015291519293509084169163d3c87bbb9160248082019260009290919082900301818387803b15801561407157600080fd5b505af1158015614085573d6000803e3d6000fd5b505050506140938d8a614e35565b9c9b505050505050505050505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b1790526140f590849061502a565b505050565b60008351600214156141415761413a8460008151811061411657fe5b60200260200101518560018151811061412b57fe5b602002602001015185856150db565b9050613bef565b6040805162461bcd60e51b81526020600482015260146024820152730d2dcecc2d8d2c840bee0c2e8d05cd8cadccee8d60631b604482015290519081900360640190fd5b60065460408051632e1a7d4d60e01b81526004810185905290516001600160a01b03909216918291632e1a7d4d91602480830192600092919082900301818387803b1580156141d357600080fd5b505af11580156141e7573d6000803e3d6000fd5b5050600754604051600093506001600160a01b0386169250869084818181858888f193505050503d806000811461423a576040519150601f19603f3d011682016040523d82523d6000602084013e61423f565b606091505b505090508015614250575050611be3565b816001600160a01b031663d0e30db0856040518263ffffffff1660e01b81526004016000604051808303818588803b15801561428b57600080fd5b505af115801561429f573d6000803e3d6000fd5b5050505050816001600160a01b031663a9059cbb84866040518363ffffffff1660e01b815260040180836001600160a01b0316815260200182815260200192505050602060405180830381600087803b1580156142fb57600080fd5b505af115801561430f573d6000803e3d6000fd5b505050506040513d602081101561432557600080fd5b505050505050565b6000613bef83836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f7700008152506151c0565b6001600160a01b0384166143825761449b565b614394846001600160a01b0316615257565b61439d5761449b565b6017546001600160a01b038516600090815260186020526040902054818111156143c5578091505b816143d157505061449b565b6000866001600160a01b031663edf3daec848888886040518563ffffffff1660e01b815260040180848152602001831515815260200182151581526020019350505050600060405180830381600088803b15801561442e57600080fd5b5087f193505050508015614440575060015b6144495761444d565b5060015b604080516001600160a01b0389168152821515602082015280820185905290517fc9123a2a8e16684aa24686f2bf8a6d0eb0c601bdc109140c9729916865a58bc49181900360600190a15050505b50505050565b6000613bec848484614d04565b80471015614503576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e6365000000604482015290519081900360640190fd5b6040516000906001600160a01b0384169083908381818185875af1925050503d806000811461454e576040519150601f19603f3d011682016040523d82523d6000602084013e614553565b606091505b50509050806140f55760405162461bcd60e51b815260040180806020018281038252603a815260200180615dd8603a913960400191505060405180910390fd5b60008073ea2b03f7f83aecec3128f38336382a52e54a5b7063e0cab550600360009054906101000a90046001600160a01b03168a8a8a8a8a8a6009546040518963ffffffff1660e01b815260040180896001600160a01b03168152602001886001600160a01b0316815260200180602001878152602001866001600160a01b031681526020018515158152602001848152602001838152602001828103825288818151815260200191508051906020019060200280838360005b8381101561466557818101518382015260200161464d565b50505050905001995050505050505050505060206040518083038186803b15801561468f57600080fd5b505af41580156146a3573d6000803e3d6000fd5b505050506040513d60208110156146b957600080fd5b50519050801561477a5760006146f26127106146ec6146e560085461271061432d90919063ffffffff16565b8a9061525d565b906152b6565b90506000614700888361432d565b905060008960018b51038151811061471457fe5b6020026020010151905061475682600b6000846001600160a01b03166001600160a01b0316815260200190815260200160002054614cac90919063ffffffff16565b6001600160a01b039091166000908152600b602052604090205550915061477f9050565b859150505b9695505050505050565b6147948483856152f5565b60035460055460048054604080516317c3cf0f60e31b81526001600160a01b03958616938101939093529284166024830152831660448201528883166064820152878316608482015291861660a483015260c4820185905283151560e483015261010482018390525173ea2b03f7f83aecec3128f38336382a52e54a5b709163be1e787891610124808301926000929190829003018186803b15801561483957600080fd5b505af415801561484d573d6000803e3d6000fd5b5050505061432586846154be565b34156148c557600660009054906101000a90046001600160a01b03166001600160a01b031663d0e30db0346040518263ffffffff1660e01b81526004016000604051808303818588803b1580156148b157600080fd5b505af11580156133b1573d6000803e3d6000fd5b565b80158015906148e05750600a546001600160a01b031615155b1561493857600a54604080516356b4b2ad60e01b81523360048201526024810184905290516001600160a01b03909216916356b4b2ad9160448082019260009290919082900301818387803b1580156148b157600080fd5b50565b6000614945615c77565b604051806101a001604052808e6001600160a01b031681526020018d81526020018c6001600160a01b031681526020018b81526020018a815260200189815260200188151581526020018781526020018681526020014381526020014281526020018515158152602001846001600160a01b031681525090506000806149ca83615645565b915091508e6001600160a01b03167f5265bc4952da402633b3fc35f67ab4245493a0ab94dd8ab123667c8d45a4485c8f8f8f8f8f8f8f8f8b60016013805490500343423a60405180806020018e6001600160a01b031681526020018d81526020018c81526020018b81526020018a1515815260200189815260200188815260200187815260200186815260200185815260200184815260200183815260200182810382528f818151815260200191508051906020019060200280838360005b83811015614aa1578181015183820152602001614a89565b505050509050019e50505050505050505050505050505060405180910390a29e9d5050505050505050505050505050565b6000614adc615bc2565b604051806101c001604052808f6001600160a01b031681526020018e81526020018d6001600160a01b031681526020018c81526020018b81526020018a15158152602001896001600160a01b031681526020018881526020018781526020018681526020014381526020014281526020018515158152602001846001600160a01b03168152509050600080614b70836157e3565b9150915082600001516001600160a01b03167f81ed0476a7e785a9e4728fffd679ea97176ca1ac85e1003462558bb5677da57b84602001518560400151866060015187608001518860a001518960c001518a60e001518b61010001518c61012001518c600160148054905003434260405180806020018e6001600160a01b031681526020018d81526020018c81526020018b151581526020018a6001600160a01b0316815260200189815260200188815260200187815260200186815260200185815260200184815260200183815260200182810382528f818151815260200191508051906020019060200280838360005b83811015614c7a578181015183820152602001614c62565b505050509050019e50505050505050505050505050505060405180910390a29f9e505050505050505050505050505050565b600082820183811015613bef576040805162461bcd60e51b815260206004820152601b60248201527a536166654d6174683a206164646974696f6e206f766572666c6f7760281b604482015290519081900360640190fd5b60008033301480614d2457503360009081526019602052604090205460ff165b60125490915060ff16158015614d38575080155b15614d70576040805162461bcd60e51b815260206004820152600360248201526234303360e81b604482015290519081900360640190fd5b8015614d965743614d8c600f5487614cac90919063ffffffff16565b1115915050613bef565b336001600160a01b03841614614dd9576040805162461bcd60e51b815260206004820152600360248201526234303360e81b604482015290519081900360640190fd5b42614def60105486614cac90919063ffffffff16565b1115614e2a576040805162461bcd60e51b815260206004820152600560248201526464656c617960d81b604482015290519081900360640190fd5b506001949350505050565b600a546001600160a01b031680614e4c5750611be3565b600080826001600160a01b031663534ef883866040518263ffffffff1660e01b815260040180826001600160a01b03168152602001915050604080518083038186803b158015614e9b57600080fd5b505afa158015614eaf573d6000803e3d6000fd5b505050506040513d6040811015614ec557600080fd5b508051602090910151909250905081614ee057505050611be3565b600354604080516312d43a5160e01b815290516000926001600160a01b0316916312d43a51916004808301926020929190829003018186803b158015614f2557600080fd5b505afa158015614f39573d6000803e3d6000fd5b505050506040513d6020811015614f4f57600080fd5b50516040805163318bc68960e01b815290519192507f474c763ff84bf2c2039a6d9fea955ecd0f724030e3c365b91169c6a16fe751b791889188916001600160a01b0386169163318bc6899160048083019260209291908290030181600087803b158015614fbc57600080fd5b505af1158015614fd0573d6000803e3d6000fd5b505050506040513d6020811015614fe657600080fd5b5051604080516001600160a01b03948516815260208101939093528281019190915260608201879052918516608082015290519081900360a00190a1505050505050565b606061507f826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b031661598c9092919063ffffffff16565b8051909150156140f55780806020019051602081101561509e57600080fd5b50516140f55760405162461bcd60e51b815260040180806020018281038252602a815260200180615e59602a913960400191505060405180910390fd5b60035460408051634998b10960e11b81526001600160a01b03878116600483015286811660248301528481166044830152915160009384931691639331621291606480830192602092919082900301818787803b15801561513b57600080fd5b505af115801561514f573d6000803e3d6000fd5b505050506040513d602081101561516557600080fd5b50519050838110156151b7576040805162461bcd60e51b81526020600482015260166024820152751a5b9cdd59999a58da595b9d08185b5bdd5b9d13dd5d60521b604482015290519081900360640190fd5b95945050505050565b6000818484111561524f5760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b838110156152145781810151838201526020016151fc565b50505050905090810190601f1680156152415780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b3b151590565b60008261526c57506000612a59565b8282028284828161527957fe5b0414613bef5760405162461bcd60e51b8152600401808060200182810382526021815260200180615e386021913960400191505060405180910390fd5b6000613bef83836040518060400160405280601a815260200179536166654d6174683a206469766973696f6e206279207a65726f60301b81525061599b565b806152ff576140f5565b81156153fd576001600160a01b0383166000908152600c602052604090205480158015906153b057506003546040805163783a2b6760e11b81526001600160a01b038781166004830152915184936153ae93879391169163f07456ce91602480820192602092909190829003018186803b15801561537c57600080fd5b505afa158015615390573d6000803e3d6000fd5b505050506040513d60208110156153a657600080fd5b505190614cac565b115b156153f7576040805162461bcd60e51b81526020600482015260126024820152711b585e081b1bdb99dcc8195e18d95959195960721b604482015290519081900360640190fd5b506140f5565b6001600160a01b0383166000908152600d6020526040902054801580159061547657506003546040805163114f1b5560e31b81526001600160a01b03878116600483015291518493615474938793911691638a78daa891602480820192602092909190829003018186803b15801561537c57600080fd5b115b1561449b576040805162461bcd60e51b81526020600482015260136024820152721b585e081cda1bdc9d1cc8195e18d959591959606a1b604482015290519081900360640190fd5b600a546001600160a01b0316806154d55750611be3565b600080826001600160a01b031663534ef883866040518263ffffffff1660e01b815260040180826001600160a01b03168152602001915050604080518083038186803b15801561552457600080fd5b505afa158015615538573d6000803e3d6000fd5b505050506040513d604081101561554e57600080fd5b50805160209091015190925090508161556957505050611be3565b600354604080516312d43a5160e01b815290516000926001600160a01b0316916312d43a51916004808301926020929190829003018186803b1580156155ae57600080fd5b505afa1580156155c2573d6000803e3d6000fd5b505050506040513d60208110156155d857600080fd5b50516040805163318bc68960e01b815290519192507fc2414023ce7002ee98557d1e7be21e5559073336f2217ee5f9b2e50fd85f71ee91889188916001600160a01b0386169163318bc6899160048083019260209291908290030181600087803b158015614fbc57600080fd5b80516001600160a01b0381166000908152601a6020526040812054909182918290615671906001614cac565b6001600160a01b0383166000908152601a602052604081208290559091506156998383612a19565b6000818152601b60209081526040909120885181546001600160a01b0319166001600160a01b03909116178155888201518051939450899391926156e592600185019290910190615cfe565b5060408201516002820180546001600160a01b039283166001600160a01b0319909116179055606083015160038301556080830151600483015560a0830151600583015560c083015160068301805491151560ff1992831617905560e084015160078401556101008085015160088501556101208501516009850155610140850151600a850155610160850151600b90940180546101809096015190931602610100600160a81b0319931515949091169390931791909116919091179055601380546001810182556000919091527f66de8ffda797e3de9c05e8fc57b3bf0ec28a930d40b0d285d93c06501cf6a09001819055909350915050915091565b80516001600160a01b0381166000908152601c602052604081205490918291829061580f906001614cac565b6001600160a01b0383166000908152601c602052604081208290559091506158378383612a19565b6000818152601d60209081526040909120885181546001600160a01b0319166001600160a01b039091161781558882015180519394508993919261588392600185019290910190615cfe565b5060408201516002820180546001600160a01b039283166001600160a01b0319909116179055606083015160038301556080830151600483015560a083015160058301805460c08601518416610100908102610100600160a81b031994151560ff199384161785161790925560e0860151600686015581860151600786015561012086015160088601556101408601516009860155610160860151600a860155610180860151600b90950180546101a090970151909416909102931515941693909317909216179055601480546001810182556000919091527fce6d7b5282bd9a3661ae061feed1dbda4e52ab073b1f9285be6e155d9c38d4ec01819055909350915050915091565b6060613bec8484600085615a00565b600081836159ea5760405162461bcd60e51b81526020600482018181528351602484015283519092839260449091019190850190808383600083156152145781810151838201526020016151fc565b5060008385816159f657fe5b0495945050505050565b606082471015615a415760405162461bcd60e51b8152600401808060200182810382526026815260200180615e126026913960400191505060405180910390fd5b615a4a85615257565b615a9b576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b60208310615ada5780518252601f199092019160209182019101615abb565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114615b3c576040519150601f19603f3d011682016040523d82523d6000602084013e615b41565b606091505b5091509150615b51828286615b5c565b979650505050505050565b60608315615b6b575081613bef565b825115615b7b5782518084602001fd5b60405162461bcd60e51b81526020600482018181528451602484015284518593919283926044019190850190808383600083156152145781810151838201526020016151fc565b604051806101c0016040528060006001600160a01b031681526020016060815260200160006001600160a01b03168152602001600081526020016000815260200160001515815260200160006001600160a01b03168152602001600081526020016000815260200160008152602001600081526020016000815260200160001515815260200160006001600160a01b031681525090565b50805460008255906000526020600020908101906149389190615d63565b604051806101a0016040528060006001600160a01b031681526020016060815260200160006001600160a01b031681526020016000815260200160008152602001600081526020016000151581526020016000815260200160008152602001600081526020016000815260200160001515815260200160006001600160a01b031681525090565b828054828255906000526020600020908101928215615d53579160200282015b82811115615d5357825182546001600160a01b0319166001600160a01b03909116178255602090920191600190910190615d1e565b50615d5f929150615d78565b5090565b5b80821115615d5f5760008155600101615d64565b5b80821115615d5f5780546001600160a01b0319168155600101615d7956fe5265656e7472616e637947756172643a207265656e7472616e742063616c6c00476f7665726e61626c653a20666f7262696464656e0000000000000000000000416464726573733a20756e61626c6520746f2073656e642076616c75652c20726563697069656e74206d61792068617665207265766572746564416464726573733a20696e73756666696369656e742062616c616e636520666f722063616c6c536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f775361666545524332303a204552433230206f7065726174696f6e20646964206e6f742073756363656564a2646970667358221220da8f7e8864d91c91b30e4325ceca5063c4c91fa0f586c0969cfb19e3599117d364736f6c634300060c0033

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

0000000000000000000000003371195e36f45cbdc6cc0ef9e94d87ac8424621d00000000000000000000000005a1f74fe55f0dc69b4018324dfe8c6f158c86a50000000000000000000000004f9a0e7fd2bf6067db6994cf12e4495df938e6e9000000000000000000000000565cc3bce3817300c632a35fc820dac19bff7a5a000000000000000000000000000000000000000000000000000000000000001e00000000000000000000000000000000000000000000000000005af3107a4000

-----Decoded View---------------
Arg [0] : _vault (address): 0x3371195e36f45cBDc6cC0EF9e94d87AC8424621D
Arg [1] : _router (address): 0x05A1f74fE55f0dC69B4018324dfe8C6F158c86A5
Arg [2] : _weth (address): 0x4F9A0e7FD2Bf6067db6994CF12E4495Df938E6e9
Arg [3] : _shortsTracker (address): 0x565Cc3BcE3817300C632a35fc820DaC19bfF7a5A
Arg [4] : _depositFee (uint256): 30
Arg [5] : _minExecutionFee (uint256): 100000000000000

-----Encoded View---------------
6 Constructor Arguments found :
Arg [0] : 0000000000000000000000003371195e36f45cbdc6cc0ef9e94d87ac8424621d
Arg [1] : 00000000000000000000000005a1f74fe55f0dc69b4018324dfe8c6f158c86a5
Arg [2] : 0000000000000000000000004f9a0e7fd2bf6067db6994cf12e4495df938e6e9
Arg [3] : 000000000000000000000000565cc3bce3817300c632a35fc820dac19bff7a5a
Arg [4] : 000000000000000000000000000000000000000000000000000000000000001e
Arg [5] : 00000000000000000000000000000000000000000000000000005af3107a4000


Library Used


Deployed Bytecode Sourcemap

51353:27767:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;42089:4;;-1:-1:-1;;;;;42089:4:0;42075:10;:18;42067:45;;;;;-1:-1:-1;;;42067:45:0;;;;;;;;;;;;-1:-1:-1;;;42067:45:0;;;;;;;;;;;;;;;51353:27767;;;;;40453:30;;;;;;;;;;;;;:::i;:::-;;;;-1:-1:-1;;;;;40453:30:0;;;;;;;;;;;;;;52524:53;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;52524:53:0;;:::i;:::-;;;;;;;;;;;;;;;;68814:2053;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;68814:2053:0;;;;;;-1:-1:-1;;;;;68814:2053:0;;:::i;:::-;;;;;;;;;;;;;;;;;;40548:63;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;40548:63:0;-1:-1:-1;;;;;40548:63:0;;:::i;39795:52::-;;;;;;;;;;;;;:::i;88:18::-;;;;;;;;;;;;;:::i;52709:56::-;;;;;;;;;;;;;:::i;40492:47::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;40492:47:0;-1:-1:-1;;;;;40492:47:0;;:::i;53153:76::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;53153:76:0;;:::i;:::-;;;;-1:-1:-1;;;;;53153:76:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;67273:1533;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;67273:1533:0;;;;;;-1:-1:-1;;;;;67273:1533:0;;:::i;42618:238::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;42618:238:0;;:::i;44002:127::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;44002:127:0;;;;;;;;:::i;52774:31::-;;;;;;;;;;;;;:::i;65258:2007::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;65258:2007:0;;;;;;-1:-1:-1;;;;;65258:2007:0;;:::i;40003:47::-;;;;;;;;;;;;;:::i;58101:419::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;58101:419:0;;;;;;;:::i;56687:191::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;56687:191:0;;;;;;;;;;:::i;52880:49::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;52880:49:0;-1:-1:-1;;;;;52880:49:0;;:::i;52403:33::-;;;;;;;;;;;;;:::i;42252:202::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;42252:202:0;;:::i;52479:36::-;;;;;;;;;;;;;:::i;39975:19::-;;;;;;;;;;;;;:::i;57729:364::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;57729:364:0;;;;;;;;;;;;:::i;52584:53::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;52584:53:0;;:::i;42462:148::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;42462:148:0;;:::i;52362:34::-;;;;;;;;;;;;;:::i;62746:1053::-;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;62746:1053:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;62746:1053:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;62746:1053:0;;-1:-1:-1;;;62746:1053:0;;-1:-1:-1;;;;;62746:1053:0;;;;-1:-1:-1;62746:1053:0;;;;;;;;;;-1:-1:-1;62746:1053:0;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;72591:222::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;72591:222:0;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;70875:1312;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;70875:1312:0;;;;;;-1:-1:-1;;;;;70875:1312:0;;:::i;72195:158::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;72195:158:0;;;;;;;;:::i;52938:58::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;52938:58:0;-1:-1:-1;;;;;52938:58:0;;:::i;52323:30::-;;;;;;;;;;;;;:::i;39912:28::-;;;;;;;;;;;;;:::i;40366:25::-;;;;;;;;;;;;;:::i;42128:116::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;42128:116:0;-1:-1:-1;;;;;42128:116:0;;:::i;63807:1104::-;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;63807:1104:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;63807:1104:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;63807:1104:0;;-1:-1:-1;;;63807:1104:0;;-1:-1:-1;;;;;63807:1104:0;;;;-1:-1:-1;63807:1104:0;;;;;;;;;;-1:-1:-1;63807:1104:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;57534:187::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;57534:187:0;;;;:::i;57078:262::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;57078:262:0;;;;;;;;:::i;56886:184::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;56886:184:0;;:::i;72361:222::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;72361:222:0;;:::i;40618:64::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;40618:64:0;-1:-1:-1;;;;;40618:64:0;;:::i;40398:46::-;;;;;;;;;;;;;:::i;58528:1605::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;58528:1605:0;;;;;;-1:-1:-1;;;;;58528:1605:0;;:::i;52646:56::-;;;;;;;;;;;;;:::i;42864:178::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;42864:178:0;-1:-1:-1;;;;;42864:178:0;;:::i;52812:59::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;52812:59:0;-1:-1:-1;;;;;52812:59:0;;:::i;52443:27::-;;;;;;;;;;;;;:::i;288:76::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;288:76:0;-1:-1:-1;;;;;288:76:0;;:::i;43849:145::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;43849:145:0;;;;;;;;;;;;;;;;;:::i;43050:464::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;43050:464:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;43050:464:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;43050:464:0;;;;;;;;-1:-1:-1;43050:464:0;;-1:-1:-1;;;;;43050:464:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;43050:464:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;43050:464:0;;;;;;;;-1:-1:-1;43050:464:0;;-1:-1:-1;;;;;43050:464:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;43050:464:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;43050:464:0;;-1:-1:-1;43050:464:0;;-1:-1:-1;;;;;43050:464:0:i;43522:319::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;43522:319:0;;;;;;;;;;:::i;61624:1114::-;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;61624:1114:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;61624:1114:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;61624:1114:0;;-1:-1:-1;;;;;;;61624:1114:0;;;;;-1:-1:-1;61624:1114:0;;;;;;;;;;-1:-1:-1;61624:1114:0;;;;;-1:-1:-1;61624:1114:0;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;64919:331::-;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;60141:1475;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;60141:1475:0;;;;;;-1:-1:-1;;;;;60141:1475:0;;:::i;39856:20::-;;;;;;;;;;;;;:::i;39947:21::-;;;;;;;;;;;;;:::i;53088:58::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;53088:58:0;-1:-1:-1;;;;;53088:58:0;;:::i;53003:76::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;53003:76:0;;:::i;:::-;;;;-1:-1:-1;;;;;53003:76:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;39885:20;;;;;;;;;;;;;:::i;57348:178::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;57348:178:0;;:::i;40453:30::-;;;-1:-1:-1;;;;;40453:30:0;;:::o;52524:53::-;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;52524:53:0;:::o;68814:2053::-;68929:4;37551:1;38157:7;;:19;;38149:63;;;;;-1:-1:-1;;;38149:63:0;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;38149:63:0;;;;;;;;;;;;;;;37551:1;38290:7;:18;68946:38:::1;;:::i;:::-;68987:30;::::0;;;:24:::1;:30;::::0;;;;;;;;68946:71;;::::1;::::0;::::1;::::0;;;;-1:-1:-1;;;;;68946:71:0::1;::::0;;;;::::1;::::0;;;;;;::::1;::::0;;;;;;;;;;;;68987:30;;68946:71;;::::1;::::0;;;;::::1;::::0;;;::::1;;;;;;;;;;;;;;;;::::0;;-1:-1:-1;;;;;68946:71:0::1;::::0;;;;;::::1;::::0;::::1;;::::0;;::::1;;;;-1:-1:-1::0;;;68946:71:0;;;-1:-1:-1;;68946:71:0::1;::::0;::::1;::::0;-1:-1:-1;;;;;68946:71:0;;::::1;;::::0;::::1;::::0;::::1;::::0;::::1;::::0;;;;;::::1;::::0;::::1;::::0;;;;;::::1;::::0;::::1;::::0;::::1;::::0;;::::1;;;::::0;;;;::::1;::::0;;;::::1;::::0;::::1;::::0;;;;::::1;::::0;::::1;::::0;;;;;::::1;::::0;::::1;::::0;;;;;::::1;::::0;::::1;::::0;;;;;::::1;::::0;::::1;::::0;;;;;::::1;::::0;::::1;::::0;;;;;::::1;::::0;;::::1;::::0;;;::::1;;;::::0;;;;;;::::1;::::0;::::1;::::0;;;;;69189:15;;68946:71;;-1:-1:-1;69189:29:0::1;69185:51;;69229:4;69222:11;;;;;69185:51;69248:18;69269:75;69288:7;:19;;;69309:7;:17;;;69328:7;:15;;;69269:18;:75::i;:::-;69248:96;;69360:13;69355:37;;69384:5;69377:12;;;;;;69355:37;69411:30;::::0;;;:24:::1;:30;::::0;;;;69404:37;;-1:-1:-1;;;;;;69404:37:0::1;::::0;;69411:30;69404:37:::1;::::0;;::::1;69411:30:::0;69404:37:::1;:::i;:::-;-1:-1:-1::0;69404:37:0::1;::::0;::::1;::::0;;-1:-1:-1;;;;;;69404:37:0::1;::::0;;::::1;;::::0;::::1;::::0;;;::::1;::::0;::::1;::::0;;;::::1;::::0;::::1;::::0;;-1:-1:-1;;;;;;69404:37:0;;;;;;::::1;::::0;::::1;::::0;;;::::1;::::0;::::1;::::0;;;::::1;::::0;::::1;::::0;;;::::1;::::0;::::1;::::0;;;::::1;::::0;::::1;::::0;;;::::1;::::0;;::::1;::::0;;;;;;;;69492:15;;69509:12:::1;::::0;::::1;::::0;:15;;69474:171:::1;::::0;69492:15;69509:12;69404:37;;69509:15:::1;;;;;;;;;;69526:7;:18;;;69546:7;:23;;;69571:7;:17;;;69590:7;:14;;;69614:4;69621:7;:23;;;69474:17;:171::i;:::-;69454:191:::0;-1:-1:-1;69662:13:0;;69658:525:::1;;69718:1;69696:7;:12;;;:19;:23;69692:199;;;69777:5;::::0;69747:12:::1;::::0;::::1;::::0;:15;;69740:54:::1;::::0;-1:-1:-1;;;;;69777:5:0::1;::::0;69784:9;;69777:5:::1;::::0;69747:15:::1;;;;;;;;;;-1:-1:-1::0;;;;;69740:36:0::1;;;:54;;;;;:::i;:::-;69825:50;69831:7;:12;;;69845:7;:14;;;69869:4;69825:5;:50::i;:::-;69813:62;;69692:199;69911:7;:19;;;69907:265;;;69950:79;69992:9;70011:7;:16;;;69950:41;:79::i;:::-;69907:265;;;70069:87;70128:7;:16;;;70146:9;70076:7;:12;;;70111:1;70089:7;:12;;;:19;:23;70076:37;;;;;;;70069:87;70194:86;70236:7;:20;;;70258:21;70194:41;:86::i;:::-;70336:7;:15;;;-1:-1:-1::0;;;;;70298:461:0::1;;70366:7;:12;;;70393:7;:18;;;70426:7;:23;;;70464:7;:17;;;70496:7;:14;;;70525:7;:16;;;70556:7;:23;;;70594:7;:14;;;70623:7;:20;;;70658:37;70675:7;:19;;;70658:12;:16;;:37;;;;:::i;:::-;70730:17;::::0;::::1;::::0;70710:38:::1;::::0;:15:::1;::::0;:19:::1;:38::i;:::-;70298:461;;;;;;;-1:-1:-1::0;;;;;70298:461:0::1;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1::0;;;;;70298:461:0::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;;::::1;::::0;;;::::1;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;70772:63;70793:7;:22;;;70817:4;70823;70829:5;70772:20;:63::i;:::-;70855:4;70848:11;;;;;38321:1;37507::::0;38469:7;:22;68814:2053;;-1:-1:-1;;68814:2053:0:o;40548:63::-;;;;;;;;;;;;;:::o;39795:52::-;39842:5;39795:52;:::o;88:18::-;;;-1:-1:-1;;;;;88:18:0;;:::o;52709:56::-;;;;:::o;40492:47::-;;;;;;;;;;;;;:::o;53153:76::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;53153:76:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;67273:1533::-;67387:4;37551:1;38157:7;;:19;;38149:63;;;;;-1:-1:-1;;;38149:63:0;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;38149:63:0;;;;;;;;;;;;;;;37551:1;38290:7;:18;67404:38:::1;;:::i;:::-;67445:30;::::0;;;:24:::1;:30;::::0;;;;;;;;67404:71;;::::1;::::0;::::1;::::0;;;;-1:-1:-1;;;;;67404:71:0::1;::::0;;;;::::1;::::0;;;;;;::::1;::::0;;;;;;;;;;;;67445:30;;67404:71;;::::1;::::0;;;;::::1;::::0;;;::::1;;;;;;;;;;;;;;;;::::0;;-1:-1:-1;;;;;67404:71:0::1;::::0;;;;;::::1;::::0;::::1;;::::0;;::::1;;;;-1:-1:-1::0;;;67404:71:0;;;-1:-1:-1;;67404:71:0::1;::::0;::::1;::::0;-1:-1:-1;;;;;67404:71:0;;::::1;;::::0;::::1;::::0;::::1;::::0;::::1;::::0;;;;;::::1;::::0;::::1;::::0;;;;;::::1;::::0;::::1;::::0;;;;;::::1;::::0;::::1;::::0;::::1;::::0;;::::1;;;::::0;;;;::::1;::::0;::::1;::::0;;;;;::::1;::::0;::::1;::::0;;;;;::::1;::::0;::::1;::::0;::::1;::::0;;;;;;;::::1;::::0;::::1;::::0;;;;;::::1;::::0;;::::1;::::0;;;::::1;;;::::0;;;;;;;::::1;::::0;::::1;::::0;;;;;67647:15;;67404:71;;-1:-1:-1;67647:29:0::1;67643:51;;67687:4;67680:11;;;;;67643:51;67706:17;67726:78;67748:7;:19;;;67769:7;:17;;;67788:7;:15;;;67726:21;:78::i;:::-;67706:98;;67820:12;67815:36;;67843:5;67836:12;;;;;;67815:36;67870:30;::::0;;;:24:::1;:30;::::0;;;;67863:37;;-1:-1:-1;;;;;;67863:37:0::1;::::0;;67870:30;67863:37:::1;::::0;;::::1;67870:30:::0;67863:37:::1;:::i;:::-;-1:-1:-1::0;67863:37:0::1;::::0;::::1;::::0;;-1:-1:-1;;;;;;67863:37:0::1;::::0;;::::1;;::::0;::::1;::::0;;;::::1;::::0;::::1;::::0;;;::::1;::::0;::::1;::::0;;;::::1;::::0;::::1;::::0;;-1:-1:-1;;67863:37:0::1;::::0;;::::1;::::0;::::1;::::0;;;::::1;::::0;::::1;::::0;;;::::1;::::0;::::1;::::0;;;::::1;::::0;::::1;::::0;::::1;;::::0;;-1:-1:-1;;;;;;67863:37:0;;;67917:26:::1;::::0;::::1;::::0;67913:248:::1;;;67960:85;68002:7;:16;;;68028:7;:15;;;67960:41;:85::i;:::-;67913:248;;;68078:71;68115:7;:15;;;68132:7;:16;;;68085:7;:12;;;68098:1;68085:15;;;;;;;68078:71;68172:86;68214:7;:20;;;68236:21;68172:41;:86::i;:::-;68313:7;:15;;;-1:-1:-1::0;;;;;68276:422:0::1;;68343:7;:12;;;68370:7;:18;;;68403:7;:16;;;68434:7;:14;;;68463:7;:17;;;68495:7;:14;;;68524:7;:23;;;68562:7;:20;;;68597:37;68614:7;:19;;;68597:12;:16;;:37;;;;:::i;:::-;68669:17;::::0;::::1;::::0;68649:38:::1;::::0;:15:::1;::::0;:19:::1;:38::i;:::-;68276:422;;;;;;;-1:-1:-1::0;;;;;68276:422:0::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;;::::1;::::0;;;::::1;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;68711:63;68732:7;:22;;;68756:4;68762:5;68769:4;68711:20;:63::i;:::-;68794:4;68787:11;;;;37507:1:::0;38469:7;:22;67273:1533;;-1:-1:-1;;67273:1533:0:o;42618:238::-;41620:5;;-1:-1:-1;;;;;41620:5:0;41606:10;:19;41598:41;;;;;-1:-1:-1;;;41598:41:0;;;;;;;;;;;;-1:-1:-1;;;41598:41:0;;;;;;;;;;;;;;;42722:25:::1;:54:::0;;;42792:56:::1;::::0;;;;;;;::::1;::::0;;;;::::1;::::0;;::::1;42618:238:::0;:::o;44002:127::-;231:3;;-1:-1:-1;;;;;231:3:0;217:10;:17;209:51;;;;;-1:-1:-1;;;209:51:0;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;209:51:0;;;;;;;;;;;;;;;44093:28:::1;-1:-1:-1::0;;;;;44093:19:0;::::1;44113:7:::0;44093:19:::1;:28::i;:::-;44002:127:::0;;:::o;52774:31::-;;;;:::o;65258:2007::-;65373:4;37551:1;38157:7;;:19;;38149:63;;;;;-1:-1:-1;;;38149:63:0;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;38149:63:0;;;;;;;;;;;;;;;37551:1;38290:7;:18;65390:38:::1;;:::i;:::-;65431:30;::::0;;;:24:::1;:30;::::0;;;;;;;;65390:71;;::::1;::::0;::::1;::::0;;;;-1:-1:-1;;;;;65390:71:0::1;::::0;;;;::::1;::::0;;;;;;::::1;::::0;;;;;;;;;;;;65431:30;;65390:71;;::::1;::::0;;;;::::1;::::0;;;::::1;;;;;;;;;;;;;;;;::::0;;-1:-1:-1;;;;;65390:71:0::1;::::0;;;;;::::1;::::0;::::1;;::::0;;::::1;;;;-1:-1:-1::0;;;65390:71:0;;;-1:-1:-1;;65390:71:0::1;::::0;::::1;::::0;-1:-1:-1;;;;;65390:71:0;;::::1;;::::0;::::1;::::0;::::1;::::0;::::1;::::0;;;;;::::1;::::0;::::1;::::0;;;;;::::1;::::0;::::1;::::0;;;;;::::1;::::0;::::1;::::0;::::1;::::0;;::::1;;;::::0;;;;::::1;::::0;::::1;::::0;;;;;::::1;::::0;::::1;::::0;;;;;::::1;::::0;::::1;::::0;::::1;::::0;;;;;;;::::1;::::0;::::1;::::0;;;;;::::1;::::0;;::::1;::::0;;;::::1;;;::::0;;;;;;;::::1;::::0;::::1;::::0;;;;;65633:15;;65390:71;;-1:-1:-1;65633:29:0::1;65629:51;;65673:4;65666:11;;;;;65629:51;65692:18;65713:75;65732:7;:19;;;65753:7;:17;;;65772:7;:15;;;65713:18;:75::i;:::-;65692:96;;65804:13;65799:37;;65828:5;65821:12;;;;;;65799:37;65855:30;::::0;;;:24:::1;:30;::::0;;;;65848:37;;-1:-1:-1;;;;;;65848:37:0::1;::::0;;65855:30;65848:37:::1;::::0;;::::1;65855:30:::0;65848:37:::1;:::i;:::-;-1:-1:-1::0;65848:37:0::1;::::0;::::1;::::0;;-1:-1:-1;;;;;;65848:37:0::1;::::0;;::::1;;::::0;::::1;::::0;;;::::1;::::0;::::1;::::0;;;::::1;::::0;::::1;::::0;;;::::1;::::0;::::1;::::0;;-1:-1:-1;;65848:37:0::1;::::0;;::::1;::::0;::::1;::::0;;;::::1;::::0;::::1;::::0;;;::::1;::::0;::::1;::::0;;;::::1;::::0;::::1;::::0;::::1;;::::0;;-1:-1:-1;;;;;;65848:37:0;;;65902:16:::1;::::0;::::1;::::0;:20;65898:555:::1;;65958:16;::::0;::::1;::::0;65995:12:::1;::::0;::::1;::::0;:19;66017:1:::1;-1:-1:-1::0;65991:205:0::1;;;66076:5;::::0;66083:16:::1;::::0;::::1;::::0;66046:12:::1;::::0;::::1;::::0;:15;;66039:61:::1;::::0;-1:-1:-1;;;;;66076:5:0::1;::::0;66083:16;66046:12;66076:5:::1;::::0;66046:15:::1;;;66039:61;66130:50;66136:7;:12;;;66150:7;:14;;;66174:4;66130:5;:50::i;:::-;66119:61;;65991:205;66212:22;66237:108;66250:7;:15;;;66267:7;:12;;;66281:8;66291:7;:18;;;66311:7;:14;;;66327:7;:17;;;66237:12;:108::i;:::-;66419:5;::::0;66367:12:::1;::::0;::::1;::::0;66380:19;;66212:133;;-1:-1:-1;66360:81:0::1;::::0;-1:-1:-1;;;;;66419:5:0;;::::1;::::0;66212:133;;66367:12;-1:-1:-1;;66380:23:0;;;66367:37;::::1;;;;66360:81;65898:555;;;66483:15:::0;;66500:12:::1;::::0;::::1;::::0;66513:19;;66465:153:::1;::::0;66483:15;66500:12;-1:-1:-1;;66513:23:0;;;66500:37;::::1;;;;;;;;;;;66539:7;:18;;;66559:7;:17;;;66578:7;:14;;;66594:7;:23;;;66465:17;:153::i;:::-;66631:86;66673:7;:20;;;66695:21;66631:41;:86::i;:::-;66773:7;:15;;;-1:-1:-1::0;;;;;66735:423:0::1;;66803:7;:12;;;66830:7;:18;;;66863:7;:16;;;66894:7;:14;;;66923:7;:17;;;66955:7;:14;;;66984:7;:23;;;67022:7;:20;;;67057:37;67074:7;:19;;;67057:12;:16;;:37;;;;:::i;:::-;67129:17;::::0;::::1;::::0;67109:38:::1;::::0;:15:::1;::::0;:19:::1;:38::i;:::-;66735:423;;;;;;;-1:-1:-1::0;;;;;66735:423:0::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;;::::1;::::0;;;::::1;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;67171:62;67192:7;:22;;;67216:4;67222;67228::::0;67171:20:::1;:62::i;40003:47::-:0;;;;:::o;58101:419::-;41620:5;;-1:-1:-1;;;;;41620:5:0;41606:10;:19;41598:41;;;;;-1:-1:-1;;;41598:41:0;;;;;;;;;;;;-1:-1:-1;;;41598:41:0;;;;;;;;;;;;;;;58252:32:::1;:68:::0;;;58331:32:::1;:68:::0;;;58417:95:::1;::::0;;;;;::::1;::::0;::::1;::::0;;;;;::::1;::::0;;;;;;;;;::::1;58101:419:::0;;:::o;56687:191::-;41620:5;;-1:-1:-1;;;;;41620:5:0;41606:10;:19;41598:41;;;;;-1:-1:-1;;;41598:41:0;;;;;;;;;;;;-1:-1:-1;;;41598:41:0;;;;;;;;;;;;;;;-1:-1:-1;;;;;56778:26:0;::::1;;::::0;;;:16:::1;:26;::::0;;;;;;;;:38;;-1:-1:-1;;56778:38:0::1;::::0;::::1;;::::0;;::::1;::::0;;;56832;;;;;;;::::1;::::0;;;;;;;;::::1;56687:191:::0;;:::o;52880:49::-;;;;;;;;;;;;;;;:::o;52403:33::-;;;;:::o;42252:202::-;41620:5;;-1:-1:-1;;;;;41620:5:0;41606:10;:19;41598:41;;;;;-1:-1:-1;;;41598:41:0;;;;;;;;;;;;-1:-1:-1;;;41598:41:0;;;;;;;;;;;;;;;42344:19:::1;:42:::0;;;42402:44:::1;::::0;;;;;;;::::1;::::0;;;;::::1;::::0;;::::1;42252:202:::0;:::o;52479:36::-;;;;;;:::o;39975:19::-;;;-1:-1:-1;;;;;39975:19:0;;:::o;57729:364::-;41620:5;;-1:-1:-1;;;;;41620:5:0;41606:10;:19;41598:41;;;;;-1:-1:-1;;;41598:41:0;;;;;;;;;;;;-1:-1:-1;;;41598:41:0;;;;;;;;;;;;;;;57865:19:::1;:42:::0;;;57918:18:::1;:40:::0;;;57969:12:::1;:28:::0;;;58013:72:::1;::::0;;;;;::::1;::::0;::::1;::::0;;;;;;;;;;;::::1;::::0;;;;;;;::::1;57729:364:::0;;;:::o;52584:53::-;;;;;;;;;;42462:148;41620:5;;-1:-1:-1;;;;;41620:5:0;41606:10;:19;41598:41;;;;;-1:-1:-1;;;41598:41:0;;;;;;;;;;;;-1:-1:-1;;;41598:41:0;;;;;;;;;;;;;;;42536:10:::1;:24:::0;;;42576:26:::1;::::0;;;;;;;::::1;::::0;;;;::::1;::::0;;::::1;42462:148:::0;:::o;52362:34::-;;;;:::o;62746:1053::-;63101:7;37551:1;38157:7;;:19;;38149:63;;;;;-1:-1:-1;;;38149:63:0;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;38149:63:0;;;;;;;;;;;;;;;37551:1;38290:7;:18;63146:15:::1;::::0;63129:32;::::1;;63121:48;;;::::0;;-1:-1:-1;;;63121:48:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;-1:-1:-1;;;63121:48:0;;;;;;;;;;;;;::::1;;63201:13;63188:9;:26;;63180:42;;;::::0;;-1:-1:-1;;;63180:42:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;-1:-1:-1;;;63180:42:0;;;;;;;;;;;;;::::1;;63241:5;:12;63257:1;63241:17;:38;;;;63262:5;:12;63278:1;63262:17;63241:38;63233:54;;;::::0;;-1:-1:-1;;;63233:54:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;-1:-1:-1;;;63233:54:0;;;;;;;;;;;;;::::1;;63318:4;::::0;63306:8;;-1:-1:-1;;;;;63318:4:0;;::::1;::::0;63306:5;;63318:4:::1;::::0;63306:8:::1;;;;;;;;;;-1:-1:-1::0;;;;;63306:16:0::1;;63298:33;;;::::0;;-1:-1:-1;;;63298:33:0;;::::1;;::::0;;::::1;::::0;;;;;;;;-1:-1:-1;;;63298:33:0;;;;;;;;;;;;;::::1;;63342:16;:14;:16::i;:::-;63369:37;63392:13;63369:22;:37::i;:::-;63419:16;63438:28;:9;63452:13:::0;63438::::1;:28::i;:::-;63419:47;;63486:305;63524:10;63549:5;63569:11;63595:8;63618:7;63640:10;63665:7;63687:16;63718:13;63746:4;63765:15;63486:23;:305::i;:::-;37507:1:::0;38469:7;:22;63479:312;62746:1053;-1:-1:-1;;;;;;;;;;;62746:1053:0:o;72591:222::-;72675:16;72704:38;;:::i;:::-;72745:30;;;;:24;:30;;;;;;;;;72704:71;;;;;;;;;-1:-1:-1;;;;;72704:71:0;;;;;;;;;;;;;;;;;;;;;;;;;72745:30;;72704:71;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;72704:71:0;;;;;;;;;;;;;;;;-1:-1:-1;;;72704:71:0;;;-1:-1:-1;;72704:71:0;;;;-1:-1:-1;;;;;72704:71:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;72793:12;;;72591:222;-1:-1:-1;;;72591:222:0:o;70875:1312::-;70989:4;37551:1;38157:7;;:19;;38149:63;;;;;-1:-1:-1;;;38149:63:0;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;38149:63:0;;;;;;;;;;;;;;;37551:1;38290:7;:18;71006:38:::1;;:::i;:::-;71047:30;::::0;;;:24:::1;:30;::::0;;;;;;;;71006:71;;::::1;::::0;::::1;::::0;;;;-1:-1:-1;;;;;71006:71:0::1;::::0;;;;::::1;::::0;;;;;;::::1;::::0;;;;;;;;;;;;71047:30;;71006:71;;::::1;::::0;;;;::::1;::::0;;;::::1;;;;;;;;;;;;;;;;::::0;;-1:-1:-1;;;;;71006:71:0::1;::::0;;;;;::::1;::::0;::::1;;::::0;;::::1;;;;-1:-1:-1::0;;;71006:71:0;;;-1:-1:-1;;71006:71:0::1;::::0;::::1;::::0;-1:-1:-1;;;;;71006:71:0;;::::1;;::::0;::::1;::::0;::::1;::::0;::::1;::::0;;;;;::::1;::::0;::::1;::::0;;;;;::::1;::::0;::::1;::::0;::::1;::::0;;::::1;;;::::0;;;;::::1;::::0;;;::::1;::::0;::::1;::::0;;;;::::1;::::0;::::1;::::0;;;;;::::1;::::0;::::1;::::0;;;;;::::1;::::0;::::1;::::0;;;;;::::1;::::0;::::1;::::0;;;;;::::1;::::0;::::1;::::0;;;;;::::1;::::0;;::::1;::::0;;;::::1;;;::::0;;;;;;::::1;::::0;::::1;::::0;;;;;71249:15;;71006:71;;-1:-1:-1;71249:29:0::1;71245:51;;71289:4;71282:11;;;;;71245:51;71308:17;71328:78;71350:7;:19;;;71371:7;:17;;;71390:7;:15;;;71328:21;:78::i;:::-;71308:98;;71422:12;71417:36;;71445:5;71438:12;;;;;;71417:36;71472:30;::::0;;;:24:::1;:30;::::0;;;;71465:37;;-1:-1:-1;;;;;;71465:37:0::1;::::0;;71472:30;71465:37:::1;::::0;;::::1;71472:30:::0;71465:37:::1;:::i;:::-;-1:-1:-1::0;71465:37:0::1;::::0;::::1;::::0;;-1:-1:-1;;;;;;71465:37:0::1;::::0;;::::1;;::::0;::::1;::::0;;;::::1;::::0;::::1;::::0;;;::::1;::::0;::::1;::::0;;-1:-1:-1;;;;;;71465:37:0;;;;;;::::1;::::0;::::1;::::0;;;::::1;::::0;::::1;::::0;;;::::1;::::0;::::1;::::0;;;::::1;::::0;::::1;::::0;;;::::1;::::0;::::1;::::0;;;;::::1;::::0;;::::1;::::0;;;;;;;71556:20:::1;::::0;::::1;::::0;71514:86:::1;::::0;71578:21;71514:41:::1;:86::i;:::-;71655:7;:15;;;-1:-1:-1::0;;;;;71618:460:0::1;;71685:7;:12;;;71712:7;:18;;;71745:7;:23;;;71783:7;:17;;;71815:7;:14;;;71844:7;:16;;;71875:7;:23;;;71913:7;:14;;;71942:7;:20;;;71977:37;71994:7;:19;;;71977:12;:16;;:37;;;;:::i;:::-;72049:17;::::0;::::1;::::0;72029:38:::1;::::0;:15:::1;::::0;:19:::1;:38::i;:::-;71618:460;;;;;;;-1:-1:-1::0;;;;;71618:460:0::1;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1::0;;;;;71618:460:0::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;;::::1;::::0;;;::::1;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;72091:64;72112:7;:22;;;72136:4;72142:5;72149::::0;72091:20:::1;:64::i;72195:158::-:0;72273:7;72327:8;72337:6;72310:34;;;;;;-1:-1:-1;;;;;72310:34:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;72300:45;;;;;;72293:52;;72195:158;;;;;:::o;52938:58::-;;;;;;;;;;;;;:::o;52323:30::-;;;;:::o;39912:28::-;;;-1:-1:-1;;;;;39912:28:0;;:::o;40366:25::-;;;;:::o;42128:116::-;231:3;;-1:-1:-1;;;;;231:3:0;217:10;:17;209:51;;;;;-1:-1:-1;;;209:51:0;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;209:51:0;;;;;;;;;;;;;;;42190:5:::1;:14:::0;;-1:-1:-1;;;;;42190:14:0;::::1;-1:-1:-1::0;;;;;;42190:14:0;;::::1;::::0;::::1;::::0;;;42220:16:::1;::::0;;;;;;::::1;::::0;;;;::::1;::::0;;::::1;42128:116:::0;:::o;63807:1104::-;64218:7;37551:1;38157:7;;:19;;38149:63;;;;;-1:-1:-1;;;38149:63:0;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;38149:63:0;;;;;;;;;;;;;;;37551:1;38290:7;:18;64263:15:::1;::::0;64246:32;::::1;;64238:48;;;::::0;;-1:-1:-1;;;64238:48:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;-1:-1:-1;;;64238:48:0;;;;;;;;;;;;;::::1;;64318:13;64305:9;:26;64297:42;;;::::0;;-1:-1:-1;;;64297:42:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;-1:-1:-1;;;64297:42:0;;;;;;;;;;;;;::::1;;64358:5;:12;64374:1;64358:17;:38;;;;64379:5;:12;64395:1;64379:17;64358:38;64350:54;;;::::0;;-1:-1:-1;;;64350:54:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;-1:-1:-1;;;64350:54:0;;;;;;;;;;;;;::::1;;64421:12;64417:93;;;64485:4;::::0;64464:12;;-1:-1:-1;;;;;64485:4:0;;::::1;::::0;64458:5;;-1:-1:-1;;64464:16:0;;;64458:23;::::1;;;;;;;;;;;-1:-1:-1::0;;;;;64458:31:0::1;;64450:48;;;::::0;;-1:-1:-1;;;64450:48:0;;::::1;;::::0;;::::1;::::0;;;;;;;;-1:-1:-1;;;64450:48:0;;;;;;;;;;;;;::::1;;64522:16;:14;:16::i;:::-;64558:345;64596:10;64621:5;64641:11;64667:16;64698:10;64723:7;64745:9;64769:16;64800:7;64822:13;64850:12;64877:15;64558:23;:345::i;:::-;37507:1:::0;38469:7;:22;64551:352;63807:1104;-1:-1:-1;;;;;;;;;;;;63807:1104:0:o;57534:187::-;41620:5;;-1:-1:-1;;;;;41620:5:0;41606:10;:19;41598:41;;;;;-1:-1:-1;;;41598:41:0;;;;;;;;;;;;-1:-1:-1;;;41598:41:0;;;;;;;;;;;;;;;57619:17:::1;:38:::0;;;::::1;;-1:-1:-1::0;;57619:38:0;;::::1;::::0;::::1;::::0;;;57673:40:::1;::::0;;;;;;::::1;::::0;;;;::::1;::::0;;::::1;57534:187:::0;:::o;57078:262::-;41620:5;;-1:-1:-1;;;;;41620:5:0;41606:10;:19;41598:41;;;;;-1:-1:-1;;;41598:41:0;;;;;;;;;;;;-1:-1:-1;;;41598:41:0;;;;;;;;;;;;;;;-1:-1:-1;;;;;57195:40:0;::::1;;::::0;;;:23:::1;:40;::::0;;;;;;;;:60;;;57271:61;;;;;;::::1;::::0;;;;;::::1;::::0;;;;;;;;::::1;57078:262:::0;;:::o;56886:184::-;41620:5;;-1:-1:-1;;;;;41620:5:0;41606:10;:19;41598:41;;;;;-1:-1:-1;;;41598:41:0;;;;;;;;;;;;-1:-1:-1;;;41598:41:0;;;;;;;;;;;;;;;56972:16:::1;:36:::0;;;57024:38:::1;::::0;;;;;;;::::1;::::0;;;;::::1;::::0;;::::1;56886:184:::0;:::o;72361:222::-;72445:16;72474:38;;:::i;:::-;72515:30;;;;:24;:30;;;;;;;;;72474:71;;;;;;;;;-1:-1:-1;;;;;72474:71:0;;;;;;;;;;;;;;;;;;;;;;;;;72515:30;;72474:71;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;72474:71:0;;;;;;;;;;;;;;;;-1:-1:-1;;;72474:71:0;;;-1:-1:-1;;72474:71:0;;;;-1:-1:-1;;;;;72474:71:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;72563:12;;;72361:222;-1:-1:-1;;;72361:222:0:o;40618:64::-;;;;;;;;;;;;;:::o;40398:46::-;;;;:::o;58528:1605::-;56307:10;56290:28;;;;:16;:28;;;;;;;;56282:44;;;;;-1:-1:-1;;;56282:44:0;;;;;;;;;;;;-1:-1:-1;;;56282:44:0;;;;;;;;;;;;;;;58684:32:::1;::::0;58744:27:::1;:34:::0;58795:15;;::::1;58791:32;;58814:7;;;;58791:32;58851:6;58839:9;:18;58835:69;;;58886:6;58874:18;;58835:69;58931:9;58923:5;:17;58916:1157;;;58957:11;58971:27;58999:5;58971:34;;;;;;;;;;;;;;;;58957:48;;59523:4;-1:-1:-1::0;;;;;59523:28:0::1;;59552:3;59557:21;59523:56;;;;;;;;;;;;;;;;;;-1:-1:-1::0;;;;;59523:56:0::1;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;;-1:-1:-1::0;59523:56:0;::::1;;59519:463;;59801:55;::::0;;-1:-1:-1;;;59801:55:0;;::::1;::::0;::::1;::::0;;;-1:-1:-1;;;;;59801:55:0;::::1;::::0;;;;;;:4:::1;::::0;:27:::1;::::0;:55;;;;;::::1;::::0;;;;;;;;-1:-1:-1;59801:4:0;:55;::::1;;::::0;::::1;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;;-1:-1:-1::0;59801:55:0;::::1;;59797:170;;;;;59914:13;59909:30;;59931:5;;;;59909:30;59857:101;59797:170;59519:463;;;59632:12;59627:29;;59648:5;;;;59627:29;59580:91;59519:463;60005:27;60033:5;60005:34;;;;;;;;;::::0;;;::::1;::::0;;::::1;59998:41:::0;-1:-1:-1;60054:7:0::1;::::0;;::::1;::::0;58916:1157:::1;;;-1:-1:-1::0;60085:32:0::1;:40:::0;58528:1605;;:::o;52646:56::-;;;;:::o;42864:178::-;41620:5;;-1:-1:-1;;;;;41620:5:0;41606:10;:19;41598:41;;;;;-1:-1:-1;;;41598:41:0;;;;;;;;;;;;-1:-1:-1;;;41598:41:0;;;;;;;;;;;;;;;42948:15:::1;:34:::0;;-1:-1:-1;;;;;42948:34:0;::::1;-1:-1:-1::0;;;;;;42948:34:0;;::::1;::::0;::::1;::::0;;;42998:36:::1;::::0;;;;;;::::1;::::0;;;;::::1;::::0;;::::1;42864:178:::0;:::o;52812:59::-;;;;;;;;;;;;;:::o;52443:27::-;;;;:::o;288:76::-;231:3;;-1:-1:-1;;;;;231:3:0;217:10;:17;209:51;;;;;-1:-1:-1;;;209:51:0;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;209:51:0;;;;;;;;;;;;;;;346:3:::1;:10:::0;;-1:-1:-1;;;;;;346:10:0::1;-1:-1:-1::0;;;;;346:10:0;;;::::1;::::0;;;::::1;::::0;;288:76::o;43849:145::-;231:3;;-1:-1:-1;;;;;231:3:0;217:10;:17;209:51;;;;;-1:-1:-1;;;209:51:0;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;209:51:0;;;;;;;;;;;;;;;43952:6:::1;-1:-1:-1::0;;;;;43945:22:0::1;;43968:8;43978:7;43945:41;;;;;;;;;;;;;-1:-1:-1::0;;;;;43945:41:0::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;::::0;::::1;;-1:-1:-1::0;;;;;43849:145:0:o;43050:464::-;41620:5;;-1:-1:-1;;;;;41620:5:0;41606:10;:19;41598:41;;;;;-1:-1:-1;;;41598:41:0;;;;;;;;;;;;-1:-1:-1;;;41598:41:0;;;;;;;;;;;;;;;43231:9:::1;43226:212;43250:7;:14;43246:1;:18;43226:212;;;43286:13;43302:7;43310:1;43302:10;;;;;;;;;;;;;;43286:26;;43355:10;43366:1;43355:13;;;;;;;;;;;;;;43327:18;:25;43346:5;-1:-1:-1::0;;;;;43327:25:0::1;-1:-1:-1::0;;;;;43327:25:0::1;;;;;;;;;;;;:41;;;;43412:11;43424:1;43412:14;;;;;;;;;::::0;;::::1;::::0;;;;;;;-1:-1:-1;;;;;43383:26:0;;::::1;;::::0;;;:19:::1;:26:::0;;;;;;:43;43266:3:::1;;43226:212;;;;43455:51;43473:7;43482:10;43494:11;43455:51;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;;::::1;::::0;;;::::1;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;;::::1;::::0;;;::::1;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;;::::1;::::0;;;::::1;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;43050:464:::0;;;:::o;43522:319::-;41620:5;;-1:-1:-1;;;;;41620:5:0;41606:10;:19;41598:41;;;;;-1:-1:-1;;;41598:41:0;;;;;;;;;;;;-1:-1:-1;;;41598:41:0;;;;;;;;;;;;;;;-1:-1:-1;;;;;43626:19:0;::::1;43609:14;43626:19:::0;;;:11:::1;:19;::::0;;;;;43660:11;43656:28:::1;;43675:7;;;43656:28;-1:-1:-1::0;;;;;43696:19:0;::::1;43718:1;43696:19:::0;;;:11:::1;:19;::::0;;;;:23;43730:46:::1;::::0;43758:9;43769:6;43730:27:::1;:46::i;:::-;43794:39;::::0;;-1:-1:-1;;;;;43794:39:0;;::::1;::::0;;;::::1;;::::0;::::1;::::0;;;;;;;;;::::1;::::0;;;;;;;::::1;41650:1;43522:319:::0;;:::o;61624:1114::-;62004:7;37551:1;38157:7;;:19;;38149:63;;;;;-1:-1:-1;;;38149:63:0;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;38149:63:0;;;;;;;;;;;;;;;37551:1;38290:7;:18;62049:15:::1;::::0;62032:32;::::1;;62024:48;;;::::0;;-1:-1:-1;;;62024:48:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;-1:-1:-1;;;62024:48:0;;;;;;;;;;;;;::::1;;62104:13;62091:9;:26;62083:42;;;::::0;;-1:-1:-1;;;62083:42:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;-1:-1:-1;;;62083:42:0;;;;;;;;;;;;;::::1;;62144:5;:12;62160:1;62144:17;:38;;;;62165:5;:12;62181:1;62165:17;62144:38;62136:54;;;::::0;;-1:-1:-1;;;62136:54:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;-1:-1:-1;;;62136:54:0;;;;;;;;;;;;;::::1;;62203:16;:14;:16::i;:::-;62230:37;62253:13;62230:22;:37::i;:::-;62284:13:::0;;62280:124:::1;;62322:6;::::0;62345:8;;-1:-1:-1;;;;;62322:6:0;;::::1;::::0;62314:30:::1;::::0;62345:5;;62322:6:::1;::::0;62345:8:::1;;;;;;;;;;62355:10;62375:4;62382:9;62314:78;;;;;;;;;;;;;-1:-1:-1::0;;;;;62314:78:0::1;;;;;;-1:-1:-1::0;;;;;62314:78:0::1;;;;;;-1:-1:-1::0;;;;;62314:78:0::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;62280:124;62423:307;62461:10;62486:5;62506:11;62532:9;62556:7;62578:10;62603:7;62625:16;62656:13;62684:5;62704:15;62423:23;:307::i;64919:331::-:0;65054:32;;65101:27;:34;65150:32;;65197:27;:34;64919:331;;;;:::o;60141:1475::-;56307:10;56290:28;;;;:16;:28;;;;;;;;56282:44;;;;;-1:-1:-1;;;56282:44:0;;;;;;;;;;;;-1:-1:-1;;;56282:44:0;;;;;;;;;;;;;;;60297:32:::1;::::0;60357:27:::1;:34:::0;60408:15;;::::1;60404:32;;60427:7;;;;60404:32;60464:6;60452:9;:18;60448:69;;;60499:6;60487:18;;60448:69;60544:9;60536:5;:17;60529:1027;;;60570:11;60584:27;60612:5;60584:34;;;;;;;;;;;;;;;;60570:48;;61006:4;-1:-1:-1::0;;;;;61006:28:0::1;;61035:3;61040:21;61006:56;;;;;;;;;;;;;;;;;;-1:-1:-1::0;;;;;61006:56:0::1;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;;-1:-1:-1::0;61006:56:0;::::1;;61002:463;;61284:55;::::0;;-1:-1:-1;;;61284:55:0;;::::1;::::0;::::1;::::0;;;-1:-1:-1;;;;;61284:55:0;::::1;::::0;;;;;;:4:::1;::::0;:27:::1;::::0;:55;;;;;::::1;::::0;;;;;;;;-1:-1:-1;61284:4:0;:55;::::1;;::::0;::::1;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;;-1:-1:-1::0;61284:55:0;::::1;;61280:170;;;;;61397:13;61392:30;;61414:5;;;;61392:30;61340:101;61280:170;61002:463;;;61115:12;61110:29;;61131:5;;;;61110:29;61063:91;61002:463;61488:27;61516:5;61488:34;;;;;;;;;::::0;;;::::1;::::0;;::::1;61481:41:::0;-1:-1:-1;61537:7:0::1;::::0;;::::1;::::0;60529:1027:::1;;;-1:-1:-1::0;61568:32:0::1;:40:::0;60141:1475;;:::o;39856:20::-;;;-1:-1:-1;;;;;39856:20:0;;:::o;39947:21::-;;;-1:-1:-1;;;;;39947:21:0;;:::o;53088:58::-;;;;;;;;;;;;;:::o;53003:76::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;53003:76:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;39885:20::-;;;-1:-1:-1;;;;;39885:20:0;;:::o;57348:178::-;41620:5;;-1:-1:-1;;;;;41620:5:0;41606:10;:19;41598:41;;;;;-1:-1:-1;;;41598:41:0;;;;;;;;;;;;-1:-1:-1;;;41598:41:0;;;;;;;;;;;;;;;57432:15:::1;:34:::0;;;57482:36:::1;::::0;;;;;;;::::1;::::0;;;;::::1;::::0;;::::1;57348:178:::0;:::o;73086:360::-;73213:4;73274:15;73234:36;73257:12;;73234:18;:22;;:36;;;;:::i;:::-;:55;73230:105;;73306:17;;;-1:-1:-1;;;73306:17:0;;;;;;;;;;;;-1:-1:-1;;;73306:17:0;;;;;;;;;;;;;;73230:105;73354:84;73387:20;73409:18;73429:8;73354:32;:84::i;:::-;73347:91;;73086:360;;;;;;:::o;45466:1229::-;45708:5;;45671:7;;-1:-1:-1;;;;;45708:5:0;45671:7;45746;:91;;45805:6;-1:-1:-1;;;;;45798:26:0;;45825:11;45798:39;;;;;;;;;;;;;-1:-1:-1;;;;;45798:39:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;45798:39:0;45746:91;;;45763:6;-1:-1:-1;;;;;45756:26:0;;45783:11;45756:39;;;;;;;;;;;;;-1:-1:-1;;;;;45756:39:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;45756:39:0;45746:91;45726:111;;45852:7;45848:171;;;45897:6;45884:9;:19;;45876:49;;;;;-1:-1:-1;;;45876:49:0;;;;;;;;;;;;-1:-1:-1;;;45876:49:0;;;;;;;;;;;;;;;45848:171;;;45979:6;45966:9;:19;;45958:49;;;;;-1:-1:-1;;;45958:49:0;;;;;;;;;;;;-1:-1:-1;;;45958:49:0;;;;;;;;;;;;;;;46031:16;46057:6;-1:-1:-1;;;;;46050:18:0;;:20;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;46031:39;;46172:13;;;;;;;;;-1:-1:-1;;;;;46172:13:0;-1:-1:-1;;;;;46157:51:0;;46209:8;46219:16;46237:11;46250:7;46259:10;46271:9;46282:5;46157:131;;;;;;;;;;;;;-1:-1:-1;;;;;46157:131:0;;;;;;-1:-1:-1;;;;;46157:131:0;;;;;;-1:-1:-1;;;;;46157:131:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;46311:8;-1:-1:-1;;;;;46301:34:0;;46336:6;46301:42;;;;;;;;;;;;;-1:-1:-1;;;;;46301:42:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;46354:17;46382:6;;;;;;;;;-1:-1:-1;;;;;46382:6:0;-1:-1:-1;;;;;46374:38:0;;46413:8;46423:16;46441:11;46454:16;46472:10;46484:7;46493:9;46374:129;;;;;;;;;;;;;-1:-1:-1;;;;;46374:129:0;;;;;;-1:-1:-1;;;;;46374:129:0;;;;;;-1:-1:-1;;;;;46374:129:0;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;46374:129:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;46374:129:0;46514:43;;;-1:-1:-1;;;46514:43:0;;-1:-1:-1;;;;;46514:43:0;;;;;;;;;46374:129;;-1:-1:-1;46514:35:0;;;;;;:43;;;;;-1:-1:-1;;46514:43:0;;;;;;;;-1:-1:-1;46514:35:0;:43;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;46570:88;46614:8;46637:10;46570:29;:88::i;:::-;46678:9;45466:1229;-1:-1:-1;;;;;;;;;;;;45466:1229:0:o;32799:177::-;32909:58;;;-1:-1:-1;;;;;32909:58:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;32909:58:0;-1:-1:-1;;;32909:58:0;;;32882:86;;32902:5;;32882:19;:86::i;:::-;32799:177;;;:::o;46703:268::-;46796:7;46820:5;:12;46836:1;46820:17;46816:107;;;46861:50;46872:5;46878:1;46872:8;;;;;;;;;;;;;;46882:5;46888:1;46882:8;;;;;;;;;;;;;;46892:7;46901:9;46861:10;:50::i;:::-;46854:57;;;;46816:107;46933:30;;;-1:-1:-1;;;46933:30:0;;;;;;;;;;;;-1:-1:-1;;;46933:30:0;;;;;;;;;;;;;;47436:532;47574:4;;47590:26;;;-1:-1:-1;;;47590:26:0;;;;;;;;;;-1:-1:-1;;;;;47574:4:0;;;;;;47590:14;;:26;;;;;47554:11;;47590:26;;;;;;;47554:11;47574:4;47590:26;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;47711:19:0;;47671:65;;47630:12;;-1:-1:-1;;;;;;47671:14:0;;;-1:-1:-1;47694:10:0;;47630:12;47671:65;47630:12;47671:65;47694:10;47671:14;47711:19;47671:65;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;47629:107;;;47753:7;47749:24;;;47764:7;;;;47749:24;47867:5;-1:-1:-1;;;;;47867:13:0;;47889:10;47867:36;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;47914:5;-1:-1:-1;;;;;47914:14:0;;47937:9;47949:10;47914:46;;;;;;;;;;;;;-1:-1:-1;;;;;47914:46:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;47436:532:0;;:::o;14059:136::-;14117:7;14144:43;14148:1;14151;14144:43;;;;;;;;;;;;;;;;;:3;:43::i;78205:912::-;-1:-1:-1;;;;;78378:29:0;;78374:68;;78424:7;;78374:68;78459:28;:15;-1:-1:-1;;;;;78459:26:0;;:28::i;:::-;78454:68;;78504:7;;78454:68;78554:16;;-1:-1:-1;;;;;78617:40:0;;78534:17;78617:40;;;:23;:40;;;;;;78674:35;;;78670:103;;;78738:23;78726:35;;78670:103;78789:14;78785:53;;78820:7;;;;78785:53;78850:12;78909:15;-1:-1:-1;;;;;78877:68:0;;78952:9;78964:4;78970:12;78984:11;78877:119;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;78873:174;;;;;-1:-1:-1;79022:4:0;78873:174;79064:45;;;-1:-1:-1;;;;;79064:45:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;78205:912;;;;;;;;:::o;73454:246::-;73584:4;73608:84;73641:20;73663:18;73683:8;73608:32;:84::i;26297:397::-;26412:6;26387:21;:31;;26379:73;;;;;-1:-1:-1;;;26379:73:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;26562:35;;26544:12;;-1:-1:-1;;;;;26562:14:0;;;26585:6;;26544:12;26562:35;26544:12;26562:35;26585:6;26562:14;:35;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;26543:54;;;26616:7;26608:78;;;;-1:-1:-1;;;26608:78:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;47976:931;48193:7;48213:20;48236:13;:29;48280:5;;;;;;;;;-1:-1:-1;;;;;48280:5:0;48300:8;48323:5;48343:9;48367:11;48393:7;48415:10;48440:25;;48236:240;;;;;;;;;;;;;-1:-1:-1;;;;;48236:240:0;;;;;;-1:-1:-1;;;;;48236:240:0;;;;;;;;;;;;;;-1:-1:-1;;;;;48236:240:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;48236:240:0;;-1:-1:-1;48489:382:0;;;;48525:22;48550:77;39842:5;48550:51;48564:36;48589:10;;39842:5;48564:24;;:36;;;;:::i;:::-;48550:9;;:13;:51::i;:::-;:55;;:77::i;:::-;48525:102;-1:-1:-1;48642:17:0;48662:29;:9;48525:102;48662:13;:29::i;:::-;48642:49;;48706:16;48725:5;48746:1;48731:5;:12;:16;48725:23;;;;;;;;;;;;;;48706:42;;48787:36;48813:9;48787:11;:21;48799:8;-1:-1:-1;;;;;48787:21:0;-1:-1:-1;;;;;48787:21:0;;;;;;;;;;;;;:25;;:36;;;;:::i;:::-;-1:-1:-1;;;;;48763:21:0;;;;;;;:11;:21;;;;;:60;-1:-1:-1;48845:14:0;-1:-1:-1;48838:21:0;;-1:-1:-1;48838:21:0;48489:382;48890:9;48883:16;;;47976:931;;;;;;;;;:::o;44897:561::-;45059:56;45082:11;45095:7;45104:10;45059:22;:56::i;:::-;45173:5;;45193:6;;45214:13;;;45128:258;;;-1:-1:-1;;;45128:258:0;;-1:-1:-1;;;;;45173:5:0;;;45128:258;;;;;;;45193:6;;;45128:258;;;;45214:13;;45128:258;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:13;;:30;;:258;;;;;45173:5;;45128:258;;;;;;;:13;:258;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;45399:51;45429:8;45439:10;45399:29;:51::i;47289:139::-;47339:9;:14;47335:86;;47376:4;;;;;;;;;-1:-1:-1;;;;;47376:4:0;-1:-1:-1;;;;;47370:19:0;;47397:9;47370:39;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;47335:86;47289:139::o;72821:257::-;72900:27;;;;;:60;;-1:-1:-1;72931:15:0;;-1:-1:-1;;;;;72931:15:0;:29;;72900:60;72896:175;;;72994:15;;72977:82;;;-1:-1:-1;;;72977:82:0;;73033:10;72977:82;;;;;;;;;;;;-1:-1:-1;;;;;72994:15:0;;;;72977:55;;:82;;;;;72994:15;;72977:82;;;;;;;;72994:15;;72977:82;;;;;;;;;;72896:175;72821:257;:::o;74346:1380::-;74736:7;74756:38;;:::i;:::-;74797:376;;;;;;;;74835:8;-1:-1:-1;;;;;74797:376:0;;;;;74858:5;74797:376;;;;74878:11;-1:-1:-1;;;;;74797:376:0;;;;;74904:9;74797:376;;;;74928:7;74797:376;;;;74950:10;74797:376;;;;74975:7;74797:376;;;;;;74997:16;74797:376;;;;75028:13;74797:376;;;;75056:12;74797:376;;;;75083:15;74797:376;;;;75113:19;74797:376;;;;;;75147:15;-1:-1:-1;;;;;74797:376:0;;;;74756:417;;75187:13;75202:18;75224:38;75254:7;75224:29;:38::i;:::-;75186:76;;;;75315:8;-1:-1:-1;;;;;75278:410:0;;75338:5;75358:11;75384:9;75408:7;75430:10;75455:7;75477:16;75508:13;75536:5;75593:1;75556:27;:34;;;;:38;75609:12;75636:15;75666:11;75278:410;;;;;;;-1:-1:-1;;;;;75278:410:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;75708:10;74346:1380;-1:-1:-1;;;;;;;;;;;;;;74346:1380:0:o;76692:1505::-;77110:7;77130:38;;:::i;:::-;77171:400;;;;;;;;77209:8;-1:-1:-1;;;;;77171:400:0;;;;;77232:5;77171:400;;;;77252:11;-1:-1:-1;;;;;77171:400:0;;;;;77278:16;77171:400;;;;77309:10;77171:400;;;;77334:7;77171:400;;;;;;77356:9;-1:-1:-1;;;;;77171:400:0;;;;;77380:16;77171:400;;;;77411:7;77171:400;;;;77433:13;77171:400;;;;77461:12;77171:400;;;;77488:15;77171:400;;;;77518:12;77171:400;;;;;;77545:15;-1:-1:-1;;;;;77171:400:0;;;;77130:441;;77585:13;77600:18;77622:38;77652:7;77622:29;:38::i;:::-;77584:76;;;;77713:7;:15;;;-1:-1:-1;;;;;77676:485:0;;77743:7;:12;;;77770:7;:18;;;77803:7;:23;;;77841:7;:17;;;77873:7;:14;;;77902:7;:16;;;77933:7;:23;;;77971:7;:14;;;78000:7;:20;;;78035:5;78092:1;78055:27;:34;;;;:38;78108:12;78135:15;77676:485;;;;;;;-1:-1:-1;;;;;77676:485:0;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;77676:485:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;78179:10;76692:1505;-1:-1:-1;;;;;;;;;;;;;;;76692:1505:0:o;13595:181::-;13653:7;13685:5;;;13709:6;;;;13701:46;;;;;-1:-1:-1;;;13701:46:0;;;;;;;;;;;;-1:-1:-1;;;13701:46:0;;;;;;;;;;;;;;73708:630;73849:4;;73886:10;73908:4;73886:27;;:59;;-1:-1:-1;73934:10:0;73917:28;;;;:16;:28;;;;;;;;73886:59;73963:17;;73866:79;;-1:-1:-1;73963:17:0;;73962:18;:35;;;;;73985:12;73984:13;73962:35;73958:81;;;74014:13;;;-1:-1:-1;;;74014:13:0;;;;;;;;;;;;-1:-1:-1;;;74014:13:0;;;;;;;;;;;;;;73958:81;74055:12;74051:113;;;74140:12;74091:45;74116:19;;74091:20;:24;;:45;;;;:::i;:::-;:61;;74084:68;;;;;74051:113;74184:10;-1:-1:-1;;;;;74184:22:0;;;74176:38;;;;;-1:-1:-1;;;74176:38:0;;;;;;;;;;;;-1:-1:-1;;;74176:38:0;;;;;;;;;;;;;;;74281:15;74235:42;74258:18;;74235;:22;;:42;;;;:::i;:::-;:61;;74227:79;;;;;-1:-1:-1;;;74227:79:0;;;;;;;;;;;;-1:-1:-1;;;74227:79:0;;;;;;;;;;;;;;;-1:-1:-1;74326:4:0;;73708:630;-1:-1:-1;;;;73708:630:0:o;49563:638::-;49687:15;;-1:-1:-1;;;;;49687:15:0;49717:30;49713:47;;49751:7;;;49713:47;49773:20;49795:16;49832;-1:-1:-1;;;;;49815:56:0;;49872:8;49815:66;;;;;;;;;;;;;-1:-1:-1;;;;;49815:66:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;49815:66:0;;;;;;;;;-1:-1:-1;49815:66:0;-1:-1:-1;49896:26:0;49892:43;;49926:7;;;;;49892:43;49973:5;;49966:19;;;-1:-1:-1;;;49966:19:0;;;;49947:16;;-1:-1:-1;;;;;49973:5:0;;49966:17;;:19;;;;;;;;;;;;;;49973:5;49966:19;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;49966:19:0;50090:42;;;-1:-1:-1;;;50090:42:0;;;;49966:19;;-1:-1:-1;50003:190:0;;50042:8;;50065:10;;-1:-1:-1;;;;;50090:40:0;;;;;:42;;;;;49966:19;;50090:42;;;;;;;;:40;:42;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;50090:42:0;50003:190;;;-1:-1:-1;;;;;50003:190:0;;;;;50090:42;50003:190;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;49563:638;;;;;;:::o;35104:761::-;35528:23;35554:69;35582:4;35554:69;;;;;;;;;;;;;;;;;35562:5;-1:-1:-1;;;;;35554:27:0;;;:69;;;;;:::i;:::-;35638:17;;35528:95;;-1:-1:-1;35638:21:0;35634:224;;35780:10;35769:30;;;;;;;;;;;;;;;-1:-1:-1;35769:30:0;35761:85;;;;-1:-1:-1;;;35761:85:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;46979:302;47137:5;;47130:50;;;-1:-1:-1;;;47130:50:0;;-1:-1:-1;;;;;47130:50:0;;;;;;;;;;;;;;;;;;;;;;;47090:7;;;;47137:5;;47130:18;;:50;;;;;;;;;;;;;;47090:7;47137:5;47130:50;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;47130:50:0;;-1:-1:-1;47199:20:0;;;;47191:55;;;;;-1:-1:-1;;;47191:55:0;;;;;;;;;;;;-1:-1:-1;;;47191:55:0;;;;;;;;;;;;;;;47264:9;46979:302;-1:-1:-1;;;;;46979:302:0:o;14498:192::-;14584:7;14620:12;14612:6;;;;14604:29;;;;-1:-1:-1;;;14604:29:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;14656:5:0;;;14498:192::o;24940:422::-;25307:20;25346:8;;;24940:422::o;14949:471::-;15007:7;15252:6;15248:47;;-1:-1:-1;15282:1:0;15275:8;;15248:47;15319:5;;;15323:1;15319;:5;:1;15343:5;;;;;:10;15335:56;;;;-1:-1:-1;;;15335:56:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;15896:132;15954:7;15981:39;15985:1;15988;15981:39;;;;;;;;;;;;;-1:-1:-1;;;15981:39:0;;;:3;:39::i;44137:752::-;44253:15;44249:54;;44285:7;;44249:54;44319:7;44315:567;;;-1:-1:-1;;;;;44371:31:0;;44343:25;44371:31;;;:18;:31;;;;;;44421:21;;;;;:101;;-1:-1:-1;44453:5:0;;44446:40;;;-1:-1:-1;;;44446:40:0;;-1:-1:-1;;;;;44446:40:0;;;;;;;;;44505:17;;44446:56;;44491:10;;44453:5;;;44446:27;;:40;;;;;;;;;;;;;;;44453:5;44446:40;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;44446:40:0;;:44;:56::i;:::-;:76;44421:101;44417:170;;;44543:28;;;-1:-1:-1;;;44543:28:0;;;;;;;;;;;;-1:-1:-1;;;44543:28:0;;;;;;;;;;;;;;44417:170;44315:567;;;;-1:-1:-1;;;;;44648:32:0;;44619:26;44648:32;;;:19;:32;;;;;;44699:22;;;;;:106;;-1:-1:-1;44732:5:0;;44725:43;;;-1:-1:-1;;;44725:43:0;;-1:-1:-1;;;;;44725:43:0;;;;;;;;;44787:18;;44725:59;;44773:10;;44732:5;;;44725:30;;:43;;;;;;;;;;;;;;;44732:5;44725:43;;;;;;;;;;:59;:80;44699:106;44695:176;;;44826:29;;;-1:-1:-1;;;44826:29:0;;;;;;;;;;;;-1:-1:-1;;;44826:29:0;;;;;;;;;;;;;;48915:640;49039:15;;-1:-1:-1;;;;;49039:15:0;49069:30;49065:47;;49103:7;;;49065:47;49127:20;49149:16;49186;-1:-1:-1;;;;;49169:56:0;;49226:8;49169:66;;;;;;;;;;;;;-1:-1:-1;;;;;49169:66:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;49169:66:0;;;;;;;;;-1:-1:-1;49169:66:0;-1:-1:-1;49250:26:0;49246:43;;49280:7;;;;;49246:43;49327:5;;49320:19;;;-1:-1:-1;;;49320:19:0;;;;49301:16;;-1:-1:-1;;;;;49327:5:0;;49320:17;;:19;;;;;;;;;;;;;;49327:5;49320:19;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;49320:19:0;49444:42;;;-1:-1:-1;;;49444:42:0;;;;49320:19;;-1:-1:-1;49357:190:0;;49396:8;;49419:10;;-1:-1:-1;;;;;49444:40:0;;;;;:42;;;;;49320:19;;49444:42;;;;;;;;:40;:42;;;;;;;;;;75734:471;75879:16;;-1:-1:-1;;;;;75922:31:0;;75832:7;75922:31;;;:22;:31;;;;;;75832:7;;;;;;75922:38;;75958:1;75922:35;:38::i;:::-;-1:-1:-1;;;;;75971:31:0;;;;;;:22;:31;;;;;:39;;;75906:54;;-1:-1:-1;76035:29:0;75994:7;75906:54;76035:13;:29::i;:::-;76077;;;;:24;:29;;;;;;;;:40;;;;-1:-1:-1;;;;;;76077:40:0;-1:-1:-1;;;;;76077:40:0;;;;;;;;;;;;:29;;-1:-1:-1;76077:40:0;;:29;;:40;;-1:-1:-1;76077:40:0;;;;;;;;:::i;:::-;-1:-1:-1;76077:40:0;;;;;;;;;-1:-1:-1;;;;;76077:40:0;;;-1:-1:-1;;;;;;76077:40:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;76077:40:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;76077:40:0;;;;;;;;;;;;;;;;;;;;;76128:27;:37;;76077:40;76128:37;;;;76077:40;76128:37;;;;;;;;;76186:5;;-1:-1:-1;76161:3:0;-1:-1:-1;;75734:471:0;;;:::o;76213:::-;76358:16;;-1:-1:-1;;;;;76401:31:0;;76311:7;76401:31;;;:22;:31;;;;;;76311:7;;;;;;76401:38;;76437:1;76401:35;:38::i;:::-;-1:-1:-1;;;;;76450:31:0;;;;;;:22;:31;;;;;:39;;;76385:54;;-1:-1:-1;76514:29:0;76473:7;76385:54;76514:13;:29::i;:::-;76556;;;;:24;:29;;;;;;;;:40;;;;-1:-1:-1;;;;;;76556:40:0;-1:-1:-1;;;;;76556:40:0;;;;;;;;;;;;:29;;-1:-1:-1;76556:40:0;;:29;;:40;;-1:-1:-1;76556:40:0;;;;;;;;:::i;:::-;-1:-1:-1;76556:40:0;;;;;;;;;-1:-1:-1;;;;;76556:40:0;;;-1:-1:-1;;;;;;76556:40:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;76556:40:0;;;-1:-1:-1;;76556:40:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;76607:27;:37;;76556:40;76607:37;;;;76556:40;76607:37;;;;;;;;;76665:5;;-1:-1:-1;76640:3:0;-1:-1:-1;;76213:471:0;;;:::o;27858:195::-;27961:12;27993:52;28015:6;28023:4;28029:1;28032:12;27993:21;:52::i;16524:278::-;16610:7;16645:12;16638:5;16630:28;;;;-1:-1:-1;;;16630:28:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;16669:9;16685:1;16681;:5;;;;;;;16524:278;-1:-1:-1;;;;;16524:278:0:o;28910:530::-;29037:12;29095:5;29070:21;:30;;29062:81;;;;-1:-1:-1;;;29062:81:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;29162:18;29173:6;29162:10;:18::i;:::-;29154:60;;;;;-1:-1:-1;;;29154:60:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;29288:12;29302:23;29329:6;-1:-1:-1;;;;;29329:11:0;29349:5;29357:4;29329:33;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;29329:33:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;29287:75;;;;29380:52;29398:7;29407:10;29419:12;29380:17;:52::i;:::-;29373:59;28910:530;-1:-1:-1;;;;;;;28910:530:0:o;31450:742::-;31565:12;31594:7;31590:595;;;-1:-1:-1;31625:10:0;31618:17;;31590:595;31739:17;;:21;31735:439;;32002:10;31996:17;32063:15;32050:10;32046:2;32042:19;32035:44;31950:148;32138:20;;-1:-1:-1;;;32138:20:0;;;;;;;;;;;;;;;;;32145:12;;32138:20;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

Swarm Source

ipfs://da8f7e8864d91c91b30e4325ceca5063c4c91fa0f586c0969cfb19e3599117d3

Block Transaction Gas Used Reward
view all blocks sequenced

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

Validator Index Block Amount
View All Withdrawals

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

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