Feature Tip: Add private address tag to any address under My Name Tag !
More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 241 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Withdraw Liquidi... | 13449375 | 1162 days ago | IN | 0 ETH | 0.0338801 | ||||
Withdraw Liquidi... | 13056656 | 1223 days ago | IN | 0 ETH | 0.0158562 | ||||
Withdraw Liquidi... | 12959204 | 1238 days ago | IN | 0 ETH | 0.01627139 | ||||
Withdraw Liquidi... | 12915738 | 1245 days ago | IN | 0 ETH | 0.01238041 | ||||
Withdraw Liquidi... | 12886813 | 1249 days ago | IN | 0 ETH | 0.00424848 | ||||
Withdraw Liquidi... | 12883019 | 1250 days ago | IN | 0 ETH | 0.00566464 | ||||
Withdraw Liquidi... | 12874893 | 1251 days ago | IN | 0 ETH | 0.00559692 | ||||
Withdraw Liquidi... | 12874891 | 1251 days ago | IN | 0 ETH | 0.0071788 | ||||
Withdraw Liquidi... | 12850435 | 1255 days ago | IN | 0 ETH | 0.00505683 | ||||
Withdraw Liquidi... | 12844995 | 1256 days ago | IN | 0 ETH | 0.00638888 | ||||
Withdraw Liquidi... | 12844603 | 1256 days ago | IN | 0 ETH | 0.00778888 | ||||
Withdraw Liquidi... | 12843995 | 1256 days ago | IN | 0 ETH | 0.00955908 | ||||
Withdraw Liquidi... | 12843454 | 1256 days ago | IN | 0 ETH | 0.00592397 | ||||
Withdraw Liquidi... | 12843183 | 1256 days ago | IN | 0 ETH | 0.01168332 | ||||
Withdraw Liquidi... | 12842311 | 1256 days ago | IN | 0 ETH | 0.00751273 | ||||
Withdraw Liquidi... | 12840176 | 1257 days ago | IN | 0 ETH | 0.01309948 | ||||
Withdraw Liquidi... | 12838230 | 1257 days ago | IN | 0 ETH | 0.01478574 | ||||
Withdraw Liquidi... | 12836033 | 1257 days ago | IN | 0 ETH | 0.00725124 | ||||
Withdraw Liquidi... | 12835769 | 1257 days ago | IN | 0 ETH | 0.00683056 | ||||
Withdraw Liquidi... | 12831134 | 1258 days ago | IN | 0 ETH | 0.01380756 | ||||
Withdraw Liquidi... | 12831038 | 1258 days ago | IN | 0 ETH | 0.01269121 | ||||
Withdraw Liquidi... | 12830741 | 1258 days ago | IN | 0 ETH | 0.01266199 | ||||
Withdraw Liquidi... | 12830617 | 1258 days ago | IN | 0 ETH | 0.01024023 | ||||
Withdraw Liquidi... | 12830475 | 1258 days ago | IN | 0 ETH | 0.01379704 | ||||
Withdraw Liquidi... | 12830473 | 1258 days ago | IN | 0 ETH | 0.01076306 |
Latest 25 internal transactions (View All)
Advanced mode:
Parent Transaction Hash | Block |
From
|
To
|
|||
---|---|---|---|---|---|---|
13449375 | 1162 days ago | 0.059364 ETH | ||||
13449375 | 1162 days ago | 0.059364 ETH | ||||
13056656 | 1223 days ago | 0.81828821 ETH | ||||
13056656 | 1223 days ago | 0.81828821 ETH | ||||
12959204 | 1238 days ago | 0.02080894 ETH | ||||
12959204 | 1238 days ago | 0.02080894 ETH | ||||
12915738 | 1245 days ago | 0.1538618 ETH | ||||
12915738 | 1245 days ago | 0.1538618 ETH | ||||
12886813 | 1249 days ago | 2.59467559 ETH | ||||
12886813 | 1249 days ago | 2.59467559 ETH | ||||
12883019 | 1250 days ago | 4.99201209 ETH | ||||
12883019 | 1250 days ago | 4.99201209 ETH | ||||
12874893 | 1251 days ago | 5.68483678 ETH | ||||
12874893 | 1251 days ago | 5.68483678 ETH | ||||
12874891 | 1251 days ago | 3.36384264 ETH | ||||
12874891 | 1251 days ago | 3.36384264 ETH | ||||
12850435 | 1255 days ago | 0.08013855 ETH | ||||
12850435 | 1255 days ago | 0.08013855 ETH | ||||
12844995 | 1256 days ago | 0.26834938 ETH | ||||
12844995 | 1256 days ago | 0.26834938 ETH | ||||
12844603 | 1256 days ago | 4.43969836 ETH | ||||
12844603 | 1256 days ago | 4.43969836 ETH | ||||
12843995 | 1256 days ago | 0.6939914 ETH | ||||
12843995 | 1256 days ago | 0.6939914 ETH | ||||
12843454 | 1256 days ago | 0.61178825 ETH |
Loading...
Loading
Similar Match Source Code This contract matches the deployed Bytecode of the Source Code for Contract 0xe189714A...A15513d12 The constructor portion of the code might be different and could alter the actual behaviour of the contract
Contract Name:
FarmMain
Compiler Version
v0.7.6+commit.7338295f
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2021-06-23 */ // File: contracts\farming\FarmData.sol //SPDX-License-Identifier: MIT pragma solidity ^0.7.6; struct FarmingPositionRequest { uint256 setupIndex; // index of the chosen setup. uint256 amount0; // amount of main token or liquidity pool token. uint256 amount1; // amount of other token or liquidity pool token. Needed for gen2 address positionOwner; // position extension or address(0) [msg.sender]. } struct FarmingSetupConfiguration { bool add; // true if we're adding a new setup, false we're updating it. bool disable; uint256 index; // index of the setup we're updating. FarmingSetupInfo info; // data of the new or updated setup } struct FarmingSetupInfo { uint256 blockDuration; // duration of setup uint256 startBlock; // optional start block used for the delayed activation of the first setup uint256 originalRewardPerBlock; uint256 minStakeable; // minimum amount of staking tokens. uint256 renewTimes; // if the setup is renewable or if it's one time. address liquidityPoolTokenAddress; // address of the liquidity pool token address mainTokenAddress; // eg. buidl address. bool involvingETH; // if the setup involves ETH or not. uint256 setupsCount; // number of setups created by this info. uint256 lastSetupIndex; // index of last setup; int24 tickLower; // Gen2 Only - tickLower of the UniswapV3 pool int24 tickUpper; // Gen 2 Only - tickUpper of the UniswapV3 pool } struct FarmingSetup { uint256 infoIndex; // setup info bool active; // if the setup is active or not. uint256 startBlock; // farming setup start block. uint256 endBlock; // farming setup end block. uint256 lastUpdateBlock; // number of the block where an update was triggered. uint256 objectId; // need for gen2. uniswapV3 NFT position Id uint256 rewardPerBlock; // farming setup reward per single block. uint128 totalSupply; // Total LP token liquidity of all the positions of this setup } struct FarmingPosition { address uniqueOwner; // address representing the owner of the position. uint256 setupIndex; // the setup index related to this position. uint256 creationBlock; // block when this position was created. uint128 liquidityPoolTokenAmount; // amount of liquidity pool token in the position. uint256 reward; // position reward. } // File: contracts\farming\IFarmMain.sol //SPDX_License_Identifier: MIT pragma solidity ^0.7.6; pragma abicoder v2; interface IFarmMain { function ONE_HUNDRED() external view returns(uint256); function _rewardTokenAddress() external view returns(address); function position(uint256 positionId) external view returns (FarmingPosition memory); function setups() external view returns (FarmingSetup[] memory); function setup(uint256 setupIndex) external view returns (FarmingSetup memory, FarmingSetupInfo memory); function setFarmingSetups(FarmingSetupConfiguration[] memory farmingSetups) external; function openPosition(FarmingPositionRequest calldata request) external payable returns(uint256 positionId); function addLiquidity(uint256 positionId, FarmingPositionRequest calldata request) external payable; } // File: contracts\farming\IFarmExtension.sol //SPDX_License_Identifier: MIT pragma solidity ^0.7.6; //pragma abicoder v2; interface IFarmExtension { function init(bool byMint, address host, address treasury) external; function setHost(address host) external; function setTreasury(address treasury) external; function data() external view returns(address farmMainContract, bool byMint, address host, address treasury, address rewardTokenAddress); function transferTo(uint256 amount) external; function backToYou(uint256 amount) external payable; function setFarmingSetups(FarmingSetupConfiguration[] memory farmingSetups) external; } // File: contracts\farming\IFarmFactory.sol //SPDX_License_Identifier: MIT pragma solidity ^0.7.6; interface IFarmFactory { event ExtensionCloned(address indexed); function feePercentageInfo() external view returns (uint256, address); function farmDefaultExtension() external view returns(address); function cloneFarmDefaultExtension() external returns(address); function getFarmTokenCollectionURI() external view returns (string memory); function getFarmTokenURI() external view returns (string memory); } // File: contracts\farming\util\IERC20.sol // SPDX_License_Identifier: MIT pragma solidity ^0.7.6; interface IERC20 { function totalSupply() external view returns (uint256); function balanceOf(address account) external view returns (uint256); function transfer(address recipient, uint256 amount) external returns (bool); function allowance(address owner, address spender) external view returns (uint256); function approve(address spender, uint256 amount) external returns (bool); function safeApprove(address spender, uint256 amount) external; function transferFrom(address sender, address recipient, uint256 amount) external returns (bool); function decimals() external view returns (uint8); } // File: node_modules\@uniswap\v3-core\contracts\interfaces\pool\IUniswapV3PoolImmutables.sol // SPDX_License_Identifier: GPL-2.0-or-later 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: node_modules\@uniswap\v3-core\contracts\interfaces\pool\IUniswapV3PoolState.sol // SPDX_License_Identifier: GPL-2.0-or-later 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: node_modules\@uniswap\v3-core\contracts\interfaces\pool\IUniswapV3PoolDerivedState.sol // SPDX_License_Identifier: GPL-2.0-or-later 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: node_modules\@uniswap\v3-core\contracts\interfaces\pool\IUniswapV3PoolActions.sol // SPDX_License_Identifier: GPL-2.0-or-later 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: node_modules\@uniswap\v3-core\contracts\interfaces\pool\IUniswapV3PoolOwnerActions.sol // SPDX_License_Identifier: GPL-2.0-or-later 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: node_modules\@uniswap\v3-core\contracts\interfaces\pool\IUniswapV3PoolEvents.sol // SPDX_License_Identifier: GPL-2.0-or-later 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\IUniswapV3Pool.sol // SPDX_License_Identifier: GPL-2.0-or-later 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 // SPDX_License_Identifier: GPL-2.0-or-later pragma solidity >=0.5.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 { /// @dev The minimum tick that may be passed to #getSqrtRatioAtTick computed from log base 1.0001 of 2**-128 int24 internal constant MIN_TICK = -887272; /// @dev The maximum tick that may be passed to #getSqrtRatioAtTick computed from log base 1.0001 of 2**128 int24 internal constant MAX_TICK = -MIN_TICK; /// @dev The minimum value that can be returned from #getSqrtRatioAtTick. Equivalent to getSqrtRatioAtTick(MIN_TICK) uint160 internal constant MIN_SQRT_RATIO = 4295128739; /// @dev The maximum value that can be returned from #getSqrtRatioAtTick. Equivalent to getSqrtRatioAtTick(MAX_TICK) uint160 internal constant MAX_SQRT_RATIO = 1461446703485210103287273052203988822378723970342; /// @notice Calculates sqrt(1.0001^tick) * 2^96 /// @dev Throws if |tick| > max tick /// @param tick The input tick for the above formula /// @return sqrtPriceX96 A Fixed point Q64.96 number representing the sqrt of the ratio of the two assets (token1/token0) /// at the given tick function getSqrtRatioAtTick(int24 tick) internal pure returns (uint160 sqrtPriceX96) { uint256 absTick = tick < 0 ? uint256(-int256(tick)) : uint256(int256(tick)); require(absTick <= uint256(MAX_TICK), 'T'); uint256 ratio = absTick & 0x1 != 0 ? 0xfffcb933bd6fad37aa2d162d1a594001 : 0x100000000000000000000000000000000; if (absTick & 0x2 != 0) ratio = (ratio * 0xfff97272373d413259a46990580e213a) >> 128; if (absTick & 0x4 != 0) ratio = (ratio * 0xfff2e50f5f656932ef12357cf3c7fdcc) >> 128; if (absTick & 0x8 != 0) ratio = (ratio * 0xffe5caca7e10e4e61c3624eaa0941cd0) >> 128; if (absTick & 0x10 != 0) ratio = (ratio * 0xffcb9843d60f6159c9db58835c926644) >> 128; if (absTick & 0x20 != 0) ratio = (ratio * 0xff973b41fa98c081472e6896dfb254c0) >> 128; if (absTick & 0x40 != 0) ratio = (ratio * 0xff2ea16466c96a3843ec78b326b52861) >> 128; if (absTick & 0x80 != 0) ratio = (ratio * 0xfe5dee046a99a2a811c461f1969c3053) >> 128; if (absTick & 0x100 != 0) ratio = (ratio * 0xfcbe86c7900a88aedcffc83b479aa3a4) >> 128; if (absTick & 0x200 != 0) ratio = (ratio * 0xf987a7253ac413176f2b074cf7815e54) >> 128; if (absTick & 0x400 != 0) ratio = (ratio * 0xf3392b0822b70005940c7a398e4b70f3) >> 128; if (absTick & 0x800 != 0) ratio = (ratio * 0xe7159475a2c29b7443b29c7fa6e889d9) >> 128; if (absTick & 0x1000 != 0) ratio = (ratio * 0xd097f3bdfd2022b8845ad8f792aa5825) >> 128; if (absTick & 0x2000 != 0) ratio = (ratio * 0xa9f746462d870fdf8a65dc1f90e061e5) >> 128; if (absTick & 0x4000 != 0) ratio = (ratio * 0x70d869a156d2a1b890bb3df62baf32f7) >> 128; if (absTick & 0x8000 != 0) ratio = (ratio * 0x31be135f97d08fd981231505542fcfa6) >> 128; if (absTick & 0x10000 != 0) ratio = (ratio * 0x9aa508b5b7a84e1c677de54f3e99bc9) >> 128; if (absTick & 0x20000 != 0) ratio = (ratio * 0x5d6af8dedb81196699c329225ee604) >> 128; if (absTick & 0x40000 != 0) ratio = (ratio * 0x2216e584f5fa1ea926041bedfe98) >> 128; if (absTick & 0x80000 != 0) ratio = (ratio * 0x48a170391f7dc42444e8fa2) >> 128; if (tick > 0) ratio = type(uint256).max / ratio; // this divides by 1<<32 rounding up to go from a Q128.128 to a Q128.96. // we then downcast because we know the result always fits within 160 bits due to our tick input constraint // we round up in the division so getTickAtSqrtRatio of the output price is always consistent sqrtPriceX96 = uint160((ratio >> 32) + (ratio % (1 << 32) == 0 ? 0 : 1)); } /// @notice Calculates the greatest tick value such that getRatioAtTick(tick) <= ratio /// @dev Throws in case sqrtPriceX96 < MIN_SQRT_RATIO, as MIN_SQRT_RATIO is the lowest value getRatioAtTick may /// ever return. /// @param sqrtPriceX96 The sqrt ratio for which to compute the tick as a Q64.96 /// @return tick The greatest tick for which the ratio is less than or equal to the input ratio function getTickAtSqrtRatio(uint160 sqrtPriceX96) internal pure returns (int24 tick) { // second inequality must be < because the price can never reach the price at the max tick require(sqrtPriceX96 >= MIN_SQRT_RATIO && sqrtPriceX96 < MAX_SQRT_RATIO, 'R'); uint256 ratio = uint256(sqrtPriceX96) << 32; uint256 r = ratio; uint256 msb = 0; assembly { let f := shl(7, gt(r, 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF)) msb := or(msb, f) r := shr(f, r) } assembly { let f := shl(6, gt(r, 0xFFFFFFFFFFFFFFFF)) msb := or(msb, f) r := shr(f, r) } assembly { let f := shl(5, gt(r, 0xFFFFFFFF)) msb := or(msb, f) r := shr(f, r) } assembly { let f := shl(4, gt(r, 0xFFFF)) msb := or(msb, f) r := shr(f, r) } assembly { let f := shl(3, gt(r, 0xFF)) msb := or(msb, f) r := shr(f, r) } assembly { let f := shl(2, gt(r, 0xF)) msb := or(msb, f) r := shr(f, r) } assembly { let f := shl(1, gt(r, 0x3)) msb := or(msb, f) r := shr(f, r) } assembly { let f := gt(r, 0x1) msb := or(msb, f) } if (msb >= 128) r = ratio >> (msb - 127); else r = ratio << (127 - msb); int256 log_2 = (int256(msb) - 128) << 64; assembly { r := shr(127, mul(r, r)) let f := shr(128, r) log_2 := or(log_2, shl(63, f)) r := shr(f, r) } assembly { r := shr(127, mul(r, r)) let f := shr(128, r) log_2 := or(log_2, shl(62, f)) r := shr(f, r) } assembly { r := shr(127, mul(r, r)) let f := shr(128, r) log_2 := or(log_2, shl(61, f)) r := shr(f, r) } assembly { r := shr(127, mul(r, r)) let f := shr(128, r) log_2 := or(log_2, shl(60, f)) r := shr(f, r) } assembly { r := shr(127, mul(r, r)) let f := shr(128, r) log_2 := or(log_2, shl(59, f)) r := shr(f, r) } assembly { r := shr(127, mul(r, r)) let f := shr(128, r) log_2 := or(log_2, shl(58, f)) r := shr(f, r) } assembly { r := shr(127, mul(r, r)) let f := shr(128, r) log_2 := or(log_2, shl(57, f)) r := shr(f, r) } assembly { r := shr(127, mul(r, r)) let f := shr(128, r) log_2 := or(log_2, shl(56, f)) r := shr(f, r) } assembly { r := shr(127, mul(r, r)) let f := shr(128, r) log_2 := or(log_2, shl(55, f)) r := shr(f, r) } assembly { r := shr(127, mul(r, r)) let f := shr(128, r) log_2 := or(log_2, shl(54, f)) r := shr(f, r) } assembly { r := shr(127, mul(r, r)) let f := shr(128, r) log_2 := or(log_2, shl(53, f)) r := shr(f, r) } assembly { r := shr(127, mul(r, r)) let f := shr(128, r) log_2 := or(log_2, shl(52, f)) r := shr(f, r) } assembly { r := shr(127, mul(r, r)) let f := shr(128, r) log_2 := or(log_2, shl(51, f)) r := shr(f, r) } assembly { r := shr(127, mul(r, r)) let f := shr(128, r) log_2 := or(log_2, shl(50, f)) } int256 log_sqrt10001 = log_2 * 255738958999603826347141; // 128.128 number int24 tickLow = int24((log_sqrt10001 - 3402992956809132418596140100660247210) >> 128); int24 tickHi = int24((log_sqrt10001 + 291339464771989622907027621153398088495) >> 128); tick = tickLow == tickHi ? tickLow : getSqrtRatioAtTick(tickHi) <= sqrtPriceX96 ? tickHi : tickLow; } } // File: node_modules\@openzeppelin\contracts\introspection\IERC165.sol // SPDX_License_Identifier: MIT pragma solidity ^0.7.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); } // File: node_modules\@openzeppelin\contracts\token\ERC721\IERC721.sol // SPDX_License_Identifier: MIT pragma solidity ^0.7.0; /** * @dev Required interface of an ERC721 compliant contract. */ interface IERC721 is IERC165 { /** * @dev Emitted when `tokenId` token is transferred from `from` to `to`. */ event Transfer(address indexed from, address indexed to, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token. */ event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId); /** * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets. */ event ApprovalForAll(address indexed owner, address indexed operator, bool approved); /** * @dev Returns the number of tokens in ``owner``'s account. */ function balanceOf(address owner) external view returns (uint256 balance); /** * @dev Returns the owner of the `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function ownerOf(uint256 tokenId) external view returns (address owner); /** * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients * are aware of the ERC721 protocol to prevent tokens from being forever locked. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom(address from, address to, uint256 tokenId) external; /** * @dev Transfers `tokenId` token from `from` to `to`. * * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * * Emits a {Transfer} event. */ function transferFrom(address from, address to, uint256 tokenId) external; /** * @dev Gives permission to `to` to transfer `tokenId` token to another account. * The approval is cleared when the token is transferred. * * Only a single account can be approved at a time, so approving the zero address clears previous approvals. * * Requirements: * * - The caller must own the token or be an approved operator. * - `tokenId` must exist. * * Emits an {Approval} event. */ function approve(address to, uint256 tokenId) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Approve or remove `operator` as an operator for the caller. * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. * * Requirements: * * - The `operator` cannot be the caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool _approved) external; /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); /** * @dev Safely transfers `tokenId` token from `from` to `to`. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `tokenId` token must exist and be owned by `from`. * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. * * Emits a {Transfer} event. */ function safeTransferFrom(address from, address to, uint256 tokenId, bytes calldata data) external; } // File: @openzeppelin\contracts\token\ERC721\IERC721Metadata.sol // SPDX_License_Identifier: MIT pragma solidity ^0.7.0; /** * @title ERC-721 Non-Fungible Token Standard, optional metadata extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Metadata is IERC721 { /** * @dev Returns the token collection name. */ function name() external view returns (string memory); /** * @dev Returns the token collection symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token. */ function tokenURI(uint256 tokenId) external view returns (string memory); } // File: @openzeppelin\contracts\token\ERC721\IERC721Enumerable.sol // SPDX_License_Identifier: MIT pragma solidity ^0.7.0; /** * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension * @dev See https://eips.ethereum.org/EIPS/eip-721 */ interface IERC721Enumerable is IERC721 { /** * @dev Returns the total amount of tokens stored by the contract. */ function totalSupply() external view returns (uint256); /** * @dev Returns a token ID owned by `owner` at a given `index` of its token list. * Use along with {balanceOf} to enumerate all of ``owner``'s tokens. */ function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256 tokenId); /** * @dev Returns a token ID at a given `index` of all the tokens stored by the contract. * Use along with {totalSupply} to enumerate all tokens. */ function tokenByIndex(uint256 index) external view returns (uint256); } // File: node_modules\@uniswap\v3-periphery\contracts\interfaces\IPoolInitializer.sol // SPDX_License_Identifier: GPL-2.0-or-later pragma solidity >=0.7.5; //pragma abicoder v2; /// @title Creates and initializes V3 Pools /// @notice Provides a method for creating and initializing a pool, if necessary, for bundling with other methods that /// require the pool to exist. interface IPoolInitializer { /// @notice Creates a new pool if it does not exist, then initializes if not initialized /// @dev This method can be bundled with others via IMulticall for the first action (e.g. mint) performed against a pool /// @param token0 The contract address of token0 of the pool /// @param token1 The contract address of token1 of the pool /// @param fee The fee amount of the v3 pool for the specified token pair /// @param sqrtPriceX96 The initial square root price of the pool as a Q64.96 value /// @return pool Returns the pool address based on the pair of tokens and fee, will return the newly created pool address if necessary function createAndInitializePoolIfNecessary( address token0, address token1, uint24 fee, uint160 sqrtPriceX96 ) external payable returns (address pool); } // File: node_modules\@uniswap\v3-periphery\contracts\interfaces\IERC721Permit.sol // SPDX_License_Identifier: GPL-2.0-or-later pragma solidity >=0.7.5; /// @title ERC721 with permit /// @notice Extension to ERC721 that includes a permit function for signature based approvals interface IERC721Permit is IERC721 { /// @notice The permit typehash used in the permit signature /// @return The typehash for the permit function PERMIT_TYPEHASH() external pure returns (bytes32); /// @notice The domain separator used in the permit signature /// @return The domain seperator used in encoding of permit signature function DOMAIN_SEPARATOR() external view returns (bytes32); /// @notice Approve of a specific token ID for spending by spender via signature /// @param spender The account that is being approved /// @param tokenId The ID of the token that is being approved for spending /// @param deadline The deadline timestamp by which the call must be mined for the approve to work /// @param v Must produce valid secp256k1 signature from the holder along with `r` and `s` /// @param r Must produce valid secp256k1 signature from the holder along with `v` and `s` /// @param s Must produce valid secp256k1 signature from the holder along with `r` and `v` function permit( address spender, uint256 tokenId, uint256 deadline, uint8 v, bytes32 r, bytes32 s ) external payable; } // File: node_modules\@uniswap\v3-periphery\contracts\interfaces\IPeripheryPayments.sol // SPDX_License_Identifier: GPL-2.0-or-later pragma solidity >=0.7.5; /// @title Periphery Payments /// @notice Functions to ease deposits and withdrawals of ETH interface IPeripheryPayments { /// @notice Unwraps the contract's WETH9 balance and sends it to recipient as ETH. /// @dev The amountMinimum parameter prevents malicious contracts from stealing WETH9 from users. /// @param amountMinimum The minimum amount of WETH9 to unwrap /// @param recipient The address receiving ETH function unwrapWETH9(uint256 amountMinimum, address recipient) external payable; /// @notice Refunds any ETH balance held by this contract to the `msg.sender` /// @dev Useful for bundling with mint or increase liquidity that uses ether, or exact output swaps /// that use ether for the input amount function refundETH() external payable; /// @notice Transfers the full amount of a token held by this contract to recipient /// @dev The amountMinimum parameter prevents malicious contracts from stealing the token from users /// @param token The contract address of the token which will be transferred to `recipient` /// @param amountMinimum The minimum amount of token required for a transfer /// @param recipient The destination address of the token function sweepToken( address token, uint256 amountMinimum, address recipient ) external payable; } // File: node_modules\@uniswap\v3-periphery\contracts\interfaces\IPeripheryImmutableState.sol // SPDX_License_Identifier: GPL-2.0-or-later pragma solidity >=0.5.0; /// @title Immutable state /// @notice Functions that return immutable state of the router interface IPeripheryImmutableState { /// @return Returns the address of the Uniswap V3 factory function factory() external view returns (address); /// @return Returns the address of WETH9 function WETH9() external view returns (address); } // File: node_modules\@uniswap\v3-periphery\contracts\libraries\PoolAddress.sol // SPDX_License_Identifier: GPL-2.0-or-later 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 = 0xe34f199b19b2b4f47f68442619d555527d244f78a3297ea89325f843f87b8b54; /// @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( uint256( keccak256( abi.encodePacked( hex'ff', factory, keccak256(abi.encode(key.token0, key.token1, key.fee)), POOL_INIT_CODE_HASH ) ) ) ); } } // File: @uniswap\v3-periphery\contracts\interfaces\INonfungiblePositionManager.sol // SPDX_License_Identifier: GPL-2.0-or-later pragma solidity >=0.7.5; //pragma abicoder v2; /// @title Non-fungible token for positions /// @notice Wraps Uniswap V3 positions in a non-fungible token interface which allows for them to be transferred /// and authorized. interface INonfungiblePositionManager is IPoolInitializer, IPeripheryPayments, IPeripheryImmutableState, IERC721Metadata, IERC721Enumerable, IERC721Permit { /// @notice Emitted when liquidity is increased for a position NFT /// @dev Also emitted when a token is minted /// @param tokenId The ID of the token for which liquidity was increased /// @param liquidity The amount by which liquidity for the NFT position was increased /// @param amount0 The amount of token0 that was paid for the increase in liquidity /// @param amount1 The amount of token1 that was paid for the increase in liquidity event IncreaseLiquidity(uint256 indexed tokenId, uint128 liquidity, uint256 amount0, uint256 amount1); /// @notice Emitted when liquidity is decreased for a position NFT /// @param tokenId The ID of the token for which liquidity was decreased /// @param liquidity The amount by which liquidity for the NFT position was decreased /// @param amount0 The amount of token0 that was accounted for the decrease in liquidity /// @param amount1 The amount of token1 that was accounted for the decrease in liquidity event DecreaseLiquidity(uint256 indexed tokenId, uint128 liquidity, uint256 amount0, uint256 amount1); /// @notice Emitted when tokens are collected for a position NFT /// @dev The amounts reported may not be exactly equivalent to the amounts transferred, due to rounding behavior /// @param tokenId The ID of the token for which underlying tokens were collected /// @param recipient The address of the account that received the collected tokens /// @param amount0 The amount of token0 owed to the position that was collected /// @param amount1 The amount of token1 owed to the position that was collected event Collect(uint256 indexed tokenId, address recipient, uint256 amount0, uint256 amount1); /// @notice Returns the position information associated with a given token ID. /// @dev Throws if the token ID is not valid. /// @param tokenId The ID of the token that represents the position /// @return nonce The nonce for permits /// @return operator The address that is approved for spending /// @return token0 The address of the token0 for a specific pool /// @return token1 The address of the token1 for a specific pool /// @return fee The fee associated with the pool /// @return tickLower The lower end of the tick range for the position /// @return tickUpper The higher end of the tick range for the position /// @return liquidity The liquidity of the position /// @return feeGrowthInside0LastX128 The fee growth of token0 as of the last action on the individual position /// @return feeGrowthInside1LastX128 The fee growth of token1 as of the last action on the individual position /// @return tokensOwed0 The uncollected amount of token0 owed to the position as of the last computation /// @return tokensOwed1 The uncollected amount of token1 owed to the position as of the last computation function positions(uint256 tokenId) external view returns ( uint96 nonce, address operator, address token0, address token1, uint24 fee, int24 tickLower, int24 tickUpper, uint128 liquidity, uint256 feeGrowthInside0LastX128, uint256 feeGrowthInside1LastX128, uint128 tokensOwed0, uint128 tokensOwed1 ); struct MintParams { address token0; address token1; uint24 fee; int24 tickLower; int24 tickUpper; uint256 amount0Desired; uint256 amount1Desired; uint256 amount0Min; uint256 amount1Min; address recipient; uint256 deadline; } /// @notice Creates a new position wrapped in a NFT /// @dev Call this when the pool does exist and is initialized. Note that if the pool is created but not initialized /// a method does not exist, i.e. the pool is assumed to be initialized. /// @param params The params necessary to mint a position, encoded as `MintParams` in calldata /// @return tokenId The ID of the token that represents the minted position /// @return liquidity The amount of liquidity for this position /// @return amount0 The amount of token0 /// @return amount1 The amount of token1 function mint(MintParams calldata params) external payable returns ( uint256 tokenId, uint128 liquidity, uint256 amount0, uint256 amount1 ); struct IncreaseLiquidityParams { uint256 tokenId; uint256 amount0Desired; uint256 amount1Desired; uint256 amount0Min; uint256 amount1Min; uint256 deadline; } /// @notice Increases the amount of liquidity in a position, with tokens paid by the `msg.sender` /// @param params tokenId The ID of the token for which liquidity is being increased, /// amount0Desired The desired amount of token0 to be spent, /// amount1Desired The desired amount of token1 to be spent, /// amount0Min The minimum amount of token0 to spend, which serves as a slippage check, /// amount1Min The minimum amount of token1 to spend, which serves as a slippage check, /// deadline The time by which the transaction must be included to effect the change /// @return liquidity The new liquidity amount as a result of the increase /// @return amount0 The amount of token0 to acheive resulting liquidity /// @return amount1 The amount of token1 to acheive resulting liquidity function increaseLiquidity(IncreaseLiquidityParams calldata params) external payable returns ( uint128 liquidity, uint256 amount0, uint256 amount1 ); struct DecreaseLiquidityParams { uint256 tokenId; uint128 liquidity; uint256 amount0Min; uint256 amount1Min; uint256 deadline; } /// @notice Decreases the amount of liquidity in a position and accounts it to the position /// @param params tokenId The ID of the token for which liquidity is being decreased, /// amount The amount by which liquidity will be decreased, /// amount0Min The minimum amount of token0 that should be accounted for the burned liquidity, /// amount1Min The minimum amount of token1 that should be accounted for the burned liquidity, /// deadline The time by which the transaction must be included to effect the change /// @return amount0 The amount of token0 accounted to the position's tokens owed /// @return amount1 The amount of token1 accounted to the position's tokens owed function decreaseLiquidity(DecreaseLiquidityParams calldata params) external payable returns (uint256 amount0, uint256 amount1); struct CollectParams { uint256 tokenId; address recipient; uint128 amount0Max; uint128 amount1Max; } /// @notice Collects up to a maximum amount of fees owed to a specific position to the recipient /// @param params tokenId The ID of the NFT for which tokens are being collected, /// recipient The account that should receive the tokens, /// amount0Max The maximum amount of token0 to collect, /// amount1Max The maximum amount of token1 to collect /// @return amount0 The amount of fees collected in token0 /// @return amount1 The amount of fees collected in token1 function collect(CollectParams calldata params) external payable returns (uint256 amount0, uint256 amount1); /// @notice Burns a token ID, which deletes it from the NFT contract. The token must have 0 liquidity and all tokens /// must be collected first. /// @param tokenId The ID of the token that is being burned function burn(uint256 tokenId) external payable; } // File: @uniswap\v3-periphery\contracts\interfaces\IMulticall.sol // SPDX_License_Identifier: GPL-2.0-or-later pragma solidity >=0.7.5; //pragma abicoder v2; /// @title Multicall interface /// @notice Enables calling multiple methods in a single call to the contract interface IMulticall { /// @notice Call multiple functions in the current contract and return the data from all of them if they all succeed /// @dev The `msg.value` should not be trusted for any method callable from multicall. /// @param data The encoded function data for each of the calls to make to this contract /// @return results The results from each of the calls passed in via data function multicall(bytes[] calldata data) external payable returns (bytes[] memory results); } // File: contracts\farming\FarmMain.sol //SPDX_License_Identifier: MIT pragma solidity ^0.7.6; //pragma abicoder v2; contract FarmMain is IFarmMain { // percentage uint256 public override constant ONE_HUNDRED = 1e18; // event that tracks contracts deployed for the given reward token event RewardToken(address indexed rewardTokenAddress); // new or transferred farming position event event Transfer(uint256 indexed positionId, address indexed from, address indexed to); // event that tracks involved tokens for this contract event SetupToken(address indexed mainToken, address indexed involvedToken); // factory address that will create clones of this contract address public _factory; // address of the extension of this contract address public _extension; // address of the reward token address public override _rewardTokenAddress; // address of the NonfungblePositionManager used for gen2 INonfungiblePositionManager public nonfungiblePositionManager; // mapping containing all the currently available farming setups info mapping(uint256 => FarmingSetupInfo) private _setupsInfo; // counter for the farming setup info uint256 public _farmingSetupsInfoCount; // mapping containing all the currently available farming setups mapping(uint256 => FarmingSetup) private _setups; // counter for the farming setups uint256 public _farmingSetupsCount; // mapping containing all the positions mapping(uint256 => FarmingPosition) private _positions; // mapping containing the reward per token per setup per block mapping(uint256 => uint256) private _rewardPerTokenPerSetup; // mapping containing the reward per token paid per position mapping(uint256 => uint256) private _rewardPerTokenPaid; // mapping containing all the number of opened positions for each setups mapping(uint256 => uint256) private _setupPositionsCount; // mapping containing all the reward received/paid per setup mapping(uint256 => uint256) public _rewardReceived; mapping(uint256 => uint256) public _rewardPaid; address private _WETH; /** Modifiers. */ /** @dev byExtension modifier used to check for unauthorized changes. */ modifier byExtension() { require(msg.sender == _extension, "Unauthorized"); _; } /** @dev byPositionOwner modifier used to check for unauthorized accesses. */ modifier byPositionOwner(uint256 positionId) { require(_positions[positionId].uniqueOwner == msg.sender && _positions[positionId].creationBlock != 0, "Not owned"); _; } /** @dev activeSetupOnly modifier used to check for function calls only if the setup is active. */ modifier activeSetupOnly(uint256 setupIndex) { require(_setups[setupIndex].active, "Setup not active"); require(_setups[setupIndex].startBlock <= block.number && _setups[setupIndex].endBlock > block.number, "Invalid setup"); _; } receive() external payable {} /** Extension methods */ /** @dev initializes the farming contract. * @param extension extension address. * @param extensionInitData lm extension init payload. * @param uniswapV3NonfungiblePositionManager Uniswap V3 Nonfungible Position Manager address. * @param rewardTokenAddress address of the reward token. * @param farmingSetupInfosBytes optional initial farming Setup Info * @return extensionReturnCall result of the extension initialization function, if it was called. */ function init(address extension, bytes memory extensionInitData, address uniswapV3NonfungiblePositionManager, address rewardTokenAddress, bytes memory farmingSetupInfosBytes) public returns(bytes memory extensionReturnCall) { require(_factory == address(0), "Already initialized"); require((_extension = extension) != address(0), "extension"); _factory = msg.sender; emit RewardToken(_rewardTokenAddress = rewardTokenAddress); if (keccak256(extensionInitData) != keccak256("")) { extensionReturnCall = _call(_extension, extensionInitData); } _WETH = (nonfungiblePositionManager = INonfungiblePositionManager(uniswapV3NonfungiblePositionManager)).WETH9(); if(farmingSetupInfosBytes.length > 0) { FarmingSetupInfo[] memory farmingSetupInfos = abi.decode(farmingSetupInfosBytes, (FarmingSetupInfo[])); for(uint256 i = 0; i < farmingSetupInfos.length; i++) { _setOrAddFarmingSetupInfo(farmingSetupInfos[i], true, false, 0); } } } function setFarmingSetups(FarmingSetupConfiguration[] memory farmingSetups) public override byExtension { for (uint256 i = 0; i < farmingSetups.length; i++) { _setOrAddFarmingSetupInfo(farmingSetups[i].info, farmingSetups[i].add, farmingSetups[i].disable, farmingSetups[i].index); } } function finalFlush(address[] calldata tokens, uint256[] calldata amounts) public { for(uint256 i = 0; i < _farmingSetupsCount; i++) { require(_setupPositionsCount[i] == 0 && !_setups[i].active && _setups[i].totalSupply == 0, "Not Empty"); } (,,, address receiver,) = IFarmExtension(_extension).data(); require(tokens.length == amounts.length, "length"); for(uint256 i = 0; i < tokens.length; i++) { address token = tokens[i]; uint256 amount = amounts[i]; require(receiver != address(0)); if(token == address(0)) { (bool result,) = receiver.call{value : amount}(""); require(result, "ETH"); } else { _safeTransfer(token, receiver, amount); } } } /** Public methods */ /** @dev returns the position with the given id. * @param positionId id of the position. * @return farming position with the given id. */ function position(uint256 positionId) public override view returns (FarmingPosition memory) { return _positions[positionId]; } function setup(uint256 setupIndex) public override view returns (FarmingSetup memory, FarmingSetupInfo memory) { return (_setups[setupIndex], _setupsInfo[_setups[setupIndex].infoIndex]); } function setups() public override view returns (FarmingSetup[] memory) { FarmingSetup[] memory farmingSetups = new FarmingSetup[](_farmingSetupsCount); for (uint256 i = 0; i < _farmingSetupsCount; i++) { farmingSetups[i] = _setups[i]; } return farmingSetups; } function activateSetup(uint256 setupInfoIndex) public { require(_setupsInfo[setupInfoIndex].renewTimes > 0 && !_setups[_setupsInfo[setupInfoIndex].lastSetupIndex].active, "Invalid toggle."); _toggleSetup(_setupsInfo[setupInfoIndex].lastSetupIndex); } function toggleSetup(uint256 setupInfoIndex) public { uint256 setupIndex = _setupsInfo[setupInfoIndex].lastSetupIndex; require(_setups[setupIndex].active && block.number > _setups[setupIndex].endBlock, "Invalid toggle."); _toggleSetup(setupIndex); _tryClearSetup(setupIndex); } function openPosition(FarmingPositionRequest memory request) public override payable returns(uint256 positionId) { if(!_setups[request.setupIndex].active) { activateSetup(_setups[request.setupIndex].infoIndex); } require(_setups[request.setupIndex].active, "Setup not active"); require(_setups[request.setupIndex].startBlock <= block.number && _setups[request.setupIndex].endBlock > block.number, "Invalid setup"); // retrieve the unique owner address uniqueOwner = (request.positionOwner != address(0)) ? request.positionOwner : msg.sender; // create the position id positionId = uint256(keccak256(abi.encode(uniqueOwner, request.setupIndex))); require(_positions[positionId].creationBlock == 0, "Invalid open"); uint128 liquidityAmount = _addLiquidity(request.setupIndex, request); _updateFreeSetup(request.setupIndex, liquidityAmount, positionId, false); _positions[positionId] = FarmingPosition({ uniqueOwner: uniqueOwner, setupIndex : request.setupIndex, liquidityPoolTokenAmount: liquidityAmount, reward: 0, creationBlock: block.number }); _setupPositionsCount[request.setupIndex] += 1; emit Transfer(positionId, address(0), uniqueOwner); } function addLiquidity(uint256 positionId, FarmingPositionRequest memory request) public override payable activeSetupOnly(request.setupIndex) byPositionOwner(positionId) { // retrieve farming position FarmingPosition storage farmingPosition = _positions[positionId]; FarmingSetup storage chosenSetup = _setups[farmingPosition.setupIndex]; uint128 liquidityAmount = _addLiquidity(farmingPosition.setupIndex, request); // rebalance the reward per token _rewardPerTokenPerSetup[farmingPosition.setupIndex] += (((block.number - chosenSetup.lastUpdateBlock) * chosenSetup.rewardPerBlock) * 1e18) / chosenSetup.totalSupply; farmingPosition.reward = calculateFreeFarmingReward(positionId, false); _rewardPerTokenPaid[positionId] = _rewardPerTokenPerSetup[farmingPosition.setupIndex]; farmingPosition.liquidityPoolTokenAmount += liquidityAmount; // update the last block update variablex chosenSetup.lastUpdateBlock = block.number; chosenSetup.totalSupply += liquidityAmount; } /** @dev this function allows a user to withdraw the reward. * @param positionId farming position id. */ function withdrawReward(uint256 positionId) external byPositionOwner(positionId) { _withdrawReward(positionId, 0); } function _withdrawReward(uint256 positionId, uint128 liquidityToRemove) private { // retrieve farming position FarmingPosition storage farmingPosition = _positions[positionId]; FarmingSetup storage farmingSetup = _setups[farmingPosition.setupIndex]; uint256 reward = farmingPosition.reward; uint256 currentBlock = block.number; // rebalance setup currentBlock = currentBlock > farmingSetup.endBlock ? farmingSetup.endBlock : currentBlock; _rewardPerTokenPerSetup[farmingPosition.setupIndex] += (((currentBlock - farmingSetup.lastUpdateBlock) * farmingSetup.rewardPerBlock) * 1e18) / farmingSetup.totalSupply; reward = calculateFreeFarmingReward(positionId, false); _rewardPerTokenPaid[positionId] = _rewardPerTokenPerSetup[farmingPosition.setupIndex]; farmingPosition.reward = 0; // update the last block update variable farmingSetup.lastUpdateBlock = currentBlock; _safeTransfer(_rewardTokenAddress, farmingPosition.uniqueOwner, reward); _retrieveGen2LiquidityAndFees(positionId, farmingSetup.objectId, reward, farmingPosition.uniqueOwner, liquidityToRemove); _rewardPaid[farmingPosition.setupIndex] += reward; if (farmingSetup.endBlock <= block.number && farmingSetup.active) { _toggleSetup(farmingPosition.setupIndex); } } function withdrawLiquidity(uint256 positionId, uint128 removedLiquidity) byPositionOwner(positionId) public { // retrieve farming position FarmingPosition storage farmingPosition = _positions[positionId]; // current owned liquidity require( farmingPosition.creationBlock != 0 && removedLiquidity <= farmingPosition.liquidityPoolTokenAmount && farmingPosition.uniqueOwner == msg.sender, "Invalid withdraw" ); _withdrawReward(positionId, removedLiquidity); _setups[farmingPosition.setupIndex].totalSupply -= removedLiquidity; farmingPosition.liquidityPoolTokenAmount -= removedLiquidity; // delete the farming position after the withdraw if (farmingPosition.liquidityPoolTokenAmount == 0) { _setupPositionsCount[farmingPosition.setupIndex] -= 1; _tryClearSetup(farmingPosition.setupIndex); delete _positions[positionId]; } } function _tryClearSetup(uint256 setupIndex) private { if (_setupPositionsCount[setupIndex] == 0 && !_setups[setupIndex].active && _setups[setupIndex].objectId != 0) { uint256 objectId = _setups[setupIndex].objectId; address(nonfungiblePositionManager).call(abi.encodeWithSelector(nonfungiblePositionManager.collect.selector, INonfungiblePositionManager.CollectParams({ tokenId: objectId, recipient: address(this), amount0Max: 0xffffffffffffffffffffffffffffffff, amount1Max: 0xffffffffffffffffffffffffffffffff }))); nonfungiblePositionManager.burn(objectId); delete _setups[setupIndex]; } } function calculateFreeFarmingReward(uint256 positionId, bool isExt) public view returns(uint256 reward) { FarmingPosition memory farmingPosition = _positions[positionId]; reward = ((_rewardPerTokenPerSetup[farmingPosition.setupIndex] - _rewardPerTokenPaid[positionId]) * farmingPosition.liquidityPoolTokenAmount) / 1e18; if (isExt) { uint256 currentBlock = block.number < _setups[farmingPosition.setupIndex].endBlock ? block.number : _setups[farmingPosition.setupIndex].endBlock; uint256 lastUpdateBlock = _setups[farmingPosition.setupIndex].lastUpdateBlock < _setups[farmingPosition.setupIndex].startBlock ? _setups[farmingPosition.setupIndex].startBlock : _setups[farmingPosition.setupIndex].lastUpdateBlock; uint256 rpt = (((currentBlock - lastUpdateBlock) * _setups[farmingPosition.setupIndex].rewardPerBlock) * 1e18) / _setups[farmingPosition.setupIndex].totalSupply; reward += (rpt * farmingPosition.liquidityPoolTokenAmount) / 1e18; } reward += farmingPosition.reward; } /// @dev only for gen2, where fees are taken out from the nft. /// @notice calculates the amount of unclaimed fees of a FarmingPosition function calculateTradingFees(uint256 positionId, uint256 reward, uint128 tokensOwed0, uint128 tokensOwed1) public view returns (uint256 token0Fees, uint256 token1Fees) { FarmingPosition memory farmingPosition = _positions[positionId]; FarmingSetup memory chosenSetup = _setups[farmingPosition.setupIndex]; uint256 lastRedeemeableBlock = block.number > chosenSetup.endBlock ? chosenSetup.endBlock : block.number; uint256 percentageOfFeesOwnedByPosition = reward * ONE_HUNDRED / (((chosenSetup.rewardPerBlock * (lastRedeemeableBlock - chosenSetup.startBlock)) - _rewardPaid[farmingPosition.setupIndex])); // the following needs to be done as to fetch up to date fees information from the NFT // tokensOwed0 and 1 represent fees owed for that NFT if(tokensOwed0 == 0 && tokensOwed1 == 0) { (,,,,,,,,,, tokensOwed0, tokensOwed1) = INonfungiblePositionManager(nonfungiblePositionManager).positions(_setups[_positions[positionId].setupIndex].objectId); } token0Fees = (tokensOwed0 * percentageOfFeesOwnedByPosition) / ONE_HUNDRED; token1Fees = (tokensOwed1 * percentageOfFeesOwnedByPosition) / ONE_HUNDRED; } /** Private methods */ function _setOrAddFarmingSetupInfo(FarmingSetupInfo memory info, bool add, bool disable, uint256 setupIndex) private { FarmingSetupInfo memory farmingSetupInfo = info; if(add || !disable) { farmingSetupInfo.renewTimes = farmingSetupInfo.renewTimes + 1; if(farmingSetupInfo.renewTimes == 0) { farmingSetupInfo.renewTimes = farmingSetupInfo.renewTimes - 1; } } if (add) { require( farmingSetupInfo.liquidityPoolTokenAddress != address(0) && farmingSetupInfo.originalRewardPerBlock > 0, "Invalid setup configuration" ); _checkTicks(farmingSetupInfo.tickLower, farmingSetupInfo.tickUpper); address[] memory tokenAddresses = new address[](2); tokenAddresses[0] = IUniswapV3Pool(info.liquidityPoolTokenAddress).token0(); tokenAddresses[1] = IUniswapV3Pool(info.liquidityPoolTokenAddress).token1(); bool mainTokenFound = false; bool ethTokenFound = false; for(uint256 z = 0; z < tokenAddresses.length; z++) { if(tokenAddresses[z] == _WETH) { ethTokenFound = true; } if(tokenAddresses[z] == farmingSetupInfo.mainTokenAddress) { mainTokenFound = true; } else { emit SetupToken(farmingSetupInfo.mainTokenAddress, tokenAddresses[z]); } } require(mainTokenFound, "No main token"); require(!farmingSetupInfo.involvingETH || ethTokenFound, "No ETH token"); farmingSetupInfo.setupsCount = 0; _setupsInfo[_farmingSetupsInfoCount] = farmingSetupInfo; _setups[_farmingSetupsCount] = FarmingSetup(_farmingSetupsInfoCount, false, 0, 0, 0, 0, farmingSetupInfo.originalRewardPerBlock, 0); _setupsInfo[_farmingSetupsInfoCount].lastSetupIndex = _farmingSetupsCount; _farmingSetupsInfoCount += 1; _farmingSetupsCount += 1; return; } FarmingSetup storage setup = _setups[setupIndex]; farmingSetupInfo = _setupsInfo[_setups[setupIndex].infoIndex]; if(disable) { require(setup.active, "Not possible"); _toggleSetup(setupIndex); return; } info.renewTimes -= 1; if (setup.active) { setup = _setups[setupIndex]; if(block.number < setup.endBlock) { uint256 difference = info.originalRewardPerBlock < farmingSetupInfo.originalRewardPerBlock ? farmingSetupInfo.originalRewardPerBlock - info.originalRewardPerBlock : info.originalRewardPerBlock - farmingSetupInfo.originalRewardPerBlock; uint256 duration = setup.endBlock - block.number; uint256 amount = difference * duration; if (amount > 0) { if (info.originalRewardPerBlock > farmingSetupInfo.originalRewardPerBlock) { require(_ensureTransfer(amount), "Insufficient reward in extension."); _rewardReceived[setupIndex] += amount; } _updateFreeSetup(setupIndex, 0, 0, false); setup.rewardPerBlock = info.originalRewardPerBlock; } } _setupsInfo[_setups[setupIndex].infoIndex].originalRewardPerBlock = info.originalRewardPerBlock; } if(_setupsInfo[_setups[setupIndex].infoIndex].renewTimes > 0) { _setupsInfo[_setups[setupIndex].infoIndex].renewTimes = info.renewTimes; } } function _transferToMeAndCheckAllowance(FarmingSetup memory setup, FarmingPositionRequest memory request) private { address[] memory tokens = new address[](2); tokens[0] = IUniswapV3Pool(_setupsInfo[setup.infoIndex].liquidityPoolTokenAddress).token0(); tokens[1] = IUniswapV3Pool(_setupsInfo[setup.infoIndex].liquidityPoolTokenAddress).token1(); uint256[] memory tokenAmounts = new uint256[](2); tokenAmounts[0] = request.amount0; tokenAmounts[1] = request.amount1; require((_setupsInfo[setup.infoIndex].mainTokenAddress == tokens[0] ? tokenAmounts[0] : tokenAmounts[1]) >= _setupsInfo[setup.infoIndex].minStakeable, "Invalid liquidity."); // iterate the tokens and perform the transferFrom and the approve for(uint256 i = 0; i < tokens.length; i++) { if(_setupsInfo[setup.infoIndex].involvingETH && _WETH == tokens[i]) { require(msg.value == tokenAmounts[i], "Incorrect eth value"); } else { _safeTransferFrom(tokens[i], msg.sender, address(this), tokenAmounts[i]); _safeApprove(tokens[i], address(nonfungiblePositionManager), tokenAmounts[i]); } } } /// @dev addliquidity only for gen2 function _addLiquidity(uint256 setupIndex, FarmingPositionRequest memory request) private returns(uint128 liquidityAmount) { _transferToMeAndCheckAllowance(_setups[setupIndex], request); FarmingSetupInfo memory setupInfo = _setupsInfo[_setups[setupIndex].infoIndex]; bytes[] memory data = new bytes[](setupInfo.involvingETH ? 2 : 1); address token0 = IUniswapV3Pool(setupInfo.liquidityPoolTokenAddress).token0(); address token1 = IUniswapV3Pool(setupInfo.liquidityPoolTokenAddress).token1(); uint256 ethValue = setupInfo.involvingETH ? token0 == _WETH ? request.amount0 : request.amount1 : 0; uint256 amount0; uint256 amount1; if(setupInfo.involvingETH) { data[1] = abi.encodeWithSelector(nonfungiblePositionManager.refundETH.selector); } if(_setupPositionsCount[setupIndex] == 0 && _setups[setupIndex].objectId == 0) { data[0] = abi.encodeWithSelector(nonfungiblePositionManager.mint.selector, INonfungiblePositionManager.MintParams({ token0: token0, token1: token1, fee: IUniswapV3Pool(setupInfo.liquidityPoolTokenAddress).fee(), tickLower: setupInfo.tickLower, tickUpper: setupInfo.tickUpper, amount0Desired: request.amount0, amount1Desired: request.amount1, amount0Min: 0, amount1Min: 0, recipient: address(this), deadline: block.timestamp + 10000 })); (_setups[setupIndex].objectId, liquidityAmount, amount0, amount1) = abi.decode(IMulticall(address(nonfungiblePositionManager)).multicall{ value: ethValue }(data)[0], (uint256, uint128, uint256, uint256)); } else { data[0] = abi.encodeWithSelector(nonfungiblePositionManager.increaseLiquidity.selector, INonfungiblePositionManager.IncreaseLiquidityParams({ tokenId: _setups[request.setupIndex].objectId, amount0Desired: request.amount0, amount1Desired: request.amount1, amount0Min: 0, amount1Min: 0, deadline: block.timestamp + 10000 })); (liquidityAmount, amount0, amount1) = abi.decode(IMulticall(address(nonfungiblePositionManager)).multicall{ value : ethValue }(data)[0], (uint128, uint256, uint256)); } if(amount0 < request.amount0){ _safeTransfer(setupInfo.involvingETH && token0 == _WETH ? address(0) : token0, msg.sender, request.amount0 - amount0); } if(amount1 < request.amount1){ _safeTransfer(setupInfo.involvingETH && token1 == _WETH ? address(0) : token1, msg.sender, request.amount1 - amount1); } } /** @dev updates the free setup with the given index. * @param setupIndex index of the setup that we're updating. * @param amount amount of liquidity that we're adding/removeing. * @param positionId position id. * @param fromExit if it's from an exit or not. */ function _updateFreeSetup(uint256 setupIndex, uint128 amount, uint256 positionId, bool fromExit) private { uint256 currentBlock = block.number < _setups[setupIndex].endBlock ? block.number : _setups[setupIndex].endBlock; if (_setups[setupIndex].totalSupply != 0) { uint256 lastUpdateBlock = _setups[setupIndex].lastUpdateBlock < _setups[setupIndex].startBlock ? _setups[setupIndex].startBlock : _setups[setupIndex].lastUpdateBlock; _rewardPerTokenPerSetup[setupIndex] += (((currentBlock - lastUpdateBlock) * _setups[setupIndex].rewardPerBlock) * 1e18) / _setups[setupIndex].totalSupply; } // update the last block update variable _setups[setupIndex].lastUpdateBlock = currentBlock; if (positionId != 0) { _rewardPerTokenPaid[positionId] = _rewardPerTokenPerSetup[setupIndex]; } if (amount > 0) { fromExit ? _setups[setupIndex].totalSupply -= amount : _setups[setupIndex].totalSupply += amount; } } function _toggleSetup(uint256 setupIndex) private { FarmingSetup storage setup = _setups[setupIndex]; // require(!setup.active || block.number >= setup.endBlock, "Not valid activation"); require(block.number > _setupsInfo[setup.infoIndex].startBlock, "Too early for this setup"); if (setup.active && block.number >= setup.endBlock && _setupsInfo[setup.infoIndex].renewTimes == 0) { setup.active = false; return; } else if (block.number >= setup.startBlock && block.number < setup.endBlock && setup.active) { setup.active = false; _setupsInfo[setup.infoIndex].renewTimes = 0; uint256 amount = (setup.endBlock - block.number) * setup.rewardPerBlock; setup.endBlock = block.number; _updateFreeSetup(setupIndex, 0, 0, false); _rewardReceived[setupIndex] -= amount; return; } bool wasActive = setup.active; setup.active = _ensureTransfer(setup.rewardPerBlock * _setupsInfo[setup.infoIndex].blockDuration); if (setup.active && wasActive) { _rewardReceived[_farmingSetupsCount] = setup.rewardPerBlock * _setupsInfo[setup.infoIndex].blockDuration; // set new setup _setups[_farmingSetupsCount] = abi.decode(abi.encode(setup), (FarmingSetup)); // update old setup _setups[setupIndex].active = false; // update new setup _setupsInfo[setup.infoIndex].renewTimes -= 1; _setupsInfo[setup.infoIndex].setupsCount += 1; _setupsInfo[setup.infoIndex].lastSetupIndex = _farmingSetupsCount; _setups[_farmingSetupsCount].startBlock = block.number; _setups[_farmingSetupsCount].endBlock = block.number + _setupsInfo[_setups[_farmingSetupsCount].infoIndex].blockDuration; _setups[_farmingSetupsCount].objectId = 0; _setups[_farmingSetupsCount].totalSupply = 0; _farmingSetupsCount += 1; } else if (setup.active && !wasActive) { _rewardReceived[setupIndex] = setup.rewardPerBlock * _setupsInfo[_setups[setupIndex].infoIndex].blockDuration; // update new setup _setups[setupIndex].startBlock = block.number; _setups[setupIndex].endBlock = block.number + _setupsInfo[_setups[setupIndex].infoIndex].blockDuration; _setups[setupIndex].totalSupply = 0; _setupsInfo[_setups[setupIndex].infoIndex].renewTimes -= 1; } else { _setupsInfo[_setups[setupIndex].infoIndex].renewTimes = 0; } } /** @dev function used to safely approve ERC20 transfers. * @param erc20TokenAddress address of the token to approve. * @param to receiver of the approval. * @param value amount to approve for. */ function _safeApprove(address erc20TokenAddress, address to, uint256 value) internal virtual { if(value == 0) { return; } bytes memory returnData = _call(erc20TokenAddress, abi.encodeWithSelector(IERC20(erc20TokenAddress).approve.selector, to, value)); require(returnData.length == 0 || abi.decode(returnData, (bool)), 'APPROVE_FAILED'); } /** @dev function used to safe transfer ERC20 tokens. * @param erc20TokenAddress address of the token to transfer. * @param to receiver of the tokens. * @param value amount of tokens to transfer. */ function _safeTransfer(address erc20TokenAddress, address to, uint256 value) internal virtual { if(value == 0) { return; } if(erc20TokenAddress == address(0)) { (bool result,) = to.call{value : value}(""); require(result, "TRANSFER_FAILED"); return; } bytes memory returnData = _call(erc20TokenAddress, abi.encodeWithSelector(IERC20(erc20TokenAddress).transfer.selector, to, value)); require(returnData.length == 0 || abi.decode(returnData, (bool)), 'TRANSFER_FAILED'); } /** @dev this function safely transfers the given ERC20 value from an address to another. * @param erc20TokenAddress erc20 token address. * @param from address from. * @param to address to. * @param value amount to transfer. */ function _safeTransferFrom(address erc20TokenAddress, address from, address to, uint256 value) private { if(value == 0) { return; } bytes memory returnData = _call(erc20TokenAddress, abi.encodeWithSelector(IERC20(erc20TokenAddress).transferFrom.selector, from, to, value)); require(returnData.length == 0 || abi.decode(returnData, (bool)), 'TRANSFERFROM_FAILED'); } /** @dev calls the contract at the given location using the given payload and returns the returnData. * @param location location to call. * @param payload call payload. * @return returnData call return data. */ function _call(address location, bytes memory payload) private returns(bytes memory returnData) { assembly { let result := call(gas(), location, 0, add(payload, 0x20), mload(payload), 0, 0) let size := returndatasize() returnData := mload(0x40) mstore(returnData, size) let returnDataPayloadStart := add(returnData, 0x20) returndatacopy(returnDataPayloadStart, 0, size) mstore(0x40, add(returnDataPayloadStart, size)) switch result case 0 {revert(returnDataPayloadStart, size)} } } /** @dev gives back the reward to the extension. * @param amount to give back. */ function _giveBack(uint256 amount) private { if(amount == 0) { return; } if (_rewardTokenAddress == address(0)) { IFarmExtension(_extension).backToYou{value : amount}(amount); } else { _safeApprove(_rewardTokenAddress, _extension, amount); IFarmExtension(_extension).backToYou(amount); } } /** @dev ensures the transfer from the contract to the extension. * @param amount amount to transfer. */ function _ensureTransfer(uint256 amount) private returns(bool) { uint256 initialBalance = _rewardTokenAddress == address(0) ? address(this).balance : IERC20(_rewardTokenAddress).balanceOf(address(this)); uint256 expectedBalance = initialBalance + amount; try IFarmExtension(_extension).transferTo(amount) {} catch {} uint256 actualBalance = _rewardTokenAddress == address(0) ? address(this).balance : IERC20(_rewardTokenAddress).balanceOf(address(this)); if(actualBalance == expectedBalance) { return true; } _giveBack(actualBalance - initialBalance); return false; } /// @dev Common checks for valid tick inputs. function _checkTicks(int24 tickLower, int24 tickUpper) private pure { require(tickLower < tickUpper, 'TLU'); require(tickLower >= TickMath.MIN_TICK, 'TLM'); require(tickUpper <= TickMath.MAX_TICK, 'TUM'); } // only called from gen2 code function _retrieveGen2LiquidityAndFees(uint256 positionId, uint256 objectId, uint256 reward, address recipient, uint128 liquidityToRemove) private { uint256 collectedAmount0 = 0; uint256 collectedAmount1 = 0; (uint256 wei0, uint256 wei1) = nonfungiblePositionManager.collect(INonfungiblePositionManager.CollectParams({ tokenId: objectId, recipient: address(0), amount0Max: 1, amount1Max: 1 })); (uint256 feeAmount0, uint256 feeAmount1) = (0, 0); if(reward > 0) { (feeAmount0, feeAmount1) = calculateTradingFees(positionId, reward, 0, 0); } if(liquidityToRemove > 0) { (collectedAmount0, collectedAmount1) = nonfungiblePositionManager.decreaseLiquidity(INonfungiblePositionManager.DecreaseLiquidityParams( objectId, liquidityToRemove, 0, 0, block.timestamp + 10000 )); } collectedAmount0 += feeAmount0; collectedAmount1 += feeAmount1; (collectedAmount0, collectedAmount1) = _checkLastPosition(positionId, liquidityToRemove, collectedAmount0, collectedAmount1); if (collectedAmount0 > 0 || collectedAmount1 > 0) { address token0; address token1; (token0, token1, collectedAmount0, collectedAmount1) = _collect(positionId, collectedAmount0, collectedAmount1); uint256 dfoFee0 = 0; uint256 dfoFee1 = 0; (uint256 exitFeePercentage, address exitFeeWallet) = IFarmFactory(_factory).feePercentageInfo(); if (exitFeePercentage > 0) { dfoFee0 = (feeAmount0 * ((exitFeePercentage * 1e18) / ONE_HUNDRED)) / 1e18; dfoFee1 = (feeAmount1 * ((exitFeePercentage * 1e18) / ONE_HUNDRED)) / 1e18; _safeTransfer(token0, exitFeeWallet, dfoFee0); _safeTransfer(token1, exitFeeWallet, dfoFee1); } _safeTransfer(token0, recipient, collectedAmount0 - dfoFee0); _safeTransfer(token1, recipient, collectedAmount1 - dfoFee1); } } function _checkLastPosition(uint256 positionId, uint128 liquidityToRemove, uint256 collectedAmount0, uint256 collectedAmount1) private view returns(uint256, uint256) { FarmingPosition memory farmingPosition = _positions[positionId]; FarmingSetup memory farmingSetup = _setups[farmingPosition.setupIndex]; if(liquidityToRemove > 0 && liquidityToRemove == farmingPosition.liquidityPoolTokenAmount && (!farmingSetup.active || block.number > farmingSetup.endBlock) && _setupPositionsCount[farmingPosition.setupIndex] == 1) { return ( 0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff, 0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff ); } return (collectedAmount0, collectedAmount1); } function _collect(uint256 positionId, uint256 collectedAmount0, uint256 collectedAmount1) private returns (address token0, address token1, uint256 amount0, uint256 amount1) { require(collectedAmount0 > 0 || collectedAmount1 > 0, "0 amount"); bool involvingETH = _setupsInfo[_setups[_positions[positionId].setupIndex].infoIndex].involvingETH; bytes[] memory data = new bytes[](involvingETH ? 3 : 1); data[0] = abi.encodeWithSelector(nonfungiblePositionManager.collect.selector, INonfungiblePositionManager.CollectParams({ tokenId: _setups[_positions[positionId].setupIndex].objectId, recipient: involvingETH ? address(0) : address(this), amount0Max: uint128(collectedAmount0), amount1Max: uint128(collectedAmount1) })); (,, token0, token1, , , , , , , , ) = nonfungiblePositionManager.positions(_setups[_positions[positionId].setupIndex].objectId); if(involvingETH) { data[1] = abi.encodeWithSelector(nonfungiblePositionManager.unwrapWETH9.selector, 0, address(this)); data[2] = abi.encodeWithSelector(nonfungiblePositionManager.sweepToken.selector, token0 == _WETH ? token1 : token0, 0, address(this)); token0 = token0 == _WETH ? address(0) : token0; token1 = token1 == _WETH ? address(0) : token1; } (amount0, amount1) = abi.decode(IMulticall(address(nonfungiblePositionManager)).multicall(data)[0], (uint256, uint256)); } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"rewardTokenAddress","type":"address"}],"name":"RewardToken","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"mainToken","type":"address"},{"indexed":true,"internalType":"address","name":"involvedToken","type":"address"}],"name":"SetupToken","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"positionId","type":"uint256"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"ONE_HUNDRED","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_extension","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_factory","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_farmingSetupsCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_farmingSetupsInfoCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"_rewardPaid","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"_rewardReceived","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_rewardTokenAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"setupInfoIndex","type":"uint256"}],"name":"activateSetup","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"positionId","type":"uint256"},{"components":[{"internalType":"uint256","name":"setupIndex","type":"uint256"},{"internalType":"uint256","name":"amount0","type":"uint256"},{"internalType":"uint256","name":"amount1","type":"uint256"},{"internalType":"address","name":"positionOwner","type":"address"}],"internalType":"struct FarmingPositionRequest","name":"request","type":"tuple"}],"name":"addLiquidity","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"positionId","type":"uint256"},{"internalType":"bool","name":"isExt","type":"bool"}],"name":"calculateFreeFarmingReward","outputs":[{"internalType":"uint256","name":"reward","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"positionId","type":"uint256"},{"internalType":"uint256","name":"reward","type":"uint256"},{"internalType":"uint128","name":"tokensOwed0","type":"uint128"},{"internalType":"uint128","name":"tokensOwed1","type":"uint128"}],"name":"calculateTradingFees","outputs":[{"internalType":"uint256","name":"token0Fees","type":"uint256"},{"internalType":"uint256","name":"token1Fees","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"tokens","type":"address[]"},{"internalType":"uint256[]","name":"amounts","type":"uint256[]"}],"name":"finalFlush","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"extension","type":"address"},{"internalType":"bytes","name":"extensionInitData","type":"bytes"},{"internalType":"address","name":"uniswapV3NonfungiblePositionManager","type":"address"},{"internalType":"address","name":"rewardTokenAddress","type":"address"},{"internalType":"bytes","name":"farmingSetupInfosBytes","type":"bytes"}],"name":"init","outputs":[{"internalType":"bytes","name":"extensionReturnCall","type":"bytes"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"nonfungiblePositionManager","outputs":[{"internalType":"contract INonfungiblePositionManager","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"components":[{"internalType":"uint256","name":"setupIndex","type":"uint256"},{"internalType":"uint256","name":"amount0","type":"uint256"},{"internalType":"uint256","name":"amount1","type":"uint256"},{"internalType":"address","name":"positionOwner","type":"address"}],"internalType":"struct FarmingPositionRequest","name":"request","type":"tuple"}],"name":"openPosition","outputs":[{"internalType":"uint256","name":"positionId","type":"uint256"}],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"positionId","type":"uint256"}],"name":"position","outputs":[{"components":[{"internalType":"address","name":"uniqueOwner","type":"address"},{"internalType":"uint256","name":"setupIndex","type":"uint256"},{"internalType":"uint256","name":"creationBlock","type":"uint256"},{"internalType":"uint128","name":"liquidityPoolTokenAmount","type":"uint128"},{"internalType":"uint256","name":"reward","type":"uint256"}],"internalType":"struct FarmingPosition","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"components":[{"internalType":"bool","name":"add","type":"bool"},{"internalType":"bool","name":"disable","type":"bool"},{"internalType":"uint256","name":"index","type":"uint256"},{"components":[{"internalType":"uint256","name":"blockDuration","type":"uint256"},{"internalType":"uint256","name":"startBlock","type":"uint256"},{"internalType":"uint256","name":"originalRewardPerBlock","type":"uint256"},{"internalType":"uint256","name":"minStakeable","type":"uint256"},{"internalType":"uint256","name":"renewTimes","type":"uint256"},{"internalType":"address","name":"liquidityPoolTokenAddress","type":"address"},{"internalType":"address","name":"mainTokenAddress","type":"address"},{"internalType":"bool","name":"involvingETH","type":"bool"},{"internalType":"uint256","name":"setupsCount","type":"uint256"},{"internalType":"uint256","name":"lastSetupIndex","type":"uint256"},{"internalType":"int24","name":"tickLower","type":"int24"},{"internalType":"int24","name":"tickUpper","type":"int24"}],"internalType":"struct FarmingSetupInfo","name":"info","type":"tuple"}],"internalType":"struct FarmingSetupConfiguration[]","name":"farmingSetups","type":"tuple[]"}],"name":"setFarmingSetups","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"setupIndex","type":"uint256"}],"name":"setup","outputs":[{"components":[{"internalType":"uint256","name":"infoIndex","type":"uint256"},{"internalType":"bool","name":"active","type":"bool"},{"internalType":"uint256","name":"startBlock","type":"uint256"},{"internalType":"uint256","name":"endBlock","type":"uint256"},{"internalType":"uint256","name":"lastUpdateBlock","type":"uint256"},{"internalType":"uint256","name":"objectId","type":"uint256"},{"internalType":"uint256","name":"rewardPerBlock","type":"uint256"},{"internalType":"uint128","name":"totalSupply","type":"uint128"}],"internalType":"struct FarmingSetup","name":"","type":"tuple"},{"components":[{"internalType":"uint256","name":"blockDuration","type":"uint256"},{"internalType":"uint256","name":"startBlock","type":"uint256"},{"internalType":"uint256","name":"originalRewardPerBlock","type":"uint256"},{"internalType":"uint256","name":"minStakeable","type":"uint256"},{"internalType":"uint256","name":"renewTimes","type":"uint256"},{"internalType":"address","name":"liquidityPoolTokenAddress","type":"address"},{"internalType":"address","name":"mainTokenAddress","type":"address"},{"internalType":"bool","name":"involvingETH","type":"bool"},{"internalType":"uint256","name":"setupsCount","type":"uint256"},{"internalType":"uint256","name":"lastSetupIndex","type":"uint256"},{"internalType":"int24","name":"tickLower","type":"int24"},{"internalType":"int24","name":"tickUpper","type":"int24"}],"internalType":"struct FarmingSetupInfo","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"setups","outputs":[{"components":[{"internalType":"uint256","name":"infoIndex","type":"uint256"},{"internalType":"bool","name":"active","type":"bool"},{"internalType":"uint256","name":"startBlock","type":"uint256"},{"internalType":"uint256","name":"endBlock","type":"uint256"},{"internalType":"uint256","name":"lastUpdateBlock","type":"uint256"},{"internalType":"uint256","name":"objectId","type":"uint256"},{"internalType":"uint256","name":"rewardPerBlock","type":"uint256"},{"internalType":"uint128","name":"totalSupply","type":"uint128"}],"internalType":"struct FarmingSetup[]","name":"","type":"tuple[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"setupInfoIndex","type":"uint256"}],"name":"toggleSetup","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"positionId","type":"uint256"},{"internalType":"uint128","name":"removedLiquidity","type":"uint128"}],"name":"withdrawLiquidity","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"positionId","type":"uint256"}],"name":"withdrawReward","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]
Deployed Bytecode
0x6080604052600436106101445760003560e01c80635d001c32116100b6578063c9a1987f1161006f578063c9a1987f14610358578063cea2658714610386578063d8ff139a146103a6578063de859680146103c6578063eb19c75d146103e6578063f7a95a9e146103f95761014b565b80635d001c32146102c6578063688bc0e7146102e6578063ab2c3f15146102f9578063b44a272214610319578063bfaa8cca1461032e578063c5cc6b6a146103435761014b565b80634313b9e5116101085780634313b9e5146101f457806349fd034a146102225780634f39d1f514610237578063523a3f081461026457806354c1fc32146102845780635c4b4064146102a65761014b565b806305c85b401461015057806310ba98561461017b578063207c6efa1461019d5780633ae1dd9d146101ca57806340f1f4af146101df5761014b565b3661014b57005b600080fd5b34801561015c57600080fd5b50610165610426565b6040516101729190614d5c565b60405180910390f35b34801561018757600080fd5b5061019b610196366004614a2d565b610435565b005b3480156101a957600080fd5b506101bd6101b8366004614a2d565b6104b3565b60405161017291906155f1565b3480156101d657600080fd5b506101656104c5565b3480156101eb57600080fd5b506101bd6104d4565b34801561020057600080fd5b5061021461020f366004614a2d565b6104da565b6040516101729291906153b3565b34801561022e57600080fd5b506101bd6106cc565b34801561024357600080fd5b50610257610252366004614469565b6106d2565b6040516101729190614e82565b34801561027057600080fd5b5061019b61027f366004614a2d565b6108da565b34801561029057600080fd5b50610299610939565b6040516101729190614e33565b3480156102b257600080fd5b506101bd6102c1366004614a8c565b610a3d565b3480156102d257600080fd5b5061019b6102e1366004614adc565b610be9565b6101bd6102f436600461492f565b610d6c565b34801561030557600080fd5b506101bd610314366004614a2d565b610fa5565b34801561032557600080fd5b50610165610fb7565b34801561033a57600080fd5b506101bd610fc6565b34801561034f57600080fd5b50610165610fd2565b34801561036457600080fd5b50610378610373366004614b60565b610fe1565b6040516101729291906155fa565b34801561039257600080fd5b5061019b6103a1366004614505565b61125f565b3480156103b257600080fd5b5061019b6103c1366004614a2d565b61148f565b3480156103d257600080fd5b5061019b6103e136600461462f565b61150c565b61019b6103f4366004614ab0565b6115b2565b34801561040557600080fd5b50610419610414366004614a2d565b611798565b604051610172919061536c565b6002546001600160a01b031681565b60008181526004602090815260408083206008015480845260069092529091206001015460ff168015610478575060008181526006602052604090206003015443115b61049d5760405162461bcd60e51b8152600401610494906150d5565b60405180910390fd5b6104a681611804565b6104af81611b9d565b5050565b600c6020526000908152604090205481565b6001546001600160a01b031681565b60055481565b6104e2614149565b6104ea614199565b6006600084815260200190815260200160002060046000600660008781526020019081526020016000206000015481526020019081526020016000208160405180610100016040529081600082015481526020016001820160009054906101000a900460ff1615151515815260200160028201548152602001600382015481526020016004820154815260200160058201548152602001600682015481526020016007820160009054906101000a90046001600160801b03166001600160801b03166001600160801b0316815250509150806040518061018001604052908160008201548152602001600182015481526020016002820154815260200160038201548152602001600482015481526020016005820160009054906101000a90046001600160a01b03166001600160a01b03166001600160a01b031681526020016006820160009054906101000a90046001600160a01b03166001600160a01b03166001600160a01b031681526020016006820160149054906101000a900460ff1615151515815260200160078201548152602001600882015481526020016009820160009054906101000a900460020b60020b60020b81526020016009820160039054906101000a900460020b60020b60020b81525050905091509150915091565b60075481565b6000546060906001600160a01b0316156106fe5760405162461bcd60e51b815260040161049490615209565b600180546001600160a01b0319166001600160a01b0388169081179091556107385760405162461bcd60e51b8152600401610494906151be565b600080546001600160a01b031990811633178255600280546001600160a01b03871692168217905560405190917fd9078653fc0ab56789d31bc2c38fcaecf28034549baf737c02b719513837563b91a2845160208601207fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470146107ce576001546107cb906001600160a01b031686611d8a565b90505b600380546001600160a01b0319166001600160a01b038616908117909155604080516312a9293f60e21b81529051634aa4a4fc91600480820192602092909190829003018186803b15801561082257600080fd5b505afa158015610836573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061085a91906143d9565b600e80546001600160a01b0319166001600160a01b03929092169190911790558151156108d15760008280602001905181019061089791906147df565b905060005b81518110156108ce576108c68282815181106108b457fe5b60200260200101516001600080611dcc565b60010161089c565b50505b95945050505050565b60008181526008602052604090205481906001600160a01b031633148015610912575060008181526008602052604090206002015415155b61092e5760405162461bcd60e51b815260040161049490614fd2565b6104af8260006125a7565b606060006007546001600160401b038111801561095557600080fd5b5060405190808252806020026020018201604052801561098f57816020015b61097c614149565b8152602001906001900390816109745790505b50905060005b600754811015610a375760008181526006602081815260409283902083516101008101855281548152600182015460ff161515928101929092526002810154938201939093526003830154606082015260048301546080820152600583015460a08201529082015460c08201526007909101546001600160801b031660e08201528251839083908110610a2457fe5b6020908102919091010152600101610995565b50905090565b6000828152600860209081526040808320815160a08101835281546001600160a01b03168152600182015481850190815260028301548285015260038301546001600160801b0316606083018190526004909301546080830152878652600a855283862054905186526009909452918420549192670de0b6b3a76400009203020491508215610bde576020808201516000908152600690915260408120600301544310610b0157602080830151600090815260069091526040902060030154610b03565b435b602080840180516000908152600690925260408083206002015491518352822060040154929350909110610b4e57602080840151600090815260069091526040902060040154610b67565b6020808401516000908152600690915260409020600201545b6020848101805160009081526006928390526040808220600701549251825281209092015492935090916001600160801b039091169083850302670de0b6b3a76400000281610bb257fe5b049050670de0b6b3a764000084606001516001600160801b0316820281610bd557fe5b04850194505050505b608001510192915050565b60008281526008602052604090205482906001600160a01b031633148015610c21575060008181526008602052604090206002015415155b610c3d5760405162461bcd60e51b815260040161049490614fd2565b6000838152600860205260409020600281015415801590610c6f575060038101546001600160801b0390811690841611155b8015610c84575080546001600160a01b031633145b610ca05760405162461bcd60e51b815260040161049490614fa8565b610caa84846125a7565b6001810154600090815260066020526040902060070180546001600160801b0380821686900381166001600160801b03199283161790925560038301805480841687900384169216919091179081905516610d66576001810180546000908152600b60205260409020805460001901905554610d2590611b9d565b600084815260086020526040812080546001600160a01b031916815560018101829055600281018290556003810180546001600160801b0319169055600401555b50505050565b805160009081526006602052604081206001015460ff16610da1578151600090815260066020526040902054610da19061148f565b815160009081526006602052604090206001015460ff16610dd45760405162461bcd60e51b81526004016104949061526d565b81516000908152600660205260409020600201544310801590610e095750815160009081526006602052604090206003015443105b610e255760405162461bcd60e51b815260040161049490614f5b565b60608201516000906001600160a01b0316610e405733610e46565b82606001515b8351604051919250610e5d91839190602001614dba565b60408051601f1981840301815291815281516020928301206000818152600890935291206002015490925015610ea55760405162461bcd60e51b815260040161049490615042565b6000610eb58460000151856126f0565b9050610ec8846000015182856000612e6d565b6040805160a0810182526001600160a01b0384811680835287516020808501918252438587019081526001600160801b03888116606088019081526000608089018181528d8252600886528a822099518a546001600160a01b031916991698909817895594516001808a019190915592516002890155516003880180546001600160801b03191691909216179055935160049095019490945588518152600b9093528383208054909201909155915185907f0a429aba3d89849a2db0153e4534d95c46a1d83c8109d73893f55ebc44010ff4908390a45050919050565b600d6020526000908152604090205481565b6003546001600160a01b031681565b670de0b6b3a764000081565b6000546001600160a01b031681565b6000848152600860209081526040808320815160a0808201845282546001600160a01b03168252600180840154838701819052600280860154858801526003808701546001600160801b039081166060808901919091526004988901546080808a0191909152948c526006808c528a8d208b5161010081018d52815481529781015460ff1615159c88019c909c52938b0154998601999099529089015497840188905295880154918301919091526005870154928201929092529085015460c082015260079094015490911660e084015283929091839043116110c457436110ca565b81606001515b90506000600d60008560200151815260200190815260200160002054836040015183038460c001510203670de0b6b3a76400008a028161110657fe5b0490506001600160801b03881615801561112757506001600160801b038716155b156112225760035460008b815260086020908152604080832060010154835260069091529081902060050154905163133f757160e31b81526001600160a01b03909216916399fbab889161117d916004016155f1565b6101806040518083038186803b15801561119657600080fd5b505afa1580156111aa573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111ce9190614ba9565b909192939495969798999a5090919293949596979899509091929394959697985090919293949596975090919293949596509091929394955090919293945090919293509091925090915080985081995050505b670de0b6b3a76400006001600160801b0389168202049550670de0b6b3a76400006001600160801b03881682020494505050505094509492505050565b60005b6007548110156112e2576000818152600b602052604090205415801561129a575060008181526006602052604090206001015460ff16155b80156112be57506000818152600660205260409020600701546001600160801b0316155b6112da5760405162461bcd60e51b815260040161049490615297565b600101611262565b50600154604080516339ea509d60e11b815290516000926001600160a01b0316916373d4a13a9160048083019260a0929190829003018186803b15801561132857600080fd5b505afa15801561133c573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061136091906143f5565b509350505084831490506113865760405162461bcd60e51b815260040161049490615022565b60005b8481101561148757600086868381811061139f57fe5b90506020020160208101906113b491906143b6565b905060008585848181106113c457fe5b60200291909101359150506001600160a01b0384166113e257600080fd5b6001600160a01b038216611472576000846001600160a01b03168260405161140990614d59565b60006040518083038185875af1925050503d8060008114611446576040519150601f19603f3d011682016040523d82523d6000602084013e61144b565b606091505b505090508061146c5760405162461bcd60e51b81526004016104949061511b565b5061147d565b61147d82858361301c565b5050600101611389565b505050505050565b60008181526004602081905260409091200154158015906114d257506000818152600460209081526040808320600801548352600690915290206001015460ff16155b6114ee5760405162461bcd60e51b8152600401610494906150d5565b60008181526004602052604090206008015461150990611804565b50565b6001546001600160a01b031633146115365760405162461bcd60e51b815260040161049490614f35565b60005b81518110156104af576115aa82828151811061155157fe5b60200260200101516060015183838151811061156957fe5b60200260200101516000015184848151811061158157fe5b60200260200101516020015185858151811061159957fe5b602002602001015160400151611dcc565b600101611539565b805160008181526006602052604090206001015460ff166115e55760405162461bcd60e51b81526004016104949061526d565b6000818152600660205260409020600201544310801590611616575060008181526006602052604090206003015443105b6116325760405162461bcd60e51b815260040161049490614f5b565b60008381526008602052604090205483906001600160a01b03163314801561166a575060008181526008602052604090206002015415155b6116865760405162461bcd60e51b815260040161049490614fd2565b600084815260086020908152604080832060018101548085526006909352908320909290916116b590876126f0565b90508160070160009054906101000a90046001600160801b03166001600160801b031682600601548360040154430302670de0b6b3a764000002816116f657fe5b60018501546000908152600960205260408120805493909204909201905561171f908890610a3d565b60048085019190915560018401546000908152600960209081526040808320549a8352600a909152902097909755600390920180546001600160801b03808216850181166001600160801b0319928316179092554397830197909755600790910180548083169093019091169190951617909355505050565b6117a0614214565b50600081815260086020908152604091829020825160a08101845281546001600160a01b0316815260018201549281019290925260028101549282019290925260038201546001600160801b0316606082015260049091015460808201525b919050565b60008181526006602090815260408083208054845260049092529091206001015443116118435760405162461bcd60e51b815260040161049490615236565b600181015460ff16801561185b575080600301544310155b80156118795750805460009081526004602081905260409091200154155b1561188e57600101805460ff19169055611509565b806002015443101580156118a55750806003015443105b80156118b55750600181015460ff165b156119185760018101805460ff1916905580546000908152600460208190526040822001819055600682015460038301805443918290550302906118fc9084908080612e6d565b6000838152600c60205260409020805491909103905550611509565b60018101548154600090815260046020526040902054600683015460ff90921691611943910261314b565b60018301805460ff1916911515919091179081905560ff1680156119645750805b15611af457815460009081526004602090815260408083205460068601546007548552600c845293829020930290925590516119a291849101615486565b6040516020818303038152906040528060200190518101906119c4919061494a565b60078054600090815260066020818152604080842086518155868301516001808301805492151560ff199384161790558884015160028085019190915560608a015160038086019190915560808b015160048087019190915560a08c015160058088019190915560c08d0151878b015560e0909c0151958b0180546001600160801b039097166001600160801b03199788161790558e8a52868a20840180549095169094558c548952838752858920840180546000190190558c5489528589208a0180548401905589548d548a52868a2060080181905589528787528589204392018290558954895285892080548a529387528589205497909652959095019301929092558454845280842090950183905583548352939091208201805490931690925580549091019055611b98565b600182015460ff168015611b06575080155b15611b795760008381526006602081815260408084208054855260048084528286205494880154898752600c8552838720950290945543600282018190558154865292849052932080549091016003840155600790920180546001600160801b0319169055018054600019019055611b98565b6000838152600660209081526040808320548352600491829052822001555b505050565b6000818152600b6020526040902054158015611bcb575060008181526006602052604090206001015460ff16155b8015611be7575060008181526006602052604090206005015415155b156115095760008181526006602090815260409182902060050154600354835160808101855282815230938101939093526001600160801b038385018190526060840152925190926001600160a01b03169163fc6f786560e01b91611c4f91906024016152e6565b60408051601f198184030181529181526020820180516001600160e01b03166001600160e01b0319909416939093179092529051611c8d9190614d3d565b6000604051808303816000865af19150503d8060008114611cca576040519150601f19603f3d011682016040523d82523d6000602084013e611ccf565b606091505b5050600354604051630852cd8d60e31b81526001600160a01b0390911691506342966c6890611d029084906004016155f1565b600060405180830381600087803b158015611d1c57600080fd5b505af1158015611d30573d6000803e3d6000fd5b50505060009283525050600660208190526040822082815560018101805460ff19169055600281018390556003810183905560048101839055600581018390559081019190915560070180546001600160801b0319169055565b60606000808351602085016000875af13d604051925080835260208301816000823e808201604052828015611dbe57611dc2565b8282fd5b5050505092915050565b838380611dd7575082155b15611dfa5760808101805160010190819052611dfa576080810180516000190190525b83156123545760a08101516001600160a01b031615801590611e20575060008160400151115b611e3c5760405162461bcd60e51b81526004016104949061515a565b611e50816101400151826101600151613312565b6040805160028082526060820183526000926020830190803683370190505090508560a001516001600160a01b0316630dfe16816040518163ffffffff1660e01b815260040160206040518083038186803b158015611eae57600080fd5b505afa158015611ec2573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611ee691906143d9565b81600081518110611ef357fe5b60200260200101906001600160a01b031690816001600160a01b0316815250508560a001516001600160a01b031663d21220a76040518163ffffffff1660e01b815260040160206040518083038186803b158015611f5057600080fd5b505afa158015611f64573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611f8891906143d9565b81600181518110611f9557fe5b60200260200101906001600160a01b031690816001600160a01b03168152505060008060005b835181101561209757600e5484516001600160a01b0390911690859083908110611fe157fe5b60200260200101516001600160a01b03161415611ffd57600191505b8460c001516001600160a01b031684828151811061201757fe5b60200260200101516001600160a01b03161415612037576001925061208f565b83818151811061204357fe5b60200260200101516001600160a01b03168560c001516001600160a01b03167fceb0f4ddf364ffb007b08eed9029e1e7e711b894ed4ae9309f30527d3611668960405160405180910390a35b600101611fbb565b50816120b55760405162461bcd60e51b815260040161049490615091565b8360e0015115806120c35750805b6120df5760405162461bcd60e51b815260040161049490614f0f565b60008461010001818152505083600460006005548152602001908152602001600020600082015181600001556020820151816001015560408201518160020155606082015181600301556080820151816004015560a08201518160050160006101000a8154816001600160a01b0302191690836001600160a01b0316021790555060c08201518160060160006101000a8154816001600160a01b0302191690836001600160a01b0316021790555060e08201518160060160146101000a81548160ff021916908315150217905550610100820151816007015561012082015181600801556101408201518160090160006101000a81548162ffffff021916908360020b62ffffff1602179055506101608201518160090160036101000a81548162ffffff021916908360020b62ffffff1602179055509050506040518061010001604052806005548152602001600015158152602001600081526020016000815260200160008152602001600081526020018560400151815260200160006001600160801b03168152506006600060075481526020019081526020016000206000820151816000015560208201518160010160006101000a81548160ff02191690831515021790555060408201518160020155606082015181600301556080820151816004015560a0820151816005015560c0820151816006015560e08201518160070160006101000a8154816001600160801b0302191690836001600160801b03160217905550905050600754600460006005548152602001908152602001600020600801819055506001600560008282540192505081905550600160076000828254019250508190555050505050610d66565b5060008181526006602081815260408084208054855260048084529482902082516101808101845281548152600182015494810194909452600280820154938501939093526003810154606085015294850154608084015260058501546001600160a01b0390811660a08501529385015493841660c0840152600160a01b90930460ff16151560e08301526007840154610100830152600884015461012083015260099093015480840b840b840b61014083015263010000009004830b830b90920b610160830152831561245657600181015460ff166124465760405162461bcd60e51b815260040161049490614f82565b61244f83611804565b5050610d66565b608086018051600019019052600181015460ff161561255757506000828152600660205260409020600381015443101561253257600082604001518760400151106124ab5782604001518760400151036124b7565b86604001518360400151035b6003830154909150439003808202801561252e57846040015189604001511115612515576124e48161314b565b6125005760405162461bcd60e51b815260040161049490614eb1565b6000868152600c602052604090208054820190555b612523866000806000612e6d565b604089015160068501555b5050505b6040808701516000858152600660209081528382205482526004905291909120600201555b600083815260066020908152604080832054835260049182905290912001541561148757608086015160008481526006602090815260408083205483526004918290529091200155505050505050565b600082815260086020908152604080832060018101548452600690925290912060048201546003820154439081116125df57806125e5565b82600301545b6007840154600685015460048601549293506001600160801b0390911691830302670de0b6b3a7640000028161261757fe5b600186015460009081526009602052604081208054939092049092019055612640908790610a3d565b60018501546000908152600960209081526040808320548a8452600a9092528220556004808701919091558401829055600254855491935061268f916001600160a01b0391821691168461301c565b600583015484546126ad91889185906001600160a01b031689613386565b60018401546000908152600d60205260409020805483019055600383015443108015906126de5750600183015460ff165b15611487576114878460010154611804565b600082815260066020818152604080842081516101008101835281548152600182015460ff161515938101939093526002810154918301919091526003810154606083015260048101546080830152600581015460a08301529182015460c08201526007909101546001600160801b031660e0820152612770908361365d565b6000838152600660208181526040808420548452600480835281852082516101808101845281548152600182015494810194909452600280820154938501939093526003810154606085015290810154608084015260058101546001600160a01b0390811660a08501529381015493841660c0840152600160a01b90930460ff16151560e083018190526007840154610100840152600884015461012084015260099093015480820b820b820b61014084015263010000009004810b810b900b6101608201529190612843576001612846565b60025b60ff166001600160401b038111801561285e57600080fd5b5060405190808252806020026020018201604052801561289257816020015b606081526020019060019003908161287d5790505b50905060008260a001516001600160a01b0316630dfe16816040518163ffffffff1660e01b815260040160206040518083038186803b1580156128d457600080fd5b505afa1580156128e8573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061290c91906143d9565b905060008360a001516001600160a01b031663d21220a76040518163ffffffff1660e01b815260040160206040518083038186803b15801561294d57600080fd5b505afa158015612961573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061298591906143d9565b905060008460e001516129995760006129be565b600e546001600160a01b038481169116146129b85786604001516129be565b86602001515b90506000808660e0015115612a11576040805160048152602481019091526020810180516001600160e01b0316630910874560e11b179052865187906001908110612a0557fe5b60200260200101819052505b60008a8152600b6020526040902054158015612a3c575060008a815260066020526040902060050154155b15612c7257638831645660e01b604051806101600160405280876001600160a01b03168152602001866001600160a01b031681526020018960a001516001600160a01b031663ddca3f436040518163ffffffff1660e01b815260040160206040518083038186803b158015612ab057600080fd5b505afa158015612ac4573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612ae89190614a13565b62ffffff16815260200189610140015160020b815260200189610160015160020b81526020018b6020015181526020018b6040015181526020016000815260200160008152602001306001600160a01b031681526020014261271001815250604051602401612b579190615543565b604051602081830303815290604052906001600160e01b0319166020820180516001600160e01b03838183161783525050505086600081518110612b9757fe5b6020908102919091010152600354604051631592ca1b60e31b81526001600160a01b039091169063ac9650d8908590612bd4908a90600401614dd3565b6000604051808303818588803b158015612bed57600080fd5b505af1158015612c01573d6000803e3d6000fd5b50505050506040513d6000823e601f3d908101601f19168201604052612c2a919081019061456d565b600081518110612c3657fe5b6020026020010151806020019051810190612c519190614b00565b60008e81526006602052604090206005019390935590995092509050612dd2565b6040805160c0810182528a51600090815260066020908152838220600501548352808d0151908301528b83015182840152606082018190526080820152612710420160a0820152905163219f5d1760e01b91612cd0916024016154ff565b604051602081830303815290604052906001600160e01b0319166020820180516001600160e01b03838183161783525050505086600081518110612d1057fe5b6020908102919091010152600354604051631592ca1b60e31b81526001600160a01b039091169063ac9650d8908590612d4d908a90600401614dd3565b6000604051808303818588803b158015612d6657600080fd5b505af1158015612d7a573d6000803e3d6000fd5b50505050506040513d6000823e601f3d908101601f19168201604052612da3919081019061456d565b600081518110612daf57fe5b6020026020010151806020019051810190612dca91906149dd565b919950925090505b8860200151821015612e1957612e198760e001518015612dff5750600e546001600160a01b038781169116145b612e095785612e0c565b60005b33848c602001510361301c565b8860400151811015612e6057612e608760e001518015612e465750600e546001600160a01b038681169116145b612e505784612e53565b60005b33838c604001510361301c565b5050505050505092915050565b6000848152600660205260408120600301544310612e9c57600085815260066020526040902060030154612e9e565b435b6000868152600660205260409020600701549091506001600160801b031615612f5f576000858152600660205260408120600281015460049091015410612ef657600086815260066020526040902060040154612f09565b6000868152600660205260409020600201545b600087815260066020819052604090912060078101549101549192506001600160801b03169082840302670de0b6b3a76400000281612f4457fe5b60008881526009602052604090208054929091049091019055505b60008581526006602052604090206004018190558215612f9857600085815260096020908152604080832054868452600a909252909120555b6001600160801b038416156130155781612fe357600085815260066020526040902060070180546001600160801b031981166001600160801b03918216870191821617909155611487565b600085815260066020526040902060070180546001600160801b03808216879003166001600160801b03199091161790555b5050505050565b8061302657611b98565b6001600160a01b0383166130b6576000826001600160a01b03168260405161304d90614d59565b60006040518083038185875af1925050503d806000811461308a576040519150601f19603f3d011682016040523d82523d6000602084013e61308f565b606091505b50509050806130b05760405162461bcd60e51b815260040161049490615068565b50611b98565b600061310e8463a9059cbb60e01b85856040516024016130d7929190614dba565b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152611d8a565b905080516000148061312f57508080602001905181019061312f9190614913565b610d665760405162461bcd60e51b815260040161049490615068565b60025460009081906001600160a01b0316156131e6576002546040516370a0823160e01b81526001600160a01b03909116906370a0823190613191903090600401614d5c565b60206040518083038186803b1580156131a957600080fd5b505afa1580156131bd573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906131e19190614a45565b6131e8565b475b60015460405163ba0f49b760e01b8152919250848301916001600160a01b039091169063ba0f49b79061321f9087906004016155f1565b600060405180830381600087803b15801561323957600080fd5b505af192505050801561324a575060015b506002546000906001600160a01b0316156132e4576002546040516370a0823160e01b81526001600160a01b03909116906370a082319061328f903090600401614d5c565b60206040518083038186803b1580156132a757600080fd5b505afa1580156132bb573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906132df9190614a45565b6132e6565b475b9050818114156132fc57600193505050506117ff565b6133078382036139f0565b506000949350505050565b8060020b8260020b126133375760405162461bcd60e51b815260040161049490614ef2565b620d89e719600283900b121561335f5760405162461bcd60e51b8152600401610494906150fe565b620d89e8600282900b13156104af5760405162461bcd60e51b8152600401610494906150b8565b6003546040805160808101825286815260006020820181905260018284018190526060830152915163fc6f786560e01b815291928392839283926001600160a01b03169163fc6f7865916133dc916004016152e6565b6040805180830381600087803b1580156133f557600080fd5b505af1158015613409573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061342d9190614b3d565b9092509050600080881561344e576134488b8a600080610fe1565b90925090505b6001600160801b03871615613514576003546040805160a0810182528c81526001600160801b038a16602082015260008183018190526060820152612710420160808201529051630624e65f60e11b81526001600160a01b0390921691630c49ccbe916134bd91600401615329565b6040805180830381600087803b1580156134d657600080fd5b505af11580156134ea573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061350e9190614b3d565b90965094505b94810194938401936135288b888888613aee565b90965094508515158061353b5750600085115b156136505760008061354e8d8989613c45565b6000805460408051631f9de8b560e21b81528151959f50939d50959750939550938493849384936001600160a01b0390921692637e77a2d49260048082019391829003018186803b1580156135a257600080fd5b505afa1580156135b6573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906135da9190614a5d565b9092509050811561362f57670de0b6b3a764000080838102048902816135fc57fe5b049350670de0b6b3a7640000808381020488028161361657fe5b04925061362486828661301c565b61362f85828561301c565b61363c868f868f0361301c565b613649858f858e0361301c565b5050505050505b5050505050505050505050565b604080516002808252606082018352600092602083019080368337019050508351600090815260046020818152604092839020600501548351630dfe168160e01b815293519495506001600160a01b031693630dfe1681938084019390829003018186803b1580156136ce57600080fd5b505afa1580156136e2573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061370691906143d9565b8160008151811061371357fe5b6001600160a01b0392831660209182029290920181019190915284516000908152600480835260409182902060050154825163d21220a760e01b8152925194169363d21220a79383830193909290829003018186803b15801561377557600080fd5b505afa158015613789573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906137ad91906143d9565b816001815181106137ba57fe5b6001600160a01b0392909216602092830291909101820152604080516002808252606082018352600093919290918301908036833701905050905082602001518160008151811061380757fe5b60200260200101818152505082604001518160018151811061382557fe5b6020026020010181815250506004600085600001518152602001908152602001600020600301548260008151811061385957fe5b6020908102919091018101518651600090815260049092526040909120600601546001600160a01b039081169116146138a6578160018151811061389957fe5b60200260200101516138bc565b816000815181106138b357fe5b60200260200101515b10156138da5760405162461bcd60e51b8152600401610494906152ba565b60005b8251811015613015578451600090815260046020526040902060060154600160a01b900460ff168015613934575082818151811061391757fe5b6020908102919091010151600e546001600160a01b039081169116145b156139705781818151811061394557fe5b6020026020010151341461396b5760405162461bcd60e51b815260040161049490615191565b6139e8565b6139a283828151811061397f57fe5b6020026020010151333085858151811061399557fe5b6020026020010151614077565b6139e88382815181106139b157fe5b6020026020010151600360009054906101000a90046001600160a01b03168484815181106139db57fe5b60200260200101516140e1565b6001016138dd565b806139fa57611509565b6002546001600160a01b0316613a73576001546040516302b492b560e11b81526001600160a01b0390911690630569256a908390613a3c9082906004016155f1565b6000604051808303818588803b158015613a5557600080fd5b505af1158015613a69573d6000803e3d6000fd5b5050505050611509565b600254600154613a90916001600160a01b039081169116836140e1565b6001546040516302b492b560e11b81526001600160a01b0390911690630569256a90613ac09084906004016155f1565b600060405180830381600087803b158015613ada57600080fd5b505af1158015613015573d6000803e3d6000fd5b6000848152600860209081526040808320815160a0808201845282546001600160a01b03168252600180840154838701819052600280860154858801526003808701546001600160801b039081166060808901919091526004988901546080808a0191909152948c526006808c528a8d208b5161010081018d52815481529781015460ff1615159c88019c909c52938b015499860199909952908901549784019790975294870154908201526005860154918101919091529184015460c0830152600790930154821660e0820152839291871615801590613be4575081606001516001600160801b0316876001600160801b0316145b8015613bff575080602001511580613bff5750806060015143115b8015613c1f57506020808301516000908152600b90915260409020546001145b15613c335760001980935093505050613c3c565b85859350935050505b94509492505050565b6000806000806000861180613c5a5750600085115b613c765760405162461bcd60e51b815260040161049490615138565b60008781526008602090815260408083206001015483526006808352818420548452600490925282200154600160a01b900460ff169081613cb8576001613cbb565b60035b60ff166001600160401b0381118015613cd357600080fd5b50604051908082528060200260200182016040528015613d0757816020015b6060815260200190600190039081613cf25790505b506040805160808101825260008c8152600860209081528382206001015482526006815292902060050154815291925063fc6f786560e01b9190810184613d4e5730613d51565b60005b6001600160a01b031681526001600160801b03808c1660208301528a1660409182015251613d8291906024016152e6565b604051602081830303815290604052906001600160e01b0319166020820180516001600160e01b03838183161783525050505081600081518110613dc257fe5b60209081029190910181019190915260035460008b8152600883526040808220600101548252600690935282902060050154915163133f757160e31b81526001600160a01b03909116916399fbab8891613e1f91906004016155f1565b6101806040518083038186803b158015613e3857600080fd5b505afa158015613e4c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613e709190614ba9565b50979f50959d505089159750613fb896505050505050505760405163125012df60e21b90613ea5906000903090602401614e95565b604051602081830303815290604052906001600160e01b0319166020820180516001600160e01b03838183161783525050505081600181518110613ee557fe5b6020908102919091010152600e5463df2ab5bb60e01b906001600160a01b03888116911614613f145786613f16565b855b600030604051602401613f2b93929190614d94565b604051602081830303815290604052906001600160e01b0319166020820180516001600160e01b03838183161783525050505081600281518110613f6b57fe5b6020908102919091010152600e546001600160a01b03878116911614613f915785613f94565b60005b600e549096506001600160a01b03868116911614613fb25784613fb5565b60005b94505b600354604051631592ca1b60e31b81526001600160a01b039091169063ac9650d890613fe8908490600401614dd3565b600060405180830381600087803b15801561400257600080fd5b505af1158015614016573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261403e919081019061456d565b60008151811061404a57fe5b60200260200101518060200190518101906140659190614b3d565b969a9599509750949550929350505050565b8061408157610d66565b60006140a4856323b872dd60e01b8686866040516024016130d793929190614d70565b90508051600014806140c55750808060200190518101906140c59190614913565b6130155760405162461bcd60e51b815260040161049490614ff5565b806140eb57611b98565b600061410c8463095ea7b360e01b85856040516024016130d7929190614dba565b905080516000148061412d57508080602001905181019061412d9190614913565b610d665760405162461bcd60e51b8152600401610494906151e1565b60405180610100016040528060008152602001600015158152602001600081526020016000815260200160008152602001600081526020016000815260200160006001600160801b031681525090565b604051806101800160405280600081526020016000815260200160008152602001600081526020016000815260200160006001600160a01b0316815260200160006001600160a01b031681526020016000151581526020016000815260200160008152602001600060020b8152602001600060020b81525090565b6040518060a0016040528060006001600160a01b03168152602001600081526020016000815260200160006001600160801b03168152602001600081525090565b80356117ff816156a7565b80516117ff816156a7565b60008083601f84011261427c578182fd5b5081356001600160401b03811115614292578182fd5b60208301915083602080830285010111156142ac57600080fd5b9250929050565b80356117ff816156bc565b80516117ff816156bc565b600082601f8301126142d9578081fd5b81356142ec6142e782615648565b615608565b818152846020838601011115614300578283fd5b816020850160208301379081016020019190915292915050565b80356117ff816156ca565b80516117ff816156ca565b600060808284031215614341578081fd5b604051608081018181106001600160401b038211171561435d57fe5b8060405250809150823581526020830135602082015260408301356040820152606083013561438b816156a7565b6060919091015292915050565b80516117ff816156d9565b805162ffffff811681146117ff57600080fd5b6000602082840312156143c7578081fd5b81356143d2816156a7565b9392505050565b6000602082840312156143ea578081fd5b81516143d2816156a7565b600080600080600060a0868803121561440c578081fd5b8551614417816156a7565b6020870151909550614428816156bc565b6040870151909450614439816156a7565b606087015190935061444a816156a7565b608087015190925061445b816156a7565b809150509295509295909350565b600080600080600060a08688031215614480578283fd5b853561448b816156a7565b945060208601356001600160401b03808211156144a6578485fd5b6144b289838a016142c9565b9550604088013591506144c4826156a7565b9093506060870135906144d6826156a7565b909250608087013590808211156144eb578283fd5b506144f8888289016142c9565b9150509295509295909350565b6000806000806040858703121561451a578182fd5b84356001600160401b0380821115614530578384fd5b61453c8883890161426b565b90965094506020870135915080821115614554578384fd5b506145618782880161426b565b95989497509550505050565b6000602080838503121561457f578182fd5b82516001600160401b03811115614594578283fd5b8301601f810185136145a4578283fd5b80516145b26142e78261562b565b81815283810190838501865b8481101561462157815186018a603f8201126145d8578889fd5b8781015160406145ea6142e783615648565b8281528d828486010111156145fd578b8cfd5b61460c838c830184870161566f565b875250505092860192908601906001016145be565b509098975050505050505050565b60006020808385031215614641578182fd5b82356001600160401b0380821115614657578384fd5b818501915085601f83011261466a578384fd5b81356146786142e78261562b565b818152848101908486016101e0808502870188018b1015614697578889fd5b8896505b848710156147d057818b03818112156146b257898afd5b6040805160808082018281108b821117156146c957fe5b835285356146d6816156bc565b8252858c01356146e5816156bc565b828d015285830135838301526060610180605f198601811315614706578e8ffd5b61470f81615608565b9550818801358652828801358e87015260a0808901358688015260c09550858901358388015260e0808a013585890152610100945061474f858b01614255565b828901526101209150614763828b01614255565b878901526101409650614777878b016142b3565b908801526101608981013585890152828a01358289015261479b6101a08b0161431a565b878901526147ac6101c08b0161431a565b9088015250508201939093528652505060019690960195928701929081019061469b565b50909998505050505050505050565b600060208083850312156147f1578182fd5b82516001600160401b03811115614806578283fd5b8301601f81018513614816578283fd5b80516148246142e78261562b565b81815283810190838501610180808502860187018a1015614843578788fd5b8795505b848610156146215780828b03121561485d578788fd5b61486681615608565b82518152878301518882015260408084015190820152606080840151908201526080808401519082015260a061489d818501614260565b9082015260c06148ae848201614260565b9082015260e06148bf8482016142be565b90820152610100838101519082015261012080840151908201526101406148e7818501614325565b908201526101606148f9848201614325565b908201528452600195909501949286019290810190614847565b600060208284031215614924578081fd5b81516143d2816156bc565b600060808284031215614940578081fd5b6143d28383614330565b600061010080838503121561495d578182fd5b604051908101906001600160401b038211818310171561497957fe5b816040528351815261498d602085016142be565b602082015260408401516040820152606084015160608201526080840151608082015260a084015160a082015260c084015160c08201526149d060e08501614398565b60e0820152949350505050565b6000806000606084860312156149f1578081fd5b83516149fc816156d9565b602085015160409095015190969495509392505050565b600060208284031215614a24578081fd5b6143d2826143a3565b600060208284031215614a3e578081fd5b5035919050565b600060208284031215614a56578081fd5b5051919050565b60008060408385031215614a6f578182fd5b825191506020830151614a81816156a7565b809150509250929050565b60008060408385031215614a9e578182fd5b823591506020830135614a81816156bc565b60008060a08385031215614ac2578182fd5b82359150614ad38460208501614330565b90509250929050565b60008060408385031215614aee578182fd5b823591506020830135614a81816156d9565b60008060008060808587031215614b15578182fd5b845193506020850151614b27816156d9565b6040860151606090960151949790965092505050565b60008060408385031215614b4f578182fd5b505080516020909101519092909150565b60008060008060808587031215614b75578182fd5b84359350602085013592506040850135614b8e816156d9565b91506060850135614b9e816156d9565b939692955090935050565b6000806000806000806000806000806000806101808d8f031215614bcb57898afd5b8c516bffffffffffffffffffffffff81168114614be6578a8bfd5b9b50614bf460208e01614260565b9a50614c0260408e01614260565b9950614c1060608e01614260565b9850614c1e60808e016143a3565b9750614c2c60a08e01614325565b9650614c3a60c08e01614325565b9550614c4860e08e01614398565b94506101008d015193506101208d01519250614c676101408e01614398565b9150614c766101608e01614398565b90509295989b509295989b509295989b565b6001600160a01b03169052565b15159052565b60008151808452614cb381602086016020860161566f565b601f01601f19169290920160200192915050565b60020b9052565b8051825260208101511515602083015260408101516040830152606081015160608301526080810151608083015260a081015160a083015260c081015160c08301526001600160801b0360e08201511660e08301525050565b6001600160801b03169052565b62ffffff169052565b60008251614d4f81846020870161566f565b9190910192915050565b90565b6001600160a01b0391909116815260200190565b6001600160a01b039384168152919092166020820152604081019190915260600190565b6001600160a01b03938416815260ff929092166020830152909116604082015260600190565b6001600160a01b03929092168252602082015260400190565b6000602080830181845280855180835260408601915060408482028701019250838701855b82811015614e2657603f19888603018452614e14858351614c9b565b94509285019290850190600101614df8565b5092979650505050505050565b6020808252825182820181905260009190848201906040850190845b81811015614e7657614e62838551614cce565b928401926101009290920191600101614e4f565b50909695505050505050565b6000602082526143d26020830184614c9b565b60ff9290921682526001600160a01b0316602082015260400190565b60208082526021908201527f496e73756666696369656e742072657761726420696e20657874656e73696f6e6040820152601760f91b606082015260800190565b602080825260039082015262544c5560e81b604082015260600190565b6020808252600c908201526b27379022aa24103a37b5b2b760a11b604082015260600190565b6020808252600c908201526b155b985d5d1a1bdc9a5e995960a21b604082015260600190565b6020808252600d908201526c0496e76616c696420736574757609c1b604082015260600190565b6020808252600c908201526b4e6f7420706f737369626c6560a01b604082015260600190565b60208082526010908201526f496e76616c696420776974686472617760801b604082015260600190565b602080825260099082015268139bdd081bdddb995960ba1b604082015260600190565b6020808252601390820152721514905394d19154919493d357d19052531151606a1b604082015260600190565b6020808252600690820152650d8cadccee8d60d31b604082015260600190565b6020808252600c908201526b24b73b30b634b21037b832b760a11b604082015260600190565b6020808252600f908201526e1514905394d1915497d19052531151608a1b604082015260600190565b6020808252600d908201526c27379036b0b4b7103a37b5b2b760991b604082015260600190565b60208082526003908201526254554d60e81b604082015260600190565b6020808252600f908201526e24b73b30b634b2103a37b3b3b6329760891b604082015260600190565b602080825260039082015262544c4d60e81b604082015260600190565b60208082526003908201526208aa8960eb1b604082015260600190565b6020808252600890820152670c08185b5bdd5b9d60c21b604082015260600190565b6020808252601b908201527f496e76616c696420736574757020636f6e66696775726174696f6e0000000000604082015260600190565b602080825260139082015272496e636f7272656374206574682076616c756560681b604082015260600190565b60208082526009908201526832bc3a32b739b4b7b760b91b604082015260600190565b6020808252600e908201526d1054141493d59157d1905253115160921b604082015260600190565b602080825260139082015272105b1c9958591e481a5b9a5d1a585b1a5e9959606a1b604082015260600190565b60208082526018908201527f546f6f206561726c7920666f7220746869732073657475700000000000000000604082015260600190565b60208082526010908201526f5365747570206e6f742061637469766560801b604082015260600190565b6020808252600990820152684e6f7420456d70747960b81b604082015260600190565b60208082526012908201527124b73b30b634b2103634b8bab4b234ba3c9760711b604082015260600190565b815181526020808301516001600160a01b0316908201526040808301516001600160801b0390811691830191909152606092830151169181019190915260800190565b600060a082019050825182526001600160801b03602084015116602083015260408301516040830152606083015160608301526080830151608083015292915050565b81516001600160a01b0316815260208083015190820152604080830151908201526060808301516001600160801b0316908201526080918201519181019190915260a00190565b61028081016153c28285614cce565b61010083518184015260208401516101208181860152604086015191506101408281870152606087015192506101608381880152608088015161018088015260a088015193506154166101a0880185614c88565b60c0880151935061542b6101c0880185614c88565b60e088015193506154406101e0880185614c95565b93870151610200870152818701516102208701528087015193615467610240880186614cc7565b870151935061547e92505050610260840182614cc7565b509392505050565b81548152600182015461010082019061549e90615669565b6154ab6020840182614c95565b50600283015460408301526003830154606083015260048301546080830152600583015460a0830152600683015460c08301526154eb600784015461569b565b6154f860e0840182614d27565b5092915050565b600060c082019050825182526020830151602083015260408301516040830152606083015160608301526080830151608083015260a083015160a083015292915050565b600061016082019050615557828451614c88565b60208301516155696020840182614c88565b50604083015161557c6040840182614d34565b50606083015161558f6060840182614cc7565b5060808301516155a26080840182614cc7565b5060a083015160a083015260c083015160c083015260e083015160e0830152610100808401518184015250610120808401516155e082850182614c88565b505061014092830151919092015290565b90815260200190565b918252602082015260400190565b6040518181016001600160401b038111828210171561562357fe5b604052919050565b60006001600160401b0382111561563e57fe5b5060209081020190565b60006001600160401b0382111561565b57fe5b50601f01601f191660200190565b60ff1690565b60005b8381101561568a578181015183820152602001615672565b83811115610d665750506000910152565b6001600160801b031690565b6001600160a01b038116811461150957600080fd5b801515811461150957600080fd5b8060020b811461150957600080fd5b6001600160801b038116811461150957600080fdfea2646970667358221220ef85ae93dcab682230b58c1a1f3d859b551eb677920230982287f9c4ea7eba0964736f6c63430007060033
Deployed Bytecode Sourcemap
63961:36796:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;64705:43;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;70902:318;;;;;;;;;;-1:-1:-1;70902:318:0;;;;;:::i;:::-;;:::i;:::-;;65892:50;;;;;;;;;;-1:-1:-1;65892:50:0;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;64637:25::-;;;;;;;;;;;;;:::i;65067:38::-;;;;;;;;;;;;;:::i;70089:202::-;;;;;;;;;;-1:-1:-1;70089:202:0;;;;;:::i;:::-;;:::i;:::-;;;;;;;;:::i;65276:34::-;;;;;;;;;;;;;:::i;67479:1080::-;;;;;;;;;;-1:-1:-1;67479:1080:0;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;73814:130::-;;;;;;;;;;-1:-1:-1;73814:130:0;;;;;:::i;:::-;;:::i;70299:314::-;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;77147:1079::-;;;;;;;;;;-1:-1:-1;77147:1079:0;;;;;:::i;:::-;;:::i;75369:1017::-;;;;;;;;;;-1:-1:-1;75369:1017:0;;;;;:::i;:::-;;:::i;71228:1364::-;;;;;;:::i;:::-;;:::i;65949:46::-;;;;;;;;;;-1:-1:-1;65949:46:0;;;;;:::i;:::-;;:::i;64818:61::-;;;;;;;;;;;;;:::i;64020:51::-;;;;;;;;;;;;;:::i;64557:23::-;;;;;;;;;;;;;:::i;78381:1225::-;;;;;;;;;;-1:-1:-1;78381:1225:0;;;;;:::i;:::-;;:::i;:::-;;;;;;;;:::i;68895:846::-;;;;;;;;;;-1:-1:-1;68895:846:0;;;;;:::i;:::-;;:::i;70621:273::-;;;;;;;;;;-1:-1:-1;70621:273:0;;;;;:::i;:::-;;:::i;68567:320::-;;;;;;;;;;-1:-1:-1;68567:320:0;;;;;:::i;:::-;;:::i;72600:1081::-;;;;;;:::i;:::-;;:::i;69941:140::-;;;;;;;;;;-1:-1:-1;69941:140:0;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;64705:43::-;;;-1:-1:-1;;;;;64705:43:0;;:::o;70902:318::-;70965:18;70986:27;;;:11;:27;;;;;;;;:42;;;71047:19;;;:7;:19;;;;;;:26;;;;;:73;;;;-1:-1:-1;71092:19:0;;;;:7;:19;;;;;:28;;;71077:12;:43;71047:73;71039:101;;;;-1:-1:-1;;;71039:101:0;;;;;;;:::i;:::-;;;;;;;;;71151:24;71164:10;71151:12;:24::i;:::-;71186:26;71201:10;71186:14;:26::i;:::-;70902:318;;:::o;65892:50::-;;;;;;;;;;;;;:::o;64637:25::-;;;-1:-1:-1;;;;;64637:25:0;;:::o;65067:38::-;;;;:::o;70089:202::-;70154:19;;:::i;:::-;70175:23;;:::i;:::-;70219:7;:19;70227:10;70219:19;;;;;;;;;;;70240:11;:42;70252:7;:19;70260:10;70252:19;;;;;;;;;;;:29;;;70240:42;;;;;;;;;;;70211:72;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;70211:72:0;-1:-1:-1;;;;;70211:72:0;-1:-1:-1;;;;;70211:72:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;70211:72:0;-1:-1:-1;;;;;70211:72:0;-1:-1:-1;;;;;70211:72:0;;;;;;;;;;;;;;;;-1:-1:-1;;;;;70211:72:0;-1:-1:-1;;;;;70211:72:0;-1:-1:-1;;;;;70211:72:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;70089:202;;;:::o;65276:34::-;;;;:::o;67479:1080::-;67742:1;67722:8;67669:32;;-1:-1:-1;;;;;67722:8:0;:22;67714:54;;;;-1:-1:-1;;;67714:54:0;;;;;;;:::i;:::-;67788:10;:22;;-1:-1:-1;;;;;;67788:22:0;-1:-1:-1;;;;;67788:22:0;;;;;;;;67779:60;;;;-1:-1:-1;;;67779:60:0;;;;;;;:::i;:::-;67850:8;:21;;-1:-1:-1;;;;;;67850:21:0;;;67861:10;67850:21;;;67899:19;:40;;-1:-1:-1;;;;;67899:40:0;;;;;;;;67887:53;;67899:40;;67887:53;;;67955:28;;;;;;67987:13;67955:45;67951:136;;68045:10;;68039:36;;-1:-1:-1;;;;;68045:10:0;68057:17;68039:5;:36::i;:::-;68017:58;;67951:136;68106:26;:93;;-1:-1:-1;;;;;;68106:93:0;-1:-1:-1;;;;;68106:93:0;;;;;;;;68105:103;;;-1:-1:-1;;;68105:103:0;;;;:101;;:103;;;;;;;;;;;;;;;68106:93;68105:103;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;68097:5;:111;;-1:-1:-1;;;;;;68097:111:0;-1:-1:-1;;;;;68097:111:0;;;;;;;;;;68222:29;;:33;68219:333;;68272:43;68329:22;68318:56;;;;;;;;;;;;:::i;:::-;68272:102;;68393:9;68389:152;68412:17;:24;68408:1;:28;68389:152;;;68462:63;68488:17;68506:1;68488:20;;;;;;;;;;;;;;68510:4;68516:5;68523:1;68462:25;:63::i;:::-;68438:3;;68389:152;;;;68219:333;;67479:1080;;;;;;;:::o;73814:130::-;66395:22;;;;:10;:22;;;;;:34;73883:10;;-1:-1:-1;;;;;66395:34:0;66433:10;66395:48;:93;;;;-1:-1:-1;66447:22:0;;;;:10;:22;;;;;:36;;;:41;;66395:93;66387:115;;;;-1:-1:-1;;;66387:115:0;;;;;;;:::i;:::-;73906:30:::1;73922:10;73934:1;73906:15;:30::i;70299:314::-:0;70347:21;70381:35;70438:19;;-1:-1:-1;;;;;70419:39:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;70381:77;;70474:9;70469:106;70493:19;;70489:1;:23;70469:106;;;70553:10;;;;:7;:10;;;;;;;;;70534:29;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;70534:29:0;;;;;:16;;:13;;70561:1;;70534:16;;;;;;;;;;;;;;;:29;70514:3;;70469:106;;;-1:-1:-1;70592:13:0;-1:-1:-1;70299:314:0;:::o;77147:1079::-;77235:14;77303:22;;;:10;:22;;;;;;;;77262:63;;;;;;;;;-1:-1:-1;;;;;77262:63:0;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;77262:63:0;;;;;;;;;;;;;;;;77401:31;;;:19;:31;;;;;;77371:26;;77347:51;;:23;:51;;;;;;;77262:63;;77480:4;;77347:85;77346:130;77345:139;77336:148;;77499:5;77495:681;;;77567:26;;;;;77521:20;77559:35;;;:7;:35;;;;;;:44;;;77544:12;:59;:121;;77629:26;;;;;77621:35;;;;:7;:35;;;;;;:44;;;77544:121;;;77606:12;77544:121;77768:26;;;;;;77680:23;77760:35;;;:7;:35;;;;;;;:46;;;77714:26;;77706:35;;;;:51;;;77521:144;;-1:-1:-1;77680:23:0;;77706:100;:203;;77866:26;;;;;77858:35;;;;:7;:35;;;;;;:51;;;77706:203;;;77817:26;;;;;77809:35;;;;:7;:35;;;;;;:46;;;77706:203;78045:26;;;;;;77924:11;78037:35;;;:7;:35;;;;;;;;:47;;;77983:26;;77975:35;;;;:50;;;;77680:229;;-1:-1:-1;77924:11:0;;-1:-1:-1;;;;;78037:47:0;;;;77941:30;;;77940:85;78029:4;77939:94;78037:47;77938:146;;;;;77924:160;;78160:4;78116:15;:40;;;-1:-1:-1;;;;;78110:46:0;:3;:46;78109:55;;;;;;78099:65;;;;77495:681;;;;78196:22;;;78186:32;;77147:1079;-1:-1:-1;;77147:1079:0:o;75369:1017::-;66395:22;;;;:10;:22;;;;;:34;75458:10;;-1:-1:-1;;;;;66395:34:0;66433:10;66395:48;:93;;;;-1:-1:-1;66447:22:0;;;;:10;:22;;;;;:36;;;:41;;66395:93;66387:115;;;;-1:-1:-1;;;66387:115:0;;;;;;;:::i;:::-;75526:39:::1;75568:22:::0;;;:10:::1;:22;::::0;;;;75659:29:::1;::::0;::::1;::::0;:34;;::::1;::::0;:111:::1;;-1:-1:-1::0;75730:40:0::1;::::0;::::1;::::0;-1:-1:-1;;;;;75730:40:0;;::::1;75710:60:::0;;::::1;;;75659:111;:169;;;;-1:-1:-1::0;75787:27:0;;-1:-1:-1;;;;;75787:27:0::1;75818:10;75787:41;75659:169;75637:235;;;;-1:-1:-1::0;;;75637:235:0::1;;;;;;;:::i;:::-;75883:45;75899:10;75911:16;75883:15;:45::i;:::-;75947:26;::::0;::::1;::::0;75939:35:::1;::::0;;;:7:::1;:35;::::0;;;;:47:::1;;:67:::0;;-1:-1:-1;;;;;75939:67:0;;::::1;::::0;;::::1;::::0;::::1;-1:-1:-1::0;;;;;;75939:67:0;;::::1;;::::0;;;76017:40:::1;::::0;::::1;:60:::0;;;;::::1;::::0;;::::1;::::0;::::1;::::0;::::1;::::0;;;::::1;::::0;;;;76151:40:::1;76147:232;;76265:1;76234:26:::0;::::1;::::0;;76213:48:::1;::::0;;;:20:::1;:48;::::0;;;;:53;;-1:-1:-1;;76213:53:0;;;76296:26;76281:42:::1;::::0;:14:::1;:42::i;:::-;76345:22;::::0;;;:10:::1;:22;::::0;;;;76338:29;;-1:-1:-1;;;;;;76338:29:0::1;::::0;;;;::::1;::::0;;;::::1;::::0;::::1;::::0;;;::::1;::::0;::::1;::::0;;-1:-1:-1;;;;;;76338:29:0::1;::::0;;::::1;;::::0;76147:232:::1;66513:1;75369:1017:::0;;;:::o;71228:1364::-;71364:18;;71321;71356:27;;;:7;:27;;;;;:34;;;;;71352:119;;71429:18;;71421:27;;;;:7;:27;;;;;:37;71407:52;;:13;:52::i;:::-;71497:18;;71489:27;;;;:7;:27;;;;;:34;;;;;71481:63;;;;-1:-1:-1;;;71481:63:0;;;;;;;:::i;:::-;71571:18;;71563:27;;;;:7;:27;;;;;:38;;;71605:12;-1:-1:-1;71563:54:0;;;:109;;-1:-1:-1;71629:18:0;;71621:27;;;;:7;:27;;;;;:36;;;71660:12;-1:-1:-1;71563:109:0;71555:135;;;;-1:-1:-1;;;71555:135:0;;;;;;;:::i;:::-;71762:21;;;;71739:19;;-1:-1:-1;;;;;71762:35:0;71761:74;;71825:10;71761:74;;;71801:7;:21;;;71761:74;71936:18;;71912:43;;71739:96;;-1:-1:-1;71912:43:0;;71739:96;;71936:18;71912:43;;;:::i;:::-;;;;-1:-1:-1;;71912:43:0;;;;;;;;;71902:54;;71912:43;71902:54;;;;71894:63;71976:22;;;:10;:22;;;;;:36;;;71902:54;;-1:-1:-1;71976:41:0;71968:66;;;;-1:-1:-1;;;71968:66:0;;;;;;;:::i;:::-;72045:23;72071:42;72085:7;:18;;;72105:7;72071:13;:42::i;:::-;72045:68;;72124:72;72141:7;:18;;;72161:15;72178:10;72190:5;72124:16;:72::i;:::-;72232:235;;;;;;;;-1:-1:-1;;;;;72232:235:0;;;;;;72315:18;;72232:235;;;;;;;72443:12;72232:235;;;;;;-1:-1:-1;;;;;72232:235:0;;;;;;;;;-1:-1:-1;72232:235:0;;;;;;72207:22;;;:10;:22;;;;;:260;;;;-1:-1:-1;;;;;;72207:260:0;;;;;;;;;;;-1:-1:-1;72207:260:0;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;72207:260:0;;;;;;;;;;;;;;;;;;72499:18;;72478:40;;:20;:40;;;;;;:45;;;;;;;;72539;;72207:22;;72539:45;;-1:-1:-1;;72539:45:0;71228:1364;;;;;:::o;65949:46::-;;;;;;;;;;;;;:::o;64818:61::-;;;-1:-1:-1;;;;;64818:61:0;;:::o;64020:51::-;64067:4;64020:51;:::o;64557:23::-;;;-1:-1:-1;;;;;64557:23:0;;:::o;78381:1225::-;78510:18;78602:22;;;:10;:22;;;;;;;;78561:63;;;;;;;;;;-1:-1:-1;;;;;78561:63:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;78561:63:0;;;;;;;;;;;;;;;;;;;;;;;;78669:35;;;:7;:35;;;;;;78635:69;;78561:63;78635:69;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;78510:18;;78561:63;;78510:18;;78748:12;:35;:73;;78809:12;78748:73;;;78786:11;:20;;;78748:73;78717:104;;78832:39;78990:11;:39;79002:15;:26;;;78990:39;;;;;;;;;;;;78963:11;:22;;;78940:20;:45;78910:11;:26;;;:76;78909:120;64067:4;78884:6;:20;:147;;;;;;;-1:-1:-1;;;;;;79206:16:0;;;:36;;;;-1:-1:-1;;;;;;79226:16:0;;;79206:36;79203:226;;;79327:26;;;79373:22;;;:10;:22;;;;;;;;79327:26;79373:33;;79365:42;;:7;:42;;;;;;;:51;;;79299:118;;-1:-1:-1;;;79299:118:0;;-1:-1:-1;;;;;79327:26:0;;;;79299:65;;:118;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;79259:158;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;79203:226;64067:4;-1:-1:-1;;;;;79453:45:0;;;;79452:61;;-1:-1:-1;64067:4:0;-1:-1:-1;;;;;79538:45:0;;;;79537:61;79524:74;;78381:1225;;;;;;;;;;;:::o;68895:846::-;68992:9;68988:179;69011:19;;69007:1;:23;68988:179;;;69060:23;;;;:20;:23;;;;;;:28;:50;;;;-1:-1:-1;69093:10:0;;;;:7;:10;;;;;:17;;;;;69092:18;69060:50;:81;;;;-1:-1:-1;69114:10:0;;;;:7;:10;;;;;:22;;;-1:-1:-1;;;;;69114:22:0;:27;69060:81;69052:103;;;;-1:-1:-1;;;69052:103:0;;;;;;;:::i;:::-;69032:3;;68988:179;;;-1:-1:-1;69218:10:0;;69203:33;;;-1:-1:-1;;;69203:33:0;;;;69182:16;;-1:-1:-1;;;;;69218:10:0;;69203:31;;:33;;;;;;;;;;;;;;69218:10;69203:33;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1;69177:59:0;-1:-1:-1;;;69255:31:0;;;;-1:-1:-1;69247:50:0;;;;-1:-1:-1;;;69247:50:0;;;;;;;:::i;:::-;69312:9;69308:426;69327:17;;;69308:426;;;69366:13;69382:6;;69389:1;69382:9;;;;;;;;;;;;;;;;;;;;:::i;:::-;69366:25;;69406:14;69423:7;;69431:1;69423:10;;;;;;;;;;;;;;;-1:-1:-1;;;;;;;69456:22:0;;69448:31;;;;;;-1:-1:-1;;;;;69497:19:0;;69494:229;;69538:11;69554:8;-1:-1:-1;;;;;69554:13:0;69576:6;69554:33;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;69537:50;;;69614:6;69606:22;;;;-1:-1:-1;;;69606:22:0;;;;;;;:::i;:::-;69494:229;;;;69669:38;69683:5;69690:8;69700:6;69669:13;:38::i;:::-;-1:-1:-1;;69346:3:0;;69308:426;;;;68895:846;;;;;:::o;70621:273::-;70735:1;70694:27;;;:11;:27;;;;;;;;:38;;:42;;;;:105;;-1:-1:-1;70741:51:0;70749:27;;;:11;:27;;;;;;;;:42;;;70741:51;;:7;:51;;;;;:58;;;;;70740:59;70694:105;70686:133;;;;-1:-1:-1;;;70686:133:0;;;;;;;:::i;:::-;70843:27;;;;:11;:27;;;;;:42;;;70830:56;;:12;:56::i;:::-;70621:273;:::o;68567:320::-;66193:10;;-1:-1:-1;;;;;66193:10:0;66179;:24;66171:49;;;;-1:-1:-1;;;66171:49:0;;;;;;;:::i;:::-;68687:9:::1;68682:198;68706:13;:20;68702:1;:24;68682:198;;;68748:120;68774:13;68788:1;68774:16;;;;;;;;;;;;;;:21;;;68797:13;68811:1;68797:16;;;;;;;;;;;;;;:20;;;68819:13;68833:1;68819:16;;;;;;;;;;;;;;:24;;;68845:13;68859:1;68845:16;;;;;;;;;;;;;;:22;;;68748:25;:120::i;:::-;68728:3;;68682:198;;72600:1081:::0;72721:18;;;66698:19;;;:7;:19;;;;;:26;;;;;66690:55;;;;-1:-1:-1;;;66690:55:0;;;;;;;:::i;:::-;66764:19;;;;:7;:19;;;;;:30;;;66798:12;-1:-1:-1;66764:46:0;;;:93;;-1:-1:-1;66814:19:0;;;;:7;:19;;;;;:28;;;66845:12;-1:-1:-1;66764:93:0;66756:119;;;;-1:-1:-1;;;66756:119:0;;;;;;;:::i;:::-;66395:22:::1;::::0;;;:10:::1;:22;::::0;;;;:34;72757:10;;-1:-1:-1;;;;;66395:34:0::1;66433:10;66395:48;:93:::0;::::1;;;-1:-1:-1::0;66447:22:0::1;::::0;;;:10:::1;:22;::::0;;;;:36:::1;;::::0;:41;::::1;66395:93;66387:115;;;;-1:-1:-1::0;;;66387:115:0::1;;;;;;;:::i;:::-;72818:39:::2;72860:22:::0;;;:10:::2;:22;::::0;;;;;;;72936:26:::2;::::0;::::2;::::0;72928:35;;;:7:::2;:35:::0;;;;;;72860:22;;72928:35;;73000:50:::2;::::0;73042:7;73000:13:::2;:50::i;:::-;72974:76;;73246:11;:23;;;;;;;;;;-1:-1:-1::0;;;;;73246:23:0::2;-1:-1:-1::0;;;;;73159:110:0::2;73208:11;:26;;;73177:11;:27;;;73162:12;:42;73161:73;73238:4;73160:82;73159:110;;;;;73128:26;::::0;::::2;::::0;73104:51:::2;::::0;;;:23:::2;:51;::::0;;;;:165;;73159:110;;;::::2;73104:165:::0;;::::2;::::0;;73305:45:::2;::::0;73332:10;;73305:26:::2;:45::i;:::-;73280:22;::::0;;::::2;:70:::0;;;;73419:26:::2;::::0;::::2;::::0;73395:51:::2;::::0;;;:23:::2;:51;::::0;;;;;;;;73361:31;;;:19:::2;:31:::0;;;;;:85;;;;73457:40:::2;::::0;;::::2;:59:::0;;-1:-1:-1;;;;;73457:59:0;;::::2;::::0;::::2;::::0;::::2;-1:-1:-1::0;;;;;;73457:59:0;;::::2;;::::0;;;73608:12:::2;73578:27:::0;;::::2;:42:::0;;;;73631:23:::2;::::0;;::::2;:42:::0;;;;::::2;::::0;;::::2;::::0;;::::2;::::0;;;::::2;;::::0;;;-1:-1:-1;;;72600:1081:0:o;69941:140::-;70009:22;;:::i;:::-;-1:-1:-1;70051:22:0;;;;:10;:22;;;;;;;;;70044:29;;;;;;;;;-1:-1:-1;;;;;70044:29:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;70044:29:0;;;;;;;;;;;;;;69941:140;;;;:::o;88893:2666::-;88954:26;88983:19;;;:7;:19;;;;;;;;89144:15;;89132:28;;:11;:28;;;;;;:39;;;89117:12;:54;89109:91;;;;-1:-1:-1;;;89109:91:0;;;;;;;:::i;:::-;89217:12;;;;;;:46;;;;;89249:5;:14;;;89233:12;:30;;89217:46;:94;;;;-1:-1:-1;89279:15:0;;89267:28;;;;:11;:28;;;;;;;;:39;;:44;89217:94;89213:625;;;89328:12;;:20;;-1:-1:-1;;89328:20:0;;;89363:7;;89213:625;89407:5;:16;;;89391:12;:32;;:65;;;;;89442:5;:14;;;89427:12;:29;89391:65;:81;;;;-1:-1:-1;89460:12:0;;;;;;89391:81;89387:451;;;89489:12;;;:20;;-1:-1:-1;;89489:20:0;;;89536:15;;89504:5;89524:28;;;:11;:28;;;;;;;:39;:43;;;89633:20;;;;89600:14;;;;;89617:12;89668:29;;;;89600;89599:54;;89712:41;;89729:10;;89504:5;;89712:16;:41::i;:::-;89768:27;;;;:15;:27;;;;;:37;;;;;;;;-1:-1:-1;89820:7:0;;89387:451;89867:12;;;;89956:15;;89850:14;89944:28;;;:11;:28;;;;;:42;89921:20;;;;89867:12;;;;;89905:82;;89921:65;89905:15;:82::i;:::-;89890:12;;;:97;;-1:-1:-1;;89890:97:0;;;;;;;;;;;;;90004:12;:25;;;;;90020:9;90004:25;90000:1552;;;90120:15;;90108:28;;;;:11;:28;;;;;;;;:42;90085:20;;;;90062:19;;90046:36;;:15;:36;;;;;;90085:65;;90046:104;;;90237:17;;;;90120:5;;90237:17;;:::i;:::-;;;;;;;;;;;;;90226:45;;;;;;;;;;;;:::i;:::-;90203:19;;;90195:28;;;;:7;:28;;;;;;;;:76;;;;;;;;;;;;;;;;;-1:-1:-1;;90195:76:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;90195:76:0;;;-1:-1:-1;;;;;;90195:76:0;;;;;;90319:19;;;;;;:26;;:34;;;;;;;;90413:15;;90401:28;;;;;;;;:39;;:44;;-1:-1:-1;;90401:44:0;;;90472:15;;90460:28;;;;;:40;;:45;;;;;;90566:19;;90532:15;;90520:28;;;;;:43;;:65;;;90600:28;;;;;;;;90642:12;90600:39;;:54;;;90744:19;;90736:28;;;;;:38;;90724:51;;;;;;;;:65;90669:28;;;;90709:80;;;;90669:37;;:120;;;;90812:19;;90804:28;;;;;:37;;;:41;;;90868:19;;90860:28;;;;;;:40;;:44;;;;;;;;90919:24;;;;;;;90000:1552;;;90965:12;;;;;;:26;;;;;90982:9;90981:10;90965:26;90961:591;;;91061:42;91073:19;;;:7;:19;;;;;;;;:29;;91061:42;;:11;:42;;;;;;:56;91038:20;;;;91008:27;;;:15;:27;;;;;91038:79;;91008:109;;;91198:12;91165:30;;;:45;;;91283:29;;91271:42;;;;;;;;:56;;91256:71;;;91225:28;;;:102;91342:31;;;;:35;;-1:-1:-1;;;;;;91342:35:0;;;91392:53;:58;;-1:-1:-1;;91392:58:0;;;90961:591;;;91539:1;91495:19;;;:7;:19;;;;;;;;:29;91483:42;;:11;:42;;;;;;:53;:57;90961:591;88893:2666;;;:::o;76394:745::-;76461:32;;;;:20;:32;;;;;;:37;:68;;;;-1:-1:-1;76503:19:0;;;;:7;:19;;;;;:26;;;;;76502:27;76461:68;:105;;;;-1:-1:-1;76533:19:0;;;;:7;:19;;;;;:28;;;:33;;76461:105;76457:675;;;76583:16;76602:19;;;:7;:19;;;;;;;;;:28;;;76653:26;;76754:267;;;;;;;;;;76870:4;76754:267;;;;;;;-1:-1:-1;;;;;76754:267:0;;;;;;;;;;76686:336;;76602:28;;-1:-1:-1;;;;;76653:26:0;;-1:-1:-1;;;76709:43:0;76686:336;;76754:267;76686:336;;;:::i;:::-;;;;-1:-1:-1;;76686:336:0;;;;;;;;;;;;;;-1:-1:-1;;;;;76686:336:0;-1:-1:-1;;;;;;76686:336:0;;;;;;;;;;76645:378;;;;76686:336;76645:378;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;77038:26:0;;:41;;-1:-1:-1;;;77038:41:0;;-1:-1:-1;;;;;77038:26:0;;;;-1:-1:-1;77038:31:0;;:41;;77070:8;;77038:41;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;77101:19:0;;;;-1:-1:-1;;77101:7:0;:19;;;;;;;77094:26;;;;;;;;-1:-1:-1;;77094:26:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;77094:26:0;;;76394:745::o;93955:608::-;94026:23;94164:1;94161;94151:7;94145:14;94138:4;94129:7;94125:18;94122:1;94112:8;94105:5;94100:66;94192:16;94242:4;94236:11;94222:25;;94280:4;94268:10;94261:24;94345:4;94333:10;94329:21;94406:4;94403:1;94379:22;94364:47;94438:33;;;94432:4;94425:47;94493:6;94500:45;;;;94486:59;;94500:45;94539:4;94515:22;94508:36;94486:59;;;;;94071:485;;;;:::o;79644:3756::-;79815:4;79835:3;;:15;;;79843:7;79842:8;79835:15;79832:255;;;79897:27;;;;;79927:1;79897:31;79867:61;;;;79943:133;;80029:27;;;;;-1:-1:-1;;80029:31:0;79999:61;;79943:133;80103:3;80099:1703;;;80149:42;;;;-1:-1:-1;;;;;80149:56:0;;;;;:120;;;80268:1;80226:16;:39;;;:43;80149:120;80123:209;;;;-1:-1:-1;;;80123:209:0;;;;;;;:::i;:::-;80347:67;80359:16;:26;;;80387:16;:26;;;80347:11;:67::i;:::-;80463:16;;;80477:1;80463:16;;;;;;;;80429:31;;80463:16;;;;;;;;;;-1:-1:-1;80463:16:0;80429:50;;80529:4;:30;;;-1:-1:-1;;;;;80514:53:0;;:55;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;80494:14;80509:1;80494:17;;;;;;;;;;;;;:75;-1:-1:-1;;;;;80494:75:0;;;-1:-1:-1;;;;;80494:75:0;;;;;80619:4;:30;;;-1:-1:-1;;;;;80604:53:0;;:55;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;80584:14;80599:1;80584:17;;;;;;;;;;;;;:75;-1:-1:-1;;;;;80584:75:0;;;-1:-1:-1;;;;;80584:75:0;;;;;80674:19;80716:18;80761:9;80757:438;80780:14;:21;80776:1;:25;80757:438;;;80851:5;;80830:17;;-1:-1:-1;;;;;80851:5:0;;;;80830:14;;80845:1;;80830:17;;;;;;;;;;;;-1:-1:-1;;;;;80830:26:0;;80827:94;;;80897:4;80881:20;;80827:94;80963:16;:33;;;-1:-1:-1;;;;;80942:54:0;:14;80957:1;80942:17;;;;;;;;;;;;;;-1:-1:-1;;;;;80942:54:0;;80939:241;;;81038:4;81021:21;;80939:241;;;81142:14;81157:1;81142:17;;;;;;;;;;;;;;-1:-1:-1;;;;;81096:64:0;81107:16;:33;;;-1:-1:-1;;;;;81096:64:0;;;;;;;;;;;80939:241;80803:3;;80757:438;;;;81217:14;81209:40;;;;-1:-1:-1;;;81209:40:0;;;;;;;:::i;:::-;81273:16;:29;;;81272:30;:47;;;;81306:13;81272:47;81264:72;;;;-1:-1:-1;;;81264:72:0;;;;;;;:::i;:::-;81382:1;81351:16;:28;;:32;;;;;81437:16;81398:11;:36;81410:23;;81398:36;;;;;;;;;;;:55;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;81398:55:0;;;;;-1:-1:-1;;;;;81398:55:0;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;81398:55:0;;;;;-1:-1:-1;;;;;81398:55:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;81499:100;;;;;;;;81512:23;;81499:100;;;;81537:5;81499:100;;;;;;81544:1;81499:100;;;;81547:1;81499:100;;;;81550:1;81499:100;;;;81553:1;81499:100;;;;81556:16;:39;;;81499:100;;;;81597:1;-1:-1:-1;;;;;81499:100:0;;;;81468:7;:28;81476:19;;81468:28;;;;;;;;;;;:131;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;81468:131:0;;;;;-1:-1:-1;;;;;81468:131:0;;;;;;;;;81668:19;;81614:11;:36;81626:23;;81614:36;;;;;;;;;;;:51;;:73;;;;81729:1;81702:23;;:28;;;;;;;;;;;81768:1;81745:19;;:24;;;;;;;;;;;81784:7;;;;;;80099:1703;-1:-1:-1;81814:26:0;81843:19;;;:7;:19;;;;;;;;81904:29;;81892:42;;:11;:42;;;;;;;81873:61;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;81873:61:0;;;;;;;;;;;;;;;;;;-1:-1:-1;;;81873:61:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;81947:136;;;;81982:12;;;;;;81974:37;;;;-1:-1:-1;;;81974:37:0;;;;;;;:::i;:::-;82026:24;82039:10;82026:12;:24::i;:::-;82065:7;;;;81947:136;82095:15;;;:20;;-1:-1:-1;;82095:20:0;;;82114:1;82132:12;;;;;82128:1095;;;-1:-1:-1;82169:19:0;;;;:7;:19;;;;;82221:14;;;;82206:12;:29;82203:899;;;82256:18;82307:16;:39;;;82277:4;:27;;;:69;:213;;82451:16;:39;;;82421:4;:27;;;:69;82277:213;;;82391:4;:27;;;82349:16;:39;;;:69;82277:213;82528:14;;;;82256:234;;-1:-1:-1;82545:12:0;82528:29;;82593:21;;;82637:10;;82633:454;;82706:16;:39;;;82676:4;:27;;;:69;82672:259;;;82782:23;82798:6;82782:15;:23::i;:::-;82774:69;;;;-1:-1:-1;;;82774:69:0;;;;;;;:::i;:::-;82870:27;;;;:15;:27;;;;;:37;;;;;;82672:259;82953:41;82970:10;82982:1;82985;82988:5;82953:16;:41::i;:::-;83040:27;;;;83017:20;;;:50;82633:454;82203:899;;;;83184:27;;;;;83116:42;83128:19;;;:7;:19;;;;;;;:29;83116:42;;:11;:42;;;;;;:65;;:95;82128:1095;83292:1;83248:19;;;:7;:19;;;;;;;;:29;83236:42;;:11;:42;;;;;;;:53;;:57;83233:160;;83366:15;;;;83310:42;83322:19;;;:7;:19;;;;;;;;:29;83310:42;;:11;:42;;;;;;;:53;:71;79644:3756;;;;;;:::o;73952:1409::-;74081:39;74123:22;;;:10;:22;;;;;;;;74200:26;;;;74192:35;;:7;:35;;;;;;74255:22;;;;74392:21;;;;74311:12;;74377:36;;:75;;74440:12;74377:75;;;74416:12;:21;;;74377:75;74607:24;;;;74568:27;;;;74536:28;;;;74362:90;;-1:-1:-1;;;;;;74607:24:0;;;;74521:43;;74520:75;74599:4;74519:84;74607:24;74518:113;;;;74487:26;;;;74463:51;;;;:23;:51;;;;;:168;;74518:113;;;;74463:168;;;;;74651:45;;74678:10;;74651:26;:45::i;:::-;74765:26;;;;74741:51;;;;:23;:51;;;;;;;;;74707:31;;;:19;:31;;;;;:85;74803:22;;;;:26;;;;74890:28;;:43;;;74958:19;;74979:27;;74642:54;;-1:-1:-1;74944:71:0;;-1:-1:-1;;;;;74958:19:0;;;;74979:27;74642:54;74944:13;:71::i;:::-;75070:21;;;;75101:27;;75028:120;;75058:10;;75093:6;;-1:-1:-1;;;;;75101:27:0;75130:17;75028:29;:120::i;:::-;75173:26;;;;75161:39;;;;:11;:39;;;;;:49;;;;;;75225:21;;;;75250:12;-1:-1:-1;75225:37:0;;;:60;;-1:-1:-1;75266:19:0;;;;;;75225:60;75221:133;;;75302:40;75315:15;:26;;;75302:12;:40::i;84693:2848::-;84791:23;84858:19;;;:7;:19;;;;;;;;84827:60;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;84827:60:0;;;;;;;84879:7;84827:30;:60::i;:::-;84900:33;84948:19;;;:7;:19;;;;;;;;:29;84936:42;;:11;:42;;;;;;84900:78;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;84900:78:0;;;;;;;;;;;;;;;;;;-1:-1:-1;;;84900:78:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:33;85023:30;;85052:1;85023:30;;;85048:1;85023:30;85011:43;;-1:-1:-1;;;;;85011:43:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;84989:65;;85067:14;85099:9;:35;;;-1:-1:-1;;;;;85084:58:0;;:60;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;85067:77;;85155:14;85187:9;:35;;;-1:-1:-1;;;;;85172:58:0;;:60;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;85155:77;;85243:16;85262:9;:22;;;:80;;85341:1;85262:80;;;85297:5;;-1:-1:-1;;;;;85287:15:0;;;85297:5;;85287:15;:51;;85323:7;:15;;;85287:51;;;85305:7;:15;;;85287:51;85243:99;;85353:15;85379;85410:9;:22;;;85407:133;;;85459:69;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;85459:69:0;-1:-1:-1;;;85459:69:0;;;85449:7;;:4;;85454:1;;85449:7;;;;;;;;;;;:79;;;;85407:133;85553:32;;;;:20;:32;;;;;;:37;:74;;;;-1:-1:-1;85594:19:0;;;;:7;:19;;;;;:28;;;:33;85553:74;85550:1614;;;85677:40;;;85719:562;;;;;;;;85785:6;-1:-1:-1;;;;;85719:562:0;;;;;85819:6;-1:-1:-1;;;;;85719:562:0;;;;;85864:9;:35;;;-1:-1:-1;;;;;85849:55:0;;:57;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;85719:562;;;;;;85936:9;:19;;;85719:562;;;;;;85986:9;:19;;;85719:562;;;;;;86040:7;:15;;;85719:562;;;;86091:7;:15;;;85719:562;;;;86137:1;85719:562;;;;86169:1;85719:562;;;;86208:4;-1:-1:-1;;;;;85719:562:0;;;;;86242:15;86260:5;86242:23;85719:562;;;85654:628;;;;;;;;:::i;:::-;;;;;;;;;;;;;;-1:-1:-1;;;;;85654:628:0;;;;;;;-1:-1:-1;;;;;85654:628:0;;;;;;;;;;;85644:4;85649:1;85644:7;;;;;;;;;;;;;;;;;:638;86395:26;;86376:82;;-1:-1:-1;;;86376:82:0;;-1:-1:-1;;;;;86395:26:0;;;;86376:57;;86442:8;;86376:82;;86453:4;;86376:82;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;86376:82:0;;;;;;;;;;;;:::i;:::-;86459:1;86376:85;;;;;;;;;;;;;;86365:135;;;;;;;;;;;;:::i;:::-;86298:19;;;;:7;:19;;;;;:28;;86297:203;;;;;;-1:-1:-1;86297:203:0;-1:-1:-1;86297:203:0;-1:-1:-1;85550:1614:0;;;86621:350;;;;;;;;86709:18;;-1:-1:-1;86701:27:0;;;:7;:27;;;;;;;:36;;;86621:350;;86773:15;;;;86621:350;;;;86824:15;;;;86621:350;;;;;;;;;;;;;;86950:5;86932:15;:23;86621:350;;;;86543:429;;-1:-1:-1;;;86566:53:0;86543:429;;;;;:::i;:::-;;;;;;;;;;;;;;-1:-1:-1;;;;;86543:429:0;;;;;;;-1:-1:-1;;;;;86543:429:0;;;;;;;;;;;86533:4;86538:1;86533:7;;;;;;;;;;;;;;;;;:439;87055:26;;87036:83;;-1:-1:-1;;;87036:83:0;;-1:-1:-1;;;;;87055:26:0;;;;87036:57;;87103:8;;87036:83;;87114:4;;87036:83;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;87036:83:0;;;;;;;;;;;;:::i;:::-;87120:1;87036:86;;;;;;;;;;;;;;87025:127;;;;;;;;;;;;:::i;:::-;86987:165;;-1:-1:-1;86987:165:0;-1:-1:-1;86987:165:0;-1:-1:-1;85550:1614:0;87189:7;:15;;;87179:7;:25;87176:173;;;87220:117;87234:9;:22;;;:41;;;;-1:-1:-1;87270:5:0;;-1:-1:-1;;;;;87260:15:0;;;87270:5;;87260:15;87234:41;:63;;87291:6;87234:63;;;87286:1;87234:63;87299:10;87329:7;87311;:15;;;:25;87220:13;:117::i;:::-;87374:7;:15;;;87364:7;:25;87361:173;;;87405:117;87419:9;:22;;;:41;;;;-1:-1:-1;87455:5:0;;-1:-1:-1;;;;;87445:15:0;;;87455:5;;87445:15;87419:41;:63;;87476:6;87419:63;;;87471:1;87419:63;87484:10;87514:7;87496;:15;;;:25;87405:13;:117::i;:::-;84693:2848;;;;;;;;;;;:::o;87850:1035::-;87966:20;88004:19;;;:7;:19;;;;;:28;;;87989:12;:43;:89;;88050:19;;;;:7;:19;;;;;:28;;;87989:89;;;88035:12;87989:89;88093:19;;;;:7;:19;;;;;:31;;;87966:112;;-1:-1:-1;;;;;;88093:31:0;:36;88089:402;;88146:23;88210:19;;;:7;:19;;;;;:30;;;;88172:35;;;;;:68;:139;;88276:19;;;;:7;:19;;;;;:35;;;88172:139;;;88243:19;;;;:7;:19;;;;;:30;;;88172:139;88448:19;;;;:7;:19;;;;;;;;:31;;;;88402:34;;;88146:165;;-1:-1:-1;;;;;;88448:31:0;;88368:30;;;88367:69;88440:4;88366:78;88448:31;88365:114;;;;88326:35;;;;:23;:35;;;;;:153;;88365:114;;;;88326:153;;;;;-1:-1:-1;88089:402:0;88551:19;;;;:7;:19;;;;;:35;;:50;;;88616:15;;88612:117;;88682:35;;;;:23;:35;;;;;;;;;88648:31;;;:19;:31;;;;;;:69;88612:117;-1:-1:-1;;;;;88743:10:0;;;88739:139;;88770:8;:96;;88825:19;;;;:7;:19;;;;;:31;;:41;;-1:-1:-1;;;;;;88825:41:0;;-1:-1:-1;;;;;88825:41:0;;;;;;;;;;;;88770:96;;;88781:19;;;;:7;:19;;;;;:31;;:41;;-1:-1:-1;;;;;88781:41:0;;;;;;;-1:-1:-1;;;;;;88781:41:0;;;;;;88739:139;87850:1035;;;;;:::o;92428:582::-;92536:10;92533:48;;92563:7;;92533:48;-1:-1:-1;;;;;92594:31:0;;92591:176;;92643:11;92659:2;-1:-1:-1;;;;;92659:7:0;92675:5;92659:26;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;92642:43;;;92708:6;92700:34;;;;-1:-1:-1;;;92700:34:0;;;;;;;:::i;:::-;92749:7;;;92591:176;92777:23;92803:104;92809:17;92851:43;;;92896:2;92900:5;92828:78;;;;;;;;;:::i;:::-;;;;-1:-1:-1;;92828:78:0;;;;;;;;;;;;;;-1:-1:-1;;;;;92828:78:0;-1:-1:-1;;;;;;92828:78:0;;;;;;;;;;92803:5;:104::i;:::-;92777:130;;92926:10;:17;92947:1;92926:22;:56;;;;92963:10;92952:30;;;;;;;;;;;;:::i;:::-;92918:84;;;;-1:-1:-1;;;92918:84:0;;;;;;;:::i;95193:657::-;95292:19;;95250:4;;;;-1:-1:-1;;;;;95292:19:0;:33;:112;;95359:19;;95352:52;;-1:-1:-1;;;95352:52:0;;-1:-1:-1;;;;;95359:19:0;;;;95352:37;;:52;;95398:4;;95352:52;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;95292:112;;;95328:21;95292:112;95494:10;;95479:45;;-1:-1:-1;;;95479:45:0;;95267:137;;-1:-1:-1;95441:23:0;;;;-1:-1:-1;;;;;95494:10:0;;;;95479:37;;:45;;95458:6;;95479:45;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;95475:61;95570:19;;95546:21;;-1:-1:-1;;;;;95570:19:0;:33;:112;;95637:19;;95630:52;;-1:-1:-1;;;95630:52:0;;-1:-1:-1;;;;;95637:19:0;;;;95630:37;;:52;;95676:4;;95630:52;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;95570:112;;;95606:21;95570:112;95546:136;;95713:15;95696:13;:32;95693:75;;;95752:4;95745:11;;;;;;;95693:75;95778:41;95804:14;95788:13;:30;95778:9;:41::i;:::-;-1:-1:-1;95837:5:0;;95193:657;-1:-1:-1;;;;95193:657:0:o;95909:238::-;96008:9;95996:21;;:9;:21;;;95988:37;;;;-1:-1:-1;;;95988:37:0;;;;;;;:::i;:::-;-1:-1:-1;;96044:30:0;;;;;;96036:46;;;;-1:-1:-1;;;96036:46:0;;;;;;;:::i;:::-;32041:9;96101:30;;;;;;96093:46;;;;-1:-1:-1;;;96093:46:0;;;;;;;:::i;96190:2209::-;96459:26;;96494:178;;;;;;;;;;;96348:24;96494:178;;;;;;96459:26;96494:178;;;;;;;;;;96459:214;;-1:-1:-1;;;96459:214:0;;96348:24;;;;;;;;-1:-1:-1;;;;;96459:26:0;;:34;;:214;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;96428:245;;-1:-1:-1;96428:245:0;-1:-1:-1;96687:18:0;;96749:10;;96746:115;;96803:46;96824:10;96836:6;96844:1;96847;96803:20;:46::i;:::-;96776:73;;-1:-1:-1;96776:73:0;-1:-1:-1;96746:115:0;-1:-1:-1;;;;;96874:21:0;;;96871:349;;96951:26;;96996:211;;;;;;;;;;;-1:-1:-1;;;;;96996:211:0;;;;;;96951:26;96996:211;;;;;;;;;;97187:5;97169:15;:23;96996:211;;;;96951:257;;-1:-1:-1;;;96951:257:0;;-1:-1:-1;;;;;96951:26:0;;;;:44;;:257;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;96912:296;;-1:-1:-1;96912:296:0;-1:-1:-1;96871:349:0;97230:30;;;;97271;;;;97351:85;97370:10;97382:17;97230:30;97271;97351:18;:85::i;:::-;97312:124;;-1:-1:-1;97312:124:0;-1:-1:-1;97451:20:0;;;;:44;;;97494:1;97475:16;:20;97451:44;97447:945;;;97512:14;97541;97625:56;97634:10;97646:16;97664;97625:8;:56::i;:::-;97696:15;97830:8;;97817:42;;;-1:-1:-1;;;97817:42:0;;;;97570:111;;-1:-1:-1;97570:111:0;;-1:-1:-1;97570:111:0;;-1:-1:-1;97570:111:0;;-1:-1:-1;97696:15:0;;;;;;;-1:-1:-1;;;;;97830:8:0;;;;97817:40;;:42;;;;;;;;;;;97830:8;97817:42;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;97764:95;;-1:-1:-1;97764:95:0;-1:-1:-1;97878:21:0;;97874:357;;97990:4;;97946:24;;;97945:40;97931:10;:55;97930:64;;;;;;;-1:-1:-1;98083:4:0;;98039:24;;;98038:40;98024:10;:55;98023:64;;;;;;98013:74;;98106:45;98120:6;98128:13;98143:7;98106:13;:45::i;:::-;98170;98184:6;98192:13;98207:7;98170:13;:45::i;:::-;98245:60;98259:6;98267:9;98297:7;98278:16;:26;98245:13;:60::i;:::-;98320;98334:6;98342:9;98372:7;98353:16;:26;98320:13;:60::i;:::-;97447:945;;;;;;;96190:2209;;;;;;;;;;;:::o;83408:1236::-;83559:16;;;83573:1;83559:16;;;;;;;;83533:23;;83559:16;;;;;;;;;;-1:-1:-1;;83625:15:0;;83613:28;;;;:11;:28;;;;;;;;;:54;;;83598:79;;-1:-1:-1;;;83598:79:0;;;;83533:42;;-1:-1:-1;;;;;;83613:54:0;;83598:77;;:79;;;;;;;;;;83613:54;83598:79;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;83586:6;83593:1;83586:9;;;;;;;;-1:-1:-1;;;;;83586:91:0;;;:9;;;;;;;;;;:91;;;;83727:15;;83715:28;;;;:11;:28;;;;;;;;:54;;;83700:79;;-1:-1:-1;;;83700:79:0;;;;83715:54;;;83700:77;;:79;;;;83586:9;;83700:79;;;;;;83715:54;83700:79;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;83688:6;83695:1;83688:9;;;;;;;;-1:-1:-1;;;;;83688:91:0;;;;:9;;;;;;;;;;:91;83822:16;;;83836:1;83822:16;;;;;;;;83790:29;;83822:16;;83836:1;;83822:16;;;;;;;;;-1:-1:-1;83822:16:0;83790:48;;83867:7;:15;;;83849:12;83862:1;83849:15;;;;;;;;;;;;;:33;;;;;83911:7;:15;;;83893:12;83906:1;83893:15;;;;;;;;;;;;;:33;;;;;84045:11;:28;84057:5;:15;;;84045:28;;;;;;;;;;;:41;;;83995:6;84002:1;83995:9;;;;;;;;;;;;;;;;;;;83958:15;;83946:28;;;;:11;:28;;;;;;;:45;;;-1:-1:-1;;;;;83946:45:0;;;:58;;;:94;;84025:12;84038:1;84025:15;;;;;;;;;;;;;;83946:94;;;84007:12;84020:1;84007:15;;;;;;;;;;;;;;83946:94;83945:141;;83937:172;;;;-1:-1:-1;;;83937:172:0;;;;;;;:::i;:::-;84200:9;84196:441;84219:6;:13;84215:1;:17;84196:441;;;84269:15;;84257:28;;;;:11;:28;;;;;:41;;;-1:-1:-1;;;84257:41:0;;;;:63;;;;;84311:6;84318:1;84311:9;;;;;;;;;;;;;;;;;;84302:5;;-1:-1:-1;;;;;84302:5:0;;;:18;;;84257:63;84254:372;;;84362:12;84375:1;84362:15;;;;;;;;;;;;;;84349:9;:28;84341:60;;;;-1:-1:-1;;;84341:60:0;;;;;;;:::i;:::-;84254:372;;;84442:72;84460:6;84467:1;84460:9;;;;;;;;;;;;;;84471:10;84491:4;84498:12;84511:1;84498:15;;;;;;;;;;;;;;84442:17;:72::i;:::-;84533:77;84546:6;84553:1;84546:9;;;;;;;;;;;;;;84565:26;;;;;;;;;-1:-1:-1;;;;;84565:26:0;84594:12;84607:1;84594:15;;;;;;;;;;;;;;84533:12;:77::i;:::-;84234:3;;84196:441;;94671:391;94728:11;94725:49;;94756:7;;94725:49;94788:19;;-1:-1:-1;;;;;94788:19:0;94784:271;;94853:10;;94838:60;;-1:-1:-1;;;94838:60:0;;-1:-1:-1;;;;;94853:10:0;;;;94838:36;;94883:6;;94838:60;;94883:6;;94838:60;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;94784:271;;;94944:19;;;94965:10;94931:53;;-1:-1:-1;;;;;94944:19:0;;;;94965:10;94977:6;94931:12;:53::i;:::-;95014:10;;94999:44;;-1:-1:-1;;;94999:44:0;;-1:-1:-1;;;;;95014:10:0;;;;94999:36;;:44;;95036:6;;94999:44;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;98407:826;98555:7;98625:22;;;:10;:22;;;;;;;;98584:63;;;;;;;;;;-1:-1:-1;;;;;98584:63:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;98584:63:0;;;;;;;;;;;;;;;;;;;;;;;;98693:35;;;:7;:35;;;;;;98658:70;;98584:63;98658:70;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;98555:7;;98584:63;98742:21;;;;;;:86;;;98788:15;:40;;;-1:-1:-1;;;;;98767:61:0;:17;-1:-1:-1;;;;;98767:61:0;;98742:86;:152;;;;;98834:12;:19;;;98833:20;:60;;;;98872:12;:21;;;98857:12;:36;98833:60;98742:209;;;;-1:-1:-1;98919:26:0;;;;;98898:48;;;;:20;:48;;;;;;;98950:1;98898:53;98742:209;98739:433;;;-1:-1:-1;;99079:66:0;98968:192;;;;;;;;98739:433;99190:16;99208;99182:43;;;;;;98407:826;;;;;;;;:::o;99241:1513::-;99348:14;99364;99380:15;99397;99452:1;99433:16;:20;:44;;;;99476:1;99457:16;:20;99433:44;99425:65;;;;-1:-1:-1;;;99425:65:0;;;;;;;:::i;:::-;99501:17;99541:22;;;:10;:22;;;;;;;;:33;;;99533:42;;:7;:42;;;;;;:52;99521:65;;:11;:65;;;;;:78;;-1:-1:-1;;;99521:78:0;;;;;;99644:20;;99663:1;99644:20;;;99659:1;99644:20;99632:33;;-1:-1:-1;;;;;99632:33:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;99754:300:0;;;;;;;;-1:-1:-1;99828:22:0;;;:10;:22;;;;;;;:33;;;99820:42;;:7;:42;;;;;:51;;;99754:300;;99610:55;;-1:-1:-1;;;;99709:43:0;99754:300;;;99897:12;:41;;99933:4;99897:41;;;99920:1;99897:41;-1:-1:-1;;;;;99754:300:0;;;-1:-1:-1;;;;;99754:300:0;;;;;;;;;;;;;;99686:369;;;;;;;:::i;:::-;;;;;;;;;;;;;;-1:-1:-1;;;;;99686:369:0;;;;;;;-1:-1:-1;;;;;99686:369:0;;;;;;;;;;;99676:4;99681:1;99676:7;;;;;;;;;;;;;;;;;;:379;;;;100104:26;;;100149:22;;;:10;:22;;;;;;100104:26;100149:33;;100141:42;;:7;:42;;;;;;:51;;;100104:89;;-1:-1:-1;;;100104:89:0;;-1:-1:-1;;;;;100104:26:0;;;;:36;;:89;;100141:51;100104:89;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1;100066:127:0;;-1:-1:-1;100066:127:0;;-1:-1:-1;;100204:413:0;;;-1:-1:-1;100204:413:0;;-1:-1:-1;;;;;;;100204:413:0;100246:89;;-1:-1:-1;;;100269:47:0;100246:89;;100318:1;;100329:4;;100246:89;;;:::i;:::-;;;;;;;;;;;;;;-1:-1:-1;;;;;100246:89:0;;;;;;;-1:-1:-1;;;;;100246:89:0;;;;;;;;;;;100236:4;100241:1;100236:7;;;;;;;;;;;;;;;;;:99;100441:5;;-1:-1:-1;;;100383:46:0;-1:-1:-1;;;;;100431:15:0;;;100441:5;;100431:15;:33;;100458:6;100431:33;;;100449:6;100431:33;100466:1;100477:4;100360:123;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;-1:-1:-1;;;;;100360:123:0;;;;;;;-1:-1:-1;;;;;100360:123:0;;;;;;;;;;;100350:4;100355:1;100350:7;;;;;;;;;;;;;;;;;:133;100517:5;;-1:-1:-1;;;;;100507:15:0;;;100517:5;;100507:15;:37;;100538:6;100507:37;;;100533:1;100507:37;100578:5;;100498:46;;-1:-1:-1;;;;;;100568:15:0;;;100578:5;;100568:15;:37;;100599:6;100568:37;;;100594:1;100568:37;100559:46;;100204:413;100678:26;;100659:63;;-1:-1:-1;;;100659:63:0;;-1:-1:-1;;;;;100678:26:0;;;;100659:57;;:63;;100717:4;;100659:63;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;100659:63:0;;;;;;;;;;;;:::i;:::-;100723:1;100659:66;;;;;;;;;;;;;;100648:98;;;;;;;;;;;;:::i;:::-;99241:1513;;;;-1:-1:-1;100627:119:0;-1:-1:-1;100627:119:0;;-1:-1:-1;99241:1513:0;;-1:-1:-1;;;;99241:1513:0:o;93285:419::-;93402:10;93399:48;;93429:7;;93399:48;93457:23;93483:114;93489:17;93531:47;;;93580:4;93586:2;93590:5;93508:88;;;;;;;;;;:::i;93483:114::-;93457:140;;93616:10;:17;93637:1;93616:22;:56;;;;93653:10;93642:30;;;;;;;;;;;;:::i;:::-;93608:88;;;;-1:-1:-1;;;93608:88:0;;;;;;;:::i;91796:393::-;91903:10;91900:48;;91930:7;;91900:48;91958:23;91984:103;91990:17;92032:42;;;92076:2;92080:5;92009:77;;;;;;;;;:::i;91984:103::-;91958:129;;92106:10;:17;92127:1;92106:22;:56;;;;92143:10;92132:30;;;;;;;;;;;;:::i;:::-;92098:83;;;;-1:-1:-1;;;92098:83:0;;;;;;;:::i;-1:-1:-1:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;14:138:1:-;84:20;;113:33;84:20;113:33;:::i;157:142::-;238:13;;260:33;238:13;260:33;:::i;304:404::-;;;437:3;430:4;422:6;418:17;414:27;404:2;;462:8;452;445:26;404:2;-1:-1:-1;492:20:1;;-1:-1:-1;;;;;524:30:1;;521:2;;;574:8;564;557:26;521:2;618:4;610:6;606:17;594:29;;681:3;674:4;666;658:6;654:17;646:6;642:30;638:41;635:50;632:2;;;698:1;695;688:12;632:2;394:314;;;;;:::o;713:132::-;780:20;;809:30;780:20;809:30;:::i;850:136::-;928:13;;950:30;928:13;950:30;:::i;991:485::-;;1088:3;1081:4;1073:6;1069:17;1065:27;1055:2;;1110:5;1103;1096:20;1055:2;1150:6;1137:20;1181:49;1196:33;1226:2;1196:33;:::i;:::-;1181:49;:::i;:::-;1255:2;1246:7;1239:19;1301:3;1294:4;1289:2;1281:6;1277:15;1273:26;1270:35;1267:2;;;1322:5;1315;1308:20;1267:2;1391;1384:4;1376:6;1372:17;1365:4;1356:7;1352:18;1339:55;1414:16;;;1432:4;1410:27;1403:42;;;;1418:7;1045:431;-1:-1:-1;;1045:431:1:o;1481:134::-;1549:20;;1578:31;1549:20;1578:31;:::i;1620:138::-;1699:13;;1721:31;1699:13;1721:31;:::i;1763:696::-;;1883:4;1871:9;1866:3;1862:19;1858:30;1855:2;;;1905:5;1898;1891:20;1855:2;1942;1936:9;1984:4;1976:6;1972:17;2055:6;2043:10;2040:22;-1:-1:-1;;;;;2007:10:1;2004:34;2001:62;1998:2;;;2066:9;1998:2;2097:10;2093:2;2086:22;;2126:6;2117:15;;2169:9;2156:23;2148:6;2141:39;2241:2;2230:9;2226:18;2213:32;2208:2;2200:6;2196:15;2189:57;2307:2;2296:9;2292:18;2279:32;2274:2;2266:6;2262:15;2255:57;2364:2;2353:9;2349:18;2336:32;2377:35;2404:7;2377:35;:::i;:::-;2440:2;2428:15;;;;2421:32;1845:614;;-1:-1:-1;;1845:614:1:o;2464:142::-;2545:13;;2567:33;2545:13;2567:33;:::i;2611:167::-;2691:13;;2744:8;2733:20;;2723:31;;2713:2;;2768:1;2765;2758:12;2783:259;;2895:2;2883:9;2874:7;2870:23;2866:32;2863:2;;;2916:6;2908;2901:22;2863:2;2960:9;2947:23;2979:33;3006:5;2979:33;:::i;:::-;3031:5;2853:189;-1:-1:-1;;;2853:189:1:o;3047:263::-;;3170:2;3158:9;3149:7;3145:23;3141:32;3138:2;;;3191:6;3183;3176:22;3138:2;3228:9;3222:16;3247:33;3274:5;3247:33;:::i;3315:803::-;;;;;;3503:3;3491:9;3482:7;3478:23;3474:33;3471:2;;;3525:6;3517;3510:22;3471:2;3562:9;3556:16;3581:33;3608:5;3581:33;:::i;:::-;3683:2;3668:18;;3662:25;3633:5;;-1:-1:-1;3696:32:1;3662:25;3696:32;:::i;:::-;3799:2;3784:18;;3778:25;3747:7;;-1:-1:-1;3812:35:1;3778:25;3812:35;:::i;:::-;3918:2;3903:18;;3897:25;3866:7;;-1:-1:-1;3931:35:1;3897:25;3931:35;:::i;:::-;4037:3;4022:19;;4016:26;3985:7;;-1:-1:-1;4051:35:1;4016:26;4051:35;:::i;:::-;4105:7;4095:17;;;3461:657;;;;;;;;:::o;4123:998::-;;;;;;4321:3;4309:9;4300:7;4296:23;4292:33;4289:2;;;4343:6;4335;4328:22;4289:2;4387:9;4374:23;4406:33;4433:5;4406:33;:::i;:::-;4458:5;-1:-1:-1;4514:2:1;4499:18;;4486:32;-1:-1:-1;;;;;4567:14:1;;;4564:2;;;4599:6;4591;4584:22;4564:2;4627:51;4670:7;4661:6;4650:9;4646:22;4627:51;:::i;:::-;4617:61;;4730:2;4719:9;4715:18;4702:32;4687:47;;4743:35;4770:7;4743:35;:::i;:::-;4797:7;;-1:-1:-1;4856:2:1;4841:18;;4828:32;;4869:35;4828:32;4869:35;:::i;:::-;4923:7;;-1:-1:-1;4983:3:1;4968:19;;4955:33;;5000:16;;;4997:2;;;5034:6;5026;5019:22;4997:2;;5062:53;5107:7;5096:8;5085:9;5081:24;5062:53;:::i;:::-;5052:63;;;4279:842;;;;;;;;:::o;5126:815::-;;;;;5325:2;5313:9;5304:7;5300:23;5296:32;5293:2;;;5346:6;5338;5331:22;5293:2;5391:9;5378:23;-1:-1:-1;;;;;5461:2:1;5453:6;5450:14;5447:2;;;5482:6;5474;5467:22;5447:2;5526:76;5594:7;5585:6;5574:9;5570:22;5526:76;:::i;:::-;5621:8;;-1:-1:-1;5500:102:1;-1:-1:-1;5709:2:1;5694:18;;5681:32;;-1:-1:-1;5725:16:1;;;5722:2;;;5759:6;5751;5744:22;5722:2;;5803:78;5873:7;5862:8;5851:9;5847:24;5803:78;:::i;:::-;5283:658;;;;-1:-1:-1;5900:8:1;-1:-1:-1;;;;5283:658:1:o;5946:1296::-;;6081:2;6124;6112:9;6103:7;6099:23;6095:32;6092:2;;;6145:6;6137;6130:22;6092:2;6183:9;6177:16;-1:-1:-1;;;;;6208:6:1;6205:30;6202:2;;;6253:6;6245;6238:22;6202:2;6281:22;;6334:4;6326:13;;6322:27;-1:-1:-1;6312:2:1;;6368:6;6360;6353:22;6312:2;6402;6396:9;6425:63;6440:47;6484:2;6440:47;:::i;6425:63::-;6522:15;;;6553:12;;;;6585:11;;;6614:6;6629:583;6643:2;6640:1;6637:9;6629:583;;;6712:3;6706:10;6702:2;6698:19;6757:7;6752:2;6748;6744:11;6740:25;6730:2;;6784:6;6776;6769:22;6730:2;6830;6826;6822:11;6816:18;6857:2;6885:49;6900:33;6930:2;6900:33;:::i;6885:49::-;6961:2;6954:5;6947:17;7005:7;7000:2;6995;6991;6987:11;6983:20;6980:33;6977:2;;;7031:6;7023;7016:22;6977:2;7053:54;7104:2;7099;7092:5;7088:14;7083:2;7079;7075:11;7053:54;:::i;:::-;7120:18;;-1:-1:-1;;;7158:12:1;;;;7190;;;;6661:1;6654:9;6629:583;;;-1:-1:-1;7231:5:1;;6061:1181;-1:-1:-1;;;;;;;;6061:1181:1:o;7247:2920::-;;7403:2;7446;7434:9;7425:7;7421:23;7417:32;7414:2;;;7467:6;7459;7452:22;7414:2;7512:9;7499:23;-1:-1:-1;;;;;7582:2:1;7574:6;7571:14;7568:2;;;7603:6;7595;7588:22;7568:2;7646:6;7635:9;7631:22;7621:32;;7691:7;7684:4;7680:2;7676:13;7672:27;7662:2;;7718:6;7710;7703:22;7662:2;7759;7746:16;7782:63;7797:47;7841:2;7797:47;:::i;7782:63::-;7879:15;;;7910:12;;;;7942:11;;;7972:6;8005:11;;;7997:20;;7993:29;;7990:42;-1:-1:-1;7987:2:1;;;8050:6;8042;8035:22;7987:2;8077:6;8068:15;;8092:2045;8106:2;8103:1;8100:9;8092:2045;;;8174:3;8165:7;8161:17;8202:2;8198;8194:11;8191:2;;;8223:6;8215;8208:22;8191:2;8255;8290;8284:9;8316:4;8363:2;8355:6;8351:15;8420:6;8408:10;8405:22;8400:2;8388:10;8385:18;8382:46;8379:2;;;8431:9;8379:2;8455:22;;8503:17;;8533:30;8503:17;8533:30;:::i;:::-;8576:21;;8638:12;;;8625:26;8664:32;8625:26;8664:32;:::i;:::-;8716:15;;;8709:32;8791:12;;;8778:26;8761:15;;;8754:51;8828:2;8854:6;-1:-1:-1;;8880:16:1;;8876:26;-1:-1:-1;8873:2:1;;;8920:6;8912;8905:22;8873:2;8957:19;8972:3;8957:19;:::i;:::-;8942:34;;9027:2;9022:3;9018:12;9005:26;8996:7;8989:43;9092:2;9087:3;9083:12;9070:26;9065:2;9056:7;9052:16;9045:52;9121:3;9184;9179;9175:13;9162:27;9157:2;9148:7;9144:16;9137:53;9214:3;9203:14;;9277:3;9272;9268:13;9255:27;9250:2;9241:7;9237:16;9230:53;9307:3;9370;9365;9361:13;9348:27;9343:2;9334:7;9330:16;9323:53;9400:3;9389:14;;9442:35;9472:3;9467;9463:13;9442:35;:::i;:::-;9436:3;9427:7;9423:17;9416:62;9502:3;9491:14;;9544:35;9574:3;9569;9565:13;9544:35;:::i;:::-;9538:3;9529:7;9525:17;9518:62;9604:3;9593:14;;9646:32;9673:3;9668;9664:13;9646:32;:::i;:::-;9627:17;;;9620:59;9703:3;9758:13;;;9745:27;9726:17;;;9719:54;9825:13;;;9812:27;9793:17;;;9786:54;9879:33;9907:3;9898:13;;9879:33;:::i;:::-;9873:3;9864:7;9860:17;9853:60;9952:33;9980:3;9975;9971:13;9952:33;:::i;:::-;9933:17;;;9926:60;-1:-1:-1;;10006:15:1;;9999:32;;;;10044:19;;-1:-1:-1;;8124:1:1;8117:9;;;;;10083:12;;;;10115;;;;8092:2045;;;-1:-1:-1;10156:5:1;;7383:2784;-1:-1:-1;;;;;;;;;7383:2784:1:o;10172:2156::-;;10330:2;10373;10361:9;10352:7;10348:23;10344:32;10341:2;;;10394:6;10386;10379:22;10341:2;10432:9;10426:16;-1:-1:-1;;;;;10457:6:1;10454:30;10451:2;;;10502:6;10494;10487:22;10451:2;10530:22;;10583:4;10575:13;;10571:27;-1:-1:-1;10561:2:1;;10617:6;10609;10602:22;10561:2;10651;10645:9;10674:63;10689:47;10733:2;10689:47;:::i;10674:63::-;10771:15;;;10802:12;;;;10834:11;;;10864:6;10897:11;;;10889:20;;10885:29;;10882:42;-1:-1:-1;10879:2:1;;;10942:6;10934;10927:22;10879:2;10969:6;10960:15;;10984:1314;10998:2;10995:1;10992:9;10984:1314;;;11069:2;11063:3;11054:7;11050:17;11046:26;11043:2;;;11090:6;11082;11075:22;11043:2;11125:18;11140:2;11125:18;:::i;:::-;11170:10;;11156:25;;11223:12;;;11217:19;11201:14;;;11194:43;11260:2;11304:12;;;11298:19;11282:14;;;11275:43;11341:2;11385:12;;;11379:19;11363:14;;;11356:43;11422:3;11467:12;;;11461:19;11445:14;;;11438:43;11504:3;11543:45;11575:12;;;11543:45;:::i;:::-;11527:14;;;11520:69;11612:3;11651:45;11683:12;;;11651:45;:::i;:::-;11635:14;;;11628:69;11721:3;11761:43;11790:13;;;11761:43;:::i;:::-;11744:15;;;11737:68;11829:3;11875:13;;;11869:20;11852:15;;;11845:45;11914:3;11960:13;;;11954:20;11937:15;;;11930:45;11999:3;12039:44;12069:13;;;12039:44;:::i;:::-;12022:15;;;12015:69;12108:3;12148:44;12178:13;;;12148:44;:::i;:::-;12131:15;;;12124:69;12206:18;;11016:1;11009:9;;;;;12244:12;;;;12276;;;;10984:1314;;12333:257;;12453:2;12441:9;12432:7;12428:23;12424:32;12421:2;;;12474:6;12466;12459:22;12421:2;12511:9;12505:16;12530:30;12554:5;12530:30;:::i;12595:269::-;;12745:3;12733:9;12724:7;12720:23;12716:33;12713:2;;;12767:6;12759;12752:22;12713:2;12795:63;12850:7;12839:9;12795:63;:::i;12869:938::-;;12998:3;13042:2;13030:9;13021:7;13017:23;13013:32;13010:2;;;13063:6;13055;13048:22;13010:2;13101;13095:9;13131:15;;;;-1:-1:-1;;;;;13161:34:1;;13197:22;;;13158:62;13155:2;;;13223:9;13155:2;13254:10;13250:2;13243:22;13295:9;13289:16;13281:6;13274:32;13339:48;13383:2;13372:9;13368:18;13339:48;:::i;:::-;13334:2;13326:6;13322:15;13315:73;13442:2;13431:9;13427:18;13421:25;13416:2;13408:6;13404:15;13397:50;13501:2;13490:9;13486:18;13480:25;13475:2;13467:6;13463:15;13456:50;13561:3;13550:9;13546:19;13540:26;13534:3;13526:6;13522:16;13515:52;13622:3;13611:9;13607:19;13601:26;13595:3;13587:6;13583:16;13576:52;13683:3;13672:9;13668:19;13662:26;13656:3;13648:6;13644:16;13637:52;13723;13770:3;13759:9;13755:19;13723:52;:::i;:::-;13717:3;13705:16;;13698:78;13709:6;12978:829;-1:-1:-1;;;;12978:829:1:o;13812:385::-;;;;13969:2;13957:9;13948:7;13944:23;13940:32;13937:2;;;13990:6;13982;13975:22;13937:2;14027:9;14021:16;14046:33;14073:5;14046:33;:::i;:::-;14143:2;14128:18;;14122:25;14187:2;14172:18;;;14166:25;14098:5;;14122:25;;-1:-1:-1;14166:25:1;13927:270;-1:-1:-1;;;13927:270:1:o;14202:218::-;;14324:2;14312:9;14303:7;14299:23;14295:32;14292:2;;;14345:6;14337;14330:22;14292:2;14373:41;14404:9;14373:41;:::i;14425:190::-;;14537:2;14525:9;14516:7;14512:23;14508:32;14505:2;;;14558:6;14550;14543:22;14505:2;-1:-1:-1;14586:23:1;;14495:120;-1:-1:-1;14495:120:1:o;14620:194::-;;14743:2;14731:9;14722:7;14718:23;14714:32;14711:2;;;14764:6;14756;14749:22;14711:2;-1:-1:-1;14792:16:1;;14701:113;-1:-1:-1;14701:113:1:o;14819:324::-;;;14959:2;14947:9;14938:7;14934:23;14930:32;14927:2;;;14980:6;14972;14965:22;14927:2;15014:9;15008:16;14998:26;;15067:2;15056:9;15052:18;15046:25;15080:33;15107:5;15080:33;:::i;:::-;15132:5;15122:15;;;14917:226;;;;;:::o;15148:321::-;;;15274:2;15262:9;15253:7;15249:23;15245:32;15242:2;;;15295:6;15287;15280:22;15242:2;15336:9;15323:23;15313:33;;15396:2;15385:9;15381:18;15368:32;15409:30;15433:5;15409:30;:::i;15474:337::-;;;15641:3;15629:9;15620:7;15616:23;15612:33;15609:2;;;15663:6;15655;15648:22;15609:2;15704:9;15691:23;15681:33;;15733:72;15797:7;15792:2;15781:9;15777:18;15733:72;:::i;:::-;15723:82;;15599:212;;;;;:::o;15816:327::-;;;15945:2;15933:9;15924:7;15920:23;15916:32;15913:2;;;15966:6;15958;15951:22;15913:2;16007:9;15994:23;15984:33;;16067:2;16056:9;16052:18;16039:32;16080:33;16107:5;16080:33;:::i;16148:447::-;;;;;16322:3;16310:9;16301:7;16297:23;16293:33;16290:2;;;16344:6;16336;16329:22;16290:2;16378:9;16372:16;16362:26;;16431:2;16420:9;16416:18;16410:25;16444:33;16471:5;16444:33;:::i;:::-;16541:2;16526:18;;16520:25;16585:2;16570:18;;;16564:25;16280:315;;16496:5;;-1:-1:-1;16280:315:1;-1:-1:-1;;;16280:315:1:o;16600:255::-;;;16740:2;16728:9;16719:7;16715:23;16711:32;16708:2;;;16761:6;16753;16746:22;16708:2;-1:-1:-1;;16789:16:1;;16845:2;16830:18;;;16824:25;16789:16;;16824:25;;-1:-1:-1;16698:157:1:o;16860:539::-;;;;;17023:3;17011:9;17002:7;16998:23;16994:33;16991:2;;;17045:6;17037;17030:22;16991:2;17086:9;17073:23;17063:33;;17143:2;17132:9;17128:18;17115:32;17105:42;;17197:2;17186:9;17182:18;17169:32;17210:33;17237:5;17210:33;:::i;:::-;17262:5;-1:-1:-1;17319:2:1;17304:18;;17291:32;17332:35;17291:32;17332:35;:::i;:::-;16981:418;;;;-1:-1:-1;16981:418:1;;-1:-1:-1;;16981:418:1:o;17404:1224::-;;;;;;;;;;;;;17710:3;17698:9;17689:7;17685:23;17681:33;17678:2;;;17732:6;17724;17717:22;17678:2;17769:9;17763:16;17819:26;17812:5;17808:38;17801:5;17798:49;17788:2;;17866:6;17858;17851:22;17788:2;17894:5;-1:-1:-1;17918:51:1;17965:2;17950:18;;17918:51;:::i;:::-;17908:61;;17988:51;18035:2;18024:9;18020:18;17988:51;:::i;:::-;17978:61;;18058:51;18105:2;18094:9;18090:18;18058:51;:::i;:::-;18048:61;;18128:51;18174:3;18163:9;18159:19;18128:51;:::i;:::-;18118:61;;18198:50;18243:3;18232:9;18228:19;18198:50;:::i;:::-;18188:60;;18267:50;18312:3;18301:9;18297:19;18267:50;:::i;:::-;18257:60;;18336:52;18383:3;18372:9;18368:19;18336:52;:::i;:::-;18326:62;;18428:3;18417:9;18413:19;18407:26;18397:36;;18473:3;18462:9;18458:19;18452:26;18442:36;;18498:52;18545:3;18534:9;18530:19;18498:52;:::i;:::-;18487:63;;18570:52;18617:3;18606:9;18602:19;18570:52;:::i;:::-;18559:63;;17668:960;;;;;;;;;;;;;;:::o;18633:114::-;-1:-1:-1;;;;;18709:31:1;18697:44;;18687:60::o;18752:93::-;18824:13;18817:21;18805:34;;18795:50::o;18850:259::-;;18931:5;18925:12;18958:6;18953:3;18946:19;18974:63;19030:6;19023:4;19018:3;19014:14;19007:4;19000:5;18996:16;18974:63;:::i;:::-;19091:2;19070:15;-1:-1:-1;;19066:29:1;19057:39;;;;19098:4;19053:50;;18901:208;-1:-1:-1;;18901:208:1:o;19114:93::-;19191:1;19180:20;19168:33;;19158:49::o;19212:549::-;19299:5;19293:12;19288:3;19281:25;19369:4;19362:5;19358:16;19352:23;19345:31;19338:39;19331:4;19326:3;19322:14;19315:63;19427:4;19420:5;19416:16;19410:23;19403:4;19398:3;19394:14;19387:47;19483:4;19476:5;19472:16;19466:23;19459:4;19454:3;19450:14;19443:47;19539:4;19532:5;19528:16;19522:23;19515:4;19510:3;19506:14;19499:47;19595:4;19588:5;19584:16;19578:23;19571:4;19566:3;19562:14;19555:47;19651:4;19644:5;19640:16;19634:23;19627:4;19622:3;19618:14;19611:47;-1:-1:-1;;;;;19711:4:1;19704:5;19700:16;19694:23;19690:64;19683:4;19678:3;19674:14;19667:88;19271:490;;:::o;19766:121::-;-1:-1:-1;;;;;19834:46:1;19822:59;;19812:75::o;19892:94::-;19970:8;19959:20;19947:33;;19937:49::o;19991:274::-;;20158:6;20152:13;20174:53;20220:6;20215:3;20208:4;20200:6;20196:17;20174:53;:::i;:::-;20243:16;;;;;20128:137;-1:-1:-1;;20128:137:1:o;20270:205::-;20470:3;20461:14::o;20480:203::-;-1:-1:-1;;;;;20644:32:1;;;;20626:51;;20614:2;20599:18;;20581:102::o;20904:375::-;-1:-1:-1;;;;;21162:15:1;;;21144:34;;21214:15;;;;21209:2;21194:18;;21187:43;21261:2;21246:18;;21239:34;;;;21094:2;21079:18;;21061:218::o;21284:408::-;-1:-1:-1;;;;;21564:15:1;;;21546:34;;21628:4;21616:17;;;;21611:2;21596:18;;21589:45;21670:15;;;21665:2;21650:18;;21643:43;21496:2;21481:18;;21463:229::o;21697:274::-;-1:-1:-1;;;;;21889:32:1;;;;21871:51;;21953:2;21938:18;;21931:34;21859:2;21844:18;;21826:145::o;21976:806::-;;22165:2;22205;22194:9;22190:18;22235:2;22224:9;22217:21;22258:6;22293;22287:13;22324:6;22316;22309:22;22362:2;22351:9;22347:18;22340:25;;22425:2;22419;22411:6;22407:15;22396:9;22392:31;22388:40;22374:54;;22463:2;22455:6;22451:15;22484:4;22497:256;22511:6;22508:1;22505:13;22497:256;;;22604:2;22600:7;22588:9;22580:6;22576:22;22572:36;22567:3;22560:49;22632:41;22666:6;22657;22651:13;22632:41;:::i;:::-;22622:51;-1:-1:-1;22731:12:1;;;;22696:15;;;;22533:1;22526:9;22497:256;;;-1:-1:-1;22770:6:1;;22145:637;-1:-1:-1;;;;;;;22145:637:1:o;22787:722::-;23014:2;23066:21;;;23136:13;;23039:18;;;23158:22;;;22787:722;;23014:2;23237:15;;;;23211:2;23196:18;;;22787:722;23283:200;23297:6;23294:1;23291:13;23283:200;;;23346:53;23395:3;23386:6;23380:13;23346:53;:::i;:::-;23458:15;;;;23428:6;23419:16;;;;;23319:1;23312:9;23283:200;;;-1:-1:-1;23500:3:1;;22994:515;-1:-1:-1;;;;;;22994:515:1:o;23514:219::-;;23661:2;23650:9;23643:21;23681:46;23723:2;23712:9;23708:18;23700:6;23681:46;:::i;23982:307::-;24208:4;24196:17;;;;24178:36;;-1:-1:-1;;;;;24250:32:1;24245:2;24230:18;;24223:60;24166:2;24151:18;;24133:156::o;24294:397::-;24496:2;24478:21;;;24535:2;24515:18;;;24508:30;24574:34;24569:2;24554:18;;24547:62;-1:-1:-1;;;24640:2:1;24625:18;;24618:31;24681:3;24666:19;;24468:223::o;24696:326::-;24898:2;24880:21;;;24937:1;24917:18;;;24910:29;-1:-1:-1;;;24970:2:1;24955:18;;24948:33;25013:2;24998:18;;24870:152::o;25027:336::-;25229:2;25211:21;;;25268:2;25248:18;;;25241:30;-1:-1:-1;;;25302:2:1;25287:18;;25280:42;25354:2;25339:18;;25201:162::o;25368:336::-;25570:2;25552:21;;;25609:2;25589:18;;;25582:30;-1:-1:-1;;;25643:2:1;25628:18;;25621:42;25695:2;25680:18;;25542:162::o;25709:337::-;25911:2;25893:21;;;25950:2;25930:18;;;25923:30;-1:-1:-1;;;25984:2:1;25969:18;;25962:43;26037:2;26022:18;;25883:163::o;26051:336::-;26253:2;26235:21;;;26292:2;26272:18;;;26265:30;-1:-1:-1;;;26326:2:1;26311:18;;26304:42;26378:2;26363:18;;26225:162::o;26392:340::-;26594:2;26576:21;;;26633:2;26613:18;;;26606:30;-1:-1:-1;;;26667:2:1;26652:18;;26645:46;26723:2;26708:18;;26566:166::o;26737:332::-;26939:2;26921:21;;;26978:1;26958:18;;;26951:29;-1:-1:-1;;;27011:2:1;26996:18;;26989:39;27060:2;27045:18;;26911:158::o;27074:343::-;27276:2;27258:21;;;27315:2;27295:18;;;27288:30;-1:-1:-1;;;27349:2:1;27334:18;;27327:49;27408:2;27393:18;;27248:169::o;27422:329::-;27624:2;27606:21;;;27663:1;27643:18;;;27636:29;-1:-1:-1;;;27696:2:1;27681:18;;27674:36;27742:2;27727:18;;27596:155::o;27756:336::-;27958:2;27940:21;;;27997:2;27977:18;;;27970:30;-1:-1:-1;;;28031:2:1;28016:18;;28009:42;28083:2;28068:18;;27930:162::o;28097:339::-;28299:2;28281:21;;;28338:2;28318:18;;;28311:30;-1:-1:-1;;;28372:2:1;28357:18;;28350:45;28427:2;28412:18;;28271:165::o;28441:337::-;28643:2;28625:21;;;28682:2;28662:18;;;28655:30;-1:-1:-1;;;28716:2:1;28701:18;;28694:43;28769:2;28754:18;;28615:163::o;28783:326::-;28985:2;28967:21;;;29024:1;29004:18;;;28997:29;-1:-1:-1;;;29057:2:1;29042:18;;29035:33;29100:2;29085:18;;28957:152::o;29114:339::-;29316:2;29298:21;;;29355:2;29335:18;;;29328:30;-1:-1:-1;;;29389:2:1;29374:18;;29367:45;29444:2;29429:18;;29288:165::o;29458:326::-;29660:2;29642:21;;;29699:1;29679:18;;;29672:29;-1:-1:-1;;;29732:2:1;29717:18;;29710:33;29775:2;29760:18;;29632:152::o;29789:326::-;29991:2;29973:21;;;30030:1;30010:18;;;30003:29;-1:-1:-1;;;30063:2:1;30048:18;;30041:33;30106:2;30091:18;;29963:152::o;30120:331::-;30322:2;30304:21;;;30361:1;30341:18;;;30334:29;-1:-1:-1;;;30394:2:1;30379:18;;30372:38;30442:2;30427:18;;30294:157::o;30456:351::-;30658:2;30640:21;;;30697:2;30677:18;;;30670:30;30736:29;30731:2;30716:18;;30709:57;30798:2;30783:18;;30630:177::o;30812:343::-;31014:2;30996:21;;;31053:2;31033:18;;;31026:30;-1:-1:-1;;;31087:2:1;31072:18;;31065:49;31146:2;31131:18;;30986:169::o;31160:332::-;31362:2;31344:21;;;31401:1;31381:18;;;31374:29;-1:-1:-1;;;31434:2:1;31419:18;;31412:39;31483:2;31468:18;;31334:158::o;31497:338::-;31699:2;31681:21;;;31738:2;31718:18;;;31711:30;-1:-1:-1;;;31772:2:1;31757:18;;31750:44;31826:2;31811:18;;31671:164::o;31840:343::-;32042:2;32024:21;;;32081:2;32061:18;;;32054:30;-1:-1:-1;;;32115:2:1;32100:18;;32093:49;32174:2;32159:18;;32014:169::o;32188:348::-;32390:2;32372:21;;;32429:2;32409:18;;;32402:30;32468:26;32463:2;32448:18;;32441:54;32527:2;32512:18;;32362:174::o;32541:340::-;32743:2;32725:21;;;32782:2;32762:18;;;32755:30;-1:-1:-1;;;32816:2:1;32801:18;;32794:46;32872:2;32857:18;;32715:166::o;32886:332::-;33088:2;33070:21;;;33127:1;33107:18;;;33100:29;-1:-1:-1;;;33160:2:1;33145:18;;33138:39;33209:2;33194:18;;33060:158::o;33223:342::-;33425:2;33407:21;;;33464:2;33444:18;;;33437:30;-1:-1:-1;;;33498:2:1;33483:18;;33476:48;33556:2;33541:18;;33397:168::o;33570:574::-;33797:13;;33779:32;;33871:4;33859:17;;;33853:24;-1:-1:-1;;;;;33849:50:1;33827:20;;;33820:80;33947:4;33935:17;;;33929:24;-1:-1:-1;;;;;34044:21:1;;;34022:20;;;34015:51;;;;34126:4;34114:17;;;34108:24;34104:33;34082:20;;;34075:63;;;;33766:3;33751:19;;33733:411::o;34149:560::-;;34365:3;34354:9;34350:19;34342:27;;34402:6;34396:13;34385:9;34378:32;-1:-1:-1;;;;;34470:4:1;34462:6;34458:17;34452:24;34448:65;34441:4;34430:9;34426:20;34419:95;34570:4;34562:6;34558:17;34552:24;34545:4;34534:9;34530:20;34523:54;34633:4;34625:6;34621:17;34615:24;34608:4;34597:9;34593:20;34586:54;34696:4;34688:6;34684:17;34678:24;34671:4;34660:9;34656:20;34649:54;34332:377;;;;:::o;34714:566::-;34945:13;;-1:-1:-1;;;;;34941:39:1;34923:58;;35037:4;35025:17;;;35019:24;34997:20;;;34990:54;35100:4;35088:17;;;35082:24;35060:20;;;35053:54;35167:4;35155:17;;;35149:24;-1:-1:-1;;;;;35145:65:1;35123:20;;;35116:95;35267:4;35255:17;;;35249:24;35227:20;;;35220:54;;;;34910:3;34895:19;;34877:403::o;35285:1525::-;35567:3;35552:19;;35580:52;35556:9;35614:6;35580:52;:::i;:::-;35651:3;35696:6;35690:13;35685:2;35674:9;35670:18;35663:41;35741:4;35733:6;35729:17;35723:24;35766:3;35805:2;35800;35789:9;35785:18;35778:30;35845:4;35837:6;35833:17;35827:24;35817:34;;35870:3;35909:2;35904;35893:9;35889:18;35882:30;35949:4;35941:6;35937:17;35931:24;35921:34;;35974:3;36013:2;36008;35997:9;35993:18;35986:30;36071:4;36063:6;36059:17;36053:24;36047:3;36036:9;36032:19;36025:53;36125:4;36117:6;36113:17;36107:24;36087:44;;36140:63;36198:3;36187:9;36183:19;36169:12;36140:63;:::i;:::-;36252:4;36244:6;36240:17;36234:24;36212:46;;36267:65;36327:3;36316:9;36312:19;36296:14;36267:65;:::i;:::-;36381:4;36373:6;36369:17;36363:24;36341:46;;36396:54;36445:3;36434:9;36430:19;36414:14;36396:54;:::i;:::-;36493:15;;;36487:22;36481:3;36466:19;;36459:51;36553:15;;;36547:22;36541:3;36526:19;;36519:51;36607:15;;;36601:22;;36632:55;36682:3;36667:19;;36601:22;36632:55;:::i;:::-;36724:15;;36718:22;;-1:-1:-1;36749:55:1;;-1:-1:-1;;;36799:3:1;36784:19;;36718:22;36749:55;:::i;:::-;;35534:1276;;;;;:::o;36815:869::-;37037:13;;37019:32;;37126:4;37114:17;;37108:24;37006:3;36991:19;;;37080:53;;;:::i;:::-;37142;37189:4;37178:9;37174:20;37160:12;37142:53;:::i;:::-;;37251:4;37243:6;37239:17;37233:24;37226:4;37215:9;37211:20;37204:54;37314:4;37306:6;37302:17;37296:24;37289:4;37278:9;37274:20;37267:54;37377:4;37369:6;37365:17;37359:24;37352:4;37341:9;37337:20;37330:54;37440:4;37432:6;37428:17;37422:24;37415:4;37404:9;37400:20;37393:54;37503:4;37495:6;37491:17;37485:24;37478:4;37467:9;37463:20;37456:54;37541:70;37604:4;37596:6;37592:17;37586:24;37541:70;:::i;:::-;37620:58;37672:4;37661:9;37657:20;37641:14;37620:58;:::i;:::-;;36973:711;;;;:::o;37689:582::-;;37905:3;37894:9;37890:19;37882:27;;37942:6;37936:13;37925:9;37918:32;38006:4;37998:6;37994:17;37988:24;37981:4;37970:9;37966:20;37959:54;38069:4;38061:6;38057:17;38051:24;38044:4;38033:9;38029:20;38022:54;38132:4;38124:6;38120:17;38114:24;38107:4;38096:9;38092:20;38085:54;38195:4;38187:6;38183:17;38177:24;38170:4;38159:9;38155:20;38148:54;38258:4;38250:6;38246:17;38240:24;38233:4;38222:9;38218:20;38211:54;37872:399;;;;:::o;38276:1258::-;;38466:3;38455:9;38451:19;38443:27;;38479:54;38523:9;38514:6;38508:13;38479:54;:::i;:::-;38580:4;38572:6;38568:17;38562:24;38595:64;38653:4;38642:9;38638:20;38624:12;38595:64;:::i;:::-;;38708:4;38700:6;38696:17;38690:24;38723:57;38774:4;38763:9;38759:20;38743:14;38723:57;:::i;:::-;;38829:4;38821:6;38817:17;38811:24;38844:56;38894:4;38883:9;38879:20;38863:14;38844:56;:::i;:::-;;38949:4;38941:6;38937:17;38931:24;38964:56;39014:4;39003:9;38999:20;38983:14;38964:56;:::i;:::-;;39076:4;39068:6;39064:17;39058:24;39051:4;39040:9;39036:20;39029:54;39139:4;39131:6;39127:17;39121:24;39114:4;39103:9;39099:20;39092:54;39202:4;39194:6;39190:17;39184:24;39177:4;39166:9;39162:20;39155:54;39228:6;39288:2;39280:6;39276:15;39270:22;39265:2;39254:9;39250:18;39243:50;;39312:6;39367:2;39359:6;39355:15;39349:22;39380:64;39440:2;39429:9;39425:18;39409:14;39380:64;:::i;:::-;-1:-1:-1;;39463:6:1;39511:15;;;39505:22;39485:18;;;;39478:50;38433:1101;:::o;39539:177::-;39685:25;;;39673:2;39658:18;;39640:76::o;39721:248::-;39895:25;;;39951:2;39936:18;;39929:34;39883:2;39868:18;;39850:119::o;39974:242::-;40044:2;40038:9;40074:17;;;-1:-1:-1;;;;;40106:34:1;;40142:22;;;40103:62;40100:2;;;40168:9;40100:2;40195;40188:22;40018:198;;-1:-1:-1;40018:198:1:o;40221:181::-;;-1:-1:-1;;;;;40310:6:1;40307:30;40304:2;;;40340:9;40304:2;-1:-1:-1;40391:4:1;40372:17;;;40368:28;;40294:108::o;40407:181::-;;-1:-1:-1;;;;;40482:6:1;40479:30;40476:2;;;40512:9;40476:2;-1:-1:-1;40571:2:1;40548:17;-1:-1:-1;;40544:31:1;40577:4;40540:42;;40466:122::o;40593:90::-;40676:4;40665:16;;40652:31::o;40688:258::-;40760:1;40770:113;40784:6;40781:1;40778:13;40770:113;;;40860:11;;;40854:18;40841:11;;;40834:39;40806:2;40799:10;40770:113;;;40901:6;40898:1;40895:13;40892:2;;;-1:-1:-1;;40936:1:1;40918:16;;40911:27;40741:205::o;40951:155::-;-1:-1:-1;;;;;41049:51:1;;41030:76::o;41111:133::-;-1:-1:-1;;;;;41188:31:1;;41178:42;;41168:2;;41234:1;41231;41224:12;41249:120;41337:5;41330:13;41323:21;41316:5;41313:32;41303:2;;41359:1;41356;41349:12;41374:120;41463:5;41460:1;41449:20;41442:5;41439:31;41429:2;;41484:1;41481;41474:12;41499:148;-1:-1:-1;;;;;41580:5:1;41576:46;41569:5;41566:57;41556:2;;41637:1;41634;41627:12
Swarm Source
ipfs://ef85ae93dcab682230b58c1a1f3d859b551eb677920230982287f9c4ea7eba09
Loading...
Loading
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.