Contract 0x195256074192170d1530527abc9943759c7167d8 3

Txn Hash Method
Block
From
To
Value [Txn Fee]
0x418feb5c601f2791430bd66d78a8fb9c2fab248f73b881ad7883a6e402b749dcCreate Increase ...228709922022-11-26 15:44:40300 days 19 mins ago0x88425436625bc6c9f37332858591a3835890fc8f IN  0x195256074192170d1530527abc9943759c7167d81.02 AVAX0.010545365 29.5
0xea49fb8ae1b413462b444b2c6fdc19a28993b79c424bc2316650b582cfe5d983Withdraw Fees228708602022-11-26 15:40:02300 days 24 mins ago0x88425436625bc6c9f37332858591a3835890fc8f IN  0x195256074192170d1530527abc9943759c7167d80 AVAX0.00065637 26
0x710bd01b1a1d39c9e6f39245e7902fe2072bd77a691ef5b7383bbbb1790ae45dCancel Increase ...228706642022-11-26 15:33:11300 days 31 mins ago0x88425436625bc6c9f37332858591a3835890fc8f IN  0x195256074192170d1530527abc9943759c7167d80 AVAX0.001395914 26
0xc97e35aded3152d663c47f3e34dfa56b3f6d97d2530e7da54e761331f34d3640Create Increase ...228691962022-11-26 14:43:17300 days 1 hr ago0x88425436625bc6c9f37332858591a3835890fc8f IN  0x195256074192170d1530527abc9943759c7167d81.52 AVAX0.010546073 29.5
0x250a0953f6b76228538f598062624124ed76762f2487484068898a5857348634Create Decrease ...226620242022-11-21 15:56:16305 days 8 mins ago0x22b6e3abe7f2181d38e9c2f4d3cd8f15ab1a1bfd IN  0x195256074192170d1530527abc9943759c7167d80.02 AVAX0.0094055735 29.5
0x560639d75ab8cec433f4511a35e9a9097b0e1a16d49f8df65acc659d9e127fecCreate Decrease ...226619552022-11-21 15:53:54305 days 10 mins ago0x22b6e3abe7f2181d38e9c2f4d3cd8f15ab1a1bfd IN  0x195256074192170d1530527abc9943759c7167d80.02 AVAX0.0094055735 29.5
0xc45ee84ba812cfb53f75e6f07a2065dd8f27f305753250039a132961f6dd7b7cCreate Decrease ...226618882022-11-21 15:51:38305 days 13 mins ago0x22b6e3abe7f2181d38e9c2f4d3cd8f15ab1a1bfd IN  0x195256074192170d1530527abc9943759c7167d80.02 AVAX0.0094059275 29.5
0x802fe5f8a37fcf88b19bf73d73fb54cd7f2593ee02a1ec6bfa637ef4723dc866Create Decrease ...226618172022-11-21 15:49:16305 days 15 mins ago0x22b6e3abe7f2181d38e9c2f4d3cd8f15ab1a1bfd IN  0x195256074192170d1530527abc9943759c7167d80.02 AVAX0.0094055735 29.5
0x5a6e933dfdfbc17a666d1dff6bedaee46e354f777f809db860129cdc7a89dbd3Create Decrease ...226617752022-11-21 15:47:56305 days 16 mins ago0x22b6e3abe7f2181d38e9c2f4d3cd8f15ab1a1bfd IN  0x195256074192170d1530527abc9943759c7167d80.02 AVAX0.0094059275 29.5
0xb3073b9247ade7361eed07ec95800006bc14b26d263d9d99aff8d6d8391ea4ebCreate Decrease ...226617312022-11-21 15:46:28305 days 18 mins ago0x22b6e3abe7f2181d38e9c2f4d3cd8f15ab1a1bfd IN  0x195256074192170d1530527abc9943759c7167d80.02 AVAX0.0094055735 29.5
0x8efc41a9340c67d46886ac968313cb06964e008fed902a8edc92905b1b0e3eaaCreate Decrease ...226615982022-11-21 15:41:55305 days 22 mins ago0x22b6e3abe7f2181d38e9c2f4d3cd8f15ab1a1bfd IN  0x195256074192170d1530527abc9943759c7167d80.02 AVAX0.0099100235 29.5
0x8dd09ec6b8215eb89efd02fd31bb450e17768b8f6f92efb390d5895fbce67c6dTransfer222479052022-11-11 16:44:28314 days 23 hrs ago0x1847ff71ad61e9393cf37ed241e48517d93e3902 IN  0x195256074192170d1530527abc9943759c7167d80.88059174 AVAX0.0006183245 26.5
0x55d1a375a70d800756a76e9239091c207fa5673f643728b2cfb05945a4a54d0eCreate Increase ...219743142022-11-05 6:22:15321 days 9 hrs ago0xd915736493cd79bb696591f31e9c068254b3482e IN  0x195256074192170d1530527abc9943759c7167d80.62 AVAX0.010546427 29.5
0x4910bf34c876e3530bf7f6fbefea7f92e8666e8c3617be540dd28ca9f56a1358Create Increase ...219514992022-11-04 17:22:08321 days 22 hrs ago0xd915736493cd79bb696591f31e9c068254b3482e IN  0x195256074192170d1530527abc9943759c7167d80.62 AVAX0.010546427 29.5
0x33d2655a26e1141c8324f2aeaebeaf9ca75a7712cfd4fd0bee332833fc0e0c7bCreate Increase ...219514542022-11-04 17:20:38321 days 22 hrs ago0xd915736493cd79bb696591f31e9c068254b3482e IN  0x195256074192170d1530527abc9943759c7167d80.62 AVAX0.010546427 29.5
0x2641f706811c6039ae2c15598cefcc3ae19c6f7c6ab774168ee97802d53eae66Create Increase ...219426632022-11-04 12:23:41322 days 3 hrs ago0x88425436625bc6c9f37332858591a3835890fc8f IN  0x195256074192170d1530527abc9943759c7167d80.62 AVAX0.010546073 29.5
0x705ba8ef4fe708c7f1e4a68f39bdb5d2ac213e061f909c77e9bbdb57705af4b8Create Increase ...219416052022-11-04 11:47:40322 days 4 hrs ago0x88425436625bc6c9f37332858591a3835890fc8f IN  0x195256074192170d1530527abc9943759c7167d80.62 AVAX0.010546427 29.5
0xfad7d195d2f68086f653de78e7d938a2f169da1673ed3f855e41b09d2ab47506Create Increase ...219415582022-11-04 11:46:03322 days 4 hrs ago0x88425436625bc6c9f37332858591a3835890fc8f IN  0x195256074192170d1530527abc9943759c7167d80.62 AVAX0.010546427 29.5
0xa46993f807f6504943740f1e740cdc455aab9bcf10e5ff1bdef0100aaaeb59a7Create Increase ...219399502022-11-04 10:51:00322 days 5 hrs ago0x88425436625bc6c9f37332858591a3835890fc8f IN  0x195256074192170d1530527abc9943759c7167d80.62 AVAX0.010546073 29.5
0xcf43f7d5fd81f4fc02e34598ab49d2859b9dfa4a68b998423cf6c8118b2e6dc7Create Increase ...219387972022-11-04 10:11:25322 days 5 hrs ago0x88425436625bc6c9f37332858591a3835890fc8f IN  0x195256074192170d1530527abc9943759c7167d80.62 AVAX0.010545719 29.5
0x35803a32b55b67fbf77b989f30151578de96356a6834806a766f32ddb3e18687Create Increase ...219380812022-11-04 9:47:01322 days 6 hrs ago0x88425436625bc6c9f37332858591a3835890fc8f IN  0x195256074192170d1530527abc9943759c7167d80.62 AVAX0.010546073 29.5
0x35a92f8294e330303868a7a077ffe02628885a7a8d56cb477e2a7d6dd2ec667dCreate Increase ...219378322022-11-04 9:38:33322 days 6 hrs ago0x88425436625bc6c9f37332858591a3835890fc8f IN  0x195256074192170d1530527abc9943759c7167d80.62 AVAX0.010799788227 30.209704856
0x2724d9426531000bdc302f2760c447928f14c155c260d30ae3fdae8e25ee6240Create Increase ...219374822022-11-04 9:26:22322 days 6 hrs ago0x88425436625bc6c9f37332858591a3835890fc8f IN  0x195256074192170d1530527abc9943759c7167d80.62 AVAX0.010546427 29.5
0x789a25784b3452f3f38f6bf7a46c09bf971cf5625d1d20c5a1d5e043b070841cCreate Increase ...219373612022-11-04 9:22:15322 days 6 hrs ago0x88425436625bc6c9f37332858591a3835890fc8f IN  0x195256074192170d1530527abc9943759c7167d80.62 AVAX0.010546073 29.5
0xeb1df147e8ac61a4b37f4faab98f340dad9361561aebb4140cf1a1878cdb687aCreate Increase ...219373262022-11-04 9:21:05322 days 6 hrs ago0x88425436625bc6c9f37332858591a3835890fc8f IN  0x195256074192170d1530527abc9943759c7167d80.62 AVAX0.011050877 29.5
[ Download CSV Export 
Latest 25 internal transaction
Parent Txn Hash Block From To Value
0x418feb5c601f2791430bd66d78a8fb9c2fab248f73b881ad7883a6e402b749dc228709922022-11-26 15:44:40300 days 19 mins ago 0x195256074192170d1530527abc9943759c7167d8 Wrapped AVAX1.02 AVAX
0xc97e35aded3152d663c47f3e34dfa56b3f6d97d2530e7da54e761331f34d3640228691962022-11-26 14:43:17300 days 1 hr ago 0x195256074192170d1530527abc9943759c7167d8 Wrapped AVAX1.52 AVAX
0x250a0953f6b76228538f598062624124ed76762f2487484068898a5857348634226620242022-11-21 15:56:16305 days 8 mins ago 0x195256074192170d1530527abc9943759c7167d8 Wrapped AVAX0.02 AVAX
0x560639d75ab8cec433f4511a35e9a9097b0e1a16d49f8df65acc659d9e127fec226619552022-11-21 15:53:54305 days 10 mins ago 0x195256074192170d1530527abc9943759c7167d8 Wrapped AVAX0.02 AVAX
0xc45ee84ba812cfb53f75e6f07a2065dd8f27f305753250039a132961f6dd7b7c226618882022-11-21 15:51:38305 days 13 mins ago 0x195256074192170d1530527abc9943759c7167d8 Wrapped AVAX0.02 AVAX
0x802fe5f8a37fcf88b19bf73d73fb54cd7f2593ee02a1ec6bfa637ef4723dc866226618172022-11-21 15:49:16305 days 15 mins ago 0x195256074192170d1530527abc9943759c7167d8 Wrapped AVAX0.02 AVAX
0x5a6e933dfdfbc17a666d1dff6bedaee46e354f777f809db860129cdc7a89dbd3226617752022-11-21 15:47:56305 days 16 mins ago 0x195256074192170d1530527abc9943759c7167d8 Wrapped AVAX0.02 AVAX
0xb3073b9247ade7361eed07ec95800006bc14b26d263d9d99aff8d6d8391ea4eb226617312022-11-21 15:46:28305 days 18 mins ago 0x195256074192170d1530527abc9943759c7167d8 Wrapped AVAX0.02 AVAX
0x8efc41a9340c67d46886ac968313cb06964e008fed902a8edc92905b1b0e3eaa226615982022-11-21 15:41:55305 days 22 mins ago 0x195256074192170d1530527abc9943759c7167d8 Wrapped AVAX0.02 AVAX
0xcecaf7d1bf8493de1587af8865e83deb6e9d4288fc0b721f3731d4b097cb2ed4219743282022-11-05 6:22:42321 days 9 hrs ago 0x195256074192170d1530527abc9943759c7167d80x295f648f091074015d4c26725421b2e73768199f0.02 AVAX
0xcecaf7d1bf8493de1587af8865e83deb6e9d4288fc0b721f3731d4b097cb2ed4219743282022-11-05 6:22:42321 days 9 hrs ago Wrapped AVAX 0x195256074192170d1530527abc9943759c7167d80.02 AVAX
0xcecaf7d1bf8493de1587af8865e83deb6e9d4288fc0b721f3731d4b097cb2ed4219743282022-11-05 6:22:42321 days 9 hrs ago 0x195256074192170d1530527abc9943759c7167d80xd915736493cd79bb696591f31e9c068254b3482e0.6 AVAX
0xcecaf7d1bf8493de1587af8865e83deb6e9d4288fc0b721f3731d4b097cb2ed4219743282022-11-05 6:22:42321 days 9 hrs ago Wrapped AVAX 0x195256074192170d1530527abc9943759c7167d80.6 AVAX
0x55d1a375a70d800756a76e9239091c207fa5673f643728b2cfb05945a4a54d0e219743142022-11-05 6:22:15321 days 9 hrs ago 0x195256074192170d1530527abc9943759c7167d8 Wrapped AVAX0.62 AVAX
0xd5b91d86f3a4cc58c6fd6725b5aa1d3eb6bd2923b0e72d3c95ad3c1d68fe6203219515022022-11-04 17:22:13321 days 22 hrs ago 0x195256074192170d1530527abc9943759c7167d80x295f648f091074015d4c26725421b2e73768199f0.02 AVAX
0xd5b91d86f3a4cc58c6fd6725b5aa1d3eb6bd2923b0e72d3c95ad3c1d68fe6203219515022022-11-04 17:22:13321 days 22 hrs ago Wrapped AVAX 0x195256074192170d1530527abc9943759c7167d80.02 AVAX
0xd5b91d86f3a4cc58c6fd6725b5aa1d3eb6bd2923b0e72d3c95ad3c1d68fe6203219515022022-11-04 17:22:13321 days 22 hrs ago 0x195256074192170d1530527abc9943759c7167d80xd915736493cd79bb696591f31e9c068254b3482e0.6 AVAX
0xd5b91d86f3a4cc58c6fd6725b5aa1d3eb6bd2923b0e72d3c95ad3c1d68fe6203219515022022-11-04 17:22:13321 days 22 hrs ago Wrapped AVAX 0x195256074192170d1530527abc9943759c7167d80.6 AVAX
0x4910bf34c876e3530bf7f6fbefea7f92e8666e8c3617be540dd28ca9f56a1358219514992022-11-04 17:22:08321 days 22 hrs ago 0x195256074192170d1530527abc9943759c7167d8 Wrapped AVAX0.62 AVAX
0x3278bd34000875d781f6d4eaf51d1429e082e6973b013f7a825fdb8ff5932275219514562022-11-04 17:20:41321 days 22 hrs ago 0x195256074192170d1530527abc9943759c7167d80xa0c6954b241f592a937d778dc8b994f4518b82a50.02 AVAX
0x3278bd34000875d781f6d4eaf51d1429e082e6973b013f7a825fdb8ff5932275219514562022-11-04 17:20:41321 days 22 hrs ago Wrapped AVAX 0x195256074192170d1530527abc9943759c7167d80.02 AVAX
0x3278bd34000875d781f6d4eaf51d1429e082e6973b013f7a825fdb8ff5932275219514562022-11-04 17:20:41321 days 22 hrs ago 0x195256074192170d1530527abc9943759c7167d80xd915736493cd79bb696591f31e9c068254b3482e0.6 AVAX
0x3278bd34000875d781f6d4eaf51d1429e082e6973b013f7a825fdb8ff5932275219514562022-11-04 17:20:41321 days 22 hrs ago Wrapped AVAX 0x195256074192170d1530527abc9943759c7167d80.6 AVAX
0x33d2655a26e1141c8324f2aeaebeaf9ca75a7712cfd4fd0bee332833fc0e0c7b219514542022-11-04 17:20:38321 days 22 hrs ago 0x195256074192170d1530527abc9943759c7167d8 Wrapped AVAX0.62 AVAX
0xf35b376cbbf43ebb60dd32a0f4b4c62b2e0db4a3c70a73d26f465fe05f1667c6219426662022-11-04 12:23:46322 days 3 hrs ago 0x195256074192170d1530527abc9943759c7167d80x295f648f091074015d4c26725421b2e73768199f0.02 AVAX
[ Download CSV Export 
Index Block
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
PositionRouter

Compiler Version
v0.6.12+commit.27d51765

Optimization Enabled:
Yes with 1 runs

Other Settings:
default evmVersion, MIT license

Contract Source Code (Solidity)

/**
 *Submitted for verification at snowtrace.io on 2022-03-22
*/

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

// File contracts/core/interfaces/IRouter.sol

// SPDX-License-Identifier: MIT

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


// File contracts/core/interfaces/IVaultUtils.sol


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


// File contracts/core/interfaces/IVault.sol


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


// File contracts/core/interfaces/IPositionRouter.sol


pragma solidity 0.6.12;

interface IPositionRouter {
    function executeIncreasePositions(uint256 _count, address payable _executionFeeReceiver) external;
    function executeDecreasePositions(uint256 _count, address payable _executionFeeReceiver) external;
}


// File contracts/peripherals/interfaces/ITimelock.sol


pragma solidity 0.6.12;

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


// File contracts/libraries/math/SafeMath.sol


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


// File contracts/libraries/token/IERC20.sol


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


// File contracts/tokens/interfaces/IWETH.sol


pragma solidity 0.6.12;

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


// File contracts/libraries/utils/Address.sol


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


// File contracts/libraries/token/SafeERC20.sol


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


// File contracts/libraries/utils/ReentrancyGuard.sol


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


// File contracts/core/interfaces/IOrderBook.sol


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


// File contracts/access/Governable.sol


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


// File contracts/referrals/interfaces/IReferralStorage.sol


pragma solidity 0.6.12;

interface IReferralStorage {
    function setTraderReferralCode(address _account, bytes32 _code) external;
    function getTraderReferralInfo(address _account) external view returns (bytes32, address);
}


// File contracts/core/BasePositionManager.sol


pragma solidity ^0.6.0;









contract BasePositionManager is 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 router;
    address public weth;

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

    address public referralStorage;

    mapping (address => uint256) public feeReserves;

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

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

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

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

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

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

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

        admin = msg.sender;
    }

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

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

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

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

    function setReferralStorage(address _referralStorage) external onlyAdmin {
        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 _increasePosition(address _account, address _collateralToken, address _indexToken, uint256 _sizeDelta, bool _isLong, uint256 _price) internal {
        address _vault = vault;

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

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

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

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

        _emitIncreasePositionReferral(_account, _sizeDelta);
    }

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

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

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

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

        _emitDecreasePositionReferral(_account, _sizeDelta);

        return amountOut;
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

        return _amountIn;
    }

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

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

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

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

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

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

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

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


// File contracts/core/PositionRouter.sol


pragma solidity ^0.6.0;




contract PositionRouter is BasePositionManager, IPositionRouter {

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

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

    uint256 public minExecutionFee;

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

    bool public isLeverageEnabled = true;

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

    uint256 public increasePositionRequestKeysStart;
    uint256 public decreasePositionRequestKeysStart;

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

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

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

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

    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
    ) external payable nonReentrant {
        require(_executionFee >= minExecutionFee, "PositionRouter: invalid executionFee");
        require(msg.value == _executionFee, "PositionRouter: invalid msg.value");
        require(_path.length == 1 || _path.length == 2, "PositionRouter: invalid _path length");

        _transferInETH();
        _setTraderReferralCode(_referralCode);

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

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

    function createIncreasePositionETH(
        address[] memory _path,
        address _indexToken,
        uint256 _minOut,
        uint256 _sizeDelta,
        bool _isLong,
        uint256 _acceptablePrice,
        uint256 _executionFee,
        bytes32 _referralCode
    ) external payable nonReentrant {
        require(_executionFee >= minExecutionFee, "PositionRouter: invalid executionFee");
        require(msg.value >= _executionFee, "PositionRouter: invalid msg.value");
        require(_path.length == 1 || _path.length == 2, "PositionRouter: invalid _path length");
        require(_path[0] == weth, "PositionRouter: invalid _path");

        _transferInETH();
        _setTraderReferralCode(_referralCode);

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

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

    function createDecreasePosition(
        address[] memory _path,
        address _indexToken,
        uint256 _collateralDelta,
        uint256 _sizeDelta,
        bool _isLong,
        address _receiver,
        uint256 _acceptablePrice,
        uint256 _minOut,
        uint256 _executionFee,
        bool _withdrawETH
    ) external payable nonReentrant {
        require(_executionFee >= minExecutionFee, "PositionRouter: invalid executionFee");
        require(msg.value == _executionFee, "PositionRouter: invalid msg.value");
        require(_path.length == 1 || _path.length == 2, "PositionRouter: invalid _path length");

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

        _transferInETH();

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

    function getRequestQueueLengths() external view 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(msg.sender, 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);

       _transferOutETH(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)
        );

        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) {
            _transferOutETHWithGasLimit(request.amountIn, payable(request.account));
        } else {
            IERC20(request.path[0]).safeTransfer(request.account, request.amountIn);
        }

       _transferOutETH(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)
        );

        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 (request.path.length > 1) {
            IERC20(request.path[0]).safeTransfer(vault, amountOut);
            amountOut = _swap(request.path, request.minOut, address(this));
        }

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

       _transferOutETH(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)
        );

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

       _transferOutETH(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)
        );

        return true;
    }

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

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

    function getDecreasePositionRequestPath(bytes32 _key) public view 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("PositionRouter: request has expired");
        }

        bool isKeeperCall = msg.sender == address(this) || isPositionKeeper[msg.sender];

        if (!isLeverageEnabled && !isKeeperCall) {
            revert("PositionRouter: forbidden");
        }

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

        require(msg.sender == _account, "PositionRouter: forbidden");

        require(_positionBlockTime.add(minTimeDelayPublic) <= block.timestamp, "PositionRouter: min delay not yet passed");

        return true;
    }

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

        if (!isLeverageEnabled && !isKeeperCall) {
            revert("PositionRouter: forbidden");
        }

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

        require(msg.sender == _account, "PositionRouter: forbidden");

        require(_positionBlockTime.add(minTimeDelayPublic) <= block.timestamp, "PositionRouter: min delay not yet passed");

        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
    ) internal {
        uint256 index = increasePositionsIndex[_account].add(1);
        increasePositionsIndex[_account] = index;

        IncreasePositionRequest memory request = IncreasePositionRequest(
            _account,
            _path,
            _indexToken,
            _amountIn,
            _minOut,
            _sizeDelta,
            _isLong,
            _acceptablePrice,
            _executionFee,
            block.number,
            block.timestamp,
            _hasCollateralInETH
        );

        bytes32 key = getRequestKey(_account, index);
        increasePositionRequests[key] = request;

        increasePositionRequestKeys.push(key);

        emit CreateIncreasePosition(
            _account,
            _path,
            _indexToken,
            _amountIn,
            _minOut,
            _sizeDelta,
            _isLong,
            _acceptablePrice,
            _executionFee,
            index,
            block.number,
            block.timestamp,
            tx.gasprice
        );
    }

    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
    ) internal {
        uint256 index = decreasePositionsIndex[_account].add(1);
        decreasePositionsIndex[_account] = index;

        DecreasePositionRequest memory request = DecreasePositionRequest(
            _account,
            _path,
            _indexToken,
            _collateralDelta,
            _sizeDelta,
            _isLong,
            _receiver,
            _acceptablePrice,
            _minOut,
            _executionFee,
            block.number,
            block.timestamp,
            _withdrawETH
        );

        bytes32 key = getRequestKey(_account, index);
        decreasePositionRequests[key] = request;

        decreasePositionRequestKeys.push(key);

        emit CreateDecreasePosition(
            _account,
            _path,
            _indexToken,
            _collateralDelta,
            _sizeDelta,
            _isLong,
            _receiver,
            _acceptablePrice,
            _minOut,
            _executionFee,
            index,
            block.number,
            block.timestamp
        );
    }
}

