Overview
ETH Balance
0 ETH
Eth Value
$0.00Token Holdings
More Info
Private Name Tags
ContractCreator
Latest 8 from a total of 8 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Sync | 20602464 | 85 days ago | IN | 0 ETH | 0.00048926 | ||||
Withdraw Locked | 19119508 | 292 days ago | IN | 0 ETH | 0.03725592 | ||||
Get Reward2 | 18993657 | 310 days ago | IN | 0 ETH | 0.017517 | ||||
Stake Locked | 18832597 | 333 days ago | IN | 0 ETH | 0.02821132 | ||||
Sync | 18424326 | 390 days ago | IN | 0 ETH | 0.01052259 | ||||
Sync | 18342725 | 401 days ago | IN | 0 ETH | 0.00314184 | ||||
Stake Locked | 18342723 | 401 days ago | IN | 0 ETH | 0.02248466 | ||||
0x60806040 | 18342663 | 401 days ago | IN | 0 ETH | 0.07829961 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Contract Name:
FraxUnifiedFarm_ERC20_Convex_Generic
Compiler Version
v0.8.19+commit.7dd6d404
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2023-10-13 */ // SPDX-License-Identifier: GPL-2.0-or-later pragma solidity >=0.8.0; // Sources flattened with hardhat v2.17.3 https://hardhat.org // File contracts/Common/Context.sol // Original license: SPDX_License_Identifier: MIT /* * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with GSN meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address payable) { return payable(msg.sender); } function _msgData() internal view virtual returns (bytes memory) { this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691 return msg.data; } } // File contracts/Math/SafeMath.sol // Original license: SPDX_License_Identifier: MIT /** * @dev Wrappers over Solidity's arithmetic operations with added overflow * checks. * * Arithmetic operations in Solidity wrap on overflow. This can easily result * in bugs, because programmers usually assume that an overflow raises an * error, which is the standard behavior in high level programming languages. * `SafeMath` restores this intuition by reverting the transaction when an * operation overflows. * * Using this library instead of the unchecked operations eliminates an entire * class of bugs, so it's recommended to use it always. */ library SafeMath { /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256) { uint256 c = a + b; require(c >= a, "SafeMath: addition overflow"); return c; } /** * @dev Returns the subtraction of two unsigned integers, reverting on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b) internal pure returns (uint256) { return sub(a, b, "SafeMath: subtraction overflow"); } /** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * - Subtraction cannot overflow. * * _Available since v2.4.0._ */ function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b <= a, errorMessage); uint256 c = a - b; return c; } /** * @dev Returns the multiplication of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `*` operator. * * Requirements: * - Multiplication cannot overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522 if (a == 0) { return 0; } uint256 c = a * b; require(c / a == b, "SafeMath: multiplication overflow"); return c; } /** * @dev Returns the integer division of two unsigned integers. Reverts on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * - The divisor cannot be zero. */ function div(uint256 a, uint256 b) internal pure returns (uint256) { return div(a, b, "SafeMath: division by zero"); } /** * @dev Returns the integer division of two unsigned integers. Reverts with custom message on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * - The divisor cannot be zero. * * _Available since v2.4.0._ */ function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { // Solidity only automatically asserts when dividing by 0 require(b > 0, errorMessage); uint256 c = a / b; // assert(a == b * c + a % b); // There is no case in which this doesn't hold return c; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * Reverts when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b) internal pure returns (uint256) { return mod(a, b, "SafeMath: modulo by zero"); } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * Reverts with custom message when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * - The divisor cannot be zero. * * _Available since v2.4.0._ */ function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b != 0, errorMessage); return a % b; } } // File contracts/ERC20/IERC20.sol // Original license: SPDX_License_Identifier: MIT /** * @dev Interface of the ERC20 standard as defined in the EIP. Does not include * the optional functions; to access them see {ERC20Detailed}. */ interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `recipient`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address recipient, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `sender` to `recipient` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom(address sender, address recipient, uint256 amount) external returns (bool); /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); } // File contracts/Uniswap_V3/pool/IUniswapV3PoolActions.sol // Original license: SPDX_License_Identifier: MIT /// @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 contracts/Uniswap_V3/pool/IUniswapV3PoolDerivedState.sol // Original license: SPDX_License_Identifier: MIT /// @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 contracts/Uniswap_V3/pool/IUniswapV3PoolEvents.sol // Original license: SPDX_License_Identifier: GPL-2.0-or-later /// @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 contracts/Uniswap_V3/pool/IUniswapV3PoolImmutables.sol // Original license: SPDX_License_Identifier: GPL-2.0-or-later /// @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 contracts/Uniswap_V3/pool/IUniswapV3PoolOwnerActions.sol // Original license: SPDX_License_Identifier: GPL-2.0-or-later /// @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 contracts/Uniswap_V3/pool/IUniswapV3PoolState.sol // Original license: SPDX_License_Identifier: GPL-2.0-or-later /// @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 contracts/Uniswap_V3/IUniswapV3Pool.sol // Original license: SPDX_License_Identifier: GPL-2.0-or-later /// @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 contracts/Misc_AMOs/bunni/IBunniLens.sol // Original license: SPDX_License_Identifier: GPL-2.0-or-later interface IBunniLens { struct BunniKey { IUniswapV3Pool pool; int24 tickLower; int24 tickUpper; } function getReserves (BunniKey calldata key) external view returns (uint112 reserve0, uint112 reserve1); function hub () external view returns (address); function pricePerFullShare (BunniKey calldata key) external view returns (uint128 liquidity, uint256 amount0, uint256 amount1); } // File contracts/Curve/ICurvefrxETHETHPool.sol // Original license: SPDX_License_Identifier: GPL-2.0-or-later interface ICurvefrxETHETHPool { function A() external view returns (uint256); function A_precise() external view returns (uint256); function get_p() external view returns (uint256); function price_oracle() external view returns (uint256); function get_virtual_price() external view returns (uint256); function calc_token_amount(uint256[2] memory _amounts, bool _is_deposit) external view returns (uint256); function add_liquidity(uint256[2] memory _amounts, uint256 _min_mint_amount) external returns (uint256); function get_dy(int128 i, int128 j, uint256 _dx) external view returns (uint256); function exchange(int128 i, int128 j, uint256 _dx, uint256 _min_dy) external payable returns (uint256); function remove_liquidity(uint256 _amount, uint256[2] memory _min_amounts) external returns (uint256[2] memory); function remove_liquidity_imbalance(uint256[2] memory _amounts, uint256 _max_burn_amount) external returns (uint256); function calc_withdraw_one_coin(uint256 _token_amount, int128 i) external view returns (uint256); function remove_liquidity_one_coin(uint256 _token_amount, int128 i, uint256 _min_amount) external returns (uint256); function ramp_A(uint256 _future_A, uint256 _future_time) external; function stop_ramp_A() external; function commit_new_fee(uint256 _new_fee, uint256 _new_admin_fee) external; function apply_new_fee() external; function revert_new_parameters() external; function set_ma_exp_time(uint256 _ma_exp_time) external; function commit_transfer_ownership(address _owner) external; function apply_transfer_ownership() external; function revert_transfer_ownership() external; function admin_balances(uint256 i) external view returns (uint256); function withdraw_admin_fees() external; function donate_admin_fees() external; function kill_me() external; function unkill_me() external; function coins(uint256 arg0) external view returns (address); function balances(uint256 arg0) external view returns (uint256); function fee() external view returns (uint256); function admin_fee() external view returns (uint256); function owner() external view returns (address); function lp_token() external view returns (address); function initial_A() external view returns (uint256); function future_A() external view returns (uint256); function initial_A_time() external view returns (uint256); function future_A_time() external view returns (uint256); function admin_actions_deadline() external view returns (uint256); function transfer_ownership_deadline() external view returns (uint256); function future_fee() external view returns (uint256); function future_admin_fee() external view returns (uint256); function future_owner() external view returns (address); function ma_exp_time() external view returns (uint256); function ma_last_time() external view returns (uint256); } // File contracts/Misc_AMOs/convex/IConvexStakingWrapperFrax.sol // Original license: SPDX_License_Identifier: MIT interface IConvexStakingWrapperFrax { function addRewards ( ) external; function addTokenReward ( address _token ) external; function allowance ( address owner, address spender ) external view returns ( uint256 ); function approve ( address spender, uint256 amount ) external returns ( bool ); function balanceOf ( address account ) external view returns ( uint256 ); function collateralVault ( ) external view returns ( address ); function convexBooster ( ) external view returns ( address ); function convexPool ( ) external view returns ( address ); function convexPoolId ( ) external view returns ( uint256 ); function convexToken ( ) external view returns ( address ); function crv ( ) external view returns ( address ); function curveToken ( ) external view returns ( address ); function cvx ( ) external view returns ( address ); function decimals ( ) external view returns ( uint8 ); function decreaseAllowance ( address spender, uint256 subtractedValue ) external returns ( bool ); function deposit ( uint256 _amount, address _to ) external; function distroContract ( ) external view returns ( address ); function distroImplementation ( ) external view returns ( address ); function distroSealed ( ) external view returns ( bool ); function earmarkRewards ( ) external returns ( bool ); function factory ( ) external view returns ( address ); function getReward ( address _account, address _forwardTo ) external; function getReward ( address _account ) external; function increaseAllowance ( address spender, uint256 addedValue ) external returns ( bool ); function initialize ( uint256 _poolId ) external; function invalidateReward ( address _token ) external; function isInit ( ) external view returns ( bool ); function isShutdown ( ) external view returns ( bool ); function name ( ) external view returns ( string memory ); function owner ( ) external view returns ( address ); function proxyFactory ( ) external view returns ( address ); function registeredRewards ( address ) external view returns ( uint256 ); function renounceOwnership ( ) external; function rewardHook ( ) external view returns ( address ); function rewardLength ( ) external view returns ( uint256 ); function rewardRedirect ( address ) external view returns ( address ); function rewards ( uint256 ) external view returns ( address reward_token, address reward_pool, uint256 reward_integral, uint256 reward_remaining ); function sealDistributor ( ) external; function setApprovals ( ) external; function setDistributor ( address _distro ) external; function setHook ( address _hook ) external; function setRewardRedirect ( address _to ) external; function setVault ( address _vault ) external; function shutdown ( ) external; function stake ( uint256 _amount, address _to ) external; function symbol ( ) external view returns ( string memory ); function totalBalanceOf ( address _account ) external view returns ( uint256 ); function totalSupply ( ) external view returns ( uint256 ); function transfer ( address recipient, uint256 amount ) external returns ( bool ); function transferFrom ( address sender, address recipient, uint256 amount ) external returns ( bool ); function transferOwnership ( address newOwner ) external; function user_checkpoint ( address _account ) external returns ( bool ); function withdraw ( uint256 _amount ) external; function withdrawAndUnwrap ( uint256 _amount ) external; } // File contracts/Misc_AMOs/curve/ICurveTricryptoOptimizedWETH.sol // Original license: SPDX_License_Identifier: GPL-2.0-or-later interface ICurveTricryptoOptimizedWETH { function exchange ( uint256 i, uint256 j, uint256 dx, uint256 min_dy ) external returns ( uint256 ); function exchange ( uint256 i, uint256 j, uint256 dx, uint256 min_dy, bool use_eth ) external returns ( uint256 ); function exchange ( uint256 i, uint256 j, uint256 dx, uint256 min_dy, bool use_eth, address receiver ) external returns ( uint256 ); function exchange_underlying ( uint256 i, uint256 j, uint256 dx, uint256 min_dy ) external returns ( uint256 ); function exchange_underlying ( uint256 i, uint256 j, uint256 dx, uint256 min_dy, address receiver ) external returns ( uint256 ); function exchange_extended ( uint256 i, uint256 j, uint256 dx, uint256 min_dy, bool use_eth, address sender, address receiver, bytes32 cb ) external returns ( uint256 ); function add_liquidity ( uint256[3] memory amounts, uint256 min_mint_amount ) external returns ( uint256 ); function add_liquidity ( uint256[3] memory amounts, uint256 min_mint_amount, bool use_eth ) external returns ( uint256 ); function add_liquidity ( uint256[3] memory amounts, uint256 min_mint_amount, bool use_eth, address receiver ) external returns ( uint256 ); function remove_liquidity ( uint256 _amount, uint256[3] memory min_amounts ) external returns ( uint256[3] memory ); function remove_liquidity ( uint256 _amount, uint256[3] memory min_amounts, bool use_eth ) external returns ( uint256[3] memory ); function remove_liquidity ( uint256 _amount, uint256[3] memory min_amounts, bool use_eth, address receiver ) external returns ( uint256[3] memory ); function remove_liquidity ( uint256 _amount, uint256[3] memory min_amounts, bool use_eth, address receiver, bool claim_admin_fees ) external returns ( uint256[3] memory ); function remove_liquidity_one_coin ( uint256 token_amount, uint256 i, uint256 min_amount ) external returns ( uint256 ); function remove_liquidity_one_coin ( uint256 token_amount, uint256 i, uint256 min_amount, bool use_eth ) external returns ( uint256 ); function remove_liquidity_one_coin ( uint256 token_amount, uint256 i, uint256 min_amount, bool use_eth, address receiver ) external returns ( uint256 ); function claim_admin_fees ( ) external; function transferFrom ( address _from, address _to, uint256 _value ) external returns ( bool ); function transfer ( address _to, uint256 _value ) external returns ( bool ); function approve ( address _spender, uint256 _value ) external returns ( bool ); function increaseAllowance ( address _spender, uint256 _add_value ) external returns ( bool ); function decreaseAllowance ( address _spender, uint256 _sub_value ) external returns ( bool ); function permit ( address _owner, address _spender, uint256 _value, uint256 _deadline, uint8 _v, bytes32 _r, bytes32 _s ) external returns ( bool ); function fee_receiver ( ) external view returns ( address ); function calc_token_amount ( uint256[3] memory amounts, bool deposit ) external view returns ( uint256 ); function get_dy ( uint256 i, uint256 j, uint256 dx ) external view returns ( uint256 ); function get_dx ( uint256 i, uint256 j, uint256 dy ) external view returns ( uint256 ); function lp_price ( ) external view returns ( uint256 ); function get_virtual_price ( ) external view returns ( uint256 ); function price_oracle ( uint256 k ) external view returns ( uint256 ); function last_prices ( uint256 k ) external view returns ( uint256 ); function price_scale ( uint256 k ) external view returns ( uint256 ); function fee ( ) external view returns ( uint256 ); function calc_withdraw_one_coin ( uint256 token_amount, uint256 i ) external view returns ( uint256 ); function calc_token_fee ( uint256[3] memory amounts, uint256[3] memory xp ) external view returns ( uint256 ); function A ( ) external view returns ( uint256 ); function gamma ( ) external view returns ( uint256 ); function mid_fee ( ) external view returns ( uint256 ); function out_fee ( ) external view returns ( uint256 ); function fee_gamma ( ) external view returns ( uint256 ); function allowed_extra_profit ( ) external view returns ( uint256 ); function adjustment_step ( ) external view returns ( uint256 ); function ma_time ( ) external view returns ( uint256 ); function precisions ( ) external view returns ( uint256[3] memory ); function fee_calc ( uint256[3] memory xp ) external view returns ( uint256 ); function DOMAIN_SEPARATOR ( ) external view returns ( bytes32 ); function ramp_A_gamma ( uint256 future_A, uint256 future_gamma, uint256 future_time ) external; function stop_ramp_A_gamma ( ) external; function commit_new_parameters ( uint256 _new_mid_fee, uint256 _new_out_fee, uint256 _new_fee_gamma, uint256 _new_allowed_extra_profit, uint256 _new_adjustment_step, uint256 _new_ma_time ) external; function apply_new_parameters ( ) external; function revert_new_parameters ( ) external; function WETH20 ( ) external view returns ( address ); function MATH ( ) external view returns ( address ); function coins ( uint256 arg0 ) external view returns ( address ); function factory ( ) external view returns ( address ); function last_prices_timestamp ( ) external view returns ( uint256 ); function initial_A_gamma ( ) external view returns ( uint256 ); function initial_A_gamma_time ( ) external view returns ( uint256 ); function future_A_gamma ( ) external view returns ( uint256 ); function future_A_gamma_time ( ) external view returns ( uint256 ); function balances ( uint256 arg0 ) external view returns ( uint256 ); function D ( ) external view returns ( uint256 ); function xcp_profit ( ) external view returns ( uint256 ); function xcp_profit_a ( ) external view returns ( uint256 ); function virtual_price ( ) external view returns ( uint256 ); function packed_rebalancing_params ( ) external view returns ( uint256 ); function packed_fee_params ( ) external view returns ( uint256 ); function ADMIN_FEE ( ) external view returns ( uint256 ); function admin_actions_deadline ( ) external view returns ( uint256 ); function name ( ) external view returns ( string memory ); function symbol ( ) external view returns ( string memory ); function decimals ( ) external view returns ( uint8 ); function version ( ) external view returns ( string memory ); function balanceOf ( address arg0 ) external view returns ( uint256 ); function allowance ( address arg0, address arg1 ) external view returns ( uint256 ); function totalSupply ( ) external view returns ( uint256 ); function nonces ( address arg0 ) external view returns ( uint256 ); function salt ( ) external view returns ( bytes32 ); } // File contracts/Curve/IFraxGaugeController.sol // Original license: SPDX_License_Identifier: GPL-2.0-or-later // https://github.com/swervefi/swerve/edit/master/packages/swerve-contracts/interfaces/IGaugeController.sol interface IFraxGaugeController { struct Point { uint256 bias; uint256 slope; } struct VotedSlope { uint256 slope; uint256 power; uint256 end; } // Public variables function admin() external view returns (address); function future_admin() external view returns (address); function token() external view returns (address); function voting_escrow() external view returns (address); function n_gauge_types() external view returns (int128); function n_gauges() external view returns (int128); function gauge_type_names(int128) external view returns (string memory); function gauges(uint256) external view returns (address); function vote_user_slopes(address, address) external view returns (VotedSlope memory); function vote_user_power(address) external view returns (uint256); function last_user_vote(address, address) external view returns (uint256); function points_weight(address, uint256) external view returns (Point memory); function time_weight(address) external view returns (uint256); function points_sum(int128, uint256) external view returns (Point memory); function time_sum(uint256) external view returns (uint256); function points_total(uint256) external view returns (uint256); function time_total() external view returns (uint256); function points_type_weight(int128, uint256) external view returns (uint256); function time_type_weight(uint256) external view returns (uint256); // Getter functions function gauge_types(address) external view returns (int128); function gauge_relative_weight(address) external view returns (uint256); function gauge_relative_weight(address, uint256) external view returns (uint256); function get_gauge_weight(address) external view returns (uint256); function get_type_weight(int128) external view returns (uint256); function get_total_weight() external view returns (uint256); function get_weights_sum_per_type(int128) external view returns (uint256); // External functions function commit_transfer_ownership(address) external; function apply_transfer_ownership() external; function add_gauge( address, int128, uint256 ) external; function checkpoint() external; function checkpoint_gauge(address) external; function global_emission_rate() external view returns (uint256); function gauge_relative_weight_write(address) external returns (uint256); function gauge_relative_weight_write(address, uint256) external returns (uint256); function add_type(string memory, uint256) external; function change_type_weight(int128, uint256) external; function change_gauge_weight(address, uint256) external; function change_global_emission_rate(uint256) external; function vote_for_gauge_weights(address, uint256) external; } // File contracts/Curve/IFraxGaugeFXSRewardsDistributor.sol // Original license: SPDX_License_Identifier: GPL-2.0-or-later interface IFraxGaugeFXSRewardsDistributor { function acceptOwnership() external; function curator_address() external view returns(address); function currentReward(address gauge_address) external view returns(uint256 reward_amount); function distributeReward(address gauge_address) external returns(uint256 weeks_elapsed, uint256 reward_tally); function distributionsOn() external view returns(bool); function gauge_whitelist(address) external view returns(bool); function is_middleman(address) external view returns(bool); function last_time_gauge_paid(address) external view returns(uint256); function nominateNewOwner(address _owner) external; function nominatedOwner() external view returns(address); function owner() external view returns(address); function recoverERC20(address tokenAddress, uint256 tokenAmount) external; function setCurator(address _new_curator_address) external; function setGaugeController(address _gauge_controller_address) external; function setGaugeState(address _gauge_address, bool _is_middleman, bool _is_active) external; function setTimelock(address _new_timelock) external; function timelock_address() external view returns(address); function toggleDistributions() external; } // File contracts/Curve/IveFXS.sol // Original license: SPDX_License_Identifier: GPL-2.0-or-later interface IveFXS { struct LockedBalance { int128 amount; uint256 end; } function commit_transfer_ownership(address addr) external; function apply_transfer_ownership() external; function commit_smart_wallet_checker(address addr) external; function apply_smart_wallet_checker() external; function toggleEmergencyUnlock() external; function recoverERC20(address token_addr, uint256 amount) external; function get_last_user_slope(address addr) external view returns (int128); function user_point_history__ts(address _addr, uint256 _idx) external view returns (uint256); function locked__end(address _addr) external view returns (uint256); function checkpoint() external; function deposit_for(address _addr, uint256 _value) external; function create_lock(uint256 _value, uint256 _unlock_time) external; function increase_amount(uint256 _value) external; function increase_unlock_time(uint256 _unlock_time) external; function withdraw() external; function balanceOf(address addr) external view returns (uint256); function balanceOf(address addr, uint256 _t) external view returns (uint256); function balanceOfAt(address addr, uint256 _block) external view returns (uint256); function totalSupply() external view returns (uint256); function totalSupply(uint256 t) external view returns (uint256); function totalSupplyAt(uint256 _block) external view returns (uint256); function totalFXSSupply() external view returns (uint256); function totalFXSSupplyAt(uint256 _block) external view returns (uint256); function changeController(address _newController) external; function token() external view returns (address); function supply() external view returns (uint256); function locked(address addr) external view returns (LockedBalance memory); function epoch() external view returns (uint256); function point_history(uint256 arg0) external view returns (int128 bias, int128 slope, uint256 ts, uint256 blk, uint256 fxs_amt); function user_point_history(address arg0, uint256 arg1) external view returns (int128 bias, int128 slope, uint256 ts, uint256 blk, uint256 fxs_amt); function user_point_epoch(address arg0) external view returns (uint256); function slope_changes(uint256 arg0) external view returns (int128); function controller() external view returns (address); function transfersEnabled() external view returns (bool); function emergencyUnlockActive() external view returns (bool); function name() external view returns (string memory); function symbol() external view returns (string memory); function version() external view returns (string memory); function decimals() external view returns (uint256); function future_smart_wallet_checker() external view returns (address); function smart_wallet_checker() external view returns (address); function admin() external view returns (address); function future_admin() external view returns (address); } // File contracts/Math/Math.sol // Original license: SPDX_License_Identifier: MIT /** * @dev Standard math utilities missing in the Solidity language. */ library Math { /** * @dev Returns the largest of two numbers. */ function max(uint256 a, uint256 b) internal pure returns (uint256) { return a >= b ? a : b; } /** * @dev Returns the smallest of two numbers. */ function min(uint256 a, uint256 b) internal pure returns (uint256) { return a < b ? a : b; } /** * @dev Returns the average of two numbers. The result is rounded towards * zero. */ function average(uint256 a, uint256 b) internal pure returns (uint256) { // (a + b) / 2 can overflow, so we distribute return (a / 2) + (b / 2) + ((a % 2 + b % 2) / 2); } // babylonian method (https://en.wikipedia.org/wiki/Methods_of_computing_square_roots#Babylonian_method) function sqrt(uint y) internal pure returns (uint z) { if (y > 3) { z = y; uint x = y / 2 + 1; while (x < z) { z = x; x = (y / x + x) / 2; } } else if (y != 0) { z = 1; } } } // File contracts/Misc_AMOs/bunni/IBunniGauge.sol // Original license: SPDX_License_Identifier: GPL-2.0-or-later interface IBunniGauge { function deposit ( uint256 _value ) external; function deposit ( uint256 _value, address _addr ) external; function deposit ( uint256 _value, address _addr, bool _claim_rewards ) external; function withdraw ( uint256 _value ) external; function withdraw ( uint256 _value, bool _claim_rewards ) external; function claim_rewards ( ) external; function claim_rewards ( address _addr ) external; function claim_rewards ( address _addr, address _receiver ) external; function transferFrom ( address _from, address _to, uint256 _value ) external returns ( bool ); function transfer ( address _to, uint256 _value ) external returns ( bool ); function approve ( address _spender, uint256 _value ) external returns ( bool ); function permit ( address _owner, address _spender, uint256 _value, uint256 _deadline, uint8 _v, bytes32 _r, bytes32 _s ) external returns ( bool ); function increaseAllowance ( address _spender, uint256 _added_value ) external returns ( bool ); function decreaseAllowance ( address _spender, uint256 _subtracted_value ) external returns ( bool ); function user_checkpoint ( address addr ) external returns ( bool ); function set_rewards_receiver ( address _receiver ) external; function kick ( address addr ) external; function deposit_reward_token ( address _reward_token, uint256 _amount ) external; function add_reward ( address _reward_token, address _distributor ) external; function set_reward_distributor ( address _reward_token, address _distributor ) external; function makeGaugePermissionless ( ) external; function killGauge ( ) external; function unkillGauge ( ) external; function change_pending_admin ( address new_pending_admin ) external; function claim_admin ( ) external; function set_tokenless_production ( uint8 new_tokenless_production ) external; function claimed_reward ( address _addr, address _token ) external view returns ( uint256 ); function claimable_reward ( address _user, address _reward_token ) external view returns ( uint256 ); function claimable_tokens ( address addr ) external returns ( uint256 ); function integrate_checkpoint ( ) external view returns ( uint256 ); function future_epoch_time ( ) external view returns ( uint256 ); function inflation_rate ( ) external view returns ( uint256 ); function decimals ( ) external view returns ( uint256 ); function version ( ) external view returns ( string memory ); function allowance ( address owner, address spender ) external view returns ( uint256 ); function is_killed ( ) external view returns ( bool ); function initialize ( address _lp_token, uint256 relative_weight_cap, address _voting_escrow_delegation, address _admin, bytes32 _position_key ) external; function setRelativeWeightCap ( uint256 relative_weight_cap ) external; function getRelativeWeightCap ( ) external view returns ( uint256 ); function getCappedRelativeWeight ( uint256 time ) external view returns ( uint256 ); function getMaxRelativeWeightCap ( ) external pure returns ( uint256 ); function tokenless_production ( ) external view returns ( uint8 ); function pending_admin ( ) external view returns ( address ); function admin ( ) external view returns ( address ); function voting_escrow_delegation ( ) external view returns ( address ); function balanceOf ( address arg0 ) external view returns ( uint256 ); function totalSupply ( ) external view returns ( uint256 ); function name ( ) external view returns ( string memory ); function symbol ( ) external view returns ( string memory ); function DOMAIN_SEPARATOR ( ) external view returns ( bytes32 ); function nonces ( address arg0 ) external view returns ( uint256 ); function lp_token ( ) external view returns ( address ); function gauge_state ( ) external view returns ( uint8 ); function position_key ( ) external view returns ( bytes32 ); function reward_count ( ) external view returns ( uint256 ); // function reward_data ( address arg0 ) external view returns ( tuple ); function rewards_receiver ( address arg0 ) external view returns ( address ); function reward_integral_for ( address arg0, address arg1 ) external view returns ( uint256 ); function working_balances ( address arg0 ) external view returns ( uint256 ); function working_supply ( ) external view returns ( uint256 ); function integrate_inv_supply_of ( address arg0 ) external view returns ( uint256 ); function integrate_checkpoint_of ( address arg0 ) external view returns ( uint256 ); function integrate_fraction ( address arg0 ) external view returns ( uint256 ); function period ( ) external view returns ( int128 ); function reward_tokens ( uint256 arg0 ) external view returns ( address ); function period_timestamp ( uint256 arg0 ) external view returns ( uint256 ); function integrate_inv_supply ( uint256 arg0 ) external view returns ( uint256 ); } // File contracts/Misc_AMOs/bunni/IBunniMinter.sol // Original license: SPDX_License_Identifier: GPL-2.0-or-later interface IBunniMinter { function allowed_to_mint_for ( address minter, address user ) external view returns ( bool ); function getGaugeController ( ) external view returns ( address ); function getMinterApproval ( address minter, address user ) external view returns ( bool ); function getToken ( ) external view returns ( address ); function getTokenAdmin ( ) external view returns ( address ); function mint ( address gauge ) external returns ( uint256 ); function mintFor ( address gauge, address user ) external returns ( uint256 ); function mintMany ( address[] memory gauges ) external returns ( uint256 ); function mintManyFor ( address[] memory gauges, address user ) external returns ( uint256 ); function mint_for ( address gauge, address user ) external; function mint_many ( address[8] memory gauges ) external; function minted ( address user, address gauge ) external view returns ( uint256 ); function setMinterApproval ( address minter, bool approval ) external; function toggle_approve_mint ( address minter ) external; } // File contracts/Staking/Owned.sol // Original license: SPDX_License_Identifier: GPL-2.0-or-later // https://docs.synthetix.io/contracts/Owned contract Owned { address public owner; address public nominatedOwner; constructor (address _owner) public { require(_owner != address(0), "Owner address cannot be 0"); owner = _owner; emit OwnerChanged(address(0), _owner); } function nominateNewOwner(address _owner) external onlyOwner { nominatedOwner = _owner; emit OwnerNominated(_owner); } function acceptOwnership() external { require(msg.sender == nominatedOwner, "You must be nominated before you can accept ownership"); emit OwnerChanged(owner, nominatedOwner); owner = nominatedOwner; nominatedOwner = address(0); } modifier onlyOwner { require(msg.sender == owner, "Only the contract owner may perform this action"); _; } event OwnerNominated(address newOwner); event OwnerChanged(address oldOwner, address newOwner); } // File contracts/Uniswap/TransferHelper.sol // Original license: SPDX_License_Identifier: MIT // helper methods for interacting with ERC20 tokens and sending ETH that do not consistently return true/false library TransferHelper { function safeApprove(address token, address to, uint value) internal { // bytes4(keccak256(bytes('approve(address,uint256)'))); (bool success, bytes memory data) = token.call(abi.encodeWithSelector(0x095ea7b3, to, value)); require(success && (data.length == 0 || abi.decode(data, (bool))), 'TransferHelper: APPROVE_FAILED'); } function safeTransfer(address token, address to, uint value) internal { // bytes4(keccak256(bytes('transfer(address,uint256)'))); (bool success, bytes memory data) = token.call(abi.encodeWithSelector(0xa9059cbb, to, value)); require(success && (data.length == 0 || abi.decode(data, (bool))), 'TransferHelper: TRANSFER_FAILED'); } function safeTransferFrom(address token, address from, address to, uint value) internal { // bytes4(keccak256(bytes('transferFrom(address,address,uint256)'))); (bool success, bytes memory data) = token.call(abi.encodeWithSelector(0x23b872dd, from, to, value)); require(success && (data.length == 0 || abi.decode(data, (bool))), 'TransferHelper: TRANSFER_FROM_FAILED'); } function safeTransferETH(address to, uint value) internal { (bool success,) = to.call{value:value}(new bytes(0)); require(success, 'TransferHelper: ETH_TRANSFER_FAILED'); } } // File contracts/Utils/ReentrancyGuard.sol // Original license: SPDX_License_Identifier: MIT /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * available, which can be applied to functions to make sure there are no nested * (reentrant) calls to them. * * Note that because there is a single `nonReentrant` guard, functions marked as * `nonReentrant` may not call one another. This can be worked around by making * those functions `private`, and then adding `external` `nonReentrant` entry * points to them. * * TIP: If you would like to learn more about reentrancy and alternative ways * to protect against it, check out our blog post * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. */ abstract contract ReentrancyGuard { // Booleans are more expensive than uint256 or any type that takes up a full // word because each write operation emits an extra SLOAD to first read the // slot's contents, replace the bits taken up by the boolean, and then write // back. This is the compiler's defense against contract upgrades and // pointer aliasing, and it cannot be disabled. // The values being non-zero value makes deployment a bit more expensive, // but in exchange the refund on every call to nonReentrant will be lower in // amount. Since refunds are capped to a percentage of the total // transaction's gas, it is best to keep them low in cases like this one, to // increase the likelihood of the full refund coming into effect. uint256 private constant _NOT_ENTERED = 1; uint256 private constant _ENTERED = 2; uint256 private _status; constructor () internal { _status = _NOT_ENTERED; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and make it call a * `private` function that does the actual work. */ modifier nonReentrant() { // On the first call to nonReentrant, _notEntered will be true require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; _; // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } } // File contracts/Staking/FraxUnifiedFarmTemplate.sol // Original license: SPDX_License_Identifier: GPL-2.0-or-later // ==================================================================== // | ______ _______ | // | / _____________ __ __ / ____(_____ ____ _____ ________ | // | / /_ / ___/ __ `| |/_/ / /_ / / __ \/ __ `/ __ \/ ___/ _ \ | // | / __/ / / / /_/ _> < / __/ / / / / / /_/ / / / / /__/ __/ | // | /_/ /_/ \__,_/_/|_| /_/ /_/_/ /_/\__,_/_/ /_/\___/\___/ | // | | // ==================================================================== // ====================== FraxUnifiedFarmTemplate ===================== // ==================================================================== // Farming contract that accounts for veFXS // Overrideable for UniV3, ERC20s, etc // New for V2 // - Multiple reward tokens possible // - Can add to existing locked stakes // - Contract is aware of proxied veFXS // - veFXS multiplier formula changed // Apes together strong // Frax Finance: https://github.com/FraxFinance // Primary Author(s) // Travis Moore: https://github.com/FortisFortuna // Reviewer(s) / Contributor(s) // Jason Huan: https://github.com/jasonhuan // Sam Kazemian: https://github.com/samkazemian // Dennis: github.com/denett // Originally inspired by Synthetix.io, but heavily modified by the Frax team // (Locked, veFXS, and UniV3 portions are new) // https://raw.githubusercontent.com/Synthetixio/synthetix/develop/contracts/StakingRewards.sol // Extra rewards // import "../Misc_AMOs/convex/IConvexBaseRewardPool.sol"; contract FraxUnifiedFarmTemplate is Owned, ReentrancyGuard { // -------------------- VARIES -------------------- // // Bunni // IBunniGauge public stakingToken; // IBunniLens public lens = IBunniLens(0xb73F303472C4fD4FF3B9f59ce0F9b13E47fbfD19); // IBunniMinter public minter = IBunniMinter(0xF087521Ffca0Fa8A43F5C445773aB37C5f574DA0); /* ========== STATE VARIABLES ========== */ // Instances IveFXS private constant veFXS = IveFXS(0xc8418aF6358FFddA74e09Ca9CC3Fe03Ca6aDC5b0); // Frax related address internal constant frax_address = 0x853d955aCEf822Db058eb8505911ED77F175b99e; /// @notice fraxPerLPToken is a public view function, although doesn't show the stored value uint256 public fraxPerLPStored; // Constant for various precisions uint256 internal constant MULTIPLIER_PRECISION = 1e18; // Time tracking /// @notice Ending timestamp for the current period uint256 public periodFinish; /// @notice Timestamp of the last update - when this period started uint256 public lastUpdateTime; // Lock time and multiplier settings uint256 public lock_max_multiplier = uint256(2e18); // E18. 1x = e18 uint256 public lock_time_for_max_multiplier = 1 * 1095 * 86400; // 3 years // uint256 public lock_time_for_max_multiplier = 2 * 86400; // 2 days uint256 public lock_time_min = 0; // 0 sec // veFXS related uint256 public vefxs_boost_scale_factor = uint256(4e18); // E18. 4x = 4e18; 100 / scale_factor = % vefxs supply needed for max boost uint256 public vefxs_max_multiplier = uint256(2e18); // E18. 1x = 1e18 uint256 public vefxs_per_frax_for_max_boost = uint256(4e18); // E18. 2e18 means 2 veFXS must be held by the staker per 1 FRAX mapping(address => uint256) internal _vefxsMultiplierStored; mapping(address => bool) internal valid_vefxs_proxies; mapping(address => mapping(address => bool)) internal proxy_allowed_stakers; // Reward addresses, gauge addresses, reward rates, and reward managers /// @notice token addr -> manager addr mapping(address => address) public rewardManagers; address[] internal rewardTokens; address[] internal gaugeControllers; address[] internal rewardDistributors; uint256[] internal rewardRatesManual; mapping(address => bool) internal isRewardToken; /// @notice token addr -> token index mapping(address => uint256) public rewardTokenAddrToIdx; // Reward period uint256 public constant rewardsDuration = 604800; // 7 * 86400 (7 days) // Reward tracking uint256[] private rewardsPerTokenStored; mapping(address => mapping(uint256 => uint256)) private userRewardsPerTokenPaid; // staker addr -> token id -> paid amount mapping(address => mapping(uint256 => uint256)) private rewards; // staker addr -> token id -> reward amount mapping(address => uint256) public lastRewardClaimTime; // staker addr -> timestamp // Gauge tracking uint256[] private last_gauge_relative_weights; uint256[] private last_gauge_time_totals; // Balance tracking uint256 internal _total_liquidity_locked; uint256 internal _total_combined_weight; mapping(address => uint256) internal _locked_liquidity; mapping(address => uint256) internal _combined_weights; /// @notice Keeps track of LP balances proxy-wide. Needed to make sure the proxy boost is kept in line mapping(address => uint256) public proxy_lp_balances; /// @notice Stakers set which proxy(s) they want to use /// @dev Keep public so users can see on the frontend if they have a proxy mapping(address => address) public staker_designated_proxies; // Admin booleans for emergencies and overrides bool public stakesUnlocked; // Release locked stakes in case of emergency bool internal withdrawalsPaused; // For emergencies bool internal rewardsCollectionPaused; // For emergencies bool internal stakingPaused; // For emergencies bool internal collectRewardsOnWithdrawalPaused; // For emergencies if a token is overemitted /* ========== STRUCTS ========== */ // In children... /* ========== MODIFIERS ========== */ modifier onlyByOwnGov() { require(msg.sender == owner || msg.sender == 0x8412ebf45bAC1B340BbE8F318b928C466c4E39CA, "Not owner or timelock"); _; } modifier onlyTknMgrs(address reward_token_address) { require(msg.sender == owner || isTokenManagerFor(msg.sender, reward_token_address), "Not owner or tkn mgr"); _; } modifier updateRewardAndBalanceMdf(address account, bool sync_too) { _updateRewardAndBalance(account, sync_too, false); _; } /* ========== CONSTRUCTOR ========== */ constructor ( address _owner, address[] memory _rewardTokens, address[] memory _rewardManagers, uint256[] memory _rewardRatesManual, address[] memory _gaugeControllers, address[] memory _rewardDistributors ) Owned(_owner) { // Address arrays rewardTokens = _rewardTokens; gaugeControllers = _gaugeControllers; rewardDistributors = _rewardDistributors; rewardRatesManual = _rewardRatesManual; for (uint256 i = 0; i < _rewardTokens.length; i++){ // For fast token address -> token ID lookups later rewardTokenAddrToIdx[_rewardTokens[i]] = i; // Add to the mapping isRewardToken[_rewardTokens[i]] = true; // Initialize the stored rewards rewardsPerTokenStored.push(0); // Initialize the reward managers rewardManagers[_rewardTokens[i]] = _rewardManagers[i]; // Push in empty relative weights to initialize the array last_gauge_relative_weights.push(0); // Push in empty time totals to initialize the array last_gauge_time_totals.push(0); } // Other booleans stakesUnlocked = false; // Initialization lastUpdateTime = block.timestamp; // Sync the first period finish here with the gauge's // periodFinish = IFraxGaugeController(gaugeControllers[0]).time_total(); periodFinish = IFraxGaugeController(0x3669C421b77340B2979d1A00a792CC2ee0FcE737).time_total(); } /* ============= VIEWS ============= */ // ------ REWARD RELATED ------ /// @notice Checks if the caller is a manager for the reward token /// @param caller_addr The address of the caller /// @param reward_token_addr The address of the reward token /// @return bool True if the caller is a manager for the reward token function isTokenManagerFor(address caller_addr, address reward_token_addr) public view returns (bool){ if (!isRewardToken[reward_token_addr]) return false; else if (caller_addr == address(0) || reward_token_addr == address(0)) return false; else if (caller_addr == owner) return true; // Contract owner else if (rewardManagers[reward_token_addr] == caller_addr) return true; // Reward manager return false; } /// @notice Gets all the reward tokens this contract handles /// @return rewardTokens_ The reward tokens array function getAllRewardTokens() external view returns (address[] memory) { return rewardTokens; } // Last time the reward was applicable function lastTimeRewardApplicable() internal view returns (uint256) { return Math.min(block.timestamp, periodFinish); } /// @notice The amount of reward tokens being paid out per second this period /// @param token_idx The index of the reward token /// @return rwd_rate The reward rate function rewardRates(uint256 token_idx) public view returns (uint256 rwd_rate) { address gauge_controller_address = gaugeControllers[token_idx]; if (gauge_controller_address != address(0)) { rwd_rate = (IFraxGaugeController(gauge_controller_address).global_emission_rate() * last_gauge_relative_weights[token_idx]) / 1e18; } else { rwd_rate = rewardRatesManual[token_idx]; } } // Amount of reward tokens per LP token / liquidity unit function rewardsPerToken() public view returns (uint256[] memory newRewardsPerTokenStored) { if (_total_liquidity_locked == 0 || _total_combined_weight == 0) { return rewardsPerTokenStored; } else { newRewardsPerTokenStored = new uint256[](rewardTokens.length); for (uint256 i = 0; i < rewardsPerTokenStored.length; i++){ newRewardsPerTokenStored[i] = rewardsPerTokenStored[i] + ( ((lastTimeRewardApplicable() - lastUpdateTime) * rewardRates(i) * 1e18) / _total_combined_weight ); } return newRewardsPerTokenStored; } } /// @notice The amount of reward tokens an account has earned / accrued /// @dev In the edge-case of one of the account's stake expiring since the last claim, this will /// @param account The account to check /// @return new_earned Array of reward token amounts earned by the account function earned(address account) public view returns (uint256[] memory new_earned) { uint256[] memory reward_arr = rewardsPerToken(); new_earned = new uint256[](rewardTokens.length); if (_combined_weights[account] > 0){ for (uint256 i = 0; i < rewardTokens.length; i++){ new_earned[i] = ((_combined_weights[account] * (reward_arr[i] - userRewardsPerTokenPaid[account][i])) / 1e18) + rewards[account][i]; } } } /// @notice The total reward tokens emitted in the given period /// @return rewards_per_duration_arr Array of reward token amounts emitted in the current period function getRewardForDuration() external view returns (uint256[] memory rewards_per_duration_arr) { rewards_per_duration_arr = new uint256[](rewardRatesManual.length); for (uint256 i = 0; i < rewardRatesManual.length; i++){ rewards_per_duration_arr[i] = rewardRates(i) * rewardsDuration; } } // ------ LIQUIDITY AND WEIGHTS ------ /// @notice The farm's total locked liquidity / LP tokens /// @return The total locked liquidity function totalLiquidityLocked() external view returns (uint256) { return _total_liquidity_locked; } /// @notice A user's locked liquidity / LP tokens /// @param account The address of the account /// @return The locked liquidity function lockedLiquidityOf(address account) external view returns (uint256) { return _locked_liquidity[account]; } /// @notice The farm's total combined weight of all users /// @return The total combined weight function totalCombinedWeight() external view returns (uint256) { return _total_combined_weight; } /// @notice Total 'balance' used for calculating the percent of the pool the account owns /// @notice Takes into account the locked stake time multiplier and veFXS multiplier /// @param account The address of the account /// @return The combined weight function combinedWeightOf(address account) external view returns (uint256) { return _combined_weights[account]; } /// @notice Calculates the combined weight for an account /// @notice Must be overriden by the child contract /// @dev account The address of the account function calcCurCombinedWeight(address account) public virtual view returns ( uint256 old_combined_weight, uint256 new_vefxs_multiplier, uint256 new_combined_weight ) { revert("Need cCCW logic"); } // ------ LOCK RELATED ------ /// @notice Reads the lock boost multiplier for a given duration /// @param secs The duration of the lock in seconds /// @return The multiplier amount function lockMultiplier(uint256 secs) public view returns (uint256) { return Math.min( lock_max_multiplier, (secs * lock_max_multiplier) / lock_time_for_max_multiplier ) ; } // ------ FRAX RELATED ------ /// @notice The amount of FRAX denominated value being boosted that an address has staked /// @param account The address to check /// @return The amount of FRAX value boosted function userStakedFrax(address account) public view returns (uint256) { return (fraxPerLPStored * _locked_liquidity[account]) / MULTIPLIER_PRECISION; } /// @notice The amount of FRAX denominated value being boosted that a proxy address has staked /// @param proxy_address The address to check /// @return The amount of FRAX value boosted function proxyStakedFrax(address proxy_address) public view returns (uint256) { return (fraxPerLPStored * proxy_lp_balances[proxy_address]) / MULTIPLIER_PRECISION; } /// @notice The maximum LP that can get max veFXS boosted for a given address at its current veFXS balance /// @param account The address to check /// @return The maximum LP that can get max veFXS boosted for a given address at its current veFXS balance function maxLPForMaxBoost(address account) external view returns (uint256) { return (veFXS.balanceOf(account) * MULTIPLIER_PRECISION * MULTIPLIER_PRECISION) / (vefxs_per_frax_for_max_boost * fraxPerLPStored); } /// @notice Must be overriden to return the current FRAX per LP token /// @return The current number of FRAX per LP token function fraxPerLPToken() public virtual view returns (uint256) { revert("Need fPLPT logic"); } // ------ veFXS RELATED ------ /// @notice The minimum veFXS required to get max boost for a given address /// @param account The address to check /// @return The minimum veFXS required to get max boost function minVeFXSForMaxBoost(address account) public view returns (uint256) { return (userStakedFrax(account) * vefxs_per_frax_for_max_boost) / MULTIPLIER_PRECISION; } /// @notice The minimum veFXS required to get max boost for a given proxy /// @param proxy_address The proxy address /// @return The minimum veFXS required to get max boost function minVeFXSForMaxBoostProxy(address proxy_address) public view returns (uint256) { return (proxyStakedFrax(proxy_address) * vefxs_per_frax_for_max_boost) / MULTIPLIER_PRECISION; } /// @notice Looks up a staker's proxy /// @param addr The address to check /// @return the_proxy The proxy address, or address(0) function getProxyFor(address addr) public view returns (address){ if (valid_vefxs_proxies[addr]) { // If addr itself is a proxy, return that. // If it farms itself directly, it should use the shared LP tally in proxyStakedFrax return addr; } else { // Otherwise, return the proxy, or address(0) return staker_designated_proxies[addr]; } } /// @notice The multiplier for a given account, based on veFXS /// @param account The account to check /// @return vefxs_multiplier The multiplier boost for the account function veFXSMultiplier(address account) public view returns (uint256 vefxs_multiplier) { // Use either the user's or their proxy's veFXS balance uint256 vefxs_bal_to_use = 0; address the_proxy = getProxyFor(account); vefxs_bal_to_use = (the_proxy == address(0)) ? veFXS.balanceOf(account) : veFXS.balanceOf(the_proxy); // First option based on fraction of total veFXS supply, with an added scale factor uint256 mult_optn_1 = (vefxs_bal_to_use * vefxs_max_multiplier * vefxs_boost_scale_factor) / (veFXS.totalSupply() * MULTIPLIER_PRECISION); // Second based on old method, where the amount of FRAX staked comes into play uint256 mult_optn_2; { uint256 veFXS_needed_for_max_boost; // Need to use proxy-wide FRAX balance if applicable, to prevent exploiting veFXS_needed_for_max_boost = (the_proxy == address(0)) ? minVeFXSForMaxBoost(account) : minVeFXSForMaxBoostProxy(the_proxy); if (veFXS_needed_for_max_boost > 0){ uint256 user_vefxs_fraction = (vefxs_bal_to_use * MULTIPLIER_PRECISION) / veFXS_needed_for_max_boost; mult_optn_2 = (user_vefxs_fraction * vefxs_max_multiplier) / MULTIPLIER_PRECISION; } else mult_optn_2 = 0; // This will happen with the first stake, when user_staked_frax is 0 } // Select the higher of the two vefxs_multiplier = (mult_optn_1 > mult_optn_2 ? mult_optn_1 : mult_optn_2); // Cap the boost to the vefxs_max_multiplier if (vefxs_multiplier > vefxs_max_multiplier) vefxs_multiplier = vefxs_max_multiplier; } /* =============== MUTATIVE FUNCTIONS =============== */ /// @notice Toggle whether a staker can use the proxy's veFXS balance to boost yields /// @notice Proxy must call this first, then the staker must call stakerSetVeFXSProxy function proxyToggleStaker(address staker_address) external { require(valid_vefxs_proxies[msg.sender], "Invalid proxy"); proxy_allowed_stakers[msg.sender][staker_address] = !proxy_allowed_stakers[msg.sender][staker_address]; // Disable the staker's set proxy if it was the toggler and is currently on if (staker_designated_proxies[staker_address] == msg.sender){ staker_designated_proxies[staker_address] = address(0); // Remove the LP as well proxy_lp_balances[msg.sender] -= _locked_liquidity[staker_address]; } } /// @notice After proxy toggles staker to true, staker must call and confirm this /// @param proxy_address The address of the veFXS proxy function stakerSetVeFXSProxy(address proxy_address) external { require(valid_vefxs_proxies[proxy_address], "Invalid proxy"); require(proxy_allowed_stakers[proxy_address][msg.sender], "Proxy has not allowed you yet"); // Corner case sanity check to make sure LP isn't double counted address old_proxy_addr = staker_designated_proxies[msg.sender]; if (old_proxy_addr != address(0)) { // Remove the LP count from the old proxy proxy_lp_balances[old_proxy_addr] -= _locked_liquidity[msg.sender]; } // Set the new proxy staker_designated_proxies[msg.sender] = proxy_address; // Add the the LP as well proxy_lp_balances[proxy_address] += _locked_liquidity[msg.sender]; } // ------ STAKING ------ // In children... // ------ WITHDRAWING ------ // In children... // ------ REWARDS SYNCING ------ function _updateRewardAndBalance(address account, bool sync_too) internal { _updateRewardAndBalance(account, sync_too, false); } function _updateRewardAndBalance(address account, bool sync_too, bool pre_sync_vemxstored) internal { // Need to retro-adjust some things if the period hasn't been renewed, then start a new one if (sync_too){ sync(); } // Used to make sure the veFXS multiplier is correct if a stake is increased, before calcCurCombinedWeight if (pre_sync_vemxstored){ _vefxsMultiplierStored[account] = veFXSMultiplier(account); } if (account != address(0)) { // To keep the math correct, the user's combined weight must be recomputed to account for their // ever-changing veFXS balance. ( uint256 old_combined_weight, uint256 new_vefxs_multiplier, uint256 new_combined_weight ) = calcCurCombinedWeight(account); // Calculate the earnings first _syncEarned(account); // Update the user's stored veFXS multipliers _vefxsMultiplierStored[account] = new_vefxs_multiplier; // Update the user's and the global combined weights if (new_combined_weight >= old_combined_weight) { uint256 weight_diff = new_combined_weight - old_combined_weight; _total_combined_weight = _total_combined_weight + weight_diff; _combined_weights[account] = old_combined_weight + weight_diff; } else { uint256 weight_diff = old_combined_weight - new_combined_weight; _total_combined_weight = _total_combined_weight - weight_diff; _combined_weights[account] = old_combined_weight - weight_diff; } } } function _syncEarned(address account) internal { if (account != address(0)) { // Calculate the earnings uint256[] memory earned_arr = earned(account); // Update the rewards array for (uint256 i = 0; i < earned_arr.length; i++){ rewards[account][i] = earned_arr[i]; } // Update the rewards paid array for (uint256 i = 0; i < earned_arr.length; i++){ userRewardsPerTokenPaid[account][i] = rewardsPerTokenStored[i]; } } } // ------ REWARDS CLAIMING ------ /// @notice A function that can be overridden to add extra logic to the getReward function /// @param destination_address The address to send the rewards to function getRewardExtraLogic(address destination_address) public nonReentrant { require(rewardsCollectionPaused == false, "Rewards collection paused"); return _getRewardExtraLogic(msg.sender, destination_address); } function _getRewardExtraLogic(address rewardee, address destination_address) internal virtual { revert("Need gREL logic"); } // Two different getReward functions are needed because of delegateCall and msg.sender issues // For backwards-compatibility /// @notice Claims rewards to destination address /// @param destination_address The address to send the rewards to /// @return rewards_before The rewards available before the claim function getReward(address destination_address) external nonReentrant returns (uint256[] memory) { return _getReward(msg.sender, destination_address, true); } /// @notice Claims rewards to destination address & wether to do extra logic /// @param destination_address The address to send the rewards to /// @param claim_extra_too Whether to do extra logic /// @return rewards_before The rewards available before the claim function getReward2(address destination_address, bool claim_extra_too) external nonReentrant returns (uint256[] memory) { return _getReward(msg.sender, destination_address, claim_extra_too); } // No withdrawer == msg.sender check needed since this is only internally callable function _getReward(address rewardee, address destination_address, bool do_extra_logic) internal updateRewardAndBalanceMdf(rewardee, true) returns (uint256[] memory rewards_before) { // Update the last reward claim time first, as an extra reentrancy safeguard lastRewardClaimTime[rewardee] = block.timestamp; // Make sure rewards collection isn't paused require(rewardsCollectionPaused == false, "Rewards collection paused"); // Update the rewards array and distribute rewards rewards_before = new uint256[](rewardTokens.length); for (uint256 i = 0; i < rewardTokens.length; i++){ rewards_before[i] = rewards[rewardee][i]; rewards[rewardee][i] = 0; if (rewards_before[i] > 0) { TransferHelper.safeTransfer(rewardTokens[i], destination_address, rewards_before[i]); emit RewardPaid(rewardee, rewards_before[i], rewardTokens[i], destination_address); } } // Handle additional reward logic if (do_extra_logic) { _getRewardExtraLogic(rewardee, destination_address); } } // ------ FARM SYNCING ------ // If the period expired, renew it function retroCatchUp() internal { // Catch up the old rewards first _updateStoredRewardsAndTime(); // Pull in rewards from the rewards distributor, if applicable for (uint256 i = 0; i < rewardDistributors.length; i++){ address reward_distributor_address = rewardDistributors[i]; if (reward_distributor_address != address(0)) { IFraxGaugeFXSRewardsDistributor(reward_distributor_address).distributeReward(address(this)); } } // Ensure the provided reward amount is not more than the balance in the contract. // This keeps the reward rate in the right range, preventing overflows due to // very high values of rewardRate in the earned and rewardsPerToken functions; // Reward + leftover must be less than 2^256 / 10^18 to avoid overflow. uint256 num_periods_elapsed = uint256(block.timestamp - periodFinish) / rewardsDuration; // Floor division to the nearest period // Make sure there are enough tokens to renew the reward period for (uint256 i = 0; i < rewardTokens.length; i++){ require((rewardRates(i) * rewardsDuration * (num_periods_elapsed + 1)) <= IERC20(rewardTokens[i]).balanceOf(address(this)), string(abi.encodePacked("Not enough reward tokens available: ", rewardTokens[i])) ); } // uint256 old_lastUpdateTime = lastUpdateTime; // uint256 new_lastUpdateTime = block.timestamp; // lastUpdateTime = periodFinish; periodFinish = periodFinish + ((num_periods_elapsed + 1) * rewardsDuration); // // Bunni oLIT rewards // // ========================================== // // Pull in rewards and set the reward rate for one week, based off of that // // If the rewards get messed up for some reason, set this to 0 and it will skip // // Should only be called once per week max // if (rewardRatesManual[1] != 0) { // // oLIT // // ==================================== // uint256 olit_before = IERC20(rewardTokens[1]).balanceOf(address(this)); // minter.mint(address(stakingToken)); // uint256 olit_after = IERC20(rewardTokens[1]).balanceOf(address(this)); // // Set the new reward rate // rewardRatesManual[1] = (olit_after - olit_before) / rewardsDuration; // } // CONVEX EXTRA REWARDS (OLD METHOD) // ========================================== // Pull in rewards and set the reward rate for one week, based off of that // If the rewards get messed up for some reason, set this to 0 and it will skip // if (rewardRatesManual[1] != 0 && rewardRatesManual[2] != 0) { // // CRV & CVX // // ==================================== // uint256 crv_before = ERC20(rewardTokens[1]).balanceOf(address(this)); // uint256 cvx_before = ERC20(rewardTokens[2]).balanceOf(address(this)); // IConvexBaseRewardPool(0x329cb014b562d5d42927cfF0dEdF4c13ab0442EF).getReward( // address(this), // true // ); // uint256 crv_after = ERC20(rewardTokens[1]).balanceOf(address(this)); // uint256 cvx_after = ERC20(rewardTokens[2]).balanceOf(address(this)); // // Set the new reward rate // rewardRatesManual[1] = (crv_after - crv_before) / rewardsDuration; // rewardRatesManual[2] = (cvx_after - cvx_before) / rewardsDuration; // } // Make sure everything is caught up again _updateStoredRewardsAndTime(); } function _updateStoredRewardsAndTime() internal { // Get the rewards uint256[] memory rewards_per_token = rewardsPerToken(); // Update the rewardsPerTokenStored for (uint256 i = 0; i < rewardsPerTokenStored.length; i++){ rewardsPerTokenStored[i] = rewards_per_token[i]; } // Update the last stored time lastUpdateTime = lastTimeRewardApplicable(); } /// @notice Updates the gauge weights, if applicable /// @param force_update If true, will update the weights even if the time hasn't elapsed function sync_gauge_weights(bool force_update) public { // Loop through the gauge controllers for (uint256 i = 0; i < gaugeControllers.length; i++){ address gauge_controller_address = gaugeControllers[i]; if (gauge_controller_address != address(0)) { if (force_update || (block.timestamp > last_gauge_time_totals[i])){ // Update the gauge_relative_weight last_gauge_relative_weights[i] = IFraxGaugeController(gauge_controller_address).gauge_relative_weight_write(address(this), block.timestamp); last_gauge_time_totals[i] = IFraxGaugeController(gauge_controller_address).time_total(); } } } } /// @notice Updates gauge weights, fraxPerLP, pulls in new rewards or updates rewards function sync() public { // Sync the gauge weight, if applicable sync_gauge_weights(false); // Update the fraxPerLPStored fraxPerLPStored = fraxPerLPToken(); if (block.timestamp >= periodFinish) { retroCatchUp(); } else { _updateStoredRewardsAndTime(); } } /* ========== RESTRICTED FUNCTIONS - Curator callable ========== */ // ------ FARM SYNCING ------ // In children... // ------ PAUSES ------ /// @notice Owner or governance can pause/unpause staking, withdrawals, rewards collection, and collectRewardsOnWithdrawal /// @param _stakingPaused Whether staking is paused /// @param _withdrawalsPaused Whether withdrawals are paused /// @param _rewardsCollectionPaused Whether rewards collection is paused /// @param _collectRewardsOnWithdrawalPaused Whether collectRewardsOnWithdrawal is paused function setPauses( bool _stakingPaused, bool _withdrawalsPaused, bool _rewardsCollectionPaused, bool _collectRewardsOnWithdrawalPaused ) external onlyByOwnGov { stakingPaused = _stakingPaused; withdrawalsPaused = _withdrawalsPaused; rewardsCollectionPaused = _rewardsCollectionPaused; collectRewardsOnWithdrawalPaused = _collectRewardsOnWithdrawalPaused; } /* ========== RESTRICTED FUNCTIONS - Owner or timelock only ========== */ /// @notice Owner or governance can unlock stakes - irreversible! function unlockStakes() external onlyByOwnGov { stakesUnlocked = !stakesUnlocked; } /// @notice Owner or governance sets whether an address is a valid veFXS proxy /// @param _proxy_addr The address to set function toggleValidVeFXSProxy(address _proxy_addr) external onlyByOwnGov { valid_vefxs_proxies[_proxy_addr] = !valid_vefxs_proxies[_proxy_addr]; } /// @notice Allows owner to recover any ERC20 or token manager to recover their reward token. /// @param tokenAddress The address of the token to recover /// @param tokenAmount The amount of the token to recover function recoverERC20(address tokenAddress, uint256 tokenAmount) external onlyTknMgrs(tokenAddress) { // Check if the desired token is a reward token bool isRewTkn = isRewardToken[tokenAddress]; // Only the reward managers can take back their reward tokens // Also, other tokens, like the staking token, airdrops, or accidental deposits, can be withdrawn by the owner if ( (isRewTkn && rewardManagers[tokenAddress] == msg.sender) || (!isRewTkn && (msg.sender == owner)) ) { TransferHelper.safeTransfer(tokenAddress, msg.sender, tokenAmount); return; } // If none of the above conditions are true else { revert("No valid tokens to recover"); } } /// @notice Sets multiple variables at once /// @param _misc_vars The variables to set: /// [0]: uint256 _lock_max_multiplier, /// [1] uint256 _vefxs_max_multiplier, /// [2] uint256 _vefxs_per_frax_for_max_boost, /// [3] uint256 _vefxs_boost_scale_factor, /// [4] uint256 _lock_time_for_max_multiplier, /// [5] uint256 _lock_time_min /// [6] uint256 _max_stake_limit (must be at greater or equal to old value) function setMiscVariables( uint256[6] memory _misc_vars // [0]: uint256 _lock_max_multiplier, // [1] uint256 _vefxs_max_multiplier, // [2] uint256 _vefxs_per_frax_for_max_boost, // [3] uint256 _vefxs_boost_scale_factor, // [4] uint256 _lock_time_for_max_multiplier, // [5] uint256 _lock_time_min ) external onlyByOwnGov { require(_misc_vars[0] >= MULTIPLIER_PRECISION, "Must be >= MUL PREC"); require((_misc_vars[1] >= 0) && (_misc_vars[2] >= 0) && (_misc_vars[3] >= 0) && (_misc_vars[5] >= 0), "Must be >= 0"); require((_misc_vars[4] >= 1), "Must be >= 1"); lock_max_multiplier = _misc_vars[0]; vefxs_max_multiplier = _misc_vars[1]; vefxs_per_frax_for_max_boost = _misc_vars[2]; vefxs_boost_scale_factor = _misc_vars[3]; lock_time_for_max_multiplier = _misc_vars[4]; lock_time_min = _misc_vars[5]; } // The owner or the reward token managers can set reward rates /// @notice Allows owner or reward token managers to set the reward rate for a given reward token /// @param reward_token_address The address of the reward token /// @param _new_rate The new reward rate (token amount divided by reward period duration) /// @param _gauge_controller_address The address of the gauge controller for this reward token /// @param _rewards_distributor_address The address of the rewards distributor for this reward token function setRewardVars(address reward_token_address, uint256 _new_rate, address _gauge_controller_address, address _rewards_distributor_address) external onlyTknMgrs(reward_token_address) { rewardRatesManual[rewardTokenAddrToIdx[reward_token_address]] = _new_rate; gaugeControllers[rewardTokenAddrToIdx[reward_token_address]] = _gauge_controller_address; rewardDistributors[rewardTokenAddrToIdx[reward_token_address]] = _rewards_distributor_address; } // The owner or the reward token managers can change managers /// @notice Allows owner or reward token managers to change the reward manager for a given reward token /// @param reward_token_address The address of the reward token /// @param new_manager_address The new reward manager address function changeTokenManager(address reward_token_address, address new_manager_address) external onlyTknMgrs(reward_token_address) { rewardManagers[reward_token_address] = new_manager_address; } /* ========== EVENTS ========== */ event RewardPaid(address indexed user, uint256 amount, address token_address, address destination_address); /* ========== A CHICKEN ========== */ // // ,~. // ,-'__ `-, // {,-' `. } ,') // ,( a ) `-.__ ,',')~, // <=.) ( `-.__,==' ' ' '} // ( ) /) // `-'\ , ) // | \ `~. / // \ `._ \ / // \ `._____,' ,' // `-. ,' // `-._ _,-' // 77jj' // //_|| // __//--'/` // ,--'/` ' // // [hjw] https://textart.io/art/vw6Sa3iwqIRGkZsN1BC2vweF/chicken } // File contracts/Staking/FraxUnifiedFarm_ERC20.sol // Original license: SPDX_License_Identifier: GPL-2.0-or-later // ==================================================================== // | ______ _______ | // | / _____________ __ __ / ____(_____ ____ _____ ________ | // | / /_ / ___/ __ `| |/_/ / /_ / / __ \/ __ `/ __ \/ ___/ _ \ | // | / __/ / / / /_/ _> < / __/ / / / / / /_/ / / / / /__/ __/ | // | /_/ /_/ \__,_/_/|_| /_/ /_/_/ /_/\__,_/_/ /_/\___/\___/ | // | | // ==================================================================== // ======================= FraxUnifiedFarm_ERC20 ====================== // ==================================================================== // For ERC20 Tokens // Uses FraxUnifiedFarmTemplate.sol // -------------------- VARIES -------------------- // Bunni // import "../Misc_AMOs/bunni/IBunniGauge.sol"; // Convex wrappers // import "../Misc_AMOs/convex/IDepositToken.sol"; // import "../Misc_AMOs/curve/I2pool.sol"; // import "../Misc_AMOs/curve/I2poolToken.sol"; // import "../Misc_AMOs/curve/I2poolTokenNoLending.sol"; // Fraxlend // import '../Fraxlend/IFraxlendPair.sol'; // Fraxswap // import '../Fraxswap/core/interfaces/IFraxswapPair.sol'; // G-UNI // import "../Misc_AMOs/gelato/IGUniPool.sol"; // KyberSwap Elastic KyberSwapFarmingToken (KS-FT) // import "../Misc_AMOs/kyberswap/elastic/IKyberSwapFarmingToken.sol"; // mStable // import '../Misc_AMOs/mstable/IFeederPool.sol'; // StakeDAO sdETH-FraxPut // import '../Misc_AMOs/stakedao/IOpynPerpVault.sol'; // StakeDAO Vault // import '../Misc_AMOs/stakedao/IStakeDaoVault.sol'; // Uniswap V2 // import '../Uniswap/Interfaces/IUniswapV2Pair.sol'; // Vesper // import '../Misc_AMOs/vesper/IVPool.sol'; // ------------------------------------------------ contract FraxUnifiedFarm_ERC20 is FraxUnifiedFarmTemplate { /* ========== STATE VARIABLES ========== */ // -------------------- COMMON -------------------- bool internal frax_is_token0; // -------------------- VARIES -------------------- // Convex crvUSD/FRAX // IConvexStakingWrapperFrax public stakingToken; // I2poolTokenNoLending public curveToken; // ICurvefrxETHETHPool public curvePool; // Convex stkcvxFPIFRAX, stkcvxFRAXBP, etc IConvexStakingWrapperFrax public stakingToken; // I2poolToken public curveToken; ICurveTricryptoOptimizedWETH public curveToken; // I2pool public curvePool; // ICurvefrxETHETHPool public curvePool; ICurveTricryptoOptimizedWETH public curvePool; // Fraxswap // IFraxswapPair public stakingToken; // Fraxlend // IFraxlendPair public stakingToken; // G-UNI // IGUniPool public stakingToken; // KyberSwap Elastic KyberSwapFarmingToken (KS-FT) // IKyberSwapFarmingToken public stakingToken; // mStable // IFeederPool public stakingToken; // sdETH-FraxPut Vault // IOpynPerpVault public stakingToken; // StakeDAO Vault // IStakeDaoVault public stakingToken; // Uniswap V2 // IUniswapV2Pair public stakingToken; // Vesper // IVPool public stakingToken; // ------------------------------------------------ // Stake tracking mapping(address => LockedStake[]) public lockedStakes; /* ========== STRUCTS ========== */ // Struct for the stake struct LockedStake { bytes32 kek_id; uint256 start_timestamp; uint256 liquidity; uint256 ending_timestamp; uint256 lock_multiplier; // 6 decimals of precision. 1x = 1000000 } /* ========== CONSTRUCTOR ========== */ constructor ( address _owner, address[] memory _rewardTokens, address[] memory _rewardManagers, uint256[] memory _rewardRatesManual, address[] memory _gaugeControllers, address[] memory _rewardDistributors, address _stakingToken ) FraxUnifiedFarmTemplate(_owner, _rewardTokens, _rewardManagers, _rewardRatesManual, _gaugeControllers, _rewardDistributors) { // -------------------- VARIES (USE CHILD FOR LOGIC) -------------------- // Bunni // USE CHILD // Convex stkcvxFPIFRAX, stkcvxFRAXBP, etc // USE CHILD // Fraxlend // USE CHILD // Fraxswap // USE CHILD // G-UNI // stakingToken = IGUniPool(_stakingToken); // address token0 = address(stakingToken.token0()); // frax_is_token0 = (token0 == frax_address); // KyberSwap Elastic KyberSwapFarmingToken (KS-FT) // stakingToken = IKyberSwapFarmingToken(_stakingToken); // mStable // stakingToken = IFeederPool(_stakingToken); // StakeDAO sdETH-FraxPut Vault // stakingToken = IOpynPerpVault(_stakingToken); // StakeDAO Vault // stakingToken = IStakeDaoVault(_stakingToken); // Uniswap V2 // stakingToken = IUniswapV2Pair(_stakingToken); // address token0 = stakingToken.token0(); // if (token0 == frax_address) frax_is_token0 = true; // else frax_is_token0 = false; // Vesper // stakingToken = IVPool(_stakingToken); } /* ============= VIEWS ============= */ // ------ FRAX RELATED ------ function fraxPerLPToken() public virtual view override returns (uint256) { // Get the amount of FRAX 'inside' of the lp tokens uint256 frax_per_lp_token; // Bunni // ============================================ // USE CHILD // Convex stkcvxFPIFRAX and stkcvxFRAXBP only // ============================================ // USE CHILD // Convex Stable/FRAXBP // ============================================ // USE CHILD // Convex Volatile/FRAXBP // ============================================ // USE CHILD // Fraxlend // ============================================ // USE CHILD // Fraxswap // ============================================ // USE CHILD // G-UNI // ============================================ // { // (uint256 reserve0, uint256 reserve1) = stakingToken.getUnderlyingBalances(); // uint256 total_frax_reserves = frax_is_token0 ? reserve0 : reserve1; // frax_per_lp_token = (total_frax_reserves * 1e18) / stakingToken.totalSupply(); // } // KyberSwap Elastic KyberSwapFarmingToken (KS-FT) // ============================================ // USE CHILD // mStable // ============================================ // { // uint256 total_frax_reserves; // (, IFeederPool.BassetData memory vaultData) = (stakingToken.getBasset(frax_address)); // total_frax_reserves = uint256(vaultData.vaultBalance); // frax_per_lp_token = (total_frax_reserves * 1e18) / stakingToken.totalSupply(); // } // StakeDAO sdETH-FraxPut Vault // ============================================ // { // uint256 frax3crv_held = stakingToken.totalUnderlyingControlled(); // // Optimistically assume 50/50 FRAX/3CRV ratio in the metapool to save gas // frax_per_lp_token = ((frax3crv_held * 1e18) / stakingToken.totalSupply()) / 2; // } // StakeDAO Vault // ============================================ // { // uint256 frax3crv_held = stakingToken.balance(); // // Optimistically assume 50/50 FRAX/3CRV ratio in the metapool to save gas // frax_per_lp_token = ((frax3crv_held * 1e18) / stakingToken.totalSupply()) / 2; // } // Uniswap V2 // ============================================ // { // uint256 total_frax_reserves; // (uint256 reserve0, uint256 reserve1, ) = (stakingToken.getReserves()); // if (frax_is_token0) total_frax_reserves = reserve0; // else total_frax_reserves = reserve1; // frax_per_lp_token = (total_frax_reserves * 1e18) / stakingToken.totalSupply(); // } // Vesper // ============================================ // frax_per_lp_token = stakingToken.pricePerShare(); return frax_per_lp_token; } // ------ LIQUIDITY AND WEIGHTS ------ function calcCurrLockMultiplier(address account, uint256 stake_idx) public view returns (uint256 midpoint_lock_multiplier) { // Get the stake LockedStake memory thisStake = lockedStakes[account][stake_idx]; // Handles corner case where user never claims for a new stake // Don't want the multiplier going above the max uint256 accrue_start_time; if (lastRewardClaimTime[account] < thisStake.start_timestamp) { accrue_start_time = thisStake.start_timestamp; } else { accrue_start_time = lastRewardClaimTime[account]; } // If the lock is expired if (thisStake.ending_timestamp <= block.timestamp) { // If the lock expired in the time since the last claim, the weight needs to be proportionately averaged this time if (lastRewardClaimTime[account] < thisStake.ending_timestamp){ uint256 time_before_expiry = thisStake.ending_timestamp - accrue_start_time; uint256 time_after_expiry = block.timestamp - thisStake.ending_timestamp; // Average the pre-expiry lock multiplier uint256 pre_expiry_avg_multiplier = lockMultiplier(time_before_expiry / 2); // Get the weighted-average lock_multiplier // uint256 numerator = (pre_expiry_avg_multiplier * time_before_expiry) + (MULTIPLIER_PRECISION * time_after_expiry); uint256 numerator = (pre_expiry_avg_multiplier * time_before_expiry) + (0 * time_after_expiry); midpoint_lock_multiplier = numerator / (time_before_expiry + time_after_expiry); } else { // Otherwise, it needs to just be 1x // midpoint_lock_multiplier = MULTIPLIER_PRECISION; // Otherwise, it needs to just be 0x midpoint_lock_multiplier = 0; } } // If the lock is not expired else { // Decay the lock multiplier based on the time left uint256 avg_time_left; { uint256 time_left_p1 = thisStake.ending_timestamp - accrue_start_time; uint256 time_left_p2 = thisStake.ending_timestamp - block.timestamp; avg_time_left = (time_left_p1 + time_left_p2) / 2; } midpoint_lock_multiplier = lockMultiplier(avg_time_left); } // Sanity check: make sure it never goes above the initial multiplier if (midpoint_lock_multiplier > thisStake.lock_multiplier) midpoint_lock_multiplier = thisStake.lock_multiplier; } // Calculate the combined weight for an account function calcCurCombinedWeight(address account) public override view returns ( uint256 old_combined_weight, uint256 new_vefxs_multiplier, uint256 new_combined_weight ) { // Get the old combined weight old_combined_weight = _combined_weights[account]; // Get the veFXS multipliers // For the calculations, use the midpoint (analogous to midpoint Riemann sum) new_vefxs_multiplier = veFXSMultiplier(account); uint256 midpoint_vefxs_multiplier; if ( (_locked_liquidity[account] == 0 && _combined_weights[account] == 0) || (new_vefxs_multiplier >= _vefxsMultiplierStored[account]) ) { // This is only called for the first stake to make sure the veFXS multiplier is not cut in half // Also used if the user increased or maintained their position midpoint_vefxs_multiplier = new_vefxs_multiplier; } else { // Handles natural decay with a non-increased veFXS position midpoint_vefxs_multiplier = (new_vefxs_multiplier + _vefxsMultiplierStored[account]) / 2; } // Loop through the locked stakes, first by getting the liquidity * lock_multiplier portion new_combined_weight = 0; for (uint256 i = 0; i < lockedStakes[account].length; i++) { LockedStake memory thisStake = lockedStakes[account][i]; // Calculate the midpoint lock multiplier uint256 midpoint_lock_multiplier = calcCurrLockMultiplier(account, i); // Calculate the combined boost uint256 liquidity = thisStake.liquidity; uint256 combined_boosted_amount = liquidity + ((liquidity * (midpoint_lock_multiplier + midpoint_vefxs_multiplier)) / MULTIPLIER_PRECISION); new_combined_weight += combined_boosted_amount; } } // ------ LOCK RELATED ------ // All the locked stakes for a given account function lockedStakesOf(address account) external view returns (LockedStake[] memory) { return lockedStakes[account]; } // Returns the length of the locked stakes for a given account function lockedStakesOfLength(address account) external view returns (uint256) { return lockedStakes[account].length; } // // All the locked stakes for a given account [old-school method] // function lockedStakesOfMultiArr(address account) external view returns ( // bytes32[] memory kek_ids, // uint256[] memory start_timestamps, // uint256[] memory liquidities, // uint256[] memory ending_timestamps, // uint256[] memory lock_multipliers // ) { // for (uint256 i = 0; i < lockedStakes[account].length; i++){ // LockedStake memory thisStake = lockedStakes[account][i]; // kek_ids[i] = thisStake.kek_id; // start_timestamps[i] = thisStake.start_timestamp; // liquidities[i] = thisStake.liquidity; // ending_timestamps[i] = thisStake.ending_timestamp; // lock_multipliers[i] = thisStake.lock_multiplier; // } // } /* =============== MUTATIVE FUNCTIONS =============== */ // ------ STAKING ------ function _updateLiqAmts(address staker_address, uint256 amt, bool is_add) internal { // Get the proxy address address the_proxy = getProxyFor(staker_address); if (is_add) { // Update total liquidities _total_liquidity_locked += amt; _locked_liquidity[staker_address] += amt; // Update the proxy if (the_proxy != address(0)) proxy_lp_balances[the_proxy] += amt; } else { // Update total liquidities _total_liquidity_locked -= amt; _locked_liquidity[staker_address] -= amt; // Update the proxy if (the_proxy != address(0)) proxy_lp_balances[the_proxy] -= amt; } // Need to call to update the combined weights _updateRewardAndBalance(staker_address, false, true); } function _getStake(address staker_address, bytes32 kek_id) internal view returns (LockedStake memory locked_stake, uint256 arr_idx) { for (uint256 i = 0; i < lockedStakes[staker_address].length; i++){ if (kek_id == lockedStakes[staker_address][i].kek_id){ locked_stake = lockedStakes[staker_address][i]; arr_idx = i; break; } } require(locked_stake.kek_id == kek_id, "Stake not found"); } // Add additional LPs to an existing locked stake function lockAdditional(bytes32 kek_id, uint256 addl_liq) nonReentrant updateRewardAndBalanceMdf(msg.sender, true) public { // Make sure staking isn't paused require(!stakingPaused, "Staking paused"); // Get the stake and its index (LockedStake memory thisStake, uint256 theArrayIndex) = _getStake(msg.sender, kek_id); // Calculate the new amount uint256 new_amt = thisStake.liquidity + addl_liq; // Checks require(addl_liq >= 0, "Must be positive"); // Pull the tokens from the sender TransferHelper.safeTransferFrom(address(stakingToken), msg.sender, address(this), addl_liq); // Update the stake lockedStakes[msg.sender][theArrayIndex] = LockedStake( kek_id, thisStake.start_timestamp, new_amt, thisStake.ending_timestamp, thisStake.lock_multiplier ); // Update liquidities _updateLiqAmts(msg.sender, addl_liq, true); emit LockedAdditional(msg.sender, kek_id, addl_liq); } // Extends the lock of an existing stake function lockLonger(bytes32 kek_id, uint256 new_ending_ts) nonReentrant updateRewardAndBalanceMdf(msg.sender, true) public { // Make sure staking isn't paused require(!stakingPaused, "Staking paused"); // Get the stake and its index (LockedStake memory thisStake, uint256 theArrayIndex) = _getStake(msg.sender, kek_id); // Check require(new_ending_ts > block.timestamp, "Must be in the future"); // Calculate some times uint256 time_left = (thisStake.ending_timestamp > block.timestamp) ? thisStake.ending_timestamp - block.timestamp : 0; uint256 new_secs = new_ending_ts - block.timestamp; // Checks // require(time_left > 0, "Already expired"); require(new_secs > time_left, "Cannot shorten lock time"); require(new_secs >= lock_time_min, "Minimum stake time not met"); require(new_secs <= lock_time_for_max_multiplier, "Trying to lock for too long"); // Update the stake lockedStakes[msg.sender][theArrayIndex] = LockedStake( kek_id, block.timestamp, thisStake.liquidity, new_ending_ts, lockMultiplier(new_secs) ); // Need to call to update the combined weights _updateRewardAndBalance(msg.sender, false, true); emit LockedLonger(msg.sender, kek_id, new_secs, block.timestamp, new_ending_ts); } // Two different stake functions are needed because of delegateCall and msg.sender issues (important for proxies) function stakeLocked(uint256 liquidity, uint256 secs) nonReentrant external returns (bytes32) { return _stakeLocked(msg.sender, msg.sender, liquidity, secs, block.timestamp); } // If this were not internal, and source_address had an infinite approve, this could be exploitable // (pull funds from source_address and stake for an arbitrary staker_address) function _stakeLocked( address staker_address, address source_address, uint256 liquidity, uint256 secs, uint256 start_timestamp ) internal updateRewardAndBalanceMdf(staker_address, true) returns (bytes32) { require(stakingPaused == false, "Staking paused"); require(secs >= lock_time_min, "Minimum stake time not met"); require(secs <= lock_time_for_max_multiplier,"Trying to lock for too long"); // Pull in the required token(s) // Varies per farm TransferHelper.safeTransferFrom(address(stakingToken), source_address, address(this), liquidity); // Get the lock multiplier and kek_id uint256 lock_multiplier = lockMultiplier(secs); bytes32 kek_id = keccak256(abi.encodePacked(staker_address, start_timestamp, liquidity, _locked_liquidity[staker_address])); // Create the locked stake lockedStakes[staker_address].push(LockedStake( kek_id, start_timestamp, liquidity, start_timestamp + secs, lock_multiplier )); // Update liquidities _updateLiqAmts(staker_address, liquidity, true); emit StakeLocked(staker_address, liquidity, secs, kek_id, source_address); return kek_id; } // ------ WITHDRAWING ------ // Two different withdrawLocked functions are needed because of delegateCall and msg.sender issues (important for proxies) function withdrawLocked(bytes32 kek_id, address destination_address, bool claim_rewards) nonReentrant external returns (uint256) { require(withdrawalsPaused == false, "Withdrawals paused"); return _withdrawLocked(msg.sender, destination_address, kek_id, claim_rewards); } // No withdrawer == msg.sender check needed since this is only internally callable and the checks are done in the wrapper function _withdrawLocked( address staker_address, address destination_address, bytes32 kek_id, bool claim_rewards ) internal returns (uint256) { // Collect rewards first and then update the balances // collectRewardsOnWithdrawalPaused to be used in an emergency situation if reward is overemitted or not available // and the user can forfeit rewards to get their principal back. User can also specify it in withdrawLocked if (claim_rewards || !collectRewardsOnWithdrawalPaused) _getReward(staker_address, destination_address, true); else { // Sync the rewards at least _updateRewardAndBalance(staker_address, true, false); } // Get the stake and its index (LockedStake memory thisStake, uint256 theArrayIndex) = _getStake(staker_address, kek_id); require(block.timestamp >= thisStake.ending_timestamp || stakesUnlocked == true, "Stake is still locked!"); uint256 liquidity = thisStake.liquidity; if (liquidity > 0) { // Give the tokens to the destination_address // Should throw if insufficient balance TransferHelper.safeTransfer(address(stakingToken), destination_address, liquidity); // Remove the stake from the array delete lockedStakes[staker_address][theArrayIndex]; // Update liquidities _updateLiqAmts(staker_address, liquidity, false); emit WithdrawLocked(staker_address, liquidity, kek_id, destination_address); } return liquidity; } function _getRewardExtraLogic(address rewardee, address destination_address) internal override { // Do nothing } /* ========== RESTRICTED FUNCTIONS - Owner or timelock only ========== */ // Inherited... /* ========== EVENTS ========== */ event LockedAdditional(address indexed user, bytes32 kek_id, uint256 amount); event LockedLonger(address indexed user, bytes32 kek_id, uint256 new_secs, uint256 new_start_ts, uint256 new_end_ts); event StakeLocked(address indexed user, uint256 amount, uint256 secs, bytes32 kek_id, address source_address); event WithdrawLocked(address indexed user, uint256 liquidity, bytes32 kek_id, address destination_address); } // File contracts/Misc_AMOs/convex/IDepositToken.sol // Original license: SPDX_License_Identifier: GPL-2.0-or-later interface IDepositToken { function allowance(address owner, address spender) external view returns (uint256); function approve(address spender, uint256 amount) external returns (bool); function balanceOf(address account) external view returns (uint256); function burn(address _from, uint256 _amount) external; function decimals() external view returns (uint8); function decreaseAllowance(address spender, uint256 subtractedValue) external returns (bool); function increaseAllowance(address spender, uint256 addedValue) external returns (bool); function mint(address _to, uint256 _amount) external; function name() external view returns (string memory); function operator() external view returns (address); function symbol() external view returns (string memory); function totalSupply() external view returns (uint256); function transfer(address recipient, uint256 amount) external returns (bool); function transferFrom(address sender, address recipient, uint256 amount) external returns (bool); } // File contracts/Misc_AMOs/curve/I2pool.sol // Original license: SPDX_License_Identifier: GPL-2.0-or-later interface I2pool { function decimals() external view returns (uint256); function transfer(address _to, uint256 _value) external returns (bool); function transferFrom(address _from, address _to, uint256 _value) external returns (bool); function approve(address _spender, uint256 _value) external returns (bool); function A() external view returns (uint256); function A_precise() external view returns (uint256); function get_virtual_price() external view returns (uint256); function lp_price() external view returns (uint256); function price_oracle() external view returns (uint256); function calc_token_amount(uint256[2] memory _amounts, bool _is_deposit) external view returns (uint256); function add_liquidity(uint256[2] memory _amounts, uint256 _min_mint_amount) external returns (uint256); function get_dy(int128 i, int128 j, uint256 _dx) external view returns (uint256); function exchange(int128 i, int128 j, uint256 _dx, uint256 _min_dy) external returns (uint256); function remove_liquidity(uint256 _amount, uint256[2] memory _min_amounts) external returns (uint256[2] memory); function remove_liquidity_imbalance(uint256[2] memory _amounts, uint256 _max_burn_amount) external returns (uint256); function calc_withdraw_one_coin(uint256 _token_amount, int128 i) external view returns (uint256); function remove_liquidity_one_coin(uint256 _token_amount, int128 i, uint256 _min_amount) external returns (uint256); function ramp_A(uint256 _future_A, uint256 _future_time) external; function stop_ramp_A() external; function commit_new_fee(uint256 _new_fee, uint256 _new_admin_fee) external; function apply_new_fee() external; function revert_new_parameters() external; function commit_transfer_ownership(address _owner) external; function apply_transfer_ownership() external; function revert_transfer_ownership() external; function admin_balances(uint256 i) external view returns (uint256); function withdraw_admin_fees() external; function donate_admin_fees() external; function kill_me() external; function unkill_me() external; function coins(uint256 arg0) external view returns (address); function balances(uint256 arg0) external view returns (uint256); function fee() external view returns (uint256); function admin_fee() external view returns (uint256); function owner() external view returns (address); function initial_A() external view returns (uint256); function future_A() external view returns (uint256); function initial_A_time() external view returns (uint256); function future_A_time() external view returns (uint256); function admin_actions_deadline() external view returns (uint256); function transfer_ownership_deadline() external view returns (uint256); function future_fee() external view returns (uint256); function future_admin_fee() external view returns (uint256); function future_owner() external view returns (address); function name() external view returns (string memory); function symbol() external view returns (string memory); function balanceOf(address arg0) external view returns (uint256); function allowance(address arg0, address arg1) external view returns (uint256); function totalSupply() external view returns (uint256); } // File contracts/Misc_AMOs/curve/I2poolToken.sol // Original license: SPDX_License_Identifier: GPL-2.0-or-later interface I2poolToken { function decimals() external view returns (uint256); function transfer(address _to, uint256 _value) external returns (bool); function transferFrom(address _from, address _to, uint256 _value) external returns (bool); function approve(address _spender, uint256 _value) external returns (bool); function increaseAllowance(address _spender, uint256 _added_value) external returns (bool); function decreaseAllowance(address _spender, uint256 _subtracted_value) external returns (bool); function mint(address _to, uint256 _value) external returns (bool); function burnFrom(address _to, uint256 _value) external returns (bool); function set_minter(address _minter) external; function set_name(string memory _name, string memory _symbol) external; function name() external view returns (string memory); function symbol() external view returns (string memory); function balanceOf(address arg0) external view returns (uint256); function allowance(address arg0, address arg1) external view returns (uint256); function totalSupply() external view returns (uint256); function minter() external view returns (address); } // File contracts/Staking/Variants/FraxUnifiedFarm_ERC20_Convex_Generic.sol // Original license: SPDX_License_Identifier: GPL-2.0-or-later contract FraxUnifiedFarm_ERC20_Convex_Generic is FraxUnifiedFarm_ERC20 { constructor ( address _owner, address[] memory _rewardTokens, address[] memory _rewardManagers, uint256[] memory _rewardRates, address[] memory _gaugeControllers, address[] memory _rewardDistributors, address _stakingToken ) FraxUnifiedFarm_ERC20(_owner , _rewardTokens, _rewardManagers, _rewardRates, _gaugeControllers, _rewardDistributors, _stakingToken) { // COMMENTED OUT SO COMPILER DOESNT COMPLAIN. UNCOMMENT WHEN DEPLOYING // // Convex crvUSD/FRAX // stakingToken = IConvexStakingWrapperFrax(_stakingToken); // curveToken = I2poolTokenNoLending(stakingToken.curveToken()); // frax_is_token0 = true; // // Convex FRAX/USDP // stakingToken = IConvexStakingWrapperFrax(_stakingToken); // curveToken = I2poolToken(stakingToken.curveToken()); // curvePool = I2pool(curveToken.minter()); // frax_is_token0 = true; // Convex triSDT stakingToken = IConvexStakingWrapperFrax(_stakingToken); curveToken = ICurveTricryptoOptimizedWETH(address(stakingToken.curveToken())); curvePool = ICurveTricryptoOptimizedWETH(address(stakingToken.curveToken())); frax_is_token0 = false; } function fraxPerLPToken() public view override returns (uint256 frax_per_lp_token) { // COMMENTED OUT SO COMPILER DOESNT COMPLAIN. UNCOMMENT WHEN DEPLOYING // Convex crvUSD/FRAX // ============================================ // { // // Half of the LP should be FRAX // // Using 0.50 * virtual price for gas savings // frax_per_lp_token = curvePool.get_virtual_price() / 2; // } // Convex triSDT // ============================================ { // One third of the LP should be frxETH // Using lp_price / 3 for gas savings frax_per_lp_token = curvePool.lp_price() / 3; } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"_owner","type":"address"},{"internalType":"address[]","name":"_rewardTokens","type":"address[]"},{"internalType":"address[]","name":"_rewardManagers","type":"address[]"},{"internalType":"uint256[]","name":"_rewardRates","type":"uint256[]"},{"internalType":"address[]","name":"_gaugeControllers","type":"address[]"},{"internalType":"address[]","name":"_rewardDistributors","type":"address[]"},{"internalType":"address","name":"_stakingToken","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"bytes32","name":"kek_id","type":"bytes32"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"LockedAdditional","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"bytes32","name":"kek_id","type":"bytes32"},{"indexed":false,"internalType":"uint256","name":"new_secs","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"new_start_ts","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"new_end_ts","type":"uint256"}],"name":"LockedLonger","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"oldOwner","type":"address"},{"indexed":false,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnerChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnerNominated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"address","name":"token_address","type":"address"},{"indexed":false,"internalType":"address","name":"destination_address","type":"address"}],"name":"RewardPaid","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"secs","type":"uint256"},{"indexed":false,"internalType":"bytes32","name":"kek_id","type":"bytes32"},{"indexed":false,"internalType":"address","name":"source_address","type":"address"}],"name":"StakeLocked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"liquidity","type":"uint256"},{"indexed":false,"internalType":"bytes32","name":"kek_id","type":"bytes32"},{"indexed":false,"internalType":"address","name":"destination_address","type":"address"}],"name":"WithdrawLocked","type":"event"},{"inputs":[],"name":"acceptOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"calcCurCombinedWeight","outputs":[{"internalType":"uint256","name":"old_combined_weight","type":"uint256"},{"internalType":"uint256","name":"new_vefxs_multiplier","type":"uint256"},{"internalType":"uint256","name":"new_combined_weight","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"stake_idx","type":"uint256"}],"name":"calcCurrLockMultiplier","outputs":[{"internalType":"uint256","name":"midpoint_lock_multiplier","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"reward_token_address","type":"address"},{"internalType":"address","name":"new_manager_address","type":"address"}],"name":"changeTokenManager","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"combinedWeightOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"curvePool","outputs":[{"internalType":"contract ICurveTricryptoOptimizedWETH","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"curveToken","outputs":[{"internalType":"contract ICurveTricryptoOptimizedWETH","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"earned","outputs":[{"internalType":"uint256[]","name":"new_earned","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"fraxPerLPStored","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"fraxPerLPToken","outputs":[{"internalType":"uint256","name":"frax_per_lp_token","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getAllRewardTokens","outputs":[{"internalType":"address[]","name":"","type":"address[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"addr","type":"address"}],"name":"getProxyFor","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"destination_address","type":"address"}],"name":"getReward","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"destination_address","type":"address"},{"internalType":"bool","name":"claim_extra_too","type":"bool"}],"name":"getReward2","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"destination_address","type":"address"}],"name":"getRewardExtraLogic","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"getRewardForDuration","outputs":[{"internalType":"uint256[]","name":"rewards_per_duration_arr","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"caller_addr","type":"address"},{"internalType":"address","name":"reward_token_addr","type":"address"}],"name":"isTokenManagerFor","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"lastRewardClaimTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lastUpdateTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"kek_id","type":"bytes32"},{"internalType":"uint256","name":"addl_liq","type":"uint256"}],"name":"lockAdditional","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"kek_id","type":"bytes32"},{"internalType":"uint256","name":"new_ending_ts","type":"uint256"}],"name":"lockLonger","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"secs","type":"uint256"}],"name":"lockMultiplier","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lock_max_multiplier","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lock_time_for_max_multiplier","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lock_time_min","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"lockedLiquidityOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"lockedStakes","outputs":[{"internalType":"bytes32","name":"kek_id","type":"bytes32"},{"internalType":"uint256","name":"start_timestamp","type":"uint256"},{"internalType":"uint256","name":"liquidity","type":"uint256"},{"internalType":"uint256","name":"ending_timestamp","type":"uint256"},{"internalType":"uint256","name":"lock_multiplier","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"lockedStakesOf","outputs":[{"components":[{"internalType":"bytes32","name":"kek_id","type":"bytes32"},{"internalType":"uint256","name":"start_timestamp","type":"uint256"},{"internalType":"uint256","name":"liquidity","type":"uint256"},{"internalType":"uint256","name":"ending_timestamp","type":"uint256"},{"internalType":"uint256","name":"lock_multiplier","type":"uint256"}],"internalType":"struct FraxUnifiedFarm_ERC20.LockedStake[]","name":"","type":"tuple[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"lockedStakesOfLength","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"maxLPForMaxBoost","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"minVeFXSForMaxBoost","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"proxy_address","type":"address"}],"name":"minVeFXSForMaxBoostProxy","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_owner","type":"address"}],"name":"nominateNewOwner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"nominatedOwner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"periodFinish","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"proxy_address","type":"address"}],"name":"proxyStakedFrax","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"staker_address","type":"address"}],"name":"proxyToggleStaker","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"proxy_lp_balances","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"tokenAddress","type":"address"},{"internalType":"uint256","name":"tokenAmount","type":"uint256"}],"name":"recoverERC20","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"rewardManagers","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"token_idx","type":"uint256"}],"name":"rewardRates","outputs":[{"internalType":"uint256","name":"rwd_rate","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"rewardTokenAddrToIdx","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rewardsDuration","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rewardsPerToken","outputs":[{"internalType":"uint256[]","name":"newRewardsPerTokenStored","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[6]","name":"_misc_vars","type":"uint256[6]"}],"name":"setMiscVariables","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_stakingPaused","type":"bool"},{"internalType":"bool","name":"_withdrawalsPaused","type":"bool"},{"internalType":"bool","name":"_rewardsCollectionPaused","type":"bool"},{"internalType":"bool","name":"_collectRewardsOnWithdrawalPaused","type":"bool"}],"name":"setPauses","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"reward_token_address","type":"address"},{"internalType":"uint256","name":"_new_rate","type":"uint256"},{"internalType":"address","name":"_gauge_controller_address","type":"address"},{"internalType":"address","name":"_rewards_distributor_address","type":"address"}],"name":"setRewardVars","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"liquidity","type":"uint256"},{"internalType":"uint256","name":"secs","type":"uint256"}],"name":"stakeLocked","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"proxy_address","type":"address"}],"name":"stakerSetVeFXSProxy","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"staker_designated_proxies","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"stakesUnlocked","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"stakingToken","outputs":[{"internalType":"contract IConvexStakingWrapperFrax","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"sync","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"force_update","type":"bool"}],"name":"sync_gauge_weights","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_proxy_addr","type":"address"}],"name":"toggleValidVeFXSProxy","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"totalCombinedWeight","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalLiquidityLocked","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"unlockStakes","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"userStakedFrax","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"veFXSMultiplier","outputs":[{"internalType":"uint256","name":"vefxs_multiplier","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"vefxs_boost_scale_factor","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"vefxs_max_multiplier","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"vefxs_per_frax_for_max_boost","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"kek_id","type":"bytes32"},{"internalType":"address","name":"destination_address","type":"address"},{"internalType":"bool","name":"claim_rewards","type":"bool"}],"name":"withdrawLocked","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
6080604052671bc16d674ec800006006556305a39a806007556000600855673782dace9d900000600955671bc16d674ec80000600a55673782dace9d900000600b553480156200004e57600080fd5b50604051620058e0380380620058e0833981016040819052620000719162000779565b86868686868686868686868686856001600160a01b038116620000da5760405162461bcd60e51b815260206004820152601960248201527f4f776e657220616464726573732063616e6e6f74206265203000000000000000604482015260640160405180910390fd5b600080546001600160a01b0319166001600160a01b03831690811782556040805192835260208301919091527fb532073b38c83145e3e5135377a08bf9aab55bc0fd7c1179cd4fb995d2a5159c910160405180910390a150600160025584516200014c90601090602088019062000550565b5081516200016290601190602085019062000550565b5080516200017890601290602084019062000550565b5082516200018e906013906020860190620005ba565b5060005b85518110156200034c578060156000888481518110620001b657620001b662000880565b60200260200101516001600160a01b03166001600160a01b0316815260200190815260200160002081905550600160146000888481518110620001fd57620001fd62000880565b6020908102919091018101516001600160a01b031682528101919091526040016000908120805460ff191692151592909217909155601680546001810182559082527fd833147d7dc355ba459fc788f669e58cfaf9dc25ddcd0702e87d69c7b51242890155845185908290811062000279576200027962000880565b6020026020010151600f60008884815181106200029a576200029a62000880565b6020908102919091018101516001600160a01b03908116835290820192909252604001600090812080546001600160a01b03191693909216929092179055601a805460018181019092557f057c384a7d1c54f3a1b2e5e67b2617b8224fdfd1ea7234eea573a6ff665ff63e01829055601b8054918201815582527f3ad8aa4f87544323a9d1e5dd902f40c356527a7955687113db5f9a85ad579dc1015580620003438162000896565b91505062000192565b506022805460ff19169055426005556040805163513872bd60e01b81529051733669c421b77340b2979d1a00a792cc2ee0fce7379163513872bd9160048083019260209291908290030181865afa158015620003ac573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620003d29190620008be565b6004819055505050505050505050505050505080602260066101000a8154816001600160a01b0302191690836001600160a01b03160217905550602260069054906101000a90046001600160a01b03166001600160a01b0316634f39059c6040518163ffffffff1660e01b8152600401602060405180830381865afa15801562000460573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620004869190620008d8565b602380546001600160a01b0319166001600160a01b03928316179055602254604080516313ce416760e21b81529051660100000000000090920490921691634f39059c9160048083019260209291908290030181865afa158015620004ef573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620005159190620008d8565b602480546001600160a01b0319166001600160a01b039290921691909117905550506022805460ff60281b1916905550620008fd9350505050565b828054828255906000526020600020908101928215620005a8579160200282015b82811115620005a857825182546001600160a01b0319166001600160a01b0390911617825560209092019160019091019062000571565b50620005b6929150620005f8565b5090565b828054828255906000526020600020908101928215620005a8579160200282015b82811115620005a8578251825591602001919060010190620005db565b5b80821115620005b65760008155600101620005f9565b80516001600160a01b03811681146200062757600080fd5b919050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f191681016001600160401b03811182821017156200066d576200066d6200062c565b604052919050565b60006001600160401b038211156200069157620006916200062c565b5060051b60200190565b600082601f830112620006ad57600080fd5b81516020620006c6620006c08362000675565b62000642565b82815260059290921b84018101918181019086841115620006e657600080fd5b8286015b848110156200070c57620006fe816200060f565b8352918301918301620006ea565b509695505050505050565b600082601f8301126200072957600080fd5b815160206200073c620006c08362000675565b82815260059290921b840181019181810190868411156200075c57600080fd5b8286015b848110156200070c578051835291830191830162000760565b600080600080600080600060e0888a0312156200079557600080fd5b620007a0886200060f565b60208901519097506001600160401b0380821115620007be57600080fd5b620007cc8b838c016200069b565b975060408a0151915080821115620007e357600080fd5b620007f18b838c016200069b565b965060608a01519150808211156200080857600080fd5b620008168b838c0162000717565b955060808a01519150808211156200082d57600080fd5b6200083b8b838c016200069b565b945060a08a01519150808211156200085257600080fd5b50620008618a828b016200069b565b9250506200087260c089016200060f565b905092959891949750929550565b634e487b7160e01b600052603260045260246000fd5b600060018201620008b757634e487b7160e01b600052601160045260246000fd5b5060010190565b600060208284031215620008d157600080fd5b5051919050565b600060208284031215620008eb57600080fd5b620008f6826200060f565b9392505050565b614fd3806200090d6000396000f3fe608060405234801561001057600080fd5b50600436106103ea5760003560e01c80637d6ef08e1161021a578063d2010fb411610135578063e1ba95d2116100c8578063f2a8d34911610097578063f77e34d11161007c578063f77e34d1146109a0578063facefb64146109b3578063fff6cae9146109c657600080fd5b8063f2a8d34914610984578063f2caeb1e1461098d57600080fd5b8063e1ba95d214610957578063e7f305821461095f578063ebe2b12b14610972578063f288baf61461097b57600080fd5b8063d7400d5611610104578063d7400d56146108f3578063d9f96e8d14610906578063de1a65511461093c578063e01f62bf1461094f57600080fd5b8063d2010fb4146108b1578063d2fbdc0d146108ba578063d42fc9b4146108cd578063d5e1a9c6146108e057600080fd5b8063aa1d4fce116101ad578063c35438261161017c578063c354382614610856578063c8f33c9114610869578063ca6df29d14610872578063cdc82e80146108a857600080fd5b8063aa1d4fce1461081e578063b85efd0614610827578063b94c4dcb1461083a578063c00007b01461084357600080fd5b80638da5cb5b116101e95780638da5cb5b146107cb57806391cf600a146107eb5780639637927f146107fe578063a0f234761461080b57600080fd5b80637d6ef08e146107585780637f472e54146107775780638980f11f1461078a5780638bad86a71461079d57600080fd5b8063387edc861161030a5780636c430dbb1161029d578063774d4ae71161026c578063774d4ae7146106ef5780637910d17b146107025780637970833e1461071557806379ba50971461075057600080fd5b80636c430dbb146106945780636e27cef9146106b457806370641a36146106bd57806372f702f3146106c557600080fd5b806353a47bb7116102d957806353a47bb7146106445780635bfd92581461066457806364f2c0601461066c578063693392451461067457600080fd5b8063387edc86146105c857806341a16f3f146105db5780634f39059c146106115780634fd2b5361461063157600080fd5b80631face856116103825780632c0c2a0a116103515780632c0c2a0a146105625780632df079f11461057557806336f89af214610588578063386a9525146105be57600080fd5b80631face856146104b1578063218751b2146104c4578063231b68dc1461050957806328408bab1461052c57600080fd5b80631627540c116103be5780631627540c1461046157806317b18c89146104765780631c1f78eb146104895780631e090f011461049157600080fd5b80628cc262146103ef5780630238b936146104185780630d7bac4f1461043957806312edb24c1461044c575b600080fd5b6104026103fd3660046149d2565b6109ce565b60405161040f91906149ed565b60405180910390f35b61042b610426366004614a3f565b610b4d565b60405190815260200161040f565b61042b610447366004614a7f565b610c4e565b610454610c7a565b60405161040f9190614a98565b61047461046f3660046149d2565b610ce9565b005b61042b610484366004614ae6565b610e09565b610402610e93565b6104a461049f3660046149d2565b610f34565b60405161040f9190614b08565b61042b6104bf3660046149d2565b610fe8565b6024546104e49073ffffffffffffffffffffffffffffffffffffffff1681565b60405173ffffffffffffffffffffffffffffffffffffffff909116815260200161040f565b61051c610517366004614b76565b61102d565b604051901515815260200161040f565b6104e461053a3660046149d2565b60216020526000908152604090205473ffffffffffffffffffffffffffffffffffffffff1681565b61042b6105703660046149d2565b611113565b610474610583366004614ba9565b6113ff565b61042b6105963660046149d2565b73ffffffffffffffffffffffffffffffffffffffff166000908152601f602052604090205490565b61042b62093a8081565b6104746105d63660046149d2565b611566565b6104e46105e93660046149d2565b600f6020526000908152604090205473ffffffffffffffffffffffffffffffffffffffff1681565b6023546104e49073ffffffffffffffffffffffffffffffffffffffff1681565b61042b61063f3660046149d2565b611650565b6001546104e49073ffffffffffffffffffffffffffffffffffffffff1681565b61042b611671565b601d5461042b565b61042b6106823660046149d2565b60156020526000908152604090205481565b61042b6106a23660046149d2565b60196020526000908152604090205481565b61042b60085481565b610402611715565b6022546104e4906601000000000000900473ffffffffffffffffffffffffffffffffffffffff1681565b61042b6106fd366004614c05565b611874565b610402610710366004614c2f565b611a80565b610728610723366004614c05565b611afc565b604080519586526020860194909452928401919091526060830152608082015260a00161040f565b610474611b4a565b61042b6107663660046149d2565b602080526000908152604090205481565b61042b6107853660046149d2565b611c95565b610474610798366004614c05565b611cac565b6107b06107ab3660046149d2565b611e43565b6040805193845260208401929092529082015260600161040f565b6000546104e49073ffffffffffffffffffffffffffffffffffffffff1681565b6104746107f93660046149d2565b612077565b60225461051c9060ff1681565b61042b6108193660046149d2565b61216a565b61042b60095481565b610474610835366004614ae6565b612234565b61042b60075481565b6104026108513660046149d2565b612464565b6104e46108643660046149d2565b6124ec565b61042b60055481565b61042b6108803660046149d2565b73ffffffffffffffffffffffffffffffffffffffff1660009081526025602052604090205490565b61042b60065481565b61042b60035481565b6104746108c8366004614ae6565b61254f565b61042b6108db3660046149d2565b61292b565b6104746108ee366004614c66565b612967565b6104746109013660046149d2565b612b56565b61042b6109143660046149d2565b73ffffffffffffffffffffffffffffffffffffffff166000908152601e602052604090205490565b61047461094a366004614b76565b612d70565b601c5461042b565b610474612e57565b61047461096d3660046149d2565b612f28565b61042b60045481565b61042b600a5481565b61042b600b5481565b61042b61099b366004614a7f565b613088565b6104746109ae366004614cb3565b61319f565b6104746109c1366004614cff565b613375565b610474613524565b606060006109da611715565b60105490915067ffffffffffffffff8111156109f8576109f8614cd0565b604051908082528060200260200182016040528015610a21578160200160208202803683370190505b5073ffffffffffffffffffffffffffffffffffffffff84166000908152601f602052604090205490925015610b475760005b601054811015610b455773ffffffffffffffffffffffffffffffffffffffff84166000818152601860209081526040808320858452825280832054938352601782528083208584529091529020548351670de0b6b3a76400009190859085908110610ac057610ac0614da4565b6020026020010151610ad29190614e02565b73ffffffffffffffffffffffffffffffffffffffff87166000908152601f6020526040902054610b029190614e15565b610b0c9190614e2c565b610b169190614e67565b838281518110610b2857610b28614da4565b602090810291909101015280610b3d81614e7a565b915050610a53565b505b50919050565b60006002805403610bbf576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064015b60405180910390fd5b60028055602254610100900460ff1615610c35576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601260248201527f5769746864726177616c732070617573656400000000000000000000000000006044820152606401610bb6565b610c4133848685613554565b6001600255949350505050565b600654600754600091610c7491610c658286614e15565b610c6f9190614e2c565b613732565b92915050565b60606010805480602002602001604051908101604052809291908181526020018280548015610cdf57602002820191906000526020600020905b815473ffffffffffffffffffffffffffffffffffffffff168152600190910190602001808311610cb4575b5050505050905090565b60005473ffffffffffffffffffffffffffffffffffffffff163314610d90576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602f60248201527f4f6e6c792074686520636f6e7472616374206f776e6572206d6179207065726660448201527f6f726d207468697320616374696f6e00000000000000000000000000000000006064820152608401610bb6565b600180547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff83169081179091556040519081527f906a1c6bd7e3091ea86693dd029a831c19049ce77f1dce2ce0bab1cacbabce229060200160405180910390a150565b60006002805403610e76576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610bb6565b60028055610e87338085854261374a565b60016002559392505050565b60135460609067ffffffffffffffff811115610eb157610eb1614cd0565b604051908082528060200260200182016040528015610eda578160200160208202803683370190505b50905060005b601354811015610f305762093a80610ef782613088565b610f019190614e15565b828281518110610f1357610f13614da4565b602090810291909101015280610f2881614e7a565b915050610ee0565b5090565b73ffffffffffffffffffffffffffffffffffffffff81166000908152602560209081526040808320805482518185028101850190935280835260609492939192909184015b82821015610fdd57838290600052602060002090600502016040518060a00160405290816000820154815260200160018201548152602001600282015481526020016003820154815260200160048201548152505081526020019060010190610f79565b505050509050919050565b73ffffffffffffffffffffffffffffffffffffffff81166000908152602080526040812054600354670de0b6b3a76400009161102391614e15565b610c749190614e2c565b73ffffffffffffffffffffffffffffffffffffffff811660009081526014602052604081205460ff1661106257506000610c74565b73ffffffffffffffffffffffffffffffffffffffff83161580611099575073ffffffffffffffffffffffffffffffffffffffff8216155b156110a657506000610c74565b60005473ffffffffffffffffffffffffffffffffffffffff908116908416036110d157506001610c74565b73ffffffffffffffffffffffffffffffffffffffff8281166000908152600f602052604090205481851691160361110a57506001610c74565b50600092915050565b60008080611120846124ec565b905073ffffffffffffffffffffffffffffffffffffffff8116156111e5576040517f70a0823100000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff8216600482015273c8418af6358ffdda74e09ca9cc3fe03ca6adc5b0906370a0823190602401602060405180830381865afa1580156111bc573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111e09190614eb2565b611287565b6040517f70a0823100000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff8516600482015273c8418af6358ffdda74e09ca9cc3fe03ca6adc5b0906370a0823190602401602060405180830381865afa158015611263573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112879190614eb2565b91506000670de0b6b3a764000073c8418af6358ffdda74e09ca9cc3fe03ca6adc5b073ffffffffffffffffffffffffffffffffffffffff166318160ddd6040518163ffffffff1660e01b8152600401602060405180830381865afa1580156112f3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113179190614eb2565b6113219190614e15565b600954600a546113319086614e15565b61133b9190614e15565b6113459190614e2c565b905060008073ffffffffffffffffffffffffffffffffffffffff8416156113745761136f84611c95565b61137d565b61137d87611650565b905080156113cf5760008161139a670de0b6b3a764000088614e15565b6113a49190614e2c565b9050670de0b6b3a7640000600a54826113bd9190614e15565b6113c79190614e2c565b9250506113d4565b600091505b508082116113e257806113e4565b815b9450600a548511156113f657600a5494505b50505050919050565b60005473ffffffffffffffffffffffffffffffffffffffff163314806114385750738412ebf45bac1b340bbe8f318b928c466c4e39ca33145b61149e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601560248201527f4e6f74206f776e6572206f722074696d656c6f636b00000000000000000000006044820152606401610bb6565b602280547fffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ff00ff166301000000951515959095027fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ff169490941761010093151593909302929092177fffffffffffffffffffffffffffffffffffffffffffffffffffffff00ff00ffff1662010000911515919091027fffffffffffffffffffffffffffffffffffffffffffffffffffffff00ffffffff161764010000000091151591909102179055565b60028054036115d1576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610bb6565b6002805560225462010000900460ff1615611648576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601960248201527f5265776172647320636f6c6c656374696f6e20706175736564000000000000006044820152606401610bb6565b506001600255565b6000670de0b6b3a7640000600b546116678461292b565b6110239190614e15565b60006003602460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166354f0f7d56040518163ffffffff1660e01b8152600401602060405180830381865afa1580156116e2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906117069190614eb2565b6117109190614e2c565b905090565b6060601c54600014806117285750601d54155b15611782576016805480602002602001604051908101604052809291908181526020018280548015610cdf57602002820191906000526020600020905b815481526020019060010190808311611765575050505050905090565b60105467ffffffffffffffff81111561179d5761179d614cd0565b6040519080825280602002602001820160405280156117c6578160200160208202803683370190505b50905060005b601654811015610f3057601d546117e282613088565b6005546117ed613a9e565b6117f79190614e02565b6118019190614e15565b61181390670de0b6b3a7640000614e15565b61181d9190614e2c565b6016828154811061183057611830614da4565b90600052602060002001546118459190614e67565b82828151811061185757611857614da4565b60209081029190910101528061186c81614e7a565b9150506117cc565b73ffffffffffffffffffffffffffffffffffffffff821660009081526025602052604081208054829190849081106118ae576118ae614da4565b600091825260208083206040805160a081018252600590940290910180548452600181015484840181905260028201548584015260038201546060860152600490910154608085015273ffffffffffffffffffffffffffffffffffffffff891685526019909252832054919350111561192c57506020810151611954565b5073ffffffffffffffffffffffffffffffffffffffff84166000908152601960205260409020545b42826060015111611a1457606082015173ffffffffffffffffffffffffffffffffffffffff86166000908152601960205260409020541015611a0b5760008183606001516119a29190614e02565b905060008360600151426119b69190614e02565b905060006119c8610447600285614e2c565b905060006119d68382614e15565b6119e08584614e15565b6119ea9190614e67565b90506119f68385614e67565b611a009082614e2c565b965050505050611a64565b60009250611a64565b600080828460600151611a279190614e02565b90506000428560600151611a3b9190614e02565b90506002611a498284614e67565b611a539190614e2c565b92505050611a6081610c4e565b9350505b8160800151831115611a7857816080015192505b505092915050565b60606002805403611aed576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610bb6565b60028055610e87338484613aac565b60256020528160005260406000208181548110611b1857600080fd5b600091825260209091206005909102018054600182015460028301546003840154600490940154929550909350919085565b60015473ffffffffffffffffffffffffffffffffffffffff163314611bf1576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603560248201527f596f75206d757374206265206e6f6d696e61746564206265666f726520796f7560448201527f2063616e20616363657074206f776e65727368697000000000000000000000006064820152608401610bb6565b6000546001546040805173ffffffffffffffffffffffffffffffffffffffff93841681529290911660208301527fb532073b38c83145e3e5135377a08bf9aab55bc0fd7c1179cd4fb995d2a5159c910160405180910390a160018054600080547fffffffffffffffffffffffff000000000000000000000000000000000000000090811673ffffffffffffffffffffffffffffffffffffffff841617909155169055565b6000670de0b6b3a7640000600b5461166784610fe8565b600054829073ffffffffffffffffffffffffffffffffffffffff16331480611cd95750611cd9338261102d565b611d3f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601460248201527f4e6f74206f776e6572206f7220746b6e206d67720000000000000000000000006044820152606401610bb6565b73ffffffffffffffffffffffffffffffffffffffff831660009081526014602052604090205460ff16808015611d9b575073ffffffffffffffffffffffffffffffffffffffff8481166000908152600f60205260409020541633145b80611dc6575080158015611dc6575060005473ffffffffffffffffffffffffffffffffffffffff1633145b15611ddc57611dd6843385613d7a565b50505050565b6040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601a60248201527f4e6f2076616c696420746f6b656e7320746f207265636f7665720000000000006044820152606401610bb6565b505050565b73ffffffffffffffffffffffffffffffffffffffff81166000908152601f60205260408120549080611e7484611113565b73ffffffffffffffffffffffffffffffffffffffff85166000908152601e602052604081205491935090158015611ece575073ffffffffffffffffffffffffffffffffffffffff85166000908152601f6020526040902054155b80611efe575073ffffffffffffffffffffffffffffffffffffffff85166000908152600c60205260409020548310155b15611f0a575081611f4a565b73ffffffffffffffffffffffffffffffffffffffff85166000908152600c6020526040902054600290611f3d9085614e67565b611f479190614e2c565b90505b6000915060005b73ffffffffffffffffffffffffffffffffffffffff861660009081526025602052604090205481101561206e5773ffffffffffffffffffffffffffffffffffffffff86166000908152602560205260408120805483908110611fb557611fb5614da4565b90600052602060002090600502016040518060a0016040529081600082015481526020016001820154815260200160028201548152602001600382015481526020016004820154815250509050600061200e8884611874565b60408301519091506000670de0b6b3a764000061202b8785614e67565b6120359084614e15565b61203f9190614e2c565b6120499083614e67565b90506120558188614e67565b965050505050808061206690614e7a565b915050611f51565b50509193909250565b60005473ffffffffffffffffffffffffffffffffffffffff163314806120b05750738412ebf45bac1b340bbe8f318b928c466c4e39ca33145b612116576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601560248201527f4e6f74206f776e6572206f722074696d656c6f636b00000000000000000000006044820152606401610bb6565b73ffffffffffffffffffffffffffffffffffffffff166000908152600d6020526040902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00811660ff90911615179055565b6000600354600b5461217c9190614e15565b6040517f70a0823100000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff84166004820152670de0b6b3a764000090819073c8418af6358ffdda74e09ca9cc3fe03ca6adc5b0906370a0823190602401602060405180830381865afa158015612206573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061222a9190614eb2565b6116679190614e15565b600280540361229f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610bb6565b600280553360016122b282826000613eea565b6022546301000000900460ff1615612326576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600e60248201527f5374616b696e67207061757365640000000000000000000000000000000000006044820152606401610bb6565b6000806123333387614044565b9150915060008583604001516123499190614e67565b905060225461237a906601000000000000900473ffffffffffffffffffffffffffffffffffffffff16333089614209565b6040805160a0810182528881526020858101518183015281830184905260608087015190830152608080870151908301523360009081526025909152919091208054849081106123cc576123cc614da4565b9060005260206000209060050201600082015181600001556020820151816001015560408201518160020155606082015181600301556080820151816004015590505061241b3387600161439f565b604080518881526020810188905233917f2640b32e7e5d0fa2a21ea06b22fbd75fda0fda384a895a5fdeef43646de47a0c910160405180910390a2505060016002555050505050565b606060028054036124d1576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610bb6565b600280556124e133836001613aac565b600160025592915050565b73ffffffffffffffffffffffffffffffffffffffff81166000908152600d602052604081205460ff161561251e575090565b5073ffffffffffffffffffffffffffffffffffffffff9081166000908152602160205260409020541690565b919050565b60028054036125ba576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610bb6565b600280553360016125cd82826000613eea565b6022546301000000900460ff1615612641576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600e60248201527f5374616b696e67207061757365640000000000000000000000000000000000006044820152606401610bb6565b60008061264e3387614044565b915091504285116126bb576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601560248201527f4d75737420626520696e207468652066757475726500000000000000000000006044820152606401610bb6565b6000428360600151116126cf5760006126df565b4283606001516126df9190614e02565b905060006126ed4288614e02565b9050818111612758576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601860248201527f43616e6e6f742073686f7274656e206c6f636b2074696d6500000000000000006044820152606401610bb6565b6008548110156127c4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601a60248201527f4d696e696d756d207374616b652074696d65206e6f74206d65740000000000006044820152606401610bb6565b600754811115612830576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601b60248201527f547279696e6720746f206c6f636b20666f7220746f6f206c6f6e6700000000006044820152606401610bb6565b6040518060a001604052808981526020014281526020018560400151815260200188815260200161286083610c4e565b905233600090815260256020526040902080548590811061288357612883614da4565b906000526020600020906005020160008201518160000155602082015181600101556040820151816002015560608201518160030155608082015181600401559050506128d33360006001613eea565b6040805189815260208101839052428183015260608101899052905133917fc2cf1aae6decacbc52f96b4e4fec96d4ebab5236e4ed987165537bc463014a43919081900360800190a250506001600255505050505050565b73ffffffffffffffffffffffffffffffffffffffff81166000908152601e6020526040812054600354670de0b6b3a76400009161102391614e15565b600054849073ffffffffffffffffffffffffffffffffffffffff163314806129945750612994338261102d565b6129fa576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601460248201527f4e6f74206f776e6572206f7220746b6e206d67720000000000000000000000006044820152606401610bb6565b73ffffffffffffffffffffffffffffffffffffffff8516600090815260156020526040902054601380548692908110612a3557612a35614da4565b9060005260206000200181905550826011601560008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205481548110612a9657612a96614da4565b600091825260208083209190910180547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff948516179055918716815260159091526040902054601280548492908110612b0757612b07614da4565b9060005260206000200160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505050505050565b73ffffffffffffffffffffffffffffffffffffffff81166000908152600d602052604090205460ff16612be5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600d60248201527f496e76616c69642070726f7879000000000000000000000000000000000000006044820152606401610bb6565b73ffffffffffffffffffffffffffffffffffffffff81166000908152600e6020908152604080832033845290915290205460ff16612c7f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f50726f787920686173206e6f7420616c6c6f77656420796f75207965740000006044820152606401610bb6565b3360009081526021602052604090205473ffffffffffffffffffffffffffffffffffffffff168015612cf357336000908152601e602090815260408083205473ffffffffffffffffffffffffffffffffffffffff851684529180528220805491929091612ced908490614e02565b90915550505b33600090815260216020908152604080832080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff8716908117909155601e8352818420549084529180528220805491929091612d67908490614e67565b90915550505050565b600054829073ffffffffffffffffffffffffffffffffffffffff16331480612d9d5750612d9d338261102d565b612e03576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601460248201527f4e6f74206f776e6572206f7220746b6e206d67720000000000000000000000006044820152606401610bb6565b5073ffffffffffffffffffffffffffffffffffffffff9182166000908152600f6020526040902080547fffffffffffffffffffffffff00000000000000000000000000000000000000001691909216179055565b60005473ffffffffffffffffffffffffffffffffffffffff16331480612e905750738412ebf45bac1b340bbe8f318b928c466c4e39ca33145b612ef6576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601560248201527f4e6f74206f776e6572206f722074696d656c6f636b00000000000000000000006044820152606401610bb6565b602280547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00811660ff90911615179055565b336000908152600d602052604090205460ff16612fa1576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600d60248201527f496e76616c69642070726f7879000000000000000000000000000000000000006044820152606401610bb6565b336000818152600e6020908152604080832073ffffffffffffffffffffffffffffffffffffffff8681168552908352818420805460ff8116157fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0090911617905560219092529091205416036130855773ffffffffffffffffffffffffffffffffffffffff8116600090815260216020908152604080832080547fffffffffffffffffffffffff0000000000000000000000000000000000000000169055601e825280832054338452918052822080549192909161307f908490614e02565b90915550505b50565b6000806011838154811061309e5761309e614da4565b60009182526020909120015473ffffffffffffffffffffffffffffffffffffffff169050801561317957670de0b6b3a7640000601a84815481106130e4576130e4614da4565b90600052602060002001548273ffffffffffffffffffffffffffffffffffffffff16630a3be7576040518163ffffffff1660e01b8152600401602060405180830381865afa15801561313a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061315e9190614eb2565b6131689190614e15565b6131729190614e2c565b9150610b47565b6013838154811061318c5761318c614da4565b9060005260206000200154915050919050565b60005b601154811015613371576000601182815481106131c1576131c1614da4565b60009182526020909120015473ffffffffffffffffffffffffffffffffffffffff169050801561335e5782806132135750601b828154811061320557613205614da4565b906000526020600020015442115b1561335e576040517f6472eee100000000000000000000000000000000000000000000000000000000815230600482015242602482015273ffffffffffffffffffffffffffffffffffffffff821690636472eee1906044016020604051808303816000875af115801561328a573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906132ae9190614eb2565b601a83815481106132c1576132c1614da4565b90600052602060002001819055508073ffffffffffffffffffffffffffffffffffffffff1663513872bd6040518163ffffffff1660e01b8152600401602060405180830381865afa15801561331a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061333e9190614eb2565b601b838154811061335157613351614da4565b6000918252602090912001555b508061336981614e7a565b9150506131a2565b5050565b60005473ffffffffffffffffffffffffffffffffffffffff163314806133ae5750738412ebf45bac1b340bbe8f318b928c466c4e39ca33145b613414576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601560248201527f4e6f74206f776e6572206f722074696d656c6f636b00000000000000000000006044820152606401610bb6565b8051670de0b6b3a76400001115613487576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601360248201527f4d757374206265203e3d204d554c2050524543000000000000000000000000006044820152606401610bb6565b6080810151600111156134f6576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600c60248201527f4d757374206265203e3d203100000000000000000000000000000000000000006044820152606401610bb6565b80516006556020810151600a556040810151600b556060810151600955608081015160075560a00151600855565b61352e600061319f565b613536611671565b600355600454421061354c5761354a614512565b565b61354a61483b565b6000818061356d5750602254640100000000900460ff16155b156135845761357e85856001613aac565b50613591565b6135918560016000613eea565b60008061359e8786614044565b915091508160600151421015806135bc575060225460ff1615156001145b613622576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601660248201527f5374616b65206973207374696c6c206c6f636b656421000000000000000000006044820152606401610bb6565b604082015180156137275760225461365b906601000000000000900473ffffffffffffffffffffffffffffffffffffffff168883613d7a565b73ffffffffffffffffffffffffffffffffffffffff8816600090815260256020526040902080548390811061369257613692614da4565b6000918252602082206005909102018181556001810182905560028101829055600381018290556004018190556136cc908990839061439f565b604080518281526020810188905273ffffffffffffffffffffffffffffffffffffffff898116828401529151918a16917f1d9308f6b22a2754a1c622bb30889e8f8f956c83e524d039e9d65d5f052eb9089181900360600190a25b979650505050505050565b60008183106137415781613743565b825b9392505050565b600085600161375b82826000613eea565b6022546301000000900460ff16156137cf576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600e60248201527f5374616b696e67207061757365640000000000000000000000000000000000006044820152606401610bb6565b60085485101561383b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601a60248201527f4d696e696d756d207374616b652074696d65206e6f74206d65740000000000006044820152606401610bb6565b6007548511156138a7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601b60248201527f547279696e6720746f206c6f636b20666f7220746f6f206c6f6e6700000000006044820152606401610bb6565b6022546138d6906601000000000000900473ffffffffffffffffffffffffffffffffffffffff16883089614209565b60006138e186610c4e565b73ffffffffffffffffffffffffffffffffffffffff8a166000908152601e602090815260408083205490517fffffffffffffffffffffffffffffffffffffffff00000000000000000000000060608f901b169281019290925260348201899052605482018b9052607482015291925090609401604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0818403018152828252805160209182012073ffffffffffffffffffffffffffffffffffffffff8e1660009081526025835283902060a0850184528185529184018a90529183018b905290925090606081016139d48a8a614e67565b81526020908101859052825460018181018555600094855293829020835160059092020190815590820151818401556040820151600282015560608201516003820155608090910151600490910155613a30908b908a9061439f565b604080518981526020810189905290810182905273ffffffffffffffffffffffffffffffffffffffff8a811660608301528b16907ff400e72e69ef4402819dfc57eeddc66f5eb69bf405e0e8098b1946ec1ac14a229060800160405180910390a29998505050505050505050565b600061171042600454613732565b6060836001613abd82826000613eea565b73ffffffffffffffffffffffffffffffffffffffff8616600090815260196020526040902042905560225462010000900460ff1615613b58576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601960248201527f5265776172647320636f6c6c656374696f6e20706175736564000000000000006044820152606401610bb6565b60105467ffffffffffffffff811115613b7357613b73614cd0565b604051908082528060200260200182016040528015613b9c578160200160208202803683370190505b50925060005b601054811015613d705773ffffffffffffffffffffffffffffffffffffffff871660009081526018602090815260408083208484529091529020548451859083908110613bf157613bf1614da4565b60209081029190910181019190915273ffffffffffffffffffffffffffffffffffffffff881660009081526018825260408082208483529092529081208190558451859083908110613c4557613c45614da4565b60200260200101511115613d5e57613cb460108281548110613c6957613c69614da4565b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1687868481518110613ca757613ca7614da4565b6020026020010151613d7a565b8673ffffffffffffffffffffffffffffffffffffffff167f1d2f2ca53af5d2f333bd32fdd45f9c52ad8ebe31414f7792912077fcb3876dff858381518110613cfe57613cfe614da4565b602002602001015160108481548110613d1957613d19614da4565b600091825260209182902001546040805193845273ffffffffffffffffffffffffffffffffffffffff918216928401929092528a169082015260600160405180910390a25b80613d6881614e7a565b915050613ba2565b5050509392505050565b6040805173ffffffffffffffffffffffffffffffffffffffff8481166024830152604480830185905283518084039091018152606490920183526020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fa9059cbb000000000000000000000000000000000000000000000000000000001790529151600092839290871691613e119190614eef565b6000604051808303816000865af19150503d8060008114613e4e576040519150601f19603f3d011682016040523d82523d6000602084013e613e53565b606091505b5091509150818015613e7d575080511580613e7d575080806020019051810190613e7d9190614f0b565b613ee3576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5472616e7366657248656c7065723a205452414e534645525f4641494c4544006044820152606401610bb6565b5050505050565b8115613ef857613ef8613524565b8015613f2e57613f0783611113565b73ffffffffffffffffffffffffffffffffffffffff84166000908152600c60205260409020555b73ffffffffffffffffffffffffffffffffffffffff831615611e3e576000806000613f5886611e43565b925092509250613f67866148ae565b73ffffffffffffffffffffffffffffffffffffffff86166000908152600c60205260409020829055828110613feb576000613fa28483614e02565b905080601d54613fb29190614e67565b601d55613fbf8185614e67565b73ffffffffffffffffffffffffffffffffffffffff88166000908152601f60205260409020555061403c565b6000613ff78285614e02565b905080601d546140079190614e02565b601d556140148185614e02565b73ffffffffffffffffffffffffffffffffffffffff88166000908152601f6020526040902055505b505050505050565b6140796040518060a0016040528060008019168152602001600081526020016000815260200160008152602001600081525090565b6000805b73ffffffffffffffffffffffffffffffffffffffff85166000908152602560205260409020548110156141975773ffffffffffffffffffffffffffffffffffffffff851660009081526025602052604090208054829081106140e1576140e1614da4565b90600052602060002090600502016000015484036141855773ffffffffffffffffffffffffffffffffffffffff8516600090815260256020526040902080548290811061413057614130614da4565b90600052602060002090600502016040518060a0016040529081600082015481526020016001820154815260200160028201548152602001600382015481526020016004820154815250509250809150614197565b8061418f81614e7a565b91505061407d565b5081518314614202576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600f60248201527f5374616b65206e6f7420666f756e6400000000000000000000000000000000006044820152606401610bb6565b9250929050565b6040805173ffffffffffffffffffffffffffffffffffffffff85811660248301528481166044830152606480830185905283518084039091018152608490920183526020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167f23b872dd0000000000000000000000000000000000000000000000000000000017905291516000928392908816916142a89190614eef565b6000604051808303816000865af19150503d80600081146142e5576040519150601f19603f3d011682016040523d82523d6000602084013e6142ea565b606091505b50915091508180156143145750805115806143145750808060200190518101906143149190614f0b565b61403c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152602060048201526024808201527f5472616e7366657248656c7065723a205452414e534645525f46524f4d5f464160448201527f494c4544000000000000000000000000000000000000000000000000000000006064820152608401610bb6565b60006143aa846124ec565b9050811561445e5782601c60008282546143c49190614e67565b909155505073ffffffffffffffffffffffffffffffffffffffff84166000908152601e6020526040812080548592906143fe908490614e67565b909155505073ffffffffffffffffffffffffffffffffffffffff8116156144595773ffffffffffffffffffffffffffffffffffffffff8116600090815260208052604081208054859290614453908490614e67565b90915550505b614505565b82601c60008282546144709190614e02565b909155505073ffffffffffffffffffffffffffffffffffffffff84166000908152601e6020526040812080548592906144aa908490614e02565b909155505073ffffffffffffffffffffffffffffffffffffffff8116156145055773ffffffffffffffffffffffffffffffffffffffff81166000908152602080526040812080548592906144ff908490614e02565b90915550505b611dd68460006001613eea565b61451a61483b565b60005b60125481101561460b5760006012828154811061453c5761453c614da4565b60009182526020909120015473ffffffffffffffffffffffffffffffffffffffff16905080156145f8576040517f092193ab00000000000000000000000000000000000000000000000000000000815230600482015273ffffffffffffffffffffffffffffffffffffffff82169063092193ab9060240160408051808303816000875af11580156145d1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906145f59190614f28565b50505b508061460381614e7a565b91505061451d565b50600062093a80600454426146209190614e02565b61462a9190614e2c565b905060005b60105481101561480d576010818154811061464c5761464c614da4565b6000918252602090912001546040517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015273ffffffffffffffffffffffffffffffffffffffff909116906370a0823190602401602060405180830381865afa1580156146c3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906146e79190614eb2565b6146f2836001614e67565b62093a806146ff84613088565b6147099190614e15565b6147139190614e15565b11156010828154811061472857614728614da4565b60009182526020918290200154604080517f4e6f7420656e6f7567682072657761726420746f6b656e7320617661696c6162938101939093527f6c653a20000000000000000000000000000000000000000000000000000000009083015260601b7fffffffffffffffffffffffffffffffffffffffff000000000000000000000000166044820152605801604051602081830303815290604052906147fa576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610bb69190614f4c565b508061480581614e7a565b91505061462f565b5062093a8061481d826001614e67565b6148279190614e15565b6004546148349190614e67565b6004556130855b6000614845611715565b905060005b60165481101561489f5781818151811061486657614866614da4565b60200260200101516016828154811061488157614881614da4565b6000918252602090912001558061489781614e7a565b91505061484a565b506148a8613a9e565b60055550565b73ffffffffffffffffffffffffffffffffffffffff8116156130855760006148d5826109ce565b905060005b8151811015614943578181815181106148f5576148f5614da4565b60209081029190910181015173ffffffffffffffffffffffffffffffffffffffff8516600090815260188352604080822085835290935291909120558061493b81614e7a565b9150506148da565b5060005b8151811015611e3e576016818154811061496357614963614da4565b600091825260208083209091015473ffffffffffffffffffffffffffffffffffffffff86168352601782526040808420858552909252912055806149a681614e7a565b915050614947565b803573ffffffffffffffffffffffffffffffffffffffff8116811461254a57600080fd5b6000602082840312156149e457600080fd5b613743826149ae565b6020808252825182820181905260009190848201906040850190845b81811015614a2557835183529284019291840191600101614a09565b50909695505050505050565b801515811461308557600080fd5b600080600060608486031215614a5457600080fd5b83359250614a64602085016149ae565b91506040840135614a7481614a31565b809150509250925092565b600060208284031215614a9157600080fd5b5035919050565b6020808252825182820181905260009190848201906040850190845b81811015614a2557835173ffffffffffffffffffffffffffffffffffffffff1683529284019291840191600101614ab4565b60008060408385031215614af957600080fd5b50508035926020909101359150565b602080825282518282018190526000919060409081850190868401855b82811015614b695781518051855286810151878601528581015186860152606080820151908601526080908101519085015260a09093019290850190600101614b25565b5091979650505050505050565b60008060408385031215614b8957600080fd5b614b92836149ae565b9150614ba0602084016149ae565b90509250929050565b60008060008060808587031215614bbf57600080fd5b8435614bca81614a31565b93506020850135614bda81614a31565b92506040850135614bea81614a31565b91506060850135614bfa81614a31565b939692955090935050565b60008060408385031215614c1857600080fd5b614c21836149ae565b946020939093013593505050565b60008060408385031215614c4257600080fd5b614c4b836149ae565b91506020830135614c5b81614a31565b809150509250929050565b60008060008060808587031215614c7c57600080fd5b614c85856149ae565b935060208501359250614c9a604086016149ae565b9150614ca8606086016149ae565b905092959194509250565b600060208284031215614cc557600080fd5b813561374381614a31565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600060c08284031215614d1157600080fd5b82601f830112614d2057600080fd5b60405160c0810181811067ffffffffffffffff82111715614d6a577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040528060c0840185811115614d7f57600080fd5b845b81811015614d99578035835260209283019201614d81565b509195945050505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b81810381811115610c7457610c74614dd3565b8082028115828204841417610c7457610c74614dd3565b600082614e62577f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b500490565b80820180821115610c7457610c74614dd3565b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8203614eab57614eab614dd3565b5060010190565b600060208284031215614ec457600080fd5b5051919050565b60005b83811015614ee6578181015183820152602001614ece565b50506000910152565b60008251614f01818460208701614ecb565b9190910192915050565b600060208284031215614f1d57600080fd5b815161374381614a31565b60008060408385031215614f3b57600080fd5b505080516020909101519092909150565b6020815260008251806020840152614f6b816040850160208701614ecb565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016919091016040019291505056fea2646970667358221220077ef194b28ffd7d7f0dd7d3ea1ac9ffbad71048a19e3206ffedd246549bdaef64736f6c63430008130033000000000000000000000000b1748c79709f4ba2dd82834b8c82d4a505003f2700000000000000000000000000000000000000000000000000000000000000e0000000000000000000000000000000000000000000000000000000000000016000000000000000000000000000000000000000000000000000000000000001e0000000000000000000000000000000000000000000000000000000000000026000000000000000000000000000000000000000000000000000000000000002e0000000000000000000000000ad059ccf041e344ea52a3152bbf654c605d6847300000000000000000000000000000000000000000000000000000000000000030000000000000000000000003432b6a60d23ca0dfca7761b7ab56459d9c964d0000000000000000000000000d533a949740bb3306d119cc777fa900ba034cd520000000000000000000000004e3fbd56cd56c3e72c1403e103b45db9da5b9d2b0000000000000000000000000000000000000000000000000000000000000003000000000000000000000000b1748c79709f4ba2dd82834b8c82d4a505003f270000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000030000000000000000000000000000000000000000000000000000001af2af8c840000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000030000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003000000000000000000000000278dc748eda1d8efef1adfb518542612b49fcd3400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106103ea5760003560e01c80637d6ef08e1161021a578063d2010fb411610135578063e1ba95d2116100c8578063f2a8d34911610097578063f77e34d11161007c578063f77e34d1146109a0578063facefb64146109b3578063fff6cae9146109c657600080fd5b8063f2a8d34914610984578063f2caeb1e1461098d57600080fd5b8063e1ba95d214610957578063e7f305821461095f578063ebe2b12b14610972578063f288baf61461097b57600080fd5b8063d7400d5611610104578063d7400d56146108f3578063d9f96e8d14610906578063de1a65511461093c578063e01f62bf1461094f57600080fd5b8063d2010fb4146108b1578063d2fbdc0d146108ba578063d42fc9b4146108cd578063d5e1a9c6146108e057600080fd5b8063aa1d4fce116101ad578063c35438261161017c578063c354382614610856578063c8f33c9114610869578063ca6df29d14610872578063cdc82e80146108a857600080fd5b8063aa1d4fce1461081e578063b85efd0614610827578063b94c4dcb1461083a578063c00007b01461084357600080fd5b80638da5cb5b116101e95780638da5cb5b146107cb57806391cf600a146107eb5780639637927f146107fe578063a0f234761461080b57600080fd5b80637d6ef08e146107585780637f472e54146107775780638980f11f1461078a5780638bad86a71461079d57600080fd5b8063387edc861161030a5780636c430dbb1161029d578063774d4ae71161026c578063774d4ae7146106ef5780637910d17b146107025780637970833e1461071557806379ba50971461075057600080fd5b80636c430dbb146106945780636e27cef9146106b457806370641a36146106bd57806372f702f3146106c557600080fd5b806353a47bb7116102d957806353a47bb7146106445780635bfd92581461066457806364f2c0601461066c578063693392451461067457600080fd5b8063387edc86146105c857806341a16f3f146105db5780634f39059c146106115780634fd2b5361461063157600080fd5b80631face856116103825780632c0c2a0a116103515780632c0c2a0a146105625780632df079f11461057557806336f89af214610588578063386a9525146105be57600080fd5b80631face856146104b1578063218751b2146104c4578063231b68dc1461050957806328408bab1461052c57600080fd5b80631627540c116103be5780631627540c1461046157806317b18c89146104765780631c1f78eb146104895780631e090f011461049157600080fd5b80628cc262146103ef5780630238b936146104185780630d7bac4f1461043957806312edb24c1461044c575b600080fd5b6104026103fd3660046149d2565b6109ce565b60405161040f91906149ed565b60405180910390f35b61042b610426366004614a3f565b610b4d565b60405190815260200161040f565b61042b610447366004614a7f565b610c4e565b610454610c7a565b60405161040f9190614a98565b61047461046f3660046149d2565b610ce9565b005b61042b610484366004614ae6565b610e09565b610402610e93565b6104a461049f3660046149d2565b610f34565b60405161040f9190614b08565b61042b6104bf3660046149d2565b610fe8565b6024546104e49073ffffffffffffffffffffffffffffffffffffffff1681565b60405173ffffffffffffffffffffffffffffffffffffffff909116815260200161040f565b61051c610517366004614b76565b61102d565b604051901515815260200161040f565b6104e461053a3660046149d2565b60216020526000908152604090205473ffffffffffffffffffffffffffffffffffffffff1681565b61042b6105703660046149d2565b611113565b610474610583366004614ba9565b6113ff565b61042b6105963660046149d2565b73ffffffffffffffffffffffffffffffffffffffff166000908152601f602052604090205490565b61042b62093a8081565b6104746105d63660046149d2565b611566565b6104e46105e93660046149d2565b600f6020526000908152604090205473ffffffffffffffffffffffffffffffffffffffff1681565b6023546104e49073ffffffffffffffffffffffffffffffffffffffff1681565b61042b61063f3660046149d2565b611650565b6001546104e49073ffffffffffffffffffffffffffffffffffffffff1681565b61042b611671565b601d5461042b565b61042b6106823660046149d2565b60156020526000908152604090205481565b61042b6106a23660046149d2565b60196020526000908152604090205481565b61042b60085481565b610402611715565b6022546104e4906601000000000000900473ffffffffffffffffffffffffffffffffffffffff1681565b61042b6106fd366004614c05565b611874565b610402610710366004614c2f565b611a80565b610728610723366004614c05565b611afc565b604080519586526020860194909452928401919091526060830152608082015260a00161040f565b610474611b4a565b61042b6107663660046149d2565b602080526000908152604090205481565b61042b6107853660046149d2565b611c95565b610474610798366004614c05565b611cac565b6107b06107ab3660046149d2565b611e43565b6040805193845260208401929092529082015260600161040f565b6000546104e49073ffffffffffffffffffffffffffffffffffffffff1681565b6104746107f93660046149d2565b612077565b60225461051c9060ff1681565b61042b6108193660046149d2565b61216a565b61042b60095481565b610474610835366004614ae6565b612234565b61042b60075481565b6104026108513660046149d2565b612464565b6104e46108643660046149d2565b6124ec565b61042b60055481565b61042b6108803660046149d2565b73ffffffffffffffffffffffffffffffffffffffff1660009081526025602052604090205490565b61042b60065481565b61042b60035481565b6104746108c8366004614ae6565b61254f565b61042b6108db3660046149d2565b61292b565b6104746108ee366004614c66565b612967565b6104746109013660046149d2565b612b56565b61042b6109143660046149d2565b73ffffffffffffffffffffffffffffffffffffffff166000908152601e602052604090205490565b61047461094a366004614b76565b612d70565b601c5461042b565b610474612e57565b61047461096d3660046149d2565b612f28565b61042b60045481565b61042b600a5481565b61042b600b5481565b61042b61099b366004614a7f565b613088565b6104746109ae366004614cb3565b61319f565b6104746109c1366004614cff565b613375565b610474613524565b606060006109da611715565b60105490915067ffffffffffffffff8111156109f8576109f8614cd0565b604051908082528060200260200182016040528015610a21578160200160208202803683370190505b5073ffffffffffffffffffffffffffffffffffffffff84166000908152601f602052604090205490925015610b475760005b601054811015610b455773ffffffffffffffffffffffffffffffffffffffff84166000818152601860209081526040808320858452825280832054938352601782528083208584529091529020548351670de0b6b3a76400009190859085908110610ac057610ac0614da4565b6020026020010151610ad29190614e02565b73ffffffffffffffffffffffffffffffffffffffff87166000908152601f6020526040902054610b029190614e15565b610b0c9190614e2c565b610b169190614e67565b838281518110610b2857610b28614da4565b602090810291909101015280610b3d81614e7a565b915050610a53565b505b50919050565b60006002805403610bbf576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064015b60405180910390fd5b60028055602254610100900460ff1615610c35576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601260248201527f5769746864726177616c732070617573656400000000000000000000000000006044820152606401610bb6565b610c4133848685613554565b6001600255949350505050565b600654600754600091610c7491610c658286614e15565b610c6f9190614e2c565b613732565b92915050565b60606010805480602002602001604051908101604052809291908181526020018280548015610cdf57602002820191906000526020600020905b815473ffffffffffffffffffffffffffffffffffffffff168152600190910190602001808311610cb4575b5050505050905090565b60005473ffffffffffffffffffffffffffffffffffffffff163314610d90576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602f60248201527f4f6e6c792074686520636f6e7472616374206f776e6572206d6179207065726660448201527f6f726d207468697320616374696f6e00000000000000000000000000000000006064820152608401610bb6565b600180547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff83169081179091556040519081527f906a1c6bd7e3091ea86693dd029a831c19049ce77f1dce2ce0bab1cacbabce229060200160405180910390a150565b60006002805403610e76576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610bb6565b60028055610e87338085854261374a565b60016002559392505050565b60135460609067ffffffffffffffff811115610eb157610eb1614cd0565b604051908082528060200260200182016040528015610eda578160200160208202803683370190505b50905060005b601354811015610f305762093a80610ef782613088565b610f019190614e15565b828281518110610f1357610f13614da4565b602090810291909101015280610f2881614e7a565b915050610ee0565b5090565b73ffffffffffffffffffffffffffffffffffffffff81166000908152602560209081526040808320805482518185028101850190935280835260609492939192909184015b82821015610fdd57838290600052602060002090600502016040518060a00160405290816000820154815260200160018201548152602001600282015481526020016003820154815260200160048201548152505081526020019060010190610f79565b505050509050919050565b73ffffffffffffffffffffffffffffffffffffffff81166000908152602080526040812054600354670de0b6b3a76400009161102391614e15565b610c749190614e2c565b73ffffffffffffffffffffffffffffffffffffffff811660009081526014602052604081205460ff1661106257506000610c74565b73ffffffffffffffffffffffffffffffffffffffff83161580611099575073ffffffffffffffffffffffffffffffffffffffff8216155b156110a657506000610c74565b60005473ffffffffffffffffffffffffffffffffffffffff908116908416036110d157506001610c74565b73ffffffffffffffffffffffffffffffffffffffff8281166000908152600f602052604090205481851691160361110a57506001610c74565b50600092915050565b60008080611120846124ec565b905073ffffffffffffffffffffffffffffffffffffffff8116156111e5576040517f70a0823100000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff8216600482015273c8418af6358ffdda74e09ca9cc3fe03ca6adc5b0906370a0823190602401602060405180830381865afa1580156111bc573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111e09190614eb2565b611287565b6040517f70a0823100000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff8516600482015273c8418af6358ffdda74e09ca9cc3fe03ca6adc5b0906370a0823190602401602060405180830381865afa158015611263573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112879190614eb2565b91506000670de0b6b3a764000073c8418af6358ffdda74e09ca9cc3fe03ca6adc5b073ffffffffffffffffffffffffffffffffffffffff166318160ddd6040518163ffffffff1660e01b8152600401602060405180830381865afa1580156112f3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113179190614eb2565b6113219190614e15565b600954600a546113319086614e15565b61133b9190614e15565b6113459190614e2c565b905060008073ffffffffffffffffffffffffffffffffffffffff8416156113745761136f84611c95565b61137d565b61137d87611650565b905080156113cf5760008161139a670de0b6b3a764000088614e15565b6113a49190614e2c565b9050670de0b6b3a7640000600a54826113bd9190614e15565b6113c79190614e2c565b9250506113d4565b600091505b508082116113e257806113e4565b815b9450600a548511156113f657600a5494505b50505050919050565b60005473ffffffffffffffffffffffffffffffffffffffff163314806114385750738412ebf45bac1b340bbe8f318b928c466c4e39ca33145b61149e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601560248201527f4e6f74206f776e6572206f722074696d656c6f636b00000000000000000000006044820152606401610bb6565b602280547fffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ff00ff166301000000951515959095027fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ff169490941761010093151593909302929092177fffffffffffffffffffffffffffffffffffffffffffffffffffffff00ff00ffff1662010000911515919091027fffffffffffffffffffffffffffffffffffffffffffffffffffffff00ffffffff161764010000000091151591909102179055565b60028054036115d1576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610bb6565b6002805560225462010000900460ff1615611648576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601960248201527f5265776172647320636f6c6c656374696f6e20706175736564000000000000006044820152606401610bb6565b506001600255565b6000670de0b6b3a7640000600b546116678461292b565b6110239190614e15565b60006003602460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166354f0f7d56040518163ffffffff1660e01b8152600401602060405180830381865afa1580156116e2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906117069190614eb2565b6117109190614e2c565b905090565b6060601c54600014806117285750601d54155b15611782576016805480602002602001604051908101604052809291908181526020018280548015610cdf57602002820191906000526020600020905b815481526020019060010190808311611765575050505050905090565b60105467ffffffffffffffff81111561179d5761179d614cd0565b6040519080825280602002602001820160405280156117c6578160200160208202803683370190505b50905060005b601654811015610f3057601d546117e282613088565b6005546117ed613a9e565b6117f79190614e02565b6118019190614e15565b61181390670de0b6b3a7640000614e15565b61181d9190614e2c565b6016828154811061183057611830614da4565b90600052602060002001546118459190614e67565b82828151811061185757611857614da4565b60209081029190910101528061186c81614e7a565b9150506117cc565b73ffffffffffffffffffffffffffffffffffffffff821660009081526025602052604081208054829190849081106118ae576118ae614da4565b600091825260208083206040805160a081018252600590940290910180548452600181015484840181905260028201548584015260038201546060860152600490910154608085015273ffffffffffffffffffffffffffffffffffffffff891685526019909252832054919350111561192c57506020810151611954565b5073ffffffffffffffffffffffffffffffffffffffff84166000908152601960205260409020545b42826060015111611a1457606082015173ffffffffffffffffffffffffffffffffffffffff86166000908152601960205260409020541015611a0b5760008183606001516119a29190614e02565b905060008360600151426119b69190614e02565b905060006119c8610447600285614e2c565b905060006119d68382614e15565b6119e08584614e15565b6119ea9190614e67565b90506119f68385614e67565b611a009082614e2c565b965050505050611a64565b60009250611a64565b600080828460600151611a279190614e02565b90506000428560600151611a3b9190614e02565b90506002611a498284614e67565b611a539190614e2c565b92505050611a6081610c4e565b9350505b8160800151831115611a7857816080015192505b505092915050565b60606002805403611aed576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610bb6565b60028055610e87338484613aac565b60256020528160005260406000208181548110611b1857600080fd5b600091825260209091206005909102018054600182015460028301546003840154600490940154929550909350919085565b60015473ffffffffffffffffffffffffffffffffffffffff163314611bf1576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603560248201527f596f75206d757374206265206e6f6d696e61746564206265666f726520796f7560448201527f2063616e20616363657074206f776e65727368697000000000000000000000006064820152608401610bb6565b6000546001546040805173ffffffffffffffffffffffffffffffffffffffff93841681529290911660208301527fb532073b38c83145e3e5135377a08bf9aab55bc0fd7c1179cd4fb995d2a5159c910160405180910390a160018054600080547fffffffffffffffffffffffff000000000000000000000000000000000000000090811673ffffffffffffffffffffffffffffffffffffffff841617909155169055565b6000670de0b6b3a7640000600b5461166784610fe8565b600054829073ffffffffffffffffffffffffffffffffffffffff16331480611cd95750611cd9338261102d565b611d3f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601460248201527f4e6f74206f776e6572206f7220746b6e206d67720000000000000000000000006044820152606401610bb6565b73ffffffffffffffffffffffffffffffffffffffff831660009081526014602052604090205460ff16808015611d9b575073ffffffffffffffffffffffffffffffffffffffff8481166000908152600f60205260409020541633145b80611dc6575080158015611dc6575060005473ffffffffffffffffffffffffffffffffffffffff1633145b15611ddc57611dd6843385613d7a565b50505050565b6040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601a60248201527f4e6f2076616c696420746f6b656e7320746f207265636f7665720000000000006044820152606401610bb6565b505050565b73ffffffffffffffffffffffffffffffffffffffff81166000908152601f60205260408120549080611e7484611113565b73ffffffffffffffffffffffffffffffffffffffff85166000908152601e602052604081205491935090158015611ece575073ffffffffffffffffffffffffffffffffffffffff85166000908152601f6020526040902054155b80611efe575073ffffffffffffffffffffffffffffffffffffffff85166000908152600c60205260409020548310155b15611f0a575081611f4a565b73ffffffffffffffffffffffffffffffffffffffff85166000908152600c6020526040902054600290611f3d9085614e67565b611f479190614e2c565b90505b6000915060005b73ffffffffffffffffffffffffffffffffffffffff861660009081526025602052604090205481101561206e5773ffffffffffffffffffffffffffffffffffffffff86166000908152602560205260408120805483908110611fb557611fb5614da4565b90600052602060002090600502016040518060a0016040529081600082015481526020016001820154815260200160028201548152602001600382015481526020016004820154815250509050600061200e8884611874565b60408301519091506000670de0b6b3a764000061202b8785614e67565b6120359084614e15565b61203f9190614e2c565b6120499083614e67565b90506120558188614e67565b965050505050808061206690614e7a565b915050611f51565b50509193909250565b60005473ffffffffffffffffffffffffffffffffffffffff163314806120b05750738412ebf45bac1b340bbe8f318b928c466c4e39ca33145b612116576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601560248201527f4e6f74206f776e6572206f722074696d656c6f636b00000000000000000000006044820152606401610bb6565b73ffffffffffffffffffffffffffffffffffffffff166000908152600d6020526040902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00811660ff90911615179055565b6000600354600b5461217c9190614e15565b6040517f70a0823100000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff84166004820152670de0b6b3a764000090819073c8418af6358ffdda74e09ca9cc3fe03ca6adc5b0906370a0823190602401602060405180830381865afa158015612206573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061222a9190614eb2565b6116679190614e15565b600280540361229f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610bb6565b600280553360016122b282826000613eea565b6022546301000000900460ff1615612326576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600e60248201527f5374616b696e67207061757365640000000000000000000000000000000000006044820152606401610bb6565b6000806123333387614044565b9150915060008583604001516123499190614e67565b905060225461237a906601000000000000900473ffffffffffffffffffffffffffffffffffffffff16333089614209565b6040805160a0810182528881526020858101518183015281830184905260608087015190830152608080870151908301523360009081526025909152919091208054849081106123cc576123cc614da4565b9060005260206000209060050201600082015181600001556020820151816001015560408201518160020155606082015181600301556080820151816004015590505061241b3387600161439f565b604080518881526020810188905233917f2640b32e7e5d0fa2a21ea06b22fbd75fda0fda384a895a5fdeef43646de47a0c910160405180910390a2505060016002555050505050565b606060028054036124d1576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610bb6565b600280556124e133836001613aac565b600160025592915050565b73ffffffffffffffffffffffffffffffffffffffff81166000908152600d602052604081205460ff161561251e575090565b5073ffffffffffffffffffffffffffffffffffffffff9081166000908152602160205260409020541690565b919050565b60028054036125ba576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610bb6565b600280553360016125cd82826000613eea565b6022546301000000900460ff1615612641576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600e60248201527f5374616b696e67207061757365640000000000000000000000000000000000006044820152606401610bb6565b60008061264e3387614044565b915091504285116126bb576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601560248201527f4d75737420626520696e207468652066757475726500000000000000000000006044820152606401610bb6565b6000428360600151116126cf5760006126df565b4283606001516126df9190614e02565b905060006126ed4288614e02565b9050818111612758576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601860248201527f43616e6e6f742073686f7274656e206c6f636b2074696d6500000000000000006044820152606401610bb6565b6008548110156127c4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601a60248201527f4d696e696d756d207374616b652074696d65206e6f74206d65740000000000006044820152606401610bb6565b600754811115612830576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601b60248201527f547279696e6720746f206c6f636b20666f7220746f6f206c6f6e6700000000006044820152606401610bb6565b6040518060a001604052808981526020014281526020018560400151815260200188815260200161286083610c4e565b905233600090815260256020526040902080548590811061288357612883614da4565b906000526020600020906005020160008201518160000155602082015181600101556040820151816002015560608201518160030155608082015181600401559050506128d33360006001613eea565b6040805189815260208101839052428183015260608101899052905133917fc2cf1aae6decacbc52f96b4e4fec96d4ebab5236e4ed987165537bc463014a43919081900360800190a250506001600255505050505050565b73ffffffffffffffffffffffffffffffffffffffff81166000908152601e6020526040812054600354670de0b6b3a76400009161102391614e15565b600054849073ffffffffffffffffffffffffffffffffffffffff163314806129945750612994338261102d565b6129fa576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601460248201527f4e6f74206f776e6572206f7220746b6e206d67720000000000000000000000006044820152606401610bb6565b73ffffffffffffffffffffffffffffffffffffffff8516600090815260156020526040902054601380548692908110612a3557612a35614da4565b9060005260206000200181905550826011601560008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205481548110612a9657612a96614da4565b600091825260208083209190910180547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff948516179055918716815260159091526040902054601280548492908110612b0757612b07614da4565b9060005260206000200160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505050505050565b73ffffffffffffffffffffffffffffffffffffffff81166000908152600d602052604090205460ff16612be5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600d60248201527f496e76616c69642070726f7879000000000000000000000000000000000000006044820152606401610bb6565b73ffffffffffffffffffffffffffffffffffffffff81166000908152600e6020908152604080832033845290915290205460ff16612c7f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f50726f787920686173206e6f7420616c6c6f77656420796f75207965740000006044820152606401610bb6565b3360009081526021602052604090205473ffffffffffffffffffffffffffffffffffffffff168015612cf357336000908152601e602090815260408083205473ffffffffffffffffffffffffffffffffffffffff851684529180528220805491929091612ced908490614e02565b90915550505b33600090815260216020908152604080832080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff8716908117909155601e8352818420549084529180528220805491929091612d67908490614e67565b90915550505050565b600054829073ffffffffffffffffffffffffffffffffffffffff16331480612d9d5750612d9d338261102d565b612e03576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601460248201527f4e6f74206f776e6572206f7220746b6e206d67720000000000000000000000006044820152606401610bb6565b5073ffffffffffffffffffffffffffffffffffffffff9182166000908152600f6020526040902080547fffffffffffffffffffffffff00000000000000000000000000000000000000001691909216179055565b60005473ffffffffffffffffffffffffffffffffffffffff16331480612e905750738412ebf45bac1b340bbe8f318b928c466c4e39ca33145b612ef6576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601560248201527f4e6f74206f776e6572206f722074696d656c6f636b00000000000000000000006044820152606401610bb6565b602280547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00811660ff90911615179055565b336000908152600d602052604090205460ff16612fa1576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600d60248201527f496e76616c69642070726f7879000000000000000000000000000000000000006044820152606401610bb6565b336000818152600e6020908152604080832073ffffffffffffffffffffffffffffffffffffffff8681168552908352818420805460ff8116157fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0090911617905560219092529091205416036130855773ffffffffffffffffffffffffffffffffffffffff8116600090815260216020908152604080832080547fffffffffffffffffffffffff0000000000000000000000000000000000000000169055601e825280832054338452918052822080549192909161307f908490614e02565b90915550505b50565b6000806011838154811061309e5761309e614da4565b60009182526020909120015473ffffffffffffffffffffffffffffffffffffffff169050801561317957670de0b6b3a7640000601a84815481106130e4576130e4614da4565b90600052602060002001548273ffffffffffffffffffffffffffffffffffffffff16630a3be7576040518163ffffffff1660e01b8152600401602060405180830381865afa15801561313a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061315e9190614eb2565b6131689190614e15565b6131729190614e2c565b9150610b47565b6013838154811061318c5761318c614da4565b9060005260206000200154915050919050565b60005b601154811015613371576000601182815481106131c1576131c1614da4565b60009182526020909120015473ffffffffffffffffffffffffffffffffffffffff169050801561335e5782806132135750601b828154811061320557613205614da4565b906000526020600020015442115b1561335e576040517f6472eee100000000000000000000000000000000000000000000000000000000815230600482015242602482015273ffffffffffffffffffffffffffffffffffffffff821690636472eee1906044016020604051808303816000875af115801561328a573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906132ae9190614eb2565b601a83815481106132c1576132c1614da4565b90600052602060002001819055508073ffffffffffffffffffffffffffffffffffffffff1663513872bd6040518163ffffffff1660e01b8152600401602060405180830381865afa15801561331a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061333e9190614eb2565b601b838154811061335157613351614da4565b6000918252602090912001555b508061336981614e7a565b9150506131a2565b5050565b60005473ffffffffffffffffffffffffffffffffffffffff163314806133ae5750738412ebf45bac1b340bbe8f318b928c466c4e39ca33145b613414576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601560248201527f4e6f74206f776e6572206f722074696d656c6f636b00000000000000000000006044820152606401610bb6565b8051670de0b6b3a76400001115613487576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601360248201527f4d757374206265203e3d204d554c2050524543000000000000000000000000006044820152606401610bb6565b6080810151600111156134f6576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600c60248201527f4d757374206265203e3d203100000000000000000000000000000000000000006044820152606401610bb6565b80516006556020810151600a556040810151600b556060810151600955608081015160075560a00151600855565b61352e600061319f565b613536611671565b600355600454421061354c5761354a614512565b565b61354a61483b565b6000818061356d5750602254640100000000900460ff16155b156135845761357e85856001613aac565b50613591565b6135918560016000613eea565b60008061359e8786614044565b915091508160600151421015806135bc575060225460ff1615156001145b613622576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601660248201527f5374616b65206973207374696c6c206c6f636b656421000000000000000000006044820152606401610bb6565b604082015180156137275760225461365b906601000000000000900473ffffffffffffffffffffffffffffffffffffffff168883613d7a565b73ffffffffffffffffffffffffffffffffffffffff8816600090815260256020526040902080548390811061369257613692614da4565b6000918252602082206005909102018181556001810182905560028101829055600381018290556004018190556136cc908990839061439f565b604080518281526020810188905273ffffffffffffffffffffffffffffffffffffffff898116828401529151918a16917f1d9308f6b22a2754a1c622bb30889e8f8f956c83e524d039e9d65d5f052eb9089181900360600190a25b979650505050505050565b60008183106137415781613743565b825b9392505050565b600085600161375b82826000613eea565b6022546301000000900460ff16156137cf576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600e60248201527f5374616b696e67207061757365640000000000000000000000000000000000006044820152606401610bb6565b60085485101561383b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601a60248201527f4d696e696d756d207374616b652074696d65206e6f74206d65740000000000006044820152606401610bb6565b6007548511156138a7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601b60248201527f547279696e6720746f206c6f636b20666f7220746f6f206c6f6e6700000000006044820152606401610bb6565b6022546138d6906601000000000000900473ffffffffffffffffffffffffffffffffffffffff16883089614209565b60006138e186610c4e565b73ffffffffffffffffffffffffffffffffffffffff8a166000908152601e602090815260408083205490517fffffffffffffffffffffffffffffffffffffffff00000000000000000000000060608f901b169281019290925260348201899052605482018b9052607482015291925090609401604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0818403018152828252805160209182012073ffffffffffffffffffffffffffffffffffffffff8e1660009081526025835283902060a0850184528185529184018a90529183018b905290925090606081016139d48a8a614e67565b81526020908101859052825460018181018555600094855293829020835160059092020190815590820151818401556040820151600282015560608201516003820155608090910151600490910155613a30908b908a9061439f565b604080518981526020810189905290810182905273ffffffffffffffffffffffffffffffffffffffff8a811660608301528b16907ff400e72e69ef4402819dfc57eeddc66f5eb69bf405e0e8098b1946ec1ac14a229060800160405180910390a29998505050505050505050565b600061171042600454613732565b6060836001613abd82826000613eea565b73ffffffffffffffffffffffffffffffffffffffff8616600090815260196020526040902042905560225462010000900460ff1615613b58576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601960248201527f5265776172647320636f6c6c656374696f6e20706175736564000000000000006044820152606401610bb6565b60105467ffffffffffffffff811115613b7357613b73614cd0565b604051908082528060200260200182016040528015613b9c578160200160208202803683370190505b50925060005b601054811015613d705773ffffffffffffffffffffffffffffffffffffffff871660009081526018602090815260408083208484529091529020548451859083908110613bf157613bf1614da4565b60209081029190910181019190915273ffffffffffffffffffffffffffffffffffffffff881660009081526018825260408082208483529092529081208190558451859083908110613c4557613c45614da4565b60200260200101511115613d5e57613cb460108281548110613c6957613c69614da4565b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1687868481518110613ca757613ca7614da4565b6020026020010151613d7a565b8673ffffffffffffffffffffffffffffffffffffffff167f1d2f2ca53af5d2f333bd32fdd45f9c52ad8ebe31414f7792912077fcb3876dff858381518110613cfe57613cfe614da4565b602002602001015160108481548110613d1957613d19614da4565b600091825260209182902001546040805193845273ffffffffffffffffffffffffffffffffffffffff918216928401929092528a169082015260600160405180910390a25b80613d6881614e7a565b915050613ba2565b5050509392505050565b6040805173ffffffffffffffffffffffffffffffffffffffff8481166024830152604480830185905283518084039091018152606490920183526020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fa9059cbb000000000000000000000000000000000000000000000000000000001790529151600092839290871691613e119190614eef565b6000604051808303816000865af19150503d8060008114613e4e576040519150601f19603f3d011682016040523d82523d6000602084013e613e53565b606091505b5091509150818015613e7d575080511580613e7d575080806020019051810190613e7d9190614f0b565b613ee3576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5472616e7366657248656c7065723a205452414e534645525f4641494c4544006044820152606401610bb6565b5050505050565b8115613ef857613ef8613524565b8015613f2e57613f0783611113565b73ffffffffffffffffffffffffffffffffffffffff84166000908152600c60205260409020555b73ffffffffffffffffffffffffffffffffffffffff831615611e3e576000806000613f5886611e43565b925092509250613f67866148ae565b73ffffffffffffffffffffffffffffffffffffffff86166000908152600c60205260409020829055828110613feb576000613fa28483614e02565b905080601d54613fb29190614e67565b601d55613fbf8185614e67565b73ffffffffffffffffffffffffffffffffffffffff88166000908152601f60205260409020555061403c565b6000613ff78285614e02565b905080601d546140079190614e02565b601d556140148185614e02565b73ffffffffffffffffffffffffffffffffffffffff88166000908152601f6020526040902055505b505050505050565b6140796040518060a0016040528060008019168152602001600081526020016000815260200160008152602001600081525090565b6000805b73ffffffffffffffffffffffffffffffffffffffff85166000908152602560205260409020548110156141975773ffffffffffffffffffffffffffffffffffffffff851660009081526025602052604090208054829081106140e1576140e1614da4565b90600052602060002090600502016000015484036141855773ffffffffffffffffffffffffffffffffffffffff8516600090815260256020526040902080548290811061413057614130614da4565b90600052602060002090600502016040518060a0016040529081600082015481526020016001820154815260200160028201548152602001600382015481526020016004820154815250509250809150614197565b8061418f81614e7a565b91505061407d565b5081518314614202576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600f60248201527f5374616b65206e6f7420666f756e6400000000000000000000000000000000006044820152606401610bb6565b9250929050565b6040805173ffffffffffffffffffffffffffffffffffffffff85811660248301528481166044830152606480830185905283518084039091018152608490920183526020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167f23b872dd0000000000000000000000000000000000000000000000000000000017905291516000928392908816916142a89190614eef565b6000604051808303816000865af19150503d80600081146142e5576040519150601f19603f3d011682016040523d82523d6000602084013e6142ea565b606091505b50915091508180156143145750805115806143145750808060200190518101906143149190614f0b565b61403c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152602060048201526024808201527f5472616e7366657248656c7065723a205452414e534645525f46524f4d5f464160448201527f494c4544000000000000000000000000000000000000000000000000000000006064820152608401610bb6565b60006143aa846124ec565b9050811561445e5782601c60008282546143c49190614e67565b909155505073ffffffffffffffffffffffffffffffffffffffff84166000908152601e6020526040812080548592906143fe908490614e67565b909155505073ffffffffffffffffffffffffffffffffffffffff8116156144595773ffffffffffffffffffffffffffffffffffffffff8116600090815260208052604081208054859290614453908490614e67565b90915550505b614505565b82601c60008282546144709190614e02565b909155505073ffffffffffffffffffffffffffffffffffffffff84166000908152601e6020526040812080548592906144aa908490614e02565b909155505073ffffffffffffffffffffffffffffffffffffffff8116156145055773ffffffffffffffffffffffffffffffffffffffff81166000908152602080526040812080548592906144ff908490614e02565b90915550505b611dd68460006001613eea565b61451a61483b565b60005b60125481101561460b5760006012828154811061453c5761453c614da4565b60009182526020909120015473ffffffffffffffffffffffffffffffffffffffff16905080156145f8576040517f092193ab00000000000000000000000000000000000000000000000000000000815230600482015273ffffffffffffffffffffffffffffffffffffffff82169063092193ab9060240160408051808303816000875af11580156145d1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906145f59190614f28565b50505b508061460381614e7a565b91505061451d565b50600062093a80600454426146209190614e02565b61462a9190614e2c565b905060005b60105481101561480d576010818154811061464c5761464c614da4565b6000918252602090912001546040517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015273ffffffffffffffffffffffffffffffffffffffff909116906370a0823190602401602060405180830381865afa1580156146c3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906146e79190614eb2565b6146f2836001614e67565b62093a806146ff84613088565b6147099190614e15565b6147139190614e15565b11156010828154811061472857614728614da4565b60009182526020918290200154604080517f4e6f7420656e6f7567682072657761726420746f6b656e7320617661696c6162938101939093527f6c653a20000000000000000000000000000000000000000000000000000000009083015260601b7fffffffffffffffffffffffffffffffffffffffff000000000000000000000000166044820152605801604051602081830303815290604052906147fa576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610bb69190614f4c565b508061480581614e7a565b91505061462f565b5062093a8061481d826001614e67565b6148279190614e15565b6004546148349190614e67565b6004556130855b6000614845611715565b905060005b60165481101561489f5781818151811061486657614866614da4565b60200260200101516016828154811061488157614881614da4565b6000918252602090912001558061489781614e7a565b91505061484a565b506148a8613a9e565b60055550565b73ffffffffffffffffffffffffffffffffffffffff8116156130855760006148d5826109ce565b905060005b8151811015614943578181815181106148f5576148f5614da4565b60209081029190910181015173ffffffffffffffffffffffffffffffffffffffff8516600090815260188352604080822085835290935291909120558061493b81614e7a565b9150506148da565b5060005b8151811015611e3e576016818154811061496357614963614da4565b600091825260208083209091015473ffffffffffffffffffffffffffffffffffffffff86168352601782526040808420858552909252912055806149a681614e7a565b915050614947565b803573ffffffffffffffffffffffffffffffffffffffff8116811461254a57600080fd5b6000602082840312156149e457600080fd5b613743826149ae565b6020808252825182820181905260009190848201906040850190845b81811015614a2557835183529284019291840191600101614a09565b50909695505050505050565b801515811461308557600080fd5b600080600060608486031215614a5457600080fd5b83359250614a64602085016149ae565b91506040840135614a7481614a31565b809150509250925092565b600060208284031215614a9157600080fd5b5035919050565b6020808252825182820181905260009190848201906040850190845b81811015614a2557835173ffffffffffffffffffffffffffffffffffffffff1683529284019291840191600101614ab4565b60008060408385031215614af957600080fd5b50508035926020909101359150565b602080825282518282018190526000919060409081850190868401855b82811015614b695781518051855286810151878601528581015186860152606080820151908601526080908101519085015260a09093019290850190600101614b25565b5091979650505050505050565b60008060408385031215614b8957600080fd5b614b92836149ae565b9150614ba0602084016149ae565b90509250929050565b60008060008060808587031215614bbf57600080fd5b8435614bca81614a31565b93506020850135614bda81614a31565b92506040850135614bea81614a31565b91506060850135614bfa81614a31565b939692955090935050565b60008060408385031215614c1857600080fd5b614c21836149ae565b946020939093013593505050565b60008060408385031215614c4257600080fd5b614c4b836149ae565b91506020830135614c5b81614a31565b809150509250929050565b60008060008060808587031215614c7c57600080fd5b614c85856149ae565b935060208501359250614c9a604086016149ae565b9150614ca8606086016149ae565b905092959194509250565b600060208284031215614cc557600080fd5b813561374381614a31565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600060c08284031215614d1157600080fd5b82601f830112614d2057600080fd5b60405160c0810181811067ffffffffffffffff82111715614d6a577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040528060c0840185811115614d7f57600080fd5b845b81811015614d99578035835260209283019201614d81565b509195945050505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b81810381811115610c7457610c74614dd3565b8082028115828204841417610c7457610c74614dd3565b600082614e62577f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b500490565b80820180821115610c7457610c74614dd3565b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8203614eab57614eab614dd3565b5060010190565b600060208284031215614ec457600080fd5b5051919050565b60005b83811015614ee6578181015183820152602001614ece565b50506000910152565b60008251614f01818460208701614ecb565b9190910192915050565b600060208284031215614f1d57600080fd5b815161374381614a31565b60008060408385031215614f3b57600080fd5b505080516020909101519092909150565b6020815260008251806020840152614f6b816040850160208701614ecb565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016919091016040019291505056fea2646970667358221220077ef194b28ffd7d7f0dd7d3ea1ac9ffbad71048a19e3206ffedd246549bdaef64736f6c63430008130033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000b1748c79709f4ba2dd82834b8c82d4a505003f2700000000000000000000000000000000000000000000000000000000000000e0000000000000000000000000000000000000000000000000000000000000016000000000000000000000000000000000000000000000000000000000000001e0000000000000000000000000000000000000000000000000000000000000026000000000000000000000000000000000000000000000000000000000000002e0000000000000000000000000ad059ccf041e344ea52a3152bbf654c605d6847300000000000000000000000000000000000000000000000000000000000000030000000000000000000000003432b6a60d23ca0dfca7761b7ab56459d9c964d0000000000000000000000000d533a949740bb3306d119cc777fa900ba034cd520000000000000000000000004e3fbd56cd56c3e72c1403e103b45db9da5b9d2b0000000000000000000000000000000000000000000000000000000000000003000000000000000000000000b1748c79709f4ba2dd82834b8c82d4a505003f270000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000030000000000000000000000000000000000000000000000000000001af2af8c840000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000030000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003000000000000000000000000278dc748eda1d8efef1adfb518542612b49fcd3400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
-----Decoded View---------------
Arg [0] : _owner (address): 0xB1748C79709f4Ba2Dd82834B8c82D4a505003f27
Arg [1] : _rewardTokens (address[]): 0x3432B6A60D23Ca0dFCa7761B7ab56459D9C964D0,0xD533a949740bb3306d119CC777fa900bA034cd52,0x4e3FBD56CD56c3e72c1403e103b45Db9da5B9D2B
Arg [2] : _rewardManagers (address[]): 0xB1748C79709f4Ba2Dd82834B8c82D4a505003f27,0x0000000000000000000000000000000000000000,0x0000000000000000000000000000000000000000
Arg [3] : _rewardRates (uint256[]): 115740740740,0,0
Arg [4] : _gaugeControllers (address[]): 0x0000000000000000000000000000000000000000,0x0000000000000000000000000000000000000000,0x0000000000000000000000000000000000000000
Arg [5] : _rewardDistributors (address[]): 0x278dC748edA1d8eFEf1aDFB518542612b49Fcd34,0x0000000000000000000000000000000000000000,0x0000000000000000000000000000000000000000
Arg [6] : _stakingToken (address): 0xAD059ccF041e344eA52A3152Bbf654c605d68473
-----Encoded View---------------
27 Constructor Arguments found :
Arg [0] : 000000000000000000000000b1748c79709f4ba2dd82834b8c82d4a505003f27
Arg [1] : 00000000000000000000000000000000000000000000000000000000000000e0
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000160
Arg [3] : 00000000000000000000000000000000000000000000000000000000000001e0
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000260
Arg [5] : 00000000000000000000000000000000000000000000000000000000000002e0
Arg [6] : 000000000000000000000000ad059ccf041e344ea52a3152bbf654c605d68473
Arg [7] : 0000000000000000000000000000000000000000000000000000000000000003
Arg [8] : 0000000000000000000000003432b6a60d23ca0dfca7761b7ab56459d9c964d0
Arg [9] : 000000000000000000000000d533a949740bb3306d119cc777fa900ba034cd52
Arg [10] : 0000000000000000000000004e3fbd56cd56c3e72c1403e103b45db9da5b9d2b
Arg [11] : 0000000000000000000000000000000000000000000000000000000000000003
Arg [12] : 000000000000000000000000b1748c79709f4ba2dd82834b8c82d4a505003f27
Arg [13] : 0000000000000000000000000000000000000000000000000000000000000000
Arg [14] : 0000000000000000000000000000000000000000000000000000000000000000
Arg [15] : 0000000000000000000000000000000000000000000000000000000000000003
Arg [16] : 0000000000000000000000000000000000000000000000000000001af2af8c84
Arg [17] : 0000000000000000000000000000000000000000000000000000000000000000
Arg [18] : 0000000000000000000000000000000000000000000000000000000000000000
Arg [19] : 0000000000000000000000000000000000000000000000000000000000000003
Arg [20] : 0000000000000000000000000000000000000000000000000000000000000000
Arg [21] : 0000000000000000000000000000000000000000000000000000000000000000
Arg [22] : 0000000000000000000000000000000000000000000000000000000000000000
Arg [23] : 0000000000000000000000000000000000000000000000000000000000000003
Arg [24] : 000000000000000000000000278dc748eda1d8efef1adfb518542612b49fcd34
Arg [25] : 0000000000000000000000000000000000000000000000000000000000000000
Arg [26] : 0000000000000000000000000000000000000000000000000000000000000000
Deployed Bytecode Sourcemap
139455:2144:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;81802:529;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;130493:294;;;;;;:::i;:::-;;:::i;:::-;;;1700:25:1;;;1688:2;1673:18;130493:294:0;1554:177:1;84700:222:0;;;;;;:::i;:::-;;:::i;79804:109::-;;;:::i;:::-;;;;;;;:::i;65613:141::-;;;;;;:::i;:::-;;:::i;:::-;;128577:190;;;;;;:::i;:::-;;:::i;82510:339::-;;;:::i;123049:133::-;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;85532:179::-;;;;;;:::i;:::-;;:::i;112105:45::-;;;;;;;;;;;;4271:42:1;4259:55;;;4241:74;;4229:2;4214:18;112105:45:0;4058:263:1;79216:459:0;;;;;;:::i;:::-;;:::i;:::-;;;4756:14:1;;4749:22;4731:41;;4719:2;4704:18;79216:459:0;4591:187:1;76061:60:0;;;;;;:::i;:::-;;;;;;;;;;;;;;;;88059:1752;;;;;;:::i;:::-;;:::i;103491:439::-;;;;;;:::i;:::-;;:::i;83911:127::-;;;;;;:::i;:::-;84004:26;;83977:7;84004:26;;;:17;:26;;;;;;;83911:127;74897:48;;74939:6;74897:48;;94546:238;;;;;;:::i;:::-;;:::i;74486:49::-;;;;;;:::i;:::-;;;;;;;;;;;;;;;;111973:46;;;;;;;;;86694:181;;;;;;:::i;:::-;;:::i;65381:29::-;;;;;;;;;140843:753;;;:::i;83519:111::-;83600:22;;83519:111;;74807:55;;;;;;:::i;:::-;;;;;;;;;;;;;;75289:54;;;;;;:::i;:::-;;;;;;;;;;;;;;73738:32;;;;;;80809:681;;;:::i;111882:45::-;;;;;;;;;;;;118240:2692;;;;;;:::i;:::-;;:::i;95732:206::-;;;;;;:::i;:::-;;:::i;112854:53::-;;;;;;:::i;:::-;;:::i;:::-;;;;6769:25:1;;;6825:2;6810:18;;6803:34;;;;6853:18;;;6846:34;;;;6911:2;6896:18;;6889:34;6954:3;6939:19;;6932:35;6756:3;6741:19;112854:53:0;6510:463:1;65762:271:0;;;:::i;75856:52::-;;;;;;:::i;:::-;;;;;;;;;;;;;;87071:199;;;;;;:::i;:::-;;:::i;104726:818::-;;;;;;:::i;:::-;;:::i;120993:1961::-;;;;;;:::i;:::-;;:::i;:::-;;;;7180:25:1;;;7236:2;7221:18;;7214:34;;;;7264:18;;;7257:34;7168:2;7153:18;120993:1961:0;6978:319:1;65354:20:0;;;;;;;;;104330:161;;;;;;:::i;:::-;;:::i;76183:26::-;;;;;;;;;85988:224;;;;;;:::i;:::-;;:::i;73810:55::-;;;;;;125808:1111;;;;;;:::i;:::-;;:::i;73583:62::-;;;;;;95270:172;;;;;;:::i;:::-;;:::i;87423:444::-;;;;;;:::i;:::-;;:::i;73429:29::-;;;;;;123258:133;;;;;;:::i;:::-;123355:21;;123328:7;123355:21;;;:12;:21;;;;;:28;;123258:133;73509:50;;;;;;73102:30;;;;;;126973:1469;;;;;;:::i;:::-;;:::i;85157:166::-;;;;;;:::i;:::-;;:::i;107519:483::-;;;;;;:::i;:::-;;:::i;90831:800::-;;;;;;:::i;:::-;;:::i;83277:128::-;;;;;;:::i;:::-;83371:26;;83344:7;83371:26;;;:17;:26;;;;;;;83277:128;108322:207;;;;;;:::i;:::-;;:::i;83012:113::-;83094:23;;83012:113;;104094:97;;;:::i;90065:610::-;;;;;;:::i;:::-;;:::i;73322:27::-;;;;;;73948:51;;;;;;74024:59;;;;;;80287:452;;;;;;:::i;:::-;;:::i;101666:761::-;;;;;;:::i;:::-;;:::i;106007:958::-;;;;;;:::i;:::-;;:::i;102526:363::-;;;:::i;81802:529::-;81856:27;81896;81926:17;:15;:17::i;:::-;81981:12;:19;81896:47;;-1:-1:-1;81967:34:0;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;81967:34:0;-1:-1:-1;82018:26:0;;;82047:1;82018:26;;;:17;:26;;;;;;81954:47;;-1:-1:-1;82018:30:0;82014:310;;82069:9;82064:249;82088:12;:19;82084:23;;82064:249;;;82278:16;;;;;;;:7;:16;;;;;;;;:19;;;;;;;;;82197:32;;;:23;:32;;;;;:35;;;;;;;;;82181:13;;82237:4;;82197:35;82181:10;;82295:1;;82181:13;;;;;;:::i;:::-;;;;;;;:51;;;;:::i;:::-;82151:26;;;;;;;:17;:26;;;;;;:82;;;;:::i;:::-;82150:91;;;;:::i;:::-;82149:148;;;;:::i;:::-;82133:10;82144:1;82133:13;;;;;;;;:::i;:::-;;;;;;;;;;:164;82109:3;;;;:::i;:::-;;;;82064:249;;;;82014:310;81885:446;81802:529;;;:::o;130493:294::-;130613:7;69630:1;70236:7;;:19;70228:63;;;;;;;10813:2:1;70228:63:0;;;10795:21:1;10852:2;10832:18;;;10825:30;10891:33;10871:18;;;10864:61;10942:18;;70228:63:0;;;;;;;;;69630:1;70369:18;;130641:17:::1;::::0;::::1;::::0;::::1;;;:26;130633:57;;;::::0;::::1;::::0;;11173:2:1;130633:57:0::1;::::0;::::1;11155:21:1::0;11212:2;11192:18;;;11185:30;11251:20;11231:18;;;11224:48;11289:18;;130633:57:0::1;10971:342:1::0;130633:57:0::1;130708:71;130724:10;130736:19;130757:6;130765:13;130708:15;:71::i;:::-;69586:1:::0;70548:7;:22;130701:78;130493:294;-1:-1:-1;;;;130493:294:0:o;84700:222::-;84809:19;;84874:28;;84759:7;;84786:127;;84844:26;84809:19;84844:4;:26;:::i;:::-;84843:59;;;;:::i;:::-;84786:8;:127::i;:::-;84779:134;84700:222;-1:-1:-1;;84700:222:0:o;79804:109::-;79857:16;79893:12;79886:19;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;79804:109;:::o;65613:141::-;66093:5;;;;66079:10;:19;66071:79;;;;;;;11520:2:1;66071:79:0;;;11502:21:1;11559:2;11539:18;;;11532:30;11598:34;11578:18;;;11571:62;11669:17;11649:18;;;11642:45;11704:19;;66071:79:0;11318:411:1;66071:79:0;65685:14:::1;:23:::0;;;::::1;;::::0;::::1;::::0;;::::1;::::0;;;65724:22:::1;::::0;4241:74:1;;;65724:22:0::1;::::0;4229:2:1;4214:18;65724:22:0::1;;;;;;;65613:141:::0;:::o;128577:190::-;128662:7;69630:1;70236:7;;:19;70228:63;;;;;;;10813:2:1;70228:63:0;;;10795:21:1;10852:2;10832:18;;;10825:30;10891:33;10871:18;;;10864:61;10942:18;;70228:63:0;10611:355:1;70228:63:0;69630:1;70369:18;;128689:70:::1;128702:10;::::0;128726:9;128737:4;128743:15:::1;128689:12;:70::i;:::-;69586:1:::0;70548:7;:22;128682:77;128577:190;-1:-1:-1;;;128577:190:0:o;82510:339::-;82660:17;:24;82565:41;;82646:39;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;82646:39:0;;82619:66;;82703:9;82698:144;82722:17;:24;82718:28;;82698:144;;;74939:6;82798:14;82810:1;82798:11;:14::i;:::-;:32;;;;:::i;:::-;82768:24;82793:1;82768:27;;;;;;;;:::i;:::-;;;;;;;;;;:62;82748:3;;;;:::i;:::-;;;;82698:144;;;;82510:339;:::o;123049:133::-;123153:21;;;;;;;:12;:21;;;;;;;;123146:28;;;;;;;;;;;;;;;;;123113:20;;123146:28;;123153:21;;123146:28;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;123049:133;;;:::o;85532:179::-;85647:32;;;85601:7;85647:32;;;:17;:32;;;;;;85629:15;;73230:4;;85629:50;;;:::i;:::-;85628:75;;;;:::i;79216:459::-;79333:32;;;79312:4;79333:32;;;:13;:32;;;;;;;;79328:297;;-1:-1:-1;79374:5:0;79367:12;;79328:297;79399:25;;;;;:60;;-1:-1:-1;79428:31:0;;;;79399:60;79395:230;;;-1:-1:-1;79468:5:0;79461:12;;79395:230;79508:5;;;;;;79493:20;;;;79489:136;;-1:-1:-1;79522:4:0;79515:11;;79489:136;79564:48;:33;;;;;;;:14;:33;;;;;;:48;;;:33;;:48;79560:65;;-1:-1:-1;79621:4:0;79614:11;;79560:65;-1:-1:-1;79661:5:0;79216:459;;;;:::o;88059:1752::-;88122:24;;;88283:20;88295:7;88283:11;:20::i;:::-;88263:40;-1:-1:-1;88334:23:0;;;;88333:81;;88388:26;;;;;4271:42:1;4259:55;;88388:26:0;;;4241:74:1;72837:42:0;;88388:15;;4214:18:1;;88388:26:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;88333:81;;;88361:24;;;;;4271:42:1;4259:55;;88361:24:0;;;4241:74:1;72837:42:0;;88361:15;;4214:18:1;;88361:24:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;88314:100;;88520:19;73230:4;72837:42;88644:17;;;:19;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:42;;;;:::i;:::-;88585:24;;88562:20;;88543:39;;:16;:39;:::i;:::-;:66;;;;:::i;:::-;88542:145;;;;:::i;:::-;88520:167;-1:-1:-1;88796:19:0;;89011:23;;;;89010:94;;89069:35;89094:9;89069:24;:35::i;:::-;89010:94;;;89038:28;89058:7;89038:19;:28::i;:::-;88981:123;-1:-1:-1;89125:30:0;;89121:323;;89176:27;89250:26;89207:39;73230:4;89207:16;:39;:::i;:::-;89206:70;;;;:::i;:::-;89176:100;;73230:4;89350:20;;89328:19;:42;;;;:::i;:::-;89327:67;;;;:::i;:::-;89313:81;;89156:254;89121:323;;;89443:1;89429:15;;89121:323;88826:699;89612:11;89598;:25;:53;;89640:11;89598:53;;;89626:11;89598:53;89578:74;;89742:20;;89723:16;:39;89719:84;;;89783:20;;89764:39;;89719:84;88148:1663;;;;88059:1752;;;:::o;103491:439::-;76705:5;;;;76691:10;:19;;:79;;-1:-1:-1;76728:42:0;76714:10;:56;76691:79;76683:113;;;;;;;12125:2:1;76683:113:0;;;12107:21:1;12164:2;12144:18;;;12137:30;12203:23;12183:18;;;12176:51;12244:18;;76683:113:0;11923:345:1;76683:113:0;103703:13:::1;:30:::0;;103744:38;;103703:30;;::::1;;::::0;;;::::1;103744:38:::0;;;;;;103703:30:::1;103744:38:::0;::::1;;::::0;;;::::1;::::0;;;::::1;103854:68:::0;;103793:50;;::::1;;::::0;;;::::1;103854:68:::0;;;;;::::1;;::::0;;;::::1;;::::0;;103491:439::o;94546:238::-;69630:1;70236:7;;:19;70228:63;;;;;;;10813:2:1;70228:63:0;;;10795:21:1;10852:2;10832:18;;;10825:30;10891:33;10871:18;;;10864:61;10942:18;;70228:63:0;10611:355:1;70228:63:0;69630:1;70369:18;;94643:23:::1;::::0;;;::::1;;;:32;94635:70;;;::::0;::::1;::::0;;12475:2:1;94635:70:0::1;::::0;::::1;12457:21:1::0;12514:2;12494:18;;;12487:30;12553:27;12533:18;;;12526:55;12598:18;;94635:70:0::1;12273:349:1::0;94635:70:0::1;-1:-1:-1::0;69586:1:0;70548:7;:22;94546:238::o;86694:181::-;86761:7;73230:4;86815:28;;86789:23;86804:7;86789:14;:23::i;:::-;:54;;;;:::i;140843:753::-;140899:25;141573:1;141550:9;;;;;;;;;;;:18;;;:20;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:24;;;;:::i;:::-;141530:44;;140843:753;:::o;80809:681::-;80857:41;80915:23;;80942:1;80915:28;:59;;;-1:-1:-1;80947:22:0;;:27;80915:59;80911:572;;;80998:21;80991:28;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;80809:681;:::o;80911:572::-;81102:12;:19;81088:34;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;81088:34:0;;81061:61;;81142:9;81137:289;81161:21;:28;81157:32;;81137:289;;;81369:22;;81344:14;81356:1;81344:11;:14::i;:::-;81326;;81297:26;:24;:26::i;:::-;:43;;;;:::i;:::-;81296:62;;;;:::i;:::-;:69;;81361:4;81296:69;:::i;:::-;81295:96;;;;:::i;:::-;81245:21;81267:1;81245:24;;;;;;;;:::i;:::-;;;;;;;;;:165;;;;:::i;:::-;81215:24;81240:1;81215:27;;;;;;;;:::i;:::-;;;;;;;;;;:195;81191:3;;;;:::i;:::-;;;;81137:289;;118240:2692;118431:21;;;118329:32;118431:21;;;:12;:21;;;;;:32;;118329;;118431:21;118453:9;;118431:32;;;;;;:::i;:::-;;;;;;;;;118400:63;;;;;;;;118431:32;;;;;;;118400:63;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;118646:28;;;;;:19;:28;;;;;;118400:63;;-1:-1:-1;;118642:224:0;;;-1:-1:-1;118739:25:0;;;;118642:224;;;-1:-1:-1;118826:28:0;;;;;;;:19;:28;;;;;;118642:224;118955:15;118925:9;:26;;;:45;118921:1802;;119150:26;;;;119119:28;;;;;;;:19;:28;;;;;;:57;119115:1087;;;119196:26;119254:17;119225:9;:26;;;:46;;;;:::i;:::-;119196:75;;119290:25;119336:9;:26;;;119318:15;:44;;;;:::i;:::-;119290:72;-1:-1:-1;119442:33:0;119478:38;119493:22;119514:1;119493:18;:22;:::i;119478:38::-;119442:74;-1:-1:-1;119733:17:0;119805:21;119809:17;119733;119805:21;:::i;:::-;119754:46;119782:18;119754:25;:46;:::i;:::-;119753:74;;;;:::i;:::-;119733:94;-1:-1:-1;119886:38:0;119907:17;119886:18;:38;:::i;:::-;119873:52;;:9;:52;:::i;:::-;119846:79;;119177:764;;;;118921:1802;;119115:1087;120185:1;120158:28;;118921:1802;;;120347:21;120402:20;120454:17;120425:9;:26;;;:46;;;;:::i;:::-;120402:69;;120490:20;120542:15;120513:9;:26;;;:44;;;;:::i;:::-;120490:67;-1:-1:-1;120624:1:0;120593:27;120490:67;120593:12;:27;:::i;:::-;120592:33;;;;:::i;:::-;120576:49;;120383:258;;120682:29;120697:13;120682:14;:29::i;:::-;120655:56;;120267:456;118921:1802;120845:9;:25;;;120818:24;:52;120814:110;;;120899:9;:25;;;120872:52;;120814:110;118363:2569;;118240:2692;;;;:::o;95732:206::-;95834:16;69630:1;70236:7;;:19;70228:63;;;;;;;10813:2:1;70228:63:0;;;10795:21:1;10852:2;10832:18;;;10825:30;10891:33;10871:18;;;10864:61;10942:18;;70228:63:0;10611:355:1;70228:63:0;69630:1;70369:18;;95870:60:::1;95881:10;95893:19:::0;95914:15;95870:10:::1;:60::i;112854:53::-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;112854:53:0;;-1:-1:-1;112854:53:0;;;:::o;65762:271::-;65831:14;;;;65817:10;:28;65809:94;;;;;;;12829:2:1;65809:94:0;;;12811:21:1;12868:2;12848:18;;;12841:30;12907:34;12887:18;;;12880:62;12978:23;12958:18;;;12951:51;13019:19;;65809:94:0;12627:417:1;65809:94:0;65932:5;;;65939:14;65919:35;;;65932:5;;;;13284:34:1;;65939:14:0;;;;13349:2:1;13334:18;;13327:43;65919:35:0;;13196:18:1;65919:35:0;;;;;;;65973:14;;;;65965:22;;;;;;65973:14;;;65965:22;;;;65998:27;;;65762:271::o;87071:199::-;87149:7;73230:4;87210:28;;87177:30;87193:13;87177:15;:30::i;104726:818::-;76908:5;;104812:12;;76908:5;;76894:10;:19;;:74;;;76917:51;76935:10;76947:20;76917:17;:51::i;:::-;76886:107;;;;;;;13583:2:1;76886:107:0;;;13565:21:1;13622:2;13602:18;;;13595:30;13661:22;13641:18;;;13634:50;13701:18;;76886:107:0;13381:344:1;76886:107:0;104910:27:::1;::::0;::::1;104894:13;104910:27:::0;;;:13:::1;:27;::::0;;;;;::::1;;::::0;105164:54;::::1;;;-1:-1:-1::0;105176:42:0::1;:28:::0;;::::1;;::::0;;;:14:::1;:28;::::0;;;;;::::1;105208:10;105176:42;105164:54;105163:113;;;;105242:8;105241:9;:34;;;;-1:-1:-1::0;105269:5:0::1;::::0;::::1;;105255:10;:19;105241:34;105141:396;;;105307:66;105335:12;105349:10;105361:11;105307:27;:66::i;:::-;105388:7;104726:818:::0;;;:::o;105141:396::-:1;105489:36;::::0;::::1;::::0;;13932:2:1;105489:36:0::1;::::0;::::1;13914:21:1::0;13971:2;13951:18;;;13944:30;14010:28;13990:18;;;13983:56;14056:18;;105489:36:0::1;13730:350:1::0;77004:1:0::1;104726:818:::0;;;:::o;120993:1961::-;121296:26;;;121094:27;121296:26;;;:17;:26;;;;;;;121094:27;121483:24;121314:7;121483:15;:24::i;:::-;121583:26;;;121520:33;121583:26;;;:17;:26;;;;;;121460:47;;-1:-1:-1;121520:33:0;121583:31;:66;;;;-1:-1:-1;121618:26:0;;;;;;;:17;:26;;;;;;:31;121583:66;121582:143;;;-1:-1:-1;121693:31:0;;;;;;;:22;:31;;;;;;121669:55;;;121582:143;121564:638;;;-1:-1:-1;121966:20:0;121564:638;;;122154:31;;;;;;;:22;:31;;;;;;122189:1;;122131:54;;:20;:54;:::i;:::-;122130:60;;;;:::i;:::-;122102:88;;121564:638;122337:1;122315:23;;122354:9;122349:598;122373:21;;;;;;;:12;:21;;;;;:28;122369:32;;122349:598;;;122454:21;;;122423:28;122454:21;;;:12;:21;;;;;:24;;122476:1;;122454:24;;;;;;:::i;:::-;;;;;;;;;;;122423:55;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;122550:32;122585:34;122608:7;122617:1;122585:22;:34::i;:::-;122701:19;;;;122550:69;;-1:-1:-1;122681:17:0;73230:4;122796:52;122823:25;122550:69;122796:52;:::i;:::-;122783:66;;:9;:66;:::i;:::-;122782:91;;;;:::i;:::-;122769:105;;:9;:105;:::i;:::-;122735:139;-1:-1:-1;122889:46:0;122735:139;122889:46;;:::i;:::-;;;122408:539;;;;122403:3;;;;;:::i;:::-;;;;122349:598;;;;121223:1731;120993:1961;;;;;:::o;104330:161::-;76705:5;;;;76691:10;:19;;:79;;-1:-1:-1;76728:42:0;76714:10;:56;76691:79;76683:113;;;;;;;12125:2:1;76683:113:0;;;12107:21:1;12164:2;12144:18;;;12137:30;12203:23;12183:18;;;12176:51;12244:18;;76683:113:0;11923:345:1;76683:113:0;104451:32:::1;;;::::0;;;:19:::1;:32;::::0;;;;;;104415:68;;::::1;104451:32;::::0;;::::1;104450:33;104415:68;::::0;;104330:161::o;85988:224::-;86054:7;86188:15;;86157:28;;:46;;;;:::i;:::-;86082:24;;;;;4271:42:1;4259:55;;86082:24:0;;;4241:74:1;73230:4:0;;;;72837:42;;86082:15;;4214:18:1;;86082:24:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:47;;;;:::i;125808:1111::-;69630:1;70236:7;;:19;70228:63;;;;;;;10813:2:1;70228:63:0;;;10795:21:1;10852:2;10832:18;;;10825:30;10891:33;10871:18;;;10864:61;10942:18;;70228:63:0;10611:355:1;70228:63:0;69630:1;70369:18;;125905:10:::1;125917:4;77099:49;125905:10:::0;125917:4;77142:5:::1;77099:23;:49::i;:::-;125993:13:::2;::::0;;;::::2;;;125992:14;125984:41;;;::::0;::::2;::::0;;14287:2:1;125984:41:0::2;::::0;::::2;14269:21:1::0;14326:2;14306:18;;;14299:30;14365:16;14345:18;;;14338:44;14399:18;;125984:41:0::2;14085:338:1::0;125984:41:0::2;126087:28;126117:21:::0;126142:29:::2;126152:10;126164:6;126142:9;:29::i;:::-;126086:85;;;;126221:15;126261:8;126239:9;:19;;;:30;;;;:::i;:::-;126221:48:::0;-1:-1:-1;126440:12:0::2;::::0;126400:91:::2;::::0;126440:12;;::::2;;;126455:10;126475:4;126482:8:::0;126400:31:::2;:91::i;:::-;126575:186;::::0;;::::2;::::0;::::2;::::0;;;;;::::2;126622:25:::0;;::::2;::::0;126575:186;;::::2;::::0;;;;;;;;126684:26;;::::2;::::0;126575:186;;;;;126725:25;;::::2;::::0;126575:186;;;;126546:10:::2;-1:-1:-1::0;126533:24:0;;;:12:::2;:24:::0;;;;;;;:39;;126558:13;;126533:39;::::2;;;;;:::i;:::-;;;;;;;;;;;:228;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;126805:42;126820:10;126832:8;126842:4;126805:14;:42::i;:::-;126865:46;::::0;;14947:25:1;;;15003:2;14988:18;;14981:34;;;126882:10:0::2;::::0;126865:46:::2;::::0;14920:18:1;126865:46:0::2;;;;;;;-1:-1:-1::0;;69586:1:0;70548:7;:22;-1:-1:-1;;;;;125808:1111:0:o;95270:172::-;95349:16;69630:1;70236:7;;:19;70228:63;;;;;;;10813:2:1;70228:63:0;;;10795:21:1;10852:2;10832:18;;;10825:30;10891:33;10871:18;;;10864:61;10942:18;;70228:63:0;10611:355:1;70228:63:0;69630:1;70369:18;;95385:49:::1;95396:10;95408:19:::0;95429:4:::1;95385:10;:49::i;:::-;69586:1:::0;70548:7;:22;95378:56;95270:172;-1:-1:-1;;95270:172:0:o;87423:444::-;87502:25;;;87479:7;87502:25;;;:19;:25;;;;;;;;87498:362;;;-1:-1:-1;87705:4:0;87423:444::o;87498:362::-;-1:-1:-1;87817:31:0;;;;;;;;:25;:31;;;;;;;;87423:444::o;87498:362::-;87423:444;;;:::o;126973:1469::-;69630:1;70236:7;;:19;70228:63;;;;;;;10813:2:1;70228:63:0;;;10795:21:1;10852:2;10832:18;;;10825:30;10891:33;10871:18;;;10864:61;10942:18;;70228:63:0;10611:355:1;70228:63:0;69630:1;70369:18;;127071:10:::1;127083:4;77099:49;127071:10:::0;127083:4;77142:5:::1;77099:23;:49::i;:::-;127159:13:::2;::::0;;;::::2;;;127158:14;127150:41;;;::::0;::::2;::::0;;14287:2:1;127150:41:0::2;::::0;::::2;14269:21:1::0;14326:2;14306:18;;;14299:30;14365:16;14345:18;;;14338:44;14399:18;;127150:41:0::2;14085:338:1::0;127150:41:0::2;127253:28;127283:21:::0;127308:29:::2;127318:10;127330:6;127308:9;:29::i;:::-;127252:85;;;;127392:15;127376:13;:31;127368:65;;;::::0;::::2;::::0;;15228:2:1;127368:65:0::2;::::0;::::2;15210:21:1::0;15267:2;15247:18;;;15240:30;15306:23;15286:18;;;15279:51;15347:18;;127368:65:0::2;15026:345:1::0;127368:65:0::2;127479:17;127529:15;127500:9;:26;;;:44;127499:97;;127595:1;127499:97;;;127577:15;127548:9;:26;;;:44;;;;:::i;:::-;127479:117:::0;-1:-1:-1;127607:16:0::2;127626:31;127642:15;127626:13:::0;:31:::2;:::i;:::-;127607:50;;127763:9;127752:8;:20;127744:57;;;::::0;::::2;::::0;;15578:2:1;127744:57:0::2;::::0;::::2;15560:21:1::0;15617:2;15597:18;;;15590:30;15656:26;15636:18;;;15629:54;15700:18;;127744:57:0::2;15376:348:1::0;127744:57:0::2;127832:13;;127820:8;:25;;127812:64;;;::::0;::::2;::::0;;15931:2:1;127812:64:0::2;::::0;::::2;15913:21:1::0;15970:2;15950:18;;;15943:30;16009:28;15989:18;;;15982:56;16055:18;;127812:64:0::2;15729:350:1::0;127812:64:0::2;127907:28;;127895:8;:40;;127887:80;;;::::0;::::2;::::0;;16286:2:1;127887:80:0::2;::::0;::::2;16268:21:1::0;16325:2;16305:18;;;16298:30;16364:29;16344:18;;;16337:57;16411:18;;127887:80:0::2;16084:351:1::0;127887:80:0::2;128051:174;;;;;;;;128077:6;128051:174;;;;128098:15;128051:174;;;;128128:9;:19;;;128051:174;;;;128162:13;128051:174;;;;128190:24;128205:8;128190:14;:24::i;:::-;128051:174:::0;;128022:10:::2;128009:24;::::0;;;:12:::2;:24;::::0;;;;:39;;128034:13;;128009:39;::::2;;;;;:::i;:::-;;;;;;;;;;;:216;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;128294:48;128318:10;128330:5;128337:4;128294:23;:48::i;:::-;128360:74;::::0;;16671:25:1;;;16727:2;16712:18;;16705:34;;;128403:15:0::2;16755:18:1::0;;;16748:34;16813:2;16798:18;;16791:34;;;128360:74:0;;128373:10:::2;::::0;128360:74:::2;::::0;;;;;16658:3:1;128360:74:0;;::::2;-1:-1:-1::0;;69586:1:0;70548:7;:22;-1:-1:-1;;;;;;126973:1469:0:o;85157:166::-;85265:26;;;85219:7;85265:26;;;:17;:26;;;;;;85247:15;;73230:4;;85247:44;;;:::i;107519:483::-;76908:5;;107685:20;;76908:5;;76894:10;:19;;:74;;;76917:51;76935:10;76947:20;76917:17;:51::i;:::-;76886:107;;;;;;;13583:2:1;76886:107:0;;;13565:21:1;13622:2;13602:18;;;13595:30;13661:22;13641:18;;;13634:50;13701:18;;76886:107:0;13381:344:1;76886:107:0;107736:42:::1;::::0;::::1;;::::0;;;:20:::1;:42;::::0;;;;;107718:17:::1;:61:::0;;107782:9;;107736:42;107718:61;::::1;;;;;:::i;:::-;;;;;;;;:73;;;;107865:25;107802:16;107819:20;:42;107840:20;107819:42;;;;;;;;;;;;;;;;107802:60;;;;;;;;:::i;:::-;;::::0;;;::::1;::::0;;;;;;::::1;:88:::0;;;::::1;;::::0;;::::1;;::::0;;107920:42;;::::1;::::0;;:20:::1;:42:::0;;;;;;;107901:18:::1;:62:::0;;107966:28;;107920:42;107901:62;::::1;;;;;:::i;:::-;;;;;;;;;:93;;;;;;;;;;;;;;;;;;107519:483:::0;;;;;:::o;90831:800::-;90911:34;;;;;;;:19;:34;;;;;;;;90903:60;;;;;;;17038:2:1;90903:60:0;;;17020:21:1;17077:2;17057:18;;;17050:30;17116:15;17096:18;;;17089:43;17149:18;;90903:60:0;16836:337:1;90903:60:0;90982:36;;;;;;;:21;:36;;;;;;;;91019:10;90982:48;;;;;;;;;;90974:90;;;;;;;17380:2:1;90974:90:0;;;17362:21:1;17419:2;17399:18;;;17392:30;17458:31;17438:18;;;17431:59;17507:18;;90974:90:0;17178:353:1;90974:90:0;91210:10;91159:22;91184:37;;;:25;:37;;;;;;;;91236:28;;91232:182;;91391:10;91373:29;;;;:17;:29;;;;;;;;;;91336:33;;;;;;;;;:66;;91373:29;;91336:33;;:66;;91373:29;;91336:66;:::i;:::-;;;;-1:-1:-1;;91232:182:0;91482:10;91456:37;;;;:25;:37;;;;;;;;:53;;;;:37;:53;;;;;;;;91594:17;:29;;;;;;91558:32;;;;;;;;:65;;91594:29;;91558:32;;:65;;91594:29;;91558:65;:::i;:::-;;;;-1:-1:-1;;;;90831:800:0:o;108322:207::-;76908:5;;108430:20;;76908:5;;76894:10;:19;;:74;;;76917:51;76935:10;76947:20;76917:17;:51::i;:::-;76886:107;;;;;;;13583:2:1;76886:107:0;;;13565:21:1;13622:2;13602:18;;;13595:30;13661:22;13641:18;;;13634:50;13701:18;;76886:107:0;13381:344:1;76886:107:0;-1:-1:-1;108463:36:0::1;::::0;;::::1;;::::0;;;:14:::1;:36;::::0;;;;:58;;;::::1;::::0;;;::::1;;::::0;;108322:207::o;104094:97::-;76705:5;;;;76691:10;:19;;:79;;-1:-1:-1;76728:42:0;76714:10;:56;76691:79;76683:113;;;;;;;12125:2:1;76683:113:0;;;12107:21:1;12164:2;12144:18;;;12137:30;12203:23;12183:18;;;12176:51;12244:18;;76683:113:0;11923:345:1;76683:113:0;104169:14:::1;::::0;;104151:32;;::::1;104169:14;::::0;;::::1;104168:15;104151:32;::::0;;104094:97::o;90065:610::-;90164:10;90144:31;;;;:19;:31;;;;;;;;90136:57;;;;;;;17038:2:1;90136:57:0;;;17020:21:1;17077:2;17057:18;;;17050:30;17116:15;17096:18;;;17089:43;17149:18;;90136:57:0;16836:337:1;90136:57:0;90279:10;90257:33;;;;:21;:33;;;;;;;;;:49;;;;;;;;;;;;;;;;90256:50;90204:102;;;;;;;90409:25;:41;;;;;;;;:55;90405:263;;90480:41;;;90532:1;90480:41;;;:25;:41;;;;;;;;:54;;;;;;90623:17;:33;;;;;;90608:10;90590:29;;;;;;;:66;;90623:33;;90590:29;;:66;;90623:33;;90590:66;:::i;:::-;;;;-1:-1:-1;;90405:263:0;90065:610;:::o;80287:452::-;80348:16;80377:32;80412:16;80429:9;80412:27;;;;;;;;:::i;:::-;;;;;;;;;;;;;;-1:-1:-1;80454:38:0;;80450:282;;80635:4;80593:27;80621:9;80593:38;;;;;;;;:::i;:::-;;;;;;;;;80542:24;80521:67;;;:69;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:110;;;;:::i;:::-;80520:119;;;;:::i;:::-;80509:130;;80450:282;;;80692:17;80710:9;80692:28;;;;;;;;:::i;:::-;;;;;;;;;80681:39;;80366:373;80287:452;;;:::o;101666:761::-;101783:9;101778:642;101802:16;:23;101798:27;;101778:642;;;101847:32;101882:16;101899:1;101882:19;;;;;;;;:::i;:::-;;;;;;;;;;;;;;-1:-1:-1;101920:38:0;;101916:493;;101983:12;:61;;;;102018:22;102041:1;102018:25;;;;;;;;:::i;:::-;;;;;;;;;102000:15;:43;101983:61;101979:415;;;102158:106;;;;;102241:4;102158:106;;;17710:74:1;102248:15:0;17800:18:1;;;17793:34;102158:74:0;;;;;;17683:18:1;;102158:106:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;102125:27;102153:1;102125:30;;;;;;;;:::i;:::-;;;;;;;;:139;;;;102336:24;102315:57;;;:59;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;102287:22;102310:1;102287:25;;;;;;;;:::i;:::-;;;;;;;;;;:87;101979:415;-1:-1:-1;101827:3:0;;;;:::i;:::-;;;;101778:642;;;;101666:761;:::o;106007:958::-;76705:5;;;;76691:10;:19;;:79;;-1:-1:-1;76728:42:0;76714:10;:56;76691:79;76683:113;;;;;;;12125:2:1;76683:113:0;;;12107:21:1;12164:2;12144:18;;;12137:30;12203:23;12183:18;;;12176:51;12244:18;;76683:113:0;11923:345:1;76683:113:0;106416:13;;73230:4:::1;-1:-1:-1::0;106416:37:0::1;106408:69;;;::::0;::::1;::::0;;18040:2:1;106408:69:0::1;::::0;::::1;18022:21:1::0;18079:2;18059:18;;;18052:30;18118:21;18098:18;;;18091:49;18157:18;;106408:69:0::1;17838:343:1::0;106408:69:0::1;106625:13:::0;;::::1;::::0;106642:1:::1;-1:-1:-1::0;106625:18:0::1;106616:45;;;::::0;::::1;::::0;;18729:2:1;106616:45:0::1;::::0;::::1;18711:21:1::0;18768:2;18748:18;;;18741:30;18807:14;18787:18;;;18780:42;18839:18;;106616:45:0::1;18527:336:1::0;106616:45:0::1;106696:13:::0;;106674:19:::1;:35:::0;106696:13:::1;106743::::0;::::1;::::0;106720:20:::1;:36:::0;106798:13;;::::1;::::0;106767:28:::1;:44:::0;106849:13;;::::1;::::0;106822:24:::1;:40:::0;106904:13;;::::1;::::0;106873:28:::1;:44:::0;106944:13;::::1;::::0;106928::::1;:29:::0;106007:958::o;102526:363::-;102609:25;102628:5;102609:18;:25::i;:::-;102704:16;:14;:16::i;:::-;102686:15;:34;102756:12;;102737:15;:31;102733:149;;102785:14;:12;:14::i;:::-;102526:363::o;102733:149::-;102841:29;:27;:29::i;130922:1651::-;131097:7;131425:13;:50;;;-1:-1:-1;131443:32:0;;;;;;;131442:33;131425:50;131421:246;;;131477:53;131488:14;131504:19;131525:4;131477:10;:53::i;:::-;;131421:246;;;131603:52;131627:14;131643:4;131649:5;131603:23;:52::i;:::-;131720:28;131750:21;131775:33;131785:14;131801:6;131775:9;:33::i;:::-;131719:89;;;;131846:9;:26;;;131827:15;:45;;:71;;;-1:-1:-1;131876:14:0;;;;:22;;:14;:22;131827:71;131819:106;;;;;;;19070:2:1;131819:106:0;;;19052:21:1;19109:2;19089:18;;;19082:30;19148:24;19128:18;;;19121:52;19190:18;;131819:106:0;18868:346:1;131819:106:0;131956:19;;;;131992:13;;131988:549;;132172:12;;132136:82;;132172:12;;;;;132187:19;132208:9;132136:27;:82::i;:::-;132290:28;;;;;;;:12;:28;;;;;:43;;132319:13;;132290:43;;;;;;:::i;:::-;;;;;;;;;;;;;132283:50;;;;;;;;;;;;;;;;;;;;;;;;;;132385:48;;132400:14;;132416:9;;132385:14;:48::i;:::-;132455:70;;;19421:25:1;;;19477:2;19462:18;;19455:34;;;132455:70:0;19525:55:1;;;19505:18;;;19498:83;132455:70:0;;;;;;;;;;;19409:2:1;132455:70:0;;;131988:549;132556:9;130922:1651;-1:-1:-1;;;;;;;130922:1651:0:o;57972:106::-;58030:7;58061:1;58057;:5;:13;;58069:1;58057:13;;;58065:1;58057:13;58050:20;57972:106;-1:-1:-1;;;57972:106:0:o;128963:1358::-;129209:7;129178:14;129194:4;77099:49;77123:7;77132:8;77142:5;77099:23;:49::i;:::-;129237:13:::1;::::0;;;::::1;;;:22;129229:49;;;::::0;::::1;::::0;;14287:2:1;129229:49:0::1;::::0;::::1;14269:21:1::0;14326:2;14306:18;;;14299:30;14365:16;14345:18;;;14338:44;14399:18;;129229:49:0::1;14085:338:1::0;129229:49:0::1;129305:13;;129297:4;:21;;129289:60;;;::::0;::::1;::::0;;15931:2:1;129289:60:0::1;::::0;::::1;15913:21:1::0;15970:2;15950:18;;;15943:30;16009:28;15989:18;;;15982:56;16055:18;;129289:60:0::1;15729:350:1::0;129289:60:0::1;129376:28;;129368:4;:36;;129360:75;;;::::0;::::1;::::0;;16286:2:1;129360:75:0::1;::::0;::::1;16268:21:1::0;16325:2;16305:18;;;16298:30;16364:29;16344:18;;;16337:57;16411:18;;129360:75:0::1;16084:351:1::0;129360:75:0::1;129558:12;::::0;129518:96:::1;::::0;129558:12;;::::1;;;129573:14:::0;129597:4:::1;129604:9:::0;129518:31:::1;:96::i;:::-;129674:23;129700:20;129715:4;129700:14;:20::i;:::-;129819:33;::::0;::::1;129731:14;129819:33:::0;;;:17:::1;:33;::::0;;;;;;;;129758:95;;19838:66:1;19825:2;19821:15;;;19817:88;129758:95:0;;::::1;19805:101:1::0;;;;19922:12;;;19915:28;;;19959:12;;;19952:28;;;19996:12;;;19989:28;129674:46:0;;-1:-1:-1;129731:14:0;20033:13:1;;129758:95:0::1;::::0;;;;;::::1;::::0;;;;;;129748:106;;129758:95:::1;129748:106:::0;;::::1;::::0;129911:28:::1;::::0;::::1;;::::0;;;:12:::1;:28:::0;;;;;129945:164:::1;::::0;::::1;::::0;;;;;;;::::1;::::0;;;;;;;;;129748:106;;-1:-1:-1;129911:28:0;129945:164;;;130046:22:::1;130064:4:::0;129992:15;130046:22:::1;:::i;:::-;129945:164:::0;;::::1;::::0;;::::1;::::0;;;129911:199;;::::1;::::0;;::::1;::::0;;-1:-1:-1;129911:199:0;;;;;;;;;::::1;::::0;;::::1;;::::0;;;;;::::1;::::0;;;::::1;::::0;::::1;::::0;::::1;::::0;::::1;::::0;::::1;::::0;::::1;::::0;::::1;::::0;::::1;::::0;::::1;::::0;::::1;::::0;;::::1;::::0;::::1;::::0;;::::1;::::0;130154:47:::1;::::0;130169:14;;130185:9;;130154:14:::1;:47::i;:::-;130219:68;::::0;;20288:25:1;;;20344:2;20329:18;;20322:34;;;20372:18;;;20365:34;;;130219:68:0::1;20435:55:1::0;;;20430:2;20415:18;;20408:83;130219:68:0;::::1;::::0;::::1;::::0;20275:3:1;20260:19;130219:68:0::1;;;;;;;130307:6:::0;128963:1358;-1:-1:-1;;;;;;;;;128963:1358:0:o;79965:133::-;80024:7;80051:39;80060:15;80077:12;;80051:8;:39::i;96034:1194::-;96182:31;96157:8;96167:4;77099:49;77123:7;77132:8;77142:5;77099:23;:49::i;:::-;96312:29:::1;::::0;::::1;;::::0;;;:19:::1;:29;::::0;;;;96344:15:::1;96312:47:::0;;96442:23:::1;::::0;;;::::1;;;:32;96434:70;;;::::0;::::1;::::0;;12475:2:1;96434:70:0::1;::::0;::::1;12457:21:1::0;12514:2;12494:18;;;12487:30;12553:27;12533:18;;;12526:55;12598:18;;96434:70:0::1;12273:349:1::0;96434:70:0::1;96616:12;:19:::0;96602:34:::1;::::0;::::1;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;-1:-1:-1;96602:34:0::1;;96585:51;;96654:9;96649:419;96673:12;:19:::0;96669:23;::::1;96649:419;;;96734:17;::::0;::::1;;::::0;;;:7:::1;:17;::::0;;;;;;;:20;;;;;;;;;96714:17;;:14;;96752:1;;96714:17;::::1;;;;;:::i;:::-;;::::0;;::::1;::::0;;;;;;:40;;;;96769:17:::1;::::0;::::1;96792:1;96769:17:::0;;;:7:::1;:17:::0;;;;;;:20;;;;;;;;;:24;;;96812:17;;:14;;96787:1;;96812:17;::::1;;;;;:::i;:::-;;;;;;;:21;96808:249;;;96854:84;96882:12;96895:1;96882:15;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;96899:19;96920:14;96935:1;96920:17;;;;;;;;:::i;:::-;;;;;;;96854:27;:84::i;:::-;96975:8;96964:77;;;96985:14;97000:1;96985:17;;;;;;;;:::i;:::-;;;;;;;97004:12;97017:1;97004:15;;;;;;;;:::i;:::-;;::::0;;;::::1;::::0;;;;::::1;::::0;96964:77:::1;::::0;;20704:25:1;;;97004:15:0::1;::::0;;::::1;20806:18:1::0;;;20799:43;;;;20878:15;;20858:18;;;20851:43;20692:2;20677:18;96964:77:0::1;;;;;;;96808:249;96694:3:::0;::::1;::::0;::::1;:::i;:::-;;;;96649:419;;;;96034:1194:::0;;;;;;;:::o;66896:361::-;67091:45;;;67080:10;17728:55:1;;;67091:45:0;;;17710:74:1;17800:18;;;;17793:34;;;67091:45:0;;;;;;;;;;17683:18:1;;;;67091:45:0;;;;;;;;;;;;;67080:57;;-1:-1:-1;;;;67080:10:0;;;;:57;;67091:45;67080:57;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;67044:93;;;;67156:7;:57;;;;-1:-1:-1;67168:11:0;;:16;;:44;;;67199:4;67188:24;;;;;;;;;;;;:::i;:::-;67148:101;;;;;;;21904:2:1;67148:101:0;;;21886:21:1;21943:2;21923:18;;;21916:30;21982:33;21962:18;;;21955:61;22033:18;;67148:101:0;21702:355:1;67148:101:0;66966:291;;66896:361;;;:::o;91947:1788::-;92163:8;92159:46;;;92187:6;:4;:6::i;:::-;92337:19;92333:109;;;92406:24;92422:7;92406:15;:24::i;:::-;92372:31;;;;;;;:22;:31;;;;;:58;92333:109;92466:21;;;;92462:1266;;92680:27;92726:28;92773:27;92818:30;92840:7;92818:21;:30::i;:::-;92658:190;;;;;;92910:20;92922:7;92910:11;:20::i;:::-;93006:31;;;;;;;:22;:31;;;;;:54;;;93147:42;;;93143:572;;93210:19;93232:41;93254:19;93232;:41;:::i;:::-;93210:63;;93342:11;93317:22;;:36;;;;:::i;:::-;93292:22;:61;93401:33;93423:11;93401:19;:33;:::i;:::-;93372:26;;;;;;;:17;:26;;;;;:62;-1:-1:-1;93143:572:0;;;93475:19;93497:41;93519:19;93497;:41;:::i;:::-;93475:63;;93607:11;93582:22;;:36;;;;:::i;:::-;93557:22;:61;93666:33;93688:11;93666:19;:33;:::i;:::-;93637:26;;;;;;;:17;:26;;;;;:62;-1:-1:-1;93143:572:0;92489:1239;;;91947:1788;;;:::o;125237:508::-;125319:31;-1:-1:-1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;125319:31:0;125352:15;;125380:280;125404:28;;;;;;;:12;:28;;;;;:35;125400:39;;125380:280;;;125475:28;;;;;;;:12;:28;;;;;:31;;125504:1;;125475:31;;;;;;:::i;:::-;;;;;;;;;;;:38;;;125465:6;:48;125461:188;;125548:28;;;;;;;:12;:28;;;;;:31;;125577:1;;125548:31;;;;;;:::i;:::-;;;;;;;;;;;125533:46;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;125608:1;125598:11;;125628:5;;125461:188;125441:3;;;;:::i;:::-;;;;125380:280;;;-1:-1:-1;125678:19:0;;:29;;125670:57;;;;;;;22264:2:1;125670:57:0;;;22246:21:1;22303:2;22283:18;;;22276:30;22342:17;22322:18;;;22315:45;22377:18;;125670:57:0;22062:339:1;125670:57:0;125237:508;;;;;:::o;67265:402::-;67490:51;;;67479:10;22687:15:1;;;67490:51:0;;;22669:34:1;22739:15;;;22719:18;;;22712:43;22771:18;;;;22764:34;;;67490:51:0;;;;;;;;;;22581:18:1;;;;67490:51:0;;;;;;;;;;;;;67479:63;;-1:-1:-1;;;;67479:10:0;;;;:63;;67490:51;67479:63;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;67443:99;;;;67561:7;:57;;;;-1:-1:-1;67573:11:0;;:16;;:44;;;67604:4;67593:24;;;;;;;;;;;;:::i;:::-;67553:106;;;;;;;23011:2:1;67553:106:0;;;22993:21:1;23050:2;23030:18;;;23023:30;23089:34;23069:18;;;23062:62;23160:6;23140:18;;;23133:34;23184:19;;67553:106:0;22809:400:1;124352:877:0;124480:17;124500:27;124512:14;124500:11;:27::i;:::-;124480:47;;124544:6;124540:561;;;124635:3;124608:23;;:30;;;;;;;:::i;:::-;;;;-1:-1:-1;;124653:33:0;;;;;;;:17;:33;;;;;:40;;124690:3;;124653:33;:40;;124690:3;;124653:40;:::i;:::-;;;;-1:-1:-1;;124747:23:0;;;;124743:64;;124772:28;;;;;;;:17;:28;;;;;:35;;124804:3;;124772:28;:35;;124804:3;;124772:35;:::i;:::-;;;;-1:-1:-1;;124743:64:0;124540:561;;;124917:3;124890:23;;:30;;;;;;;:::i;:::-;;;;-1:-1:-1;;124935:33:0;;;;;;;:17;:33;;;;;:40;;124972:3;;124935:33;:40;;124972:3;;124935:40;:::i;:::-;;;;-1:-1:-1;;125029:23:0;;;;125025:64;;125054:28;;;;;;;:17;:28;;;;;:35;;125086:3;;125054:28;:35;;125086:3;;125054:35;:::i;:::-;;;;-1:-1:-1;;125025:64:0;125169:52;125193:14;125209:5;125216:4;125169:23;:52::i;97315:3748::-;97402:29;:27;:29::i;:::-;97521:9;97516:327;97540:18;:25;97536:29;;97516:327;;;97587:34;97624:18;97643:1;97624:21;;;;;;;;:::i;:::-;;;;;;;;;;;;;;-1:-1:-1;97664:40:0;;97660:172;;97725:91;;;;;97810:4;97725:91;;;4241:74:1;97725:76:0;;;;;;4214:18:1;;97725:91:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;97660:172;-1:-1:-1;97567:3:0;;;;:::i;:::-;;;;97516:327;;;;98203:27;74939:6;98259:12;;98241:15;:30;;;;:::i;:::-;98233:57;;;;:::i;:::-;98203:87;;98429:9;98424:284;98448:12;:19;98444:23;;98424:284;;;98570:12;98583:1;98570:15;;;;;;;;:::i;:::-;;;;;;;;;;;98563:48;;;;;98605:4;98563:48;;;4241:74:1;98570:15:0;;;;;98563:33;;4214:18:1;;98563:48:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;98534:23;:19;98556:1;98534:23;:::i;:::-;74939:6;98498:14;98510:1;98498:11;:14::i;:::-;:32;;;;:::i;:::-;:60;;;;:::i;:::-;98497:114;;98677:12;98690:1;98677:15;;;;;;;;:::i;:::-;;;;;;;;;;;;98620:73;;;23706:34:1;98620:73:0;;;23694:47:1;;;;23771:6;23757:12;;;23750:28;23816:2;23812:15;;;23794:12;;;23787:110;23913:12;;98620:73:0;;;;;;;;;;;;98489:207;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1;98469:3:0;;;;:::i;:::-;;;;98424:284;;;-1:-1:-1;74939:6:0;98920:23;:19;98942:1;98920:23;:::i;:::-;98919:43;;;;:::i;:::-;98903:12;;:60;;;;:::i;:::-;98888:12;:75;101026:29;101071:435;101158:34;101195:17;:15;:17::i;:::-;101158:54;;101275:9;101270:133;101294:21;:28;101290:32;;101270:133;;;101371:17;101389:1;101371:20;;;;;;;;:::i;:::-;;;;;;;101344:21;101366:1;101344:24;;;;;;;;:::i;:::-;;;;;;;;;;:47;101324:3;;;;:::i;:::-;;;;101270:133;;;;101472:26;:24;:26::i;:::-;101455:14;:43;-1:-1:-1;101071:435:0:o;93743:585::-;93805:21;;;;93801:520;;93882:27;93912:15;93919:7;93912:6;:15::i;:::-;93882:45;;93990:9;93985:118;94009:10;:17;94005:1;:21;93985:118;;;94074:10;94085:1;94074:13;;;;;;;;:::i;:::-;;;;;;;;;;;;94052:16;;;;;;;:7;:16;;;;;;:19;;;;;;;;;;:35;94069:1;94028:3;94069:1;94028:3;:::i;:::-;;;;93985:118;;;;94170:9;94165:145;94189:10;:17;94185:1;:21;94165:145;;;94270:21;94292:1;94270:24;;;;;;;;:::i;:::-;;;;;;;;;;;;;94232:32;;;;;:23;:32;;;;;;:35;;;;;;;;:62;94265:1;94208:3;94265:1;94208:3;:::i;:::-;;;;94165:145;;14:196:1;82:20;;142:42;131:54;;121:65;;111:93;;200:1;197;190:12;215:186;274:6;327:2;315:9;306:7;302:23;298:32;295:52;;;343:1;340;333:12;295:52;366:29;385:9;366:29;:::i;406:632::-;577:2;629:21;;;699:13;;602:18;;;721:22;;;548:4;;577:2;800:15;;;;774:2;759:18;;;548:4;843:169;857:6;854:1;851:13;843:169;;;918:13;;906:26;;987:15;;;;952:12;;;;879:1;872:9;843:169;;;-1:-1:-1;1029:3:1;;406:632;-1:-1:-1;;;;;;406:632:1:o;1043:118::-;1129:5;1122:13;1115:21;1108:5;1105:32;1095:60;;1151:1;1148;1141:12;1166:383;1240:6;1248;1256;1309:2;1297:9;1288:7;1284:23;1280:32;1277:52;;;1325:1;1322;1315:12;1277:52;1361:9;1348:23;1338:33;;1390:38;1424:2;1413:9;1409:18;1390:38;:::i;:::-;1380:48;;1478:2;1467:9;1463:18;1450:32;1491:28;1513:5;1491:28;:::i;:::-;1538:5;1528:15;;;1166:383;;;;;:::o;1736:180::-;1795:6;1848:2;1836:9;1827:7;1823:23;1819:32;1816:52;;;1864:1;1861;1854:12;1816:52;-1:-1:-1;1887:23:1;;1736:180;-1:-1:-1;1736:180:1:o;1921:681::-;2092:2;2144:21;;;2214:13;;2117:18;;;2236:22;;;2063:4;;2092:2;2315:15;;;;2289:2;2274:18;;;2063:4;2358:218;2372:6;2369:1;2366:13;2358:218;;;2437:13;;2452:42;2433:62;2421:75;;2551:15;;;;2516:12;;;;2394:1;2387:9;2358:218;;2607:248;2675:6;2683;2736:2;2724:9;2715:7;2711:23;2707:32;2704:52;;;2752:1;2749;2742:12;2704:52;-1:-1:-1;;2775:23:1;;;2845:2;2830:18;;;2817:32;;-1:-1:-1;2607:248:1:o;3042:1011::-;3271:2;3323:21;;;3393:13;;3296:18;;;3415:22;;;3242:4;;3271:2;3456;;3474:18;;;;3515:15;;;3242:4;3558:469;3572:6;3569:1;3566:13;3558:469;;;3631:13;;3669:9;;3657:22;;3719:11;;;3713:18;3699:12;;;3692:40;3772:11;;;3766:18;3752:12;;;3745:40;3808:4;3852:11;;;3846:18;3832:12;;;3825:40;3888:4;3932:11;;;3926:18;3912:12;;;3905:40;3974:4;3965:14;;;;4002:15;;;;3594:1;3587:9;3558:469;;;-1:-1:-1;4044:3:1;;3042:1011;-1:-1:-1;;;;;;;3042:1011:1:o;4326:260::-;4394:6;4402;4455:2;4443:9;4434:7;4430:23;4426:32;4423:52;;;4471:1;4468;4461:12;4423:52;4494:29;4513:9;4494:29;:::i;:::-;4484:39;;4542:38;4576:2;4565:9;4561:18;4542:38;:::i;:::-;4532:48;;4326:260;;;;;:::o;5014:647::-;5088:6;5096;5104;5112;5165:3;5153:9;5144:7;5140:23;5136:33;5133:53;;;5182:1;5179;5172:12;5133:53;5221:9;5208:23;5240:28;5262:5;5240:28;:::i;:::-;5287:5;-1:-1:-1;5344:2:1;5329:18;;5316:32;5357:30;5316:32;5357:30;:::i;:::-;5406:7;-1:-1:-1;5465:2:1;5450:18;;5437:32;5478:30;5437:32;5478:30;:::i;:::-;5527:7;-1:-1:-1;5586:2:1;5571:18;;5558:32;5599:30;5558:32;5599:30;:::i;:::-;5014:647;;;;-1:-1:-1;5014:647:1;;-1:-1:-1;;5014:647:1:o;5931:254::-;5999:6;6007;6060:2;6048:9;6039:7;6035:23;6031:32;6028:52;;;6076:1;6073;6066:12;6028:52;6099:29;6118:9;6099:29;:::i;:::-;6089:39;6175:2;6160:18;;;;6147:32;;-1:-1:-1;;;5931:254:1:o;6190:315::-;6255:6;6263;6316:2;6304:9;6295:7;6291:23;6287:32;6284:52;;;6332:1;6329;6322:12;6284:52;6355:29;6374:9;6355:29;:::i;:::-;6345:39;;6434:2;6423:9;6419:18;6406:32;6447:28;6469:5;6447:28;:::i;:::-;6494:5;6484:15;;;6190:315;;;;;:::o;7555:403::-;7641:6;7649;7657;7665;7718:3;7706:9;7697:7;7693:23;7689:33;7686:53;;;7735:1;7732;7725:12;7686:53;7758:29;7777:9;7758:29;:::i;:::-;7748:39;;7834:2;7823:9;7819:18;7806:32;7796:42;;7857:38;7891:2;7880:9;7876:18;7857:38;:::i;:::-;7847:48;;7914:38;7948:2;7937:9;7933:18;7914:38;:::i;:::-;7904:48;;7555:403;;;;;;;:::o;7963:241::-;8019:6;8072:2;8060:9;8051:7;8047:23;8043:32;8040:52;;;8088:1;8085;8078:12;8040:52;8127:9;8114:23;8146:28;8168:5;8146:28;:::i;8209:184::-;8261:77;8258:1;8251:88;8358:4;8355:1;8348:15;8382:4;8379:1;8372:15;8398:915;8480:6;8533:3;8521:9;8512:7;8508:23;8504:33;8501:53;;;8550:1;8547;8540:12;8501:53;8599:7;8592:4;8581:9;8577:20;8573:34;8563:62;;8621:1;8618;8611:12;8563:62;8654:2;8648:9;8696:3;8688:6;8684:16;8766:6;8754:10;8751:22;8730:18;8718:10;8715:34;8712:62;8709:242;;;8807:77;8804:1;8797:88;8908:4;8905:1;8898:15;8936:4;8933:1;8926:15;8709:242;8967:2;8960:22;9002:6;9046:3;9031:19;;9062;;;9059:39;;;9094:1;9091;9084:12;9059:39;9118:9;9136:146;9152:6;9147:3;9144:15;9136:146;;;9220:17;;9208:30;;9267:4;9258:14;;;;9169;9136:146;;;-1:-1:-1;9301:6:1;;8398:915;-1:-1:-1;;;;;8398:915:1:o;9318:184::-;9370:77;9367:1;9360:88;9467:4;9464:1;9457:15;9491:4;9488:1;9481:15;9507:184;9559:77;9556:1;9549:88;9656:4;9653:1;9646:15;9680:4;9677:1;9670:15;9696:128;9763:9;;;9784:11;;;9781:37;;;9798:18;;:::i;9829:168::-;9902:9;;;9933;;9950:15;;;9944:22;;9930:37;9920:71;;9971:18;;:::i;10002:274::-;10042:1;10068;10058:189;;10103:77;10100:1;10093:88;10204:4;10201:1;10194:15;10232:4;10229:1;10222:15;10058:189;-1:-1:-1;10261:9:1;;10002:274::o;10281:125::-;10346:9;;;10367:10;;;10364:36;;;10380:18;;:::i;10411:195::-;10450:3;10481:66;10474:5;10471:77;10468:103;;10551:18;;:::i;:::-;-1:-1:-1;10598:1:1;10587:13;;10411:195::o;11734:184::-;11804:6;11857:2;11845:9;11836:7;11832:23;11828:32;11825:52;;;11873:1;11870;11863:12;11825:52;-1:-1:-1;11896:16:1;;11734:184;-1:-1:-1;11734:184:1:o;20905:250::-;20990:1;21000:113;21014:6;21011:1;21008:13;21000:113;;;21090:11;;;21084:18;21071:11;;;21064:39;21036:2;21029:10;21000:113;;;-1:-1:-1;;21147:1:1;21129:16;;21122:27;20905:250::o;21160:287::-;21289:3;21327:6;21321:13;21343:66;21402:6;21397:3;21390:4;21382:6;21378:17;21343:66;:::i;:::-;21425:16;;;;;21160:287;-1:-1:-1;;21160:287:1:o;21452:245::-;21519:6;21572:2;21560:9;21551:7;21547:23;21543:32;21540:52;;;21588:1;21585;21578:12;21540:52;21620:9;21614:16;21639:28;21661:5;21639:28;:::i;23214:245::-;23293:6;23301;23354:2;23342:9;23333:7;23329:23;23325:32;23322:52;;;23370:1;23367;23360:12;23322:52;-1:-1:-1;;23393:16:1;;23449:2;23434:18;;;23428:25;23393:16;;23428:25;;-1:-1:-1;23214:245:1:o;23936:455::-;24085:2;24074:9;24067:21;24048:4;24117:6;24111:13;24160:6;24155:2;24144:9;24140:18;24133:34;24176:79;24248:6;24243:2;24232:9;24228:18;24223:2;24215:6;24211:15;24176:79;:::i;:::-;24307:2;24295:15;24312:66;24291:88;24276:104;;;;24382:2;24272:113;;23936:455;-1:-1:-1;;23936:455:1:o
Swarm Source
ipfs://077ef194b28ffd7d7f0dd7d3ea1ac9ffbad71048a19e3206ffedd246549bdaef
Loading...
Loading
Loading...
Loading
Loading...
Loading
[ 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.