ERC-20
Overview
Max Total Supply
0.000000000000008785 0xEly
Holders
2
Total Transfers
-
Market
Onchain Market Cap
$0.00
Circulating Supply Market Cap
-
Other Info
Token Contract (WITH 18 Decimals)
Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
This contract contains unverified libraries: InvestmentLibrary
This contract may be a proxy contract. Click on More Options and select Is this a proxy? to confirm and enable the "Read as Proxy" & "Write as Proxy" tabs.
Similar Match Source Code This contract matches the deployed Bytecode of the Source Code for Contract 0xB94F6b06...052E991F3 The constructor portion of the code might be different and could alter the actual behaviour of the contract
Contract Name:
Investment
Compiler Version
v0.8.4+commit.c7e474f2
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2023-03-29 */ // File: @uniswap/v3-core/contracts/interfaces/IUniswapV3Factory.sol pragma solidity >=0.5.0; /// @title The interface for the Uniswap V3 Factory /// @notice The Uniswap V3 Factory facilitates creation of Uniswap V3 pools and control over the protocol fees interface IUniswapV3Factory { /// @notice Emitted when the owner of the factory is changed /// @param oldOwner The owner before the owner was changed /// @param newOwner The owner after the owner was changed event OwnerChanged(address indexed oldOwner, address indexed newOwner); /// @notice Emitted when a pool is created /// @param token0 The first token of the pool by address sort order /// @param token1 The second token of the pool by address sort order /// @param fee The fee collected upon every swap in the pool, denominated in hundredths of a bip /// @param tickSpacing The minimum number of ticks between initialized ticks /// @param pool The address of the created pool event PoolCreated( address indexed token0, address indexed token1, uint24 indexed fee, int24 tickSpacing, address pool ); /// @notice Emitted when a new fee amount is enabled for pool creation via the factory /// @param fee The enabled fee, denominated in hundredths of a bip /// @param tickSpacing The minimum number of ticks between initialized ticks for pools created with the given fee event FeeAmountEnabled(uint24 indexed fee, int24 indexed tickSpacing); /// @notice Returns the current owner of the factory /// @dev Can be changed by the current owner via setOwner /// @return The address of the factory owner function owner() external view returns (address); /// @notice Returns the tick spacing for a given fee amount, if enabled, or 0 if not enabled /// @dev A fee amount can never be removed, so this value should be hard coded or cached in the calling context /// @param fee The enabled fee, denominated in hundredths of a bip. Returns 0 in case of unenabled fee /// @return The tick spacing function feeAmountTickSpacing(uint24 fee) external view returns (int24); /// @notice Returns the pool address for a given pair of tokens and a fee, or address 0 if it does not exist /// @dev tokenA and tokenB may be passed in either token0/token1 or token1/token0 order /// @param tokenA The contract address of either token0 or token1 /// @param tokenB The contract address of the other token /// @param fee The fee collected upon every swap in the pool, denominated in hundredths of a bip /// @return pool The pool address function getPool( address tokenA, address tokenB, uint24 fee ) external view returns (address pool); /// @notice Creates a pool for the given two tokens and fee /// @param tokenA One of the two tokens in the desired pool /// @param tokenB The other of the two tokens in the desired pool /// @param fee The desired fee for the pool /// @dev tokenA and tokenB may be passed in either order: token0/token1 or token1/token0. tickSpacing is retrieved /// from the fee. The call will revert if the pool already exists, the fee is invalid, or the token arguments /// are invalid. /// @return pool The address of the newly created pool function createPool( address tokenA, address tokenB, uint24 fee ) external returns (address pool); /// @notice Updates the owner of the factory /// @dev Must be called by the current owner /// @param _owner The new owner of the factory function setOwner(address _owner) external; /// @notice Enables a fee amount with the given tickSpacing /// @dev Fee amounts may never be removed once enabled /// @param fee The fee amount to enable, denominated in hundredths of a bip (i.e. 1e-6) /// @param tickSpacing The spacing between ticks to be enforced for all pools created with the given fee amount function enableFeeAmount(uint24 fee, int24 tickSpacing) external; } // File: @uniswap/v2-core/contracts/interfaces/IUniswapV2Factory.sol pragma solidity >=0.5.0; interface IUniswapV2Factory { event PairCreated(address indexed token0, address indexed token1, address pair, uint); function feeTo() external view returns (address); function feeToSetter() external view returns (address); function getPair(address tokenA, address tokenB) external view returns (address pair); function allPairs(uint) external view returns (address pair); function allPairsLength() external view returns (uint); function createPair(address tokenA, address tokenB) external returns (address pair); function setFeeTo(address) external; function setFeeToSetter(address) external; } // File: @chainlink/contracts/src/v0.8/interfaces/AggregatorV3Interface.sol pragma solidity ^0.8.0; interface AggregatorV3Interface { function decimals() external view returns (uint8); function description() external view returns (string memory); function version() external view returns (uint256); function getRoundData(uint80 _roundId) external view returns ( uint80 roundId, int256 answer, uint256 startedAt, uint256 updatedAt, uint80 answeredInRound ); function latestRoundData() external view returns ( uint80 roundId, int256 answer, uint256 startedAt, uint256 updatedAt, uint80 answeredInRound ); } // File: @chainlink/contracts/src/v0.8/interfaces/AggregatorInterface.sol pragma solidity ^0.8.0; interface AggregatorInterface { function latestAnswer() external view returns (int256); function latestTimestamp() external view returns (uint256); function latestRound() external view returns (uint256); function getAnswer(uint256 roundId) external view returns (int256); function getTimestamp(uint256 roundId) external view returns (uint256); event AnswerUpdated(int256 indexed current, uint256 indexed roundId, uint256 updatedAt); event NewRound(uint256 indexed roundId, address indexed startedBy, uint256 startedAt); } // File: @chainlink/contracts/src/v0.8/interfaces/AggregatorV2V3Interface.sol pragma solidity ^0.8.0; interface AggregatorV2V3Interface is AggregatorInterface, AggregatorV3Interface {} // File: @chainlink/contracts/src/v0.8/interfaces/FeedRegistryInterface.sol pragma solidity ^0.8.0; pragma abicoder v2; interface FeedRegistryInterface { struct Phase { uint16 phaseId; uint80 startingAggregatorRoundId; uint80 endingAggregatorRoundId; } event FeedProposed( address indexed asset, address indexed denomination, address indexed proposedAggregator, address currentAggregator, address sender ); event FeedConfirmed( address indexed asset, address indexed denomination, address indexed latestAggregator, address previousAggregator, uint16 nextPhaseId, address sender ); // V3 AggregatorV3Interface function decimals(address base, address quote) external view returns (uint8); function description(address base, address quote) external view returns (string memory); function version(address base, address quote) external view returns (uint256); function latestRoundData(address base, address quote) external view returns ( uint80 roundId, int256 answer, uint256 startedAt, uint256 updatedAt, uint80 answeredInRound ); function getRoundData( address base, address quote, uint80 _roundId ) external view returns ( uint80 roundId, int256 answer, uint256 startedAt, uint256 updatedAt, uint80 answeredInRound ); // V2 AggregatorInterface function latestAnswer(address base, address quote) external view returns (int256 answer); function latestTimestamp(address base, address quote) external view returns (uint256 timestamp); function latestRound(address base, address quote) external view returns (uint256 roundId); function getAnswer( address base, address quote, uint256 roundId ) external view returns (int256 answer); function getTimestamp( address base, address quote, uint256 roundId ) external view returns (uint256 timestamp); // Registry getters function getFeed(address base, address quote) external view returns (AggregatorV2V3Interface aggregator); function getPhaseFeed( address base, address quote, uint16 phaseId ) external view returns (AggregatorV2V3Interface aggregator); function isFeedEnabled(address aggregator) external view returns (bool); function getPhase( address base, address quote, uint16 phaseId ) external view returns (Phase memory phase); // Round helpers function getRoundFeed( address base, address quote, uint80 roundId ) external view returns (AggregatorV2V3Interface aggregator); function getPhaseRange( address base, address quote, uint16 phaseId ) external view returns (uint80 startingRoundId, uint80 endingRoundId); function getPreviousRoundId( address base, address quote, uint80 roundId ) external view returns (uint80 previousRoundId); function getNextRoundId( address base, address quote, uint80 roundId ) external view returns (uint80 nextRoundId); // Feed management function proposeFeed( address base, address quote, address aggregator ) external; function confirmFeed( address base, address quote, address aggregator ) external; // Proposed aggregator function getProposedFeed(address base, address quote) external view returns (AggregatorV2V3Interface proposedAggregator); function proposedGetRoundData( address base, address quote, uint80 roundId ) external view returns ( uint80 id, int256 answer, uint256 startedAt, uint256 updatedAt, uint80 answeredInRound ); function proposedLatestRoundData(address base, address quote) external view returns ( uint80 id, int256 answer, uint256 startedAt, uint256 updatedAt, uint80 answeredInRound ); // Phases function getCurrentPhaseId(address base, address quote) external view returns (uint16 currentPhaseId); } // File: @uniswap/v3-periphery/contracts/libraries/PoolAddress.sol pragma solidity >=0.5.0; /// @title Provides functions for deriving a pool address from the factory, tokens, and the fee library PoolAddress { bytes32 internal constant POOL_INIT_CODE_HASH = 0xa598dd2fba360510c5a8f02f44423a4468e902df5857dbce3ca162a43a3a31ff; /// @notice The identifying key of the pool struct PoolKey { address token0; address token1; uint24 fee; } /// @notice Returns PoolKey: the ordered tokens with the matched fee levels /// @param tokenA The first token of a pool, unsorted /// @param tokenB The second token of a pool, unsorted /// @param fee The fee level of the pool /// @return Poolkey The pool details with ordered token0 and token1 assignments function getPoolKey( address tokenA, address tokenB, uint24 fee ) internal pure returns (PoolKey memory) { if (tokenA > tokenB) (tokenA, tokenB) = (tokenB, tokenA); return PoolKey({token0: tokenA, token1: tokenB, fee: fee}); } /// @notice Deterministically computes the pool address given the factory and PoolKey /// @param factory The Uniswap V3 factory contract address /// @param key The PoolKey /// @return pool The contract address of the V3 pool function computeAddress(address factory, PoolKey memory key) internal pure returns (address pool) { require(key.token0 < key.token1); pool = address( uint160( uint256( keccak256( abi.encodePacked( hex'ff', factory, keccak256(abi.encode(key.token0, key.token1, key.fee)), POOL_INIT_CODE_HASH ) ) ) ) ); } } // File: @uniswap/v3-core/contracts/interfaces/pool/IUniswapV3PoolEvents.sol pragma solidity >=0.5.0; /// @title Events emitted by a pool /// @notice Contains all events emitted by the pool interface IUniswapV3PoolEvents { /// @notice Emitted exactly once by a pool when #initialize is first called on the pool /// @dev Mint/Burn/Swap cannot be emitted by the pool before Initialize /// @param sqrtPriceX96 The initial sqrt price of the pool, as a Q64.96 /// @param tick The initial tick of the pool, i.e. log base 1.0001 of the starting price of the pool event Initialize(uint160 sqrtPriceX96, int24 tick); /// @notice Emitted when liquidity is minted for a given position /// @param sender The address that minted the liquidity /// @param owner The owner of the position and recipient of any minted liquidity /// @param tickLower The lower tick of the position /// @param tickUpper The upper tick of the position /// @param amount The amount of liquidity minted to the position range /// @param amount0 How much token0 was required for the minted liquidity /// @param amount1 How much token1 was required for the minted liquidity event Mint( address sender, address indexed owner, int24 indexed tickLower, int24 indexed tickUpper, uint128 amount, uint256 amount0, uint256 amount1 ); /// @notice Emitted when fees are collected by the owner of a position /// @dev Collect events may be emitted with zero amount0 and amount1 when the caller chooses not to collect fees /// @param owner The owner of the position for which fees are collected /// @param tickLower The lower tick of the position /// @param tickUpper The upper tick of the position /// @param amount0 The amount of token0 fees collected /// @param amount1 The amount of token1 fees collected event Collect( address indexed owner, address recipient, int24 indexed tickLower, int24 indexed tickUpper, uint128 amount0, uint128 amount1 ); /// @notice Emitted when a position's liquidity is removed /// @dev Does not withdraw any fees earned by the liquidity position, which must be withdrawn via #collect /// @param owner The owner of the position for which liquidity is removed /// @param tickLower The lower tick of the position /// @param tickUpper The upper tick of the position /// @param amount The amount of liquidity to remove /// @param amount0 The amount of token0 withdrawn /// @param amount1 The amount of token1 withdrawn event Burn( address indexed owner, int24 indexed tickLower, int24 indexed tickUpper, uint128 amount, uint256 amount0, uint256 amount1 ); /// @notice Emitted by the pool for any swaps between token0 and token1 /// @param sender The address that initiated the swap call, and that received the callback /// @param recipient The address that received the output of the swap /// @param amount0 The delta of the token0 balance of the pool /// @param amount1 The delta of the token1 balance of the pool /// @param sqrtPriceX96 The sqrt(price) of the pool after the swap, as a Q64.96 /// @param liquidity The liquidity of the pool after the swap /// @param tick The log base 1.0001 of price of the pool after the swap event Swap( address indexed sender, address indexed recipient, int256 amount0, int256 amount1, uint160 sqrtPriceX96, uint128 liquidity, int24 tick ); /// @notice Emitted by the pool for any flashes of token0/token1 /// @param sender The address that initiated the swap call, and that received the callback /// @param recipient The address that received the tokens from flash /// @param amount0 The amount of token0 that was flashed /// @param amount1 The amount of token1 that was flashed /// @param paid0 The amount of token0 paid for the flash, which can exceed the amount0 plus the fee /// @param paid1 The amount of token1 paid for the flash, which can exceed the amount1 plus the fee event Flash( address indexed sender, address indexed recipient, uint256 amount0, uint256 amount1, uint256 paid0, uint256 paid1 ); /// @notice Emitted by the pool for increases to the number of observations that can be stored /// @dev observationCardinalityNext is not the observation cardinality until an observation is written at the index /// just before a mint/swap/burn. /// @param observationCardinalityNextOld The previous value of the next observation cardinality /// @param observationCardinalityNextNew The updated value of the next observation cardinality event IncreaseObservationCardinalityNext( uint16 observationCardinalityNextOld, uint16 observationCardinalityNextNew ); /// @notice Emitted when the protocol fee is changed by the pool /// @param feeProtocol0Old The previous value of the token0 protocol fee /// @param feeProtocol1Old The previous value of the token1 protocol fee /// @param feeProtocol0New The updated value of the token0 protocol fee /// @param feeProtocol1New The updated value of the token1 protocol fee event SetFeeProtocol(uint8 feeProtocol0Old, uint8 feeProtocol1Old, uint8 feeProtocol0New, uint8 feeProtocol1New); /// @notice Emitted when the collected protocol fees are withdrawn by the factory owner /// @param sender The address that collects the protocol fees /// @param recipient The address that receives the collected protocol fees /// @param amount0 The amount of token0 protocol fees that is withdrawn /// @param amount0 The amount of token1 protocol fees that is withdrawn event CollectProtocol(address indexed sender, address indexed recipient, uint128 amount0, uint128 amount1); } // File: @uniswap/v3-core/contracts/interfaces/pool/IUniswapV3PoolOwnerActions.sol pragma solidity >=0.5.0; /// @title Permissioned pool actions /// @notice Contains pool methods that may only be called by the factory owner interface IUniswapV3PoolOwnerActions { /// @notice Set the denominator of the protocol's % share of the fees /// @param feeProtocol0 new protocol fee for token0 of the pool /// @param feeProtocol1 new protocol fee for token1 of the pool function setFeeProtocol(uint8 feeProtocol0, uint8 feeProtocol1) external; /// @notice Collect the protocol fee accrued to the pool /// @param recipient The address to which collected protocol fees should be sent /// @param amount0Requested The maximum amount of token0 to send, can be 0 to collect fees in only token1 /// @param amount1Requested The maximum amount of token1 to send, can be 0 to collect fees in only token0 /// @return amount0 The protocol fee collected in token0 /// @return amount1 The protocol fee collected in token1 function collectProtocol( address recipient, uint128 amount0Requested, uint128 amount1Requested ) external returns (uint128 amount0, uint128 amount1); } // File: @uniswap/v3-core/contracts/interfaces/pool/IUniswapV3PoolActions.sol pragma solidity >=0.5.0; /// @title Permissionless pool actions /// @notice Contains pool methods that can be called by anyone interface IUniswapV3PoolActions { /// @notice Sets the initial price for the pool /// @dev Price is represented as a sqrt(amountToken1/amountToken0) Q64.96 value /// @param sqrtPriceX96 the initial sqrt price of the pool as a Q64.96 function initialize(uint160 sqrtPriceX96) external; /// @notice Adds liquidity for the given recipient/tickLower/tickUpper position /// @dev The caller of this method receives a callback in the form of IUniswapV3MintCallback#uniswapV3MintCallback /// in which they must pay any token0 or token1 owed for the liquidity. The amount of token0/token1 due depends /// on tickLower, tickUpper, the amount of liquidity, and the current price. /// @param recipient The address for which the liquidity will be created /// @param tickLower The lower tick of the position in which to add liquidity /// @param tickUpper The upper tick of the position in which to add liquidity /// @param amount The amount of liquidity to mint /// @param data Any data that should be passed through to the callback /// @return amount0 The amount of token0 that was paid to mint the given amount of liquidity. Matches the value in the callback /// @return amount1 The amount of token1 that was paid to mint the given amount of liquidity. Matches the value in the callback function mint( address recipient, int24 tickLower, int24 tickUpper, uint128 amount, bytes calldata data ) external returns (uint256 amount0, uint256 amount1); /// @notice Collects tokens owed to a position /// @dev Does not recompute fees earned, which must be done either via mint or burn of any amount of liquidity. /// Collect must be called by the position owner. To withdraw only token0 or only token1, amount0Requested or /// amount1Requested may be set to zero. To withdraw all tokens owed, caller may pass any value greater than the /// actual tokens owed, e.g. type(uint128).max. Tokens owed may be from accumulated swap fees or burned liquidity. /// @param recipient The address which should receive the fees collected /// @param tickLower The lower tick of the position for which to collect fees /// @param tickUpper The upper tick of the position for which to collect fees /// @param amount0Requested How much token0 should be withdrawn from the fees owed /// @param amount1Requested How much token1 should be withdrawn from the fees owed /// @return amount0 The amount of fees collected in token0 /// @return amount1 The amount of fees collected in token1 function collect( address recipient, int24 tickLower, int24 tickUpper, uint128 amount0Requested, uint128 amount1Requested ) external returns (uint128 amount0, uint128 amount1); /// @notice Burn liquidity from the sender and account tokens owed for the liquidity to the position /// @dev Can be used to trigger a recalculation of fees owed to a position by calling with an amount of 0 /// @dev Fees must be collected separately via a call to #collect /// @param tickLower The lower tick of the position for which to burn liquidity /// @param tickUpper The upper tick of the position for which to burn liquidity /// @param amount How much liquidity to burn /// @return amount0 The amount of token0 sent to the recipient /// @return amount1 The amount of token1 sent to the recipient function burn( int24 tickLower, int24 tickUpper, uint128 amount ) external returns (uint256 amount0, uint256 amount1); /// @notice Swap token0 for token1, or token1 for token0 /// @dev The caller of this method receives a callback in the form of IUniswapV3SwapCallback#uniswapV3SwapCallback /// @param recipient The address to receive the output of the swap /// @param zeroForOne The direction of the swap, true for token0 to token1, false for token1 to token0 /// @param amountSpecified The amount of the swap, which implicitly configures the swap as exact input (positive), or exact output (negative) /// @param sqrtPriceLimitX96 The Q64.96 sqrt price limit. If zero for one, the price cannot be less than this /// value after the swap. If one for zero, the price cannot be greater than this value after the swap /// @param data Any data to be passed through to the callback /// @return amount0 The delta of the balance of token0 of the pool, exact when negative, minimum when positive /// @return amount1 The delta of the balance of token1 of the pool, exact when negative, minimum when positive function swap( address recipient, bool zeroForOne, int256 amountSpecified, uint160 sqrtPriceLimitX96, bytes calldata data ) external returns (int256 amount0, int256 amount1); /// @notice Receive token0 and/or token1 and pay it back, plus a fee, in the callback /// @dev The caller of this method receives a callback in the form of IUniswapV3FlashCallback#uniswapV3FlashCallback /// @dev Can be used to donate underlying tokens pro-rata to currently in-range liquidity providers by calling /// with 0 amount{0,1} and sending the donation amount(s) from the callback /// @param recipient The address which will receive the token0 and token1 amounts /// @param amount0 The amount of token0 to send /// @param amount1 The amount of token1 to send /// @param data Any data to be passed through to the callback function flash( address recipient, uint256 amount0, uint256 amount1, bytes calldata data ) external; /// @notice Increase the maximum number of price and liquidity observations that this pool will store /// @dev This method is no-op if the pool already has an observationCardinalityNext greater than or equal to /// the input observationCardinalityNext. /// @param observationCardinalityNext The desired minimum number of observations for the pool to store function increaseObservationCardinalityNext(uint16 observationCardinalityNext) external; } // File: @uniswap/v3-core/contracts/interfaces/pool/IUniswapV3PoolDerivedState.sol pragma solidity >=0.5.0; /// @title Pool state that is not stored /// @notice Contains view functions to provide information about the pool that is computed rather than stored on the /// blockchain. The functions here may have variable gas costs. interface IUniswapV3PoolDerivedState { /// @notice Returns the cumulative tick and liquidity as of each timestamp `secondsAgo` from the current block timestamp /// @dev To get a time weighted average tick or liquidity-in-range, you must call this with two values, one representing /// the beginning of the period and another for the end of the period. E.g., to get the last hour time-weighted average tick, /// you must call it with secondsAgos = [3600, 0]. /// @dev The time weighted average tick represents the geometric time weighted average price of the pool, in /// log base sqrt(1.0001) of token1 / token0. The TickMath library can be used to go from a tick value to a ratio. /// @param secondsAgos From how long ago each cumulative tick and liquidity value should be returned /// @return tickCumulatives Cumulative tick values as of each `secondsAgos` from the current block timestamp /// @return secondsPerLiquidityCumulativeX128s Cumulative seconds per liquidity-in-range value as of each `secondsAgos` from the current block /// timestamp function observe(uint32[] calldata secondsAgos) external view returns (int56[] memory tickCumulatives, uint160[] memory secondsPerLiquidityCumulativeX128s); /// @notice Returns a snapshot of the tick cumulative, seconds per liquidity and seconds inside a tick range /// @dev Snapshots must only be compared to other snapshots, taken over a period for which a position existed. /// I.e., snapshots cannot be compared if a position is not held for the entire period between when the first /// snapshot is taken and the second snapshot is taken. /// @param tickLower The lower tick of the range /// @param tickUpper The upper tick of the range /// @return tickCumulativeInside The snapshot of the tick accumulator for the range /// @return secondsPerLiquidityInsideX128 The snapshot of seconds per liquidity for the range /// @return secondsInside The snapshot of seconds per liquidity for the range function snapshotCumulativesInside(int24 tickLower, int24 tickUpper) external view returns ( int56 tickCumulativeInside, uint160 secondsPerLiquidityInsideX128, uint32 secondsInside ); } // File: @uniswap/v3-core/contracts/interfaces/pool/IUniswapV3PoolState.sol pragma solidity >=0.5.0; /// @title Pool state that can change /// @notice These methods compose the pool's state, and can change with any frequency including multiple times /// per transaction interface IUniswapV3PoolState { /// @notice The 0th storage slot in the pool stores many values, and is exposed as a single method to save gas /// when accessed externally. /// @return sqrtPriceX96 The current price of the pool as a sqrt(token1/token0) Q64.96 value /// tick The current tick of the pool, i.e. according to the last tick transition that was run. /// This value may not always be equal to SqrtTickMath.getTickAtSqrtRatio(sqrtPriceX96) if the price is on a tick /// boundary. /// observationIndex The index of the last oracle observation that was written, /// observationCardinality The current maximum number of observations stored in the pool, /// observationCardinalityNext The next maximum number of observations, to be updated when the observation. /// feeProtocol The protocol fee for both tokens of the pool. /// Encoded as two 4 bit values, where the protocol fee of token1 is shifted 4 bits and the protocol fee of token0 /// is the lower 4 bits. Used as the denominator of a fraction of the swap fee, e.g. 4 means 1/4th of the swap fee. /// unlocked Whether the pool is currently locked to reentrancy function slot0() external view returns ( uint160 sqrtPriceX96, int24 tick, uint16 observationIndex, uint16 observationCardinality, uint16 observationCardinalityNext, uint8 feeProtocol, bool unlocked ); /// @notice The fee growth as a Q128.128 fees of token0 collected per unit of liquidity for the entire life of the pool /// @dev This value can overflow the uint256 function feeGrowthGlobal0X128() external view returns (uint256); /// @notice The fee growth as a Q128.128 fees of token1 collected per unit of liquidity for the entire life of the pool /// @dev This value can overflow the uint256 function feeGrowthGlobal1X128() external view returns (uint256); /// @notice The amounts of token0 and token1 that are owed to the protocol /// @dev Protocol fees will never exceed uint128 max in either token function protocolFees() external view returns (uint128 token0, uint128 token1); /// @notice The currently in range liquidity available to the pool /// @dev This value has no relationship to the total liquidity across all ticks function liquidity() external view returns (uint128); /// @notice Look up information about a specific tick in the pool /// @param tick The tick to look up /// @return liquidityGross the total amount of position liquidity that uses the pool either as tick lower or /// tick upper, /// liquidityNet how much liquidity changes when the pool price crosses the tick, /// feeGrowthOutside0X128 the fee growth on the other side of the tick from the current tick in token0, /// feeGrowthOutside1X128 the fee growth on the other side of the tick from the current tick in token1, /// tickCumulativeOutside the cumulative tick value on the other side of the tick from the current tick /// secondsPerLiquidityOutsideX128 the seconds spent per liquidity on the other side of the tick from the current tick, /// secondsOutside the seconds spent on the other side of the tick from the current tick, /// initialized Set to true if the tick is initialized, i.e. liquidityGross is greater than 0, otherwise equal to false. /// Outside values can only be used if the tick is initialized, i.e. if liquidityGross is greater than 0. /// In addition, these values are only relative and must be used only in comparison to previous snapshots for /// a specific position. function ticks(int24 tick) external view returns ( uint128 liquidityGross, int128 liquidityNet, uint256 feeGrowthOutside0X128, uint256 feeGrowthOutside1X128, int56 tickCumulativeOutside, uint160 secondsPerLiquidityOutsideX128, uint32 secondsOutside, bool initialized ); /// @notice Returns 256 packed tick initialized boolean values. See TickBitmap for more information function tickBitmap(int16 wordPosition) external view returns (uint256); /// @notice Returns the information about a position by the position's key /// @param key The position's key is a hash of a preimage composed by the owner, tickLower and tickUpper /// @return _liquidity The amount of liquidity in the position, /// Returns feeGrowthInside0LastX128 fee growth of token0 inside the tick range as of the last mint/burn/poke, /// Returns feeGrowthInside1LastX128 fee growth of token1 inside the tick range as of the last mint/burn/poke, /// Returns tokensOwed0 the computed amount of token0 owed to the position as of the last mint/burn/poke, /// Returns tokensOwed1 the computed amount of token1 owed to the position as of the last mint/burn/poke function positions(bytes32 key) external view returns ( uint128 _liquidity, uint256 feeGrowthInside0LastX128, uint256 feeGrowthInside1LastX128, uint128 tokensOwed0, uint128 tokensOwed1 ); /// @notice Returns data about a specific observation index /// @param index The element of the observations array to fetch /// @dev You most likely want to use #observe() instead of this method to get an observation as of some amount of time /// ago, rather than at a specific index in the array. /// @return blockTimestamp The timestamp of the observation, /// Returns tickCumulative the tick multiplied by seconds elapsed for the life of the pool as of the observation timestamp, /// Returns secondsPerLiquidityCumulativeX128 the seconds per in range liquidity for the life of the pool as of the observation timestamp, /// Returns initialized whether the observation has been initialized and the values are safe to use function observations(uint256 index) external view returns ( uint32 blockTimestamp, int56 tickCumulative, uint160 secondsPerLiquidityCumulativeX128, bool initialized ); } // File: @uniswap/v3-core/contracts/interfaces/pool/IUniswapV3PoolImmutables.sol pragma solidity >=0.5.0; /// @title Pool state that never changes /// @notice These parameters are fixed for a pool forever, i.e., the methods will always return the same values interface IUniswapV3PoolImmutables { /// @notice The contract that deployed the pool, which must adhere to the IUniswapV3Factory interface /// @return The contract address function factory() external view returns (address); /// @notice The first of the two tokens of the pool, sorted by address /// @return The token contract address function token0() external view returns (address); /// @notice The second of the two tokens of the pool, sorted by address /// @return The token contract address function token1() external view returns (address); /// @notice The pool's fee in hundredths of a bip, i.e. 1e-6 /// @return The fee function fee() external view returns (uint24); /// @notice The pool tick spacing /// @dev Ticks can only be used at multiples of this value, minimum of 1 and always positive /// e.g.: a tickSpacing of 3 means ticks can be initialized every 3rd tick, i.e., ..., -6, -3, 0, 3, 6, ... /// This value is an int24 to avoid casting even though it is always positive. /// @return The tick spacing function tickSpacing() external view returns (int24); /// @notice The maximum amount of position liquidity that can use any tick in the range /// @dev This parameter is enforced per tick to prevent liquidity from overflowing a uint128 at any point, and /// also prevents out-of-range liquidity from being used to prevent adding in-range liquidity to a pool /// @return The max amount of liquidity per tick function maxLiquidityPerTick() external view returns (uint128); } // File: @uniswap/v3-core/contracts/interfaces/IUniswapV3Pool.sol pragma solidity >=0.5.0; /// @title The interface for a Uniswap V3 Pool /// @notice A Uniswap pool facilitates swapping and automated market making between any two assets that strictly conform /// to the ERC20 specification /// @dev The pool interface is broken up into many smaller pieces interface IUniswapV3Pool is IUniswapV3PoolImmutables, IUniswapV3PoolState, IUniswapV3PoolDerivedState, IUniswapV3PoolActions, IUniswapV3PoolOwnerActions, IUniswapV3PoolEvents { } // File: @uniswap/v3-core/contracts/libraries/TickMath.sol pragma solidity ^0.8.0; /// @title Math library for computing sqrt prices from ticks and vice versa /// @notice Computes sqrt price for ticks of size 1.0001, i.e. sqrt(1.0001^tick) as fixed point Q64.96 numbers. Supports /// prices between 2**-128 and 2**128 library TickMath { error T(); error R(); /// @dev The minimum tick that may be passed to #getSqrtRatioAtTick computed from log base 1.0001 of 2**-128 int24 internal constant MIN_TICK = -887272; /// @dev The maximum tick that may be passed to #getSqrtRatioAtTick computed from log base 1.0001 of 2**128 int24 internal constant MAX_TICK = -MIN_TICK; /// @dev The minimum value that can be returned from #getSqrtRatioAtTick. Equivalent to getSqrtRatioAtTick(MIN_TICK) uint160 internal constant MIN_SQRT_RATIO = 4295128739; /// @dev The maximum value that can be returned from #getSqrtRatioAtTick. Equivalent to getSqrtRatioAtTick(MAX_TICK) uint160 internal constant MAX_SQRT_RATIO = 1461446703485210103287273052203988822378723970342; /// @notice Calculates sqrt(1.0001^tick) * 2^96 /// @dev Throws if |tick| > max tick /// @param tick The input tick for the above formula /// @return sqrtPriceX96 A Fixed point Q64.96 number representing the sqrt of the ratio of the two assets (token1/token0) /// at the given tick function getSqrtRatioAtTick(int24 tick) internal pure returns (uint160 sqrtPriceX96) { unchecked { uint256 absTick = tick < 0 ? uint256(-int256(tick)) : uint256(int256(tick)); if (absTick > uint256(int256(MAX_TICK))) revert T(); uint256 ratio = absTick & 0x1 != 0 ? 0xfffcb933bd6fad37aa2d162d1a594001 : 0x100000000000000000000000000000000; if (absTick & 0x2 != 0) ratio = (ratio * 0xfff97272373d413259a46990580e213a) >> 128; if (absTick & 0x4 != 0) ratio = (ratio * 0xfff2e50f5f656932ef12357cf3c7fdcc) >> 128; if (absTick & 0x8 != 0) ratio = (ratio * 0xffe5caca7e10e4e61c3624eaa0941cd0) >> 128; if (absTick & 0x10 != 0) ratio = (ratio * 0xffcb9843d60f6159c9db58835c926644) >> 128; if (absTick & 0x20 != 0) ratio = (ratio * 0xff973b41fa98c081472e6896dfb254c0) >> 128; if (absTick & 0x40 != 0) ratio = (ratio * 0xff2ea16466c96a3843ec78b326b52861) >> 128; if (absTick & 0x80 != 0) ratio = (ratio * 0xfe5dee046a99a2a811c461f1969c3053) >> 128; if (absTick & 0x100 != 0) ratio = (ratio * 0xfcbe86c7900a88aedcffc83b479aa3a4) >> 128; if (absTick & 0x200 != 0) ratio = (ratio * 0xf987a7253ac413176f2b074cf7815e54) >> 128; if (absTick & 0x400 != 0) ratio = (ratio * 0xf3392b0822b70005940c7a398e4b70f3) >> 128; if (absTick & 0x800 != 0) ratio = (ratio * 0xe7159475a2c29b7443b29c7fa6e889d9) >> 128; if (absTick & 0x1000 != 0) ratio = (ratio * 0xd097f3bdfd2022b8845ad8f792aa5825) >> 128; if (absTick & 0x2000 != 0) ratio = (ratio * 0xa9f746462d870fdf8a65dc1f90e061e5) >> 128; if (absTick & 0x4000 != 0) ratio = (ratio * 0x70d869a156d2a1b890bb3df62baf32f7) >> 128; if (absTick & 0x8000 != 0) ratio = (ratio * 0x31be135f97d08fd981231505542fcfa6) >> 128; if (absTick & 0x10000 != 0) ratio = (ratio * 0x9aa508b5b7a84e1c677de54f3e99bc9) >> 128; if (absTick & 0x20000 != 0) ratio = (ratio * 0x5d6af8dedb81196699c329225ee604) >> 128; if (absTick & 0x40000 != 0) ratio = (ratio * 0x2216e584f5fa1ea926041bedfe98) >> 128; if (absTick & 0x80000 != 0) ratio = (ratio * 0x48a170391f7dc42444e8fa2) >> 128; if (tick > 0) ratio = type(uint256).max / ratio; // this divides by 1<<32 rounding up to go from a Q128.128 to a Q128.96. // we then downcast because we know the result always fits within 160 bits due to our tick input constraint // we round up in the division so getTickAtSqrtRatio of the output price is always consistent sqrtPriceX96 = uint160((ratio >> 32) + (ratio % (1 << 32) == 0 ? 0 : 1)); } } /// @notice Calculates the greatest tick value such that getRatioAtTick(tick) <= ratio /// @dev Throws in case sqrtPriceX96 < MIN_SQRT_RATIO, as MIN_SQRT_RATIO is the lowest value getRatioAtTick may /// ever return. /// @param sqrtPriceX96 The sqrt ratio for which to compute the tick as a Q64.96 /// @return tick The greatest tick for which the ratio is less than or equal to the input ratio function getTickAtSqrtRatio(uint160 sqrtPriceX96) internal pure returns (int24 tick) { unchecked { // second inequality must be < because the price can never reach the price at the max tick if (!(sqrtPriceX96 >= MIN_SQRT_RATIO && sqrtPriceX96 < MAX_SQRT_RATIO)) revert R(); uint256 ratio = uint256(sqrtPriceX96) << 32; uint256 r = ratio; uint256 msb = 0; assembly { let f := shl(7, gt(r, 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF)) msb := or(msb, f) r := shr(f, r) } assembly { let f := shl(6, gt(r, 0xFFFFFFFFFFFFFFFF)) msb := or(msb, f) r := shr(f, r) } assembly { let f := shl(5, gt(r, 0xFFFFFFFF)) msb := or(msb, f) r := shr(f, r) } assembly { let f := shl(4, gt(r, 0xFFFF)) msb := or(msb, f) r := shr(f, r) } assembly { let f := shl(3, gt(r, 0xFF)) msb := or(msb, f) r := shr(f, r) } assembly { let f := shl(2, gt(r, 0xF)) msb := or(msb, f) r := shr(f, r) } assembly { let f := shl(1, gt(r, 0x3)) msb := or(msb, f) r := shr(f, r) } assembly { let f := gt(r, 0x1) msb := or(msb, f) } if (msb >= 128) r = ratio >> (msb - 127); else r = ratio << (127 - msb); int256 log_2 = (int256(msb) - 128) << 64; assembly { r := shr(127, mul(r, r)) let f := shr(128, r) log_2 := or(log_2, shl(63, f)) r := shr(f, r) } assembly { r := shr(127, mul(r, r)) let f := shr(128, r) log_2 := or(log_2, shl(62, f)) r := shr(f, r) } assembly { r := shr(127, mul(r, r)) let f := shr(128, r) log_2 := or(log_2, shl(61, f)) r := shr(f, r) } assembly { r := shr(127, mul(r, r)) let f := shr(128, r) log_2 := or(log_2, shl(60, f)) r := shr(f, r) } assembly { r := shr(127, mul(r, r)) let f := shr(128, r) log_2 := or(log_2, shl(59, f)) r := shr(f, r) } assembly { r := shr(127, mul(r, r)) let f := shr(128, r) log_2 := or(log_2, shl(58, f)) r := shr(f, r) } assembly { r := shr(127, mul(r, r)) let f := shr(128, r) log_2 := or(log_2, shl(57, f)) r := shr(f, r) } assembly { r := shr(127, mul(r, r)) let f := shr(128, r) log_2 := or(log_2, shl(56, f)) r := shr(f, r) } assembly { r := shr(127, mul(r, r)) let f := shr(128, r) log_2 := or(log_2, shl(55, f)) r := shr(f, r) } assembly { r := shr(127, mul(r, r)) let f := shr(128, r) log_2 := or(log_2, shl(54, f)) r := shr(f, r) } assembly { r := shr(127, mul(r, r)) let f := shr(128, r) log_2 := or(log_2, shl(53, f)) r := shr(f, r) } assembly { r := shr(127, mul(r, r)) let f := shr(128, r) log_2 := or(log_2, shl(52, f)) r := shr(f, r) } assembly { r := shr(127, mul(r, r)) let f := shr(128, r) log_2 := or(log_2, shl(51, f)) r := shr(f, r) } assembly { r := shr(127, mul(r, r)) let f := shr(128, r) log_2 := or(log_2, shl(50, f)) } int256 log_sqrt10001 = log_2 * 255738958999603826347141; // 128.128 number int24 tickLow = int24((log_sqrt10001 - 3402992956809132418596140100660247210) >> 128); int24 tickHi = int24((log_sqrt10001 + 291339464771989622907027621153398088495) >> 128); tick = tickLow == tickHi ? tickLow : getSqrtRatioAtTick(tickHi) <= sqrtPriceX96 ? tickHi : tickLow; } } } // File: @uniswap/v3-core/contracts/libraries/FullMath.sol pragma solidity ^0.8.0; /// @title Contains 512-bit math functions /// @notice Facilitates multiplication and division that can have overflow of an intermediate value without any loss of precision /// @dev Handles "phantom overflow" i.e., allows multiplication and division where an intermediate value overflows 256 bits library FullMath { /// @notice Calculates floor(a×b÷denominator) with full precision. Throws if result overflows a uint256 or denominator == 0 /// @param a The multiplicand /// @param b The multiplier /// @param denominator The divisor /// @return result The 256-bit result /// @dev Credit to Remco Bloemen under MIT license https://xn--2-umb.com/21/muldiv function mulDiv( uint256 a, uint256 b, uint256 denominator ) internal pure returns (uint256 result) { unchecked { // 512-bit multiply [prod1 prod0] = a * b // Compute the product mod 2**256 and mod 2**256 - 1 // then use the Chinese Remainder Theorem to reconstruct // the 512 bit result. The result is stored in two 256 // variables such that product = prod1 * 2**256 + prod0 uint256 prod0; // Least significant 256 bits of the product uint256 prod1; // Most significant 256 bits of the product assembly { let mm := mulmod(a, b, not(0)) prod0 := mul(a, b) prod1 := sub(sub(mm, prod0), lt(mm, prod0)) } // Handle non-overflow cases, 256 by 256 division if (prod1 == 0) { require(denominator > 0); assembly { result := div(prod0, denominator) } return result; } // Make sure the result is less than 2**256. // Also prevents denominator == 0 require(denominator > prod1); /////////////////////////////////////////////// // 512 by 256 division. /////////////////////////////////////////////// // Make division exact by subtracting the remainder from [prod1 prod0] // Compute remainder using mulmod uint256 remainder; assembly { remainder := mulmod(a, b, denominator) } // Subtract 256 bit number from 512 bit number assembly { prod1 := sub(prod1, gt(remainder, prod0)) prod0 := sub(prod0, remainder) } // Factor powers of two out of denominator // Compute largest power of two divisor of denominator. // Always >= 1. uint256 twos = (0 - denominator) & denominator; // Divide denominator by power of two assembly { denominator := div(denominator, twos) } // Divide [prod1 prod0] by the factors of two assembly { prod0 := div(prod0, twos) } // Shift in bits from prod1 into prod0. For this we need // to flip `twos` such that it is 2**256 / twos. // If twos is zero, then it becomes one assembly { twos := add(div(sub(0, twos), twos), 1) } prod0 |= prod1 * twos; // Invert denominator mod 2**256 // Now that denominator is an odd number, it has an inverse // modulo 2**256 such that denominator * inv = 1 mod 2**256. // Compute the inverse by starting with a seed that is correct // correct for four bits. That is, denominator * inv = 1 mod 2**4 uint256 inv = (3 * denominator) ^ 2; // Now use Newton-Raphson iteration to improve the precision. // Thanks to Hensel's lifting lemma, this also works in modular // arithmetic, doubling the correct bits in each step. inv *= 2 - denominator * inv; // inverse mod 2**8 inv *= 2 - denominator * inv; // inverse mod 2**16 inv *= 2 - denominator * inv; // inverse mod 2**32 inv *= 2 - denominator * inv; // inverse mod 2**64 inv *= 2 - denominator * inv; // inverse mod 2**128 inv *= 2 - denominator * inv; // inverse mod 2**256 // Because the division is now exact we can divide by multiplying // with the modular inverse of denominator. This will give us the // correct result modulo 2**256. Since the precoditions guarantee // that the outcome is less than 2**256, this is the final result. // We don't need to compute the high bits of the result and prod1 // is no longer required. result = prod0 * inv; return result; } } /// @notice Calculates ceil(a×b÷denominator) with full precision. Throws if result overflows a uint256 or denominator == 0 /// @param a The multiplicand /// @param b The multiplier /// @param denominator The divisor /// @return result The 256-bit result function mulDivRoundingUp( uint256 a, uint256 b, uint256 denominator ) internal pure returns (uint256 result) { unchecked { result = mulDiv(a, b, denominator); if (mulmod(a, b, denominator) > 0) { require(result < type(uint256).max); result++; } } } } // File: @uniswap/v3-periphery/contracts/libraries/OracleLibrary.sol pragma solidity >=0.5.0 <0.9.0; /// @title Oracle library /// @notice Provides functions to integrate with V3 pool oracle library OracleLibrary { /// @notice Calculates time-weighted means of tick and liquidity for a given Uniswap V3 pool /// @param pool Address of the pool that we want to observe /// @param secondsAgo Number of seconds in the past from which to calculate the time-weighted means /// @return arithmeticMeanTick The arithmetic mean tick from (block.timestamp - secondsAgo) to block.timestamp /// @return harmonicMeanLiquidity The harmonic mean liquidity from (block.timestamp - secondsAgo) to block.timestamp function consult(address pool, uint32 secondsAgo) internal view returns (int24 arithmeticMeanTick, uint128 harmonicMeanLiquidity) { require(secondsAgo != 0, 'BP'); uint32[] memory secondsAgos = new uint32[](2); secondsAgos[0] = secondsAgo; secondsAgos[1] = 0; (int56[] memory tickCumulatives, uint160[] memory secondsPerLiquidityCumulativeX128s) = IUniswapV3Pool(pool) .observe(secondsAgos); int56 tickCumulativesDelta = tickCumulatives[1] - tickCumulatives[0]; uint160 secondsPerLiquidityCumulativesDelta = secondsPerLiquidityCumulativeX128s[1] - secondsPerLiquidityCumulativeX128s[0]; arithmeticMeanTick = int24(tickCumulativesDelta / int56(uint56(secondsAgo))); // Always round to negative infinity if (tickCumulativesDelta < 0 && (tickCumulativesDelta % int56(uint56(secondsAgo)) != 0)) arithmeticMeanTick--; // We are multiplying here instead of shifting to ensure that harmonicMeanLiquidity doesn't overflow uint128 uint192 secondsAgoX160 = uint192(secondsAgo) * type(uint160).max; harmonicMeanLiquidity = uint128(secondsAgoX160 / (uint192(secondsPerLiquidityCumulativesDelta) << 32)); } /// @notice Given a tick and a token amount, calculates the amount of token received in exchange /// @param tick Tick value used to calculate the quote /// @param baseAmount Amount of token to be converted /// @param baseToken Address of an ERC20 token contract used as the baseAmount denomination /// @param quoteToken Address of an ERC20 token contract used as the quoteAmount denomination /// @return quoteAmount Amount of quoteToken received for baseAmount of baseToken function getQuoteAtTick( int24 tick, uint128 baseAmount, address baseToken, address quoteToken ) internal pure returns (uint256 quoteAmount) { uint160 sqrtRatioX96 = TickMath.getSqrtRatioAtTick(tick); // Calculate quoteAmount with better precision if it doesn't overflow when multiplied by itself if (sqrtRatioX96 <= type(uint128).max) { uint256 ratioX192 = uint256(sqrtRatioX96) * sqrtRatioX96; quoteAmount = baseToken < quoteToken ? FullMath.mulDiv(ratioX192, baseAmount, 1 << 192) : FullMath.mulDiv(1 << 192, baseAmount, ratioX192); } else { uint256 ratioX128 = FullMath.mulDiv(sqrtRatioX96, sqrtRatioX96, 1 << 64); quoteAmount = baseToken < quoteToken ? FullMath.mulDiv(ratioX128, baseAmount, 1 << 128) : FullMath.mulDiv(1 << 128, baseAmount, ratioX128); } } /// @notice Given a pool, it returns the number of seconds ago of the oldest stored observation /// @param pool Address of Uniswap V3 pool that we want to observe /// @return secondsAgo The number of seconds ago of the oldest observation stored for the pool function getOldestObservationSecondsAgo(address pool) internal view returns (uint32 secondsAgo) { (, , uint16 observationIndex, uint16 observationCardinality, , , ) = IUniswapV3Pool(pool).slot0(); require(observationCardinality > 0, 'NI'); (uint32 observationTimestamp, , , bool initialized) = IUniswapV3Pool(pool).observations( (observationIndex + 1) % observationCardinality ); // The next index might not be initialized if the cardinality is in the process of increasing // In this case the oldest observation is always in index 0 if (!initialized) { (observationTimestamp, , , ) = IUniswapV3Pool(pool).observations(0); } unchecked { secondsAgo = uint32(block.timestamp) - observationTimestamp; } } /// @notice Given a pool, it returns the tick value as of the start of the current block /// @param pool Address of Uniswap V3 pool /// @return The tick that the pool was in at the start of the current block function getBlockStartingTickAndLiquidity(address pool) internal view returns (int24, uint128) { (, int24 tick, uint16 observationIndex, uint16 observationCardinality, , , ) = IUniswapV3Pool(pool).slot0(); // 2 observations are needed to reliably calculate the block starting tick require(observationCardinality > 1, 'NEO'); // If the latest observation occurred in the past, then no tick-changing trades have happened in this block // therefore the tick in `slot0` is the same as at the beginning of the current block. // We don't need to check if this observation is initialized - it is guaranteed to be. ( uint32 observationTimestamp, int56 tickCumulative, uint160 secondsPerLiquidityCumulativeX128, ) = IUniswapV3Pool(pool).observations(observationIndex); if (observationTimestamp != uint32(block.timestamp)) { return (tick, IUniswapV3Pool(pool).liquidity()); } uint256 prevIndex = (uint256(observationIndex) + observationCardinality - 1) % observationCardinality; ( uint32 prevObservationTimestamp, int56 prevTickCumulative, uint160 prevSecondsPerLiquidityCumulativeX128, bool prevInitialized ) = IUniswapV3Pool(pool).observations(prevIndex); require(prevInitialized, 'ONI'); uint32 delta = observationTimestamp - prevObservationTimestamp; tick = int24((tickCumulative - int56(uint56(prevTickCumulative))) / int56(uint56(delta))); uint128 liquidity = uint128( (uint192(delta) * type(uint160).max) / (uint192(secondsPerLiquidityCumulativeX128 - prevSecondsPerLiquidityCumulativeX128) << 32) ); return (tick, liquidity); } /// @notice Information for calculating a weighted arithmetic mean tick struct WeightedTickData { int24 tick; uint128 weight; } /// @notice Given an array of ticks and weights, calculates the weighted arithmetic mean tick /// @param weightedTickData An array of ticks and weights /// @return weightedArithmeticMeanTick The weighted arithmetic mean tick /// @dev Each entry of `weightedTickData` should represents ticks from pools with the same underlying pool tokens. If they do not, /// extreme care must be taken to ensure that ticks are comparable (including decimal differences). /// @dev Note that the weighted arithmetic mean tick corresponds to the weighted geometric mean price. function getWeightedArithmeticMeanTick(WeightedTickData[] memory weightedTickData) internal pure returns (int24 weightedArithmeticMeanTick) { // Accumulates the sum of products between each tick and its weight int256 numerator; // Accumulates the sum of the weights uint256 denominator; // Products fit in 152 bits, so it would take an array of length ~2**104 to overflow this logic for (uint256 i; i < weightedTickData.length; i++) { numerator += weightedTickData[i].tick * int256(uint256(weightedTickData[i].weight)); denominator += weightedTickData[i].weight; } weightedArithmeticMeanTick = int24(numerator / int256(denominator)); // Always round to negative infinity if (numerator < 0 && (numerator % int256(denominator) != 0)) weightedArithmeticMeanTick--; } /// @notice Returns the "synthetic" tick which represents the price of the first entry in `tokens` in terms of the last /// @dev Useful for calculating relative prices along routes. /// @dev There must be one tick for each pairwise set of tokens. /// @param tokens The token contract addresses /// @param ticks The ticks, representing the price of each token pair in `tokens` /// @return syntheticTick The synthetic tick, representing the relative price of the outermost tokens in `tokens` function getChainedPrice(address[] memory tokens, int24[] memory ticks) internal pure returns (int256 syntheticTick) { require(tokens.length - 1 == ticks.length, 'DL'); for (uint256 i = 1; i <= ticks.length; i++) { // check the tokens for address sort order, then accumulate the // ticks into the running synthetic tick, ensuring that intermediate tokens "cancel out" tokens[i - 1] < tokens[i] ? syntheticTick += ticks[i - 1] : syntheticTick -= ticks[i - 1]; } } } // File: @uniswap/v3-core/contracts/interfaces/callback/IUniswapV3SwapCallback.sol pragma solidity >=0.5.0; /// @title Callback for IUniswapV3PoolActions#swap /// @notice Any contract that calls IUniswapV3PoolActions#swap must implement this interface interface IUniswapV3SwapCallback { /// @notice Called to `msg.sender` after executing a swap via IUniswapV3Pool#swap. /// @dev In the implementation you must pay the pool tokens owed for the swap. /// The caller of this method must be checked to be a UniswapV3Pool deployed by the canonical UniswapV3Factory. /// amount0Delta and amount1Delta can both be 0 if no tokens were swapped. /// @param amount0Delta The amount of token0 that was sent (negative) or must be received (positive) by the pool by /// the end of the swap. If positive, the callback must send that amount of token0 to the pool. /// @param amount1Delta The amount of token1 that was sent (negative) or must be received (positive) by the pool by /// the end of the swap. If positive, the callback must send that amount of token1 to the pool. /// @param data Any data passed through by the caller via the IUniswapV3PoolActions#swap call function uniswapV3SwapCallback( int256 amount0Delta, int256 amount1Delta, bytes calldata data ) external; } // File: @uniswap/v3-periphery/contracts/interfaces/ISwapRouter.sol pragma solidity >=0.7.5; /// @title Router token swapping functionality /// @notice Functions for swapping tokens via Uniswap V3 interface ISwapRouter is IUniswapV3SwapCallback { struct ExactInputSingleParams { address tokenIn; address tokenOut; uint24 fee; address recipient; uint256 deadline; uint256 amountIn; uint256 amountOutMinimum; uint160 sqrtPriceLimitX96; } /// @notice Swaps `amountIn` of one token for as much as possible of another token /// @param params The parameters necessary for the swap, encoded as `ExactInputSingleParams` in calldata /// @return amountOut The amount of the received token function exactInputSingle(ExactInputSingleParams calldata params) external payable returns (uint256 amountOut); struct ExactInputParams { bytes path; address recipient; uint256 deadline; uint256 amountIn; uint256 amountOutMinimum; } /// @notice Swaps `amountIn` of one token for as much as possible of another along the specified path /// @param params The parameters necessary for the multi-hop swap, encoded as `ExactInputParams` in calldata /// @return amountOut The amount of the received token function exactInput(ExactInputParams calldata params) external payable returns (uint256 amountOut); struct ExactOutputSingleParams { address tokenIn; address tokenOut; uint24 fee; address recipient; uint256 deadline; uint256 amountOut; uint256 amountInMaximum; uint160 sqrtPriceLimitX96; } /// @notice Swaps as little as possible of one token for `amountOut` of another token /// @param params The parameters necessary for the swap, encoded as `ExactOutputSingleParams` in calldata /// @return amountIn The amount of the input token function exactOutputSingle(ExactOutputSingleParams calldata params) external payable returns (uint256 amountIn); struct ExactOutputParams { bytes path; address recipient; uint256 deadline; uint256 amountOut; uint256 amountInMaximum; } /// @notice Swaps as little as possible of one token for `amountOut` of another along the specified path (reversed) /// @param params The parameters necessary for the multi-hop swap, encoded as `ExactOutputParams` in calldata /// @return amountIn The amount of the input token function exactOutput(ExactOutputParams calldata params) external payable returns (uint256 amountIn); } // File: @uniswap/v2-periphery/contracts/interfaces/IUniswapV2Router01.sol pragma solidity >=0.6.2; interface IUniswapV2Router01 { function factory() external pure returns (address); function WETH() external pure returns (address); function addLiquidity( address tokenA, address tokenB, uint amountADesired, uint amountBDesired, uint amountAMin, uint amountBMin, address to, uint deadline ) external returns (uint amountA, uint amountB, uint liquidity); function addLiquidityETH( address token, uint amountTokenDesired, uint amountTokenMin, uint amountETHMin, address to, uint deadline ) external payable returns (uint amountToken, uint amountETH, uint liquidity); function removeLiquidity( address tokenA, address tokenB, uint liquidity, uint amountAMin, uint amountBMin, address to, uint deadline ) external returns (uint amountA, uint amountB); function removeLiquidityETH( address token, uint liquidity, uint amountTokenMin, uint amountETHMin, address to, uint deadline ) external returns (uint amountToken, uint amountETH); function removeLiquidityWithPermit( address tokenA, address tokenB, uint liquidity, uint amountAMin, uint amountBMin, address to, uint deadline, bool approveMax, uint8 v, bytes32 r, bytes32 s ) external returns (uint amountA, uint amountB); function removeLiquidityETHWithPermit( address token, uint liquidity, uint amountTokenMin, uint amountETHMin, address to, uint deadline, bool approveMax, uint8 v, bytes32 r, bytes32 s ) external returns (uint amountToken, uint amountETH); function swapExactTokensForTokens( uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline ) external returns (uint[] memory amounts); function swapTokensForExactTokens( uint amountOut, uint amountInMax, address[] calldata path, address to, uint deadline ) external returns (uint[] memory amounts); function swapExactETHForTokens(uint amountOutMin, address[] calldata path, address to, uint deadline) external payable returns (uint[] memory amounts); function swapTokensForExactETH(uint amountOut, uint amountInMax, address[] calldata path, address to, uint deadline) external returns (uint[] memory amounts); function swapExactTokensForETH(uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline) external returns (uint[] memory amounts); function swapETHForExactTokens(uint amountOut, address[] calldata path, address to, uint deadline) external payable returns (uint[] memory amounts); function quote(uint amountA, uint reserveA, uint reserveB) external pure returns (uint amountB); function getAmountOut(uint amountIn, uint reserveIn, uint reserveOut) external pure returns (uint amountOut); function getAmountIn(uint amountOut, uint reserveIn, uint reserveOut) external pure returns (uint amountIn); function getAmountsOut(uint amountIn, address[] calldata path) external view returns (uint[] memory amounts); function getAmountsIn(uint amountOut, address[] calldata path) external view returns (uint[] memory amounts); } // File: @uniswap/v2-periphery/contracts/interfaces/IUniswapV2Router02.sol pragma solidity >=0.6.2; interface IUniswapV2Router02 is IUniswapV2Router01 { function removeLiquidityETHSupportingFeeOnTransferTokens( address token, uint liquidity, uint amountTokenMin, uint amountETHMin, address to, uint deadline ) external returns (uint amountETH); function removeLiquidityETHWithPermitSupportingFeeOnTransferTokens( address token, uint liquidity, uint amountTokenMin, uint amountETHMin, address to, uint deadline, bool approveMax, uint8 v, bytes32 r, bytes32 s ) external returns (uint amountETH); function swapExactTokensForTokensSupportingFeeOnTransferTokens( uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline ) external; function swapExactETHForTokensSupportingFeeOnTransferTokens( uint amountOutMin, address[] calldata path, address to, uint deadline ) external payable; function swapExactTokensForETHSupportingFeeOnTransferTokens( uint amountIn, uint amountOutMin, address[] calldata path, address to, uint deadline ) external; } // File: @openzeppelin/contracts/utils/Strings.sol // OpenZeppelin Contracts (last updated v4.7.0) (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; uint8 private constant _ADDRESS_LENGTH = 20; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length. */ function toHexString(uint256 value, uint256 length) internal pure returns (string memory) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } /** * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation. */ function toHexString(address addr) internal pure returns (string memory) { return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH); } } // File: @uniswap/v2-core/contracts/interfaces/IUniswapV2Pair.sol pragma solidity >=0.5.0; interface IUniswapV2Pair { event Approval(address indexed owner, address indexed spender, uint value); event Transfer(address indexed from, address indexed to, uint value); function name() external pure returns (string memory); function symbol() external pure returns (string memory); function decimals() external pure returns (uint8); function totalSupply() external view returns (uint); function balanceOf(address owner) external view returns (uint); function allowance(address owner, address spender) external view returns (uint); function approve(address spender, uint value) external returns (bool); function transfer(address to, uint value) external returns (bool); function transferFrom(address from, address to, uint value) external returns (bool); function DOMAIN_SEPARATOR() external view returns (bytes32); function PERMIT_TYPEHASH() external pure returns (bytes32); function nonces(address owner) external view returns (uint); function permit(address owner, address spender, uint value, uint deadline, uint8 v, bytes32 r, bytes32 s) external; event Mint(address indexed sender, uint amount0, uint amount1); event Burn(address indexed sender, uint amount0, uint amount1, address indexed to); event Swap( address indexed sender, uint amount0In, uint amount1In, uint amount0Out, uint amount1Out, address indexed to ); event Sync(uint112 reserve0, uint112 reserve1); function MINIMUM_LIQUIDITY() external pure returns (uint); function factory() external view returns (address); function token0() external view returns (address); function token1() external view returns (address); function getReserves() external view returns (uint112 reserve0, uint112 reserve1, uint32 blockTimestampLast); function price0CumulativeLast() external view returns (uint); function price1CumulativeLast() external view returns (uint); function kLast() external view returns (uint); function mint(address to) external returns (uint liquidity); function burn(address to) external returns (uint amount0, uint amount1); function swap(uint amount0Out, uint amount1Out, address to, bytes calldata data) external; function skim(address to) external; function sync() external; function initialize(address, address) external; } // File: @openzeppelin/[email protected]/utils/Address.sol // OpenZeppelin Contracts (last updated v4.7.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @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 * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://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"); (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"); (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"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly /// @solidity memory-safe-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } } // File: @openzeppelin/[email protected]/utils/math/SafeMath.sol // OpenZeppelin Contracts (last updated v4.6.0) (utils/math/SafeMath.sol) pragma solidity ^0.8.0; // CAUTION // This version of SafeMath should only be used with Solidity 0.8 or later, // because it relies on the compiler's built in overflow checks. /** * @dev Wrappers over Solidity's arithmetic operations. * * NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler * now has built in overflow checking. */ library SafeMath { /** * @dev Returns the addition of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { uint256 c = a + b; if (c < a) return (false, 0); return (true, c); } } /** * @dev Returns the subtraction of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b > a) return (false, 0); return (true, a - b); } } /** * @dev Returns the multiplication of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522 if (a == 0) return (true, 0); uint256 c = a * b; if (c / a != b) return (false, 0); return (true, c); } } /** * @dev Returns the division of two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a / b); } } /** * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a % b); } } /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256) { return a + b; } /** * @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 a - b; } /** * @dev Returns the multiplication of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `*` operator. * * Requirements: * * - Multiplication cannot overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { return a * b; } /** * @dev Returns the integer division of two unsigned integers, reverting on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b) internal pure returns (uint256) { return a / b; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b) internal pure returns (uint256) { return a % b; } /** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {trySub}. * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b <= a, errorMessage); return a - b; } } /** * @dev Returns the integer division of two unsigned integers, reverting with custom message on * division by zero. The result is rounded towards zero. * * 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) { unchecked { require(b > 0, errorMessage); return a / b; } } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting with custom message when dividing by zero. * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {tryMod}. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a % b; } } } // File: @uniswap/v2-periphery/contracts/libraries/UniswapV2Library.sol pragma solidity >=0.5.0; library UniswapV2Library { using SafeMath for uint; // returns sorted token addresses, used to handle return values from pairs sorted in this order function sortTokens(address tokenA, address tokenB) internal pure returns (address token0, address token1) { require(tokenA != tokenB, 'UniswapV2Library: IDENTICAL_ADDRESSES'); (token0, token1) = tokenA < tokenB ? (tokenA, tokenB) : (tokenB, tokenA); require(token0 != address(0), 'UniswapV2Library: ZERO_ADDRESS'); } // calculates the CREATE2 address for a pair without making any external calls function pairFor(address factory, address tokenA, address tokenB) internal pure returns (address pair) { (address token0, address token1) = sortTokens(tokenA, tokenB); pair = address(uint160(uint(keccak256(abi.encodePacked( hex"ff", factory, keccak256(abi.encodePacked(token0, token1)), hex"96e8ac4277198ff8b6f785478aa9a39f403cb768dd02cbee326c3e7da348845f" // init code hash ))))); } // fetches and sorts the reserves for a pair function getReserves(address factory, address tokenA, address tokenB) internal view returns (uint reserveA, uint reserveB) { (address token0,) = sortTokens(tokenA, tokenB); (uint reserve0, uint reserve1,) = IUniswapV2Pair(pairFor(factory, tokenA, tokenB)).getReserves(); (reserveA, reserveB) = tokenA == token0 ? (reserve0, reserve1) : (reserve1, reserve0); } // given some amount of an asset and pair reserves, returns an equivalent amount of the other asset function quote(uint amountA, uint reserveA, uint reserveB) internal pure returns (uint amountB) { require(amountA > 0, 'UniswapV2Library: INSUFFICIENT_AMOUNT'); require(reserveA > 0 && reserveB > 0, 'UniswapV2Library: INSUFFICIENT_LIQUIDITY'); amountB = amountA.mul(reserveB) / reserveA; } // given an input amount of an asset and pair reserves, returns the maximum output amount of the other asset function getAmountOut(uint amountIn, uint reserveIn, uint reserveOut) internal pure returns (uint amountOut) { require(amountIn > 0, 'UniswapV2Library: INSUFFICIENT_INPUT_AMOUNT'); require(reserveIn > 0 && reserveOut > 0, 'UniswapV2Library: INSUFFICIENT_LIQUIDITY'); uint amountInWithFee = amountIn.mul(997); uint numerator = amountInWithFee.mul(reserveOut); uint denominator = reserveIn.mul(1000).add(amountInWithFee); amountOut = numerator / denominator; } // given an output amount of an asset and pair reserves, returns a required input amount of the other asset function getAmountIn(uint amountOut, uint reserveIn, uint reserveOut) internal pure returns (uint amountIn) { require(amountOut > 0, 'UniswapV2Library: INSUFFICIENT_OUTPUT_AMOUNT'); require(reserveIn > 0 && reserveOut > 0, 'UniswapV2Library: INSUFFICIENT_LIQUIDITY'); uint numerator = reserveIn.mul(amountOut).mul(1000); uint denominator = reserveOut.sub(amountOut).mul(997); amountIn = (numerator / denominator).add(1); } // performs chained getAmountOut calculations on any number of pairs function getAmountsOut(address factory, uint amountIn, address[] memory path) internal view returns (uint[] memory amounts) { require(path.length >= 2, 'UniswapV2Library: INVALID_PATH'); amounts = new uint[](path.length); amounts[0] = amountIn; for (uint i; i < path.length - 1; i++) { (uint reserveIn, uint reserveOut) = getReserves(factory, path[i], path[i + 1]); amounts[i + 1] = getAmountOut(amounts[i], reserveIn, reserveOut); } } // performs chained getAmountIn calculations on any number of pairs function getAmountsIn(address factory, uint amountOut, address[] memory path) internal view returns (uint[] memory amounts) { require(path.length >= 2, 'UniswapV2Library: INVALID_PATH'); amounts = new uint[](path.length); amounts[amounts.length - 1] = amountOut; for (uint i = path.length - 1; i > 0; i--) { (uint reserveIn, uint reserveOut) = getReserves(factory, path[i - 1], path[i]); amounts[i - 1] = getAmountIn(amounts[i], reserveIn, reserveOut); } } } // File: @openzeppelin/[email protected]/utils/Context.sol // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } } // File: @openzeppelin/[email protected]/access/Ownable.sol // OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol) pragma solidity ^0.8.0; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { require(owner() == _msgSender(), "Ownable: caller is not the owner"); } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } } // File: @openzeppelin/[email protected]/token/ERC20/IERC20.sol // OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/IERC20.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `to`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address to, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `from` to `to` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 amount ) external returns (bool); } // File: @openzeppelin/[email protected]/token/ERC20/extensions/IERC20Metadata.sol // OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/IERC20Metadata.sol) pragma solidity ^0.8.0; /** * @dev Interface for the optional metadata functions from the ERC20 standard. * * _Available since v4.1._ */ interface IERC20Metadata is IERC20 { /** * @dev Returns the name of the token. */ function name() external view returns (string memory); /** * @dev Returns the symbol of the token. */ function symbol() external view returns (string memory); /** * @dev Returns the decimals places of the token. */ function decimals() external view returns (uint8); } // File: @openzeppelin/[email protected]/token/ERC20/ERC20.sol // OpenZeppelin Contracts (last updated v4.7.0) (token/ERC20/ERC20.sol) pragma solidity ^0.8.0; /** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our guide * https://forum.zeppelin.solutions/t/how-to-implement-erc20-supply-mechanisms/226[How * to implement supply mechanisms]. * * We have followed general OpenZeppelin Contracts guidelines: functions revert * instead returning `false` on failure. This behavior is nonetheless * conventional and does not conflict with the expectations of ERC20 * applications. * * Additionally, an {Approval} event is emitted on calls to {transferFrom}. * This allows applications to reconstruct the allowance for all accounts just * by listening to said events. Other implementations of the EIP may not emit * these events, as it isn't required by the specification. * * Finally, the non-standard {decreaseAllowance} and {increaseAllowance} * functions have been added to mitigate the well-known issues around setting * allowances. See {IERC20-approve}. */ contract ERC20 is Context, IERC20, IERC20Metadata { mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; /** * @dev Sets the values for {name} and {symbol}. * * The default value of {decimals} is 18. To select a different value for * {decimals} you should overload it. * * All two of these values are immutable: they can only be set once during * construction. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev Returns the name of the token. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev Returns the symbol of the token, usually a shorter version of the * name. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev Returns the number of decimals used to get its user representation. * For example, if `decimals` equals `2`, a balance of `505` tokens should * be displayed to a user as `5.05` (`505 / 10 ** 2`). * * Tokens usually opt for a value of 18, imitating the relationship between * Ether and Wei. This is the value {ERC20} uses, unless this function is * overridden; * * NOTE: This information is only used for _display_ purposes: it in * no way affects any of the arithmetic of the contract, including * {IERC20-balanceOf} and {IERC20-transfer}. */ function decimals() public view virtual override returns (uint8) { return 18; } /** * @dev See {IERC20-totalSupply}. */ function totalSupply() public view virtual override returns (uint256) { return _totalSupply; } /** * @dev See {IERC20-balanceOf}. */ function balanceOf(address account) public view virtual override returns (uint256) { return _balances[account]; } /** * @dev See {IERC20-transfer}. * * Requirements: * * - `to` cannot be the zero address. * - the caller must have a balance of at least `amount`. */ function transfer(address to, uint256 amount) public virtual override returns (bool) { address owner = _msgSender(); _transfer(owner, to, amount); return true; } /** * @dev See {IERC20-allowance}. */ function allowance(address owner, address spender) public view virtual override returns (uint256) { return _allowances[owner][spender]; } /** * @dev See {IERC20-approve}. * * NOTE: If `amount` is the maximum `uint256`, the allowance is not updated on * `transferFrom`. This is semantically equivalent to an infinite approval. * * Requirements: * * - `spender` cannot be the zero address. */ function approve(address spender, uint256 amount) public virtual override returns (bool) { address owner = _msgSender(); _approve(owner, spender, amount); return true; } /** * @dev See {IERC20-transferFrom}. * * Emits an {Approval} event indicating the updated allowance. This is not * required by the EIP. See the note at the beginning of {ERC20}. * * NOTE: Does not update the allowance if the current allowance * is the maximum `uint256`. * * Requirements: * * - `from` and `to` cannot be the zero address. * - `from` must have a balance of at least `amount`. * - the caller must have allowance for ``from``'s tokens of at least * `amount`. */ function transferFrom( address from, address to, uint256 amount ) public virtual override returns (bool) { address spender = _msgSender(); _spendAllowance(from, spender, amount); _transfer(from, to, amount); return true; } /** * @dev Atomically increases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. */ function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) { address owner = _msgSender(); _approve(owner, spender, allowance(owner, spender) + addedValue); return true; } /** * @dev Atomically decreases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. * - `spender` must have allowance for the caller of at least * `subtractedValue`. */ function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) { address owner = _msgSender(); uint256 currentAllowance = allowance(owner, spender); require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero"); unchecked { _approve(owner, spender, currentAllowance - subtractedValue); } return true; } /** * @dev Moves `amount` of tokens from `from` to `to`. * * This internal function is equivalent to {transfer}, and can be used to * e.g. implement automatic token fees, slashing mechanisms, etc. * * Emits a {Transfer} event. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `from` must have a balance of at least `amount`. */ function _transfer( address from, address to, uint256 amount ) internal virtual { require(from != address(0), "ERC20: transfer from the zero address"); require(to != address(0), "ERC20: transfer to the zero address"); _beforeTokenTransfer(from, to, amount); uint256 fromBalance = _balances[from]; require(fromBalance >= amount, "ERC20: transfer amount exceeds balance"); unchecked { _balances[from] = fromBalance - amount; } _balances[to] += amount; emit Transfer(from, to, amount); _afterTokenTransfer(from, to, amount); } /** @dev Creates `amount` tokens and assigns them to `account`, increasing * the total supply. * * Emits a {Transfer} event with `from` set to the zero address. * * Requirements: * * - `account` cannot be the zero address. */ function _mint(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: mint to the zero address"); _beforeTokenTransfer(address(0), account, amount); _totalSupply += amount; _balances[account] += amount; emit Transfer(address(0), account, amount); _afterTokenTransfer(address(0), account, amount); } /** * @dev Destroys `amount` tokens from `account`, reducing the * total supply. * * Emits a {Transfer} event with `to` set to the zero address. * * Requirements: * * - `account` cannot be the zero address. * - `account` must have at least `amount` tokens. */ function _burn(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: burn from the zero address"); _beforeTokenTransfer(account, address(0), amount); uint256 accountBalance = _balances[account]; require(accountBalance >= amount, "ERC20: burn amount exceeds balance"); unchecked { _balances[account] = accountBalance - amount; } _totalSupply -= amount; emit Transfer(account, address(0), amount); _afterTokenTransfer(account, address(0), amount); } /** * @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens. * * This internal function is equivalent to `approve`, and can be used to * e.g. set automatic allowances for certain subsystems, etc. * * Emits an {Approval} event. * * Requirements: * * - `owner` cannot be the zero address. * - `spender` cannot be the zero address. */ function _approve( address owner, address spender, uint256 amount ) internal virtual { require(owner != address(0), "ERC20: approve from the zero address"); require(spender != address(0), "ERC20: approve to the zero address"); _allowances[owner][spender] = amount; emit Approval(owner, spender, amount); } /** * @dev Updates `owner` s allowance for `spender` based on spent `amount`. * * Does not update the allowance amount in case of infinite allowance. * Revert if not enough allowance is available. * * Might emit an {Approval} event. */ function _spendAllowance( address owner, address spender, uint256 amount ) internal virtual { uint256 currentAllowance = allowance(owner, spender); if (currentAllowance != type(uint256).max) { require(currentAllowance >= amount, "ERC20: insufficient allowance"); unchecked { _approve(owner, spender, currentAllowance - amount); } } } /** * @dev Hook that is called before any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens * will be transferred to `to`. * - when `from` is zero, `amount` tokens will be minted for `to`. * - when `to` is zero, `amount` of ``from``'s tokens will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address from, address to, uint256 amount ) internal virtual {} /** * @dev Hook that is called after any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens * has been transferred to `to`. * - when `from` is zero, `amount` tokens have been minted for `to`. * - when `to` is zero, `amount` of ``from``'s tokens have been burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _afterTokenTransfer( address from, address to, uint256 amount ) internal virtual {} } // File: @openzeppelin/[email protected]/token/ERC20/extensions/ERC20Burnable.sol // OpenZeppelin Contracts (last updated v4.5.0) (token/ERC20/extensions/ERC20Burnable.sol) pragma solidity ^0.8.0; /** * @dev Extension of {ERC20} that allows token holders to destroy both their own * tokens and those that they have an allowance for, in a way that can be * recognized off-chain (via event analysis). */ abstract contract ERC20Burnable is Context, ERC20 { /** * @dev Destroys `amount` tokens from the caller. * * See {ERC20-_burn}. */ function burn(uint256 amount) public virtual { _burn(_msgSender(), amount); } /** * @dev Destroys `amount` tokens from `account`, deducting from the caller's * allowance. * * See {ERC20-_burn} and {ERC20-allowance}. * * Requirements: * * - the caller must have allowance for ``accounts``'s tokens of at least * `amount`. */ function burnFrom(address account, uint256 amount) public virtual { _spendAllowance(account, _msgSender(), amount); _burn(account, amount); } } // File: InvestmentV2.sol pragma solidity 0.8.4; interface IWETH is IERC20 { function deposit() external payable; function withdraw(uint) external; } interface IFeeHandler { function collectFees(uint256) external; } interface IFactory { function _feeHandlerAddress() external returns (address); } struct crashProtectParams { address[] v2Path; bytes v3Path; uint256 amountIn; uint256 minimumOut; } struct userInteractionInfo { address user; uint256 amount; bool deposit; uint256 deadline; } struct swapInfoEntry { address token; uint256 toWETHMinimumAmountOut; uint256 fromWETHMinimumAmountOut; address[] pathToWETHV2; address[] pathFromWETHV2; bytes pathToWETHV3; bytes pathFromWETHV3; } struct processInfoStruct { uint256 valueDeposited; uint256 tokensWithdrawn; uint256 platformFeeAmount; uint256 ownerFeeAmount; uint256 withdrawals; } library InvestmentLibrary { address constant WETHAddress = 0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2; function getContractTotalBalance(swapInfoEntry[] calldata _tokensHeld) public view returns (uint256) { uint256 contractValue = IERC20(WETHAddress).balanceOf(address(this)); if(_tokensHeld.length != 0){ for (uint i = 0; i < _tokensHeld.length; i++){ if(_tokensHeld[i].pathToWETHV2.length != 0){ contractValue += getQuoteV2(_tokensHeld[i].pathToWETHV2, (IERC20(_tokensHeld[i].token).balanceOf(address(this)) * 10**(18 - IERC20Metadata(_tokensHeld[i].token).decimals()))); } else { contractValue += getQuoteV3(_tokensHeld[i].pathToWETHV3, (IERC20(_tokensHeld[i].token).balanceOf(address(this)) * 10**(18 - IERC20Metadata(_tokensHeld[i].token).decimals()))); } } } return contractValue; } function isTokenHeld(address[] memory _tokensHeld, address _address) public pure returns (bool) { if(_tokensHeld.length == 0){ return false; } else { for (uint i = 0; i < _tokensHeld.length; i++) { if (_tokensHeld[i] == _address) { return true; } } } return false; } function getInAndOutTokenAndPack(bytes memory v3Path) public view returns (address, address, bytes memory) { bytes memory packedPath; uint256 bytesLength = v3Path.length; require(bytesLength <= 288); if(bytesLength == 96){ (address tokenIn, uint24 fee, address tokenOut) = abi.decode(v3Path, (address, uint24, address)); packedPath = abi.encodePacked(tokenIn, fee, tokenOut); return (tokenIn, tokenOut, packedPath); } else if(bytesLength == 160){ (address tokenIn, uint24 fee1, address token1, uint24 fee2, address tokenOut) = abi.decode(v3Path, (address, uint24, address, uint24, address)); packedPath = abi.encodePacked(tokenIn, fee1, token1, fee2, tokenOut); return (tokenIn, tokenOut, packedPath); } else if(bytesLength == 224){ (address tokenIn, uint24 fee1, address token1, uint24 fee2, address token2, uint24 fee3, address tokenOut) = abi.decode(v3Path, (address, uint24, address, uint24, address, uint24, address)); packedPath = abi.encodePacked(tokenIn, fee1, token1, fee2, token2, fee3, tokenOut); return (tokenIn, tokenOut, packedPath); } else if(bytesLength == 288){ (address tokenIn, uint24 fee1, address token1, uint24 fee2, address token2, uint24 fee3, address token3, uint24 fee4, address tokenOut) = abi.decode(v3Path, (address, uint24, address, uint24, address, uint24, address, uint24, address)); packedPath = abi.encodePacked(tokenIn, fee1, token1, fee2, token2, fee3, token3, fee4, tokenOut); return (tokenIn, tokenOut, packedPath); } } function reverseArray(userInteractionInfo[] memory _array) public pure returns(userInteractionInfo[] memory) { uint256 length = _array.length; userInteractionInfo[] memory reversedArray = new userInteractionInfo[](length); uint j = 0; for(uint i = length; i >= 1; i--) { reversedArray[j] = _array[i-1]; j++; } return reversedArray; } function getQuoteV2(address[] calldata path, uint256 amountIn) public view returns (uint256) { IUniswapV2Factory v2Factory = IUniswapV2Factory(0x5C69bEe701ef814a2B6a3EDD4B1652CB9cc5aA6f); uint256 amountOut = amountIn; for(uint i = 1; i < path.length; i++) { address inToken = path[i-1]; address outToken = path[i]; IUniswapV2Pair pair = IUniswapV2Pair(v2Factory.getPair(inToken, outToken)); address token0 = pair.token0(); (uint256 reserve0, uint256 reserve1,) = pair.getReserves(); uint256 price; if(token0 == inToken){ price = (reserve1 * 10**(18 - IERC20Metadata(outToken).decimals()) * 10**18) / (reserve0 * 10**(18 - IERC20Metadata(inToken).decimals())); } else { price = (reserve0 * 10**(18 - IERC20Metadata(outToken).decimals()) * 10**18) / (reserve1 * 10**(18 - IERC20Metadata(inToken).decimals())); } amountOut = amountOut * price / 10**18; } return amountOut; } function getQuoteV3(bytes calldata path, uint256 amountIn) public view returns (uint256) { IUniswapV3Factory v3Factory = IUniswapV3Factory(0x1F98431c8aD98523631AE4a59f267346ea31F984); uint256 amountOut = amountIn; for(uint i = 31; i < path.length - 1; i += 64) { (address inToken, uint24 fee, address outToken) = abi.decode(path[i-31:i+65], (address, uint24, address)); IUniswapV3Pool pool = IUniswapV3Pool(v3Factory.getPool(inToken, outToken, fee)); address token0 = pool.token0(); (uint256 sqrtPriceX96,,,,,,) = pool.slot0(); uint256 uintPrice = sqrtPriceX96ToUint(sqrtPriceX96, IERC20Metadata(token0).decimals()); uintPrice = uintPrice * 10**(18 - IERC20Metadata(pool.token1()).decimals()); if(token0 != inToken){ uintPrice = 10**36 / uintPrice; } amountOut = amountOut * uintPrice / 10**18; } return amountOut; } function sqrtPriceX96ToUint(uint256 sqrtPriceX96, uint8 decimalsToken0) public pure returns (uint256) { uint256 numerator1 = sqrtPriceX96 * sqrtPriceX96; uint256 numerator2 = 10**decimalsToken0; return FullMath.mulDiv(numerator1, numerator2, 1 << 192); } function getInToken(address[] memory v2Path, bytes memory v3Path) public view returns (address) { if(v2Path.length > 0){ return v2Path[0]; } else { (address inToken,,) = getInAndOutTokenAndPack(v3Path); return inToken; } } function getOutToken(address[] memory v2Path, bytes memory v3Path) public view returns (address) { if(v2Path.length > 0){ return v2Path[v2Path.length - 1]; } else { (,address outToken,) = getInAndOutTokenAndPack(v3Path); return outToken; } } } contract Investment is ERC20, ERC20Burnable, Ownable { event poolRemovedFrom( address from, uint256 poolTokensBurned, uint256 ethReceived ); event tokensSwapped( address tokenIn, address tokenOut, uint256 tokenInAmount, uint256 tokenOutAmount ); event feePaidToOwner( address from, address to, uint256 amount ); event transactionsProcessed( processInfoStruct info ); using Address for address; address[] public _tokensHeld; string public _riskLevel; uint256 public immutable _poolFee; uint256 public _factoryFee = 20000000000000000; address public immutable _factoryAddress; uint256 public immutable _transactionFee; address[] private _stableCoins = [0xdAC17F958D2ee523a2206206994597C13D831ec7, 0xC1f33e0cf7e40a67375007104B929E49a581bafE, 0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48, 0x6B175474E89094C44Da98b954EedeAC495271d0F, 0x4Fabb145d64652a948d72533023f6E7A623C7C53]; ISwapRouter private immutable swapRouter; IUniswapV2Router02 private immutable uniswapV2Router; address constant WETHAddress = 0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2; uint256 public _totalHolders = 0; userInteractionInfo[] public _userActions; bool acceptingNewDeposits = true; constructor(string memory name_, string memory symbol_, string memory risk_, uint256 poolFee_, uint256 transactionFee_, address factoryAddress_) ERC20(name_, symbol_) { _riskLevel = risk_; _poolFee = poolFee_; _transactionFee = transactionFee_; _factoryAddress = factoryAddress_; IUniswapV2Router02 _uniswapV2Router = IUniswapV2Router02(0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D); uniswapV2Router = _uniswapV2Router; ISwapRouter _swapRouter = ISwapRouter(0xE592427A0AEce92De3Edee1F18E0157C05861564); swapRouter = _swapRouter; } function getAllTokensHeld() public view returns (address[] memory) { return _tokensHeld; } function getUserActionsLength() public view returns (uint256){ return _userActions.length; } function getContractTotalBalance(swapInfoEntry[] memory tokensHeldInfo) public view returns (uint256){ if(tokensHeldInfo.length == 0){ return IERC20(WETHAddress).balanceOf(address(this)); } return InvestmentLibrary.getContractTotalBalance(tokensHeldInfo); } function _removeAddressFromTokensHeld(address _address) public { require(msg.sender == owner() || msg.sender == address(this) || msg.sender == 0x79FD86538966541681cb7E8aCf5eF4767736a142); if(InvestmentLibrary.isTokenHeld(_tokensHeld, _address) == false){ return; } for (uint i = 0; i < _tokensHeld.length; i++){ if(_tokensHeld[i] == _address){ _tokensHeld[i] = _tokensHeld[_tokensHeld.length-1]; _tokensHeld.pop(); } } } function crashProtect(crashProtectParams[] memory tokensToSwap) public onlyOwner { require(tokensToSwap.length != 0); for (uint i = 0; i < tokensToSwap.length; i++){ bool outTokenIsStableCoin = false; for (uint idx = 0; idx < _stableCoins.length; idx++){ address outToken = InvestmentLibrary.getOutToken(tokensToSwap[i].v2Path, tokensToSwap[i].v3Path); if(outToken == _stableCoins[i]){ outTokenIsStableCoin = true; } } require(outTokenIsStableCoin == true); _swapTokens(tokensToSwap[i].v2Path, tokensToSwap[i].v3Path, tokensToSwap[i].amountIn, tokensToSwap[i].minimumOut); } } function removeOrder(uint256 indexOfOrder) public { if (indexOfOrder >= _userActions.length) return; require(_userActions[indexOfOrder].user == msg.sender || msg.sender == owner() || msg.sender == address(this)); if(msg.sender != address(this)){ _userActions[indexOfOrder].user.call{value: _transactionFee}(""); } for (uint i = indexOfOrder; i<_userActions.length-1; i++){ _userActions[i] = _userActions[i+1]; } _userActions.pop(); } function changeDepositAcceptance() public onlyOwner { acceptingNewDeposits = !acceptingNewDeposits; } function submitOrder(uint256 amount, uint256 deadline, bool deposit) public payable{ if(deposit){ require(msg.value > _transactionFee); require(acceptingNewDeposits == true); IWETH WETHContract = IWETH(WETHAddress); WETHContract.deposit{value: msg.value - _transactionFee}(); IERC20(WETHAddress).transfer(msg.sender, msg.value - _transactionFee); } else { require(amount <= balanceOf(msg.sender)); require(msg.value == _transactionFee); } _userActions.push(userInteractionInfo(msg.sender, deposit ? msg.value - _transactionFee : amount, deposit, deadline)); } function processUserTransactions(uint256 amountToProcess, swapInfoEntry[] memory swapInfo) public onlyOwner{ require(swapInfo.length == _tokensHeld.length); uint256 totalPoolValue = getContractTotalBalance(swapInfo); userInteractionInfo[] memory userActionsSnapshot = _userActions; processInfoStruct memory processingInfo = processInfoStruct(0,0,0,0,0); for (uint i = 0; i < amountToProcess; i++){ if(userActionsSnapshot[i].deposit == true){ if(userActionsSnapshot[i].deadline >= block.timestamp && IERC20(WETHAddress).allowance(userActionsSnapshot[i].user, address(this)) >= userActionsSnapshot[i].amount && IERC20(WETHAddress).balanceOf(userActionsSnapshot[i].user) >= userActionsSnapshot[i].amount ){ IERC20(WETHAddress).transferFrom(userActionsSnapshot[i].user, address(this), userActionsSnapshot[i].amount); processingInfo.platformFeeAmount += (userActionsSnapshot[i].amount * _factoryFee / 10**18); processingInfo.ownerFeeAmount += userActionsSnapshot[i].amount * _poolFee / 10**18; userActionsSnapshot[i].amount = userActionsSnapshot[i].amount - (userActionsSnapshot[i].amount * _poolFee / 10**18) - (userActionsSnapshot[i].amount * _factoryFee / 10**18); processingInfo.valueDeposited += userActionsSnapshot[i].amount; if(balanceOf(userActionsSnapshot[i].user) == 0){ _totalHolders++; } } else { userActionsSnapshot[i].amount = 0; } } else { if(userActionsSnapshot[i].deadline >= block.timestamp && allowance(userActionsSnapshot[i].user, address(this)) >= userActionsSnapshot[i].amount && balanceOf(userActionsSnapshot[i].user) >= userActionsSnapshot[i].amount){ ERC20Burnable(address(this)).burnFrom(userActionsSnapshot[i].user, userActionsSnapshot[i].amount); processingInfo.tokensWithdrawn += userActionsSnapshot[i].amount; processingInfo.withdrawals++; if(balanceOf(userActionsSnapshot[i].user) == 0){ _totalHolders--; } } else { userActionsSnapshot[i].amount = 0; } } removeOrder(0); } if(processingInfo.valueDeposited > 0){ uint256 valueIncreasePercentage = 0; uint256 amountToMint; uint256 tokensProcessed = 0; if(_tokensHeld.length > 0 && totalSupply() > 0){ for (uint i = 0; i < _tokensHeld.length; i++){ require(swapInfo[i].token == _tokensHeld[i]); uint256 value; if(swapInfo[i].pathToWETHV2.length != 0){ value = InvestmentLibrary.getQuoteV2(swapInfo[i].pathToWETHV2, IERC20(_tokensHeld[i]).balanceOf(address(this)) * 10**(18 - IERC20Metadata(_tokensHeld[i]).decimals())); } else { value = InvestmentLibrary.getQuoteV3(swapInfo[i].pathToWETHV3, IERC20(_tokensHeld[i]).balanceOf(address(this)) * 10**(18 - IERC20Metadata(_tokensHeld[i]).decimals())); } uint256 amountRecieved = _swapTokens(swapInfo[i].pathFromWETHV2, swapInfo[i].pathFromWETHV3, processingInfo.valueDeposited * (value * 10**18 / totalPoolValue) / 10**18, swapInfo[i].fromWETHMinimumAmountOut); valueIncreasePercentage += amountRecieved * 10**18 / (IERC20(_tokensHeld[i]).balanceOf(address(this)) - amountRecieved); tokensProcessed++; } amountToMint = (totalSupply() + processingInfo.tokensWithdrawn) * (valueIncreasePercentage / tokensProcessed) / 10**18; } else if(totalPoolValue > 0 && totalSupply() > 0) { amountToMint = (totalSupply() + processingInfo.tokensWithdrawn) * ((IERC20(WETHAddress).balanceOf(address(this)) - totalPoolValue - processingInfo.ownerFeeAmount - processingInfo.platformFeeAmount) * 10**18 / totalPoolValue) / 10**18; } else { amountToMint = processingInfo.valueDeposited * 100; } for (uint i = 0; i < amountToProcess; i++){ if(userActionsSnapshot[i].deposit == true && userActionsSnapshot[i].amount != 0){ _mint(userActionsSnapshot[i].user, amountToMint * (userActionsSnapshot[i].amount * 10**18 / processingInfo.valueDeposited) / 10**18); } } } if(processingInfo.tokensWithdrawn > 0){ uint256 WETHRecieved = (processingInfo.tokensWithdrawn * 10**18 / (totalSupply() + processingInfo.tokensWithdrawn)) * IERC20(WETHAddress).balanceOf(address(this)) / 10**18; address[] memory tokensHeldSnapshot = _tokensHeld; if(tokensHeldSnapshot.length > 0){ for (uint i = 0; i < tokensHeldSnapshot.length; i++){ require(swapInfo[i].token == tokensHeldSnapshot[i]); WETHRecieved += _swapTokens(swapInfo[i].pathToWETHV2, swapInfo[i].pathToWETHV3, IERC20(tokensHeldSnapshot[i]).balanceOf(address(this)) * (processingInfo.tokensWithdrawn * 10**18 / (totalSupply() + processingInfo.tokensWithdrawn)) / 10**18, swapInfo[i].toWETHMinimumAmountOut); } } processingInfo.platformFeeAmount += (WETHRecieved * _factoryFee / 10**18); processingInfo.ownerFeeAmount += WETHRecieved * _poolFee / 10**18; WETHRecieved = WETHRecieved - (WETHRecieved * _poolFee / 10**18) - (WETHRecieved * _factoryFee / 10**18); IWETH(WETHAddress).withdraw(WETHRecieved); for (uint i = 0; i < amountToProcess; i++){ if(userActionsSnapshot[i].deposit == false && userActionsSnapshot[i].amount != 0){ userActionsSnapshot[i].user.call{value: WETHRecieved * (userActionsSnapshot[i].amount * 10**18 / processingInfo.tokensWithdrawn) / 10**18}(""); } } } IWETH WETHContract = IWETH(WETHAddress); WETHContract.withdraw(processingInfo.ownerFeeAmount); owner().call{value: address(this).balance}(""); processFee(processingInfo.platformFeeAmount); emit transactionsProcessed(processingInfo); } function removeFromPoolInstantly(uint256 amountToRemove, swapInfoEntry[] memory swapInfo) public { require(balanceOf(msg.sender) > 0); require(amountToRemove > 0); require(amountToRemove <= balanceOf(msg.sender)); require(swapInfo.length == _tokensHeld.length); _burn(msg.sender, amountToRemove); if(balanceOf(msg.sender) == 0){ _totalHolders--; } uint256 userShare = amountToRemove * 10**18 / (totalSupply() + amountToRemove); uint256 wethPayout = IERC20(WETHAddress).balanceOf(address(this)) * userShare / 10**18; address[] memory tokensHeldSnapshot = _tokensHeld; for (uint i = 0; i < tokensHeldSnapshot.length; i++){ require(swapInfo[i].token == tokensHeldSnapshot[i]); if((swapInfo[i].toWETHMinimumAmountOut == 0 && swapInfo[i].fromWETHMinimumAmountOut == 0) == false){ IERC20 tokenContract = IERC20(tokensHeldSnapshot[i]); uint256 wethRecieved = _swapTokens( swapInfo[i].pathToWETHV2, swapInfo[i].pathToWETHV3, tokenContract.balanceOf(address(this)) * userShare / 10**18, swapInfo[i].toWETHMinimumAmountOut ); wethPayout += wethRecieved; } } uint256 poolOwnerFeeAmount = wethPayout * _poolFee / 10**18; uint256 factoryFeeAmount = wethPayout * _factoryFee / 10**18; uint256 amountToPayToUser = wethPayout - factoryFeeAmount - poolOwnerFeeAmount; IWETH WETHContract = IWETH(WETHAddress); IERC20(WETHAddress).transfer(owner(), poolOwnerFeeAmount); processFee(factoryFeeAmount); WETHContract.withdraw(amountToPayToUser); msg.sender.call{value: amountToPayToUser}(""); emit feePaidToOwner(msg.sender, owner(), poolOwnerFeeAmount); emit poolRemovedFrom(msg.sender, amountToRemove, amountToPayToUser); } receive() payable external {} function processFee(uint256 amount) internal { address feeHandlerAddress = IFactory(_factoryAddress)._feeHandlerAddress(); IERC20(WETHAddress).approve(feeHandlerAddress, amount); IFeeHandler(feeHandlerAddress).collectFees(amount); } function swapTokens(address[] memory v2Path, bytes memory v3Path, address[] memory inTokenPathToWethV2, bytes memory inTokenPathToWethV3, uint256 amountIn, uint256 amountOutMinimum) public onlyOwner { uint256 feeAmount = amountIn * 7500000000000000 / 10**18; address inToken = InvestmentLibrary.getInToken(v2Path, v3Path); if(inToken == WETHAddress){ processFee(feeAmount); } else { uint256 WETHRecieved = _swapTokens(inTokenPathToWethV2, inTokenPathToWethV3, feeAmount, 0); } _swapTokens(v2Path, v3Path, amountIn - feeAmount, amountOutMinimum); } function _swapTokens(address[] memory v2Path, bytes memory v3Path, uint256 amountIn, uint256 amountOutMinimum) internal returns (uint256) { address tokenIn; address tokenOut; bytes memory packedBytes; if(v2Path.length > 0){ tokenIn = v2Path[0]; tokenOut = v2Path[v2Path.length - 1]; } else { (tokenIn, tokenOut, packedBytes) = InvestmentLibrary.getInAndOutTokenAndPack(v3Path); } if(tokenIn != WETHAddress && IERC20(tokenIn).balanceOf(address(this)) - amountIn == 0 && InvestmentLibrary.isTokenHeld(_tokensHeld, tokenIn) == true){ _removeAddressFromTokensHeld(tokenIn); } if(tokenOut != WETHAddress && IERC20(tokenOut).balanceOf(address(this)) == 0 && InvestmentLibrary.isTokenHeld(_tokensHeld, tokenOut) == false){ _tokensHeld.push(tokenOut); } if(v2Path.length > 0){ uint256 balanceOfTokenBeforeSwap = IERC20(v2Path[v2Path.length - 1]).balanceOf(address(this)); IERC20(v2Path[0]).approve(address(uniswapV2Router), amountIn); uniswapV2Router.swapExactTokensForTokensSupportingFeeOnTransferTokens( amountIn, amountOutMinimum, v2Path, address(this), block.timestamp ); return IERC20(v2Path[v2Path.length - 1]).balanceOf(address(this)) - balanceOfTokenBeforeSwap; } else { IERC20(tokenIn).approve(address(swapRouter), amountIn); ISwapRouter.ExactInputParams memory params = ISwapRouter.ExactInputParams( packedBytes, address(this), block.timestamp, amountIn, amountOutMinimum ); return swapRouter.exactInput(params); } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"string","name":"name_","type":"string"},{"internalType":"string","name":"symbol_","type":"string"},{"internalType":"string","name":"risk_","type":"string"},{"internalType":"uint256","name":"poolFee_","type":"uint256"},{"internalType":"uint256","name":"transactionFee_","type":"uint256"},{"internalType":"address","name":"factoryAddress_","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"from","type":"address"},{"indexed":false,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"feePaidToOwner","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"from","type":"address"},{"indexed":false,"internalType":"uint256","name":"poolTokensBurned","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"ethReceived","type":"uint256"}],"name":"poolRemovedFrom","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"tokenIn","type":"address"},{"indexed":false,"internalType":"address","name":"tokenOut","type":"address"},{"indexed":false,"internalType":"uint256","name":"tokenInAmount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"tokenOutAmount","type":"uint256"}],"name":"tokensSwapped","type":"event"},{"anonymous":false,"inputs":[{"components":[{"internalType":"uint256","name":"valueDeposited","type":"uint256"},{"internalType":"uint256","name":"tokensWithdrawn","type":"uint256"},{"internalType":"uint256","name":"platformFeeAmount","type":"uint256"},{"internalType":"uint256","name":"ownerFeeAmount","type":"uint256"},{"internalType":"uint256","name":"withdrawals","type":"uint256"}],"indexed":false,"internalType":"struct processInfoStruct","name":"info","type":"tuple"}],"name":"transactionsProcessed","type":"event"},{"inputs":[],"name":"_factoryAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_factoryFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_poolFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"_removeAddressFromTokensHeld","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"_riskLevel","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"_tokensHeld","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_totalHolders","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_transactionFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"_userActions","outputs":[{"internalType":"address","name":"user","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bool","name":"deposit","type":"bool"},{"internalType":"uint256","name":"deadline","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"burnFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"changeDepositAcceptance","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"components":[{"internalType":"address[]","name":"v2Path","type":"address[]"},{"internalType":"bytes","name":"v3Path","type":"bytes"},{"internalType":"uint256","name":"amountIn","type":"uint256"},{"internalType":"uint256","name":"minimumOut","type":"uint256"}],"internalType":"struct crashProtectParams[]","name":"tokensToSwap","type":"tuple[]"}],"name":"crashProtect","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"subtractedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"getAllTokensHeld","outputs":[{"internalType":"address[]","name":"","type":"address[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"components":[{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"toWETHMinimumAmountOut","type":"uint256"},{"internalType":"uint256","name":"fromWETHMinimumAmountOut","type":"uint256"},{"internalType":"address[]","name":"pathToWETHV2","type":"address[]"},{"internalType":"address[]","name":"pathFromWETHV2","type":"address[]"},{"internalType":"bytes","name":"pathToWETHV3","type":"bytes"},{"internalType":"bytes","name":"pathFromWETHV3","type":"bytes"}],"internalType":"struct swapInfoEntry[]","name":"tokensHeldInfo","type":"tuple[]"}],"name":"getContractTotalBalance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getUserActionsLength","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amountToProcess","type":"uint256"},{"components":[{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"toWETHMinimumAmountOut","type":"uint256"},{"internalType":"uint256","name":"fromWETHMinimumAmountOut","type":"uint256"},{"internalType":"address[]","name":"pathToWETHV2","type":"address[]"},{"internalType":"address[]","name":"pathFromWETHV2","type":"address[]"},{"internalType":"bytes","name":"pathToWETHV3","type":"bytes"},{"internalType":"bytes","name":"pathFromWETHV3","type":"bytes"}],"internalType":"struct swapInfoEntry[]","name":"swapInfo","type":"tuple[]"}],"name":"processUserTransactions","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amountToRemove","type":"uint256"},{"components":[{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"toWETHMinimumAmountOut","type":"uint256"},{"internalType":"uint256","name":"fromWETHMinimumAmountOut","type":"uint256"},{"internalType":"address[]","name":"pathToWETHV2","type":"address[]"},{"internalType":"address[]","name":"pathFromWETHV2","type":"address[]"},{"internalType":"bytes","name":"pathToWETHV3","type":"bytes"},{"internalType":"bytes","name":"pathFromWETHV3","type":"bytes"}],"internalType":"struct swapInfoEntry[]","name":"swapInfo","type":"tuple[]"}],"name":"removeFromPoolInstantly","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"indexOfOrder","type":"uint256"}],"name":"removeOrder","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"deadline","type":"uint256"},{"internalType":"bool","name":"deposit","type":"bool"}],"name":"submitOrder","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address[]","name":"v2Path","type":"address[]"},{"internalType":"bytes","name":"v3Path","type":"bytes"},{"internalType":"address[]","name":"inTokenPathToWethV2","type":"address[]"},{"internalType":"bytes","name":"inTokenPathToWethV3","type":"bytes"},{"internalType":"uint256","name":"amountIn","type":"uint256"},{"internalType":"uint256","name":"amountOutMinimum","type":"uint256"}],"name":"swapTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]
Contract Creation Code
66470de4df8200006008556101c060405273dac17f958d2ee523a2206206994597c13d831ec761012090815273c1f33e0cf7e40a67375007104b929e49a581bafe6101405273a0b86991c6218b36c1d19d4a2e9eb0ce3606eb4861016052736b175474e89094c44da98b954eedeac495271d0f61018052734fabb145d64652a948d72533023f6e7a623c7c536101a0526200009f90600990600562000205565b506000600a55600c805460ff19166001179055348015620000bf57600080fd5b506040516200599738038062005997833981016040819052620000e291620003b6565b855186908690620000fb9060039060208501906200026f565b508051620001119060049060208401906200026f565b5050506200012e62000128620001af60201b60201c565b620001b3565b8351620001439060079060208701906200026f565b5060809290925260c05260601b6001600160601b03191660a05250507f7a250d5630b4cf539739df2c5dacb4c659f2488d00000000000000000000000061010052507fe592427a0aece92de3edee1f18e0157c0586156400000000000000000000000060e052620004cc565b3390565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b8280548282559060005260206000209081019282156200025d579160200282015b828111156200025d57825182546001600160a01b0319166001600160a01b0390911617825560209092019160019091019062000226565b506200026b929150620002ec565b5090565b8280546200027d9062000479565b90600052602060002090601f016020900481019282620002a157600085556200025d565b82601f10620002bc57805160ff19168380011785556200025d565b828001600101855582156200025d579182015b828111156200025d578251825591602001919060010190620002cf565b5b808211156200026b5760008155600101620002ed565b600082601f83011262000314578081fd5b81516001600160401b0380821115620003315762000331620004b6565b604051601f8301601f19908116603f011681019082821181831017156200035c576200035c620004b6565b8160405283815260209250868385880101111562000378578485fd5b8491505b838210156200039b57858201830151818301840152908201906200037c565b83821115620003ac57848385830101525b9695505050505050565b60008060008060008060c08789031215620003cf578182fd5b86516001600160401b0380821115620003e6578384fd5b620003f48a838b0162000303565b975060208901519150808211156200040a578384fd5b620004188a838b0162000303565b965060408901519150808211156200042e578384fd5b506200043d89828a0162000303565b606089015160808a015160a08b0151929750909550935090506001600160a01b03811681146200046b578182fd5b809150509295509295509295565b600181811c908216806200048e57607f821691505b60208210811415620004b057634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052604160045260246000fd5b60805160a05160601c60c05160e05160601c6101005160601c61541b6200057c60003960008181613f260152613fca01526000818161411601526141d601526000818161043b01528181610c2301528181610c7b01528181610d0401528181610dd101528181610e2701526133d10152600081816106b001526138d10152600081816104da0152818161131401528181611d2401528181611df201528181612f360152612fa8015261541b6000f3fe6080604052600436106102085760003560e01c806370a08231116101185780639645337a116100a0578063c6ac0c551161006f578063c6ac0c5514610634578063dd62ed3e14610649578063de731d8c14610669578063f2fde38b1461067e578063f302315d1461069e57600080fd5b80639645337a146105bf578063a457c2d7146105df578063a9059cbb146105ff578063b8cb740e1461061f57600080fd5b80637da4ba8f116100e75780637da4ba8f146104fc57806382aa4fc91461054c5780638715426d1461056c5780638da5cb5b1461058c57806395d89b41146105aa57600080fd5b806370a082311461045d578063715018a61461049357806379cc6790146104a85780637d11bc9c146104c857600080fd5b806323b872dd1161019b578063395093511161016a57806339509351146103915780633c777473146103b157806342966c68146103d157806353889684146103f15780636f302bb91461042957600080fd5b806323b872dd14610322578063313ce56714610342578063332d98541461035e57806338cfcb471461037e57600080fd5b80630cf85aec116101d75780630cf85aec146102b5578063139b4dff146102cb57806318160ddd146102ed5780631edf92581461030257600080fd5b806306fdde0314610214578063074306c21461023f578063095ea7b3146102615780630c27a6ee1461029157600080fd5b3661020f57005b600080fd5b34801561022057600080fd5b506102296106d2565b6040516102369190614fdb565b60405180910390f35b34801561024b57600080fd5b5061025f61025a36600461494b565b610764565b005b34801561026d57600080fd5b5061028161027c366004614a9e565b610975565b6040519015158152602001610236565b34801561029d57600080fd5b506102a7600a5481565b604051908152602001610236565b3480156102c157600080fd5b506102a760085481565b3480156102d757600080fd5b506102e061098f565b6040516102369190614e2e565b3480156102f957600080fd5b506002546102a7565b34801561030e57600080fd5b5061025f61031d366004614ac9565b6109f0565b34801561032e57600080fd5b5061028161033d366004614a5e565b610b0c565b34801561034e57600080fd5b5060405160128152602001610236565b34801561036a57600080fd5b506102a7610379366004614ca2565b610b30565b61025f61038c366004614d66565b610c1b565b34801561039d57600080fd5b506102816103ac366004614a9e565b610ec9565b3480156103bd57600080fd5b5061025f6103cc366004614d21565b610eeb565b3480156103dd57600080fd5b5061025f6103ec366004614cf1565b611580565b3480156103fd57600080fd5b5061041161040c366004614cf1565b61158d565b6040516001600160a01b039091168152602001610236565b34801561043557600080fd5b506102a77f000000000000000000000000000000000000000000000000000000000000000081565b34801561046957600080fd5b506102a761047836600461494b565b6001600160a01b031660009081526020819052604090205490565b34801561049f57600080fd5b5061025f6115b7565b3480156104b457600080fd5b5061025f6104c3366004614a9e565b6115cb565b3480156104d457600080fd5b506102a77f000000000000000000000000000000000000000000000000000000000000000081565b34801561050857600080fd5b5061051c610517366004614cf1565b6115e0565b604080516001600160a01b0390951685526020850193909352901515918301919091526060820152608001610236565b34801561055857600080fd5b5061025f610567366004614b83565b611627565b34801561057857600080fd5b5061025f610587366004614d21565b61186c565b34801561059857600080fd5b506005546001600160a01b0316610411565b3480156105b657600080fd5b506102296132ff565b3480156105cb57600080fd5b5061025f6105da366004614cf1565b61330e565b3480156105eb57600080fd5b506102816105fa366004614a9e565b613575565b34801561060b57600080fd5b5061028161061a366004614a9e565b6135f5565b34801561062b57600080fd5b50600b546102a7565b34801561064057600080fd5b5061025f613603565b34801561065557600080fd5b506102a761066436600461498a565b61361f565b34801561067557600080fd5b5061022961364a565b34801561068a57600080fd5b5061025f61069936600461494b565b6136d8565b3480156106aa57600080fd5b506104117f000000000000000000000000000000000000000000000000000000000000000081565b6060600380546106e190615320565b80601f016020809104026020016040519081016040528092919081815260200182805461070d90615320565b801561075a5780601f1061072f5761010080835404028352916020019161075a565b820191906000526020600020905b81548152906001019060200180831161073d57829003601f168201915b5050505050905090565b6005546001600160a01b031633148061077c57503330145b8061079a57507379fd86538966541681cb7e8acf5ef4767736a14233145b6107a357600080fd5b60405163c90828f560e01b815273d254481be8513c1ddff4f1f416b41e0fe7e2a2859063c90828f5906107dd906006908590600401614e91565b60206040518083038186803b1580156107f557600080fd5b505af4158015610809573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061082d9190614cd5565b6108345750565b60005b60065481101561097157816001600160a01b03166006828154811061086c57634e487b7160e01b600052603260045260246000fd5b6000918252602090912001546001600160a01b0316141561095f5760068054610897906001906152a3565b815481106108b557634e487b7160e01b600052603260045260246000fd5b600091825260209091200154600680546001600160a01b0390921691839081106108ef57634e487b7160e01b600052603260045260246000fd5b9060005260206000200160006101000a8154816001600160a01b0302191690836001600160a01b03160217905550600680548061093c57634e487b7160e01b600052603160045260246000fd5b600082815260209020810160001990810180546001600160a01b03191690550190555b806109698161535b565b915050610837565b5050565b60003361098381858561374e565b60019150505b92915050565b6060600680548060200260200160405190810160405280929190818152602001828054801561075a57602002820191906000526020600020905b81546001600160a01b031681526001909101906020018083116109c9575050505050905090565b6109f8613873565b6000670de0b6b3a7640000610a1484661aa535d3d0c000615284565b610a1e9190615176565b9050600073d254481be8513c1ddff4f1f416b41e0fe7e2a285635c3b2f3389896040518363ffffffff1660e01b8152600401610a5b929190614e41565b60206040518083038186803b158015610a7357600080fd5b505af4158015610a87573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610aab919061496e565b90506001600160a01b0381166000805160206153c68339815191521415610ada57610ad5826138cd565b610aec565b6000610ae98787856000613a52565b50505b610b018888610afb85886152a3565b86613a52565b505050505050505050565b600033610b1a85828561426d565b610b258585856142e7565b506001949350505050565b6000815160001415610bb8576040516370a0823160e01b81523060048201526000805160206153c6833981519152906370a082319060240160206040518083038186803b158015610b8057600080fd5b505afa158015610b94573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109899190614d09565b6040516397733f5160e01b815273d254481be8513c1ddff4f1f416b41e0fe7e2a285906397733f5190610bef908590600401614ef3565b60206040518083038186803b158015610c0757600080fd5b505af4158015610b94573d6000803e3d6000fd5b8015610db3577f00000000000000000000000000000000000000000000000000000000000000003411610c4d57600080fd5b600c5460ff161515600114610c6157600080fd5b6000805160206153c68339815191528063d0e30db0610ca07f0000000000000000000000000000000000000000000000000000000000000000346152a3565b6040518263ffffffff1660e01b81526004016000604051808303818588803b158015610ccb57600080fd5b505af1158015610cdf573d6000803e3d6000fd5b50505050506000805160206153c68339815191526001600160a01b031663a9059cbb337f000000000000000000000000000000000000000000000000000000000000000034610d2e91906152a3565b6040516001600160e01b031960e085901b1681526001600160a01b0390921660048301526024820152604401602060405180830381600087803b158015610d7457600080fd5b505af1158015610d88573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610dac9190614cd5565b5050610dfb565b33600090815260208190526040902054831115610dcf57600080fd5b7f00000000000000000000000000000000000000000000000000000000000000003414610dfb57600080fd5b600b6040518060800160405280336001600160a01b0316815260200183610e225785610e4c565b610e4c7f0000000000000000000000000000000000000000000000000000000000000000346152a3565b8152921515602080850191909152604093840194909452815460018082018455600093845292859020825160049092020180546001600160a01b0319166001600160a01b0390921691909117815593810151918401919091559081015160028301805460ff19169115159190911790556060015160039091015550565b600033610983818585610edc838361361f565b610ee6919061515e565b61374e565b3360009081526020819052604081205411610f0557600080fd5b60008211610f1257600080fd5b33600090815260208190526040902054821115610f2e57600080fd5b600654815114610f3d57600080fd5b610f4733836144b5565b33600090815260208190526040902054610f7157600a8054906000610f6b83615309565b91905055505b600082610f7d60025490565b610f87919061515e565b610f9984670de0b6b3a7640000615284565b610fa39190615176565b6040516370a0823160e01b8152306004820152909150600090670de0b6b3a76400009083906000805160206153c6833981519152906370a082319060240160206040518083038186803b158015610ff957600080fd5b505afa15801561100d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110319190614d09565b61103b9190615284565b6110459190615176565b90506000600680548060200260200160405190810160405280929190818152602001828054801561109f57602002820191906000526020600020905b81546001600160a01b03168152600190910190602001808311611081575b5050505050905060005b8151811015611303578181815181106110d257634e487b7160e01b600052603260045260246000fd5b60200260200101516001600160a01b031685828151811061110357634e487b7160e01b600052603260045260246000fd5b6020026020010151600001516001600160a01b03161461112257600080fd5b84818151811061114257634e487b7160e01b600052603260045260246000fd5b6020026020010151602001516000148015611188575084818151811061117857634e487b7160e01b600052603260045260246000fd5b6020026020010151604001516000145b6112f15760008282815181106111ae57634e487b7160e01b600052603260045260246000fd5b6020026020010151905060006112e08784815181106111dd57634e487b7160e01b600052603260045260246000fd5b60200260200101516060015188858151811061120957634e487b7160e01b600052603260045260246000fd5b602090810291909101015160a001516040516370a0823160e01b8152306004820152670de0b6b3a7640000908a906001600160a01b038816906370a082319060240160206040518083038186803b15801561126357600080fd5b505afa158015611277573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061129b9190614d09565b6112a59190615284565b6112af9190615176565b8a87815181106112cf57634e487b7160e01b600052603260045260246000fd5b602002602001015160200151613a52565b90506112ec818661515e565b945050505b806112fb8161535b565b9150506110a9565b506000670de0b6b3a76400006113397f000000000000000000000000000000000000000000000000000000000000000085615284565b6113439190615176565b90506000670de0b6b3a76400006008548561135e9190615284565b6113689190615176565b905060008261137783876152a3565b61138191906152a3565b90506000805160206153c68339815191528063a9059cbb6113aa6005546001600160a01b031690565b6040516001600160e01b031960e084901b1681526001600160a01b03909116600482015260248101879052604401602060405180830381600087803b1580156113f257600080fd5b505af1158015611406573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061142a9190614cd5565b50611434836138cd565b604051632e1a7d4d60e01b8152600481018390526001600160a01b03821690632e1a7d4d90602401600060405180830381600087803b15801561147657600080fd5b505af115801561148a573d6000803e3d6000fd5b5050604051339250849150600081818185875af1925050503d80600081146114ce576040519150601f19603f3d011682016040523d82523d6000602084013e6114d3565b606091505b5050507fa0f25ea12258315a86d16b7542e438d5b0e81f707fafc13a672de6038b1994843361150a6005546001600160a01b031690565b604080516001600160a01b039384168152929091166020830152810186905260600160405180910390a160408051338152602081018b90529081018390527f4653e6affe7720aa65cb4626e64d6c89ffe8d8c75260adbbec83e4786c308e0f9060600160405180910390a1505050505050505050565b61158a33826144b5565b50565b6006818154811061159d57600080fd5b6000918252602090912001546001600160a01b0316905081565b6115bf613873565b6115c960006145fb565b565b6115d682338361426d565b61097182826144b5565b600b81815481106115f057600080fd5b600091825260209091206004909102018054600182015460028301546003909301546001600160a01b0390921693509160ff169084565b61162f613873565b805161163a57600080fd5b60005b8151811015610971576000805b60095481101561178f57600073d254481be8513c1ddff4f1f416b41e0fe7e2a28563e568db9d86868151811061169057634e487b7160e01b600052603260045260246000fd5b6020026020010151600001518787815181106116bc57634e487b7160e01b600052603260045260246000fd5b6020026020010151602001516040518363ffffffff1660e01b81526004016116e5929190614e41565b60206040518083038186803b1580156116fd57600080fd5b505af4158015611711573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611735919061496e565b90506009848154811061175857634e487b7160e01b600052603260045260246000fd5b6000918252602090912001546001600160a01b038281169116141561177c57600192505b50806117878161535b565b91505061164a565b5060018115151461179f57600080fd5b6118578383815181106117c257634e487b7160e01b600052603260045260246000fd5b6020026020010151600001518484815181106117ee57634e487b7160e01b600052603260045260246000fd5b60200260200101516020015185858151811061181a57634e487b7160e01b600052603260045260246000fd5b60200260200101516040015186868151811061184657634e487b7160e01b600052603260045260246000fd5b602002602001015160600151613a52565b505080806118649061535b565b91505061163d565b611874613873565b60065481511461188357600080fd5b600061188e82610b30565b90506000600b805480602002602001604051908101604052809291908181526020016000905b82821015611916576000848152602090819020604080516080810182526004860290920180546001600160a01b0316835260018082015484860152600282015460ff1615159284019290925260030154606083015290835290920191016118b4565b50505050905060006040518060a00160405280600081526020016000815260200160008152602001600081526020016000815250905060005b858110156122405782818151811061197757634e487b7160e01b600052603260045260246000fd5b6020026020010151604001511515600115151415611fa457428382815181106119b057634e487b7160e01b600052603260045260246000fd5b60200260200101516060015110158015611aba57508281815181106119e557634e487b7160e01b600052603260045260246000fd5b6020026020010151602001516000805160206153c68339815191526001600160a01b031663dd62ed3e858481518110611a2e57634e487b7160e01b600052603260045260246000fd5b6020908102919091010151516040516001600160e01b031960e084901b1681526001600160a01b03909116600482015230602482015260440160206040518083038186803b158015611a7f57600080fd5b505afa158015611a93573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611ab79190614d09565b10155b8015611bb05750828181518110611ae157634e487b7160e01b600052603260045260246000fd5b6020026020010151602001516000805160206153c68339815191526001600160a01b03166370a08231858481518110611b2a57634e487b7160e01b600052603260045260246000fd5b6020908102919091010151516040516001600160e01b031960e084901b1681526001600160a01b03909116600482015260240160206040518083038186803b158015611b7557600080fd5b505afa158015611b89573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611bad9190614d09565b10155b15611f6d576000805160206153c68339815191526001600160a01b03166323b872dd848381518110611bf257634e487b7160e01b600052603260045260246000fd5b60200260200101516000015130868581518110611c1f57634e487b7160e01b600052603260045260246000fd5b60209081029190910181015101516040516001600160e01b031960e086901b1681526001600160a01b0393841660048201529290911660248301526044820152606401602060405180830381600087803b158015611c7c57600080fd5b505af1158015611c90573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611cb49190614cd5565b50670de0b6b3a7640000600854848381518110611ce157634e487b7160e01b600052603260045260246000fd5b602002602001015160200151611cf79190615284565b611d019190615176565b82604001818151611d12919061515e565b91508181525050670de0b6b3a76400007f0000000000000000000000000000000000000000000000000000000000000000848381518110611d6357634e487b7160e01b600052603260045260246000fd5b602002602001015160200151611d799190615284565b611d839190615176565b82606001818151611d94919061515e565b91508181525050670de0b6b3a7640000600854848381518110611dc757634e487b7160e01b600052603260045260246000fd5b602002602001015160200151611ddd9190615284565b611de79190615176565b670de0b6b3a76400007f0000000000000000000000000000000000000000000000000000000000000000858481518110611e3157634e487b7160e01b600052603260045260246000fd5b602002602001015160200151611e479190615284565b611e519190615176565b848381518110611e7157634e487b7160e01b600052603260045260246000fd5b602002602001015160200151611e8791906152a3565b611e9191906152a3565b838281518110611eb157634e487b7160e01b600052603260045260246000fd5b60200260200101516020018181525050828181518110611ee157634e487b7160e01b600052603260045260246000fd5b60200260200101516020015182600001818151611efe919061515e565b9052508251611f4e90849083908110611f2757634e487b7160e01b600052603260045260246000fd5b6020026020010151600001516001600160a01b031660009081526020819052604090205490565b611f6857600a8054906000611f628361535b565b91905055505b612224565b6000838281518110611f8f57634e487b7160e01b600052603260045260246000fd5b60200260200101516020018181525050612224565b42838281518110611fc557634e487b7160e01b600052603260045260246000fd5b6020026020010151606001511015801561203e5750828181518110611ffa57634e487b7160e01b600052603260045260246000fd5b60200260200101516020015161203b84838151811061202957634e487b7160e01b600052603260045260246000fd5b6020026020010151600001513061361f565b10155b8015612097575082818151811061206557634e487b7160e01b600052603260045260246000fd5b602002602001015160200151612094848381518110611f2757634e487b7160e01b600052603260045260246000fd5b10155b156121f157306001600160a01b03166379cc67908483815181106120cb57634e487b7160e01b600052603260045260246000fd5b6020026020010151600001518584815181106120f757634e487b7160e01b600052603260045260246000fd5b6020026020010151602001516040518363ffffffff1660e01b81526004016121349291906001600160a01b03929092168252602082015260400190565b600060405180830381600087803b15801561214e57600080fd5b505af1158015612162573d6000803e3d6000fd5b5050505082818151811061218657634e487b7160e01b600052603260045260246000fd5b602002602001015160200151826020018181516121a3919061515e565b905250608082018051906121b68261535b565b815250506121dd838281518110611f2757634e487b7160e01b600052603260045260246000fd5b611f6857600a8054906000611f6283615309565b600083828151811061221357634e487b7160e01b600052603260045260246000fd5b602002602001015160200181815250505b61222e600061330e565b806122388161535b565b91505061194f565b50805115612b9e5760065460009081908190158015906122685750600061226660025490565b115b156129715760005b600654811015612930576006818154811061229b57634e487b7160e01b600052603260045260246000fd5b60009182526020909120015488516001600160a01b03909116908990839081106122d557634e487b7160e01b600052603260045260246000fd5b6020026020010151600001516001600160a01b0316146122f457600080fd5b600088828151811061231657634e487b7160e01b600052603260045260246000fd5b6020026020010151606001515160001461254b5773d254481be8513c1ddff4f1f416b41e0fe7e2a28563cf366ec08a848151811061236457634e487b7160e01b600052603260045260246000fd5b6020026020010151606001516006858154811061239157634e487b7160e01b600052603260045260246000fd5b600091825260209182902001546040805163313ce56760e01b815290516001600160a01b039092169263313ce56792600480840193829003018186803b1580156123da57600080fd5b505afa1580156123ee573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906124129190614d9e565b61241d9060126152ba565b61242890600a6151d9565b6006868154811061244957634e487b7160e01b600052603260045260246000fd5b6000918252602090912001546040516370a0823160e01b81523060048201526001600160a01b03909116906370a082319060240160206040518083038186803b15801561249557600080fd5b505afa1580156124a9573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906124cd9190614d09565b6124d79190615284565b6040518363ffffffff1660e01b81526004016124f4929190614e6f565b60206040518083038186803b15801561250c57600080fd5b505af4158015612520573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906125449190614d09565b9050612768565b73d254481be8513c1ddff4f1f416b41e0fe7e2a28563b8370bf38a848151811061258557634e487b7160e01b600052603260045260246000fd5b602002602001015160a00151600685815481106125b257634e487b7160e01b600052603260045260246000fd5b600091825260209182902001546040805163313ce56760e01b815290516001600160a01b039092169263313ce56792600480840193829003018186803b1580156125fb57600080fd5b505afa15801561260f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906126339190614d9e565b61263e9060126152ba565b61264990600a6151d9565b6006868154811061266a57634e487b7160e01b600052603260045260246000fd5b6000918252602090912001546040516370a0823160e01b81523060048201526001600160a01b03909116906370a082319060240160206040518083038186803b1580156126b657600080fd5b505afa1580156126ca573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906126ee9190614d09565b6126f89190615284565b6040518363ffffffff1660e01b8152600401612715929190614fee565b60206040518083038186803b15801561272d57600080fd5b505af4158015612741573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906127659190614d09565b90505b60006128348a848151811061278d57634e487b7160e01b600052603260045260246000fd5b6020026020010151608001518b85815181106127b957634e487b7160e01b600052603260045260246000fd5b602002602001015160c00151670de0b6b3a76400008c86670de0b6b3a76400006127e39190615284565b6127ed9190615176565b8b516127f99190615284565b6128039190615176565b8d878151811061282357634e487b7160e01b600052603260045260246000fd5b602002602001015160400151613a52565b9050806006848154811061285857634e487b7160e01b600052603260045260246000fd5b6000918252602090912001546040516370a0823160e01b81523060048201526001600160a01b03909116906370a082319060240160206040518083038186803b1580156128a457600080fd5b505afa1580156128b8573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906128dc9190614d09565b6128e691906152a3565b6128f882670de0b6b3a7640000615284565b6129029190615176565b61290c908761515e565b9550836129188161535b565b945050505080806129289061535b565b915050612270565b50670de0b6b3a76400006129448285615176565b6020860151600254612956919061515e565b6129609190615284565b61296a9190615176565b9150612a6d565b6000861180156129895750600061298760025490565b115b15612a5d57604080850151606086015191516370a0823160e01b8152306004820152670de0b6b3a76400009289929183906000805160206153c6833981519152906370a082319060240160206040518083038186803b1580156129eb57600080fd5b505afa1580156129ff573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612a239190614d09565b612a2d91906152a3565b612a3791906152a3565b612a4191906152a3565b612a5390670de0b6b3a7640000615284565b6129449190615176565b8351612a6a906064615284565b91505b60005b88811015612b9957858181518110612a9857634e487b7160e01b600052603260045260246000fd5b602002602001015160400151151560011515148015612ae35750858181518110612ad257634e487b7160e01b600052603260045260246000fd5b602002602001015160200151600014155b15612b8757612b87868281518110612b0b57634e487b7160e01b600052603260045260246000fd5b602002602001015160000151670de0b6b3a76400008760000151898581518110612b4557634e487b7160e01b600052603260045260246000fd5b602002602001015160200151670de0b6b3a7640000612b649190615284565b612b6e9190615176565b612b789087615284565b612b829190615176565b61464d565b80612b918161535b565b915050612a70565b505050505b6020810151156131c0576040516370a0823160e01b8152306004820152600090670de0b6b3a7640000906000805160206153c6833981519152906370a082319060240160206040518083038186803b158015612bf957600080fd5b505afa158015612c0d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612c319190614d09565b6020840151600254612c43919061515e565b6020850151612c5a90670de0b6b3a7640000615284565b612c649190615176565b612c6e9190615284565b612c789190615176565b905060006006805480602002602001604051908101604052809291908181526020018280548015612cd257602002820191906000526020600020905b81546001600160a01b03168152600190910190602001808311612cb4575b50505050509050600081511115612ef35760005b8151811015612ef157818181518110612d0f57634e487b7160e01b600052603260045260246000fd5b60200260200101516001600160a01b0316878281518110612d4057634e487b7160e01b600052603260045260246000fd5b6020026020010151600001516001600160a01b031614612d5f57600080fd5b612ed3878281518110612d8257634e487b7160e01b600052603260045260246000fd5b602002602001015160600151888381518110612dae57634e487b7160e01b600052603260045260246000fd5b602002602001015160a00151670de0b6b3a76400008760200151612dd160025490565b612ddb919061515e565b6020890151612df290670de0b6b3a7640000615284565b612dfc9190615176565b868681518110612e1c57634e487b7160e01b600052603260045260246000fd5b60209081029190910101516040516370a0823160e01b81523060048201526001600160a01b03909116906370a082319060240160206040518083038186803b158015612e6757600080fd5b505afa158015612e7b573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612e9f9190614d09565b612ea99190615284565b612eb39190615176565b8a85815181106112cf57634e487b7160e01b600052603260045260246000fd5b612edd908461515e565b925080612ee98161535b565b915050612ce6565b505b670de0b6b3a764000060085483612f0a9190615284565b612f149190615176565b83604001818151612f25919061515e565b905250670de0b6b3a7640000612f5b7f000000000000000000000000000000000000000000000000000000000000000084615284565b612f659190615176565b83606001818151612f76919061515e565b905250600854670de0b6b3a764000090612f909084615284565b612f9a9190615176565b670de0b6b3a7640000612fcd7f000000000000000000000000000000000000000000000000000000000000000085615284565b612fd79190615176565b612fe190846152a3565b612feb91906152a3565b604051632e1a7d4d60e01b8152600481018290529092506000805160206153c683398151915290632e1a7d4d90602401600060405180830381600087803b15801561303557600080fd5b505af1158015613049573d6000803e3d6000fd5b5050505060005b878110156131bc5784818151811061307857634e487b7160e01b600052603260045260246000fd5b6020908102919091010151604001511580156130c057508481815181106130af57634e487b7160e01b600052603260045260246000fd5b602002602001015160200151600014155b156131aa578481815181106130e557634e487b7160e01b600052603260045260246000fd5b6020026020010151600001516001600160a01b0316670de0b6b3a7640000856020015187848151811061312857634e487b7160e01b600052603260045260246000fd5b602002602001015160200151670de0b6b3a76400006131479190615284565b6131519190615176565b61315b9086615284565b6131659190615176565b604051600081818185875af1925050503d80600081146131a1576040519150601f19603f3d011682016040523d82523d6000602084013e6131a6565b606091505b5050505b806131b48161535b565b915050613050565b5050505b6060810151604051632e1a7d4d60e01b81526000805160206153c6833981519152918291632e1a7d4d916131fa9160040190815260200190565b600060405180830381600087803b15801561321457600080fd5b505af1158015613228573d6000803e3d6000fd5b5050505061323e6005546001600160a01b031690565b6001600160a01b03164760405160006040518083038185875af1925050503d8060008114613288576040519150601f19603f3d011682016040523d82523d6000602084013e61328d565b606091505b50505061329d82604001516138cd565b6040805183518152602080850151908201528382015181830152606080850151908201526080808501519082015290517fd17dc3a3e006b94316f6b0c447660cfd473c92392c21268ac3891ccc8b0cb0899181900360a00190a1505050505050565b6060600480546106e190615320565b600b54811061331a5750565b336001600160a01b0316600b828154811061334557634e487b7160e01b600052603260045260246000fd5b60009182526020909120600490910201546001600160a01b0316148061337557506005546001600160a01b031633145b8061337f57503330145b61338857600080fd5b33301461343257600b81815481106133b057634e487b7160e01b600052603260045260246000fd5b600091825260208220600490910201546040516001600160a01b03909116917f0000000000000000000000000000000000000000000000000000000000000000919081818185875af1925050503d8060008114613429576040519150601f19603f3d011682016040523d82523d6000602084013e61342e565b606091505b5050505b805b600b54613443906001906152a3565b81101561351657600b61345782600161515e565b8154811061347557634e487b7160e01b600052603260045260246000fd5b9060005260206000209060040201600b82815481106134a457634e487b7160e01b600052603260045260246000fd5b60009182526020909120825460049092020180546001600160a01b0319166001600160a01b0390921691909117815560018083015490820155600280830154908201805460ff909216151560ff199092169190911790556003918201549101558061350e8161535b565b915050613434565b50600b80548061353657634e487b7160e01b600052603160045260246000fd5b60008281526020812060046000199093019283020180546001600160a01b03191681556001810182905560028101805460ff1916905560030155905550565b60003381613583828661361f565b9050838110156135e85760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b60648201526084015b60405180910390fd5b610b25828686840361374e565b6000336109838185856142e7565b61360b613873565b600c805460ff19811660ff90911615179055565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b6007805461365790615320565b80601f016020809104026020016040519081016040528092919081815260200182805461368390615320565b80156136d05780601f106136a5576101008083540402835291602001916136d0565b820191906000526020600020905b8154815290600101906020018083116136b357829003601f168201915b505050505081565b6136e0613873565b6001600160a01b0381166137455760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016135df565b61158a816145fb565b6001600160a01b0383166137b05760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b60648201526084016135df565b6001600160a01b0382166138115760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b60648201526084016135df565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591015b60405180910390a3505050565b6005546001600160a01b031633146115c95760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016135df565b60007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663fc51e3546040518163ffffffff1660e01b8152600401602060405180830381600087803b15801561392a57600080fd5b505af115801561393e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613962919061496e565b60405163095ea7b360e01b81526001600160a01b0382166004820152602481018490529091506000805160206153c68339815191529063095ea7b390604401602060405180830381600087803b1580156139bb57600080fd5b505af11580156139cf573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906139f39190614cd5565b5060405163b17acdcd60e01b8152600481018390526001600160a01b0382169063b17acdcd90602401600060405180830381600087803b158015613a3657600080fd5b505af1158015613a4a573d6000803e3d6000fd5b505050505050565b60008060006060600088511115613aca5787600081518110613a8457634e487b7160e01b600052603260045260246000fd5b602002602001015192508760018951613a9d91906152a3565b81518110613abb57634e487b7160e01b600052603260045260246000fd5b60200260200101519150613b5d565b604051631ce92ac160e31b815273d254481be8513c1ddff4f1f416b41e0fe7e2a2859063e749560890613b01908a90600401614fdb565b60006040518083038186803b158015613b1957600080fd5b505af4158015613b2d573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052613b5591908101906149c2565b919450925090505b6001600160a01b0383166000805160206153c683398151915214801590613c0457506040516370a0823160e01b815230600482015286906001600160a01b038516906370a082319060240160206040518083038186803b158015613bc057600080fd5b505afa158015613bd4573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613bf89190614d09565b613c0291906152a3565b155b8015613c9b575060405163c90828f560e01b815273d254481be8513c1ddff4f1f416b41e0fe7e2a2859063c90828f590613c45906006908790600401614e91565b60206040518083038186803b158015613c5d57600080fd5b505af4158015613c71573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613c959190614cd5565b15156001145b15613ca957613ca983610764565b6001600160a01b0382166000805160206153c683398151915214801590613d4457506040516370a0823160e01b81523060048201526001600160a01b038316906370a082319060240160206040518083038186803b158015613d0a57600080fd5b505afa158015613d1e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613d429190614d09565b155b8015613dd7575060405163c90828f560e01b815273d254481be8513c1ddff4f1f416b41e0fe7e2a2859063c90828f590613d85906006908690600401614e91565b60206040518083038186803b158015613d9d57600080fd5b505af4158015613db1573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613dd59190614cd5565b155b15613e2857600680546001810182556000919091527ff652222313e28459528d920b65115c16c04f3efc82aaedc97be59f3f377c0d3f0180546001600160a01b0319166001600160a01b0384161790555b8751156140ff5760008860018a51613e4091906152a3565b81518110613e5e57634e487b7160e01b600052603260045260246000fd5b60209081029190910101516040516370a0823160e01b81523060048201526001600160a01b03909116906370a082319060240160206040518083038186803b158015613ea957600080fd5b505afa158015613ebd573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613ee19190614d09565b905088600081518110613f0457634e487b7160e01b600052603260045260246000fd5b602090810291909101015160405163095ea7b360e01b81526001600160a01b037f000000000000000000000000000000000000000000000000000000000000000081166004830152602482018a90529091169063095ea7b390604401602060405180830381600087803b158015613f7a57600080fd5b505af1158015613f8e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613fb29190614cd5565b50604051635c11d79560e01b81526001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001690635c11d79590614007908a908a908e9030904290600401615059565b600060405180830381600087803b15801561402157600080fd5b505af1158015614035573d6000803e3d6000fd5b50505050808960018b5161404991906152a3565b8151811061406757634e487b7160e01b600052603260045260246000fd5b60209081029190910101516040516370a0823160e01b81523060048201526001600160a01b03909116906370a082319060240160206040518083038186803b1580156140b257600080fd5b505afa1580156140c6573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906140ea9190614d09565b6140f491906152a3565b945050505050614265565b60405163095ea7b360e01b81526001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000811660048301526024820188905284169063095ea7b390604401602060405180830381600087803b15801561416957600080fd5b505af115801561417d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906141a19190614cd5565b506040805160a08101825282815230602082015242818301526060810188905260808101879052905163c04b8d5960e01b81527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03169063c04b8d5990614213908490600401615001565b602060405180830381600087803b15801561422d57600080fd5b505af1158015614241573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906140f49190614d09565b949350505050565b6000614279848461361f565b905060001981146142e157818110156142d45760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e636500000060448201526064016135df565b6142e1848484840361374e565b50505050565b6001600160a01b03831661434b5760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b60648201526084016135df565b6001600160a01b0382166143ad5760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b60648201526084016135df565b6001600160a01b038316600090815260208190526040902054818110156144255760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b60648201526084016135df565b6001600160a01b0380851660009081526020819052604080822085850390559185168152908120805484929061445c90849061515e565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef846040516144a891815260200190565b60405180910390a36142e1565b6001600160a01b0382166145155760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b60648201526084016135df565b6001600160a01b038216600090815260208190526040902054818110156145895760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b60648201526084016135df565b6001600160a01b03831660009081526020819052604081208383039055600280548492906145b89084906152a3565b90915550506040518281526000906001600160a01b038516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef90602001613866565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b0382166146a35760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f20616464726573730060448201526064016135df565b80600260008282546146b5919061515e565b90915550506001600160a01b038216600090815260208190526040812080548392906146e290849061515e565b90915550506040518181526001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a35050565b8035614737816153a2565b919050565b600082601f83011261474c578081fd5b8135602061476161475c83615112565b6150e1565b80838252828201915082860187848660051b8901011115614780578586fd5b855b858110156147a7578135614795816153a2565b84529284019290840190600101614782565b5090979650505050505050565b600082601f8301126147c4578081fd5b813560206147d461475c83615112565b80838252828201915082860187848660051b89010111156147f3578586fd5b855b858110156147a757813567ffffffffffffffff80821115614814578889fd5b9089019060e0828c03601f1901121561482b578889fd5b614833615095565b61483e88840161472c565b81526040808401358983015260608085013582840152608091508185013584811115614868578c8dfd5b6148768f8c8389010161473c565b82850152505060a08401358381111561488d578b8cfd5b61489b8e8b8388010161473c565b82840152505060c0830135828111156148b2578a8bfd5b6148c08d8a838701016148ff565b60a08301525060e0830135828111156148d7578a8bfd5b6148e58d8a838701016148ff565b60c0830152508652505092840192908401906001016147f5565b600082601f83011261490f578081fd5b813561491d61475c82615136565b818152846020838601011115614931578283fd5b816020850160208301379081016020019190915292915050565b60006020828403121561495c578081fd5b8135614967816153a2565b9392505050565b60006020828403121561497f578081fd5b8151614967816153a2565b6000806040838503121561499c578081fd5b82356149a7816153a2565b915060208301356149b7816153a2565b809150509250929050565b6000806000606084860312156149d6578081fd5b83516149e1816153a2565b60208501519093506149f2816153a2565b604085015190925067ffffffffffffffff811115614a0e578182fd5b8401601f81018613614a1e578182fd5b8051614a2c61475c82615136565b818152876020838501011115614a40578384fd5b614a518260208301602086016152dd565b8093505050509250925092565b600080600060608486031215614a72578081fd5b8335614a7d816153a2565b92506020840135614a8d816153a2565b929592945050506040919091013590565b60008060408385031215614ab0578182fd5b8235614abb816153a2565b946020939093013593505050565b60008060008060008060c08789031215614ae1578384fd5b863567ffffffffffffffff80821115614af8578586fd5b614b048a838b0161473c565b97506020890135915080821115614b19578586fd5b614b258a838b016148ff565b96506040890135915080821115614b3a578586fd5b614b468a838b0161473c565b95506060890135915080821115614b5b578384fd5b50614b6889828a016148ff565b9350506080870135915060a087013590509295509295509295565b60006020808385031215614b95578182fd5b823567ffffffffffffffff80821115614bac578384fd5b818501915085601f830112614bbf578384fd5b8135614bcd61475c82615112565b80828252858201915085850189878560051b8801011115614bec578788fd5b875b84811015614c9357813586811115614c0457898afd5b87016080818d03601f19011215614c1957898afd5b614c216150be565b8982013588811115614c31578b8cfd5b614c3f8e8c8386010161473c565b82525060408083013589811115614c54578c8dfd5b614c628f8d838701016148ff565b838d015250606083810135918301919091526080909201359181019190915284529287019290870190600101614bee565b50909998505050505050505050565b600060208284031215614cb3578081fd5b813567ffffffffffffffff811115614cc9578182fd5b614265848285016147b4565b600060208284031215614ce6578081fd5b8151614967816153b7565b600060208284031215614d02578081fd5b5035919050565b600060208284031215614d1a578081fd5b5051919050565b60008060408385031215614d33578182fd5b82359150602083013567ffffffffffffffff811115614d50578182fd5b614d5c858286016147b4565b9150509250929050565b600080600060608486031215614d7a578081fd5b83359250602084013591506040840135614d93816153b7565b809150509250925092565b600060208284031215614daf578081fd5b815160ff81168114614967578182fd5b6000815180845260208085019450808401835b83811015614df75781516001600160a01b031687529582019590820190600101614dd2565b509495945050505050565b60008151808452614e1a8160208601602086016152dd565b601f01601f19169290920160200192915050565b6020815260006149676020830184614dbf565b604081526000614e546040830185614dbf565b8281036020840152614e668185614e02565b95945050505050565b604081526000614e826040830185614dbf565b90508260208301529392505050565b6000604082016040835280855480835260608501915086845260209250828420845b82811015614ed85781546001600160a01b031684529284019260019182019101614eb3565b5050506001600160a01b039490941692019190915250919050565b60006020808301818452808551808352604092508286019150828160051b870101848801865b83811015614fcd57888303603f19018552815180516001600160a01b031684528781015188850152868101518785015260608082015160e08287018190529190614f6583880182614dbf565b9250505060808083015186830382880152614f808382614dbf565b9250505060a08083015186830382880152614f9b8382614e02565b9250505060c08083015192508582038187015250614fb98183614e02565b968901969450505090860190600101614f19565b509098975050505050505050565b6020815260006149676020830184614e02565b604081526000614e826040830185614e02565b602081526000825160a0602084015261501d60c0840182614e02565b905060018060a01b0360208501511660408401526040840151606084015260608401516080840152608084015160a08401528091505092915050565b85815284602082015260a06040820152600061507860a0830186614dbf565b6001600160a01b0394909416606083015250608001529392505050565b60405160e0810167ffffffffffffffff811182821017156150b8576150b861538c565b60405290565b6040516080810167ffffffffffffffff811182821017156150b8576150b861538c565b604051601f8201601f1916810167ffffffffffffffff8111828210171561510a5761510a61538c565b604052919050565b600067ffffffffffffffff82111561512c5761512c61538c565b5060051b60200190565b600067ffffffffffffffff8211156151505761515061538c565b50601f01601f191660200190565b6000821982111561517157615171615376565b500190565b60008261519157634e487b7160e01b81526012600452602481fd5b500490565b600181815b808511156151d15781600019048211156151b7576151b7615376565b808516156151c457918102915b93841c939080029061519b565b509250929050565b600061496760ff8416836000826151f257506001610989565b816151ff57506000610989565b8160018114615215576002811461521f5761523b565b6001915050610989565b60ff84111561523057615230615376565b50506001821b610989565b5060208310610133831016604e8410600b841016171561525e575081810a610989565b6152688383615196565b806000190482111561527c5761527c615376565b029392505050565b600081600019048311821515161561529e5761529e615376565b500290565b6000828210156152b5576152b5615376565b500390565b600060ff821660ff8416808210156152d4576152d4615376565b90039392505050565b60005b838110156152f85781810151838201526020016152e0565b838111156142e15750506000910152565b60008161531857615318615376565b506000190190565b600181811c9082168061533457607f821691505b6020821081141561535557634e487b7160e01b600052602260045260246000fd5b50919050565b600060001982141561536f5761536f615376565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b038116811461158a57600080fd5b801515811461158a57600080fdfe000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2a26469706673582212205367f5c5d4f6e314af60b6348391d27a8eea1b91524206a031151b37618831bf64736f6c6343000804003300000000000000000000000000000000000000000000000000000000000000c0000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000001400000000000000000000000000000000000000000000000000058d15e17628000000000000000000000000000000000000000000000000000002386f26fc100000000000000000000000000004813d787a720525be2ebe82d1f84d7b43ca9ed1c0000000000000000000000000000000000000000000000000000000000000012536967696c205632205465737420506f6f6c00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000005535632545000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000036c6f770000000000000000000000000000000000000000000000000000000000
Deployed Bytecode
0x6080604052600436106102085760003560e01c806370a08231116101185780639645337a116100a0578063c6ac0c551161006f578063c6ac0c5514610634578063dd62ed3e14610649578063de731d8c14610669578063f2fde38b1461067e578063f302315d1461069e57600080fd5b80639645337a146105bf578063a457c2d7146105df578063a9059cbb146105ff578063b8cb740e1461061f57600080fd5b80637da4ba8f116100e75780637da4ba8f146104fc57806382aa4fc91461054c5780638715426d1461056c5780638da5cb5b1461058c57806395d89b41146105aa57600080fd5b806370a082311461045d578063715018a61461049357806379cc6790146104a85780637d11bc9c146104c857600080fd5b806323b872dd1161019b578063395093511161016a57806339509351146103915780633c777473146103b157806342966c68146103d157806353889684146103f15780636f302bb91461042957600080fd5b806323b872dd14610322578063313ce56714610342578063332d98541461035e57806338cfcb471461037e57600080fd5b80630cf85aec116101d75780630cf85aec146102b5578063139b4dff146102cb57806318160ddd146102ed5780631edf92581461030257600080fd5b806306fdde0314610214578063074306c21461023f578063095ea7b3146102615780630c27a6ee1461029157600080fd5b3661020f57005b600080fd5b34801561022057600080fd5b506102296106d2565b6040516102369190614fdb565b60405180910390f35b34801561024b57600080fd5b5061025f61025a36600461494b565b610764565b005b34801561026d57600080fd5b5061028161027c366004614a9e565b610975565b6040519015158152602001610236565b34801561029d57600080fd5b506102a7600a5481565b604051908152602001610236565b3480156102c157600080fd5b506102a760085481565b3480156102d757600080fd5b506102e061098f565b6040516102369190614e2e565b3480156102f957600080fd5b506002546102a7565b34801561030e57600080fd5b5061025f61031d366004614ac9565b6109f0565b34801561032e57600080fd5b5061028161033d366004614a5e565b610b0c565b34801561034e57600080fd5b5060405160128152602001610236565b34801561036a57600080fd5b506102a7610379366004614ca2565b610b30565b61025f61038c366004614d66565b610c1b565b34801561039d57600080fd5b506102816103ac366004614a9e565b610ec9565b3480156103bd57600080fd5b5061025f6103cc366004614d21565b610eeb565b3480156103dd57600080fd5b5061025f6103ec366004614cf1565b611580565b3480156103fd57600080fd5b5061041161040c366004614cf1565b61158d565b6040516001600160a01b039091168152602001610236565b34801561043557600080fd5b506102a77f000000000000000000000000000000000000000000000000002386f26fc1000081565b34801561046957600080fd5b506102a761047836600461494b565b6001600160a01b031660009081526020819052604090205490565b34801561049f57600080fd5b5061025f6115b7565b3480156104b457600080fd5b5061025f6104c3366004614a9e565b6115cb565b3480156104d457600080fd5b506102a77f0000000000000000000000000000000000000000000000000058d15e1762800081565b34801561050857600080fd5b5061051c610517366004614cf1565b6115e0565b604080516001600160a01b0390951685526020850193909352901515918301919091526060820152608001610236565b34801561055857600080fd5b5061025f610567366004614b83565b611627565b34801561057857600080fd5b5061025f610587366004614d21565b61186c565b34801561059857600080fd5b506005546001600160a01b0316610411565b3480156105b657600080fd5b506102296132ff565b3480156105cb57600080fd5b5061025f6105da366004614cf1565b61330e565b3480156105eb57600080fd5b506102816105fa366004614a9e565b613575565b34801561060b57600080fd5b5061028161061a366004614a9e565b6135f5565b34801561062b57600080fd5b50600b546102a7565b34801561064057600080fd5b5061025f613603565b34801561065557600080fd5b506102a761066436600461498a565b61361f565b34801561067557600080fd5b5061022961364a565b34801561068a57600080fd5b5061025f61069936600461494b565b6136d8565b3480156106aa57600080fd5b506104117f0000000000000000000000004813d787a720525be2ebe82d1f84d7b43ca9ed1c81565b6060600380546106e190615320565b80601f016020809104026020016040519081016040528092919081815260200182805461070d90615320565b801561075a5780601f1061072f5761010080835404028352916020019161075a565b820191906000526020600020905b81548152906001019060200180831161073d57829003601f168201915b5050505050905090565b6005546001600160a01b031633148061077c57503330145b8061079a57507379fd86538966541681cb7e8acf5ef4767736a14233145b6107a357600080fd5b60405163c90828f560e01b815273d254481be8513c1ddff4f1f416b41e0fe7e2a2859063c90828f5906107dd906006908590600401614e91565b60206040518083038186803b1580156107f557600080fd5b505af4158015610809573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061082d9190614cd5565b6108345750565b60005b60065481101561097157816001600160a01b03166006828154811061086c57634e487b7160e01b600052603260045260246000fd5b6000918252602090912001546001600160a01b0316141561095f5760068054610897906001906152a3565b815481106108b557634e487b7160e01b600052603260045260246000fd5b600091825260209091200154600680546001600160a01b0390921691839081106108ef57634e487b7160e01b600052603260045260246000fd5b9060005260206000200160006101000a8154816001600160a01b0302191690836001600160a01b03160217905550600680548061093c57634e487b7160e01b600052603160045260246000fd5b600082815260209020810160001990810180546001600160a01b03191690550190555b806109698161535b565b915050610837565b5050565b60003361098381858561374e565b60019150505b92915050565b6060600680548060200260200160405190810160405280929190818152602001828054801561075a57602002820191906000526020600020905b81546001600160a01b031681526001909101906020018083116109c9575050505050905090565b6109f8613873565b6000670de0b6b3a7640000610a1484661aa535d3d0c000615284565b610a1e9190615176565b9050600073d254481be8513c1ddff4f1f416b41e0fe7e2a285635c3b2f3389896040518363ffffffff1660e01b8152600401610a5b929190614e41565b60206040518083038186803b158015610a7357600080fd5b505af4158015610a87573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610aab919061496e565b90506001600160a01b0381166000805160206153c68339815191521415610ada57610ad5826138cd565b610aec565b6000610ae98787856000613a52565b50505b610b018888610afb85886152a3565b86613a52565b505050505050505050565b600033610b1a85828561426d565b610b258585856142e7565b506001949350505050565b6000815160001415610bb8576040516370a0823160e01b81523060048201526000805160206153c6833981519152906370a082319060240160206040518083038186803b158015610b8057600080fd5b505afa158015610b94573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109899190614d09565b6040516397733f5160e01b815273d254481be8513c1ddff4f1f416b41e0fe7e2a285906397733f5190610bef908590600401614ef3565b60206040518083038186803b158015610c0757600080fd5b505af4158015610b94573d6000803e3d6000fd5b8015610db3577f000000000000000000000000000000000000000000000000002386f26fc100003411610c4d57600080fd5b600c5460ff161515600114610c6157600080fd5b6000805160206153c68339815191528063d0e30db0610ca07f000000000000000000000000000000000000000000000000002386f26fc10000346152a3565b6040518263ffffffff1660e01b81526004016000604051808303818588803b158015610ccb57600080fd5b505af1158015610cdf573d6000803e3d6000fd5b50505050506000805160206153c68339815191526001600160a01b031663a9059cbb337f000000000000000000000000000000000000000000000000002386f26fc1000034610d2e91906152a3565b6040516001600160e01b031960e085901b1681526001600160a01b0390921660048301526024820152604401602060405180830381600087803b158015610d7457600080fd5b505af1158015610d88573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610dac9190614cd5565b5050610dfb565b33600090815260208190526040902054831115610dcf57600080fd5b7f000000000000000000000000000000000000000000000000002386f26fc100003414610dfb57600080fd5b600b6040518060800160405280336001600160a01b0316815260200183610e225785610e4c565b610e4c7f000000000000000000000000000000000000000000000000002386f26fc10000346152a3565b8152921515602080850191909152604093840194909452815460018082018455600093845292859020825160049092020180546001600160a01b0319166001600160a01b0390921691909117815593810151918401919091559081015160028301805460ff19169115159190911790556060015160039091015550565b600033610983818585610edc838361361f565b610ee6919061515e565b61374e565b3360009081526020819052604081205411610f0557600080fd5b60008211610f1257600080fd5b33600090815260208190526040902054821115610f2e57600080fd5b600654815114610f3d57600080fd5b610f4733836144b5565b33600090815260208190526040902054610f7157600a8054906000610f6b83615309565b91905055505b600082610f7d60025490565b610f87919061515e565b610f9984670de0b6b3a7640000615284565b610fa39190615176565b6040516370a0823160e01b8152306004820152909150600090670de0b6b3a76400009083906000805160206153c6833981519152906370a082319060240160206040518083038186803b158015610ff957600080fd5b505afa15801561100d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110319190614d09565b61103b9190615284565b6110459190615176565b90506000600680548060200260200160405190810160405280929190818152602001828054801561109f57602002820191906000526020600020905b81546001600160a01b03168152600190910190602001808311611081575b5050505050905060005b8151811015611303578181815181106110d257634e487b7160e01b600052603260045260246000fd5b60200260200101516001600160a01b031685828151811061110357634e487b7160e01b600052603260045260246000fd5b6020026020010151600001516001600160a01b03161461112257600080fd5b84818151811061114257634e487b7160e01b600052603260045260246000fd5b6020026020010151602001516000148015611188575084818151811061117857634e487b7160e01b600052603260045260246000fd5b6020026020010151604001516000145b6112f15760008282815181106111ae57634e487b7160e01b600052603260045260246000fd5b6020026020010151905060006112e08784815181106111dd57634e487b7160e01b600052603260045260246000fd5b60200260200101516060015188858151811061120957634e487b7160e01b600052603260045260246000fd5b602090810291909101015160a001516040516370a0823160e01b8152306004820152670de0b6b3a7640000908a906001600160a01b038816906370a082319060240160206040518083038186803b15801561126357600080fd5b505afa158015611277573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061129b9190614d09565b6112a59190615284565b6112af9190615176565b8a87815181106112cf57634e487b7160e01b600052603260045260246000fd5b602002602001015160200151613a52565b90506112ec818661515e565b945050505b806112fb8161535b565b9150506110a9565b506000670de0b6b3a76400006113397f0000000000000000000000000000000000000000000000000058d15e1762800085615284565b6113439190615176565b90506000670de0b6b3a76400006008548561135e9190615284565b6113689190615176565b905060008261137783876152a3565b61138191906152a3565b90506000805160206153c68339815191528063a9059cbb6113aa6005546001600160a01b031690565b6040516001600160e01b031960e084901b1681526001600160a01b03909116600482015260248101879052604401602060405180830381600087803b1580156113f257600080fd5b505af1158015611406573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061142a9190614cd5565b50611434836138cd565b604051632e1a7d4d60e01b8152600481018390526001600160a01b03821690632e1a7d4d90602401600060405180830381600087803b15801561147657600080fd5b505af115801561148a573d6000803e3d6000fd5b5050604051339250849150600081818185875af1925050503d80600081146114ce576040519150601f19603f3d011682016040523d82523d6000602084013e6114d3565b606091505b5050507fa0f25ea12258315a86d16b7542e438d5b0e81f707fafc13a672de6038b1994843361150a6005546001600160a01b031690565b604080516001600160a01b039384168152929091166020830152810186905260600160405180910390a160408051338152602081018b90529081018390527f4653e6affe7720aa65cb4626e64d6c89ffe8d8c75260adbbec83e4786c308e0f9060600160405180910390a1505050505050505050565b61158a33826144b5565b50565b6006818154811061159d57600080fd5b6000918252602090912001546001600160a01b0316905081565b6115bf613873565b6115c960006145fb565b565b6115d682338361426d565b61097182826144b5565b600b81815481106115f057600080fd5b600091825260209091206004909102018054600182015460028301546003909301546001600160a01b0390921693509160ff169084565b61162f613873565b805161163a57600080fd5b60005b8151811015610971576000805b60095481101561178f57600073d254481be8513c1ddff4f1f416b41e0fe7e2a28563e568db9d86868151811061169057634e487b7160e01b600052603260045260246000fd5b6020026020010151600001518787815181106116bc57634e487b7160e01b600052603260045260246000fd5b6020026020010151602001516040518363ffffffff1660e01b81526004016116e5929190614e41565b60206040518083038186803b1580156116fd57600080fd5b505af4158015611711573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611735919061496e565b90506009848154811061175857634e487b7160e01b600052603260045260246000fd5b6000918252602090912001546001600160a01b038281169116141561177c57600192505b50806117878161535b565b91505061164a565b5060018115151461179f57600080fd5b6118578383815181106117c257634e487b7160e01b600052603260045260246000fd5b6020026020010151600001518484815181106117ee57634e487b7160e01b600052603260045260246000fd5b60200260200101516020015185858151811061181a57634e487b7160e01b600052603260045260246000fd5b60200260200101516040015186868151811061184657634e487b7160e01b600052603260045260246000fd5b602002602001015160600151613a52565b505080806118649061535b565b91505061163d565b611874613873565b60065481511461188357600080fd5b600061188e82610b30565b90506000600b805480602002602001604051908101604052809291908181526020016000905b82821015611916576000848152602090819020604080516080810182526004860290920180546001600160a01b0316835260018082015484860152600282015460ff1615159284019290925260030154606083015290835290920191016118b4565b50505050905060006040518060a00160405280600081526020016000815260200160008152602001600081526020016000815250905060005b858110156122405782818151811061197757634e487b7160e01b600052603260045260246000fd5b6020026020010151604001511515600115151415611fa457428382815181106119b057634e487b7160e01b600052603260045260246000fd5b60200260200101516060015110158015611aba57508281815181106119e557634e487b7160e01b600052603260045260246000fd5b6020026020010151602001516000805160206153c68339815191526001600160a01b031663dd62ed3e858481518110611a2e57634e487b7160e01b600052603260045260246000fd5b6020908102919091010151516040516001600160e01b031960e084901b1681526001600160a01b03909116600482015230602482015260440160206040518083038186803b158015611a7f57600080fd5b505afa158015611a93573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611ab79190614d09565b10155b8015611bb05750828181518110611ae157634e487b7160e01b600052603260045260246000fd5b6020026020010151602001516000805160206153c68339815191526001600160a01b03166370a08231858481518110611b2a57634e487b7160e01b600052603260045260246000fd5b6020908102919091010151516040516001600160e01b031960e084901b1681526001600160a01b03909116600482015260240160206040518083038186803b158015611b7557600080fd5b505afa158015611b89573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611bad9190614d09565b10155b15611f6d576000805160206153c68339815191526001600160a01b03166323b872dd848381518110611bf257634e487b7160e01b600052603260045260246000fd5b60200260200101516000015130868581518110611c1f57634e487b7160e01b600052603260045260246000fd5b60209081029190910181015101516040516001600160e01b031960e086901b1681526001600160a01b0393841660048201529290911660248301526044820152606401602060405180830381600087803b158015611c7c57600080fd5b505af1158015611c90573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611cb49190614cd5565b50670de0b6b3a7640000600854848381518110611ce157634e487b7160e01b600052603260045260246000fd5b602002602001015160200151611cf79190615284565b611d019190615176565b82604001818151611d12919061515e565b91508181525050670de0b6b3a76400007f0000000000000000000000000000000000000000000000000058d15e17628000848381518110611d6357634e487b7160e01b600052603260045260246000fd5b602002602001015160200151611d799190615284565b611d839190615176565b82606001818151611d94919061515e565b91508181525050670de0b6b3a7640000600854848381518110611dc757634e487b7160e01b600052603260045260246000fd5b602002602001015160200151611ddd9190615284565b611de79190615176565b670de0b6b3a76400007f0000000000000000000000000000000000000000000000000058d15e17628000858481518110611e3157634e487b7160e01b600052603260045260246000fd5b602002602001015160200151611e479190615284565b611e519190615176565b848381518110611e7157634e487b7160e01b600052603260045260246000fd5b602002602001015160200151611e8791906152a3565b611e9191906152a3565b838281518110611eb157634e487b7160e01b600052603260045260246000fd5b60200260200101516020018181525050828181518110611ee157634e487b7160e01b600052603260045260246000fd5b60200260200101516020015182600001818151611efe919061515e565b9052508251611f4e90849083908110611f2757634e487b7160e01b600052603260045260246000fd5b6020026020010151600001516001600160a01b031660009081526020819052604090205490565b611f6857600a8054906000611f628361535b565b91905055505b612224565b6000838281518110611f8f57634e487b7160e01b600052603260045260246000fd5b60200260200101516020018181525050612224565b42838281518110611fc557634e487b7160e01b600052603260045260246000fd5b6020026020010151606001511015801561203e5750828181518110611ffa57634e487b7160e01b600052603260045260246000fd5b60200260200101516020015161203b84838151811061202957634e487b7160e01b600052603260045260246000fd5b6020026020010151600001513061361f565b10155b8015612097575082818151811061206557634e487b7160e01b600052603260045260246000fd5b602002602001015160200151612094848381518110611f2757634e487b7160e01b600052603260045260246000fd5b10155b156121f157306001600160a01b03166379cc67908483815181106120cb57634e487b7160e01b600052603260045260246000fd5b6020026020010151600001518584815181106120f757634e487b7160e01b600052603260045260246000fd5b6020026020010151602001516040518363ffffffff1660e01b81526004016121349291906001600160a01b03929092168252602082015260400190565b600060405180830381600087803b15801561214e57600080fd5b505af1158015612162573d6000803e3d6000fd5b5050505082818151811061218657634e487b7160e01b600052603260045260246000fd5b602002602001015160200151826020018181516121a3919061515e565b905250608082018051906121b68261535b565b815250506121dd838281518110611f2757634e487b7160e01b600052603260045260246000fd5b611f6857600a8054906000611f6283615309565b600083828151811061221357634e487b7160e01b600052603260045260246000fd5b602002602001015160200181815250505b61222e600061330e565b806122388161535b565b91505061194f565b50805115612b9e5760065460009081908190158015906122685750600061226660025490565b115b156129715760005b600654811015612930576006818154811061229b57634e487b7160e01b600052603260045260246000fd5b60009182526020909120015488516001600160a01b03909116908990839081106122d557634e487b7160e01b600052603260045260246000fd5b6020026020010151600001516001600160a01b0316146122f457600080fd5b600088828151811061231657634e487b7160e01b600052603260045260246000fd5b6020026020010151606001515160001461254b5773d254481be8513c1ddff4f1f416b41e0fe7e2a28563cf366ec08a848151811061236457634e487b7160e01b600052603260045260246000fd5b6020026020010151606001516006858154811061239157634e487b7160e01b600052603260045260246000fd5b600091825260209182902001546040805163313ce56760e01b815290516001600160a01b039092169263313ce56792600480840193829003018186803b1580156123da57600080fd5b505afa1580156123ee573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906124129190614d9e565b61241d9060126152ba565b61242890600a6151d9565b6006868154811061244957634e487b7160e01b600052603260045260246000fd5b6000918252602090912001546040516370a0823160e01b81523060048201526001600160a01b03909116906370a082319060240160206040518083038186803b15801561249557600080fd5b505afa1580156124a9573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906124cd9190614d09565b6124d79190615284565b6040518363ffffffff1660e01b81526004016124f4929190614e6f565b60206040518083038186803b15801561250c57600080fd5b505af4158015612520573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906125449190614d09565b9050612768565b73d254481be8513c1ddff4f1f416b41e0fe7e2a28563b8370bf38a848151811061258557634e487b7160e01b600052603260045260246000fd5b602002602001015160a00151600685815481106125b257634e487b7160e01b600052603260045260246000fd5b600091825260209182902001546040805163313ce56760e01b815290516001600160a01b039092169263313ce56792600480840193829003018186803b1580156125fb57600080fd5b505afa15801561260f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906126339190614d9e565b61263e9060126152ba565b61264990600a6151d9565b6006868154811061266a57634e487b7160e01b600052603260045260246000fd5b6000918252602090912001546040516370a0823160e01b81523060048201526001600160a01b03909116906370a082319060240160206040518083038186803b1580156126b657600080fd5b505afa1580156126ca573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906126ee9190614d09565b6126f89190615284565b6040518363ffffffff1660e01b8152600401612715929190614fee565b60206040518083038186803b15801561272d57600080fd5b505af4158015612741573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906127659190614d09565b90505b60006128348a848151811061278d57634e487b7160e01b600052603260045260246000fd5b6020026020010151608001518b85815181106127b957634e487b7160e01b600052603260045260246000fd5b602002602001015160c00151670de0b6b3a76400008c86670de0b6b3a76400006127e39190615284565b6127ed9190615176565b8b516127f99190615284565b6128039190615176565b8d878151811061282357634e487b7160e01b600052603260045260246000fd5b602002602001015160400151613a52565b9050806006848154811061285857634e487b7160e01b600052603260045260246000fd5b6000918252602090912001546040516370a0823160e01b81523060048201526001600160a01b03909116906370a082319060240160206040518083038186803b1580156128a457600080fd5b505afa1580156128b8573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906128dc9190614d09565b6128e691906152a3565b6128f882670de0b6b3a7640000615284565b6129029190615176565b61290c908761515e565b9550836129188161535b565b945050505080806129289061535b565b915050612270565b50670de0b6b3a76400006129448285615176565b6020860151600254612956919061515e565b6129609190615284565b61296a9190615176565b9150612a6d565b6000861180156129895750600061298760025490565b115b15612a5d57604080850151606086015191516370a0823160e01b8152306004820152670de0b6b3a76400009289929183906000805160206153c6833981519152906370a082319060240160206040518083038186803b1580156129eb57600080fd5b505afa1580156129ff573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612a239190614d09565b612a2d91906152a3565b612a3791906152a3565b612a4191906152a3565b612a5390670de0b6b3a7640000615284565b6129449190615176565b8351612a6a906064615284565b91505b60005b88811015612b9957858181518110612a9857634e487b7160e01b600052603260045260246000fd5b602002602001015160400151151560011515148015612ae35750858181518110612ad257634e487b7160e01b600052603260045260246000fd5b602002602001015160200151600014155b15612b8757612b87868281518110612b0b57634e487b7160e01b600052603260045260246000fd5b602002602001015160000151670de0b6b3a76400008760000151898581518110612b4557634e487b7160e01b600052603260045260246000fd5b602002602001015160200151670de0b6b3a7640000612b649190615284565b612b6e9190615176565b612b789087615284565b612b829190615176565b61464d565b80612b918161535b565b915050612a70565b505050505b6020810151156131c0576040516370a0823160e01b8152306004820152600090670de0b6b3a7640000906000805160206153c6833981519152906370a082319060240160206040518083038186803b158015612bf957600080fd5b505afa158015612c0d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612c319190614d09565b6020840151600254612c43919061515e565b6020850151612c5a90670de0b6b3a7640000615284565b612c649190615176565b612c6e9190615284565b612c789190615176565b905060006006805480602002602001604051908101604052809291908181526020018280548015612cd257602002820191906000526020600020905b81546001600160a01b03168152600190910190602001808311612cb4575b50505050509050600081511115612ef35760005b8151811015612ef157818181518110612d0f57634e487b7160e01b600052603260045260246000fd5b60200260200101516001600160a01b0316878281518110612d4057634e487b7160e01b600052603260045260246000fd5b6020026020010151600001516001600160a01b031614612d5f57600080fd5b612ed3878281518110612d8257634e487b7160e01b600052603260045260246000fd5b602002602001015160600151888381518110612dae57634e487b7160e01b600052603260045260246000fd5b602002602001015160a00151670de0b6b3a76400008760200151612dd160025490565b612ddb919061515e565b6020890151612df290670de0b6b3a7640000615284565b612dfc9190615176565b868681518110612e1c57634e487b7160e01b600052603260045260246000fd5b60209081029190910101516040516370a0823160e01b81523060048201526001600160a01b03909116906370a082319060240160206040518083038186803b158015612e6757600080fd5b505afa158015612e7b573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612e9f9190614d09565b612ea99190615284565b612eb39190615176565b8a85815181106112cf57634e487b7160e01b600052603260045260246000fd5b612edd908461515e565b925080612ee98161535b565b915050612ce6565b505b670de0b6b3a764000060085483612f0a9190615284565b612f149190615176565b83604001818151612f25919061515e565b905250670de0b6b3a7640000612f5b7f0000000000000000000000000000000000000000000000000058d15e1762800084615284565b612f659190615176565b83606001818151612f76919061515e565b905250600854670de0b6b3a764000090612f909084615284565b612f9a9190615176565b670de0b6b3a7640000612fcd7f0000000000000000000000000000000000000000000000000058d15e1762800085615284565b612fd79190615176565b612fe190846152a3565b612feb91906152a3565b604051632e1a7d4d60e01b8152600481018290529092506000805160206153c683398151915290632e1a7d4d90602401600060405180830381600087803b15801561303557600080fd5b505af1158015613049573d6000803e3d6000fd5b5050505060005b878110156131bc5784818151811061307857634e487b7160e01b600052603260045260246000fd5b6020908102919091010151604001511580156130c057508481815181106130af57634e487b7160e01b600052603260045260246000fd5b602002602001015160200151600014155b156131aa578481815181106130e557634e487b7160e01b600052603260045260246000fd5b6020026020010151600001516001600160a01b0316670de0b6b3a7640000856020015187848151811061312857634e487b7160e01b600052603260045260246000fd5b602002602001015160200151670de0b6b3a76400006131479190615284565b6131519190615176565b61315b9086615284565b6131659190615176565b604051600081818185875af1925050503d80600081146131a1576040519150601f19603f3d011682016040523d82523d6000602084013e6131a6565b606091505b5050505b806131b48161535b565b915050613050565b5050505b6060810151604051632e1a7d4d60e01b81526000805160206153c6833981519152918291632e1a7d4d916131fa9160040190815260200190565b600060405180830381600087803b15801561321457600080fd5b505af1158015613228573d6000803e3d6000fd5b5050505061323e6005546001600160a01b031690565b6001600160a01b03164760405160006040518083038185875af1925050503d8060008114613288576040519150601f19603f3d011682016040523d82523d6000602084013e61328d565b606091505b50505061329d82604001516138cd565b6040805183518152602080850151908201528382015181830152606080850151908201526080808501519082015290517fd17dc3a3e006b94316f6b0c447660cfd473c92392c21268ac3891ccc8b0cb0899181900360a00190a1505050505050565b6060600480546106e190615320565b600b54811061331a5750565b336001600160a01b0316600b828154811061334557634e487b7160e01b600052603260045260246000fd5b60009182526020909120600490910201546001600160a01b0316148061337557506005546001600160a01b031633145b8061337f57503330145b61338857600080fd5b33301461343257600b81815481106133b057634e487b7160e01b600052603260045260246000fd5b600091825260208220600490910201546040516001600160a01b03909116917f000000000000000000000000000000000000000000000000002386f26fc10000919081818185875af1925050503d8060008114613429576040519150601f19603f3d011682016040523d82523d6000602084013e61342e565b606091505b5050505b805b600b54613443906001906152a3565b81101561351657600b61345782600161515e565b8154811061347557634e487b7160e01b600052603260045260246000fd5b9060005260206000209060040201600b82815481106134a457634e487b7160e01b600052603260045260246000fd5b60009182526020909120825460049092020180546001600160a01b0319166001600160a01b0390921691909117815560018083015490820155600280830154908201805460ff909216151560ff199092169190911790556003918201549101558061350e8161535b565b915050613434565b50600b80548061353657634e487b7160e01b600052603160045260246000fd5b60008281526020812060046000199093019283020180546001600160a01b03191681556001810182905560028101805460ff1916905560030155905550565b60003381613583828661361f565b9050838110156135e85760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b60648201526084015b60405180910390fd5b610b25828686840361374e565b6000336109838185856142e7565b61360b613873565b600c805460ff19811660ff90911615179055565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b6007805461365790615320565b80601f016020809104026020016040519081016040528092919081815260200182805461368390615320565b80156136d05780601f106136a5576101008083540402835291602001916136d0565b820191906000526020600020905b8154815290600101906020018083116136b357829003601f168201915b505050505081565b6136e0613873565b6001600160a01b0381166137455760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016135df565b61158a816145fb565b6001600160a01b0383166137b05760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b60648201526084016135df565b6001600160a01b0382166138115760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b60648201526084016135df565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591015b60405180910390a3505050565b6005546001600160a01b031633146115c95760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016135df565b60007f0000000000000000000000004813d787a720525be2ebe82d1f84d7b43ca9ed1c6001600160a01b031663fc51e3546040518163ffffffff1660e01b8152600401602060405180830381600087803b15801561392a57600080fd5b505af115801561393e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613962919061496e565b60405163095ea7b360e01b81526001600160a01b0382166004820152602481018490529091506000805160206153c68339815191529063095ea7b390604401602060405180830381600087803b1580156139bb57600080fd5b505af11580156139cf573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906139f39190614cd5565b5060405163b17acdcd60e01b8152600481018390526001600160a01b0382169063b17acdcd90602401600060405180830381600087803b158015613a3657600080fd5b505af1158015613a4a573d6000803e3d6000fd5b505050505050565b60008060006060600088511115613aca5787600081518110613a8457634e487b7160e01b600052603260045260246000fd5b602002602001015192508760018951613a9d91906152a3565b81518110613abb57634e487b7160e01b600052603260045260246000fd5b60200260200101519150613b5d565b604051631ce92ac160e31b815273d254481be8513c1ddff4f1f416b41e0fe7e2a2859063e749560890613b01908a90600401614fdb565b60006040518083038186803b158015613b1957600080fd5b505af4158015613b2d573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052613b5591908101906149c2565b919450925090505b6001600160a01b0383166000805160206153c683398151915214801590613c0457506040516370a0823160e01b815230600482015286906001600160a01b038516906370a082319060240160206040518083038186803b158015613bc057600080fd5b505afa158015613bd4573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613bf89190614d09565b613c0291906152a3565b155b8015613c9b575060405163c90828f560e01b815273d254481be8513c1ddff4f1f416b41e0fe7e2a2859063c90828f590613c45906006908790600401614e91565b60206040518083038186803b158015613c5d57600080fd5b505af4158015613c71573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613c959190614cd5565b15156001145b15613ca957613ca983610764565b6001600160a01b0382166000805160206153c683398151915214801590613d4457506040516370a0823160e01b81523060048201526001600160a01b038316906370a082319060240160206040518083038186803b158015613d0a57600080fd5b505afa158015613d1e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613d429190614d09565b155b8015613dd7575060405163c90828f560e01b815273d254481be8513c1ddff4f1f416b41e0fe7e2a2859063c90828f590613d85906006908690600401614e91565b60206040518083038186803b158015613d9d57600080fd5b505af4158015613db1573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613dd59190614cd5565b155b15613e2857600680546001810182556000919091527ff652222313e28459528d920b65115c16c04f3efc82aaedc97be59f3f377c0d3f0180546001600160a01b0319166001600160a01b0384161790555b8751156140ff5760008860018a51613e4091906152a3565b81518110613e5e57634e487b7160e01b600052603260045260246000fd5b60209081029190910101516040516370a0823160e01b81523060048201526001600160a01b03909116906370a082319060240160206040518083038186803b158015613ea957600080fd5b505afa158015613ebd573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613ee19190614d09565b905088600081518110613f0457634e487b7160e01b600052603260045260246000fd5b602090810291909101015160405163095ea7b360e01b81526001600160a01b037f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d81166004830152602482018a90529091169063095ea7b390604401602060405180830381600087803b158015613f7a57600080fd5b505af1158015613f8e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613fb29190614cd5565b50604051635c11d79560e01b81526001600160a01b037f0000000000000000000000007a250d5630b4cf539739df2c5dacb4c659f2488d1690635c11d79590614007908a908a908e9030904290600401615059565b600060405180830381600087803b15801561402157600080fd5b505af1158015614035573d6000803e3d6000fd5b50505050808960018b5161404991906152a3565b8151811061406757634e487b7160e01b600052603260045260246000fd5b60209081029190910101516040516370a0823160e01b81523060048201526001600160a01b03909116906370a082319060240160206040518083038186803b1580156140b257600080fd5b505afa1580156140c6573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906140ea9190614d09565b6140f491906152a3565b945050505050614265565b60405163095ea7b360e01b81526001600160a01b037f000000000000000000000000e592427a0aece92de3edee1f18e0157c05861564811660048301526024820188905284169063095ea7b390604401602060405180830381600087803b15801561416957600080fd5b505af115801561417d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906141a19190614cd5565b506040805160a08101825282815230602082015242818301526060810188905260808101879052905163c04b8d5960e01b81527f000000000000000000000000e592427a0aece92de3edee1f18e0157c058615646001600160a01b03169063c04b8d5990614213908490600401615001565b602060405180830381600087803b15801561422d57600080fd5b505af1158015614241573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906140f49190614d09565b949350505050565b6000614279848461361f565b905060001981146142e157818110156142d45760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e636500000060448201526064016135df565b6142e1848484840361374e565b50505050565b6001600160a01b03831661434b5760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b60648201526084016135df565b6001600160a01b0382166143ad5760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b60648201526084016135df565b6001600160a01b038316600090815260208190526040902054818110156144255760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b60648201526084016135df565b6001600160a01b0380851660009081526020819052604080822085850390559185168152908120805484929061445c90849061515e565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef846040516144a891815260200190565b60405180910390a36142e1565b6001600160a01b0382166145155760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b60648201526084016135df565b6001600160a01b038216600090815260208190526040902054818110156145895760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b60648201526084016135df565b6001600160a01b03831660009081526020819052604081208383039055600280548492906145b89084906152a3565b90915550506040518281526000906001600160a01b038516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef90602001613866565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b0382166146a35760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f20616464726573730060448201526064016135df565b80600260008282546146b5919061515e565b90915550506001600160a01b038216600090815260208190526040812080548392906146e290849061515e565b90915550506040518181526001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a35050565b8035614737816153a2565b919050565b600082601f83011261474c578081fd5b8135602061476161475c83615112565b6150e1565b80838252828201915082860187848660051b8901011115614780578586fd5b855b858110156147a7578135614795816153a2565b84529284019290840190600101614782565b5090979650505050505050565b600082601f8301126147c4578081fd5b813560206147d461475c83615112565b80838252828201915082860187848660051b89010111156147f3578586fd5b855b858110156147a757813567ffffffffffffffff80821115614814578889fd5b9089019060e0828c03601f1901121561482b578889fd5b614833615095565b61483e88840161472c565b81526040808401358983015260608085013582840152608091508185013584811115614868578c8dfd5b6148768f8c8389010161473c565b82850152505060a08401358381111561488d578b8cfd5b61489b8e8b8388010161473c565b82840152505060c0830135828111156148b2578a8bfd5b6148c08d8a838701016148ff565b60a08301525060e0830135828111156148d7578a8bfd5b6148e58d8a838701016148ff565b60c0830152508652505092840192908401906001016147f5565b600082601f83011261490f578081fd5b813561491d61475c82615136565b818152846020838601011115614931578283fd5b816020850160208301379081016020019190915292915050565b60006020828403121561495c578081fd5b8135614967816153a2565b9392505050565b60006020828403121561497f578081fd5b8151614967816153a2565b6000806040838503121561499c578081fd5b82356149a7816153a2565b915060208301356149b7816153a2565b809150509250929050565b6000806000606084860312156149d6578081fd5b83516149e1816153a2565b60208501519093506149f2816153a2565b604085015190925067ffffffffffffffff811115614a0e578182fd5b8401601f81018613614a1e578182fd5b8051614a2c61475c82615136565b818152876020838501011115614a40578384fd5b614a518260208301602086016152dd565b8093505050509250925092565b600080600060608486031215614a72578081fd5b8335614a7d816153a2565b92506020840135614a8d816153a2565b929592945050506040919091013590565b60008060408385031215614ab0578182fd5b8235614abb816153a2565b946020939093013593505050565b60008060008060008060c08789031215614ae1578384fd5b863567ffffffffffffffff80821115614af8578586fd5b614b048a838b0161473c565b97506020890135915080821115614b19578586fd5b614b258a838b016148ff565b96506040890135915080821115614b3a578586fd5b614b468a838b0161473c565b95506060890135915080821115614b5b578384fd5b50614b6889828a016148ff565b9350506080870135915060a087013590509295509295509295565b60006020808385031215614b95578182fd5b823567ffffffffffffffff80821115614bac578384fd5b818501915085601f830112614bbf578384fd5b8135614bcd61475c82615112565b80828252858201915085850189878560051b8801011115614bec578788fd5b875b84811015614c9357813586811115614c0457898afd5b87016080818d03601f19011215614c1957898afd5b614c216150be565b8982013588811115614c31578b8cfd5b614c3f8e8c8386010161473c565b82525060408083013589811115614c54578c8dfd5b614c628f8d838701016148ff565b838d015250606083810135918301919091526080909201359181019190915284529287019290870190600101614bee565b50909998505050505050505050565b600060208284031215614cb3578081fd5b813567ffffffffffffffff811115614cc9578182fd5b614265848285016147b4565b600060208284031215614ce6578081fd5b8151614967816153b7565b600060208284031215614d02578081fd5b5035919050565b600060208284031215614d1a578081fd5b5051919050565b60008060408385031215614d33578182fd5b82359150602083013567ffffffffffffffff811115614d50578182fd5b614d5c858286016147b4565b9150509250929050565b600080600060608486031215614d7a578081fd5b83359250602084013591506040840135614d93816153b7565b809150509250925092565b600060208284031215614daf578081fd5b815160ff81168114614967578182fd5b6000815180845260208085019450808401835b83811015614df75781516001600160a01b031687529582019590820190600101614dd2565b509495945050505050565b60008151808452614e1a8160208601602086016152dd565b601f01601f19169290920160200192915050565b6020815260006149676020830184614dbf565b604081526000614e546040830185614dbf565b8281036020840152614e668185614e02565b95945050505050565b604081526000614e826040830185614dbf565b90508260208301529392505050565b6000604082016040835280855480835260608501915086845260209250828420845b82811015614ed85781546001600160a01b031684529284019260019182019101614eb3565b5050506001600160a01b039490941692019190915250919050565b60006020808301818452808551808352604092508286019150828160051b870101848801865b83811015614fcd57888303603f19018552815180516001600160a01b031684528781015188850152868101518785015260608082015160e08287018190529190614f6583880182614dbf565b9250505060808083015186830382880152614f808382614dbf565b9250505060a08083015186830382880152614f9b8382614e02565b9250505060c08083015192508582038187015250614fb98183614e02565b968901969450505090860190600101614f19565b509098975050505050505050565b6020815260006149676020830184614e02565b604081526000614e826040830185614e02565b602081526000825160a0602084015261501d60c0840182614e02565b905060018060a01b0360208501511660408401526040840151606084015260608401516080840152608084015160a08401528091505092915050565b85815284602082015260a06040820152600061507860a0830186614dbf565b6001600160a01b0394909416606083015250608001529392505050565b60405160e0810167ffffffffffffffff811182821017156150b8576150b861538c565b60405290565b6040516080810167ffffffffffffffff811182821017156150b8576150b861538c565b604051601f8201601f1916810167ffffffffffffffff8111828210171561510a5761510a61538c565b604052919050565b600067ffffffffffffffff82111561512c5761512c61538c565b5060051b60200190565b600067ffffffffffffffff8211156151505761515061538c565b50601f01601f191660200190565b6000821982111561517157615171615376565b500190565b60008261519157634e487b7160e01b81526012600452602481fd5b500490565b600181815b808511156151d15781600019048211156151b7576151b7615376565b808516156151c457918102915b93841c939080029061519b565b509250929050565b600061496760ff8416836000826151f257506001610989565b816151ff57506000610989565b8160018114615215576002811461521f5761523b565b6001915050610989565b60ff84111561523057615230615376565b50506001821b610989565b5060208310610133831016604e8410600b841016171561525e575081810a610989565b6152688383615196565b806000190482111561527c5761527c615376565b029392505050565b600081600019048311821515161561529e5761529e615376565b500290565b6000828210156152b5576152b5615376565b500390565b600060ff821660ff8416808210156152d4576152d4615376565b90039392505050565b60005b838110156152f85781810151838201526020016152e0565b838111156142e15750506000910152565b60008161531857615318615376565b506000190190565b600181811c9082168061533457607f821691505b6020821081141561535557634e487b7160e01b600052602260045260246000fd5b50919050565b600060001982141561536f5761536f615376565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b038116811461158a57600080fd5b801515811461158a57600080fdfe000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2a26469706673582212205367f5c5d4f6e314af60b6348391d27a8eea1b91524206a031151b37618831bf64736f6c63430008040033
Deployed Bytecode Sourcemap
126496:16876:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;106882:100;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;129047:546;;;;;;;;;;-1:-1:-1;129047:546:0;;;;;:::i;:::-;;:::i;:::-;;109233:201;;;;;;;;;;-1:-1:-1;109233:201:0;;;;;:::i;:::-;;:::i;:::-;;;18276:14:1;;18269:22;18251:41;;18239:2;18224:18;109233:201:0;18206:92:1;127751:32:0;;;;;;;;;;;;;;;;;;;25095:25:1;;;25083:2;25068:18;127751:32:0;25050:76:1;127157:46:0;;;;;;;;;;;;;;;;128511:104;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;108002:108::-;;;;;;;;;;-1:-1:-1;108090:12:0;;108002:108;;140804:651;;;;;;;;;;-1:-1:-1;140804:651:0;;;;;:::i;:::-;;:::i;110014:295::-;;;;;;;;;;-1:-1:-1;110014:295:0;;;;;:::i;:::-;;:::i;107844:93::-;;;;;;;;;;-1:-1:-1;107844:93:0;;107927:2;25852:36:1;;25840:2;25825:18;107844:93:0;25807:87:1;128737:302:0;;;;;;;;;;-1:-1:-1;128737:302:0;;;;;:::i;:::-;;:::i;131033:708::-;;;;;;:::i;:::-;;:::i;110718:238::-;;;;;;;;;;-1:-1:-1;110718:238:0;;;;;:::i;:::-;;:::i;138440:2047::-;;;;;;;;;;-1:-1:-1;138440:2047:0;;;;;:::i;:::-;;:::i;118257:91::-;;;;;;;;;;-1:-1:-1;118257:91:0;;;;;:::i;:::-;;:::i;127051:28::-;;;;;;;;;;-1:-1:-1;127051:28:0;;;;;:::i;:::-;;:::i;:::-;;;-1:-1:-1;;;;;12588:32:1;;;12570:51;;12558:2;12543:18;127051:28:0;12525:102:1;127257:40:0;;;;;;;;;;;;;;;108173:127;;;;;;;;;;-1:-1:-1;108173:127:0;;;;;:::i;:::-;-1:-1:-1;;;;;108274:18:0;108247:7;108274:18;;;;;;;;;;;;108173:127;100287:103;;;;;;;;;;;;;:::i;118667:164::-;;;;;;;;;;-1:-1:-1;118667:164:0;;;;;:::i;:::-;;:::i;127117:33::-;;;;;;;;;;;;;;;127790:41;;;;;;;;;;-1:-1:-1;127790:41:0;;;;;:::i;:::-;;:::i;:::-;;;;-1:-1:-1;;;;;13843:32:1;;;13825:51;;13907:2;13892:18;;13885:34;;;;13962:14;;13955:22;13935:18;;;13928:50;;;;14009:2;13994:18;;13987:34;13812:3;13797:19;127790:41:0;13779:248:1;129601:745:0;;;;;;;;;;-1:-1:-1;129601:745:0;;;;;:::i;:::-;;:::i;131749:6681::-;;;;;;;;;;-1:-1:-1;131749:6681:0;;;;;:::i;:::-;;:::i;99639:87::-;;;;;;;;;;-1:-1:-1;99712:6:0;;-1:-1:-1;;;;;99712:6:0;99639:87;;107101:104;;;;;;;;;;;;;:::i;130354:548::-;;;;;;;;;;-1:-1:-1;130354:548:0;;;;;:::i;:::-;;:::i;111459:436::-;;;;;;;;;;-1:-1:-1;111459:436:0;;;;;:::i;:::-;;:::i;108506:193::-;;;;;;;;;;-1:-1:-1;108506:193:0;;;;;:::i;:::-;;:::i;128623:106::-;;;;;;;;;;-1:-1:-1;128702:12:0;:19;128623:106;;130910:115;;;;;;;;;;;;;:::i;108762:151::-;;;;;;;;;;-1:-1:-1;108762:151:0;;;;;:::i;:::-;;:::i;127086:24::-;;;;;;;;;;;;;:::i;100545:201::-;;;;;;;;;;-1:-1:-1;100545:201:0;;;;;:::i;:::-;;:::i;127210:40::-;;;;;;;;;;;;;;;106882:100;106936:13;106969:5;106962:12;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;106882:100;:::o;129047:546::-;99712:6;;-1:-1:-1;;;;;99712:6:0;129129:10;:21;;:52;;-1:-1:-1;129154:10:0;129176:4;129154:27;129129:52;:112;;;-1:-1:-1;129199:42:0;129185:10;:56;129129:112;129121:121;;;;;;129256:52;;-1:-1:-1;;;129256:52:0;;:17;;:29;;:52;;129286:11;;129299:8;;129256:52;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;129253:98;;129047:546;:::o;129253:98::-;129366:6;129361:222;129382:11;:18;129378:22;;129361:222;;;129442:8;-1:-1:-1;;;;;129424:26:0;:11;129436:1;129424:14;;;;;;-1:-1:-1;;;129424:14:0;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;129424:14:0;:26;129421:151;;;129487:11;129499:18;;:20;;129518:1;;129499:20;:::i;:::-;129487:33;;;;;;-1:-1:-1;;;129487:33:0;;;;;;;;;;;;;;;;;;;129470:11;:14;;-1:-1:-1;;;;;129487:33:0;;;;129482:1;;129470:14;;;;-1:-1:-1;;;129470:14:0;;;;;;;;;;;;;;;;;:50;;;;;-1:-1:-1;;;;;129470:50:0;;;;;-1:-1:-1;;;;;129470:50:0;;;;;;129539:11;:17;;;;;-1:-1:-1;;;129539:17:0;;;;;;;;;;;;;;;;;;-1:-1:-1;;129539:17:0;;;;;-1:-1:-1;;;;;;129539:17:0;;;;;;129421:151;129402:3;;;;:::i;:::-;;;;129361:222;;;;129047:546;:::o;109233:201::-;109316:4;98264:10;109372:32;98264:10;109388:7;109397:6;109372:8;:32::i;:::-;109422:4;109415:11;;;109233:201;;;;;:::o;128511:104::-;128560:16;128596:11;128589:18;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;128589:18:0;;;;;;;;;;;;;;;;;;;;;;128511:104;:::o;140804:651::-;99525:13;:11;:13::i;:::-;141014:17:::1;141064:6;141034:27;:8:::0;141045:16:::1;141034:27;:::i;:::-;:36;;;;:::i;:::-;141014:56;;141081:15;141099:17;:28;141128:6;141136;141099:44;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;141081:62:::0;-1:-1:-1;;;;;;141157:22:0;::::1;-1:-1:-1::0;;;;;;;;;;;141157:22:0::1;141154:199;;;141195:21;141206:9;141195:10;:21::i;:::-;141154:199;;;141250:20;141274:67;141286:19;141307;141328:9;141339:1;141274:11;:67::i;:::-;-1:-1:-1::0;;141154:199:0::1;141380:67;141392:6:::0;141400;141408:20:::1;141419:9:::0;141408:8;:20:::1;:::i;:::-;141430:16;141380:11;:67::i;:::-;;99549:1;;140804:651:::0;;;;;;:::o;110014:295::-;110145:4;98264:10;110203:38;110219:4;98264:10;110234:6;110203:15;:38::i;:::-;110252:27;110262:4;110268:2;110272:6;110252:9;:27::i;:::-;-1:-1:-1;110297:4:0;;110014:295;-1:-1:-1;;;;110014:295:0:o;128737:302::-;128830:7;128852:14;:21;128877:1;128852:26;128849:108;;;128901:44;;-1:-1:-1;;;128901:44:0;;128939:4;128901:44;;;12570:51:1;-1:-1:-1;;;;;;;;;;;127702:42:0;128901:29;;12543:18:1;;128901:44:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;128849:108::-;128974:57;;-1:-1:-1;;;128974:57:0;;:17;;:41;;:57;;129016:14;;128974:57;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;131033:708;131130:7;131127:462;;;131173:15;131161:9;:27;131153:36;;;;;;131212:20;;;;:28;;:20;:28;131204:37;;;;;;-1:-1:-1;;;;;;;;;;;127702:42:0;131310:20;131338:27;131350:15;131338:9;:27;:::i;:::-;131310:58;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;;;;;;131383:28:0;;131412:10;131436:15;131424:9;:27;;;;:::i;:::-;131383:69;;-1:-1:-1;;;;;;131383:69:0;;;;;;;-1:-1:-1;;;;;13513:32:1;;;131383:69:0;;;13495:51:1;13562:18;;;13555:34;13468:18;;131383:69:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;131127:462;;;;131513:10;108247:7;108274:18;;;;;;;;;;;131493:6;:31;;131485:40;;;;;;131561:15;131548:9;:28;131540:37;;;;;;131609:12;131627:100;;;;;;;;131647:10;-1:-1:-1;;;;;131627:100:0;;;;;131659:7;:48;;131701:6;131659:48;;;131670:27;131682:15;131670:9;:27;:::i;:::-;131627:100;;;;;;;;;;;;;;;;;;;;;131609:119;;;;;;;;-1:-1:-1;131609:119:0;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;131609:119:0;-1:-1:-1;;;;;131609:119:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;131609:119:0;;;;;;;;;;;;;;;;;;-1:-1:-1;131033:708:0:o;110718:238::-;110806:4;98264:10;110862:64;98264:10;110878:7;110915:10;110887:25;98264:10;110878:7;110887:9;:25::i;:::-;:38;;;;:::i;:::-;110862:8;:64::i;138440:2047::-;138567:10;138581:1;108274:18;;;;;;;;;;;138557:25;138549:34;;;;;;138619:1;138602:14;:18;138594:27;;;;;;138668:10;108247:7;108274:18;;;;;;;;;;;138640:14;:39;;138632:48;;;;;;138718:11;:18;138699:15;;:37;138691:46;;;;;;138750:33;138756:10;138768:14;138750:5;:33::i;:::-;138812:10;108247:7;108274:18;;;;;;;;;;;138799:72;;138844:13;:15;;;:13;:15;;;:::i;:::-;;;;;;138799:72;138884:17;138947:14;138931:13;108090:12;;;108002:108;138931:13;:30;;;;:::i;:::-;138904:23;:14;138921:6;138904:23;:::i;:::-;:58;;;;:::i;:::-;138994:44;;-1:-1:-1;;;138994:44:0;;139032:4;138994:44;;;12570:51:1;138884:78:0;;-1:-1:-1;138973:18:0;;139053:6;;138884:78;;-1:-1:-1;;;;;;;;;;;127702:42:0;138994:29;;12543:18:1;;138994:44:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:56;;;;:::i;:::-;:65;;;;:::i;:::-;138973:86;;139070:35;139109:11;139070:50;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;139070:50:0;;;;;;;;;;;;;;;;;;;;;;;139136:6;139131:698;139152:18;:25;139148:1;:29;139131:698;;;139232:18;139251:1;139232:21;;;;;;-1:-1:-1;;;139232:21:0;;;;;;;;;;;;;;;-1:-1:-1;;;;;139211:42:0;:8;139220:1;139211:11;;;;;;-1:-1:-1;;;139211:11:0;;;;;;;;;;;;;;;:17;;;-1:-1:-1;;;;;139211:42:0;;139203:51;;;;;;139274:8;139283:1;139274:11;;;;;;-1:-1:-1;;;139274:11:0;;;;;;;;;;;;;;;:34;;;139312:1;139274:39;:84;;;;;139317:8;139326:1;139317:11;;;;;;-1:-1:-1;;;139317:11:0;;;;;;;;;;;;;;;:36;;;139357:1;139317:41;139274:84;139270:548;;139388:20;139418:18;139437:1;139418:21;;;;;;-1:-1:-1;;;139418:21:0;;;;;;;;;;;;;;;139388:52;;139459:20;139482:263;139516:8;139525:1;139516:11;;;;;;-1:-1:-1;;;139516:11:0;;;;;;;;;;;;;;;:24;;;139563:8;139572:1;139563:11;;;;;;-1:-1:-1;;;139563:11:0;;;;;;;;;;;;;;;;;;;:24;;;139610:38;;-1:-1:-1;;;139610:38:0;;139642:4;139610:38;;;12570:51:1;139663:6:0;;139651:9;;-1:-1:-1;;;;;139610:23:0;;;;;12543:18:1;;139610:38:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:50;;;;:::i;:::-;:59;;;;:::i;:::-;139692:8;139701:1;139692:11;;;;;;-1:-1:-1;;;139692:11:0;;;;;;;;;;;;;;;:34;;;139482:11;:263::i;:::-;139459:286;-1:-1:-1;139764:26:0;139459:286;139764:26;;:::i;:::-;;;139270:548;;;139179:3;;;;:::i;:::-;;;;139131:698;;;-1:-1:-1;139841:26:0;139894:6;139870:21;139883:8;139870:10;:21;:::i;:::-;:30;;;;:::i;:::-;139841:59;;139911:24;139965:6;139951:11;;139938:10;:24;;;;:::i;:::-;:33;;;;:::i;:::-;139911:60;-1:-1:-1;139982:25:0;140042:18;140010:29;139911:60;140010:10;:29;:::i;:::-;:50;;;;:::i;:::-;139982:78;-1:-1:-1;;;;;;;;;;;;127702:42:0;140123:28;140152:7;99712:6;;-1:-1:-1;;;;;99712:6:0;;99639:87;140152:7;140123:57;;-1:-1:-1;;;;;;140123:57:0;;;;;;;-1:-1:-1;;;;;13513:32:1;;;140123:57:0;;;13495:51:1;13562:18;;;13555:34;;;13468:18;;140123:57:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;140191:28;140202:16;140191:10;:28::i;:::-;140232:40;;-1:-1:-1;;;140232:40:0;;;;;25095:25:1;;;-1:-1:-1;;;;;140232:21:0;;;;;25068:18:1;;140232:40:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;140283:45:0;;:10;;-1:-1:-1;140306:17:0;;-1:-1:-1;140283:45:0;;;;140306:17;140283:10;:45;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;140346:55;140361:10;140373:7;99712:6;;-1:-1:-1;;;;;99712:6:0;;99639:87;140373:7;140346:55;;;-1:-1:-1;;;;;13199:15:1;;;13181:34;;13251:15;;;;13246:2;13231:18;;13224:43;13283:18;;13276:34;;;13131:2;13116:18;140346:55:0;;;;;;;140417:62;;;140433:10;14234:51:1;;14316:2;14301:18;;14294:34;;;14344:18;;;14337:34;;;140417:62:0;;14222:2:1;14207:18;140417:62:0;;;;;;;138440:2047;;;;;;;;;:::o;118257:91::-;118313:27;98264:10;118333:6;118313:5;:27::i;:::-;118257:91;:::o;127051:28::-;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;127051:28:0;;-1:-1:-1;127051:28:0;:::o;100287:103::-;99525:13;:11;:13::i;:::-;100352:30:::1;100379:1;100352:18;:30::i;:::-;100287:103::o:0;118667:164::-;118744:46;118760:7;98264:10;118783:6;118744:15;:46::i;:::-;118801:22;118807:7;118816:6;118801:5;:22::i;127790:41::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;127790:41:0;;;;-1:-1:-1;127790:41:0;;;;;:::o;129601:745::-;99525:13;:11;:13::i;:::-;129701:19;;129693:33:::1;;;::::0;::::1;;129742:6;129737:602;129758:12;:19;129754:1;:23;129737:602;;;129798:25;129851:8:::0;129846:302:::1;129871:12;:19:::0;129865:25;::::1;129846:302;;;129917:16;129936:17;:29;129966:12;129979:1;129966:15;;;;;;-1:-1:-1::0;;;129966:15:0::1;;;;;;;;;;;;;;;:22;;;129990:12;130003:1;129990:15;;;;;;-1:-1:-1::0;;;129990:15:0::1;;;;;;;;;;;;;;;:22;;;129936:77;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;129917:96;;130047:12;130060:1;130047:15;;;;;;-1:-1:-1::0;;;130047:15:0::1;;;;;;;;;;::::0;;;::::1;::::0;;;::::1;::::0;-1:-1:-1;;;;;130035:27:0;;::::1;130047:15:::0;::::1;130035:27;130032:101;;;130109:4;130086:27;;130032:101;-1:-1:-1::0;129892:5:0;::::1;::::0;::::1;:::i;:::-;;;;129846:302;;;-1:-1:-1::0;130194:4:0::1;130170:28:::0;::::1;;;130162:37;;;::::0;::::1;;130214:113;130226:12;130239:1;130226:15;;;;;;-1:-1:-1::0;;;130226:15:0::1;;;;;;;;;;;;;;;:22;;;130250:12;130263:1;130250:15;;;;;;-1:-1:-1::0;;;130250:15:0::1;;;;;;;;;;;;;;;:22;;;130274:12;130287:1;130274:15;;;;;;-1:-1:-1::0;;;130274:15:0::1;;;;;;;;;;;;;;;:24;;;130300:12;130313:1;130300:15;;;;;;-1:-1:-1::0;;;130300:15:0::1;;;;;;;;;;;;;;;:26;;;130214:11;:113::i;:::-;;129737:602;129779:3;;;;;:::i;:::-;;;;129737:602;;131749:6681:::0;99525:13;:11;:13::i;:::-;131894:11:::1;:18:::0;131875:15;;:37:::1;131867:46;;;::::0;::::1;;131926:22;131951:33;131975:8;131951:23;:33::i;:::-;131926:58;;132000:48;132051:12;132000:63;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;;;::::1;::::0;;;;::::1;::::0;;::::1;::::0;::::1;::::0;;::::1;::::0;::::1;::::0;;::::1;::::0;;-1:-1:-1;;;;;132000:63:0::1;::::0;;;;;::::1;::::0;;;::::1;::::0;::::1;::::0;::::1;::::0;::::1;;;;::::0;;;;;;;::::1;;::::0;;;;;;;;;;::::1;::::0;::::1;;;;;;;;;;132074:39;132116:28;;;;;;;;132134:1;132116:28;;;;132136:1;132116:28;;;;132138:1;132116:28;;;;132140:1;132116:28;;;;132142:1;132116:28;;::::0;132074:70:::1;;132162:6;132157:2104;132178:15;132174:1;:19;132157:2104;;;132217:19;132237:1;132217:22;;;;;;-1:-1:-1::0;;;132217:22:0::1;;;;;;;;;;;;;;;:30;;;:38;;132251:4;132217:38;;;132214:2007;;;132313:15;132278:19;132298:1;132278:22;;;;;;-1:-1:-1::0;;;132278:22:0::1;;;;;;;;;;;;;;;:31;;;:50;;:177;;;;;132426:19;132446:1;132426:22;;;;;;-1:-1:-1::0;;;132426:22:0::1;;;;;;;;;;;;;;;:29;;;-1:-1:-1::0;;;;;;;;;;;;;;;;132349:29:0::1;;132379:19;132399:1;132379:22;;;;;;-1:-1:-1::0;;;132379:22:0::1;;;;;;;;;;::::0;;::::1;::::0;;;;;;:27;132349:73:::1;::::0;-1:-1:-1;;;;;;132349:73:0::1;::::0;;;;;;-1:-1:-1;;;;;12862:15:1;;;132349:73:0::1;::::0;::::1;12844:34:1::0;132416:4:0::1;12894:18:1::0;;;12887:43;12779:18;;132349:73:0::1;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:106;;132278:177;:289;;;;;132538:19;132558:1;132538:22;;;;;;-1:-1:-1::0;;;132538:22:0::1;;;;;;;;;;;;;;;:29;;;-1:-1:-1::0;;;;;;;;;;;;;;;;132476:29:0::1;;132506:19;132526:1;132506:22;;;;;;-1:-1:-1::0;;;132506:22:0::1;;;;;;;;;;::::0;;::::1;::::0;;;;;;:27;132476:58:::1;::::0;-1:-1:-1;;;;;;132476:58:0::1;::::0;;;;;;-1:-1:-1;;;;;12588:32:1;;;132476:58:0::1;::::0;::::1;12570:51:1::0;12543:18;;132476:58:0::1;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:91;;132278:289;132275:1176;;;-1:-1:-1::0;;;;;;;;;;;;;;;;132609:32:0::1;;132642:19;132662:1;132642:22;;;;;;-1:-1:-1::0;;;132642:22:0::1;;;;;;;;;;;;;;;:27;;;132679:4;132686:19;132706:1;132686:22;;;;;;-1:-1:-1::0;;;132686:22:0::1;;;;;;;;;;::::0;;::::1;::::0;;;;;;;:29:::1;::::0;132609:107:::1;::::0;-1:-1:-1;;;;;;132609:107:0::1;::::0;;;;;;-1:-1:-1;;;;;13199:15:1;;;132609:107:0::1;::::0;::::1;13181:34:1::0;13251:15;;;;13231:18;;;13224:43;13283:18;;;13276:34;13116:18;;132609:107:0::1;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;132822:6;132808:11;;132776:19;132796:1;132776:22;;;;;;-1:-1:-1::0;;;132776:22:0::1;;;;;;;;;;;;;;;:29;;;:43;;;;:::i;:::-;:52;;;;:::i;:::-;132739:14;:32;;:90;;;;;;;:::i;:::-;;;;;;::::0;::::1;132928:6;132917:8;132885:19;132905:1;132885:22;;;;;;-1:-1:-1::0;;;132885:22:0::1;;;;;;;;;;;;;;;:29;;;:40;;;;:::i;:::-;:49;;;;:::i;:::-;132852:14;:29;;:82;;;;;;;:::i;:::-;;;;;;::::0;::::1;133122:6;133108:11;;133076:19;133096:1;133076:22;;;;;;-1:-1:-1::0;;;133076:22:0::1;;;;;;;;;;;;;;;:29;;;:43;;;;:::i;:::-;:52;;;;:::i;:::-;133065:6;133054:8;133022:19;133042:1;133022:22;;;;;;-1:-1:-1::0;;;133022:22:0::1;;;;;;;;;;;;;;;:29;;;:40;;;;:::i;:::-;:49;;;;:::i;:::-;132989:19;133009:1;132989:22;;;;;;-1:-1:-1::0;;;132989:22:0::1;;;;;;;;;;;;;;;:29;;;:83;;;;:::i;:::-;:140;;;;:::i;:::-;132957:19;132977:1;132957:22;;;;;;-1:-1:-1::0;;;132957:22:0::1;;;;;;;;;;;;;;;:29;;:172;;;::::0;::::1;133185:19;133205:1;133185:22;;;;;;-1:-1:-1::0;;;133185:22:0::1;;;;;;;;;;;;;;;:29;;;133152:14;:29;;:62;;;;;;;:::i;:::-;::::0;;-1:-1:-1;133250:22:0;;133240:38:::1;::::0;133250:19;;133270:1;;133250:22;::::1;;;-1:-1:-1::0;;;133250:22:0::1;;;;;;;;;;;;;;;:27;;;-1:-1:-1::0;;;;;108274:18:0;108247:7;108274:18;;;;;;;;;;;;108173:127;133240:38:::1;133237:113;;133311:13;:15:::0;;;:13:::1;:15;::::0;::::1;:::i;:::-;;;;;;133237:113;132214:2007;;132275:1176;133430:1;133398:19;133418:1;133398:22;;;;;;-1:-1:-1::0;;;133398:22:0::1;;;;;;;;;;;;;;;:29;;:33;;;::::0;::::1;132214:2007;;;133529:15;133494:19;133514:1;133494:22;;;;;;-1:-1:-1::0;;;133494:22:0::1;;;;;;;;;;;;;;;:31;;;:50;;:140;;;;;133605:19;133625:1;133605:22;;;;;;-1:-1:-1::0;;;133605:22:0::1;;;;;;;;;;;;;;;:29;;;133548:53;133558:19;133578:1;133558:22;;;;;;-1:-1:-1::0;;;133558:22:0::1;;;;;;;;;;;;;;;:27;;;133595:4;133548:9;:53::i;:::-;:86;;133494:140;:215;;;;;133680:19;133700:1;133680:22;;;;;;-1:-1:-1::0;;;133680:22:0::1;;;;;;;;;;;;;;;:29;;;133638:38;133648:19;133668:1;133648:22;;;;;;-1:-1:-1::0;;;133648:22:0::1;;;;;;;;133638:38;:71;;133494:215;133491:713;;;133755:4;-1:-1:-1::0;;;;;133733:37:0::1;;133771:19;133791:1;133771:22;;;;;;-1:-1:-1::0;;;133771:22:0::1;;;;;;;;;;;;;;;:27;;;133800:19;133820:1;133800:22;;;;;;-1:-1:-1::0;;;133800:22:0::1;;;;;;;;;;;;;;;:29;;;133733:97;;;;;;;;;;;;;;;-1:-1:-1::0;;;;;13513:32:1;;;;13495:51;;13577:2;13562:18;;13555:34;13483:2;13468:18;;13450:145;133733:97:0::1;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;133887:19;133907:1;133887:22;;;;;;-1:-1:-1::0;;;133887:22:0::1;;;;;;;;;;;;;;;:29;;;133853:14;:30;;:63;;;;;;;:::i;:::-;::::0;;-1:-1:-1;133939:26:0::1;::::0;::::1;:28:::0;;;::::1;::::0;::::1;:::i;:::-;;;::::0;::::1;133993:38;134003:19;134023:1;134003:22;;;;;;-1:-1:-1::0;;;134003:22:0::1;;;;;;;;133993:38;133990:113;;134064:13;:15:::0;;;:13:::1;:15;::::0;::::1;:::i;133491:713::-;134183:1;134151:19;134171:1;134151:22;;;;;;-1:-1:-1::0;;;134151:22:0::1;;;;;;;;;;;;;;;:29;;:33;;;::::0;::::1;133491:713;134235:14;134247:1;134235:11;:14::i;:::-;132195:3:::0;::::1;::::0;::::1;:::i;:::-;;;;132157:2104;;;-1:-1:-1::0;134284:29:0;;:33;134281:2263:::1;;134463:11;:18:::0;134333:31:::1;::::0;;;;;134463:22;;;;:43:::1;;;134505:1;134489:13;108090:12:::0;;;108002:108;134489:13:::1;:17;134463:43;134460:1712;;;134531:6;134526:1085;134547:11;:18:::0;134543:22;::::1;134526:1085;;;134623:11;134635:1;134623:14;;;;;;-1:-1:-1::0;;;134623:14:0::1;;;;;;;;;;::::0;;;::::1;::::0;;;::::1;::::0;134602:11;;-1:-1:-1;;;;;134623:14:0;;::::1;::::0;134602:8;;134611:1;;134602:11;::::1;;;-1:-1:-1::0;;;134602:11:0::1;;;;;;;;;;;;;;;:17;;;-1:-1:-1::0;;;;;134602:35:0::1;;134594:44;;;::::0;::::1;;134661:13;134702:8;134711:1;134702:11;;;;;;-1:-1:-1::0;;;134702:11:0::1;;;;;;;;;;;;;;;:24;;;:31;134737:1;134702:36;134699:480;;134774:17;:28;134803:8;134812:1;134803:11;;;;;;-1:-1:-1::0;;;134803:11:0::1;;;;;;;;;;;;;;;:24;;;134904:11;134916:1;134904:14;;;;;;-1:-1:-1::0;;;134904:14:0::1;;;;;;;;;;::::0;;;::::1;::::0;;;;::::1;::::0;134889:41:::1;::::0;;-1:-1:-1;;;134889:41:0;;;;-1:-1:-1;;;;;134904:14:0;;::::1;::::0;134889:39:::1;::::0;:41:::1;::::0;;::::1;::::0;;;;;;134904:14;134889:41;::::1;;::::0;::::1;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;134884:46;::::0;:2:::1;:46;:::i;:::-;134879:52;::::0;:2:::1;:52;:::i;:::-;134836:11;134848:1;134836:14;;;;;;-1:-1:-1::0;;;134836:14:0::1;;;;;;;;;;::::0;;;::::1;::::0;;;::::1;::::0;134829:47:::1;::::0;-1:-1:-1;;;134829:47:0;;134870:4:::1;134829:47;::::0;::::1;12570:51:1::0;-1:-1:-1;;;;;134836:14:0;;::::1;::::0;134829:32:::1;::::0;12543:18:1;;134829:47:0::1;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:102;;;;:::i;:::-;134774:158;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;134766:166;;134699:480;;;134997:17;:28;135026:8;135035:1;135026:11;;;;;;-1:-1:-1::0;;;135026:11:0::1;;;;;;;;;;;;;;;:24;;;135127:11;135139:1;135127:14;;;;;;-1:-1:-1::0;;;135127:14:0::1;;;;;;;;;;::::0;;;::::1;::::0;;;;::::1;::::0;135112:41:::1;::::0;;-1:-1:-1;;;135112:41:0;;;;-1:-1:-1;;;;;135127:14:0;;::::1;::::0;135112:39:::1;::::0;:41:::1;::::0;;::::1;::::0;;;;;;135127:14;135112:41;::::1;;::::0;::::1;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;135107:46;::::0;:2:::1;:46;:::i;:::-;135102:52;::::0;:2:::1;:52;:::i;:::-;135059:11;135071:1;135059:14;;;;;;-1:-1:-1::0;;;135059:14:0::1;;;;;;;;;;::::0;;;::::1;::::0;;;::::1;::::0;135052:47:::1;::::0;-1:-1:-1;;;135052:47:0;;135093:4:::1;135052:47;::::0;::::1;12570:51:1::0;-1:-1:-1;;;;;135059:14:0;;::::1;::::0;135052:32:::1;::::0;12543:18:1;;135052:47:0::1;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:102;;;;:::i;:::-;134997:158;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;134989:166;;134699:480;135201:22;135226:181;135238:8;135247:1;135238:11;;;;;;-1:-1:-1::0;;;135238:11:0::1;;;;;;;;;;;;;;;:26;;;135266:8;135275:1;135266:11;;;;;;-1:-1:-1::0;;;135266:11:0::1;;;;;;;;;;;;;;;:26;;;135362:6;135344:14;135327:5;135335:6;135327:14;;;;:::i;:::-;:31;;;;:::i;:::-;135294:29:::0;;:65:::1;::::0;;::::1;:::i;:::-;:74;;;;:::i;:::-;135370:8;135379:1;135370:11;;;;;;-1:-1:-1::0;;;135370:11:0::1;;;;;;;;;;;;;;;:36;;;135226:11;:181::i;:::-;135201:206;;135534:14;135491:11;135503:1;135491:14;;;;;;-1:-1:-1::0;;;135491:14:0::1;;;;;;;;;;::::0;;;::::1;::::0;;;::::1;::::0;135484:47:::1;::::0;-1:-1:-1;;;135484:47:0;;135525:4:::1;135484:47;::::0;::::1;12570:51:1::0;-1:-1:-1;;;;;135491:14:0;;::::1;::::0;135484:32:::1;::::0;12543:18:1;;135484:47:0::1;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:64;;;;:::i;:::-;135457:23;:14:::0;135474:6:::1;135457:23;:::i;:::-;:92;;;;:::i;:::-;135430:119;::::0;;::::1;:::i;:::-;::::0;-1:-1:-1;135572:17:0;::::1;::::0;::::1;:::i;:::-;;;;134526:1085;;134567:3;;;;;:::i;:::-;;;;134526:1085;;;-1:-1:-1::0;135741:6:0::1;135696:41;135722:15:::0;135696:23;:41:::1;:::i;:::-;135661:30;::::0;::::1;::::0;108090:12;;135645:46:::1;;;;:::i;:::-;135644:94;;;;:::i;:::-;:103;;;;:::i;:::-;135629:118;;134460:1712;;;135789:1;135772:14;:18;:39;;;;;135810:1;135794:13;108090:12:::0;;;108002:108;135794:13:::1;:17;135772:39;135769:403;;;135996:32;::::0;;::::1;::::0;135964:29:::1;::::0;::::1;::::0;135900:44;;-1:-1:-1;;;135900:44:0;;135938:4:::1;135900:44;::::0;::::1;12570:51:1::0;136059:6:0::1;::::0;136041:14;;135996:32;136041:14;;-1:-1:-1;;;;;;;;;;;127702:42:0;135900:29:::1;::::0;12543:18:1;;135900:44:0::1;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:61;;;;:::i;:::-;:93;;;;:::i;:::-;:128;;;;:::i;:::-;135899:139;::::0;136032:6:::1;135899:139;:::i;:::-;:156;;;;:::i;135769:403::-;136121:29:::0;;:35:::1;::::0;136153:3:::1;136121:35;:::i;:::-;136106:50;;135769:403;136207:6;136202:331;136223:15;136219:1;:19;136202:331;;;136266:19;136286:1;136266:22;;;;;;-1:-1:-1::0;;;136266:22:0::1;;;;;;;;;;;;;;;:30;;;:38;;136300:4;136266:38;;;:76;;;;;136308:19;136328:1;136308:22;;;;;;-1:-1:-1::0;;;136308:22:0::1;;;;;;;;;;;;;;;:29;;;136341:1;136308:34;;136266:76;136263:255;;;136366:132;136372:19;136392:1;136372:22;;;;;;-1:-1:-1::0;;;136372:22:0::1;;;;;;;;;;;;;;;:27;;;136491:6;136458:14;:29;;;136417:19;136437:1;136417:22;;;;;;-1:-1:-1::0;;;136417:22:0::1;;;;;;;;;;;;;;;:29;;;136449:6;136417:38;;;;:::i;:::-;:70;;;;:::i;:::-;136401:87;::::0;:12;:87:::1;:::i;:::-;:96;;;;:::i;:::-;136366:5;:132::i;:::-;136240:3:::0;::::1;::::0;::::1;:::i;:::-;;;;136202:331;;;;134281:2263;;;;136559:30;::::0;::::1;::::0;:34;136556:1585:::1;;136741:44;::::0;-1:-1:-1;;;136741:44:0;;136779:4:::1;136741:44;::::0;::::1;12570:51:1::0;136623:20:0::1;::::0;136788:6:::1;::::0;-1:-1:-1;;;;;;;;;;;127702:42:0;136741:29:::1;::::0;12543:18:1;;136741:44:0::1;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;136706:30;::::0;::::1;::::0;108090:12;;136690:46:::1;;;;:::i;:::-;136647:30;::::0;::::1;::::0;:39:::1;::::0;136680:6:::1;136647:39;:::i;:::-;:90;;;;:::i;:::-;136646:139;;;;:::i;:::-;:148;;;;:::i;:::-;136623:171;;136809:35;136847:11;136809:49;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;;-1:-1:-1;;;;;136809:49:0::1;::::0;;;;;::::1;::::0;::::1;;::::0;;::::1;;;;;;;;;;;136904:1;136876:18;:25;:29;136873:539;;;136930:6;136925:472;136946:18;:25;136942:1;:29;136925:472;;;137029:18;137048:1;137029:21;;;;;;-1:-1:-1::0;;;137029:21:0::1;;;;;;;;;;;;;;;-1:-1:-1::0;;;;;137008:42:0::1;:8;137017:1;137008:11;;;;;;-1:-1:-1::0;;;137008:11:0::1;;;;;;;;;;;;;;;:17;;;-1:-1:-1::0;;;;;137008:42:0::1;;137000:51;;;::::0;::::1;;137095:259;137107:8;137116:1;137107:11;;;;;;-1:-1:-1::0;;;137107:11:0::1;;;;;;;;;;;;;;;:24;;;137133:8;137142:1;137133:11;;;;;;-1:-1:-1::0;;;137133:11:0::1;;;;;;;;;;;;;;;:24;;;137311:6;137276:14;:30;;;137260:13;108090:12:::0;;;108002:108;137260:13:::1;:46;;;;:::i;:::-;137217:30;::::0;::::1;::::0;:39:::1;::::0;137250:6:::1;137217:39;:::i;:::-;:90;;;;:::i;:::-;137166:18;137185:1;137166:21;;;;;;-1:-1:-1::0;;;137166:21:0::1;;;;;;;;;;::::0;;::::1;::::0;;;;;;137159:54:::1;::::0;-1:-1:-1;;;137159:54:0;;137207:4:::1;137159:54;::::0;::::1;12570:51:1::0;-1:-1:-1;;;;;137159:39:0;;::::1;::::0;::::1;::::0;12543:18:1;;137159:54:0::1;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:149;;;;:::i;:::-;:158;;;;:::i;:::-;137319:8;137328:1;137319:11;;;;;;-1:-1:-1::0;;;137319:11:0::1;;;;;;;;137095:259;137079:275;::::0;;::::1;:::i;:::-;::::0;-1:-1:-1;136973:3:0;::::1;::::0;::::1;:::i;:::-;;;;136925:472;;;;136873:539;137493:6;137479:11;;137464:12;:26;;;;:::i;:::-;:35;;;;:::i;:::-;137427:14;:32;;:73;;;;;;;:::i;:::-;::::0;;-1:-1:-1;137574:6:0::1;137548:23;137563:8;137548:12:::0;:23:::1;:::i;:::-;:32;;;;:::i;:::-;137515:14;:29;;:65;;;;;;;:::i;:::-;::::0;;-1:-1:-1;137678:11:0::1;::::0;137692:6:::1;::::0;137663:26:::1;::::0;:12;:26:::1;:::i;:::-;:35;;;;:::i;:::-;137652:6;137626:23;137641:8;137626:12:::0;:23:::1;:::i;:::-;:32;;;;:::i;:::-;137610:49;::::0;:12;:49:::1;:::i;:::-;:89;;;;:::i;:::-;137730:41;::::0;-1:-1:-1;;;137730:41:0;;::::1;::::0;::::1;25095:25:1::0;;;137595:104:0;;-1:-1:-1;;;;;;;;;;;;127702:42:0;137730:27:::1;::::0;25068:18:1;;137730:41:0::1;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;137793:6;137788:342;137809:15;137805:1;:19;137788:342;;;137852:19;137872:1;137852:22;;;;;;-1:-1:-1::0;;;137852:22:0::1;;;;;;;;;;::::0;;::::1;::::0;;;;;;:30:::1;;::::0;:39:::1;::::0;::::1;:77;;;137895:19;137915:1;137895:22;;;;;;-1:-1:-1::0;;;137895:22:0::1;;;;;;;;;;;;;;;:29;;;137928:1;137895:34;;137852:77;137849:266;;;137953:19;137973:1;137953:22;;;;;;-1:-1:-1::0;;;137953:22:0::1;;;;;;;;;;;;;;;:27;;;-1:-1:-1::0;;;;;137953:32:0::1;138084:6;138050:14;:30;;;138009:19;138029:1;138009:22;;;;;;-1:-1:-1::0;;;138009:22:0::1;;;;;;;;;;;;;;;:29;;;138041:6;138009:38;;;;:::i;:::-;:71;;;;:::i;:::-;137993:88;::::0;:12;:88:::1;:::i;:::-;:97;;;;:::i;:::-;137953:142;::::0;::::1;::::0;;;;;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;137849:266;137826:3:::0;::::1;::::0;::::1;:::i;:::-;;;;137788:342;;;;136556:1585;;;138225:29;::::0;::::1;::::0;138203:52:::1;::::0;-1:-1:-1;;;138203:52:0;;-1:-1:-1;;;;;;;;;;;127702:42:0;;;138203:21:::1;::::0;:52:::1;::::0;::::1;;25095:25:1::0;;;25083:2;25068:18;;25050:76;138203:52:0::1;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;138266:7;99712:6:::0;;-1:-1:-1;;;;;99712:6:0;;99639:87;138266:7:::1;-1:-1:-1::0;;;;;138266:12:0::1;138286:21;138266:46;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;138323:44;138334:14;:32;;;138323:10;:44::i;:::-;138385:37;::::0;;24672:13:1;;24654:32;;24742:4;24730:17;;;24724:24;24702:20;;;24695:54;24793:17;;;24787:24;24765:20;;;24758:54;24868:4;24856:17;;;24850:24;24828:20;;;24821:54;24931:4;24919:17;;;24913:24;24891:20;;;24884:54;138385:37:0;;::::1;::::0;;;;24641:3:1;138385:37:0;;::::1;99549:1;;;;131749:6681:::0;;:::o;107101:104::-;107157:13;107190:7;107183:14;;;;;:::i;130354:548::-;130436:12;:19;130420:35;;130416:48;;130354:548;:::o;130416:48::-;130517:10;-1:-1:-1;;;;;130482:45:0;:12;130495;130482:26;;;;;;-1:-1:-1;;;130482:26:0;;;;;;;;;;;;;;;;;;;;;;:31;-1:-1:-1;;;;;130482:31:0;:45;;:70;;-1:-1:-1;99712:6:0;;-1:-1:-1;;;;;99712:6:0;130531:10;:21;130482:70;:101;;;-1:-1:-1;130556:10:0;130578:4;130556:27;130482:101;130474:110;;;;;;130598:10;130620:4;130598:27;130595:122;;130641:12;130654;130641:26;;;;;;-1:-1:-1;;;130641:26:0;;;;;;;;;;;;;;;;;;;;;:31;:64;;-1:-1:-1;;;;;130641:31:0;;;;130685:15;;130641:64;;:26;:64;130685:15;130641:31;:64;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;130595:122;130760:12;130746:119;130776:12;:19;:21;;130796:1;;130776:21;:::i;:::-;130774:1;:23;130746:119;;;130836:12;130849:3;:1;130851;130849:3;:::i;:::-;130836:17;;;;;;-1:-1:-1;;;130836:17:0;;;;;;;;;;;;;;;;;;;130818:12;130831:1;130818:15;;;;;;-1:-1:-1;;;130818:15:0;;;;;;;;;;;;;;;;;:35;;:15;;;;;:35;;-1:-1:-1;;;;;;130818:35:0;-1:-1:-1;;;;;130818:35:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;130818:35:0;;;;;;;;;;;;;;;;;130799:3;;;;:::i;:::-;;;;130746:119;;;;130875:12;:18;;;;;-1:-1:-1;;;130875:18:0;;;;;;;;;;;;;;;;;-1:-1:-1;;130875:18:0;;;;;;;;;-1:-1:-1;;;;;;130875:18:0;;;;;;;;;;;;;;-1:-1:-1;;130875:18:0;;;;;;;;-1:-1:-1;130354:548:0:o;111459:436::-;111552:4;98264:10;111552:4;111635:25;98264:10;111652:7;111635:9;:25::i;:::-;111608:52;;111699:15;111679:16;:35;;111671:85;;;;-1:-1:-1;;;111671:85:0;;23216:2:1;111671:85:0;;;23198:21:1;23255:2;23235:18;;;23228:30;23294:34;23274:18;;;23267:62;-1:-1:-1;;;23345:18:1;;;23338:35;23390:19;;111671:85:0;;;;;;;;;111792:60;111801:5;111808:7;111836:15;111817:16;:34;111792:8;:60::i;108506:193::-;108585:4;98264:10;108641:28;98264:10;108658:2;108662:6;108641:9;:28::i;130910:115::-;99525:13;:11;:13::i;:::-;130997:20:::1;::::0;;-1:-1:-1;;130973:44:0;::::1;130997:20;::::0;;::::1;130996:21;130973:44;::::0;;130910:115::o;108762:151::-;-1:-1:-1;;;;;108878:18:0;;;108851:7;108878:18;;;:11;:18;;;;;;;;:27;;;;;;;;;;;;;108762:151::o;127086:24::-;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;100545:201::-;99525:13;:11;:13::i;:::-;-1:-1:-1;;;;;100634:22:0;::::1;100626:73;;;::::0;-1:-1:-1;;;100626:73:0;;20067:2:1;100626:73:0::1;::::0;::::1;20049:21:1::0;20106:2;20086:18;;;20079:30;20145:34;20125:18;;;20118:62;-1:-1:-1;;;20196:18:1;;;20189:36;20242:19;;100626:73:0::1;20039:228:1::0;100626:73:0::1;100710:28;100729:8;100710:18;:28::i;115084:380::-:0;-1:-1:-1;;;;;115220:19:0;;115212:68;;;;-1:-1:-1;;;115212:68:0;;22811:2:1;115212:68:0;;;22793:21:1;22850:2;22830:18;;;22823:30;22889:34;22869:18;;;22862:62;-1:-1:-1;;;22940:18:1;;;22933:34;22984:19;;115212:68:0;22783:226:1;115212:68:0;-1:-1:-1;;;;;115299:21:0;;115291:68;;;;-1:-1:-1;;;115291:68:0;;20474:2:1;115291:68:0;;;20456:21:1;20513:2;20493:18;;;20486:30;20552:34;20532:18;;;20525:62;-1:-1:-1;;;20603:18:1;;;20596:32;20645:19;;115291:68:0;20446:224:1;115291:68:0;-1:-1:-1;;;;;115372:18:0;;;;;;;:11;:18;;;;;;;;:27;;;;;;;;;;;;;:36;;;115424:32;;25095:25:1;;;115424:32:0;;25068:18:1;115424:32:0;;;;;;;;115084:380;;;:::o;99804:132::-;99712:6;;-1:-1:-1;;;;;99712:6:0;98264:10;99868:23;99860:68;;;;-1:-1:-1;;;99860:68:0;;21642:2:1;99860:68:0;;;21624:21:1;;;21661:18;;;21654:30;21720:34;21700:18;;;21693:62;21772:18;;99860:68:0;21614:182:1;140532:264:0;140588:25;140625:15;-1:-1:-1;;;;;140616:44:0;;:46;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;140673:54;;-1:-1:-1;;;140673:54:0;;-1:-1:-1;;;;;13513:32:1;;140673:54:0;;;13495:51:1;13562:18;;;13555:34;;;140588:74:0;;-1:-1:-1;;;;;;;;;;;;127702:42:0;140673:27;;13468:18:1;;140673:54:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1;140738:50:0;;-1:-1:-1;;;140738:50:0;;;;;25095:25:1;;;-1:-1:-1;;;;;140738:42:0;;;;;25068:18:1;;140738:50:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;140532:264;;:::o;141463:1904::-;141592:7;141612:15;141638:16;141665:24;141719:1;141703:6;:13;:17;141700:235;;;141746:6;141753:1;141746:9;;;;;;-1:-1:-1;;;141746:9:0;;;;;;;;;;;;;;;141736:19;;141781:6;141804:1;141788:6;:13;:17;;;;:::i;:::-;141781:25;;;;;;-1:-1:-1;;;141781:25:0;;;;;;;;;;;;;;;141770:36;;141700:235;;;141874:49;;-1:-1:-1;;;141874:49:0;;:17;;:41;;:49;;141916:6;;141874:49;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;141874:49:0;;;;;;;;;;;;:::i;:::-;141839:84;;-1:-1:-1;141839:84:0;-1:-1:-1;141839:84:0;-1:-1:-1;141700:235:0;-1:-1:-1;;;;;141948:22:0;;-1:-1:-1;;;;;;;;;;;141948:22:0;;;;:82;;-1:-1:-1;141974:40:0;;-1:-1:-1;;;141974:40:0;;142008:4;141974:40;;;12570:51:1;142017:8:0;;-1:-1:-1;;;;;141974:25:0;;;;;12543:18:1;;141974:40:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:51;;;;:::i;:::-;:56;141948:82;:145;;;;-1:-1:-1;142034:51:0;;-1:-1:-1;;;142034:51:0;;:17;;:29;;:51;;142064:11;;142077:7;;142034:51;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:59;;142089:4;142034:59;141948:145;141945:213;;;142109:37;142138:7;142109:28;:37::i;:::-;-1:-1:-1;;;;;142171:23:0;;-1:-1:-1;;;;;;;;;;;142171:23:0;;;;:73;;-1:-1:-1;142198:41:0;;-1:-1:-1;;;142198:41:0;;142233:4;142198:41;;;12570:51:1;-1:-1:-1;;;;;142198:26:0;;;;;12543:18:1;;142198:41:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:46;142171:73;:138;;;;-1:-1:-1;142248:52:0;;-1:-1:-1;;;142248:52:0;;:17;;:29;;:52;;142278:11;;142291:8;;142248:52;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:61;142171:138;142168:195;;;142325:11;:26;;;;;;;-1:-1:-1;142325:26:0;;;;;;;;-1:-1:-1;;;;;;142325:26:0;-1:-1:-1;;;;;142325:26:0;;;;;142168:195;142386:13;;:17;142383:977;;142421:32;142463:6;142486:1;142470:6;:13;:17;;;;:::i;:::-;142463:25;;;;;;-1:-1:-1;;;142463:25:0;;;;;;;;;;;;;;;;;;;142456:58;;-1:-1:-1;;;142456:58:0;;142508:4;142456:58;;;12570:51:1;-1:-1:-1;;;;;142456:43:0;;;;;;12543:18:1;;142456:58:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;142421:93;;142536:6;142543:1;142536:9;;;;;;-1:-1:-1;;;142536:9:0;;;;;;;;;;;;;;;;;;;142529:61;;-1:-1:-1;;;142529:61:0;;-1:-1:-1;;;;;142563:15:0;13513:32:1;;142529:61:0;;;13495:51:1;13562:18;;;13555:34;;;142529:25:0;;;;;;13468:18:1;;142529:61:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1;142605:237:0;;-1:-1:-1;;;142605:237:0;;-1:-1:-1;;;;;142605:15:0;:69;;;;:237;;142693:8;;142720:16;;142755:6;;142788:4;;142812:15;;142605:237;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;142925:24;142871:6;142894:1;142878:6;:13;:17;;;;:::i;:::-;142871:25;;;;;;-1:-1:-1;;;142871:25:0;;;;;;;;;;;;;;;;;;;142864:58;;-1:-1:-1;;;142864:58:0;;142916:4;142864:58;;;12570:51:1;-1:-1:-1;;;;;142864:43:0;;;;;;12543:18:1;;142864:58:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:85;;;;:::i;:::-;142857:92;;;;;;;;142383:977;142982:54;;-1:-1:-1;;;142982:54:0;;-1:-1:-1;;;;;143014:10:0;13513:32:1;;142982:54:0;;;13495:51:1;13562:18;;;13555:34;;;142982:23:0;;;;;13468:18:1;;142982:54:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1;143096:201:0;;;;;;;;;;;143181:4;143096:201;;;;143205:15;143096:201;;;;;;;;;;;;;;;;143319:29;;-1:-1:-1;;;143319:29:0;;:10;-1:-1:-1;;;;;143319:21:0;;;;:29;;143096:201;;143319:29;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;141463:1904::-;;;;;;;:::o;115755:453::-;115890:24;115917:25;115927:5;115934:7;115917:9;:25::i;:::-;115890:52;;-1:-1:-1;;115957:16:0;:37;115953:248;;116039:6;116019:16;:26;;116011:68;;;;-1:-1:-1;;;116011:68:0;;20877:2:1;116011:68:0;;;20859:21:1;20916:2;20896:18;;;20889:30;20955:31;20935:18;;;20928:59;21004:18;;116011:68:0;20849:179:1;116011:68:0;116123:51;116132:5;116139:7;116167:6;116148:16;:25;116123:8;:51::i;:::-;115755:453;;;;:::o;112365:671::-;-1:-1:-1;;;;;112496:18:0;;112488:68;;;;-1:-1:-1;;;112488:68:0;;22405:2:1;112488:68:0;;;22387:21:1;22444:2;22424:18;;;22417:30;22483:34;22463:18;;;22456:62;-1:-1:-1;;;22534:18:1;;;22527:35;22579:19;;112488:68:0;22377:227:1;112488:68:0;-1:-1:-1;;;;;112575:16:0;;112567:64;;;;-1:-1:-1;;;112567:64:0;;19260:2:1;112567:64:0;;;19242:21:1;19299:2;19279:18;;;19272:30;19338:34;19318:18;;;19311:62;-1:-1:-1;;;19389:18:1;;;19382:33;19432:19;;112567:64:0;19232:225:1;112567:64:0;-1:-1:-1;;;;;112717:15:0;;112695:19;112717:15;;;;;;;;;;;112751:21;;;;112743:72;;;;-1:-1:-1;;;112743:72:0;;21235:2:1;112743:72:0;;;21217:21:1;21274:2;21254:18;;;21247:30;21313:34;21293:18;;;21286:62;-1:-1:-1;;;21364:18:1;;;21357:36;21410:19;;112743:72:0;21207:228:1;112743:72:0;-1:-1:-1;;;;;112851:15:0;;;:9;:15;;;;;;;;;;;112869:20;;;112851:38;;112911:13;;;;;;;;:23;;112883:6;;112851:9;112911:23;;112883:6;;112911:23;:::i;:::-;;;;;;;;112967:2;-1:-1:-1;;;;;112952:26:0;112961:4;-1:-1:-1;;;;;112952:26:0;;112971:6;112952:26;;;;25095:25:1;;25083:2;25068:18;;25050:76;112952:26:0;;;;;;;;112991:37;114055:591;;-1:-1:-1;;;;;114139:21:0;;114131:67;;;;-1:-1:-1;;;114131:67:0;;22003:2:1;114131:67:0;;;21985:21:1;22042:2;22022:18;;;22015:30;22081:34;22061:18;;;22054:62;-1:-1:-1;;;22132:18:1;;;22125:31;22173:19;;114131:67:0;21975:223:1;114131:67:0;-1:-1:-1;;;;;114298:18:0;;114273:22;114298:18;;;;;;;;;;;114335:24;;;;114327:71;;;;-1:-1:-1;;;114327:71:0;;19664:2:1;114327:71:0;;;19646:21:1;19703:2;19683:18;;;19676:30;19742:34;19722:18;;;19715:62;-1:-1:-1;;;19793:18:1;;;19786:32;19835:19;;114327:71:0;19636:224:1;114327:71:0;-1:-1:-1;;;;;114434:18:0;;:9;:18;;;;;;;;;;114455:23;;;114434:44;;114500:12;:22;;114472:6;;114434:9;114500:22;;114472:6;;114500:22;:::i;:::-;;;;-1:-1:-1;;114540:37:0;;25095:25:1;;;114566:1:0;;-1:-1:-1;;;;;114540:37:0;;;;;25083:2:1;25068:18;114540:37:0;25050:76:1;100906:191:0;100999:6;;;-1:-1:-1;;;;;101016:17:0;;;-1:-1:-1;;;;;;101016:17:0;;;;;;;101049:40;;100999:6;;;101016:17;100999:6;;101049:40;;100980:16;;101049:40;100906:191;;:::o;113323:399::-;-1:-1:-1;;;;;113407:21:0;;113399:65;;;;-1:-1:-1;;;113399:65:0;;23622:2:1;113399:65:0;;;23604:21:1;23661:2;23641:18;;;23634:30;23700:33;23680:18;;;23673:61;23751:18;;113399:65:0;23594:181:1;113399:65:0;113555:6;113539:12;;:22;;;;;;;:::i;:::-;;;;-1:-1:-1;;;;;;;113572:18:0;;:9;:18;;;;;;;;;;:28;;113594:6;;113572:9;:28;;113594:6;;113572:28;:::i;:::-;;;;-1:-1:-1;;113616:37:0;;25095:25:1;;;-1:-1:-1;;;;;113616:37:0;;;113633:1;;113616:37;;25083:2:1;25068:18;113616:37:0;;;;;;;129361:222;129047:546;:::o;14:134:1:-;82:20;;111:31;82:20;111:31;:::i;:::-;63:85;;;:::o;153:768::-;207:5;260:3;253:4;245:6;241:17;237:27;227:2;;282:5;275;268:20;227:2;322:6;309:20;348:4;372:60;388:43;428:2;388:43;:::i;:::-;372:60;:::i;:::-;454:3;478:2;473:3;466:15;506:2;501:3;497:12;490:19;;541:2;533:6;529:15;593:3;588:2;582;579:1;575:10;567:6;563:23;559:32;556:41;553:2;;;614:5;607;600:20;553:2;640:5;654:238;668:2;665:1;662:9;654:238;;;739:3;726:17;756:31;781:5;756:31;:::i;:::-;800:18;;838:12;;;;870;;;;686:1;679:9;654:238;;;-1:-1:-1;910:5:1;;217:704;-1:-1:-1;;;;;;;217:704:1:o;926:2094::-;993:5;1046:3;1039:4;1031:6;1027:17;1023:27;1013:2;;1068:5;1061;1054:20;1013:2;1108:6;1095:20;1134:4;1158:60;1174:43;1214:2;1174:43;:::i;1158:60::-;1240:3;1264:2;1259:3;1252:15;1292:2;1287:3;1283:12;1276:19;;1327:2;1319:6;1315:15;1379:3;1374:2;1368;1365:1;1361:10;1353:6;1349:23;1345:32;1342:41;1339:2;;;1400:5;1393;1386:20;1339:2;1426:5;1440:1551;1454:2;1451:1;1448:9;1440:1551;;;1531:3;1518:17;1558:18;1608:2;1595:11;1592:19;1589:2;;;1628:5;1621;1614:20;1589:2;1659:24;;;;1731:4;1707:12;;;-1:-1:-1;;1703:26:1;1699:37;1696:2;;;1753:5;1746;1739:20;1696:2;1787:22;;:::i;:::-;1836:31;1863:2;1859;1855:11;1836:31;:::i;:::-;1829:5;1822:46;1891:2;1950;1946;1942:11;1929:25;1924:2;1917:5;1913:14;1906:49;1978:2;2037;2033;2029:11;2016:25;2011:2;2004:5;2000:14;1993:49;2065:3;2055:13;;2118:2;2114;2110:11;2097:25;2151:2;2141:8;2138:16;2135:2;;;2171:5;2164;2157:20;2135:2;2215:61;2272:3;2267:2;2256:8;2252:2;2248:17;2244:26;2215:61;:::i;:::-;2210:2;2203:5;2199:14;2192:85;;;2327:3;2323:2;2319:12;2306:26;2361:2;2351:8;2348:16;2345:2;;;2381:5;2374;2367:20;2345:2;2425:61;2482:3;2477:2;2466:8;2462:2;2458:17;2454:26;2425:61;:::i;:::-;2420:2;2413:5;2409:14;2402:85;;;2537:3;2533:2;2529:12;2516:26;2571:2;2561:8;2558:16;2555:2;;;2591:5;2584;2577:20;2555:2;2636:49;2681:3;2676:2;2665:8;2661:2;2657:17;2653:26;2636:49;:::i;:::-;2630:3;2623:5;2619:15;2612:74;;2736:4;2732:2;2728:13;2715:27;2771:2;2761:8;2758:16;2755:2;;;2791:5;2784;2777:20;2755:2;2836:49;2881:3;2876:2;2865:8;2861:2;2857:17;2853:26;2836:49;:::i;:::-;2830:3;2819:15;;2812:74;-1:-1:-1;2899:18:1;;-1:-1:-1;;2937:12:1;;;;2969;;;;1472:1;1465:9;1440:1551;;3025:482;3067:5;3120:3;3113:4;3105:6;3101:17;3097:27;3087:2;;3142:5;3135;3128:20;3087:2;3182:6;3169:20;3213:48;3229:31;3257:2;3229:31;:::i;3213:48::-;3286:2;3277:7;3270:19;3332:3;3325:4;3320:2;3312:6;3308:15;3304:26;3301:35;3298:2;;;3353:5;3346;3339:20;3298:2;3422;3415:4;3407:6;3403:17;3396:4;3387:7;3383:18;3370:55;3445:16;;;3463:4;3441:27;3434:42;;;;3449:7;3077:430;-1:-1:-1;;3077:430:1:o;3512:257::-;3571:6;3624:2;3612:9;3603:7;3599:23;3595:32;3592:2;;;3645:6;3637;3630:22;3592:2;3689:9;3676:23;3708:31;3733:5;3708:31;:::i;:::-;3758:5;3582:187;-1:-1:-1;;;3582:187:1:o;3774:261::-;3844:6;3897:2;3885:9;3876:7;3872:23;3868:32;3865:2;;;3918:6;3910;3903:22;3865:2;3955:9;3949:16;3974:31;3999:5;3974:31;:::i;4040:398::-;4108:6;4116;4169:2;4157:9;4148:7;4144:23;4140:32;4137:2;;;4190:6;4182;4175:22;4137:2;4234:9;4221:23;4253:31;4278:5;4253:31;:::i;:::-;4303:5;-1:-1:-1;4360:2:1;4345:18;;4332:32;4373:33;4332:32;4373:33;:::i;:::-;4425:7;4415:17;;;4127:311;;;;;:::o;4443:936::-;4540:6;4548;4556;4609:2;4597:9;4588:7;4584:23;4580:32;4577:2;;;4630:6;4622;4615:22;4577:2;4667:9;4661:16;4686:31;4711:5;4686:31;:::i;:::-;4786:2;4771:18;;4765:25;4736:5;;-1:-1:-1;4799:33:1;4765:25;4799:33;:::i;:::-;4902:2;4887:18;;4881:25;4851:7;;-1:-1:-1;4929:18:1;4918:30;;4915:2;;;4966:6;4958;4951:22;4915:2;4994:22;;5047:4;5039:13;;5035:27;-1:-1:-1;5025:2:1;;5081:6;5073;5066:22;5025:2;5115;5109:9;5140:48;5156:31;5184:2;5156:31;:::i;5140:48::-;5211:2;5204:5;5197:17;5251:7;5246:2;5241;5237;5233:11;5229:20;5226:33;5223:2;;;5277:6;5269;5262:22;5223:2;5295:54;5346:2;5341;5334:5;5330:14;5325:2;5321;5317:11;5295:54;:::i;:::-;5368:5;5358:15;;;;;4567:812;;;;;:::o;5384:466::-;5461:6;5469;5477;5530:2;5518:9;5509:7;5505:23;5501:32;5498:2;;;5551:6;5543;5536:22;5498:2;5595:9;5582:23;5614:31;5639:5;5614:31;:::i;:::-;5664:5;-1:-1:-1;5721:2:1;5706:18;;5693:32;5734:33;5693:32;5734:33;:::i;:::-;5488:362;;5786:7;;-1:-1:-1;;;5840:2:1;5825:18;;;;5812:32;;5488:362::o;5855:325::-;5923:6;5931;5984:2;5972:9;5963:7;5959:23;5955:32;5952:2;;;6005:6;5997;5990:22;5952:2;6049:9;6036:23;6068:31;6093:5;6068:31;:::i;:::-;6118:5;6170:2;6155:18;;;;6142:32;;-1:-1:-1;;;5942:238:1:o;6185:1180::-;6357:6;6365;6373;6381;6389;6397;6450:3;6438:9;6429:7;6425:23;6421:33;6418:2;;;6472:6;6464;6457:22;6418:2;6517:9;6504:23;6546:18;6587:2;6579:6;6576:14;6573:2;;;6608:6;6600;6593:22;6573:2;6636:61;6689:7;6680:6;6669:9;6665:22;6636:61;:::i;:::-;6626:71;;6750:2;6739:9;6735:18;6722:32;6706:48;;6779:2;6769:8;6766:16;6763:2;;;6800:6;6792;6785:22;6763:2;6828:51;6871:7;6860:8;6849:9;6845:24;6828:51;:::i;:::-;6818:61;;6932:2;6921:9;6917:18;6904:32;6888:48;;6961:2;6951:8;6948:16;6945:2;;;6982:6;6974;6967:22;6945:2;7010:63;7065:7;7054:8;7043:9;7039:24;7010:63;:::i;:::-;7000:73;;7126:2;7115:9;7111:18;7098:32;7082:48;;7155:2;7145:8;7142:16;7139:2;;;7176:6;7168;7161:22;7139:2;;7204:51;7247:7;7236:8;7225:9;7221:24;7204:51;:::i;:::-;7194:61;;;7302:3;7291:9;7287:19;7274:33;7264:43;;7354:3;7343:9;7339:19;7326:33;7316:43;;6408:957;;;;;;;;:::o;7370:1863::-;7490:6;7521:2;7564;7552:9;7543:7;7539:23;7535:32;7532:2;;;7585:6;7577;7570:22;7532:2;7630:9;7617:23;7659:18;7700:2;7692:6;7689:14;7686:2;;;7721:6;7713;7706:22;7686:2;7764:6;7753:9;7749:22;7739:32;;7809:7;7802:4;7798:2;7794:13;7790:27;7780:2;;7836:6;7828;7821:22;7780:2;7877;7864:16;7900:60;7916:43;7956:2;7916:43;:::i;7900:60::-;7982:3;8006:2;8001:3;7994:15;8034:2;8029:3;8025:12;8018:19;;8065:2;8061;8057:11;8113:7;8108:2;8102;8099:1;8095:10;8091:2;8087:19;8083:28;8080:41;8077:2;;;8139:6;8131;8124:22;8077:2;8166:6;8181:1022;8195:2;8192:1;8189:9;8181:1022;;;8272:3;8259:17;8308:2;8295:11;8292:19;8289:2;;;8329:6;8321;8314:22;8289:2;8361:20;;8433:4;8405:16;;;-1:-1:-1;;8401:30:1;8397:41;8394:2;;;8456:6;8448;8441:22;8394:2;8491:22;;:::i;:::-;8563:2;8559;8555:11;8542:25;8596:2;8586:8;8583:16;8580:2;;;8617:6;8609;8602:22;8580:2;8653:65;8710:7;8705:2;8694:8;8690:2;8686:17;8682:26;8653:65;:::i;:::-;8646:5;8639:80;;8742:2;8794;8790;8786:11;8773:25;8827:2;8817:8;8814:16;8811:2;;;8848:6;8840;8833:22;8811:2;8893:53;8938:7;8933:2;8922:8;8918:2;8914:17;8910:26;8893:53;:::i;:::-;8877:14;;;8870:77;-1:-1:-1;8970:2:1;9021:11;;;9008:25;8992:14;;;8985:49;;;;9091:4;9083:13;;;9070:27;9054:14;;;9047:51;;;;9111:18;;9149:12;;;;9181;;;;8213:1;8206:9;8181:1022;;;-1:-1:-1;9222:5:1;;7501:1732;-1:-1:-1;;;;;;;;;7501:1732:1:o;9238:412::-;9353:6;9406:2;9394:9;9385:7;9381:23;9377:32;9374:2;;;9427:6;9419;9412:22;9374:2;9472:9;9459:23;9505:18;9497:6;9494:30;9491:2;;;9542:6;9534;9527:22;9491:2;9570:74;9636:7;9627:6;9616:9;9612:22;9570:74;:::i;9655:255::-;9722:6;9775:2;9763:9;9754:7;9750:23;9746:32;9743:2;;;9796:6;9788;9781:22;9743:2;9833:9;9827:16;9852:28;9874:5;9852:28;:::i;9915:190::-;9974:6;10027:2;10015:9;10006:7;10002:23;9998:32;9995:2;;;10048:6;10040;10033:22;9995:2;-1:-1:-1;10076:23:1;;9985:120;-1:-1:-1;9985:120:1:o;10110:194::-;10180:6;10233:2;10221:9;10212:7;10208:23;10204:32;10201:2;;;10254:6;10246;10239:22;10201:2;-1:-1:-1;10282:16:1;;10191:113;-1:-1:-1;10191:113:1:o;10309:480::-;10433:6;10441;10494:2;10482:9;10473:7;10469:23;10465:32;10462:2;;;10515:6;10507;10500:22;10462:2;10556:9;10543:23;10533:33;;10617:2;10606:9;10602:18;10589:32;10644:18;10636:6;10633:30;10630:2;;;10681:6;10673;10666:22;10630:2;10709:74;10775:7;10766:6;10755:9;10751:22;10709:74;:::i;:::-;10699:84;;;10452:337;;;;;:::o;10794:387::-;10868:6;10876;10884;10937:2;10925:9;10916:7;10912:23;10908:32;10905:2;;;10958:6;10950;10943:22;10905:2;10999:9;10986:23;10976:33;;11056:2;11045:9;11041:18;11028:32;11018:42;;11110:2;11099:9;11095:18;11082:32;11123:28;11145:5;11123:28;:::i;:::-;11170:5;11160:15;;;10895:286;;;;;:::o;11186:293::-;11254:6;11307:2;11295:9;11286:7;11282:23;11278:32;11275:2;;;11328:6;11320;11313:22;11275:2;11365:9;11359:16;11415:4;11408:5;11404:16;11397:5;11394:27;11384:2;;11440:6;11432;11425:22;11484:463;11537:3;11575:5;11569:12;11602:6;11597:3;11590:19;11628:4;11657:2;11652:3;11648:12;11641:19;;11694:2;11687:5;11683:14;11715:3;11727:195;11741:6;11738:1;11735:13;11727:195;;;11806:13;;-1:-1:-1;;;;;11802:39:1;11790:52;;11862:12;;;;11897:15;;;;11838:1;11756:9;11727:195;;;-1:-1:-1;11938:3:1;;11545:402;-1:-1:-1;;;;;11545:402:1:o;11952:257::-;11993:3;12031:5;12025:12;12058:6;12053:3;12046:19;12074:63;12130:6;12123:4;12118:3;12114:14;12107:4;12100:5;12096:16;12074:63;:::i;:::-;12191:2;12170:15;-1:-1:-1;;12166:29:1;12157:39;;;;12198:4;12153:50;;12001:208;-1:-1:-1;;12001:208:1:o;14382:261::-;14561:2;14550:9;14543:21;14524:4;14581:56;14633:2;14622:9;14618:18;14610:6;14581:56;:::i;14648:429::-;14881:2;14870:9;14863:21;14844:4;14907:56;14959:2;14948:9;14944:18;14936:6;14907:56;:::i;:::-;15011:9;15003:6;14999:22;14994:2;14983:9;14979:18;14972:50;15039:32;15064:6;15056;15039:32;:::i;:::-;15031:40;14853:224;-1:-1:-1;;;;;14853:224:1:o;15082:340::-;15297:2;15286:9;15279:21;15260:4;15317:56;15369:2;15358:9;15354:18;15346:6;15317:56;:::i;:::-;15309:64;;15409:6;15404:2;15393:9;15389:18;15382:34;15269:153;;;;;:::o;15427:797::-;15602:4;15650:2;15639:9;15635:18;15680:2;15669:9;15662:21;15703:6;15738;15732:13;15769:6;15761;15754:22;15807:2;15796:9;15792:18;15785:25;;15832:6;15826:4;15819:20;15858:4;15848:14;;15901:2;15895:4;15885:19;15922:4;15935:194;15949:6;15946:1;15943:13;15935:194;;;16014:13;;-1:-1:-1;;;;;16010:39:1;15998:52;;16070:12;;;;16046:1;16105:14;;;;15964:9;15935:194;;;-1:-1:-1;;;;;;;;16185:32:1;;;;16165:18;;16158:60;;;;-1:-1:-1;16146:3:1;15611:613;-1:-1:-1;15611:613:1:o;16229:1877::-;16441:4;16470:2;16510;16499:9;16495:18;16540:2;16529:9;16522:21;16563:6;16598;16592:13;16629:6;16621;16614:22;16655:2;16645:12;;16688:2;16677:9;16673:18;16666:25;;16750:2;16740:6;16737:1;16733:14;16722:9;16718:30;16714:39;16788:2;16780:6;16776:15;16809:4;16822:1255;16836:6;16833:1;16830:13;16822:1255;;;16901:22;;;-1:-1:-1;;16897:36:1;16885:49;;16957:13;;17029:9;;-1:-1:-1;;;;;17025:35:1;17010:51;;17104:11;;;17098:18;17081:15;;;17074:43;17160:11;;;17154:18;17137:15;;;17130:43;17196:4;17239:11;;;17233:18;16993:4;17271:15;;;17264:27;;;16993:4;17196;17318:59;17361:15;;;17233:18;17318:59;:::i;:::-;17304:73;;;;17400:4;17453:2;17449;17445:11;17439:18;17506:6;17498;17494:19;17489:2;17481:6;17477:15;17470:44;17541:52;17586:6;17570:14;17541:52;:::i;:::-;17527:66;;;;17616:4;17669:2;17665;17661:11;17655:18;17722:6;17714;17710:19;17705:2;17697:6;17693:15;17686:44;17757:40;17790:6;17774:14;17757:40;:::i;:::-;17743:54;;;;17820:4;17873:2;17869;17865:11;17859:18;17837:40;;17926:6;17918;17914:19;17909:2;17901:6;17897:15;17890:44;;17957:40;17990:6;17974:14;17957:40;:::i;:::-;18055:12;;;;17947:50;-1:-1:-1;;;18020:15:1;;;;16858:1;16851:9;16822:1255;;;-1:-1:-1;18094:6:1;;16450:1656;-1:-1:-1;;;;;;;;16450:1656:1:o;18303:225::-;18458:2;18447:9;18440:21;18421:4;18478:44;18518:2;18507:9;18503:18;18495:6;18478:44;:::i;18533:296::-;18716:2;18705:9;18698:21;18679:4;18736:44;18776:2;18765:9;18761:18;18753:6;18736:44;:::i;23780:652::-;23977:2;23966:9;23959:21;23940:4;24015:6;24009:13;24058:4;24053:2;24042:9;24038:18;24031:32;24086:51;24132:3;24121:9;24117:19;24103:12;24086:51;:::i;:::-;24072:65;;24218:1;24214;24209:3;24205:11;24201:19;24195:2;24187:6;24183:15;24177:22;24173:48;24168:2;24157:9;24153:18;24146:76;24276:2;24268:6;24264:15;24258:22;24253:2;24242:9;24238:18;24231:50;24336:2;24328:6;24324:15;24318:22;24312:3;24301:9;24297:19;24290:51;24397:3;24389:6;24385:16;24379:23;24372:4;24361:9;24357:20;24350:53;24420:6;24412:14;;;23949:483;;;;:::o;25131:574::-;25422:6;25411:9;25404:25;25465:6;25460:2;25449:9;25445:18;25438:34;25508:3;25503:2;25492:9;25488:18;25481:31;25385:4;25529:57;25581:3;25570:9;25566:19;25558:6;25529:57;:::i;:::-;-1:-1:-1;;;;;25622:32:1;;;;25617:2;25602:18;;25595:60;-1:-1:-1;25686:3:1;25671:19;25664:35;25521:65;25394:311;-1:-1:-1;;;25394:311:1:o;25899:253::-;25971:2;25965:9;26013:4;26001:17;;26048:18;26033:34;;26069:22;;;26030:62;26027:2;;;26095:18;;:::i;:::-;26131:2;26124:22;25945:207;:::o;26157:253::-;26229:2;26223:9;26271:4;26259:17;;26306:18;26291:34;;26327:22;;;26288:62;26285:2;;;26353:18;;:::i;26415:275::-;26486:2;26480:9;26551:2;26532:13;;-1:-1:-1;;26528:27:1;26516:40;;26586:18;26571:34;;26607:22;;;26568:62;26565:2;;;26633:18;;:::i;:::-;26669:2;26662:22;26460:230;;-1:-1:-1;26460:230:1:o;26695:183::-;26755:4;26788:18;26780:6;26777:30;26774:2;;;26810:18;;:::i;:::-;-1:-1:-1;26855:1:1;26851:14;26867:4;26847:25;;26764:114::o;26883:186::-;26931:4;26964:18;26956:6;26953:30;26950:2;;;26986:18;;:::i;:::-;-1:-1:-1;27052:2:1;27031:15;-1:-1:-1;;27027:29:1;27058:4;27023:40;;26940:129::o;27074:128::-;27114:3;27145:1;27141:6;27138:1;27135:13;27132:2;;;27151:18;;:::i;:::-;-1:-1:-1;27187:9:1;;27122:80::o;27207:217::-;27247:1;27273;27263:2;;-1:-1:-1;;;27298:31:1;;27352:4;27349:1;27342:15;27380:4;27305:1;27370:15;27263:2;-1:-1:-1;27409:9:1;;27253:171::o;27429:422::-;27518:1;27561:5;27518:1;27575:270;27596:7;27586:8;27583:21;27575:270;;;27655:4;27651:1;27647:6;27643:17;27637:4;27634:27;27631:2;;;27664:18;;:::i;:::-;27714:7;27704:8;27700:22;27697:2;;;27734:16;;;;27697:2;27813:22;;;;27773:15;;;;27575:270;;;27579:3;27493:358;;;;;:::o;27856:140::-;27914:5;27943:47;27984:4;27974:8;27970:19;27964:4;28050:5;28080:8;28070:2;;-1:-1:-1;28121:1:1;28135:5;;28070:2;28169:4;28159:2;;-1:-1:-1;28206:1:1;28220:5;;28159:2;28251:4;28269:1;28264:59;;;;28337:1;28332:130;;;;28244:218;;28264:59;28294:1;28285:10;;28308:5;;;28332:130;28369:3;28359:8;28356:17;28353:2;;;28376:18;;:::i;:::-;-1:-1:-1;;28432:1:1;28418:16;;28447:5;;28244:218;;28546:2;28536:8;28533:16;28527:3;28521:4;28518:13;28514:36;28508:2;28498:8;28495:16;28490:2;28484:4;28481:12;28477:35;28474:77;28471:2;;;-1:-1:-1;28583:19:1;;;28615:5;;28471:2;28662:34;28687:8;28681:4;28662:34;:::i;:::-;28732:6;28728:1;28724:6;28720:19;28711:7;28708:32;28705:2;;;28743:18;;:::i;:::-;28781:20;;28060:747;-1:-1:-1;;;28060:747:1:o;28812:168::-;28852:7;28918:1;28914;28910:6;28906:14;28903:1;28900:21;28895:1;28888:9;28881:17;28877:45;28874:2;;;28925:18;;:::i;:::-;-1:-1:-1;28965:9:1;;28864:116::o;28985:125::-;29025:4;29053:1;29050;29047:8;29044:2;;;29058:18;;:::i;:::-;-1:-1:-1;29095:9:1;;29034:76::o;29115:195::-;29153:4;29190;29187:1;29183:12;29222:4;29219:1;29215:12;29247:3;29242;29239:12;29236:2;;;29254:18;;:::i;:::-;29291:13;;;29162:148;-1:-1:-1;;;29162:148:1:o;29315:258::-;29387:1;29397:113;29411:6;29408:1;29405:13;29397:113;;;29487:11;;;29481:18;29468:11;;;29461:39;29433:2;29426:10;29397:113;;;29528:6;29525:1;29522:13;29519:2;;;-1:-1:-1;;29563:1:1;29545:16;;29538:27;29368:205::o;29578:136::-;29617:3;29645:5;29635:2;;29654:18;;:::i;:::-;-1:-1:-1;;;29690:18:1;;29625:89::o;29719:380::-;29798:1;29794:12;;;;29841;;;29862:2;;29916:4;29908:6;29904:17;29894:27;;29862:2;29969;29961:6;29958:14;29938:18;29935:38;29932:2;;;30015:10;30010:3;30006:20;30003:1;29996:31;30050:4;30047:1;30040:15;30078:4;30075:1;30068:15;29932:2;;29774:325;;;:::o;30104:135::-;30143:3;-1:-1:-1;;30164:17:1;;30161:2;;;30184:18;;:::i;:::-;-1:-1:-1;30231:1:1;30220:13;;30151:88::o;30244:127::-;30305:10;30300:3;30296:20;30293:1;30286:31;30336:4;30333:1;30326:15;30360:4;30357:1;30350:15;30376:127;30437:10;30432:3;30428:20;30425:1;30418:31;30468:4;30465:1;30458:15;30492:4;30489:1;30482:15;30508:131;-1:-1:-1;;;;;30583:31:1;;30573:42;;30563:2;;30629:1;30626;30619:12;30644:118;30730:5;30723:13;30716:21;30709:5;30706:32;30696:2;;30752:1;30749;30742:12
Swarm Source
ipfs://5367f5c5d4f6e314af60b6348391d27a8eea1b91524206a031151b37618831bf
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.