Contract ABI

[{"inputs":[{"internalType":"address","name":"_vault","type":"address"},{"internalType":"address","name":"_router","type":"address"},{"internalType":"address","name":"_weth","type":"address"},{"internalType":"uint256","name":"_depositFee","type":"uint256"},{"internalType":"uint256","name":"_minExecutionFee","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"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":"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":"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":"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":"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":[{"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"}],"name":"createDecreasePosition","outputs":[],"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"}],"name":"createIncreasePosition","outputs":[],"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"}],"name":"createIncreasePositionETH","outputs":[],"stateMutability":"payable","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"}],"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":[{"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"}],"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":"_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":"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":"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"}]

608060405260646007556010805460ff191660011790553480156200002357600080fd5b5060405162005c6e38038062005c6e833981810160405260a08110156200004957600080fd5b508051602082015160408301516060840151608090940151600160008181558154336001600160a01b031991821681179093556003805482166001600160a01b0398891617905560048054821696881696909617909555600580548616969094169590951790925560069490945560028054909216179055600c91909155615b96908190620000d890396000f3fe60806040526004361061025d5760003560e01c80626cc35e146102b257806304225954146102e35780630d4d003d1461031f5780631045c74e1461036c578063126082cf1461039f57806312d43a51146103b45780631bca8cf0146103c95780631ce9cb8f146103de5780631f28510614610411578063225fc9fd146104bd578063233bfe3b146104f657806324a084df1461052057806327b42c0f14610559578063308aa81f14610592578063332e0382146105c25780633422ead11461069257806336eba48a146106cd5780633a2a80c7146107005780633e72a262146107155780633fc8cef31461072a5780634067b1321461073f5780634278555f14610775578063490ae2101461079f5780635841fcaa146107c95780635d5c22e8146107de57806360a362e21461085857806362f8a3fe14610891578063633451de146108ca57806363ae2103146108fd57806367a5279314610912578063704b6c02146109275780637c2eb9f71461095a57806395e9bbd7146109865780639698d25a146109b057806398d1e03a146109e35780639a208100146109f85780639b57862014610a31578063ae4d7f9a14610a46578063c987417014610a79578063cb0269c914610b4f578063cfad57a214610b64578063e1f21c6714610b97578063e70dd2fc14610bda578063ef12c67e14610cbc578063f255527814610e6e578063f2cea6a514610ea9578063f3883d8b14610ee4578063f851a44014610f1d578063f887ea4014610f32578063fa44457714610f47578063faf990f314610f7a578063fbfa77cf14611008578063fc2cee621461101d576102ad565b366102ad576005546001600160a01b031633146102ab5760405162461bcd60e51b8152600401808060200182810382526023815260200180615af16023913960400191505060405180910390fd5b005b600080fd5b3480156102be57600080fd5b506102c7611047565b604080516001600160a01b039092168252519081900360200190f35b3480156102ef57600080fd5b5061030d6004803603602081101561030657600080fd5b5035611056565b60408051918252519081900360200190f35b34801561032b57600080fd5b506103586004803603604081101561034257600080fd5b50803590602001356001600160a01b0316611074565b604080519115158252519081900360200190f35b34801561037857600080fd5b5061030d6004803603602081101561038f57600080fd5b50356001600160a01b03166114ee565b3480156103ab57600080fd5b5061030d611500565b3480156103c057600080fd5b506102c7611506565b3480156103d557600080fd5b5061030d611515565b3480156103ea57600080fd5b5061030d6004803603602081101561040157600080fd5b50356001600160a01b031661151b565b34801561041d57600080fd5b5061043b6004803603602081101561043457600080fd5b503561152d565b604051808d6001600160a01b031681526020018c6001600160a01b031681526020018b81526020018a81526020018915158152602001886001600160a01b0316815260200187815260200186815260200185815260200184815260200183815260200182151581526020019c5050505050505050505050505060405180910390f35b3480156104c957600080fd5b50610358600480360360408110156104e057600080fd5b50803590602001356001600160a01b0316611599565b34801561050257600080fd5b506102ab6004803603602081101561051957600080fd5b5035611941565b34801561052c57600080fd5b506102ab6004803603604081101561054357600080fd5b506001600160a01b0381351690602001356119c9565b34801561056557600080fd5b506103586004803603604081101561057c57600080fd5b50803590602001356001600160a01b0316611a2d565b34801561059e57600080fd5b506102ab600480360360408110156105b557600080fd5b5080359060200135611dc0565b6102ab60048036036101008110156105d957600080fd5b810190602081018135600160201b8111156105f357600080fd5b82018360208201111561060557600080fd5b803590602001918460208302840111600160201b8311171561062657600080fd5b919080806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250929550506001600160a01b0383351693505050602081013590604081013590606081013515159060808101359060a08101359060c00135611e56565b34801561069e57600080fd5b506102ab600480360360408110156106b557600080fd5b506001600160a01b038135169060200135151561201c565b3480156106d957600080fd5b50610358600480360360208110156106f057600080fd5b50356001600160a01b03166120c9565b34801561070c57600080fd5b5061030d6120de565b34801561072157600080fd5b506103586120e4565b34801561073657600080fd5b506102c76120ed565b34801561074b57600080fd5b506102ab6004803603606081101561076257600080fd5b50803590602081013590604001356120fc565b34801561078157600080fd5b5061030d6004803603602081101561079857600080fd5b503561219d565b3480156107ab57600080fd5b506102ab600480360360208110156107c257600080fd5b50356121aa565b3480156107d557600080fd5b5061030d612232565b3480156107ea57600080fd5b506108086004803603602081101561080157600080fd5b5035612238565b60408051602080825283518183015283519192839290830191858101910280838360005b8381101561084457818101518382015260200161082c565b505050509050019250505060405180910390f35b34801561086457600080fd5b506103586004803603604081101561087b57600080fd5b50803590602001356001600160a01b0316612363565b34801561089d57600080fd5b5061030d600480360360408110156108b457600080fd5b506001600160a01b0381351690602001356126f1565b3480156108d657600080fd5b5061030d600480360360208110156108ed57600080fd5b50356001600160a01b0316612737565b34801561090957600080fd5b5061030d612749565b34801561091e57600080fd5b5061030d61274f565b34801561093357600080fd5b506102ab6004803603602081101561094a57600080fd5b50356001600160a01b0316612755565b34801561096657600080fd5b506102ab6004803603602081101561097d57600080fd5b503515156127f6565b34801561099257600080fd5b50610808600480360360208110156109a957600080fd5b503561288a565b3480156109bc57600080fd5b5061030d600480360360208110156109d357600080fd5b50356001600160a01b03166129a7565b3480156109ef57600080fd5b5061030d6129b9565b348015610a0457600080fd5b506102ab60048036036040811015610a1b57600080fd5b50803590602001356001600160a01b03166129bf565b348015610a3d57600080fd5b5061030d612b9f565b348015610a5257600080fd5b506102ab60048036036020811015610a6957600080fd5b50356001600160a01b0316612ba5565b6102ab6004803603610120811015610a9057600080fd5b810190602081018135600160201b811115610aaa57600080fd5b820183602082011115610abc57600080fd5b803590602001918460208302840111600160201b83111715610add57600080fd5b919080806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250929550506001600160a01b0383351693505050602081013590604081013590606081013590608081013515159060a08101359060c08101359060e00135612c46565b348015610b5b57600080fd5b5061030d612e32565b348015610b7057600080fd5b506102ab60048036036020811015610b8757600080fd5b50356001600160a01b0316612e38565b348015610ba357600080fd5b506102ab60048036036060811015610bba57600080fd5b506001600160a01b03813581169160208101359091169060400135612ea7565b6102ab6004803603610140811015610bf157600080fd5b810190602081018135600160201b811115610c0b57600080fd5b820183602082011115610c1d57600080fd5b803590602001918460208302840111600160201b83111715610c3e57600080fd5b919080806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250929550505081356001600160a01b0390811693506020830135926040810135925060608101351515916080820135169060a08101359060c08101359060e08101359061010001351515612f7c565b348015610cc857600080fd5b506102ab60048036036060811015610cdf57600080fd5b810190602081018135600160201b811115610cf957600080fd5b820183602082011115610d0b57600080fd5b803590602001918460208302840111600160201b83111715610d2c57600080fd5b9190808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152509295949360208101935035915050600160201b811115610d7b57600080fd5b820183602082011115610d8d57600080fd5b803590602001918460208302840111600160201b83111715610dae57600080fd5b9190808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152509295949360208101935035915050600160201b811115610dfd57600080fd5b820183602082011115610e0f57600080fd5b803590602001918460208302840111600160201b83111715610e3057600080fd5b919080806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250929550613136945050505050565b348015610e7a57600080fd5b506102ab60048036036040811015610e9157600080fd5b506001600160a01b0381358116916020013516613325565b348015610eb557600080fd5b50610ebe613409565b604080519485526020850193909352838301919091526060830152519081900360800190f35b348015610ef057600080fd5b506102ab60048036036040811015610f0757600080fd5b50803590602001356001600160a01b031661341b565b348015610f2957600080fd5b506102c76135fb565b348015610f3e57600080fd5b506102c761360a565b348015610f5357600080fd5b5061030d60048036036020811015610f6a57600080fd5b50356001600160a01b0316613619565b348015610f8657600080fd5b50610fa460048036036020811015610f9d57600080fd5b503561362b565b604080516001600160a01b039c8d1681529a909b1660208b0152898b01989098526060890196909652608088019490945291151560a087015260c086015260e085015261010084015261012083015215156101408201529051908190036101600190f35b34801561101457600080fd5b506102c7613695565b34801561102957600080fd5b506102ab6004803603602081101561104057600080fd5b50356136a4565b6008546001600160a01b031681565b6011818154811061106357fe5b600091825260209091200154905081565b6000600260005414156110bc576040805162461bcd60e51b815260206004820152601f602482015260008051602061587f833981519152604482015290519081900360640190fd5b60026000556110c9615677565b60008481526019602090815260409182902082516101a08101845281546001600160a01b031681526001820180548551818602810186019096528086529194929385810193929083018282801561114957602002820191906000526020600020905b81546001600160a01b0316815260019091019060200180831161112b575b505050918352505060028201546001600160a01b0390811660208301526003830154604083015260048301546060830152600583015460ff8082161515608085015261010091829004831660a0850152600685015460c0850152600785015460e08501526008850154918401919091526009840154610120840152600a840154610140840152600b909301549092161515610160909101528151919250166111f55760019150506114e3565b6000611210826101400151836101600151846000015161372c565b905080611222576000925050506114e3565b600085815260196020526040812080546001600160a01b03191681559061124c60018301826156fe565b506002810180546001600160a01b0319169055600060038201819055600482018190556005820180546001600160a81b031916905560068201819055600782018190556008820181905560098201819055600a8201819055600b909101805460ff191690558251602084015180516112ef92919084906112c857fe5b60200260200101518560400151866060015187608001518860a00151308a60e001516138c4565b9050600183602001515111156113595760035460208401518051611342926001600160a01b031691849160009061132257fe5b60200260200101516001600160a01b0316613c779092919063ffffffff16565b611356836020015184610100015130613cce565b90505b8261018001511561137757611372818460c00151613d4c565b611398565b6113988360c001518285602001516001876020015151038151811061132257fe5b6113a783610120015186613de7565b82600001516001600160a01b03167f21435c5b618d77ff3657140cd3318e2cffaebc5e0e1b7318f56a9ba4044c3ed284602001518560400151866060015187608001518860a001518960c001518a60e001518b61010001518c610120015161141d8e610140015143613e6090919063ffffffff16565b6101608f015161142e904290613e60565b60405180806020018c6001600160a01b031681526020018b81526020018a81526020018915158152602001886001600160a01b0316815260200187815260200186815260200185815260200184815260200183815260200182810382528d818151815260200191508051906020019060200280838360005b838110156114be5781810151838201526020016114a6565b505050509050019c5050505050505050505050505060405180910390a2600193505050505b600160005592915050565b600a6020526000908152604090205481565b61271081565b6001546001600160a01b031681565b60145481565b60096020526000908152604090205481565b6019602052600090815260409020805460028201546003830154600484015460058501546006860154600787015460088801546009890154600a8a0154600b909a01546001600160a01b03998a169a988a16999798969760ff808816986101009098049091169691168c565b6000600260005414156115e1576040805162461bcd60e51b815260206004820152601f602482015260008051602061587f833981519152604482015290519081900360640190fd5b60026000556115ee61571c565b60008481526017602090815260409182902082516101808101845281546001600160a01b031681526001820180548551818602810186019096528086529194929385810193929083018282801561166e57602002820191906000526020600020905b81546001600160a01b03168152600190910190602001808311611650575b505050918352505060028201546001600160a01b039081166020830152600383015460408301526004830154606083015260058301546080830152600683015460ff908116151560a0840152600784015460c0840152600884015460e08401526009840154610100840152600a840154610120840152600b9093015490921615156101409091015281519192501661170a5760019150506114e3565b60006117258261012001518361014001518460000151613ea2565b905080611737576000925050506114e3565b600085815260176020526040812080546001600160a01b03191681559061176160018301826156fe565b506002810180546001600160a01b0319169055600060038201819055600482018190556005820181905560068201805460ff19908116909155600783018290556008830182905560098301829055600a830191909155600b90910180549091169055610160820151156117e5576117e082606001518360000151613d4c565b611803565b61180382600001518360600151846020015160008151811061132257fe5b61181282610100015185613de7565b81600001516001600160a01b03167f35b638e650e2328786fb405bd69d2083dbedc018d086662e74b775b4f1dae4bf83602001518460400151856060015186608001518760a001518860c001518960e001518a61010001516118828c610120015143613e6090919063ffffffff16565b6101408d0151611893904290613e60565b60405180806020018b6001600160a01b031681526020018a8152602001898152602001888152602001871515815260200186815260200185815260200184815260200183815260200182810382528c818151815260200191508051906020019060200280838360005b838110156119145781810151838201526020016118fc565b505050509050019b50505050505050505050505060405180910390a2600192505050600160005592915050565b6002546001600160a01b0316331461198e576040805162461bcd60e51b815260206004820152601e60248201526000805160206159df833981519152604482015290519081900360640190fd5b60078190556040805182815290517f21167d0d4661af93817ebce920f18986eed3d75d5e1c03f2aed05efcbafbc4529181900360200190a150565b6001546001600160a01b03163314611a16576040805162461bcd60e51b815260206004820152601560248201526000805160206158c0833981519152604482015290519081900360640190fd5b611a296001600160a01b03831682613f12565b5050565b600060026000541415611a75576040805162461bcd60e51b815260206004820152601f602482015260008051602061587f833981519152604482015290519081900360640190fd5b6002600055611a8261571c565b60008481526017602090815260409182902082516101808101845281546001600160a01b0316815260018201805485518186028101860190965280865291949293858101939290830182828015611b0257602002820191906000526020600020905b81546001600160a01b03168152600190910190602001808311611ae4575b505050918352505060028201546001600160a01b039081166020830152600383015460408301526004830154606083015260058301546080830152600683015460ff908116151560a0840152600784015460c0840152600884015460e08401526009840154610100840152600a840154610120840152600b90930154909216151561014090910152815191925016611b9e5760019150506114e3565b6000611bb9826101200151836101400151846000015161372c565b905080611bcb576000925050506114e3565b600085815260176020526040812080546001600160a01b031916815590611bf560018301826156fe565b506002810180546001600160a01b0319169055600060038201819055600482018190556005820181905560068201805460ff19908116909155600783018290556008830182905560098301829055600a830191909155600b90910180549091169055606082015115611d0357606082015160208301515160011015611cb257600354606084015160208501518051611c9c936001600160a01b031692919060009061132257fe5b611caf8360200151846080015130613cce565b90505b6000611cd23385602001518487604001518860c001518960a00151613ff7565b60035460208601518051929350611d00926001600160a01b0390921691849190600019810190811061132257fe5b50505b815160208301518051611d419291906000198101908110611d2057fe5b602002602001015184604001518560a001518660c001518760e001516140d6565b611d5082610100015185613de7565b81600001516001600160a01b03167f1be316b94d38c07bd41cdb4913772d0a0a82802786a2f8b657b6e85dbcdfc64183602001518460400151856060015186608001518760a001518860c001518960e001518a61010001516118828c610120015143613e6090919063ffffffff16565b6002546001600160a01b03163314611e0d576040805162461bcd60e51b815260206004820152601e60248201526000805160206159df833981519152604482015290519081900360640190fd5b60138290556014819055604080518381526020810183905281517febb0f666150f4be5b60c45df8f3e49992510b0128027fe58eea6110f296493bc929181900390910190a15050565b60026000541415611e9c576040805162461bcd60e51b815260206004820152601f602482015260008051602061587f833981519152604482015290519081900360640190fd5b6002600055600c54821015611ee25760405162461bcd60e51b815260040180806020018281038252602481526020018061585b6024913960400191505060405180910390fd5b81341015611f215760405162461bcd60e51b815260040180806020018281038252602181526020018061589f6021913960400191505060405180910390fd5b875160011480611f32575087516002145b611f6d5760405162461bcd60e51b815260040180806020018281038252602481526020018061590b6024913960400191505060405180910390fd5b60055488516001600160a01b03909116908990600090611f8957fe5b60200260200101516001600160a01b031614611fda576040805162461bcd60e51b815260206004820152601d6024820152600080516020615969833981519152604482015290519081900360640190fd5b611fe26145d2565b611feb8161463e565b6000611ff73484613e60565b905061200c338a8a848b8b8b8b8b60016146b2565b5050600160005550505050505050565b6002546001600160a01b03163314612069576040805162461bcd60e51b815260206004820152601e60248201526000805160206159df833981519152604482015290519081900360640190fd5b6001600160a01b038216600081815260156020908152604091829020805460ff1916851515908117909155825190815291517ffbabc02389290a451c6e600d05bf9887b99bfad39d8e1237e4e3df042e4941fe9281900390910190a25050565b60156020526000908152604090205460ff1681565b600e5481565b60105460ff1681565b6005546001600160a01b031681565b6002546001600160a01b03163314612149576040805162461bcd60e51b815260206004820152601e60248201526000805160206159df833981519152604482015290519081900360640190fd5b600d839055600e829055600f819055604080518481526020810184905280820183905290517fb98e759701eaca2e60c25e91109003c1c7442ef731b5d569037063005da8254d9181900360600190a1505050565b6012818154811061106357fe5b6002546001600160a01b031633146121f7576040805162461bcd60e51b815260206004820152601e60248201526000805160206159df833981519152604482015290519081900360640190fd5b60068190556040805182815290517f974fd3c1fcb4653dfc4fb740c4c692cd212d55c28f163f310128cb64d83006759181900360200190a150565b600d5481565b6060612242615677565b60008381526019602090815260409182902082516101a08101845281546001600160a01b03168152600182018054855181860281018601909652808652919492938581019392908301828280156122c257602002820191906000526020600020905b81546001600160a01b031681526001909101906020018083116122a4575b505050918352505060028201546001600160a01b039081166020808401919091526003840154604084015260048401546060840152600584015460ff808216151560808601526101009182900490931660a0850152600685015460c0850152600785015460e08501526008850154908401526009840154610120840152600a840154610140840152600b909301541615156101609091015201519392505050565b6000600260005414156123ab576040805162461bcd60e51b815260206004820152601f602482015260008051602061587f833981519152604482015290519081900360640190fd5b60026000556123b8615677565b60008481526019602090815260409182902082516101a08101845281546001600160a01b031681526001820180548551818602810186019096528086529194929385810193929083018282801561243857602002820191906000526020600020905b81546001600160a01b0316815260019091019060200180831161241a575b505050918352505060028201546001600160a01b0390811660208301526003830154604083015260048301546060830152600583015460ff8082161515608085015261010091829004831660a0850152600685015460c0850152600785015460e08501526008850154918401919091526009840154610120840152600a840154610140840152600b909301549092161515610160909101528151919250166124e45760019150506114e3565b60006124ff8261014001518361016001518460000151613ea2565b905080612511576000925050506114e3565b600085815260196020526040812080546001600160a01b03191681559061253b60018301826156fe565b506002810180546001600160a01b0319169055600060038201819055600482018190556005820180546001600160a81b031916905560068201819055600782018190556008820181905560098201819055600a820155600b01805460ff191690556101208201516125ac9085613de7565b81600001516001600160a01b03167f87abfd78e844f28318363bdf3da99eab2f4a2da9ff7ae365484507f7b6c3f80583602001518460400151856060015186608001518760a001518860c001518960e001518a61010001518b61012001516126228d610140015143613e6090919063ffffffff16565b6101608e0151612633904290613e60565b60405180806020018c6001600160a01b031681526020018b81526020018a81526020018915158152602001886001600160a01b0316815260200187815260200186815260200185815260200184815260200183815260200182810382528d818151815260200191508051906020019060200280838360005b838110156126c35781810151838201526020016126ab565b505050509050019c5050505050505050505050505060405180910390a2600192505050600160005592915050565b6000828260405160200180836001600160a01b031660601b8152601401828152602001925050506040516020818303038152906040528051906020012090505b92915050565b60166020526000908152604090205481565b600c5481565b60065481565b6001546001600160a01b031633146127a2576040805162461bcd60e51b815260206004820152601560248201526000805160206158c0833981519152604482015290519081900360640190fd5b600280546001600160a01b0383166001600160a01b0319909116811790915560408051918252517f5a272403b402d892977df56625f4164ccaf70ca3863991c43ecfe76a6905b0a19181900360200190a150565b6002546001600160a01b03163314612843576040805162461bcd60e51b815260206004820152601e60248201526000805160206159df833981519152604482015290519081900360640190fd5b6010805482151560ff19909116811790915560408051918252517f4eb87a5935d402aa24c01b45bfb30adefcd2328b480f2d967864de4b64ea929f9181900360200190a150565b606061289461571c565b60008381526017602090815260409182902082516101808101845281546001600160a01b031681526001820180548551818602810186019096528086529194929385810193929083018282801561291457602002820191906000526020600020905b81546001600160a01b031681526001909101906020018083116128f6575b505050918352505060028201546001600160a01b0316602080830191909152600383015460408301526004830154606083015260058301546080830152600683015460ff908116151560a0840152600784015460c0840152600884015460e08401526009840154610100840152600a840154610120840152600b9093015490921615156101409091015201519392505050565b600b6020526000908152604090205481565b60075481565b3360009081526015602052604090205460ff16612a11576040805162461bcd60e51b81526020600482015260196024820152600080516020615ad1833981519152604482015290519081900360640190fd5b601354601154808210612a25575050611a29565b80841115612a31578093505b83821015612b9757600060118381548110612a4857fe5b90600052602060002001549050306001600160a01b03166327b42c0f82866040518363ffffffff1660e01b815260040180838152602001826001600160a01b0316815260200192505050602060405180830381600087803b158015612aac57600080fd5b505af1925050508015612ad157506040513d6020811015612acc57600080fd5b505160015b612b65576040805163225fc9fd60e01b8152600481018390526001600160a01b03861660248201529051309163225fc9fd9160448083019260209291908290030181600087803b158015612b2457600080fd5b505af1925050508015612b4957506040513d6020811015612b4457600080fd5b505160015b612b5257612b60565b80612b5e575050612b97565b505b612b73565b80612b71575050612b97565b505b60118381548110612b8057fe5b600091825260208220015550600190910190612a31565b506013555050565b60135481565b6002546001600160a01b03163314612bf2576040805162461bcd60e51b815260206004820152601e60248201526000805160206159df833981519152604482015290519081900360640190fd5b600880546001600160a01b0383166001600160a01b0319909116811790915560408051918252517f828abcccea18192c21d645e575652c49e20b986dab777906fc473d056b01b6a89181900360200190a150565b60026000541415612c8c576040805162461bcd60e51b815260206004820152601f602482015260008051602061587f833981519152604482015290519081900360640190fd5b6002600055600c54821015612cd25760405162461bcd60e51b815260040180806020018281038252602481526020018061585b6024913960400191505060405180910390fd5b813414612d105760405162461bcd60e51b815260040180806020018281038252602181526020018061589f6021913960400191505060405180910390fd5b885160011480612d21575088516002145b612d5c5760405162461bcd60e51b815260040180806020018281038252602481526020018061590b6024913960400191505060405180910390fd5b612d646145d2565b612d6d8161463e565b8615612e1f5760045489516001600160a01b0390911690631b827878908b90600090612d9557fe5b602002602001015133308b6040518563ffffffff1660e01b815260040180856001600160a01b03168152602001846001600160a01b03168152602001836001600160a01b03168152602001828152602001945050505050600060405180830381600087803b158015612e0657600080fd5b505af1158015612e1a573d6000803e3d6000fd5b505050505b61200c338a8a8a8a8a8a8a8a60006146b2565b600f5481565b6001546001600160a01b03163314612e85576040805162461bcd60e51b815260206004820152601560248201526000805160206158c0833981519152604482015290519081900360640190fd5b600180546001600160a01b0319166001600160a01b0392909216919091179055565b6001546001600160a01b03163314612ef4576040805162461bcd60e51b815260206004820152601560248201526000805160206158c0833981519152604482015290519081900360640190fd5b826001600160a01b031663095ea7b383836040518363ffffffff1660e01b815260040180836001600160a01b0316815260200182815260200192505050602060405180830381600087803b158015612f4b57600080fd5b505af1158015612f5f573d6000803e3d6000fd5b505050506040513d6020811015612f7557600080fd5b5050505050565b60026000541415612fc2576040805162461bcd60e51b815260206004820152601f602482015260008051602061587f833981519152604482015290519081900360640190fd5b6002600055600c548210156130085760405162461bcd60e51b815260040180806020018281038252602481526020018061585b6024913960400191505060405180910390fd5b8134146130465760405162461bcd60e51b815260040180806020018281038252602181526020018061589f6021913960400191505060405180910390fd5b895160011480613057575089516002145b6130925760405162461bcd60e51b815260040180806020018281038252602481526020018061590b6024913960400191505060405180910390fd5b801561310a576005548a516001600160a01b03909116908b9060001981019081106130b957fe5b60200260200101516001600160a01b03161461310a576040805162461bcd60e51b815260206004820152601d6024820152600080516020615969833981519152604482015290519081900360640190fd5b6131126145d2565b613125338b8b8b8b8b8b8b8b8b8b614992565b505060016000555050505050505050565b6002546001600160a01b03163314613183576040805162461bcd60e51b815260206004820152601e60248201526000805160206159df833981519152604482015290519081900360640190fd5b60005b835181101561321e57600084828151811061319d57fe5b602002602001015190508382815181106131b357fe5b6020026020010151600a6000836001600160a01b03166001600160a01b03168152602001908152602001600020819055508282815181106131f057fe5b6020908102919091018101516001600160a01b039092166000908152600b9091526040902055600101613186565b507fae32d569b058895b9620d6552b09aaffedc9a6f396be4d595a224ad09f8b213983838360405180806020018060200180602001848103845287818151815260200191508051906020019060200280838360005b8381101561328b578181015183820152602001613273565b50505050905001848103835286818151815260200191508051906020019060200280838360005b838110156132ca5781810151838201526020016132b2565b50505050905001848103825285818151815260200191508051906020019060200280838360005b838110156133095781810151838201526020016132f1565b50505050905001965050505050505060405180910390a1505050565b6002546001600160a01b03163314613372576040805162461bcd60e51b815260206004820152601e60248201526000805160206159df833981519152604482015290519081900360640190fd5b6001600160a01b038216600090815260096020526040902054806133965750611a29565b6001600160a01b0383166000818152600960205260408120556133ba908383613c77565b604080516001600160a01b0380861682528416602082015280820183905290517f4f1b51dd7a2fcb861aa2670f668be66835c4ee12b4bbbf037e4d0018f39819e49181900360600190a1505050565b60135460115460145460125490919293565b3360009081526015602052604090205460ff1661346d576040805162461bcd60e51b81526020600482015260196024820152600080516020615ad1833981519152604482015290519081900360640190fd5b601454601254808210613481575050611a29565b8084111561348d578093505b838210156135f3576000601283815481106134a457fe5b90600052602060002001549050306001600160a01b0316630d4d003d82866040518363ffffffff1660e01b815260040180838152602001826001600160a01b0316815260200192505050602060405180830381600087803b15801561350857600080fd5b505af192505050801561352d57506040513d602081101561352857600080fd5b505160015b6135c15760408051633051b17160e11b8152600481018390526001600160a01b0386166024820152905130916360a362e29160448083019260209291908290030181600087803b15801561358057600080fd5b505af19250505080156135a557506040513d60208110156135a057600080fd5b505160015b6135ae576135bc565b806135ba5750506135f3565b505b6135cf565b806135cd5750506135f3565b505b601283815481106135dc57fe5b60009182526020822001555060019091019061348d565b506014555050565b6002546001600160a01b031681565b6004546001600160a01b031681565b60186020526000908152604090205481565b6017602052600090815260409020805460028201546003830154600484015460058501546006860154600787015460088801546009890154600a8a0154600b909a01546001600160a01b03998a169a999098169896979596949560ff94851695939492939192168b565b6003546001600160a01b031681565b6002546001600160a01b031633146136f1576040805162461bcd60e51b815260206004820152601e60248201526000805160206159df833981519152604482015290519081900360640190fd5b600c8190556040805182815290517f52a8358457e20bbb36e4086b83fb0749599f1893fe4c35a876c46dc4886d12db9181900360200190a150565b600042613744600f5485614cb990919063ffffffff16565b116137805760405162461bcd60e51b8152600401808060200182810382526023815260200180615b3e6023913960400191505060405180910390fd5b60003330148061379f57503360009081526015602052604090205460ff165b60105490915060ff161580156137b3575080155b156137f3576040805162461bcd60e51b81526020600482015260196024820152600080516020615ad1833981519152604482015290519081900360640190fd5b8015613819574361380f600d5487614cb990919063ffffffff16565b11159150506138bd565b336001600160a01b03841614613864576040805162461bcd60e51b81526020600482015260196024820152600080516020615ad1833981519152604482015290519081900360640190fd5b4261387a600e5486614cb990919063ffffffff16565b11156138b75760405162461bcd60e51b8152600401808060200182810382526028815260200180615a806028913960400191505060405180910390fd5b60019150505b9392505050565b6003546000906001600160a01b031684156139955782816001600160a01b03166381a612d68a6040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b15801561392757600080fd5b505afa15801561393b573d6000803e3d6000fd5b505050506040513d602081101561395157600080fd5b505110156139905760405162461bcd60e51b81526004018080602001828103825260308152602001806159af6030913960400191505060405180910390fd5b613a4c565b82816001600160a01b031663e124e6d28a6040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b1580156139e357600080fd5b505afa1580156139f7573d6000803e3d6000fd5b505050506040513d6020811015613a0d57600080fd5b50511115613a4c5760405162461bcd60e51b8152600401808060200182810382526031815260200180615a4f6031913960400191505060405180910390fd5b6000816001600160a01b03166312d43a516040518163ffffffff1660e01b815260040160206040518083038186803b158015613a8757600080fd5b505afa158015613a9b573d6000803e3d6000fd5b505050506040513d6020811015613ab157600080fd5b5051604080516306d63c1d60e41b81526001600160a01b038581166004830152915192935090831691636d63c1d09160248082019260009290919082900301818387803b158015613b0157600080fd5b505af1158015613b15573d6000803e3d6000fd5b505050506000600460009054906101000a90046001600160a01b03166001600160a01b0316632662166b8d8d8d8d8d8d8d6040518863ffffffff1660e01b815260040180886001600160a01b03168152602001876001600160a01b03168152602001866001600160a01b031681526020018581526020018481526020018315158152602001826001600160a01b03168152602001975050505050505050602060405180830381600087803b158015613bcc57600080fd5b505af1158015613be0573d6000803e3d6000fd5b505050506040513d6020811015613bf657600080fd5b50516040805163d3c87bbb60e01b81526001600160a01b03868116600483015291519293509084169163d3c87bbb9160248082019260009290919082900301818387803b158015613c4657600080fd5b505af1158015613c5a573d6000803e3d6000fd5b50505050613c688c89614d11565b9b9a5050505050505050505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052613cc9908490614e9a565b505050565b6000835160021415613d1557613d0e84600081518110613cea57fe5b602002602001015185600181518110613cff57fe5b60200260200101518585614f4b565b90506138bd565b60405162461bcd60e51b8152600401808060200182810382526029815260200180615aa86029913960400191505060405180910390fd5b60055460408051632e1a7d4d60e01b81526004810185905290516001600160a01b0390921691632e1a7d4d9160248082019260009290919082900301818387803b158015613d9957600080fd5b505af1158015613dad573d6000803e3d6000fd5b50506040516001600160a01b038416925084156108fc02915084906000818181858888f19350505050158015613cc9573d6000803e3d6000fd5b60055460408051632e1a7d4d60e01b81526004810185905290516001600160a01b0390921691632e1a7d4d9160248082019260009290919082900301818387803b158015613e3457600080fd5b505af1158015613e48573d6000803e3d6000fd5b50611a29925050506001600160a01b03821683613f12565b60006138bd83836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250615021565b6000803330148061379f57503360009081526015602052604090205460ff1660105490915060ff161580156137b35750806137f3576040805162461bcd60e51b81526020600482015260196024820152600080516020615ad1833981519152604482015290519081900360640190fd5b80471015613f67576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e6365000000604482015290519081900360640190fd5b6040516000906001600160a01b0384169083908381818185875af1925050503d8060008114613fb2576040519150601f19603f3d011682016040523d82523d6000602084013e613fb7565b606091505b5050905080613cc95760405162461bcd60e51b815260040180806020018281038252603a81526020018061592f603a913960400191505060405180910390fd5b6000806140088888888888886150b8565b905080156140c757600061403f612710614039614032600654612710613e6090919063ffffffff16565b8a90615295565b906152ee565b9050600061404d8883613e60565b905060008960018b51038151811061406157fe5b602002602001015190506140a38260096000846001600160a01b03166001600160a01b0316815260200190815260200160002054614cb990919063ffffffff16565b6001600160a01b039091166000908152600960205260409020555091506140cc9050565b859150505b9695505050505050565b6003546001600160a01b031682156141a45781816001600160a01b031663e124e6d2876040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b15801561413657600080fd5b505afa15801561414a573d6000803e3d6000fd5b505050506040513d602081101561416057600080fd5b5051111561419f5760405162461bcd60e51b8152600401808060200182810382526031815260200180615a4f6031913960400191505060405180910390fd5b61425b565b81816001600160a01b03166381a612d6876040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b1580156141f257600080fd5b505afa158015614206573d6000803e3d6000fd5b505050506040513d602081101561421c57600080fd5b5051101561425b5760405162461bcd60e51b81526004018080602001828103825260308152602001806159af6030913960400191505060405180910390fd5b821561434c576001600160a01b0385166000908152600a6020526040902054801580159061430a57508061430886846001600160a01b031663f07456ce8a6040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b1580156142d657600080fd5b505afa1580156142ea573d6000803e3d6000fd5b505050506040513d602081101561430057600080fd5b505190614cb9565b115b156143465760405162461bcd60e51b815260040180806020018281038252602e81526020018061582d602e913960400191505060405180910390fd5b50614401565b6001600160a01b0385166000908152600b602052604090205480158015906143c35750806143c186846001600160a01b0316638a78daa88a6040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b1580156142d657600080fd5b115b156143ff5760405162461bcd60e51b815260040180806020018281038252602f8152602001806159ff602f913960400191505060405180910390fd5b505b6000816001600160a01b03166312d43a516040518163ffffffff1660e01b815260040160206040518083038186803b15801561443c57600080fd5b505afa158015614450573d6000803e3d6000fd5b505050506040513d602081101561446657600080fd5b5051604080516306d63c1d60e41b81526001600160a01b038581166004830152915192935090831691636d63c1d09160248082019260009290919082900301818387803b1580156144b657600080fd5b505af11580156144ca573d6000803e3d6000fd5b50506004805460408051630f8ee8bb60e11b81526001600160a01b038e8116948201949094528c841660248201528b84166044820152606481018b905289151560848201529051929091169350631f1dd176925060a48082019260009290919082900301818387803b15801561453f57600080fd5b505af1158015614553573d6000803e3d6000fd5b50505050806001600160a01b031663d3c87bbb836040518263ffffffff1660e01b815260040180826001600160a01b03168152602001915050600060405180830381600087803b1580156145a657600080fd5b505af11580156145ba573d6000803e3d6000fd5b505050506145c8888661532d565b5050505050505050565b341561463c57600560009054906101000a90046001600160a01b03166001600160a01b031663d0e30db0346040518263ffffffff1660e01b81526004016000604051808303818588803b15801561462857600080fd5b505af1158015612f75573d6000803e3d6000fd5b565b801580159061465757506008546001600160a01b031615155b156146af57600854604080516356b4b2ad60e01b81523360048201526024810184905290516001600160a01b03909216916356b4b2ad9160448082019260009290919082900301818387803b15801561462857600080fd5b50565b6001600160a01b038a166000908152601660205260408120546146d6906001614cb9565b6001600160a01b038c16600090815260166020526040902081905590506146fb61571c565b6040518061018001604052808d6001600160a01b031681526020018c81526020018b6001600160a01b031681526020018a81526020018981526020018881526020018715158152602001868152602001858152602001438152602001428152602001841515815250905060006147718d846126f1565b6000818152601760209081526040909120845181546001600160a01b0319166001600160a01b03909116178155848201518051939450859391926147bd92600185019290910190615793565b5060408201518160020160006101000a8154816001600160a01b0302191690836001600160a01b03160217905550606082015181600301556080820151816004015560a0820151816005015560c08201518160060160006101000a81548160ff02191690831515021790555060e082015181600701556101008201518160080155610120820151816009015561014082015181600a015561016082015181600b0160006101000a81548160ff02191690831515021790555090505060118190806001815401808255809150506001900390600052602060002001600090919091909150558c6001600160a01b03167fa89f00a1c1cd0de066abac1a05f9314520fef2a9b98f6a99ff4548ed1161c03c8d8d8d8d8d8d8d8d8c43423a60405180806020018d6001600160a01b031681526020018c81526020018b81526020018a8152602001891515815260200188815260200187815260200186815260200185815260200184815260200183815260200182810382528e818151815260200191508051906020019060200280838360005b8381101561496557818101518382015260200161494d565b505050509050019d505050505050505050505050505060405180910390a250505050505050505050505050565b6001600160a01b038b166000908152601860205260408120546149b6906001614cb9565b6001600160a01b038d16600090815260186020526040902081905590506149db615677565b604051806101a001604052808e6001600160a01b031681526020018d81526020018c6001600160a01b031681526020018b81526020018a81526020018915158152602001886001600160a01b0316815260200187815260200186815260200185815260200143815260200142815260200184151581525090506000614a608e846126f1565b6000818152601960209081526040909120845181546001600160a01b0319166001600160a01b0390911617815584820151805193945085939192614aac92600185019290910190615793565b5060408201518160020160006101000a8154816001600160a01b0302191690836001600160a01b03160217905550606082015181600301556080820151816004015560a08201518160050160006101000a81548160ff02191690831515021790555060c08201518160050160016101000a8154816001600160a01b0302191690836001600160a01b0316021790555060e0820151816006015561010082015181600701556101208201518160080155610140820151816009015561016082015181600a015561018082015181600b0160006101000a81548160ff02191690831515021790555090505060128190806001815401808255809150506001900390600052602060002001600090919091909150558d6001600160a01b03167f506f2634e4508d88b04b7511af75c6d4c29b2b6f4f5067676b9400b28f3761d28e8e8e8e8e8e8e8e8e8d434260405180806020018d6001600160a01b031681526020018c81526020018b81526020018a15158152602001896001600160a01b0316815260200188815260200187815260200186815260200185815260200184815260200183815260200182810382528e818151815260200191508051906020019060200280838360005b83811015614c8b578181015183820152602001614c73565b505050509050019d505050505050505050505050505060405180910390a25050505050505050505050505050565b6000828201838110156138bd576040805162461bcd60e51b815260206004820152601b60248201527a536166654d6174683a206164646974696f6e206f766572666c6f7760281b604482015290519081900360640190fd5b6008546001600160a01b031680614d285750611a29565b600080826001600160a01b031663534ef883866040518263ffffffff1660e01b815260040180826001600160a01b03168152602001915050604080518083038186803b158015614d7757600080fd5b505afa158015614d8b573d6000803e3d6000fd5b505050506040513d6040811015614da157600080fd5b508051602090910151909250905081614dbc57505050611a29565b7f474c763ff84bf2c2039a6d9fea955ecd0f724030e3c365b91169c6a16fe751b78585600360009054906101000a90046001600160a01b03166001600160a01b031663318bc6896040518163ffffffff1660e01b815260040160206040518083038186803b158015614e2d57600080fd5b505afa158015614e41573d6000803e3d6000fd5b505050506040513d6020811015614e5757600080fd5b5051604080516001600160a01b03948516815260208101939093528281019190915260608201869052918416608082015290519081900360a00190a15050505050565b6060614eef826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166154339092919063ffffffff16565b805190915015613cc957808060200190516020811015614f0e57600080fd5b5051613cc95760405162461bcd60e51b815260040180806020018281038252602a815260200180615b14602a913960400191505060405180910390fd5b60035460408051634998b10960e11b81526001600160a01b03878116600483015286811660248301528481166044830152915160009384931691639331621291606480830192602092919082900301818787803b158015614fab57600080fd5b505af1158015614fbf573d6000803e3d6000fd5b505050506040513d6020811015614fd557600080fd5b50519050838110156150185760405162461bcd60e51b815260040180806020018281038252602b8152602001806158e0602b913960400191505060405180910390fd5b95945050505050565b600081848411156150b05760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561507557818101518382015260200161505d565b50505050905090810190601f1680156150a25780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b6000826150c7575060006140cc565b816150d4575060016140cc565b6000866001885103815181106150e657fe5b602090810291909101015160035460408051634a3f088d60e01b81526001600160a01b038c81166004830152808516602483015289811660448301528815156064830152915193945091169160009182918491634a3f088d91608480830192610100929190829003018186803b15801561515f57600080fd5b505afa158015615173573d6000803e3d6000fd5b505050506040513d61010081101561518a57600080fd5b5080516020909101519092509050816151aa5760009450505050506140cc565b60006151b68388614cb9565b90506000846001600160a01b0316630a48d5a9878d6040518363ffffffff1660e01b815260040180836001600160a01b031681526020018281526020019250505060206040518083038186803b15801561520f57600080fd5b505afa158015615223573d6000803e3d6000fd5b505050506040513d602081101561523957600080fd5b5051905060006152498483614cb9565b9050600061525d8561403988612710615295565b9050600061527e83614039600754612710018861529590919063ffffffff16565b919091109f9e505050505050505050505050505050565b6000826152a457506000612731565b828202828482816152b157fe5b04146138bd5760405162461bcd60e51b8152600401808060200182810382526021815260200180615a2e6021913960400191505060405180910390fd5b60006138bd83836040518060400160405280601a815260200179536166654d6174683a206469766973696f6e206279207a65726f60301b81525061544a565b6008546001600160a01b0316806153445750611a29565b600080826001600160a01b031663534ef883866040518263ffffffff1660e01b815260040180826001600160a01b03168152602001915050604080518083038186803b15801561539357600080fd5b505afa1580156153a7573d6000803e3d6000fd5b505050506040513d60408110156153bd57600080fd5b5080516020918201516003546040805163318bc68960e01b815290519396509194507fc2414023ce7002ee98557d1e7be21e5559073336f2217ee5f9b2e50fd85f71ee93899389936001600160a01b039093169263318bc689926004808301939192829003018186803b158015614e2d57600080fd5b606061544284846000856154af565b949350505050565b600081836154995760405162461bcd60e51b815260206004820181815283516024840152835190928392604490910191908501908083836000831561507557818101518382015260200161505d565b5060008385816154a557fe5b0495945050505050565b6060824710156154f05760405162461bcd60e51b81526004018080602001828103825260268152602001806159896026913960400191505060405180910390fd5b6154f98561560b565b61554a576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b602083106155895780518252601f19909201916020918201910161556a565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d80600081146155eb576040519150601f19603f3d011682016040523d82523d6000602084013e6155f0565b606091505b5091509150615600828286615611565b979650505050505050565b3b151590565b606083156156205750816138bd565b8251156156305782518084602001fd5b60405162461bcd60e51b815260206004820181815284516024840152845185939192839260440191908501908083836000831561507557818101518382015260200161505d565b604051806101a0016040528060006001600160a01b031681526020016060815260200160006001600160a01b03168152602001600081526020016000815260200160001515815260200160006001600160a01b0316815260200160008152602001600081526020016000815260200160008152602001600081526020016000151581525090565b50805460008255906000526020600020908101906146af91906157f8565b60405180610180016040528060006001600160a01b031681526020016060815260200160006001600160a01b03168152602001600081526020016000815260200160008152602001600015158152602001600081526020016000815260200160008152602001600081526020016000151581525090565b8280548282559060005260206000209081019282156157e8579160200282015b828111156157e857825182546001600160a01b0319166001600160a01b039091161782556020909201916001909101906157b3565b506157f492915061580d565b5090565b5b808211156157f457600081556001016157f9565b5b808211156157f45780546001600160a01b031916815560010161580e56fe42617365506f736974696f6e4d616e616765723a206d617820676c6f62616c206c6f6e6773206578636565646564506f736974696f6e526f757465723a20696e76616c696420657865637574696f6e4665655265656e7472616e637947756172643a207265656e7472616e742063616c6c00506f736974696f6e526f757465723a20696e76616c6964206d73672e76616c7565476f7665726e61626c653a20666f7262696464656e000000000000000000000042617365506f736974696f6e4d616e616765723a20696e73756666696369656e7420616d6f756e744f7574506f736974696f6e526f757465723a20696e76616c6964205f70617468206c656e677468416464726573733a20756e61626c6520746f2073656e642076616c75652c20726563697069656e74206d61792068617665207265766572746564506f736974696f6e526f757465723a20696e76616c6964205f70617468000000416464726573733a20696e73756666696369656e742062616c616e636520666f722063616c6c42617365506f736974696f6e4d616e616765723a206d61726b207072696365206c6f776572207468616e206c696d697442617365506f736974696f6e4d616e616765723a20666f7262696464656e000042617365506f736974696f6e4d616e616765723a206d617820676c6f62616c2073686f727473206578636565646564536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f7742617365506f736974696f6e4d616e616765723a206d61726b20707269636520686967686572207468616e206c696d6974506f736974696f6e526f757465723a206d696e2064656c6179206e6f74207965742070617373656442617365506f736974696f6e4d616e616765723a20696e76616c6964205f706174682e6c656e677468506f736974696f6e526f757465723a20666f7262696464656e0000000000000042617365506f736974696f6e4d616e616765723a20696e76616c69642073656e6465725361666545524332303a204552433230206f7065726174696f6e20646964206e6f742073756363656564506f736974696f6e526f757465723a2072657175657374206861732065787069726564a2646970667358221220e4cbb689a52f216ca347ab91b077f8b2fc0c232b8793d4f0717f5c8e65ff6d9b64736f6c634300060c00330000000000000000000000009ab2de34a33fb459b538c43f251eb825645e85950000000000000000000000005f719c2f1095f7b9fc68a68e35b51194f4b6abe8000000000000000000000000b31f66aa3c1e785363f0875a1b74e27b85fd66c7000000000000000000000000000000000000000000000000000000000000001e000000000000000000000000000000000000000000000000003c6568f12e8000

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

0000000000000000000000009ab2de34a33fb459b538c43f251eb825645e85950000000000000000000000005f719c2f1095f7b9fc68a68e35b51194f4b6abe8000000000000000000000000b31f66aa3c1e785363f0875a1b74e27b85fd66c7000000000000000000000000000000000000000000000000000000000000001e000000000000000000000000000000000000000000000000003c6568f12e8000

-----Decoded View---------------
Arg [0] : _vault (address): 0x9ab2de34a33fb459b538c43f251eb825645e8595
Arg [1] : _router (address): 0x5f719c2f1095f7b9fc68a68e35b51194f4b6abe8
Arg [2] : _weth (address): 0xb31f66aa3c1e785363f0875a1b74e27b85fd66c7
Arg [3] : _depositFee (uint256): 30
Arg [4] : _minExecutionFee (uint256): 17000000000000000

-----Encoded View---------------
5 Constructor Arguments found :
Arg [0] : 0000000000000000000000009ab2de34a33fb459b538c43f251eb825645e8595
Arg [1] : 0000000000000000000000005f719c2f1095f7b9fc68a68e35b51194f4b6abe8
Arg [2] : 000000000000000000000000b31f66aa3c1e785363f0875a1b74e27b85fd66c7
Arg [3] : 000000000000000000000000000000000000000000000000000000000000001e
Arg [4] : 000000000000000000000000000000000000000000000000003c6568f12e8000


Deployed ByteCode Sourcemap

47198:24662:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;38132:4;;-1:-1:-1;;;;;38132:4:0;38118:10;:18;38110:66;;;;-1:-1:-1;;;38110:66:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;47198:24662;;;;;36631:30;;;;;;;;;;;;;:::i;:::-;;;;-1:-1:-1;;;;;36631:30:0;;;;;;;;;;;;;;48271:44;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;48271:44:0;;:::i;:::-;;;;;;;;;;;;;;;;63472:1860;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;63472:1860:0;;;;;;-1:-1:-1;;;;;63472:1860:0;;:::i;:::-;;;;;;;;;;;;;;;;;;36726:54;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;36726:54:0;-1:-1:-1;;;;;36726:54:0;;:::i;36064:52::-;;;;;;;;;;;;;:::i;35205:18::-;;;;;;;;;;;;;:::i;48429:47::-;;;;;;;;;;;;;:::i;36670:::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;36670:47:0;-1:-1:-1;;;;;36670:47:0;;:::i;48758:76::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;48758:76:0;;:::i;:::-;;;;;-1:-1:-1;;;;;48758:76:0;;;;;;-1:-1:-1;;;;;48758:76:0;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;48758:76:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;62047:1417;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;62047:1417:0;;;;;;-1:-1:-1;;;;;62047:1417:0;;:::i;38472:238::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;38472:238:0;;:::i;39856:127::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;39856:127:0;;;;;;;;:::i;60149:1890::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;60149:1890:0;;;;;;-1:-1:-1;;;;;60149:1890:0;;:::i;52928:419::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;52928:419:0;;;;;;;:::i;57580:1087::-;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;57580:1087:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;57580:1087:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;57580:1087:0;;-1:-1:-1;;;;;;;57580:1087:0;;;;-1:-1:-1;;;57580:1087:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;51976:191::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;51976:191:0;;;;;;;;;;:::i;48485:49::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;48485:49:0;-1:-1:-1;;;;;48485:49:0;;:::i;48150:33::-;;;;;;;;;;;;;:::i;48226:36::-;;;;;;;;;;;;;:::i;36209:19::-;;;;;;;;;;;;;:::i;52556:364::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;52556:364:0;;;;;;;;;;;;:::i;48322:44::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;48322:44:0;;:::i;38316:148::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;38316:148:0;;:::i;48109:34::-;;;;;;;;;;;;;:::i;66944:213::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;66944:213:0;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;65340:1209;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;65340:1209:0;;;;;;-1:-1:-1;;;;;65340:1209:0;;:::i;66557:158::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;66557:158:0;;;;;;;;:::i;48543:58::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;48543:58:0;-1:-1:-1;;;;;48543:58:0;;:::i;48070:30::-;;;;;;;;;;;;;:::i;36544:25::-;;;;;;;;;;;;;:::i;38192:116::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;38192:116:0;-1:-1:-1;;;;;38192:116:0;;:::i;52361:187::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;52361:187:0;;;;:::i;66723:213::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;66723:213:0;;:::i;36787:55::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;36787:55:0;-1:-1:-1;;;;;36787:55:0;;:::i;36576:46::-;;;;;;;;;;;;;:::i;53355:1605::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;53355:1605:0;;;;;;-1:-1:-1;;;;;53355:1605:0;;:::i;48375:47::-;;;;;;;;;;;;;:::i;38718:178::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;38718:178:0;-1:-1:-1;;;;;38718:178:0;;:::i;56451:1121::-;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;56451:1121:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;56451:1121:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;56451:1121:0;;-1:-1:-1;;;;;;;56451:1121:0;;;;-1:-1:-1;;;56451:1121:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;48190:27::-;;;;;;;;;;;;;:::i;35405:76::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;35405:76:0;-1:-1:-1;;;;;35405:76:0;;:::i;39703:145::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;39703:145:0;;;;;;;;;;;;;;;;;:::i;58675:1136::-;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;58675:1136:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;58675:1136:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;58675:1136:0;;-1:-1:-1;;;58675:1136:0;;-1:-1:-1;;;;;58675:1136:0;;;;-1:-1:-1;58675:1136:0;;;;;;;;;;-1:-1:-1;58675:1136:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;38904:464::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;38904:464:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;38904:464:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;38904:464:0;;;;;;;;-1:-1:-1;38904:464:0;;-1:-1:-1;;;;;38904:464:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;38904:464:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;38904:464:0;;;;;;;;-1:-1:-1;38904:464:0;;-1:-1:-1;;;;;38904:464:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;38904:464:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;38904:464:0;;-1:-1:-1;38904:464:0;;-1:-1:-1;;;;;38904:464:0:i;39376:319::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;39376:319:0;;;;;;;;;;:::i;59819:322::-;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;54968:1475;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;54968:1475:0;;;;;;-1:-1:-1;;;;;54968:1475:0;;:::i;36125:20::-;;;;;;;;;;;;;:::i;36181:21::-;;;;;;;;;;;;;:::i;48693:58::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;48693:58:0;-1:-1:-1;;;;;48693:58:0;;:::i;48608:76::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;48608:76:0;;:::i;:::-;;;;-1:-1:-1;;;;;48608:76:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;36154:20;;;;;;;;;;;;;:::i;52175:178::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;52175:178:0;;:::i;36631:30::-;;;-1:-1:-1;;;;;36631:30:0;;:::o;48271:44::-;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;48271:44:0;:::o;63472:1860::-;63587:4;32718:1;33324:7;;:19;;33316:63;;;;;-1:-1:-1;;;33316:63:0;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;33316:63:0;;;;;;;;;;;;;;;32718:1;33457:7;:18;63604:38:::1;;:::i;:::-;63645:30;::::0;;;:24:::1;:30;::::0;;;;;;;;63604:71;;::::1;::::0;::::1;::::0;;;;-1:-1:-1;;;;;63604:71:0::1;::::0;;;;::::1;::::0;;;;;;::::1;::::0;;;;;;;;;;;;63645:30;;63604:71;;::::1;::::0;;;;::::1;::::0;;;::::1;;;;;;;;;;;;;;;;::::0;;-1:-1:-1;;;;;63604:71:0::1;::::0;;;;;::::1;::::0;::::1;;::::0;;::::1;;;;-1:-1:-1::0;;;63604:71:0;;;-1:-1:-1;;63604:71:0::1;::::0;::::1;::::0;-1:-1:-1;;;;;63604: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;;;;;63847:15;;63604:71;;-1:-1:-1;63847:29:0::1;63843:51;;63887:4;63880:11;;;;;63843:51;63906:18;63927:75;63946:7;:19;;;63967:7;:17;;;63986:7;:15;;;63927:18;:75::i;:::-;63906:96;;64018:13;64013:37;;64042:5;64035:12;;;;;;64013:37;64069:30;::::0;;;:24:::1;:30;::::0;;;;64062:37;;-1:-1:-1;;;;;;64062:37:0::1;::::0;;64069:30;64062:37:::1;::::0;;::::1;64069:30:::0;64062:37:::1;:::i;:::-;-1:-1:-1::0;64062:37:0::1;::::0;::::1;::::0;;-1:-1:-1;;;;;;64062:37:0::1;::::0;;::::1;;::::0;::::1;::::0;;;::::1;::::0;::::1;::::0;;;::::1;::::0;::::1;::::0;;-1:-1:-1;;;;;;64062: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;;-1:-1:-1;;64062:37:0::1;::::0;;64150:15;;64167:12:::1;::::0;::::1;::::0;:15;;64132:171:::1;::::0;64150:15;64167:12;64062:37;;64167:15:::1;;;;;;;;;;64184:7;:18;;;64204:7;:23;;;64229:7;:17;;;64248:7;:14;;;64272:4;64279:7;:23;;;64132:17;:171::i;:::-;64112:191;;64342:1;64320:7;:12;;;:19;:23;64316:187;;;64397:5;::::0;64367:12:::1;::::0;::::1;::::0;:15;;64360:54:::1;::::0;-1:-1:-1;;;;;64397:5:0::1;::::0;64404:9;;64397:5:::1;::::0;64367:15:::1;;;;;;;;;;-1:-1:-1::0;;;;;64360:36:0::1;;;:54;;;;;:::i;:::-;64441:50;64447:7;:12;;;64461:7;:14;;;64485:4;64441:5;:50::i;:::-;64429:62;;64316:187;64519:7;:19;;;64515:235;;;64554:65;64582:9;64601:7;:16;;;64554:27;:65::i;:::-;64515:235;;;64651:87;64710:7;:16;;;64728:9;64658:7;:12;;;64693:1;64671:7;:12;;;:19;:23;64658:37;;;;;;;64651:87;64761:60;64777:7;:20;;;64799:21;64761:15;:60::i;:::-;64877:7;:15;;;-1:-1:-1::0;;;;;64839:461:0::1;;64907:7;:12;;;64934:7;:18;;;64967:7;:23;;;65005:7;:17;;;65037:7;:14;;;65066:7;:16;;;65097:7;:23;;;65135:7;:14;;;65164:7;:20;;;65199:37;65216:7;:19;;;65199:12;:16;;:37;;;;:::i;:::-;65271:17;::::0;::::1;::::0;65251:38:::1;::::0;:15:::1;::::0;:19:::1;:38::i;:::-;64839:461;;;;;;;-1:-1:-1::0;;;;;64839:461:0::1;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1::0;;;;;64839:461:0::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;;::::1;::::0;;;::::1;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;65320:4;65313:11;;;;;33488:1;32674::::0;33636:7;:22;63472:1860;;-1:-1:-1;;63472:1860:0:o;36726:54::-;;;;;;;;;;;;;:::o;36064:52::-;36111:5;36064:52;:::o;35205:18::-;;;-1:-1:-1;;;;;35205:18:0;;:::o;48429:47::-;;;;:::o;36670:::-;;;;;;;;;;;;;:::o;48758:76::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;48758:76:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;62047:1417::-;62161:4;32718:1;33324:7;;:19;;33316:63;;;;;-1:-1:-1;;;33316:63:0;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;33316:63:0;;;;;;;;;;;;;;;32718:1;33457:7;:18;62178:38:::1;;:::i;:::-;62219:30;::::0;;;:24:::1;:30;::::0;;;;;;;;62178:71;;::::1;::::0;::::1;::::0;;;;-1:-1:-1;;;;;62178:71:0::1;::::0;;;;::::1;::::0;;;;;;::::1;::::0;;;;;;;;;;;;62219:30;;62178:71;;::::1;::::0;;;;::::1;::::0;;;::::1;;;;;;;;;;;;;;;;::::0;;-1:-1:-1;;;;;62178:71:0::1;::::0;;;;;::::1;::::0;::::1;;::::0;;::::1;;;;-1:-1:-1::0;;;62178:71:0;;;-1:-1:-1;;62178:71:0::1;::::0;::::1;::::0;-1:-1:-1;;;;;62178: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;;;;;62421:15;;62178:71;;-1:-1:-1;62421:29:0::1;62417:51;;62461:4;62454:11;;;;;62417:51;62480:17;62500:78;62522:7;:19;;;62543:7;:17;;;62562:7;:15;;;62500:21;:78::i;:::-;62480:98;;62594:12;62589:36;;62617:5;62610:12;;;;;;62589:36;62644:30;::::0;;;:24:::1;:30;::::0;;;;62637:37;;-1:-1:-1;;;;;;62637:37:0::1;::::0;;62644:30;62637:37:::1;::::0;;::::1;62644:30:::0;62637:37:::1;:::i;:::-;-1:-1:-1::0;62637:37:0::1;::::0;::::1;::::0;;-1:-1:-1;;;;;;62637:37:0::1;::::0;;::::1;;::::0;::::1;::::0;;;::::1;::::0;::::1;::::0;;;::::1;::::0;::::1;::::0;;;::::1;::::0;::::1;::::0;;-1:-1:-1;;62637: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;;62691:26:::1;::::0;::::1;::::0;62687:234:::1;;;62734:71;62762:7;:16;;;62788:7;:15;;;62734:27;:71::i;:::-;62687:234;;;62838:71;62875:7;:15;;;62892:7;:16;;;62845:7;:12;;;62858:1;62845:15;;;;;;;62838:71;62932:60;62948:7;:20;;;62970:21;62932:15;:60::i;:::-;63047:7;:15;;;-1:-1:-1::0;;;;;63010:422:0::1;;63077:7;:12;;;63104:7;:18;;;63137:7;:16;;;63168:7;:14;;;63197:7;:17;;;63229:7;:14;;;63258:7;:23;;;63296:7;:20;;;63331:37;63348:7;:19;;;63331:12;:16;;:37;;;;:::i;:::-;63403:17;::::0;::::1;::::0;63383:38:::1;::::0;:15:::1;::::0;:19:::1;:38::i;:::-;63010:422;;;;;;;-1:-1:-1::0;;;;;63010:422:0::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;;::::1;::::0;;;::::1;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;63452:4;63445:11;;;;32674:1:::0;33636:7;:22;62047:1417;;-1:-1:-1;;62047:1417:0:o;38472:238::-;37716:5;;-1:-1:-1;;;;;37716:5:0;37702:10;:19;37694:62;;;;;-1:-1:-1;;;37694:62:0;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;37694:62:0;;;;;;;;;;;;;;;38576:25:::1;:54:::0;;;38646:56:::1;::::0;;;;;;;::::1;::::0;;;;::::1;::::0;;::::1;38472:238:::0;:::o;39856:127::-;35348:3;;-1:-1:-1;;;;;35348:3:0;35334:10;:17;35326:51;;;;;-1:-1:-1;;;35326:51:0;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;35326:51:0;;;;;;;;;;;;;;;39947:28:::1;-1:-1:-1::0;;;;;39947:19:0;::::1;39967:7:::0;39947:19:::1;:28::i;:::-;39856:127:::0;;:::o;60149:1890::-;60264:4;32718:1;33324:7;;:19;;33316:63;;;;;-1:-1:-1;;;33316:63:0;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;33316:63:0;;;;;;;;;;;;;;;32718:1;33457:7;:18;60281:38:::1;;:::i;:::-;60322:30;::::0;;;:24:::1;:30;::::0;;;;;;;;60281:71;;::::1;::::0;::::1;::::0;;;;-1:-1:-1;;;;;60281:71:0::1;::::0;;;;::::1;::::0;;;;;;::::1;::::0;;;;;;;;;;;;60322:30;;60281:71;;::::1;::::0;;;;::::1;::::0;;;::::1;;;;;;;;;;;;;;;;::::0;;-1:-1:-1;;;;;60281:71:0::1;::::0;;;;;::::1;::::0;::::1;;::::0;;::::1;;;;-1:-1:-1::0;;;60281:71:0;;;-1:-1:-1;;60281:71:0::1;::::0;::::1;::::0;-1:-1:-1;;;;;60281: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;;;;;60524:15;;60281:71;;-1:-1:-1;60524:29:0::1;60520:51;;60564:4;60557:11;;;;;60520:51;60583:18;60604:75;60623:7;:19;;;60644:7;:17;;;60663:7;:15;;;60604:18;:75::i;:::-;60583:96;;60695:13;60690:37;;60719:5;60712:12;;;;;;60690:37;60746:30;::::0;;;:24:::1;:30;::::0;;;;60739:37;;-1:-1:-1;;;;;;60739:37:0::1;::::0;;60746:30;60739:37:::1;::::0;;::::1;60746:30:::0;60739:37:::1;:::i;:::-;-1:-1:-1::0;60739:37:0::1;::::0;::::1;::::0;;-1:-1:-1;;;;;;60739:37:0::1;::::0;;::::1;;::::0;::::1;::::0;;;::::1;::::0;::::1;::::0;;;::::1;::::0;::::1;::::0;;;::::1;::::0;::::1;::::0;;-1:-1:-1;;60739: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;;60792:16:::1;::::0;::::1;::::0;:20;60788:542:::1;;60847:16;::::0;::::1;::::0;60883:12:::1;::::0;::::1;::::0;:19;60905:1:::1;-1:-1:-1::0;60879:202:0::1;;;60963:5;::::0;60970:16:::1;::::0;::::1;::::0;60933:12:::1;::::0;::::1;::::0;:15;;60926:61:::1;::::0;-1:-1:-1;;;;;60963:5:0::1;::::0;60970:16;60933:12;60963:5:::1;::::0;60933:15:::1;;;60926:61;61016:50;61022:7;:12;;;61036:7;:14;;;61060:4;61016:5;:50::i;:::-;61005:61;;60879:202;61096:22;61121:103;61134:10;61146:7;:12;;;61160:8;61170:7;:18;;;61190:7;:14;;;61206:7;:17;;;61121:12;:103::i;:::-;61297:5;::::0;61245:12:::1;::::0;::::1;::::0;61258:19;;61096:128;;-1:-1:-1;61238:81:0::1;::::0;-1:-1:-1;;;;;61297:5:0;;::::1;::::0;61096:128;;61245:12;-1:-1:-1;;61258:23:0;;;61245:37;::::1;;;;61238:81;60788:542;;;61359:15:::0;;61376:12:::1;::::0;::::1;::::0;61389:19;;61341:153:::1;::::0;61359:15;61376:12;-1:-1:-1;;61389:23:0;;;61376:37;::::1;;;;;;;;;;;61415:7;:18;;;61435:7;:17;;;61454:7;:14;;;61470:7;:23;;;61341:17;:153::i;:::-;61506:60;61522:7;:20;;;61544:21;61506:15;:60::i;:::-;61622:7;:15;;;-1:-1:-1::0;;;;;61584:423:0::1;;61652:7;:12;;;61679:7;:18;;;61712:7;:16;;;61743:7;:14;;;61772:7;:17;;;61804:7;:14;;;61833:7;:23;;;61871:7;:20;;;61906:37;61923:7;:19;;;61906:12;:16;;:37;;;;:::i;52928:419::-:0;37716:5;;-1:-1:-1;;;;;37716:5:0;37702:10;:19;37694:62;;;;;-1:-1:-1;;;37694:62:0;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;37694:62:0;;;;;;;;;;;;;;;53079:32:::1;:68:::0;;;53158:32:::1;:68:::0;;;53244:95:::1;::::0;;;;;::::1;::::0;::::1;::::0;;;;;::::1;::::0;;;;;;;;;::::1;52928:419:::0;;:::o;57580:1087::-;32718:1;33324:7;;:19;;33316:63;;;;;-1:-1:-1;;;33316:63:0;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;33316:63:0;;;;;;;;;;;;;;;32718:1;33457:7;:18;57928:15:::1;::::0;57911:32;::::1;;57903:81;;;;-1:-1:-1::0;;;57903:81:0::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;58016:13;58003:9;:26;;57995:72;;;;-1:-1:-1::0;;;57995:72:0::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;58086:5;:12;58102:1;58086:17;:38;;;;58107:5;:12;58123:1;58107:17;58086:38;58078:87;;;;-1:-1:-1::0;;;58078:87:0::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;58196:4;::::0;58184:8;;-1:-1:-1;;;;;58196:4:0;;::::1;::::0;58184:5;;58196:4:::1;::::0;58184:8:::1;;;;;;;;;;-1:-1:-1::0;;;;;58184:16:0::1;;58176:58;;;::::0;;-1:-1:-1;;;58176:58:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;-1:-1:-1;;;;;;;;;;;58176:58:0;;;;;;;;;;;;;::::1;;58247:16;:14;:16::i;:::-;58274:37;58297:13;58274:22;:37::i;:::-;58324:16;58343:28;:9;58357:13:::0;58343::::1;:28::i;:::-;58324:47;;58384:275;58422:10;58447:5;58467:11;58493:8;58516:7;58538:10;58563:7;58585:16;58616:13;58644:4;58384:23;:275::i;:::-;-1:-1:-1::0;;32674:1:0;33636:7;:22;-1:-1:-1;;;;;;;57580:1087:0:o;51976:191::-;37716:5;;-1:-1:-1;;;;;37716:5:0;37702:10;:19;37694:62;;;;;-1:-1:-1;;;37694:62:0;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;37694:62:0;;;;;;;;;;;;;;;-1:-1:-1;;;;;52067:26:0;::::1;;::::0;;;:16:::1;:26;::::0;;;;;;;;:38;;-1:-1:-1;;52067:38:0::1;::::0;::::1;;::::0;;::::1;::::0;;;52121;;;;;;;::::1;::::0;;;;;;;;::::1;51976:191:::0;;:::o;48485:49::-;;;;;;;;;;;;;;;:::o;48150:33::-;;;;:::o;48226:36::-;;;;;;:::o;36209:19::-;;;-1:-1:-1;;;;;36209:19:0;;:::o;52556:364::-;37716:5;;-1:-1:-1;;;;;37716:5:0;37702:10;:19;37694:62;;;;;-1:-1:-1;;;37694:62:0;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;37694:62:0;;;;;;;;;;;;;;;52692:19:::1;:42:::0;;;52745:18:::1;:40:::0;;;52796:12:::1;:28:::0;;;52840:72:::1;::::0;;;;;::::1;::::0;::::1;::::0;;;;;;;;;;;::::1;::::0;;;;;;;::::1;52556:364:::0;;;:::o;48322:44::-;;;;;;;;;;38316:148;37716:5;;-1:-1:-1;;;;;37716:5:0;37702:10;:19;37694:62;;;;;-1:-1:-1;;;37694:62:0;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;37694:62:0;;;;;;;;;;;;;;;38390:10:::1;:24:::0;;;38430:26:::1;::::0;;;;;;;::::1;::::0;;;;::::1;::::0;;::::1;38316:148:::0;:::o;48109:34::-;;;;:::o;66944:213::-;67019:16;67048:38;;:::i;:::-;67089:30;;;;:24;:30;;;;;;;;;67048:71;;;;;;;;;-1:-1:-1;;;;;67048:71:0;;;;;;;;;;;;;;;;;;;;;;;;;67089:30;;67048:71;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;67048:71:0;;;;;;;;;;;;;;;;-1:-1:-1;;;67048:71:0;;;-1:-1:-1;;67048:71:0;;;;-1:-1:-1;;;;;67048:71:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;67137:12;;;66944:213;-1:-1:-1;;;66944:213:0:o;65340:1209::-;65454:4;32718:1;33324:7;;:19;;33316:63;;;;;-1:-1:-1;;;33316:63:0;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;33316:63:0;;;;;;;;;;;;;;;32718:1;33457:7;:18;65471:38:::1;;:::i;:::-;65512:30;::::0;;;:24:::1;:30;::::0;;;;;;;;65471:71;;::::1;::::0;::::1;::::0;;;;-1:-1:-1;;;;;65471:71:0::1;::::0;;;;::::1;::::0;;;;;;::::1;::::0;;;;;;;;;;;;65512:30;;65471:71;;::::1;::::0;;;;::::1;::::0;;;::::1;;;;;;;;;;;;;;;;::::0;;-1:-1:-1;;;;;65471:71:0::1;::::0;;;;;::::1;::::0;::::1;;::::0;;::::1;;;;-1:-1:-1::0;;;65471:71:0;;;-1:-1:-1;;65471:71:0::1;::::0;::::1;::::0;-1:-1:-1;;;;;65471: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;;;;;65714:15;;65471:71;;-1:-1:-1;65714:29:0::1;65710:51;;65754:4;65747:11;;;;;65710:51;65773:17;65793:78;65815:7;:19;;;65836:7;:17;;;65855:7;:15;;;65793:21;:78::i;:::-;65773:98;;65887:12;65882:36;;65910:5;65903:12;;;;;;65882:36;65937:30;::::0;;;:24:::1;:30;::::0;;;;65930:37;;-1:-1:-1;;;;;;65930:37:0::1;::::0;;65937:30;65930:37:::1;::::0;;::::1;65937:30:::0;65930:37:::1;:::i;:::-;-1:-1:-1::0;65930:37:0::1;::::0;::::1;::::0;;-1:-1:-1;;;;;;65930:37:0::1;::::0;;::::1;;::::0;::::1;::::0;;;::::1;::::0;::::1;::::0;;;::::1;::::0;::::1;::::0;;-1:-1:-1;;;;;;65930: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:-1:-1;;65930:37:0::1;::::0;;65995:20:::1;::::0;::::1;::::0;65979:60:::1;::::0;66017:21;65979:15:::1;:60::i;:::-;66094:7;:15;;;-1:-1:-1::0;;;;;66057:460:0::1;;66124:7;:12;;;66151:7;:18;;;66184:7;:23;;;66222:7;:17;;;66254:7;:14;;;66283:7;:16;;;66314:7;:23;;;66352:7;:14;;;66381:7;:20;;;66416:37;66433:7;:19;;;66416:12;:16;;:37;;;;:::i;:::-;66488:17;::::0;::::1;::::0;66468:38:::1;::::0;:15:::1;::::0;:19:::1;:38::i;:::-;66057:460;;;;;;;-1:-1:-1::0;;;;;66057:460:0::1;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1::0;;;;;66057:460:0::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;;::::1;::::0;;;::::1;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;66537:4;66530:11;;;;32674:1:::0;33636:7;:22;65340:1209;;-1:-1:-1;;65340:1209:0:o;66557:158::-;66635:7;66689:8;66699:6;66672:34;;;;;;-1:-1:-1;;;;;66672:34:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;66662:45;;;;;;66655:52;;66557:158;;;;;:::o;48543:58::-;;;;;;;;;;;;;:::o;48070:30::-;;;;:::o;36544:25::-;;;;:::o;38192:116::-;35348:3;;-1:-1:-1;;;;;35348:3:0;35334:10;:17;35326:51;;;;;-1:-1:-1;;;35326:51:0;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;35326:51:0;;;;;;;;;;;;;;;38254:5:::1;:14:::0;;-1:-1:-1;;;;;38254:14:0;::::1;-1:-1:-1::0;;;;;;38254:14:0;;::::1;::::0;::::1;::::0;;;38284:16:::1;::::0;;;;;;::::1;::::0;;;;::::1;::::0;;::::1;38192:116:::0;:::o;52361:187::-;37716:5;;-1:-1:-1;;;;;37716:5:0;37702:10;:19;37694:62;;;;;-1:-1:-1;;;37694:62:0;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;37694:62:0;;;;;;;;;;;;;;;52446:17:::1;:38:::0;;;::::1;;-1:-1:-1::0;;52446:38:0;;::::1;::::0;::::1;::::0;;;52500:40:::1;::::0;;;;;;::::1;::::0;;;;::::1;::::0;;::::1;52361:187:::0;:::o;66723:213::-;66798:16;66827:38;;:::i;:::-;66868:30;;;;:24;:30;;;;;;;;;66827:71;;;;;;;;;-1:-1:-1;;;;;66827:71:0;;;;;;;;;;;;;;;;;;;;;;;;;66868:30;;66827:71;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;66827:71:0;;;;;;;;;;;;;;;;-1:-1:-1;;;66827:71:0;;;-1:-1:-1;;66827:71:0;;;;-1:-1:-1;;;;;66827:71:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;66916:12;;;66723:213;-1:-1:-1;;;66723:213:0:o;36787:55::-;;;;;;;;;;;;;:::o;36576:46::-;;;;:::o;53355:1605::-;51623:10;51606:28;;;;:16;:28;;;;;;;;51598:66;;;;;-1:-1:-1;;;51598:66:0;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;51598:66:0;;;;;;;;;;;;;;;53511:32:::1;::::0;53571:27:::1;:34:::0;53622:15;;::::1;53618:32;;53641:7;;;;53618:32;53678:6;53666:9;:18;53662:69;;;53713:6;53701:18;;53662:69;53758:9;53750:5;:17;53743:1157;;;53784:11;53798:27;53826:5;53798:34;;;;;;;;;;;;;;;;53784:48;;54350:4;-1:-1:-1::0;;;;;54350:28:0::1;;54379:3;54384:21;54350:56;;;;;;;;;;;;;;;;;;-1:-1:-1::0;;;;;54350:56:0::1;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;;-1:-1:-1::0;54350:56:0;::::1;;54346:463;;54628:55;::::0;;-1:-1:-1;;;54628:55:0;;::::1;::::0;::::1;::::0;;;-1:-1:-1;;;;;54628:55:0;::::1;::::0;;;;;;:4:::1;::::0;:27:::1;::::0;:55;;;;;::::1;::::0;;;;;;;;-1:-1:-1;54628:4:0;:55;::::1;;::::0;::::1;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;;-1:-1:-1::0;54628:55:0;::::1;;54624:170;;;;;54741:13;54736:30;;54758:5;;;;54736:30;54684:101;54624:170;54346:463;;;54459:12;54454:29;;54475:5;;;;54454:29;54407:91;54346:463;54832:27;54860:5;54832:34;;;;;;;;;::::0;;;::::1;::::0;;::::1;54825:41:::0;-1:-1:-1;54881:7:0::1;::::0;;::::1;::::0;53743:1157:::1;;;-1:-1:-1::0;54912:32:0::1;:40:::0;53355:1605;;:::o;48375:47::-;;;;:::o;38718:178::-;37716:5;;-1:-1:-1;;;;;37716:5:0;37702:10;:19;37694:62;;;;;-1:-1:-1;;;37694:62:0;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;37694:62:0;;;;;;;;;;;;;;;38802:15:::1;:34:::0;;-1:-1:-1;;;;;38802:34:0;::::1;-1:-1:-1::0;;;;;;38802:34:0;;::::1;::::0;::::1;::::0;;;38852:36:::1;::::0;;;;;;::::1;::::0;;;;::::1;::::0;;::::1;38718:178:::0;:::o;56451:1121::-;32718:1;33324:7;;:19;;33316:63;;;;;-1:-1:-1;;;33316:63:0;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;33316:63:0;;;;;;;;;;;;;;;32718:1;33457:7;:18;56824:15:::1;::::0;56807:32;::::1;;56799:81;;;;-1:-1:-1::0;;;56799:81:0::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;56912:13;56899:9;:26;56891:72;;;;-1:-1:-1::0;;;56891:72:0::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;56982:5;:12;56998:1;56982:17;:38;;;;57003:5;:12;57019:1;57003:17;56982:38;56974:87;;;;-1:-1:-1::0;;;56974:87:0::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;57074:16;:14;:16::i;:::-;57101:37;57124:13;57101:22;:37::i;:::-;57155:13:::0;;57151:124:::1;;57193:6;::::0;57216:8;;-1:-1:-1;;;;;57193:6:0;;::::1;::::0;57185:30:::1;::::0;57216:5;;57193:6:::1;::::0;57216:8:::1;;;;;;;;;;57226:10;57246:4;57253:9;57185:78;;;;;;;;;;;;;-1:-1:-1::0;;;;;57185:78:0::1;;;;;;-1:-1:-1::0;;;;;57185:78:0::1;;;;;;-1:-1:-1::0;;;;;57185:78:0::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;57151:124;57287:277;57325:10;57350:5;57370:11;57396:9;57420:7;57442:10;57467:7;57489:16;57520:13;57548:5;57287:23;:277::i;48190:27::-:0;;;;:::o;35405:76::-;35348:3;;-1:-1:-1;;;;;35348:3:0;35334:10;:17;35326:51;;;;;-1:-1:-1;;;35326:51:0;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;35326:51:0;;;;;;;;;;;;;;;35463:3:::1;:10:::0;;-1:-1:-1;;;;;;35463:10:0::1;-1:-1:-1::0;;;;;35463:10:0;;;::::1;::::0;;;::::1;::::0;;35405:76::o;39703:145::-;35348:3;;-1:-1:-1;;;;;35348:3:0;35334:10;:17;35326:51;;;;;-1:-1:-1;;;35326:51:0;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;35326:51:0;;;;;;;;;;;;;;;39806:6:::1;-1:-1:-1::0;;;;;39799:22:0::1;;39822:8;39832:7;39799:41;;;;;;;;;;;;;-1:-1:-1::0;;;;;39799:41:0::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;::::0;::::1;;-1:-1:-1::0;;;;;39703:145:0:o;58675:1136::-;32718:1;33324:7;;:19;;33316:63;;;;;-1:-1:-1;;;33316:63:0;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;33316:63:0;;;;;;;;;;;;;;;32718:1;33457:7;:18;59079:15:::1;::::0;59062:32;::::1;;59054:81;;;;-1:-1:-1::0;;;59054:81:0::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;59167:13;59154:9;:26;59146:72;;;;-1:-1:-1::0;;;59146:72:0::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;59237:5;:12;59253:1;59237:17;:38;;;;59258:5;:12;59274:1;59258:17;59237:38;59229:87;;;;-1:-1:-1::0;;;59229:87:0::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;59333:12;59329:118;;;59397:4;::::0;59376:12;;-1:-1:-1;;;;;59397:4:0;;::::1;::::0;59370:5;;-1:-1:-1;;59376:16:0;;;59370:23;::::1;;;;;;;;;;;-1:-1:-1::0;;;;;59370:31:0::1;;59362:73;;;::::0;;-1:-1:-1;;;59362:73:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;-1:-1:-1;;;;;;;;;;;59362:73:0;;;;;;;;;;;;;::::1;;59459:16;:14;:16::i;:::-;59488:315;59526:10;59551:5;59571:11;59597:16;59628:10;59653:7;59675:9;59699:16;59730:7;59752:13;59780:12;59488:23;:315::i;:::-;-1:-1:-1::0;;32674:1:0;33636:7;:22;-1:-1:-1;;;;;;;;58675:1136:0:o;38904:464::-;37716:5;;-1:-1:-1;;;;;37716:5:0;37702:10;:19;37694:62;;;;;-1:-1:-1;;;37694:62:0;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;37694:62:0;;;;;;;;;;;;;;;39085:9:::1;39080:212;39104:7;:14;39100:1;:18;39080:212;;;39140:13;39156:7;39164:1;39156:10;;;;;;;;;;;;;;39140:26;;39209:10;39220:1;39209:13;;;;;;;;;;;;;;39181:18;:25;39200:5;-1:-1:-1::0;;;;;39181:25:0::1;-1:-1:-1::0;;;;;39181:25:0::1;;;;;;;;;;;;:41;;;;39266:11;39278:1;39266:14;;;;;;;;;::::0;;::::1;::::0;;;;;;;-1:-1:-1;;;;;39237:26:0;;::::1;;::::0;;;:19:::1;:26:::0;;;;;;:43;39120:3:::1;;39080:212;;;;39309:51;39327:7;39336:10;39348:11;39309:51;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;;::::1;::::0;;;::::1;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;;::::1;::::0;;;::::1;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;;::::1;::::0;;;::::1;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;38904:464:::0;;;:::o;39376:319::-;37716:5;;-1:-1:-1;;;;;37716:5:0;37702:10;:19;37694:62;;;;;-1:-1:-1;;;37694:62:0;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;37694:62:0;;;;;;;;;;;;;;;-1:-1:-1;;;;;39480:19:0;::::1;39463:14;39480:19:::0;;;:11:::1;:19;::::0;;;;;39514:11;39510:28:::1;;39529:7;;;39510:28;-1:-1:-1::0;;;;;39550:19:0;::::1;39572:1;39550:19:::0;;;:11:::1;:19;::::0;;;;:23;39584:46:::1;::::0;39612:9;39623:6;39584:27:::1;:46::i;:::-;39648:39;::::0;;-1:-1:-1;;;;;39648:39:0;;::::1;::::0;;;::::1;;::::0;::::1;::::0;;;;;;;;;::::1;::::0;;;;;;;::::1;37767:1;39376:319:::0;;:::o;59819:322::-;59945:32;;59992:27;:34;60041:32;;60088:27;:34;59819:322;;;;:::o;54968:1475::-;51623:10;51606:28;;;;:16;:28;;;;;;;;51598:66;;;;;-1:-1:-1;;;51598:66:0;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;51598:66:0;;;;;;;;;;;;;;;55124:32:::1;::::0;55184:27:::1;:34:::0;55235:15;;::::1;55231:32;;55254:7;;;;55231:32;55291:6;55279:9;:18;55275:69;;;55326:6;55314:18;;55275:69;55371:9;55363:5;:17;55356:1027;;;55397:11;55411:27;55439:5;55411:34;;;;;;;;;;;;;;;;55397:48;;55833:4;-1:-1:-1::0;;;;;55833:28:0::1;;55862:3;55867:21;55833:56;;;;;;;;;;;;;;;;;;-1:-1:-1::0;;;;;55833:56:0::1;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;;-1:-1:-1::0;55833:56:0;::::1;;55829:463;;56111:55;::::0;;-1:-1:-1;;;56111:55:0;;::::1;::::0;::::1;::::0;;;-1:-1:-1;;;;;56111:55:0;::::1;::::0;;;;;;:4:::1;::::0;:27:::1;::::0;:55;;;;;::::1;::::0;;;;;;;;-1:-1:-1;56111:4:0;:55;::::1;;::::0;::::1;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;;-1:-1:-1::0;56111:55:0;::::1;;56107:170;;;;;56224:13;56219:30;;56241:5;;;;56219:30;56167:101;56107:170;55829:463;;;55942:12;55937:29;;55958:5;;;;55937:29;55890:91;55829:463;56315:27;56343:5;56315:34;;;;;;;;;::::0;;;::::1;::::0;;::::1;56308:41:::0;-1:-1:-1;56364:7:0::1;::::0;;::::1;::::0;55356:1027:::1;;;-1:-1:-1::0;56395:32:0::1;:40:::0;54968:1475;;:::o;36125:20::-;;;-1:-1:-1;;;;;36125:20:0;;:::o;36181:21::-;;;-1:-1:-1;;;;;36181:21:0;;:::o;48693:58::-;;;;;;;;;;;;;:::o;48608:76::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;48608:76:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;36154:20::-;;;-1:-1:-1;;;;;36154:20:0;;:::o;52175:178::-;37716:5;;-1:-1:-1;;;;;37716:5:0;37702:10;:19;37694:62;;;;;-1:-1:-1;;;37694:62:0;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;37694:62:0;;;;;;;;;;;;;;;52259:15:::1;:34:::0;;;52309:36:::1;::::0;;;;;;;::::1;::::0;;;;::::1;::::0;;::::1;52175:178:::0;:::o;67430:840::-;67557:4;67618:15;67578:36;67601:12;;67578:18;:22;;:36;;;;:::i;:::-;:55;67574:133;;67650:45;;-1:-1:-1;;;67650:45:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;67574:133;67719:17;67739:10;67761:4;67739:27;;:59;;-1:-1:-1;67787:10:0;67770:28;;;;:16;:28;;;;;;;;67739:59;67816:17;;67719:79;;-1:-1:-1;67816:17:0;;67815:18;:35;;;;;67838:12;67837:13;67815:35;67811:103;;;67867:35;;;-1:-1:-1;;;67867:35:0;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;67867:35:0;;;;;;;;;;;;;;67811:103;67930:12;67926:113;;;68015:12;67966:45;67991:19;;67966:20;:24;;:45;;;;:::i;:::-;:61;;67959:68;;;;;67926:113;68059:10;-1:-1:-1;;;;;68059:22:0;;;68051:60;;;;;-1:-1:-1;;;68051:60:0;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;68051:60:0;;;;;;;;;;;;;;;68178:15;68132:42;68155:18;;68132;:22;;:42;;;;:::i;:::-;:61;;68124:114;;;;-1:-1:-1;;;68124:114:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;68258:4;68251:11;;;67430:840;;;;;;:::o;41470:975::-;41712:5;;41675:7;;-1:-1:-1;;;;;41712:5:0;41730:294;;;;41809:6;41773;-1:-1:-1;;;;;41766:26:0;;41793:11;41766:39;;;;;;;;;;;;;-1:-1:-1;;;;;41766:39:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;41766:39:0;:49;;41758:110;;;;-1:-1:-1;;;41758:110:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;41730:294;;;41952:6;41916;-1:-1:-1;;;;;41909:26:0;;41936:11;41909:39;;;;;;;;;;;;;-1:-1:-1;;;;;41909:39:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;41909:39:0;:49;;41901:111;;;;-1:-1:-1;;;41901:111:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;42036:16;42062:6;-1:-1:-1;;;;;42055:18:0;;:20;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;42055:20:0;42088:42;;;-1:-1:-1;;;42088:42:0;;-1:-1:-1;;;;;42088:42:0;;;;;;;;;42055:20;;-1:-1:-1;42088:34:0;;;;;;:42;;;;;-1:-1:-1;;42088:42:0;;;;;;;;-1:-1:-1;42088:34:0;:42;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;42141:17;42169:6;;;;;;;;;-1:-1:-1;;;;;42169:6:0;-1:-1:-1;;;;;42161:38:0;;42200:8;42210:16;42228:11;42241:16;42259:10;42271:7;42280:9;42161:129;;;;;;;;;;;;;-1:-1:-1;;;;;42161:129:0;;;;;;-1:-1:-1;;;;;42161:129:0;;;;;;-1:-1:-1;;;;;42161:129:0;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;42161:129:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;42161:129:0;42301:43;;;-1:-1:-1;;;42301:43:0;;-1:-1:-1;;;;;42301:43:0;;;;;;;;;42161:129;;-1:-1:-1;42301:35:0;;;;;;:43;;;;;-1:-1:-1;;42301:43:0;;;;;;;;-1:-1:-1;42301:35:0;:43;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;42357:51;42387:8;42397:10;42357:29;:51::i;:::-;42428:9;41470:975;-1:-1:-1;;;;;;;;;;;41470:975:0:o;27915:177::-;28025:58;;;-1:-1:-1;;;;;28025:58:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;28025:58:0;-1:-1:-1;;;28025:58:0;;;27998:86;;28018:5;;27998:19;:86::i;:::-;27915:177;;;:::o;43644:289::-;43737:7;43761:5;:12;43777:1;43761:17;43757:107;;;43802:50;43813:5;43819:1;43813:8;;;;;;;;;;;;;;43823:5;43829:1;43823:8;;;;;;;;;;;;;;43833:7;43842:9;43802:10;:50::i;:::-;43795:57;;;;43757:107;43874:51;;-1:-1:-1;;;43874:51:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;44601:185;44711:4;;44705:32;;;-1:-1:-1;;;44705:32:0;;;;;;;;;;-1:-1:-1;;;;;44711:4:0;;;;44705:20;;:32;;;;;44711:4;;44705:32;;;;;;;;44711:4;;44705:32;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;44748:30:0;;-1:-1:-1;;;;;44748:18:0;;;-1:-1:-1;44748:30:0;;;;;-1:-1:-1;44767:10:0;;44748:30;;;;44767:10;44748:18;:30;;;;;;;;;;;;;;;;;;;44419:174;44517:4;;44511:32;;;-1:-1:-1;;;44511:32:0;;;;;;;;;;-1:-1:-1;;;;;44517:4:0;;;;44511:20;;:32;;;;;44517:4;;44511:32;;;;;;;;44517:4;;44511:32;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;44554:31:0;;-1:-1:-1;;;;;;;;44554:19:0;;44574:10;44554:19;:31::i;12205:136::-;12263:7;12290:43;12294:1;12297;12290:43;;;;;;;;;;;;;;;;;:3;:43::i;68278:698::-;68408:4;;68445:10;68467:4;68445:27;;:59;;-1:-1:-1;68493:10:0;68476:28;;;;:16;:28;;;;;;;;68522:17;;68425:79;;-1:-1:-1;68522:17:0;;68521:18;:35;;;;;68544:12;68517:103;;68573:35;;;-1:-1:-1;;;68573:35:0;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;68573:35:0;;;;;;;;;;;;;;21368:397;21483:6;21458:21;:31;;21450:73;;;;;-1:-1:-1;;;21450:73:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;21633:35;;21615:12;;-1:-1:-1;;;;;21633:14:0;;;21656:6;;21615:12;21633:35;21615:12;21633:35;21656:6;21633:14;:35;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;21614:54;;;21687:7;21679:78;;;;-1:-1:-1;;;21679:78:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;44794:858;45011:7;45031:20;45054:167;45085:8;45108:5;45128:9;45152:11;45178:7;45200:10;45054:16;:167::i;:::-;45031:190;;45238:15;45234:382;;;45270:22;45295:77;36111:5;45295:51;45309:36;45334:10;;36111:5;45309:24;;:36;;;;:::i;:::-;45295:9;;:13;:51::i;:::-;:55;;:77::i;:::-;45270:102;-1:-1:-1;45387:17:0;45407:29;:9;45270:102;45407:13;:29::i;:::-;45387:49;;45451:16;45470:5;45491:1;45476:5;:12;:16;45470:23;;;;;;;;;;;;;;45451:42;;45532:36;45558:9;45532:11;:21;45544:8;-1:-1:-1;;;;;45532:21:0;-1:-1:-1;;;;;45532:21:0;;;;;;;;;;;;;:25;;:36;;;;:::i;:::-;-1:-1:-1;;;;;45508:21:0;;;;;;;:11;:21;;;;;:60;-1:-1:-1;45590:14:0;-1:-1:-1;45583:21:0;;-1:-1:-1;45583:21:0;45234:382;45635:9;45628:16;;;44794:858;;;;;;;;;:::o;39991:1471::-;40170:5;;-1:-1:-1;;;;;40170:5:0;40188:294;;;;40267:6;40231;-1:-1:-1;;;;;40224:26:0;;40251:11;40224:39;;;;;;;;;;;;;-1:-1:-1;;;;;40224:39:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;40224:39:0;:49;;40216:111;;;;-1:-1:-1;;;40216:111:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;40188:294;;;40411:6;40375;-1:-1:-1;;;;;40368:26:0;;40395:11;40368:39;;;;;;;;;;;;;-1:-1:-1;;;;;40368:39:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;40368:39:0;:49;;40360:110;;;;-1:-1:-1;;;40360:110:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;40498:7;40494:625;;;-1:-1:-1;;;;;40550:31:0;;40522:25;40550:31;;;:18;:31;;;;;;40600:21;;;;;:102;;;40685:17;40625:57;40671:10;40632:6;-1:-1:-1;;;;;40625:28:0;;40654:11;40625:41;;;;;;;;;;;;;-1:-1:-1;;;;;40625:41:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;40625:41:0;;:45;:57::i;:::-;:77;40600:102;40596:199;;;40723:56;;-1:-1:-1;;;40723:56:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;40596:199;40494:625;;;;-1:-1:-1;;;;;40856:32:0;;40827:26;40856:32;;;:19;:32;;;;;;40907:22;;;;;:107;;;40996:18;40933:60;40982:10;40940:6;-1:-1:-1;;;;;40933:31:0;;40965:11;40933:44;;;;;;;;;;;;;-1:-1:-1;;;;;40933:44:0;;;;;;;;;;;;;;;;;;;;;;;;;;:60;:81;40907:107;40903:205;;;41035:57;;-1:-1:-1;;;41035:57:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;40903:205;40494:625;;41131:16;41157:6;-1:-1:-1;;;;;41150:18:0;;:20;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;41150:20:0;41183:42;;;-1:-1:-1;;;41183:42:0;;-1:-1:-1;;;;;41183:42:0;;;;;;;;;41150:20;;-1:-1:-1;41183:34:0;;;;;;:42;;;;;-1:-1:-1;;41183:42:0;;;;;;;;-1:-1:-1;41183:34:0;:42;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;41244:6:0;;;41236:100;;;-1:-1:-1;;;41236:100:0;;-1:-1:-1;;;;;41236:100:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;41244:6;;;;;-1:-1:-1;41236:38:0;;-1:-1:-1;41236:100:0;;;;;41244:6;;41236:100;;;;;;;;41244:6;;41236:100;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;41357:8;-1:-1:-1;;;;;41347:35:0;;41383:6;41347:43;;;;;;;;;;;;;-1:-1:-1;;;;;41347:43:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;41403:51;41433:8;41443:10;41403:29;:51::i;:::-;39991:1471;;;;;;;;:::o;44272:139::-;44322:9;:14;44318:86;;44359:4;;;;;;;;;-1:-1:-1;;;;;44359:4:0;-1:-1:-1;;;;;44353:19:0;;44380:9;44353:39;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;44318:86;44272:139::o;67165:257::-;67244:27;;;;;:60;;-1:-1:-1;67275:15:0;;-1:-1:-1;;;;;67275:15:0;:29;;67244:60;67240:175;;;67338:15;;67321:82;;;-1:-1:-1;;;67321:82:0;;67377:10;67321:82;;;;;;;;;;;;-1:-1:-1;;;;;67338:15:0;;;;67321:55;;:82;;;;;67338:15;;67321:82;;;;;;;;67338:15;;67321:82;;;;;;;;;;67240:175;67165:257;:::o;68984:1404::-;-1:-1:-1;;;;;69358:32:0;;69342:13;69358:32;;;:22;:32;;;;;;:39;;69395:1;69358:36;:39::i;:::-;-1:-1:-1;;;;;69408:32:0;;;;;;:22;:32;;;;;:40;;;69342:55;-1:-1:-1;69461:38:0;;:::i;:::-;69502:346;;;;;;;;69540:8;-1:-1:-1;;;;;69502:346:0;;;;;69563:5;69502:346;;;;69583:11;-1:-1:-1;;;;;69502:346:0;;;;;69609:9;69502:346;;;;69633:7;69502:346;;;;69655:10;69502:346;;;;69680:7;69502:346;;;;;;69702:16;69502:346;;;;69733:13;69502:346;;;;69761:12;69502:346;;;;69788:15;69502:346;;;;69818:19;69502:346;;;;;69461:387;;69861:11;69875:30;69889:8;69899:5;69875:13;:30::i;:::-;69916:29;;;;:24;:29;;;;;;;;:39;;;;-1:-1:-1;;;;;;69916:39:0;-1:-1:-1;;;;;69916:39:0;;;;;;;;;;;;:29;;-1:-1:-1;69916:39:0;;:29;;:39;;-1:-1:-1;69916:39:0;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;-1:-1:-1;;;;;69916:39:0;;;;;-1:-1:-1;;;;;69916:39:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;69968:27;70001:3;69968:37;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;70060:8;-1:-1:-1;;;;;70023:357:0;;70083:5;70103:11;70129:9;70153:7;70175:10;70200:7;70222:16;70253:13;70281:5;70301:12;70328:15;70358:11;70023:357;;;;;;;-1:-1:-1;;;;;70023:357:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;68984:1404;;;;;;;;;;;;;:::o;70396:1461::-;-1:-1:-1;;;;;70798:32:0;;70782:13;70798:32;;;:22;:32;;;;;;:39;;70835:1;70798:36;:39::i;:::-;-1:-1:-1;;;;;70848:32:0;;;;;;:22;:32;;;;;:40;;;70782:55;-1:-1:-1;70901:38:0;;:::i;:::-;70942:370;;;;;;;;70980:8;-1:-1:-1;;;;;70942:370:0;;;;;71003:5;70942:370;;;;71023:11;-1:-1:-1;;;;;70942:370:0;;;;;71049:16;70942:370;;;;71080:10;70942:370;;;;71105:7;70942:370;;;;;;71127:9;-1:-1:-1;;;;;70942:370:0;;;;;71151:16;70942:370;;;;71182:7;70942:370;;;;71204:13;70942:370;;;;71232:12;70942:370;;;;71259:15;70942:370;;;;71289:12;70942:370;;;;;70901:411;;71325:11;71339:30;71353:8;71363:5;71339:13;:30::i;:::-;71380:29;;;;:24;:29;;;;;;;;:39;;;;-1:-1:-1;;;;;;71380:39:0;-1:-1:-1;;;;;71380:39:0;;;;;;;;;;;;:29;;-1:-1:-1;71380:39:0;;:29;;:39;;-1:-1:-1;71380:39:0;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;-1:-1:-1;;;;;71380:39:0;;;;;-1:-1:-1;;;;;71380:39:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;71380:39:0;;;;;-1:-1:-1;;;;;71380:39:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;71432:27;71465:3;71432:37;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;71524:8;-1:-1:-1;;;;;71487:362:0;;71547:5;71567:11;71593:16;71624:10;71649:7;71671:9;71695:16;71726:7;71748:13;71776:5;71796:12;71823:15;71487:362;;;;;;;-1:-1:-1;;;;;71487:362:0;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;71487:362:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;70396:1461;;;;;;;;;;;;;;:::o;11741:181::-;11799:7;11831:5;;;11855:6;;;;11847:46;;;;;-1:-1:-1;;;11847:46:0;;;;;;;;;;;;-1:-1:-1;;;11847:46:0;;;;;;;;;;;;;;43009:627;43133:15;;-1:-1:-1;;;;;43133:15:0;43163:30;43159:69;;43210:7;;;43159:69;43241:20;43263:16;43300;-1:-1:-1;;;;;43283:56:0;;43340:8;43283:66;;;;;;;;;;;;;-1:-1:-1;;;;;43283:66:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;43283:66:0;;;;;;;;;-1:-1:-1;43283:66:0;-1:-1:-1;43366:26:0;43362:65;;43409:7;;;;;43362:65;43444:184;43483:8;43506:10;43538:5;;;;;;;;;-1:-1:-1;;;;;43538:5:0;-1:-1:-1;;;;;43531:34:0;;:36;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;43531:36:0;43444:184;;;-1:-1:-1;;;;;43444:184:0;;;;;43531:36;43444:184;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;43009:627;;;;;:::o;30220:761::-;30644:23;30670:69;30698:4;30670:69;;;;;;;;;;;;;;;;;30678:5;-1:-1:-1;;;;;30670:27:0;;;:69;;;;;:::i;:::-;30754:17;;30644:95;;-1:-1:-1;30754:21:0;30750:224;;30896:10;30885:30;;;;;;;;;;;;;;;-1:-1:-1;30885:30:0;30877:85;;;;-1:-1:-1;;;30877:85:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;43941:323;44099:5;;44092:50;;;-1:-1:-1;;;44092:50:0;;-1:-1:-1;;;;;44092:50:0;;;;;;;;;;;;;;;;;;;;;;;44052:7;;;;44099:5;;44092:18;;:50;;;;;;;;;;;;;;44052:7;44099:5;44092:50;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;44092:50:0;;-1:-1:-1;44161:20:0;;;;44153:76;;;;-1:-1:-1;;;44153:76:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;44247:9;43941:323;-1:-1:-1;;;;;43941:323:0:o;12644:192::-;12730:7;12766:12;12758:6;;;;12750:29;;;;-1:-1:-1;;;12750:29:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;12802:5:0;;;12644:192::o;45660:1449::-;45886:4;45968:7;45963:31;;-1:-1:-1;45986:5:0;45979:12;;45963:31;46091:15;46087:37;;-1:-1:-1;46117:4:0;46110:11;;46087:37;46136:23;46162:5;46183:1;46168:5;:12;:16;46162:23;;;;;;;;;;;;;;;;;;46221:5;;46287:67;;;-1:-1:-1;;;46287:67:0;;-1:-1:-1;;;;;46287:67:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;46162:23;;-1:-1:-1;46221:5:0;;;46198:13;;;;46221:5;;46287:18;;:67;;;;;46221:5;;46287:67;;;;;;;46221:5;46287:67;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;46287:67:0;;;;;;;;;-1:-1:-1;46287:67:0;-1:-1:-1;46437:9:0;46433:32;;46457:5;46450:12;;;;;;;;46433:32;46477:16;46496:20;:4;46505:10;46496:8;:20::i;:::-;46477:39;;46527:23;46553:6;-1:-1:-1;;;;;46553:20:0;;46574:15;46591:9;46553:48;;;;;;;;;;;;;-1:-1:-1;;;;;46553:48:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;46553:48:0;;-1:-1:-1;46612:22:0;46637:31;:10;46553:48;46637:14;:31::i;:::-;46612:56;-1:-1:-1;46681:20:0;46704:46;46739:10;46704:30;:4;36111:5;46704:8;:30::i;:46::-;46681:69;;46895:20;46918:82;46985:14;46918:62;46954:25;;36111:5;46931:48;46918:8;:12;;:62;;;;:::i;:82::-;47074:27;;;;;45660:1449;-1:-1:-1;;;;;;;;;;;;;;;45660:1449:0:o;13095:471::-;13153:7;13398:6;13394:47;;-1:-1:-1;13428:1:0;13421:8;;13394:47;13465:5;;;13469:1;13465;:5;:1;13489:5;;;;;:10;13481:56;;;;-1:-1:-1;;;13481:56:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;14042:132;14100:7;14127:39;14131:1;14134;14127:39;;;;;;;;;;;;;-1:-1:-1;;;14127:39:0;;;:3;:39::i;42453:548::-;42577:15;;-1:-1:-1;;;;;42577:15:0;42607:30;42603:69;;42654:7;;;42603:69;42685:20;42707:16;42744;-1:-1:-1;;;;;42727:56:0;;42784:8;42727:66;;;;;;;;;;;;;-1:-1:-1;;;;;42727:66:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;42727:66:0;;;;;;;42903:5;;42727:66;42896:36;;-1:-1:-1;;;42896:36:0;;;;42727:66;;-1:-1:-1;42727:66:0;;-1:-1:-1;42809:184:0;;42848:8;;42871:10;;-1:-1:-1;;;;;42903:5:0;;;;42896:34;;:36;;;;;42727:66;;42896:36;;;;;42903:5;42896:36;;;;;;;;;;22929:195;23032:12;23064:52;23086:6;23094:4;23100:1;23103:12;23064:21;:52::i;:::-;23057:59;22929:195;-1:-1:-1;;;;22929:195:0:o;14670:278::-;14756:7;14791:12;14784:5;14776:28;;;;-1:-1:-1;;;14776:28:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;14815:9;14831:1;14827;:5;;;;;;;14670:278;-1:-1:-1;;;;;14670:278:0:o;23981:530::-;24108:12;24166:5;24141:21;:30;;24133:81;;;;-1:-1:-1;;;24133:81:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;24233:18;24244:6;24233:10;:18::i;:::-;24225:60;;;;;-1:-1:-1;;;24225:60:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;24359:12;24373:23;24400:6;-1:-1:-1;;;;;24400:11:0;24420:5;24428:4;24400:33;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;24400:33:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;24358:75;;;;24451:52;24469:7;24478:10;24490:12;24451:17;:52::i;:::-;24444:59;23981:530;-1:-1:-1;;;;;;;23981:530:0:o;20011:422::-;20378:20;20417:8;;;20011:422::o;26521:742::-;26636:12;26665:7;26661:595;;;-1:-1:-1;26696:10:0;26689:17;;26661:595;26810:17;;:21;26806:439;;27073:10;27067:17;27134:15;27121:10;27117:2;27113:19;27106:44;27021:148;27209:20;;-1:-1:-1;;;27209:20:0;;;;;;;;;;;;;;;;;27216:12;;27209:20;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

Swarm Source

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