ETH Price: $4,078.55 (+4.65%)

Contract

0x0a08673E3d7c454E1c6b27acD059C50Df6727FC9
 
Transaction Hash
Method
Block
From
To
Sync206021382024-08-25 0:50:23113 days ago1724547023IN
0x0a08673E...Df6727FC9
0 ETH0.000300551.36053782
Sync205305762024-08-15 0:53:35123 days ago1723683215IN
0x0a08673E...Df6727FC9
0 ETH0.000255531.37475128
Get Reward199103712024-05-20 9:54:11210 days ago1716198851IN
0x0a08673E...Df6727FC9
0 ETH0.00102783.77052716
Get Reward198966452024-05-18 11:51:47212 days ago1716033107IN
0x0a08673E...Df6727FC9
0 ETH0.001233523.00914213
Get Reward197952712024-05-04 7:32:47226 days ago1714807967IN
0x0a08673E...Df6727FC9
0 ETH0.002645736.68743643
Sync197563902024-04-28 21:07:11231 days ago1714338431IN
0x0a08673E...Df6727FC9
0 ETH0.000595226.32065697
Get Reward196060342024-04-07 19:56:23252 days ago1712519783IN
0x0a08673E...Df6727FC9
0 ETH0.0052483515.4444136
Get Reward195197062024-03-26 16:10:59265 days ago1711469459IN
0x0a08673E...Df6727FC9
0 ETH0.0153616856.35495888
Get Reward195153722024-03-26 1:33:23265 days ago1711416803IN
0x0a08673E...Df6727FC9
0 ETH0.0051543818.90906753
Sync192929702024-02-23 21:27:47296 days ago1708723667IN
0x0a08673E...Df6727FC9
0 ETH0.0029014531.75462712
Get Reward192928832024-02-23 21:10:23296 days ago1708722623IN
0x0a08673E...Df6727FC9
0 ETH0.0087203238.41520557
Sync192928792024-02-23 21:09:35296 days ago1708722575IN
0x0a08673E...Df6727FC9
0 ETH0.0093759342.98700515
Sync190734292024-01-24 2:09:35327 days ago1706062175IN
0x0a08673E...Df6727FC9
0 ETH0.0014268111.04323721
Get Reward190712482024-01-23 18:47:35327 days ago1706035655IN
0x0a08673E...Df6727FC9
0 ETH0.0044902915.50046461
Get Reward190011472024-01-13 23:07:35337 days ago1705187255IN
0x0a08673E...Df6727FC9
0 ETH0.0050453218.50896171
Get Reward189936492024-01-12 21:58:35338 days ago1705096715IN
0x0a08673E...Df6727FC9
0 ETH0.007903125.01029846
Get Reward188915912023-12-29 13:39:23353 days ago1703857163IN
0x0a08673E...Df6727FC9
0 ETH0.0078878221.48704027
Get Reward188660912023-12-25 23:46:35356 days ago1703547995IN
0x0a08673E...Df6727FC9
0 ETH0.0044572512.14190314
Sync187520012023-12-09 23:40:47372 days ago1702165247IN
0x0a08673E...Df6727FC9
0 ETH0.0042058344.66163331
Get Reward186739022023-11-29 1:10:11383 days ago1701220211IN
0x0a08673E...Df6727FC9
0 ETH0.0101959631.76135066
Get Reward185433202023-11-10 18:26:11402 days ago1699640771IN
0x0a08673E...Df6727FC9
0 ETH0.0209649552.99172716
Get Reward183289372023-10-11 18:19:23432 days ago1697048363IN
0x0a08673E...Df6727FC9
0 ETH0.0051754817.02922478
Sync181141352023-09-11 15:54:59462 days ago1694447699IN
0x0a08673E...Df6727FC9
0 ETH0.0028759131.47515831
Get Reward180718502023-09-05 17:46:23468 days ago1693935983IN
0x0a08673E...Df6727FC9
0 ETH0.0073058926.80195733
Get Reward180120402023-08-28 8:45:59476 days ago1693212359IN
0x0a08673E...Df6727FC9
0 ETH0.010520225.48948973
View all transactions

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Loading...
Loading

Similar Match Source Code
This contract matches the deployed Bytecode of the Source Code for Contract 0x183a756F...A3E48c52D
The constructor portion of the code might be different and could alter the actual behaviour of the contract

Contract Name:
FraxUnifiedFarm_ERC20_Convex_stkcvxFPIFRAX

Compiler Version
v0.8.13+commit.abaa5c0e

Optimization Enabled:
Yes with 100000 runs

Other Settings:
default evmVersion, GNU GPLv2 license

Contract Source Code (Solidity)

/**
 *Submitted for verification at Etherscan.io on 2022-05-06
*/

// SPDX-License-Identifier: GPL-2.0-or-later
pragma solidity >=0.8.0;

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

// File contracts/Math/Math.sol


/**
 * @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/Curve/IveFXS.sol

pragma abicoder v2;

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/Curve/IFraxGaugeController.sol


// 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


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/Common/Context.sol


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


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



/**
 * @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/Utils/Address.sol


/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize, which returns 0 for contracts in
        // construction, since the code is only stored at the end of the
        // constructor execution.

        uint256 size;
        // solhint-disable-next-line no-inline-assembly
        assembly { size := extcodesize(account) }
        return size > 0;
    }

    /**
     * @dev Replacement for Solidity's `transfer`: sends `amount` wei to
     * `recipient`, forwarding all available gas and reverting on errors.
     *
     * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
     * of certain opcodes, possibly making contracts go over the 2300 gas limit
     * imposed by `transfer`, making them unable to receive funds via
     * `transfer`. {sendValue} removes this limitation.
     *
     * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more].
     *
     * IMPORTANT: because control is transferred to `recipient`, care must be
     * taken to not create reentrancy vulnerabilities. Consider using
     * {ReentrancyGuard} or the
     * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
     */
    function sendValue(address payable recipient, uint256 amount) internal {
        require(address(this).balance >= amount, "Address: insufficient balance");

        // solhint-disable-next-line avoid-low-level-calls, avoid-call-value
        (bool success, ) = recipient.call{ value: amount }("");
        require(success, "Address: unable to send value, recipient may have reverted");
    }

    /**
     * @dev Performs a Solidity function call using a low level `call`. A
     * plain`call` is an unsafe replacement for a function call: use this
     * function instead.
     *
     * If `target` reverts with a revert reason, it is bubbled up by this
     * function (like regular Solidity function calls).
     *
     * Returns the raw returned data. To convert to the expected return value,
     * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].
     *
     * Requirements:
     *
     * - `target` must be a contract.
     * - calling `target` with `data` must not revert.
     *
     * _Available since v3.1._
     */
    function functionCall(address target, bytes memory data) internal returns (bytes memory) {
      return functionCall(target, data, "Address: low-level call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with
     * `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCall(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) {
        return functionCallWithValue(target, data, 0, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but also transferring `value` wei to `target`.
     *
     * Requirements:
     *
     * - the calling contract must have an ETH balance of at least `value`.
     * - the called Solidity function must be `payable`.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) {
        return functionCallWithValue(target, data, value, "Address: low-level call with value failed");
    }

    /**
     * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but
     * with `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(address target, bytes memory data, uint256 value, string memory errorMessage) internal returns (bytes memory) {
        require(address(this).balance >= value, "Address: insufficient balance for call");
        require(isContract(target), "Address: call to non-contract");

        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) = target.call{ value: value }(data);
        return _verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {
        return functionStaticCall(target, data, "Address: low-level static call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(address target, bytes memory data, string memory errorMessage) internal view returns (bytes memory) {
        require(isContract(target), "Address: static call to non-contract");

        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) = target.staticcall(data);
        return _verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {
        return functionDelegateCall(target, data, "Address: low-level delegate call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) {
        require(isContract(target), "Address: delegate call to non-contract");

        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) = target.delegatecall(data);
        return _verifyCallResult(success, returndata, errorMessage);
    }

    function _verifyCallResult(bool success, bytes memory returndata, string memory errorMessage) private pure returns(bytes memory) {
        if (success) {
            return returndata;
        } else {
            // Look for revert reason and bubble it up if present
            if (returndata.length > 0) {
                // The easiest way to bubble the revert reason is using memory via assembly

                // solhint-disable-next-line no-inline-assembly
                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}


// File contracts/ERC20/ERC20.sol





/**
 * @dev Implementation of the {IERC20} interface.
 *
 * This implementation is agnostic to the way tokens are created. This means
 * that a supply mechanism has to be added in a derived contract using {_mint}.
 * For a generic mechanism see {ERC20Mintable}.
 *
 * TIP: For a detailed writeup see our guide
 * https://forum.zeppelin.solutions/t/how-to-implement-erc20-supply-mechanisms/226[How
 * to implement supply mechanisms].
 *
 * We have followed general OpenZeppelin guidelines: functions revert instead
 * of returning `false` on failure. This behavior is nonetheless conventional
 * and does not conflict with the expectations of ERC20 applications.
 *
 * Additionally, an {Approval} event is emitted on calls to {transferFrom}.
 * This allows applications to reconstruct the allowance for all accounts just
 * by listening to said events. Other implementations of the EIP may not emit
 * these events, as it isn't required by the specification.
 *
 * Finally, the non-standard {decreaseAllowance} and {increaseAllowance}
 * functions have been added to mitigate the well-known issues around setting
 * allowances. See {IERC20-approve}.
 */
 
contract ERC20 is Context, IERC20 {
    using SafeMath for uint256;

    mapping (address => uint256) private _balances;

    mapping (address => mapping (address => uint256)) private _allowances;

    uint256 private _totalSupply;

    string private _name;
    string private _symbol;
    uint8 private _decimals;
    
    /**
     * @dev Sets the values for {name} and {symbol}, initializes {decimals} with
     * a default value of 18.
     *
     * To select a different value for {decimals}, use {_setupDecimals}.
     *
     * All three of these values are immutable: they can only be set once during
     * construction.
     */
    constructor (string memory __name, string memory __symbol) public {
        _name = __name;
        _symbol = __symbol;
        _decimals = 18;
    }

    /**
     * @dev Returns the name of the token.
     */
    function name() public view returns (string memory) {
        return _name;
    }

    /**
     * @dev Returns the symbol of the token, usually a shorter version of the
     * name.
     */
    function symbol() public view returns (string memory) {
        return _symbol;
    }

    /**
     * @dev Returns the number of decimals used to get its user representation.
     * For example, if `decimals` equals `2`, a balance of `505` tokens should
     * be displayed to a user as `5,05` (`505 / 10 ** 2`).
     *
     * Tokens usually opt for a value of 18, imitating the relationship between
     * Ether and Wei. This is the value {ERC20} uses, unless {_setupDecimals} is
     * called.
     *
     * NOTE: This information is only used for _display_ purposes: it in
     * no way affects any of the arithmetic of the contract, including
     * {IERC20-balanceOf} and {IERC20-transfer}.
     */
    function decimals() public view returns (uint8) {
        return _decimals;
    }

    /**
     * @dev See {IERC20-totalSupply}.
     */
    function totalSupply() public view override returns (uint256) {
        return _totalSupply;
    }

    /**
     * @dev See {IERC20-balanceOf}.
     */
    function balanceOf(address account) public view override returns (uint256) {
        return _balances[account];
    }

    /**
     * @dev See {IERC20-transfer}.
     *
     * Requirements:
     *
     * - `recipient` cannot be the zero address.
     * - the caller must have a balance of at least `amount`.
     */
    function transfer(address recipient, uint256 amount) public virtual override returns (bool) {
        _transfer(_msgSender(), recipient, amount);
        return true;
    }

    /**
     * @dev See {IERC20-allowance}.
     */
    function allowance(address owner, address spender) public view virtual override returns (uint256) {
        return _allowances[owner][spender];
    }

    /**
     * @dev See {IERC20-approve}.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.approve(address spender, uint256 amount)
     */
    function approve(address spender, uint256 amount) public virtual override returns (bool) {
        _approve(_msgSender(), spender, amount);
        return true;
    }

    /**
     * @dev See {IERC20-transferFrom}.
     *
     * Emits an {Approval} event indicating the updated allowance. This is not
     * required by the EIP. See the note at the beginning of {ERC20};
     *
     * Requirements:
     * - `sender` and `recipient` cannot be the zero address.
     * - `sender` must have a balance of at least `amount`.
     * - the caller must have allowance for `sender`'s tokens of at least
     * `amount`.
     */
    function transferFrom(address sender, address recipient, uint256 amount) public virtual override returns (bool) {
        _transfer(sender, recipient, amount);
        _approve(sender, _msgSender(), _allowances[sender][_msgSender()].sub(amount, "ERC20: transfer amount exceeds allowance"));
        return true;
    }

    /**
     * @dev Atomically increases the allowance granted to `spender` by the caller.
     *
     * This is an alternative to {approve} that can be used as a mitigation for
     * problems described in {IERC20-approve}.
     *
     * Emits an {Approval} event indicating the updated allowance.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) {
        _approve(_msgSender(), spender, _allowances[_msgSender()][spender].add(addedValue));
        return true;
    }

    /**
     * @dev Atomically decreases the allowance granted to `spender` by the caller.
     *
     * This is an alternative to {approve} that can be used as a mitigation for
     * problems described in {IERC20-approve}.
     *
     * Emits an {Approval} event indicating the updated allowance.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     * - `spender` must have allowance for the caller of at least
     * `subtractedValue`.
     */
    function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) {
        _approve(_msgSender(), spender, _allowances[_msgSender()][spender].sub(subtractedValue, "ERC20: decreased allowance below zero"));
        return true;
    }

    /**
     * @dev Moves tokens `amount` from `sender` to `recipient`.
     *
     * This is internal function is equivalent to {transfer}, and can be used to
     * e.g. implement automatic token fees, slashing mechanisms, etc.
     *
     * Emits a {Transfer} event.
     *
     * Requirements:
     *
     * - `sender` cannot be the zero address.
     * - `recipient` cannot be the zero address.
     * - `sender` must have a balance of at least `amount`.
     */
    function _transfer(address sender, address recipient, uint256 amount) internal virtual {
        require(sender != address(0), "ERC20: transfer from the zero address");
        require(recipient != address(0), "ERC20: transfer to the zero address");

        _beforeTokenTransfer(sender, recipient, amount);

        _balances[sender] = _balances[sender].sub(amount, "ERC20: transfer amount exceeds balance");
        _balances[recipient] = _balances[recipient].add(amount);
        emit Transfer(sender, recipient, amount);
    }

    /** @dev Creates `amount` tokens and assigns them to `account`, increasing
     * the total supply.
     *
     * Emits a {Transfer} event with `from` set to the zero address.
     *
     * Requirements
     *
     * - `to` cannot be the zero address.
     */
    function _mint(address account, uint256 amount) internal virtual {
        require(account != address(0), "ERC20: mint to the zero address");

        _beforeTokenTransfer(address(0), account, amount);

        _totalSupply = _totalSupply.add(amount);
        _balances[account] = _balances[account].add(amount);
        emit Transfer(address(0), account, amount);
    }

    /**
     * @dev Destroys `amount` tokens from the caller.
     *
     * See {ERC20-_burn}.
     */
    function burn(uint256 amount) public virtual {
        _burn(_msgSender(), amount);
    }

    /**
     * @dev Destroys `amount` tokens from `account`, deducting from the caller's
     * allowance.
     *
     * See {ERC20-_burn} and {ERC20-allowance}.
     *
     * Requirements:
     *
     * - the caller must have allowance for `accounts`'s tokens of at least
     * `amount`.
     */
    function burnFrom(address account, uint256 amount) public virtual {
        uint256 decreasedAllowance = allowance(account, _msgSender()).sub(amount, "ERC20: burn amount exceeds allowance");

        _approve(account, _msgSender(), decreasedAllowance);
        _burn(account, amount);
    }


    /**
     * @dev Destroys `amount` tokens from `account`, reducing the
     * total supply.
     *
     * Emits a {Transfer} event with `to` set to the zero address.
     *
     * Requirements
     *
     * - `account` cannot be the zero address.
     * - `account` must have at least `amount` tokens.
     */
    function _burn(address account, uint256 amount) internal virtual {
        require(account != address(0), "ERC20: burn from the zero address");

        _beforeTokenTransfer(account, address(0), amount);

        _balances[account] = _balances[account].sub(amount, "ERC20: burn amount exceeds balance");
        _totalSupply = _totalSupply.sub(amount);
        emit Transfer(account, address(0), amount);
    }

    /**
     * @dev Sets `amount` as the allowance of `spender` over the `owner`s tokens.
     *
     * This is internal function is equivalent to `approve`, and can be used to
     * e.g. set automatic allowances for certain subsystems, etc.
     *
     * Emits an {Approval} event.
     *
     * Requirements:
     *
     * - `owner` cannot be the zero address.
     * - `spender` cannot be the zero address.
     */
    function _approve(address owner, address spender, uint256 amount) internal virtual {
        require(owner != address(0), "ERC20: approve from the zero address");
        require(spender != address(0), "ERC20: approve to the zero address");

        _allowances[owner][spender] = amount;
        emit Approval(owner, spender, amount);
    }

    /**
     * @dev Destroys `amount` tokens from `account`.`amount` is then deducted
     * from the caller's allowance.
     *
     * See {_burn} and {_approve}.
     */
    function _burnFrom(address account, uint256 amount) internal virtual {
        _burn(account, amount);
        _approve(account, _msgSender(), _allowances[account][_msgSender()].sub(amount, "ERC20: burn amount exceeds allowance"));
    }

    /**
     * @dev Hook that is called before any transfer of tokens. This includes
     * minting and burning.
     *
     * Calling conditions:
     *
     * - when `from` and `to` are both non-zero, `amount` of `from`'s tokens
     * will be to transferred to `to`.
     * - when `from` is zero, `amount` tokens will be minted for `to`.
     * - when `to` is zero, `amount` of `from`'s tokens will be burned.
     * - `from` and `to` are never both zero.
     *
     * To learn more about hooks, head to xref:ROOT:using-hooks.adoc[Using Hooks].
     */
    function _beforeTokenTransfer(address from, address to, uint256 amount) internal virtual { }
}


// File contracts/Uniswap/TransferHelper.sol


// 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/ERC20/SafeERC20.sol




/**
 * @title SafeERC20
 * @dev Wrappers around ERC20 operations that throw on failure (when the token
 * contract returns false). Tokens that return no value (and instead revert or
 * throw on failure) are also supported, non-reverting calls are assumed to be
 * successful.
 * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract,
 * which allows you to call the safe operations as `token.safeTransfer(...)`, etc.
 */
library SafeERC20 {
    using SafeMath for uint256;
    using Address for address;

    function safeTransfer(IERC20 token, address to, uint256 value) internal {
        _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value));
    }

    function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal {
        _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value));
    }

    /**
     * @dev Deprecated. This function has issues similar to the ones found in
     * {IERC20-approve}, and its usage is discouraged.
     *
     * Whenever possible, use {safeIncreaseAllowance} and
     * {safeDecreaseAllowance} instead.
     */
    function safeApprove(IERC20 token, address spender, uint256 value) internal {
        // safeApprove should only be called when setting an initial allowance,
        // or when resetting it to zero. To increase and decrease it, use
        // 'safeIncreaseAllowance' and 'safeDecreaseAllowance'
        // solhint-disable-next-line max-line-length
        require((value == 0) || (token.allowance(address(this), spender) == 0),
            "SafeERC20: approve from non-zero to non-zero allowance"
        );
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value));
    }

    function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {
        uint256 newAllowance = token.allowance(address(this), spender).add(value);
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
    }

    function safeDecreaseAllowance(IERC20 token, address spender, uint256 value) internal {
        uint256 newAllowance = token.allowance(address(this), spender).sub(value, "SafeERC20: decreased allowance below zero");
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
    }

    /**
     * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement
     * on the return value: the return value is optional (but if data is returned, it must not be false).
     * @param token The token targeted by the call.
     * @param data The call data (encoded using abi.encode or one of its variants).
     */
    function _callOptionalReturn(IERC20 token, bytes memory data) private {
        // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since
        // we're implementing it ourselves. We use {Address.functionCall} to perform this call, which verifies that
        // the target address contains contract code and also asserts for success in the low-level call.

        bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed");
        if (returndata.length > 0) { // Return data is optional
            // solhint-disable-next-line max-line-length
            require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed");
        }
    }
}


// File contracts/Utils/ReentrancyGuard.sol


/**
 * @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/Owned.sol


// 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/Misc_AMOs/convex/IConvexBaseRewardPool.sol


interface IConvexBaseRewardPool {
  function addExtraReward(address _reward) external returns (bool);
  function balanceOf(address account) external view returns (uint256);
  function clearExtraRewards() external;
  function currentRewards() external view returns (uint256);
  function donate(uint256 _amount) external returns (bool);
  function duration() external view returns (uint256);
  function earned(address account) external view returns (uint256);
  function extraRewards(uint256) external view returns (address);
  function extraRewardsLength() external view returns (uint256);
  function getReward() external returns (bool);
  function getReward(address _account, bool _claimExtras) external returns (bool);
  function historicalRewards() external view returns (uint256);
  function lastTimeRewardApplicable() external view returns (uint256);
  function lastUpdateTime() external view returns (uint256);
  function newRewardRatio() external view returns (uint256);
  function operator() external view returns (address);
  function periodFinish() external view returns (uint256);
  function pid() external view returns (uint256);
  function queueNewRewards(uint256 _rewards) external returns (bool);
  function queuedRewards() external view returns (uint256);
  function rewardManager() external view returns (address);
  function rewardPerToken() external view returns (uint256);
  function rewardPerTokenStored() external view returns (uint256);
  function rewardRate() external view returns (uint256);
  function rewardToken() external view returns (address);
  function rewards(address) external view returns (uint256);
  function stake(uint256 _amount) external returns (bool);
  function stakeAll() external returns (bool);
  function stakeFor(address _for, uint256 _amount) external returns (bool);
  function stakingToken() external view returns (address);
  function totalSupply() external view returns (uint256);
  function userRewardPerTokenPaid(address) external view returns (uint256);
  function withdraw(uint256 amount, bool claim) external returns (bool);
  function withdrawAll(bool claim) external;
  function withdrawAllAndUnwrap(bool claim) external;
  function withdrawAndUnwrap(uint256 amount, bool claim) external returns (bool);
}


// File contracts/Staking/FraxUnifiedFarmTemplate.sol

pragma experimental ABIEncoderV2;

// ====================================================================
// |     ______                   _______                             |
// |    / _____________ __  __   / ____(_____  ____ _____  ________   |
// |   / /_  / ___/ __ `| |/_/  / /_  / / __ \/ __ `/ __ \/ ___/ _ \  |
// |  / __/ / /  / /_/ _>  <   / __/ / / / / / /_/ / / / / /__/  __/  |
// | /_/   /_/   \__,_/_/|_|  /_/   /_/_/ /_/\__,_/_/ /_/\___/\___/   |
// |                                                                  |
// ====================================================================
// ====================== FraxUnifiedFarmTemplate =====================
// ====================================================================
// Migratable 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
// Sam Sun: https://github.com/samczsun

// 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

contract FraxUnifiedFarmTemplate is Owned, ReentrancyGuard {
    using SafeERC20 for ERC20;

    /* ========== STATE VARIABLES ========== */

    // Instances
    IveFXS private veFXS = IveFXS(0xc8418aF6358FFddA74e09Ca9CC3Fe03Ca6aDC5b0);
    
    // Frax related
    address internal constant frax_address = 0x853d955aCEf822Db058eb8505911ED77F175b99e;
    bool internal frax_is_token0;
    uint256 public fraxPerLPStored;

    // Constant for various precisions
    uint256 internal constant MULTIPLIER_PRECISION = 1e18;

    // Time tracking
    uint256 public periodFinish;
    uint256 public lastUpdateTime;

    // Lock time and multiplier settings
    uint256 public lock_max_multiplier = uint256(3e18); // E18. 1x = e18
    uint256 public lock_time_for_max_multiplier = 3 * 365 * 86400; // 3 years
    // uint256 public lock_time_for_max_multiplier = 2 * 86400; // 2 days
    uint256 public lock_time_min = 86400; // 1 * 86400  (1 day)

    // 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(2e18); // 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
    mapping(address => address) public rewardManagers; // token addr -> manager addr
    address[] internal rewardTokens;
    address[] internal gaugeControllers;
    address[] internal rewardDistributors;
    uint256[] internal rewardRatesManual;
    mapping(address => uint256) public rewardTokenAddrToIdx; // token addr -> token index
    
    // 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) internal 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;
    mapping(address => uint256) public proxy_lp_balances; // Keeps track of LP balances proxy-wide. Needed to make sure the proxy boost is kept in line

    // List of valid migrators (set by governance)
    mapping(address => bool) internal valid_migrators;

    // Stakers set which migrator(s) they want to use
    mapping(address => mapping(address => bool)) internal staker_allowed_migrators;
    mapping(address => address) public staker_designated_proxies; // Keep public so users can see on the frontend if they have a proxy

    // Admin booleans for emergencies, migrations, and overrides
    bool public stakesUnlocked; // Release locked stakes in case of emergency
    bool internal migrationsOn; // Used for migrations. Prevents new stakes, but allows LP and reward withdrawals
    bool internal withdrawalsPaused; // For emergencies
    bool internal rewardsCollectionPaused; // For emergencies
    bool internal stakingPaused; // For emergencies

    /* ========== 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 isMigrating() {
        require(migrationsOn == true, "Not in migration");
        _;
    }

    modifier updateRewardAndBalance(address account, bool sync_too) {
        _updateRewardAndBalance(account, sync_too);
        _;
    }

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

            // 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;
        periodFinish = block.timestamp + rewardsDuration;
    }

    /* ============= VIEWS ============= */

    // ------ REWARD RELATED ------

    // See if the caller_addr is a manager for the reward token 
    function isTokenManagerFor(address caller_addr, address reward_token_addr) public view returns (bool){
        if (caller_addr == owner) return true; // Contract owner
        else if (rewardManagers[reward_token_addr] == caller_addr) return true; // Reward manager
        return false; 
    }

    // All the reward tokens
    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);
    }

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

    // Amount of reward tokens an account has earned / accrued
    // Note: In the edge-case of one of the account's stake expiring since the last claim, this will
    // return a slightly inflated number
    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];
            }
        }
    }

    // Total reward tokens emitted in the given 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 ------

    // User locked liquidity / LP tokens
    function totalLiquidityLocked() external view returns (uint256) {
        return _total_liquidity_locked;
    }

    // Total locked liquidity / LP tokens
    function lockedLiquidityOf(address account) external view returns (uint256) {
        return _locked_liquidity[account];
    }

    // Total combined weight
    function totalCombinedWeight() external view returns (uint256) {
        return _total_combined_weight;
    }

    // Total 'balance' used for calculating the percent of the pool the account owns
    // Takes into account the locked stake time multiplier and veFXS multiplier
    function combinedWeightOf(address account) external view returns (uint256) {
        return _combined_weights[account];
    }

    // Calculated the combined weight for an 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 ------

    // Multiplier amount, given the length of the lock
    function lockMultiplier(uint256 secs) public view returns (uint256) {
        return Math.min(
            lock_max_multiplier,
            uint256(MULTIPLIER_PRECISION) + (
                (secs * (lock_max_multiplier - MULTIPLIER_PRECISION)) / lock_time_for_max_multiplier
            )
        ) ;
    }

    // ------ FRAX RELATED ------

    function userStakedFrax(address account) public view returns (uint256) {
        return (fraxPerLPStored * _locked_liquidity[account]) / MULTIPLIER_PRECISION;
    }

    function proxyStakedFrax(address proxy_address) public view returns (uint256) {
        return (fraxPerLPStored * proxy_lp_balances[proxy_address]) / MULTIPLIER_PRECISION;
    }

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

    // Meant to be overridden
    function fraxPerLPToken() public virtual view returns (uint256) {
        revert("Need fPLPT logic");
    }

    // ------ veFXS RELATED ------

    function minVeFXSForMaxBoost(address account) public view returns (uint256) {
        return (userStakedFrax(account) * vefxs_per_frax_for_max_boost) / MULTIPLIER_PRECISION;
    }

    function minVeFXSForMaxBoostProxy(address proxy_address) public view returns (uint256) {
        return (proxyStakedFrax(proxy_address) * vefxs_per_frax_for_max_boost) / MULTIPLIER_PRECISION;
    }

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

    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 =============== */

    // ------ MIGRATIONS ------

    // Staker can allow a migrator 
    function stakerToggleMigrator(address migrator_address) external {
        require(valid_migrators[migrator_address], "Invalid migrator address");
        staker_allowed_migrators[msg.sender][migrator_address] = !staker_allowed_migrators[msg.sender][migrator_address]; 
    }

    // Proxy can allow a staker to use their veFXS balance (the staker will have to reciprocally toggle them too)
    // Must come before 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];
        }
    }

    // Staker can allow a veFXS proxy (the proxy will have to toggle them first)
    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");
        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 {
        // Need to retro-adjust some things if the period hasn't been renewed, then start a new one
        if (sync_too){
            sync();
        }
        
        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 ------

    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
    function getReward(address destination_address) external nonReentrant returns (uint256[] memory) {
        return _getReward(msg.sender, destination_address, true);
    }

    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 updateRewardAndBalance(rewardee, true) returns (uint256[] memory rewards_before) {
        // 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]);
        }

        // Handle additional reward logic
        if (do_extra_logic) {
            _getRewardExtraLogic(rewardee, destination_address);
        }

        // Update the last reward claim time
        lastRewardClaimTime[rewardee] = block.timestamp;
    }


    // ------ FARM SYNCING ------

    // If the period expired, renew it
    function retroCatchUp() internal {
        // 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)) <= ERC20(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);

        // Update the rewards and time
        _updateStoredRewardsAndTime();

        // Update the fraxPerLPStored
        fraxPerLPStored = fraxPerLPToken();

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

    }

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

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

    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 / migrator callable ========== */
    
    // ------ FARM SYNCING ------
    // In children...

    // ------ PAUSES ------

    function setPauses(
        bool _stakingPaused,
        bool _withdrawalsPaused,
        bool _rewardsCollectionPaused
    ) external onlyByOwnGov {
        stakingPaused = _stakingPaused;
        withdrawalsPaused = _withdrawalsPaused;
        rewardsCollectionPaused = _rewardsCollectionPaused;
    }

    /* ========== RESTRICTED FUNCTIONS - Owner or timelock only ========== */
    
    function unlockStakes() external onlyByOwnGov {
        stakesUnlocked = !stakesUnlocked;
    }

    function toggleMigrations() external onlyByOwnGov {
        migrationsOn = !migrationsOn;
    }

    // Adds supported migrator address
    function toggleMigrator(address migrator_address) external onlyByOwnGov {
        valid_migrators[migrator_address] = !valid_migrators[migrator_address];
    }

    // Adds a valid veFXS proxy address
    function toggleValidVeFXSProxy(address _proxy_addr) external onlyByOwnGov {
        valid_vefxs_proxies[_proxy_addr] = !valid_vefxs_proxies[_proxy_addr];
    }

    // Added to support recovering LP Rewards and other mistaken tokens from other systems to be distributed to holders
    function recoverERC20(address tokenAddress, uint256 tokenAmount) external onlyTknMgrs(tokenAddress) {
        // Check if the desired token is a reward token
        bool isRewardToken = false;
        for (uint256 i = 0; i < rewardTokens.length; i++){ 
            if (rewardTokens[i] == tokenAddress) {
                isRewardToken = true;
                break;
            }
        }

        // 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 (
                (isRewardToken && rewardManagers[tokenAddress] == msg.sender)
                || (!isRewardToken && (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");
        }
    }

    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), "Must be >= 0");
        require((_misc_vars[4] >= 1) && (_misc_vars[5] >= 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 
    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
    function changeTokenManager(address reward_token_address, address new_manager_address) external onlyTknMgrs(reward_token_address) {
        rewardManagers[reward_token_address] = new_manager_address;
    }

    /* ========== A CHICKEN ========== */
    //
    //         ,~.
    //      ,-'__ `-,
    //     {,-'  `. }              ,')
    //    ,( a )   `-.__         ,',')~,
    //   <=.) (         `-.__,==' ' ' '}
    //     (   )                      /)
    //      `-'\   ,                    )
    //          |  \        `~.        /
    //          \   `._        \      /
    //           \     `._____,'    ,'
    //            `-.             ,'
    //               `-._     _,-'
    //                   77jj'
    //                  //_||
    //               __//--'/`
    //             ,--'/`  '
    //
    // [hjw] https://textart.io/art/vw6Sa3iwqIRGkZsN1BC2vweF/chicken
}


// File contracts/Misc_AMOs/convex/IConvexStakingWrapperFrax.sol


interface IConvexStakingWrapperFrax {
  function addRewards() 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 earned(address _account) external view returns (tuple[] memory claimable);
  function getReward(address _account, address _forwardTo) external;
  function getReward(address _account) external;
  function increaseAllowance(address spender, uint256 addedValue) external returns (bool);
  function initialize(address _curveToken, address _convexToken, address _convexPool, uint256 _poolId, address _vault) 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 registeredRewards(address) external view returns (uint256);
  function renounceOwnership() external;
  function rewardLength() external view returns (uint256);
  function rewards(uint256) external view returns (address reward_token, address reward_pool, uint128 reward_integral, uint128 reward_remaining);
  function setApprovals() 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[2] memory _accounts) external returns (bool);
  function withdraw(uint256 _amount) external;
  function withdrawAndUnwrap(uint256 _amount) external;
}


// File contracts/Misc_AMOs/convex/IDepositToken.sol


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


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 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/Staking/FraxUnifiedFarm_ERC20.sol

// ====================================================================
// |     ______                   _______                             |
// |    / _____________ __  __   / ____(_____  ____ _____  ________   |
// |   / /_  / ___/ __ `| |/_/  / /_  / / __ \/ __ `/ __ \/ ___/ _ \  |
// |  / __/ / /  / /_/ _>  <   / __/ / / / / / /_/ / / / / /__/  __/  |
// | /_/   /_/   \__,_/_/|_|  /_/   /_/_/ /_/\__,_/_/ /_/\___/\___/   |
// |                                                                  |
// ====================================================================
// ======================= FraxUnifiedFarm_ERC20 ======================
// ====================================================================
// For ERC20 Tokens
// Uses FraxUnifiedFarmTemplate.sol

// -------------------- VARIES --------------------

// Convex stkcvxFPIFRAX



// G-UNI
// import "../Misc_AMOs/gelato/IGUniPool.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 ========== */

    // -------------------- VARIES --------------------

    // Convex stkcvxFPIFRAX
    IConvexStakingWrapperFrax public stakingToken;
    I2pool public curvePool;

    // G-UNI
    // IGUniPool 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 --------------------
        // Convex stkcvxFPIFRAX
        stakingToken = IConvexStakingWrapperFrax(_stakingToken);
        curvePool = I2pool(0xf861483fa7E511fbc37487D91B6FAa803aF5d37c);

        // G-UNI
        // stakingToken = IGUniPool(_stakingToken);
        // address token0 = address(stakingToken.token0());
        // frax_is_token0 = token0 == frax_address;

        // 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 view override returns (uint256) {
        // Get the amount of FRAX 'inside' of the lp tokens
        uint256 frax_per_lp_token;

        // Convex stkcvxFPIFRAX
        // ============================================
        {
            frax_per_lp_token = curvePool.get_virtual_price();
        }

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

        // 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 ------

    // 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) {
            // This is only called for the first stake to make sure the veFXS multiplier is not cut in half
            midpoint_vefxs_multiplier = new_vefxs_multiplier;
        }
        else {
            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];
            uint256 lock_multiplier = thisStake.lock_multiplier;

            // 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 - lastRewardClaimTime[account];
                    uint256 time_after_expiry = block.timestamp - thisStake.ending_timestamp;

                    // Get the weighted-average lock_multiplier
                    uint256 numerator = (lock_multiplier * time_before_expiry) + (MULTIPLIER_PRECISION * time_after_expiry);
                    lock_multiplier = numerator / (time_before_expiry + time_after_expiry);
                }
                // Otherwise, it needs to just be 1x
                else {
                    lock_multiplier = MULTIPLIER_PRECISION;
                }
            }

            uint256 liquidity = thisStake.liquidity;
            uint256 combined_boosted_amount = (liquidity * (lock_multiplier + midpoint_vefxs_multiplier)) / MULTIPLIER_PRECISION;
            new_combined_weight = 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 _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) updateRewardAndBalance(msg.sender, true) public {
        // 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
        _total_liquidity_locked += addl_liq;
        _locked_liquidity[msg.sender] += addl_liq;
        {
            address the_proxy = getProxyFor(msg.sender);
            if (the_proxy != address(0)) proxy_lp_balances[the_proxy] += addl_liq;
        }

        // Need to call to update the combined weights
        _updateRewardAndBalance(msg.sender, false);
    }

    // Two different stake functions are needed because of delegateCall and msg.sender issues (important for migration)
    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 updateRewardAndBalance(staker_address, true) returns (bytes32) {
        require(stakingPaused == false || valid_migrators[msg.sender] == true, "Staking paused or in migration");
        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
        _total_liquidity_locked += liquidity;
        _locked_liquidity[staker_address] += liquidity;
        {
            address the_proxy = getProxyFor(staker_address);
            if (the_proxy != address(0)) proxy_lp_balances[the_proxy] += liquidity;
        }
        
        // Need to call again to make sure everything is correct
        _updateRewardAndBalance(staker_address, false);

        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 migration)
    function withdrawLocked(bytes32 kek_id, address destination_address) nonReentrant external returns (uint256) {
        require(withdrawalsPaused == false, "Withdrawals paused");
        return _withdrawLocked(msg.sender, destination_address, kek_id);
    }

    // No withdrawer == msg.sender check needed since this is only internally callable and the checks are done in the wrapper
    // functions like migrator_withdraw_locked() and withdrawLocked()
    function _withdrawLocked(
        address staker_address,
        address destination_address,
        bytes32 kek_id
    ) internal returns (uint256) {
        // Collect rewards first and then update the balances
        _getReward(staker_address, destination_address, true);

        // Get the stake and its index
        (LockedStake memory thisStake, uint256 theArrayIndex) = _getStake(staker_address, kek_id);
        require(block.timestamp >= thisStake.ending_timestamp || stakesUnlocked == true || valid_migrators[msg.sender] == true, "Stake is still locked!");
        uint256 liquidity = thisStake.liquidity;

        if (liquidity > 0) {
            // Update liquidities
            _total_liquidity_locked -= liquidity;
            _locked_liquidity[staker_address] -= liquidity;
            {
                address the_proxy = getProxyFor(staker_address);
                if (the_proxy != address(0)) proxy_lp_balances[the_proxy] -= liquidity;
            }

            // Remove the stake from the array
            delete lockedStakes[staker_address][theArrayIndex];

            // Give the tokens to the destination_address
            // Should throw if insufficient balance
            stakingToken.transfer(destination_address, liquidity);

            // Need to call again to make sure everything is correct
            _updateRewardAndBalance(staker_address, 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 - Curator / migrator callable ========== */

    // Migrator can stake for someone else (they won't be able to withdraw it back though, only staker_address can). 
    function migrator_stakeLocked_for(address staker_address, uint256 amount, uint256 secs, uint256 start_timestamp) external isMigrating {
        require(staker_allowed_migrators[staker_address][msg.sender] && valid_migrators[msg.sender], "Mig. invalid or unapproved");
        _stakeLocked(staker_address, msg.sender, amount, secs, start_timestamp);
    }

    // Used for migrations
    function migrator_withdraw_locked(address staker_address, bytes32 kek_id) external isMigrating {
        require(staker_allowed_migrators[staker_address][msg.sender] && valid_migrators[msg.sender], "Mig. invalid or unapproved");
        _withdrawLocked(staker_address, msg.sender, kek_id);
    }
    
    /* ========== RESTRICTED FUNCTIONS - Owner or timelock only ========== */

    // Inherited...

    /* ========== EVENTS ========== */

    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/Staking/Variants/FraxUnifiedFarm_ERC20_Convex_stkcvxFPIFRAX.sol



contract FraxUnifiedFarm_ERC20_Convex_stkcvxFPIFRAX 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)
    {}
}

Contract Security Audit

Contract ABI

[{"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":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":"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":"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 I2pool","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":"","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":[],"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":"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":"staker_address","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"secs","type":"uint256"},{"internalType":"uint256","name":"start_timestamp","type":"uint256"}],"name":"migrator_stakeLocked_for","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"staker_address","type":"address"},{"internalType":"bytes32","name":"kek_id","type":"bytes32"}],"name":"migrator_withdraw_locked","outputs":[],"stateMutability":"nonpayable","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"}],"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":"migrator_address","type":"address"}],"name":"stakerToggleMigrator","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":[],"name":"toggleMigrations","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"migrator_address","type":"address"}],"name":"toggleMigrator","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"}],"name":"withdrawLocked","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"}]

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106104055760003560e01c80638da5cb5b1161021a578063d42fc9b411610135578063e7f30582116100c8578063f2a8d34911610097578063f77e34d11161007c578063f77e34d1146109a8578063facefb64146109bb578063fff6cae9146109ce57600080fd5b8063f2a8d3491461098c578063f2caeb1e1461099557600080fd5b8063e7f3058214610954578063eb3c209e14610967578063ebe2b12b1461097a578063f288baf61461098357600080fd5b8063de1a655111610104578063de1a65511461091e578063e01f62bf14610931578063e1ba95d214610939578063e44b9fa51461094157600080fd5b8063d42fc9b4146108af578063d5e1a9c6146108c2578063d7400d56146108d5578063d9f96e8d146108e857600080fd5b8063b94c4dcb116101ad578063ca6df29d1161017c578063ca6df29d14610854578063cc2abd641461088a578063cdc82e801461089d578063d2010fb4146108a657600080fd5b8063b94c4dcb1461081c578063c00007b014610825578063c354382614610838578063c8f33c911461084b57600080fd5b8063a2217bc5116101e9578063a2217bc5146107e5578063aa1d4fce146107ed578063affaa7a4146107f6578063b85efd061461080957600080fd5b80638da5cb5b1461079257806391cf600a146107b25780639637927f146107c5578063a0f23476146107d257600080fd5b8063387edc861161032557806370641a36116102b857806379ba5097116102875780637f472e541161026c5780637f472e541461073e5780638980f11f146107515780638bad86a71461076457600080fd5b806379ba5097146107175780637d6ef08e1461071f57600080fd5b806370641a361461069857806372f702f3146106a05780637910d17b146106c95780637970833e146106dc57600080fd5b80635bfd9258116102f45780635bfd92581461065f57806364f2c06014610667578063693392451461066f5780636e27cef91461068f57600080fd5b8063387edc86146105e357806341a16f3f146105f65780634fd2b5361461062c57806353a47bb71461063f57600080fd5b8063218751b21161039d5780632c0c2a0a1161036c5780632c0c2a0a1461057d5780633650aff21461059057806336f89af2146105a3578063386a9525146105d957600080fd5b8063218751b2146104cc578063231b68dc1461051157806328408bab1461053457806328ef934e1461056a57600080fd5b806317b18c89116103d957806317b18c891461047e5780631c1f78eb146104915780631e090f01146104995780631face856146104b957600080fd5b80628cc2621461040a5780630d7bac4f1461043357806312edb24c146104545780631627540c14610469575b600080fd5b61041d610418366004614816565b6109d6565b60405161042a9190614831565b60405180910390f35b610446610441366004614875565b610b55565b60405190815260200161042a565b61045c610ba5565b60405161042a919061488e565b61047c610477366004614816565b610c14565b005b61044661048c3660046148dc565b610d39565b61041d610dc3565b6104ac6104a7366004614816565b610e64565b60405161042a91906148fe565b6104466104c7366004614816565b610f18565b6025546104ec9073ffffffffffffffffffffffffffffffffffffffff1681565b60405173ffffffffffffffffffffffffffffffffffffffff909116815260200161042a565b61052461051f36600461496c565b610f5d565b604051901515815260200161042a565b6104ec610542366004614816565b60236020526000908152604090205473ffffffffffffffffffffffffffffffffffffffff1681565b61047c61057836600461499f565b610fcb565b61044661058b366004614816565b61110b565b61047c61059e366004614816565b6113e9565b6104466105b1366004614816565b73ffffffffffffffffffffffffffffffffffffffff166000908152601f602052604090205490565b61044662093a8081565b61047c6105f1366004614816565b6114dc565b6104ec610604366004614816565b60106020526000908152604090205473ffffffffffffffffffffffffffffffffffffffff1681565b61044661063a366004614816565b6115c7565b6001546104ec9073ffffffffffffffffffffffffffffffffffffffff1681565b6104466115e8565b601d54610446565b61044661067d366004614816565b60156020526000908152604090205481565b61044660095481565b61041d61167c565b6024546104ec9065010000000000900473ffffffffffffffffffffffffffffffffffffffff1681565b61041d6106d73660046149e6565b6117db565b6106ef6106ea366004614a1d565b611857565b604080519586526020860194909452928401919091526060830152608082015260a00161042a565b61047c6118a5565b61044661072d366004614816565b602080526000908152604090205481565b61044661074c366004614816565b6119f0565b61047c61075f366004614a1d565b611a07565b610777610772366004614816565b611bf0565b6040805193845260208401929092529082015260600161042a565b6000546104ec9073ffffffffffffffffffffffffffffffffffffffff1681565b61047c6107c0366004614816565b611ebe565b6024546105249060ff1681565b6104466107e0366004614816565b611fb1565b61047c61206c565b610446600a5481565b61047c610804366004614816565b612145565b61047c6108173660046148dc565b612235565b61044660085481565b61041d610833366004614816565b6123de565b6104ec610846366004614816565b612466565b61044660065481565b610446610862366004614816565b73ffffffffffffffffffffffffffffffffffffffff1660009081526026602052604090205490565b61047c610898366004614a47565b6124c9565b61044660075481565b61044660045481565b6104466108bd366004614816565b612602565b61047c6108d0366004614a92565b61263e565b61047c6108e3366004614816565b61282d565b6104466108f6366004614816565b73ffffffffffffffffffffffffffffffffffffffff166000908152601e602052604090205490565b61047c61092c36600461496c565b6129d2565b601c54610446565b61047c612ab9565b61044661094f366004614adf565b612b8a565b61047c610962366004614816565b612c79565b61047c610975366004614a1d565b612dd3565b61044660055481565b610446600b5481565b610446600c5481565b6104466109a3366004614875565b612f0a565b61047c6109b6366004614b02565b613021565b61047c6109c9366004614b4e565b6131f7565b61047c6133b7565b606060006109e261167c565b60115490915067ffffffffffffffff811115610a0057610a00614b1f565b604051908082528060200260200182016040528015610a29578160200160208202803683370190505b5073ffffffffffffffffffffffffffffffffffffffff84166000908152601f602052604090205490925015610b4f5760005b601154811015610b4d5773ffffffffffffffffffffffffffffffffffffffff84166000818152601860209081526040808320858452825280832054938352601782528083208584529091529020548351670de0b6b3a76400009190859085908110610ac857610ac8614bf3565b6020026020010151610ada9190614c51565b73ffffffffffffffffffffffffffffffffffffffff87166000908152601f6020526040902054610b0a9190614c68565b610b149190614ca5565b610b1e9190614ce0565b838281518110610b3057610b30614bf3565b602090810291909101015280610b4581614cf8565b915050610a5b565b505b50919050565b600754600854600091610b9f91610b74670de0b6b3a764000083614c51565b610b7e9086614c68565b610b889190614ca5565b610b9a90670de0b6b3a7640000614ce0565b6133e7565b92915050565b60606011805480602002602001604051908101604052809291908181526020018280548015610c0a57602002820191906000526020600020905b815473ffffffffffffffffffffffffffffffffffffffff168152600190910190602001808311610bdf575b5050505050905090565b60005473ffffffffffffffffffffffffffffffffffffffff163314610cc0576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602f60248201527f4f6e6c792074686520636f6e7472616374206f776e6572206d6179207065726660448201527f6f726d207468697320616374696f6e000000000000000000000000000000000060648201526084015b60405180910390fd5b600180547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff83169081179091556040519081527f906a1c6bd7e3091ea86693dd029a831c19049ce77f1dce2ce0bab1cacbabce229060200160405180910390a150565b60006002805403610da6576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610cb7565b60028055610db733808585426133ff565b60016002559392505050565b60145460609067ffffffffffffffff811115610de157610de1614b1f565b604051908082528060200260200182016040528015610e0a578160200160208202803683370190505b50905060005b601454811015610e605762093a80610e2782612f0a565b610e319190614c68565b828281518110610e4357610e43614bf3565b602090810291909101015280610e5881614cf8565b915050610e10565b5090565b73ffffffffffffffffffffffffffffffffffffffff81166000908152602660209081526040808320805482518185028101850190935280835260609492939192909184015b82821015610f0d57838290600052602060002090600502016040518060a00160405290816000820154815260200160018201548152602001600282015481526020016003820154815260200160048201548152505081526020019060010190610ea9565b505050509050919050565b73ffffffffffffffffffffffffffffffffffffffff81166000908152602080526040812054600454670de0b6b3a764000091610f5391614c68565b610b9f9190614ca5565b6000805473ffffffffffffffffffffffffffffffffffffffff90811690841603610f8957506001610b9f565b73ffffffffffffffffffffffffffffffffffffffff828116600090815260106020526040902054818516911603610fc257506001610b9f565b50600092915050565b60245460ff610100909104161515600114611042576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601060248201527f4e6f7420696e206d6967726174696f6e000000000000000000000000000000006044820152606401610cb7565b73ffffffffffffffffffffffffffffffffffffffff8416600090815260226020908152604080832033845290915290205460ff16801561109157503360009081526021602052604090205460ff165b6110f7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601a60248201527f4d69672e20696e76616c6964206f7220756e617070726f7665640000000000006044820152606401610cb7565b61110484338585856133ff565b5050505050565b6000808061111884612466565b905073ffffffffffffffffffffffffffffffffffffffff8116156111cf576003546040517f70a0823100000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff8381166004830152909116906370a0823190602401602060405180830381865afa1580156111a6573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111ca9190614d30565b611263565b6003546040517f70a0823100000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff8681166004830152909116906370a0823190602401602060405180830381865afa15801561123f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112639190614d30565b91506000670de0b6b3a7640000600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166318160ddd6040518163ffffffff1660e01b8152600401602060405180830381865afa1580156112dd573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113019190614d30565b61130b9190614c68565b600a54600b5461131b9086614c68565b6113259190614c68565b61132f9190614ca5565b905060008073ffffffffffffffffffffffffffffffffffffffff84161561135e57611359846119f0565b611367565b611367876115c7565b905080156113b957600081611384670de0b6b3a764000088614c68565b61138e9190614ca5565b9050670de0b6b3a7640000600b54826113a79190614c68565b6113b19190614ca5565b9250506113be565b600091505b508082116113cc57806113ce565b815b9450600b548511156113e057600b5494505b50505050919050565b60005473ffffffffffffffffffffffffffffffffffffffff163314806114225750738412ebf45bac1b340bbe8f318b928c466c4e39ca33145b611488576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601560248201527f4e6f74206f776e6572206f722074696d656c6f636b00000000000000000000006044820152606401610cb7565b73ffffffffffffffffffffffffffffffffffffffff16600090815260216020526040902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00811660ff90911615179055565b6002805403611547576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610cb7565b600280556024546301000000900460ff16156115bf576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601960248201527f5265776172647320636f6c6c656374696f6e20706175736564000000000000006044820152606401610cb7565b506001600255565b6000670de0b6b3a7640000600c546115de84612602565b610f539190614c68565b600080602560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663bb7b8b806040518163ffffffff1660e01b8152600401602060405180830381865afa158015611658573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b9f9190614d30565b6060601c546000148061168f5750601d54155b156116e9576016805480602002602001604051908101604052809291908181526020018280548015610c0a57602002820191906000526020600020905b8154815260200190600101908083116116cc575050505050905090565b60115467ffffffffffffffff81111561170457611704614b1f565b60405190808252806020026020018201604052801561172d578160200160208202803683370190505b50905060005b601654811015610e6057601d5461174982612f0a565b600654611754613826565b61175e9190614c51565b6117689190614c68565b61177a90670de0b6b3a7640000614c68565b6117849190614ca5565b6016828154811061179757611797614bf3565b90600052602060002001546117ac9190614ce0565b8282815181106117be576117be614bf3565b6020908102919091010152806117d381614cf8565b915050611733565b60606002805403611848576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610cb7565b60028055610db7338484613839565b6026602052816000526040600020818154811061187357600080fd5b600091825260209091206005909102018054600182015460028301546003840154600490940154929550909350919085565b60015473ffffffffffffffffffffffffffffffffffffffff16331461194c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603560248201527f596f75206d757374206265206e6f6d696e61746564206265666f726520796f7560448201527f2063616e20616363657074206f776e65727368697000000000000000000000006064820152608401610cb7565b6000546001546040805173ffffffffffffffffffffffffffffffffffffffff93841681529290911660208301527fb532073b38c83145e3e5135377a08bf9aab55bc0fd7c1179cd4fb995d2a5159c910160405180910390a160018054600080547fffffffffffffffffffffffff000000000000000000000000000000000000000090811673ffffffffffffffffffffffffffffffffffffffff841617909155169055565b6000670de0b6b3a7640000600c546115de84610f18565b600054829073ffffffffffffffffffffffffffffffffffffffff16331480611a345750611a343382610f5d565b611a9a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601460248201527f4e6f74206f776e6572206f7220746b6e206d67720000000000000000000000006044820152606401610cb7565b6000805b601154811015611b14578473ffffffffffffffffffffffffffffffffffffffff1660118281548110611ad257611ad2614bf3565b60009182526020909120015473ffffffffffffffffffffffffffffffffffffffff1603611b025760019150611b14565b80611b0c81614cf8565b915050611a9e565b50808015611b48575073ffffffffffffffffffffffffffffffffffffffff8481166000908152601060205260409020541633145b80611b73575080158015611b73575060005473ffffffffffffffffffffffffffffffffffffffff1633145b15611b8957611b83843385613a5d565b50505050565b6040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601a60248201527f4e6f2076616c696420746f6b656e7320746f207265636f7665720000000000006044820152606401610cb7565b505050565b73ffffffffffffffffffffffffffffffffffffffff81166000908152601f60205260408120549080611c218461110b565b73ffffffffffffffffffffffffffffffffffffffff85166000908152601e602052604081205491935090158015611c7b575073ffffffffffffffffffffffffffffffffffffffff85166000908152601f6020526040902054155b15611c87575081611cc7565b73ffffffffffffffffffffffffffffffffffffffff85166000908152600d6020526040902054600290611cba9085614ce0565b611cc49190614ca5565b90505b6000915060005b73ffffffffffffffffffffffffffffffffffffffff8616600090815260266020526040902054811015611eb55773ffffffffffffffffffffffffffffffffffffffff86166000908152602660205260408120805483908110611d3257611d32614bf3565b90600052602060002090600502016040518060a001604052908160008201548152602001600182015481526020016002820154815260200160038201548152602001600482015481525050905060008160800151905042826060015111611e6257606082015173ffffffffffffffffffffffffffffffffffffffff89166000908152601960205260409020541015611e575773ffffffffffffffffffffffffffffffffffffffff88166000908152601960205260408120546060840151611df99190614c51565b90506000836060015142611e0d9190614c51565b90506000611e2382670de0b6b3a7640000614c68565b611e2d8486614c68565b611e379190614ce0565b9050611e438284614ce0565b611e4d9082614ca5565b9350505050611e62565b50670de0b6b3a76400005b60408201516000670de0b6b3a7640000611e7c8785614ce0565b611e869084614c68565b611e909190614ca5565b9050611e9c8188614ce0565b9650505050508080611ead90614cf8565b915050611cce565b50509193909250565b60005473ffffffffffffffffffffffffffffffffffffffff16331480611ef75750738412ebf45bac1b340bbe8f318b928c466c4e39ca33145b611f5d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601560248201527f4e6f74206f776e6572206f722074696d656c6f636b00000000000000000000006044820152606401610cb7565b73ffffffffffffffffffffffffffffffffffffffff166000908152600e6020526040902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00811660ff90911615179055565b6000600454600c54611fc39190614c68565b6003546040517f70a0823100000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff8581166004830152670de0b6b3a76400009283929116906370a0823190602401602060405180830381865afa15801561203e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906120629190614d30565b6115de9190614c68565b60005473ffffffffffffffffffffffffffffffffffffffff163314806120a55750738412ebf45bac1b340bbe8f318b928c466c4e39ca33145b61210b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601560248201527f4e6f74206f776e6572206f722074696d656c6f636b00000000000000000000006044820152606401610cb7565b602480547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ff81166101009182900460ff1615909102179055565b73ffffffffffffffffffffffffffffffffffffffff811660009081526021602052604090205460ff166121d4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601860248201527f496e76616c6964206d69677261746f72206164647265737300000000000000006044820152606401610cb7565b33600090815260226020908152604080832073ffffffffffffffffffffffffffffffffffffffff94909416835292905220805460ff8116157fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00909116179055565b3360016122428282613bc6565b60008061224f3387613ce8565b9150915060008583604001516122659190614ce0565b90506024546122959065010000000000900473ffffffffffffffffffffffffffffffffffffffff16333089613ead565b6040805160a0810182528881526020858101518183015281830184905260608087015190830152608080870151908301523360009081526026909152919091208054849081106122e7576122e7614bf3565b9060005260206000209060050201600082015181600001556020820151816001015560408201518160020155606082015181600301556080820151816004015590505085601c600082825461233c9190614ce0565b9091555050336000908152601e602052604081208054889290612360908490614ce0565b909155506000905061237133612466565b905073ffffffffffffffffffffffffffffffffffffffff8116156123c95773ffffffffffffffffffffffffffffffffffffffff81166000908152602080526040812080548992906123c3908490614ce0565b90915550505b506123d5336000613bc6565b50505050505050565b6060600280540361244b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610cb7565b6002805561245b33836001613839565b600160025592915050565b73ffffffffffffffffffffffffffffffffffffffff81166000908152600e602052604081205460ff1615612498575090565b5073ffffffffffffffffffffffffffffffffffffffff9081166000908152602360205260409020541690565b919050565b60005473ffffffffffffffffffffffffffffffffffffffff163314806125025750738412ebf45bac1b340bbe8f318b928c466c4e39ca33145b612568576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601560248201527f4e6f74206f776e6572206f722074696d656c6f636b00000000000000000000006044820152606401610cb7565b602480549115156301000000027fffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ffffff93151562010000027fffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ffff95151564010000000002959095167fffffffffffffffffffffffffffffffffffffffffffffffffffffff00ff00ffff909316929092179390931791909116179055565b73ffffffffffffffffffffffffffffffffffffffff81166000908152601e6020526040812054600454670de0b6b3a764000091610f5391614c68565b600054849073ffffffffffffffffffffffffffffffffffffffff1633148061266b575061266b3382610f5d565b6126d1576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601460248201527f4e6f74206f776e6572206f7220746b6e206d67720000000000000000000000006044820152606401610cb7565b73ffffffffffffffffffffffffffffffffffffffff851660009081526015602052604090205460148054869290811061270c5761270c614bf3565b9060005260206000200181905550826012601560008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020548154811061276d5761276d614bf3565b600091825260208083209190910180547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff9485161790559187168152601590915260409020546013805484929081106127de576127de614bf3565b9060005260206000200160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505050505050565b73ffffffffffffffffffffffffffffffffffffffff81166000908152600e602052604090205460ff166128bc576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600d60248201527f496e76616c69642070726f7879000000000000000000000000000000000000006044820152606401610cb7565b73ffffffffffffffffffffffffffffffffffffffff81166000908152600f6020908152604080832033845290915290205460ff16612956576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f50726f787920686173206e6f7420616c6c6f77656420796f75207965740000006044820152606401610cb7565b33600090815260236020908152604080832080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff8616908117909155601e83528184205490845291805282208054919290916129ca908490614ce0565b909155505050565b600054829073ffffffffffffffffffffffffffffffffffffffff163314806129ff57506129ff3382610f5d565b612a65576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601460248201527f4e6f74206f776e6572206f7220746b6e206d67720000000000000000000000006044820152606401610cb7565b5073ffffffffffffffffffffffffffffffffffffffff918216600090815260106020526040902080547fffffffffffffffffffffffff00000000000000000000000000000000000000001691909216179055565b60005473ffffffffffffffffffffffffffffffffffffffff16331480612af25750738412ebf45bac1b340bbe8f318b928c466c4e39ca33145b612b58576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601560248201527f4e6f74206f776e6572206f722074696d656c6f636b00000000000000000000006044820152606401610cb7565b602480547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00811660ff90911615179055565b60006002805403612bf7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610cb7565b6002805560245462010000900460ff1615612c6e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601260248201527f5769746864726177616c732070617573656400000000000000000000000000006044820152606401610cb7565b610db733838561404b565b336000908152600e602052604090205460ff16612cf2576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600d60248201527f496e76616c69642070726f7879000000000000000000000000000000000000006044820152606401610cb7565b336000818152600f6020908152604080832073ffffffffffffffffffffffffffffffffffffffff8681168552908352818420805460ff8116157fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff009091161790556023909252909120541603612dd05773ffffffffffffffffffffffffffffffffffffffff8116600090815260236020908152604080832080547fffffffffffffffffffffffff0000000000000000000000000000000000000000169055601e82528083205433845291805282208054919290916129ca908490614c51565b50565b60245460ff610100909104161515600114612e4a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601060248201527f4e6f7420696e206d6967726174696f6e000000000000000000000000000000006044820152606401610cb7565b73ffffffffffffffffffffffffffffffffffffffff8216600090815260226020908152604080832033845290915290205460ff168015612e9957503360009081526021602052604090205460ff165b612eff576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601a60248201527f4d69672e20696e76616c6964206f7220756e617070726f7665640000000000006044820152606401610cb7565b611beb82338361404b565b60008060128381548110612f2057612f20614bf3565b60009182526020909120015473ffffffffffffffffffffffffffffffffffffffff1690508015612ffb57670de0b6b3a7640000601a8481548110612f6657612f66614bf3565b90600052602060002001548273ffffffffffffffffffffffffffffffffffffffff16630a3be7576040518163ffffffff1660e01b8152600401602060405180830381865afa158015612fbc573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612fe09190614d30565b612fea9190614c68565b612ff49190614ca5565b9150610b4f565b6014838154811061300e5761300e614bf3565b9060005260206000200154915050919050565b60005b6012548110156131f35760006012828154811061304357613043614bf3565b60009182526020909120015473ffffffffffffffffffffffffffffffffffffffff16905080156131e05782806130955750601b828154811061308757613087614bf3565b906000526020600020015442115b156131e0576040517f6472eee100000000000000000000000000000000000000000000000000000000815230600482015242602482015273ffffffffffffffffffffffffffffffffffffffff821690636472eee1906044016020604051808303816000875af115801561310c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906131309190614d30565b601a838154811061314357613143614bf3565b90600052602060002001819055508073ffffffffffffffffffffffffffffffffffffffff1663513872bd6040518163ffffffff1660e01b8152600401602060405180830381865afa15801561319c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906131c09190614d30565b601b83815481106131d3576131d3614bf3565b6000918252602090912001555b50806131eb81614cf8565b915050613024565b5050565b60005473ffffffffffffffffffffffffffffffffffffffff163314806132305750738412ebf45bac1b340bbe8f318b928c466c4e39ca33145b613296576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601560248201527f4e6f74206f776e6572206f722074696d656c6f636b00000000000000000000006044820152606401610cb7565b8051670de0b6b3a76400001115613309576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601360248201527f4d757374206265203e3d204d554c2050524543000000000000000000000000006044820152606401610cb7565b6080810151600111801590613323575060a0810151600111155b613389576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600c60248201527f4d757374206265203e3d203100000000000000000000000000000000000000006044820152606401610cb7565b80516007556020810151600b556040810151600c556060810151600a55608081015160085560a00151600955565b6133c16000613021565b6133c96115e8565b60045560055442106133df576133dd61434c565b565b6133dd61467f565b60008183106133f657816133f8565b825b9392505050565b600085600161340e8282613bc6565b602454640100000000900460ff16158061343c57503360009081526021602052604090205460ff1615156001145b6134a2576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601e60248201527f5374616b696e6720706175736564206f7220696e206d6967726174696f6e00006044820152606401610cb7565b60095485101561350e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601a60248201527f4d696e696d756d207374616b652074696d65206e6f74206d65740000000000006044820152606401610cb7565b60085485111561357a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601b60248201527f547279696e6720746f206c6f636b20666f7220746f6f206c6f6e6700000000006044820152606401610cb7565b6024546135a89065010000000000900473ffffffffffffffffffffffffffffffffffffffff16883089613ead565b60006135b386610b55565b73ffffffffffffffffffffffffffffffffffffffff8a166000908152601e602090815260408083205490517fffffffffffffffffffffffffffffffffffffffff00000000000000000000000060608f901b169281019290925260348201899052605482018b9052607482015291925090609401604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0818403018152828252805160209182012073ffffffffffffffffffffffffffffffffffffffff8e1660009081526026835283902060a0850184528185529184018a90529183018b905290925090606081016136a68a8a614ce0565b815260209081018590528254600181810185556000948552828520845160059093020191825591830151918101919091556040820151600282015560608201516003820155608090910151600490910155601c80548a9290613709908490614ce0565b909155505073ffffffffffffffffffffffffffffffffffffffff8a166000908152601e6020526040812080548a9290613743908490614ce0565b90915550600090506137548b612466565b905073ffffffffffffffffffffffffffffffffffffffff8116156137ac5773ffffffffffffffffffffffffffffffffffffffff81166000908152602080526040812080548b92906137a6908490614ce0565b90915550505b506137b88a6000613bc6565b604080518981526020810189905290810182905273ffffffffffffffffffffffffffffffffffffffff8a811660608301528b16907ff400e72e69ef4402819dfc57eeddc66f5eb69bf405e0e8098b1946ec1ac14a229060800160405180910390a29998505050505050505050565b6000613834426005546133e7565b905090565b60608360016138488282613bc6565b6024546301000000900460ff16156138bc576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601960248201527f5265776172647320636f6c6c656374696f6e20706175736564000000000000006044820152606401610cb7565b60115467ffffffffffffffff8111156138d7576138d7614b1f565b604051908082528060200260200182016040528015613900578160200160208202803683370190505b50925060005b601154811015613a2a5773ffffffffffffffffffffffffffffffffffffffff87166000908152601860209081526040808320848452909152902054845185908390811061395557613955614bf3565b60209081029190910181019190915273ffffffffffffffffffffffffffffffffffffffff8816600090815260188252604080822084835290925290812081905584518590839081106139a9576139a9614bf3565b60200260200101511115613a1857613a18601182815481106139cd576139cd614bf3565b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1687868481518110613a0b57613a0b614bf3565b6020026020010151613a5d565b80613a2281614cf8565b915050613906565b50505073ffffffffffffffffffffffffffffffffffffffff90931660009081526019602052604090204290555090919050565b6040805173ffffffffffffffffffffffffffffffffffffffff8481166024830152604480830185905283518084039091018152606490920183526020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fa9059cbb000000000000000000000000000000000000000000000000000000001790529151600092839290871691613af49190614d75565b6000604051808303816000865af19150503d8060008114613b31576040519150601f19603f3d011682016040523d82523d6000602084013e613b36565b606091505b5091509150818015613b60575080511580613b60575080806020019051810190613b609190614d91565b611104576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5472616e7366657248656c7065723a205452414e534645525f4641494c4544006044820152606401610cb7565b8015613bd457613bd46133b7565b73ffffffffffffffffffffffffffffffffffffffff8216156131f3576000806000613bfe85611bf0565b925092509250613c0d856146f2565b73ffffffffffffffffffffffffffffffffffffffff85166000908152600d60205260409020829055828110613c91576000613c488483614c51565b905080601d54613c589190614ce0565b601d55613c658185614ce0565b73ffffffffffffffffffffffffffffffffffffffff87166000908152601f602052604090205550611104565b6000613c9d8285614c51565b905080601d54613cad9190614c51565b601d55613cba8185614c51565b73ffffffffffffffffffffffffffffffffffffffff87166000908152601f6020526040902055505050505050565b613d1d6040518060a0016040528060008019168152602001600081526020016000815260200160008152602001600081525090565b6000805b73ffffffffffffffffffffffffffffffffffffffff8516600090815260266020526040902054811015613e3b5773ffffffffffffffffffffffffffffffffffffffff85166000908152602660205260409020805482908110613d8557613d85614bf3565b9060005260206000209060050201600001548403613e295773ffffffffffffffffffffffffffffffffffffffff85166000908152602660205260409020805482908110613dd457613dd4614bf3565b90600052602060002090600502016040518060a0016040529081600082015481526020016001820154815260200160028201548152602001600382015481526020016004820154815250509250809150613e3b565b80613e3381614cf8565b915050613d21565b5081518314613ea6576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600f60248201527f5374616b65206e6f7420666f756e6400000000000000000000000000000000006044820152606401610cb7565b9250929050565b6040805173ffffffffffffffffffffffffffffffffffffffff85811660248301528481166044830152606480830185905283518084039091018152608490920183526020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167f23b872dd000000000000000000000000000000000000000000000000000000001790529151600092839290881691613f4c9190614d75565b6000604051808303816000865af19150503d8060008114613f89576040519150601f19603f3d011682016040523d82523d6000602084013e613f8e565b606091505b5091509150818015613fb8575080511580613fb8575080806020019051810190613fb89190614d91565b614043576040517f08c379a0000000000000000000000000000000000000000000000000000000008152602060048201526024808201527f5472616e7366657248656c7065723a205452414e534645525f46524f4d5f464160448201527f494c4544000000000000000000000000000000000000000000000000000000006064820152608401610cb7565b505050505050565b600061405984846001613839565b506000806140678685613ce8565b91509150816060015142101580614085575060245460ff1615156001145b806140a457503360009081526021602052604090205460ff1615156001145b61410a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601660248201527f5374616b65206973207374696c6c206c6f636b656421000000000000000000006044820152606401610cb7565b604082015180156143425780601c60008282546141279190614c51565b909155505073ffffffffffffffffffffffffffffffffffffffff87166000908152601e602052604081208054839290614161908490614c51565b909155506000905061417288612466565b905073ffffffffffffffffffffffffffffffffffffffff8116156141ca5773ffffffffffffffffffffffffffffffffffffffff81166000908152602080526040812080548492906141c4908490614c51565b90915550505b5073ffffffffffffffffffffffffffffffffffffffff8716600090815260266020526040902080548390811061420257614202614bf3565b60009182526020822060059190910201818155600181018290556002810182905560038101829055600490810191909155602480546040517fa9059cbb00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff8a8116948201949094529182018490526501000000000090049091169063a9059cbb906044016020604051808303816000875af11580156142b7573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906142db9190614d91565b506142e7876000613bc6565b604080518281526020810187905273ffffffffffffffffffffffffffffffffffffffff888116828401529151918916917f1d9308f6b22a2754a1c622bb30889e8f8f956c83e524d039e9d65d5f052eb9089181900360600190a25b9695505050505050565b60005b60135481101561443d5760006013828154811061436e5761436e614bf3565b60009182526020909120015473ffffffffffffffffffffffffffffffffffffffff169050801561442a576040517f092193ab00000000000000000000000000000000000000000000000000000000815230600482015273ffffffffffffffffffffffffffffffffffffffff82169063092193ab9060240160408051808303816000875af1158015614403573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906144279190614dae565b50505b508061443581614cf8565b91505061434f565b50600062093a80600554426144529190614c51565b61445c9190614ca5565b905060005b60115481101561463f576011818154811061447e5761447e614bf3565b6000918252602090912001546040517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015273ffffffffffffffffffffffffffffffffffffffff909116906370a0823190602401602060405180830381865afa1580156144f5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906145199190614d30565b614524836001614ce0565b62093a8061453184612f0a565b61453b9190614c68565b6145459190614c68565b11156011828154811061455a5761455a614bf3565b60009182526020918290200154604080517f4e6f7420656e6f7567682072657761726420746f6b656e7320617661696c6162938101939093527f6c653a20000000000000000000000000000000000000000000000000000000009083015260601b7fffffffffffffffffffffffffffffffffffffffff0000000000000000000000001660448201526058016040516020818303038152906040529061462c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610cb79190614dd2565b508061463781614cf8565b915050614461565b5062093a8061464f826001614ce0565b6146599190614c68565b6005546146669190614ce0565b60055561467161467f565b6146796115e8565b60045550565b600061468961167c565b905060005b6016548110156146e3578181815181106146aa576146aa614bf3565b6020026020010151601682815481106146c5576146c5614bf3565b600091825260209091200155806146db81614cf8565b91505061468e565b506146ec613826565b60065550565b73ffffffffffffffffffffffffffffffffffffffff811615612dd0576000614719826109d6565b905060005b81518110156147875781818151811061473957614739614bf3565b60209081029190910181015173ffffffffffffffffffffffffffffffffffffffff8516600090815260188352604080822085835290935291909120558061477f81614cf8565b91505061471e565b5060005b8151811015611beb57601681815481106147a7576147a7614bf3565b600091825260208083209091015473ffffffffffffffffffffffffffffffffffffffff86168352601782526040808420858552909252912055806147ea81614cf8565b91505061478b565b803573ffffffffffffffffffffffffffffffffffffffff811681146124c457600080fd5b60006020828403121561482857600080fd5b6133f8826147f2565b6020808252825182820181905260009190848201906040850190845b818110156148695783518352928401929184019160010161484d565b50909695505050505050565b60006020828403121561488757600080fd5b5035919050565b6020808252825182820181905260009190848201906040850190845b8181101561486957835173ffffffffffffffffffffffffffffffffffffffff16835292840192918401916001016148aa565b600080604083850312156148ef57600080fd5b50508035926020909101359150565b602080825282518282018190526000919060409081850190868401855b8281101561495f5781518051855286810151878601528581015186860152606080820151908601526080908101519085015260a0909301929085019060010161491b565b5091979650505050505050565b6000806040838503121561497f57600080fd5b614988836147f2565b9150614996602084016147f2565b90509250929050565b600080600080608085870312156149b557600080fd5b6149be856147f2565b966020860135965060408601359560600135945092505050565b8015158114612dd057600080fd5b600080604083850312156149f957600080fd5b614a02836147f2565b91506020830135614a12816149d8565b809150509250929050565b60008060408385031215614a3057600080fd5b614a39836147f2565b946020939093013593505050565b600080600060608486031215614a5c57600080fd5b8335614a67816149d8565b92506020840135614a77816149d8565b91506040840135614a87816149d8565b809150509250925092565b60008060008060808587031215614aa857600080fd5b614ab1856147f2565b935060208501359250614ac6604086016147f2565b9150614ad4606086016147f2565b905092959194509250565b60008060408385031215614af257600080fd5b82359150614996602084016147f2565b600060208284031215614b1457600080fd5b81356133f8816149d8565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600060c08284031215614b6057600080fd5b82601f830112614b6f57600080fd5b60405160c0810181811067ffffffffffffffff82111715614bb9577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040528060c0840185811115614bce57600080fd5b845b81811015614be8578035835260209283019201614bd0565b509195945050505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600082821015614c6357614c63614c22565b500390565b6000817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615614ca057614ca0614c22565b500290565b600082614cdb577f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b500490565b60008219821115614cf357614cf3614c22565b500190565b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8203614d2957614d29614c22565b5060010190565b600060208284031215614d4257600080fd5b5051919050565b60005b83811015614d64578181015183820152602001614d4c565b83811115611b835750506000910152565b60008251614d87818460208701614d49565b9190910192915050565b600060208284031215614da357600080fd5b81516133f8816149d8565b60008060408385031215614dc157600080fd5b505080516020909101519092909150565b6020815260008251806020840152614df1816040850160208701614d49565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016919091016040019291505056fea2646970667358221220a5708ced880ced61607f8832698a622af7904e76425a2842d29c773415a5730164736f6c634300080d0033

Deployed Bytecode Sourcemap

106645:526:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;59340:529;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;61550:313;;;;;;:::i;:::-;;:::i;:::-;;;1374:25:1;;;1362:2;1347:18;61550:313:0;1228:177:1;57619:109:0;;;:::i;:::-;;;;;;;:::i;46389:141::-;;;;;;:::i;:::-;;:::i;:::-;;100778:190;;;;;;:::i;:::-;;:::i;59933:339::-;;;:::i;97529:133::-;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;62082:179::-;;;;;;:::i;:::-;;:::i;89739:23::-;;;;;;;;;;;;3738:42:1;3726:55;;;3708:74;;3696:2;3681:18;89739:23:0;3547:241:1;57283:298:0;;;;;;:::i;:::-;;:::i;:::-;;;4223:14:1;;4216:22;4198:41;;4186:2;4171:18;57283:298:0;4058:187:1;54422:60:0;;;;;;:::i;:::-;;;;;;;;;;;;;;;;105475:357;;;;;;:::i;:::-;;:::i;63630:1752::-;;;;;;:::i;:::-;;:::i;76767:161::-;;;;;;:::i;:::-;;:::i;60986:127::-;;;;;;:::i;:::-;61079:26;;61052:7;61079:26;;;:17;:26;;;;;;;60986:127;53164:48;;53206:6;53164:48;;69426:238;;;;;;:::i;:::-;;:::i;52792:49::-;;;;;;:::i;:::-;;;;;;;;;;;;;;;;62782:181;;;;;;:::i;:::-;;:::i;46157:29::-;;;;;;;;;92180:2558;;;:::i;60700:111::-;60781:22;;60700:111;;53045:55;;;;;;:::i;:::-;;;;;;;;;;;;;;52071:36;;;;;;58443:681;;;:::i;89687:45::-;;;;;;;;;;;;70133:206;;;;;;:::i;:::-;;:::i;90232:53::-;;;;;;:::i;:::-;;:::i;:::-;;;;6103:25:1;;;6159:2;6144:18;;6137:34;;;;6187:18;;;6180:34;;;;6245:2;6230:18;;6223:34;6288:3;6273:19;;6266:35;6090:3;6075:19;90232:53:0;5844:463:1;46538:271:0;;;:::i;54017:52::-;;;;;;:::i;:::-;;;;;;;;;;;;;;62971:199;;;;;;:::i;:::-;;:::i;77267:1013::-;;;;;;:::i;:::-;;:::i;94845:2589::-;;;;;;:::i;:::-;;:::i;:::-;;;;6514:25:1;;;6570:2;6555:18;;6548:34;;;;6598:18;;;6591:34;6502:2;6487:18;94845:2589:0;6312:319:1;46130:20:0;;;;;;;;;76977:161;;;;;;:::i;:::-;;:::i;54626:26::-;;;;;;;;;62364:224;;;;;;:::i;:::-;;:::i;76622:97::-;;;:::i;52160:55::-;;;;;;65526:278;;;;;;:::i;:::-;;:::i;99403:1246::-;;;;;;:::i;:::-;;:::i;51917:61::-;;;;;;69953:172;;;;;;:::i;:::-;;:::i;63178:444::-;;;;;;:::i;:::-;;:::i;51763:29::-;;;;;;97738:133;;;;;;:::i;:::-;97835:21;;97808:7;97835:21;;;:12;:21;;;;;:28;;97738:133;76113:311;;;;;;:::i;:::-;;:::i;51843:50::-;;;;;;51566:30;;;;;;61908:166;;;;;;:::i;:::-;;:::i;79323:483::-;;;;;;:::i;:::-;;:::i;66672:419::-;;;;;;:::i;:::-;;:::i;60534:128::-;;;;;;:::i;:::-;60628:26;;60601:7;60628:26;;;:17;:26;;;;;;;60534:128;79881:207;;;;;;:::i;:::-;;:::i;60370:113::-;60452:23;;60370:113;;76517:97;;;:::i;103096:259::-;;;;;;:::i;:::-;;:::i;65972:610::-;;;;;;:::i;:::-;;:::i;105868:298::-;;;;;;:::i;:::-;;:::i;51729:27::-;;;;;;52298:51;;;;;;52374:59;;;;;;57921:452;;;;;;:::i;:::-;;:::i;74792:761::-;;;;;;:::i;:::-;;:::i;78288:958::-;;;;;;:::i;:::-;;:::i;75561:363::-;;;:::i;59340:529::-;59394:27;59434;59464:17;:15;:17::i;:::-;59519:12;:19;59434:47;;-1:-1:-1;59505:34:0;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;59505:34:0;-1:-1:-1;59556:26:0;;;59585:1;59556:26;;;:17;:26;;;;;;59492:47;;-1:-1:-1;59556:30:0;59552:310;;59607:9;59602:249;59626:12;:19;59622:23;;59602:249;;;59816:16;;;;;;;:7;:16;;;;;;;;:19;;;;;;;;;59735:32;;;:23;:32;;;;;:35;;;;;;;;;59719:13;;59775:4;;59735:35;59719:10;;59833:1;;59719:13;;;;;;:::i;:::-;;;;;;;:51;;;;:::i;:::-;59689:26;;;;;;;:17;:26;;;;;;:82;;;;:::i;:::-;59688:91;;;;:::i;:::-;59687:148;;;;:::i;:::-;59671:10;59682:1;59671:13;;;;;;;;:::i;:::-;;;;;;;;;;:164;59647:3;;;;:::i;:::-;;;;59602:249;;;;59552:310;59423:446;59340:529;;;:::o;61550:313::-;61659:19;;61800:28;;61609:7;;61636:218;;61753:42;51694:4;61659:19;61753:42;:::i;:::-;61745:51;;:4;:51;:::i;:::-;61744:84;;;;:::i;:::-;61693:150;;51694:4;61693:150;:::i;:::-;61636:8;:218::i;:::-;61629:225;61550:313;-1:-1:-1;;61550:313:0:o;57619:109::-;57672:16;57708:12;57701:19;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;57619:109;:::o;46389:141::-;46869:5;;;;46855:10;:19;46847:79;;;;;;;11241:2:1;46847:79:0;;;11223:21:1;11280:2;11260:18;;;11253:30;11319:34;11299:18;;;11292:62;11390:17;11370:18;;;11363:45;11425:19;;46847:79:0;;;;;;;;;46461:14:::1;:23:::0;;;::::1;;::::0;::::1;::::0;;::::1;::::0;;;46500:22:::1;::::0;3708:74:1;;;46500:22:0::1;::::0;3696:2:1;3681:18;46500:22:0::1;;;;;;;46389:141:::0;:::o;100778:190::-;100863:7;45064:1;45670:7;;:19;45662:63;;;;;;;11657:2:1;45662:63:0;;;11639:21:1;11696:2;11676:18;;;11669:30;11735:33;11715:18;;;11708:61;11786:18;;45662:63:0;11455:355:1;45662:63:0;45064:1;45803:18;;100890:70:::1;100903:10;::::0;100927:9;100938:4;100944:15:::1;100890:12;:70::i;:::-;45020:1:::0;45982:7;:22;100883:77;100778:190;-1:-1:-1;;;100778:190:0:o;59933:339::-;60083:17;:24;59988:41;;60069:39;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;60069:39:0;;60042:66;;60126:9;60121:144;60145:17;:24;60141:28;;60121:144;;;53206:6;60221:14;60233:1;60221:11;:14::i;:::-;:32;;;;:::i;:::-;60191:24;60216:1;60191:27;;;;;;;;:::i;:::-;;;;;;;;;;:62;60171:3;;;;:::i;:::-;;;;60121:144;;;;59933:339;:::o;97529:133::-;97633:21;;;;;;;:12;:21;;;;;;;;97626:28;;;;;;;;;;;;;;;;;97593:20;;97626:28;;97633:21;;97626:28;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;97529:133;;;:::o;62082:179::-;62197:32;;;62151:7;62197:32;;;:17;:32;;;;;;62179:15;;51694:4;;62179:50;;;:::i;:::-;62178:75;;;;:::i;57283:298::-;57379:4;57414:5;;;;;;57399:20;;;;57395:136;;-1:-1:-1;57428:4:0;57421:11;;57395:136;57470:48;:33;;;;;;;:14;:33;;;;;;:48;;;:33;;:48;57466:65;;-1:-1:-1;57527:4:0;57520:11;;57466:65;-1:-1:-1;57567:5:0;57283:298;;;;:::o;105475:357::-;55523:12;;;;;;;;:20;;:12;:20;55515:49;;;;;;;12017:2:1;55515:49:0;;;11999:21:1;12056:2;12036:18;;;12029:30;12095:18;12075;;;12068:46;12131:18;;55515:49:0;11815:340:1;55515:49:0;105628:40:::1;::::0;::::1;;::::0;;;:24:::1;:40;::::0;;;;;;;105669:10:::1;105628:52:::0;;;;;;;;::::1;;:83:::0;::::1;;;-1:-1:-1::0;105700:10:0::1;105684:27;::::0;;;:15:::1;:27;::::0;;;;;::::1;;105628:83;105620:122;;;::::0;::::1;::::0;;12362:2:1;105620:122:0::1;::::0;::::1;12344:21:1::0;12401:2;12381:18;;;12374:30;12440:28;12420:18;;;12413:56;12486:18;;105620:122:0::1;12160:350:1::0;105620:122:0::1;105753:71;105766:14;105782:10;105794:6;105802:4;105808:15;105753:12;:71::i;:::-;;105475:357:::0;;;;:::o;63630:1752::-;63693:24;;;63854:20;63866:7;63854:11;:20::i;:::-;63834:40;-1:-1:-1;63905:23:0;;;;63904:81;;63959:5;;:26;;;;;:5;3726:55:1;;;63959:26:0;;;3708:74:1;63959:5:0;;;;:15;;3681:18:1;;63959:26:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;63904:81;;;63932:5;;:24;;;;;:5;3726:55:1;;;63932:24:0;;;3708:74:1;63932:5:0;;;;:15;;3681:18:1;;63932:24:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;63885:100;;64091:19;51694:4;64215:5;;;;;;;;;;;:17;;;:19;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:42;;;;:::i;:::-;64156:24;;64133:20;;64114:39;;:16;:39;:::i;:::-;:66;;;;:::i;:::-;64113:145;;;;:::i;:::-;64091:167;-1:-1:-1;64367:19:0;;64582:23;;;;64581:94;;64640:35;64665:9;64640:24;:35::i;:::-;64581:94;;;64609:28;64629:7;64609:19;:28::i;:::-;64552:123;-1:-1:-1;64696:30:0;;64692:323;;64747:27;64821:26;64778:39;51694:4;64778:16;:39;:::i;:::-;64777:70;;;;:::i;:::-;64747:100;;51694:4;64921:20;;64899:19;:42;;;;:::i;:::-;64898:67;;;;:::i;:::-;64884:81;;64727:254;64692:323;;;65014:1;65000:15;;64692:323;64397:699;65183:11;65169;:25;:53;;65211:11;65169:53;;;65197:11;65169:53;65149:74;;65313:20;;65294:16;:39;65290:84;;;65354:20;;65335:39;;65290:84;63719:1663;;;;63630:1752;;;:::o;76767:161::-;55165:5;;;;55151:10;:19;;:79;;-1:-1:-1;55188:42:0;55174:10;:56;55151:79;55143:113;;;;;;;12906:2:1;55143:113:0;;;12888:21:1;12945:2;12925:18;;;12918:30;12984:23;12964:18;;;12957:51;13025:18;;55143:113:0;12704:345:1;55143:113:0;76887:33:::1;;;::::0;;;:15:::1;:33;::::0;;;;;;76850:70;;::::1;76887:33;::::0;;::::1;76886:34;76850:70;::::0;;76767:161::o;69426:238::-;45064:1;45670:7;;:19;45662:63;;;;;;;11657:2:1;45662:63:0;;;11639:21:1;11696:2;11676:18;;;11669:30;11735:33;11715:18;;;11708:61;11786:18;;45662:63:0;11455:355:1;45662:63:0;45064:1;45803:18;;69523:23:::1;::::0;;;::::1;;;:32;69515:70;;;::::0;::::1;::::0;;13256:2:1;69515:70:0::1;::::0;::::1;13238:21:1::0;13295:2;13275:18;;;13268:30;13334:27;13314:18;;;13307:55;13379:18;;69515:70:0::1;13054:349:1::0;69515:70:0::1;-1:-1:-1::0;45020:1:0;45982:7;:22;69426:238::o;62782:181::-;62849:7;51694:4;62903:28;;62877:23;62892:7;62877:14;:23::i;:::-;:54;;;;:::i;92180:2558::-;92236:7;92317:25;92480:9;;;;;;;;;;;:27;;;:29;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;58443:681::-;58491:41;58549:23;;58576:1;58549:28;:59;;;-1:-1:-1;58581:22:0;;:27;58549:59;58545:572;;;58632:21;58625:28;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;58443:681;:::o;58545:572::-;58736:12;:19;58722:34;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;58722:34:0;;58695:61;;58776:9;58771:289;58795:21;:28;58791:32;;58771:289;;;59003:22;;58978:14;58990:1;58978:11;:14::i;:::-;58960;;58931:26;:24;:26::i;:::-;:43;;;;:::i;:::-;58930:62;;;;:::i;:::-;:69;;58995:4;58930:69;:::i;:::-;58929:96;;;;:::i;:::-;58879:21;58901:1;58879:24;;;;;;;;:::i;:::-;;;;;;;;;:165;;;;:::i;:::-;58849:24;58874:1;58849:27;;;;;;;;:::i;:::-;;;;;;;;;;:195;58825:3;;;;:::i;:::-;;;;58771:289;;70133:206;70235:16;45064:1;45670:7;;:19;45662:63;;;;;;;11657:2:1;45662:63:0;;;11639:21:1;11696:2;11676:18;;;11669:30;11735:33;11715:18;;;11708:61;11786:18;;45662:63:0;11455:355:1;45662:63:0;45064:1;45803:18;;70271:60:::1;70282:10;70294:19:::0;70315:15;70271:10:::1;:60::i;90232:53::-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;90232:53:0;;-1:-1:-1;90232:53:0;;;:::o;46538:271::-;46607:14;;;;46593:10;:28;46585:94;;;;;;;13610:2:1;46585:94:0;;;13592:21:1;13649:2;13629:18;;;13622:30;13688:34;13668:18;;;13661:62;13759:23;13739:18;;;13732:51;13800:19;;46585:94:0;13408:417:1;46585:94:0;46708:5;;;46715:14;46695:35;;;46708:5;;;;14065:34:1;;46715:14:0;;;;14130:2:1;14115:18;;14108:43;46695:35:0;;13977:18:1;46695:35:0;;;;;;;46749:14;;;;46741:22;;;;;;46749:14;;;46741:22;;;;46774:27;;;46538:271::o;62971:199::-;63049:7;51694:4;63110:28;;63077:30;63093:13;63077:15;:30::i;77267:1013::-;55368:5;;77353:12;;55368:5;;55354:10;:19;;:74;;;55377:51;55395:10;55407:20;55377:17;:51::i;:::-;55346:107;;;;;;;14364:2:1;55346:107:0;;;14346:21:1;14403:2;14383:18;;;14376:30;14442:22;14422:18;;;14415:50;14482:18;;55346:107:0;14162:344:1;55346:107:0;77435:18:::1;77477:9:::0;77472:192:::1;77496:12;:19:::0;77492:23;::::1;77472:192;;;77560:12;77541:31;;:12;77554:1;77541:15;;;;;;;;:::i;:::-;;::::0;;;::::1;::::0;;;::::1;::::0;::::1;;:31:::0;77537:116:::1;;77609:4;77593:20;;77632:5;;77537:116;77517:3:::0;::::1;::::0;::::1;:::i;:::-;;;;77472:192;;;;77890:13;:59;;;;-1:-1:-1::0;77907:42:0::1;:28:::0;;::::1;;::::0;;;:14:::1;:28;::::0;;;;;::::1;77939:10;77907:42;77890:59;77889:123;;;;77973:13;77972:14;:39;;;;-1:-1:-1::0;78005:5:0::1;::::0;::::1;;77991:10;:19;77972:39;77867:406;;;78043:66;78071:12;78085:10;78097:11;78043:27;:66::i;:::-;78124:7;77267:1013:::0;;;:::o;77867:406::-:1;78225:36;::::0;::::1;::::0;;14713:2:1;78225:36:0::1;::::0;::::1;14695:21:1::0;14752:2;14732:18;;;14725:30;14791:28;14771:18;;;14764:56;14837:18;;78225:36:0::1;14511:350:1::0;55464:1:0::1;77267:1013:::0;;;:::o;94845:2589::-;95148:26;;;94946:27;95148:26;;;:17;:26;;;;;;;94946:27;95335:24;95166:7;95335:15;:24::i;:::-;95420:26;;;95372:33;95420:26;;;:17;:26;;;;;;95312:47;;-1:-1:-1;95372:33:0;95420:31;:66;;;;-1:-1:-1;95455:26:0;;;;;;;:17;:26;;;;;;:31;95420:66;95416:386;;;-1:-1:-1;95640:20:0;95416:386;;;95754:31;;;;;;;:22;:31;;;;;;95789:1;;95731:54;;:20;:54;:::i;:::-;95730:60;;;;:::i;:::-;95702:88;;95416:386;95937:1;95915:23;;95954:9;95949:1478;95973:21;;;;;;;:12;:21;;;;;:28;95969:32;;95949:1478;;;96054:21;;;96023:28;96054:21;;;:12;:21;;;;;:24;;96076:1;;96054:24;;;;;;:::i;:::-;;;;;;;;;;;96023:55;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;96093:23;96119:9;:25;;;96093:51;;96234:15;96204:9;:26;;;:45;96200:947;;96437:26;;;;96406:28;;;;;;;:19;:28;;;;;;:57;96402:730;;;96545:28;;;96487:26;96545:28;;;:19;:28;;;;;;96516:26;;;;:57;;96545:28;96516:57;:::i;:::-;96487:86;;96596:25;96642:9;:26;;;96624:15;:44;;;;:::i;:::-;96596:72;-1:-1:-1;96758:17:0;96820:40;96596:72;51694:4;96820:40;:::i;:::-;96779:36;96797:18;96779:15;:36;:::i;:::-;96778:83;;;;:::i;:::-;96758:103;-1:-1:-1;96915:38:0;96936:17;96915:18;:38;:::i;:::-;96902:52;;:9;:52;:::i;:::-;96884:70;;96464:510;;;96402:730;;;-1:-1:-1;51694:4:0;96402:730;97183:19;;;;97163:17;51694:4;97265:43;97283:25;97265:15;:43;:::i;:::-;97252:57;;:9;:57;:::i;:::-;97251:82;;;;:::i;:::-;97217:116;-1:-1:-1;97370:45:0;97217:116;97370:19;:45;:::i;:::-;97348:67;;96008:1419;;;;96003:3;;;;;:::i;:::-;;;;95949:1478;;;;95075:2359;94845:2589;;;;;:::o;76977:161::-;55165:5;;;;55151:10;:19;;:79;;-1:-1:-1;55188:42:0;55174:10;:56;55151:79;55143:113;;;;;;;12906:2:1;55143:113:0;;;12888:21:1;12945:2;12925:18;;;12918:30;12984:23;12964:18;;;12957:51;13025:18;;55143:113:0;12704:345:1;55143:113:0;77098:32:::1;;;::::0;;;:19:::1;:32;::::0;;;;;;77062:68;;::::1;77098:32;::::0;;::::1;77097:33;77062:68;::::0;;76977:161::o;62364:224::-;62430:7;62564:15;;62533:28;;:46;;;;:::i;:::-;62458:5;;:24;;;;;:5;3726:55:1;;;62458:24:0;;;3708:74:1;51694:4:0;;;;62458:5;;;:15;;3681:18:1;;62458:24:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:47;;;;:::i;76622:97::-;55165:5;;;;55151:10;:19;;:79;;-1:-1:-1;55188:42:0;55174:10;:56;55151:79;55143:113;;;;;;;12906:2:1;55143:113:0;;;12888:21:1;12945:2;12925:18;;;12918:30;12984:23;12964:18;;;12957:51;13025:18;;55143:113:0;12704:345:1;55143:113:0;76699:12:::1;::::0;;76683:28;;::::1;76699:12;::::0;;;::::1;;;76698:13;76683:28:::0;;::::1;;::::0;;76622:97::o;65526:278::-;65610:33;;;;;;;:15;:33;;;;;;;;65602:70;;;;;;;15068:2:1;65602:70:0;;;15050:21:1;15107:2;15087:18;;;15080:30;15146:26;15126:18;;;15119:54;15190:18;;65602:70:0;14866:348:1;65602:70:0;65766:10;65741:36;;;;:24;:36;;;;;;;;;:54;;;;;;;;;;;;;;;65740:55;65683:112;;;;;;;65526:278::o;99403:1246::-;99484:10;99496:4;55667:42;55691:7;55700:8;55667:23;:42::i;:::-;99561:28:::1;99591:21:::0;99616:29:::1;99626:10;99638:6;99616:9;:29::i;:::-;99560:85;;;;99695:15;99735:8;99713:9;:19;;;:30;;;;:::i;:::-;99695:48:::0;-1:-1:-1;99914:12:0::1;::::0;99874:91:::1;::::0;99914:12;;::::1;;;99929:10;99949:4;99956:8:::0;99874:31:::1;:91::i;:::-;100049:186;::::0;;::::1;::::0;::::1;::::0;;;;;::::1;100096:25:::0;;::::1;::::0;100049:186;;::::1;::::0;;;;;;;;100158:26;;::::1;::::0;100049:186;;;;;100199:25;;::::1;::::0;100049:186;;;;100020:10:::1;-1:-1:-1::0;100007:24:0;;;:12:::1;:24:::0;;;;;;;:39;;100032:13;;100007:39;::::1;;;;;:::i;:::-;;;;;;;;;;;:228;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;100306:8;100279:23;;:35;;;;;;;:::i;:::-;::::0;;;-1:-1:-1;;100343:10:0::1;100325:29;::::0;;;:17:::1;:29;::::0;;;;:41;;100358:8;;100325:29;:41:::1;::::0;100358:8;;100325:41:::1;:::i;:::-;::::0;;;-1:-1:-1;100392:17:0::1;::::0;-1:-1:-1;100412:23:0::1;100424:10;100412:11;:23::i;:::-;100392:43:::0;-1:-1:-1;100454:23:0::1;::::0;::::1;::::0;100450:69:::1;;100479:28;::::0;::::1;;::::0;;;:17:::1;:28:::0;;;;;:40;;100511:8;;100479:28;:40:::1;::::0;100511:8;;100479:40:::1;:::i;:::-;::::0;;;-1:-1:-1;;100450:69:0::1;100377:154;100599:42;100623:10;100635:5;100599:23;:42::i;:::-;99509:1140;;;99403:1246:::0;;;;:::o;69953:172::-;70032:16;45064:1;45670:7;;:19;45662:63;;;;;;;11657:2:1;45662:63:0;;;11639:21:1;11696:2;11676:18;;;11669:30;11735:33;11715:18;;;11708:61;11786:18;;45662:63:0;11455:355:1;45662:63:0;45064:1;45803:18;;70068:49:::1;70079:10;70091:19:::0;70112:4:::1;70068:10;:49::i;:::-;45020:1:::0;45982:7;:22;70061:56;69953:172;-1:-1:-1;;69953:172:0:o;63178:444::-;63257:25;;;63234:7;63257:25;;;:19;:25;;;;;;;;63253:362;;;-1:-1:-1;63460:4:0;63178:444::o;63253:362::-;-1:-1:-1;63572:31:0;;;;;;;;:25;:31;;;;;;;;63178:444::o;63253:362::-;63178:444;;;:::o;76113:311::-;55165:5;;;;55151:10;:19;;:79;;-1:-1:-1;55188:42:0;55174:10;:56;55151:79;55143:113;;;;;;;12906:2:1;55143:113:0;;;12888:21:1;12945:2;12925:18;;;12918:30;12984:23;12964:18;;;12957:51;13025:18;;55143:113:0;12704:345:1;55143:113:0;76276:13:::1;:30:::0;;76366:50;::::1;;::::0;::::1;::::0;76317:38;::::1;;::::0;::::1;::::0;76276:30;::::1;;::::0;::::1;76317:38:::0;;;;;;;;;;;;;;;::::1;76366:50:::0;;;::::1;;::::0;;76113:311::o;61908:166::-;62016:26;;;61970:7;62016:26;;;:17;:26;;;;;;61998:15;;51694:4;;61998:44;;;:::i;79323:483::-;55368:5;;79489:20;;55368:5;;55354:10;:19;;:74;;;55377:51;55395:10;55407:20;55377:17;:51::i;:::-;55346:107;;;;;;;14364:2:1;55346:107:0;;;14346:21:1;14403:2;14383:18;;;14376:30;14442:22;14422:18;;;14415:50;14482:18;;55346:107:0;14162:344:1;55346:107:0;79540:42:::1;::::0;::::1;;::::0;;;:20:::1;:42;::::0;;;;;79522:17:::1;:61:::0;;79586:9;;79540:42;79522:61;::::1;;;;;:::i;:::-;;;;;;;;:73;;;;79669:25;79606:16;79623:20;:42;79644:20;79623:42;;;;;;;;;;;;;;;;79606:60;;;;;;;;:::i;:::-;;::::0;;;::::1;::::0;;;;;;::::1;:88:::0;;;::::1;;::::0;;::::1;;::::0;;79724:42;;::::1;::::0;;:20:::1;:42:::0;;;;;;;79705:18:::1;:62:::0;;79770:28;;79724:42;79705:62;::::1;;;;;:::i;:::-;;;;;;;;;:93;;;;;;;;;;;;;;;;;;79323:483:::0;;;;;:::o;66672:419::-;66752:34;;;;;;;:19;:34;;;;;;;;66744:60;;;;;;;15766:2:1;66744:60:0;;;15748:21:1;15805:2;15785:18;;;15778:30;15844:15;15824:18;;;15817:43;15877:18;;66744:60:0;15564:337:1;66744:60:0;66823:36;;;;;;;:21;:36;;;;;;;;66860:10;66823:48;;;;;;;;;;66815:90;;;;;;;16108:2:1;66815:90:0;;;16090:21:1;16147:2;16127:18;;;16120:30;16186:31;16166:18;;;16159:59;16235:18;;66815:90:0;15906:353:1;66815:90:0;66942:10;66916:37;;;;:25;:37;;;;;;;;:53;;;;:37;:53;;;;;;;;67054:17;:29;;;;;;67018:32;;;;;;;;:65;;67054:29;;67018:32;;:65;;67054:29;;67018:65;:::i;:::-;;;;-1:-1:-1;;;66672:419:0:o;79881:207::-;55368:5;;79989:20;;55368:5;;55354:10;:19;;:74;;;55377:51;55395:10;55407:20;55377:17;:51::i;:::-;55346:107;;;;;;;14364:2:1;55346:107:0;;;14346:21:1;14403:2;14383:18;;;14376:30;14442:22;14422:18;;;14415:50;14482:18;;55346:107:0;14162:344:1;55346:107:0;-1:-1:-1;80022:36:0::1;::::0;;::::1;;::::0;;;:14:::1;:36;::::0;;;;:58;;;::::1;::::0;;;::::1;;::::0;;79881:207::o;76517:97::-;55165:5;;;;55151:10;:19;;:79;;-1:-1:-1;55188:42:0;55174:10;:56;55151:79;55143:113;;;;;;;12906:2:1;55143:113:0;;;12888:21:1;12945:2;12925:18;;;12918:30;12984:23;12964:18;;;12957:51;13025:18;;55143:113:0;12704:345:1;55143:113:0;76592:14:::1;::::0;;76574:32;;::::1;76592:14;::::0;;::::1;76591:15;76574:32;::::0;;76517:97::o;103096:259::-;103196:7;45064:1;45670:7;;:19;45662:63;;;;;;;11657:2:1;45662:63:0;;;11639:21:1;11696:2;11676:18;;;11669:30;11735:33;11715:18;;;11708:61;11786:18;;45662:63:0;11455:355:1;45662:63:0;45064:1;45803:18;;103224:17:::1;::::0;;;::::1;;;:26;103216:57;;;::::0;::::1;::::0;;16466:2:1;103216:57:0::1;::::0;::::1;16448:21:1::0;16505:2;16485:18;;;16478:30;16544:20;16524:18;;;16517:48;16582:18;;103216:57:0::1;16264:342:1::0;103216:57:0::1;103291:56;103307:10;103319:19;103340:6;103291:15;:56::i;65972:610::-:0;66071:10;66051:31;;;;:19;:31;;;;;;;;66043:57;;;;;;;15766:2:1;66043:57:0;;;15748:21:1;15805:2;15785:18;;;15778:30;15844:15;15824:18;;;15817:43;15877:18;;66043:57:0;15564:337:1;66043:57:0;66186:10;66164:33;;;;:21;:33;;;;;;;;;:49;;;;;;;;;;;;;;;;66163:50;66111:102;;;;;;;66316:25;:41;;;;;;;;:55;66312:263;;66387:41;;;66439:1;66387:41;;;:25;:41;;;;;;;;:54;;;;;;66530:17;:33;;;;;;66515:10;66497:29;;;;;;;:66;;66530:33;;66497:29;;:66;;66530:33;;66497:66;:::i;66312:263::-;65972:610;:::o;105868:298::-;55523:12;;;;;;;;:20;;:12;:20;55515:49;;;;;;;12017:2:1;55515:49:0;;;11999:21:1;12056:2;12036:18;;;12029:30;12095:18;12075;;;12068:46;12131:18;;55515:49:0;11815:340:1;55515:49:0;105982:40:::1;::::0;::::1;;::::0;;;:24:::1;:40;::::0;;;;;;;106023:10:::1;105982:52:::0;;;;;;;;::::1;;:83:::0;::::1;;;-1:-1:-1::0;106054:10:0::1;106038:27;::::0;;;:15:::1;:27;::::0;;;;;::::1;;105982:83;105974:122;;;::::0;::::1;::::0;;12362:2:1;105974:122:0::1;::::0;::::1;12344:21:1::0;12401:2;12381:18;;;12374:30;12440:28;12420:18;;;12413:56;12486:18;;105974:122:0::1;12160:350:1::0;105974:122:0::1;106107:51;106123:14;106139:10;106151:6;106107:15;:51::i;57921:452::-:0;57982:16;58011:32;58046:16;58063:9;58046:27;;;;;;;;:::i;:::-;;;;;;;;;;;;;;-1:-1:-1;58088:38:0;;58084:282;;58269:4;58227:27;58255:9;58227:38;;;;;;;;:::i;:::-;;;;;;;;;58176:24;58155:67;;;:69;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:110;;;;:::i;:::-;58154:119;;;;:::i;:::-;58143:130;;58084:282;;;58326:17;58344:9;58326:28;;;;;;;;:::i;:::-;;;;;;;;;58315:39;;58000:373;57921:452;;;:::o;74792:761::-;74909:9;74904:642;74928:16;:23;74924:27;;74904:642;;;74973:32;75008:16;75025:1;75008:19;;;;;;;;:::i;:::-;;;;;;;;;;;;;;-1:-1:-1;75046:38:0;;75042:493;;75109:12;:61;;;;75144:22;75167:1;75144:25;;;;;;;;:::i;:::-;;;;;;;;;75126:15;:43;75109:61;75105:415;;;75284:106;;;;;75367:4;75284:106;;;16785:74:1;75374:15:0;16875:18:1;;;16868:34;75284:74:0;;;;;;16758:18:1;;75284:106:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;75251:27;75279:1;75251:30;;;;;;;;:::i;:::-;;;;;;;;:139;;;;75462:24;75441:57;;;:59;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;75413:22;75436:1;75413:25;;;;;;;;:::i;:::-;;;;;;;;;;:87;75105:415;-1:-1:-1;74953:3:0;;;;:::i;:::-;;;;74904:642;;;;74792:761;:::o;78288:958::-;55165:5;;;;55151:10;:19;;:79;;-1:-1:-1;55188:42:0;55174:10;:56;55151:79;55143:113;;;;;;;12906:2:1;55143:113:0;;;12888:21:1;12945:2;12925:18;;;12918:30;12984:23;12964:18;;;12957:51;13025:18;;55143:113:0;12704:345:1;55143:113:0;78697:13;;51694:4:::1;-1:-1:-1::0;78697:37:0::1;78689:69;;;::::0;::::1;::::0;;17115:2:1;78689:69:0::1;::::0;::::1;17097:21:1::0;17154:2;17134:18;;;17127:30;17193:21;17173:18;;;17166:49;17232:18;;78689:69:0::1;16913:343:1::0;78689:69:0::1;78882:13:::0;;::::1;::::0;78899:1:::1;-1:-1:-1::0;78882:18:0;::::1;::::0;78881:44:::1;;-1:-1:-1::0;78906:13:0;;::::1;::::0;78923:1:::1;-1:-1:-1::0;78906:18:0::1;78881:44;78873:69;;;::::0;::::1;::::0;;17804:2:1;78873:69:0::1;::::0;::::1;17786:21:1::0;17843:2;17823:18;;;17816:30;17882:14;17862:18;;;17855:42;17914:18;;78873:69:0::1;17602:336:1::0;78873:69:0::1;78977:13:::0;;78955:19:::1;:35:::0;78977:13:::1;79024::::0;::::1;::::0;79001:20:::1;:36:::0;79079:13;;::::1;::::0;79048:28:::1;:44:::0;79130:13;;::::1;::::0;79103:24:::1;:40:::0;79185:13;;::::1;::::0;79154:28:::1;:44:::0;79225:13;::::1;::::0;79209::::1;:29:::0;78288:958::o;75561:363::-;75644:25;75663:5;75644:18;:25::i;:::-;75739:16;:14;:16::i;:::-;75721:15;:34;75791:12;;75772:15;:31;75768:149;;75820:14;:12;:14::i;:::-;75561:363::o;75768:149::-;75876:29;:27;:29::i;522:106::-;580:7;611:1;607;:5;:13;;619:1;607:13;;;615:1;607:13;600:20;522:106;-1:-1:-1;;;522:106:0:o;101164:1758::-;101407:7;101376:14;101392:4;55667:42;55691:7;55700:8;55667:23;:42::i;:::-;101435:13:::1;::::0;;;::::1;;;:22;::::0;:61:::1;;-1:-1:-1::0;101477:10:0::1;101461:27;::::0;;;:15:::1;:27;::::0;;;;;::::1;;:35;;:27:::0;:35:::1;101435:61;101427:104;;;::::0;::::1;::::0;;18145:2:1;101427:104:0::1;::::0;::::1;18127:21:1::0;18184:2;18164:18;;;18157:30;18223:32;18203:18;;;18196:60;18273:18;;101427:104:0::1;17943:354:1::0;101427:104:0::1;101558:13;;101550:4;:21;;101542:60;;;::::0;::::1;::::0;;18504:2:1;101542:60:0::1;::::0;::::1;18486:21:1::0;18543:2;18523:18;;;18516:30;18582:28;18562:18;;;18555:56;18628:18;;101542:60:0::1;18302:350:1::0;101542:60:0::1;101629:28;;101621:4;:36;;101613:75;;;::::0;::::1;::::0;;18859:2:1;101613:75:0::1;::::0;::::1;18841:21:1::0;18898:2;18878:18;;;18871:30;18937:29;18917:18;;;18910:57;18984:18;;101613:75:0::1;18657:351:1::0;101613:75:0::1;101811:12;::::0;101771:96:::1;::::0;101811:12;;::::1;;;101826:14:::0;101850:4:::1;101857:9:::0;101771:31:::1;:96::i;:::-;101927:23;101953:20;101968:4;101953:14;:20::i;:::-;102072:33;::::0;::::1;101984:14;102072:33:::0;;;:17:::1;:33;::::0;;;;;;;;102011:95;;19259:66:1;19246:2;19242:15;;;19238:88;102011:95:0;;::::1;19226:101:1::0;;;;19343:12;;;19336:28;;;19380:12;;;19373:28;;;19417:12;;;19410:28;101927:46:0;;-1:-1:-1;101984:14:0;19454:13:1;;102011:95:0::1;::::0;;;;;::::1;::::0;;;;;;102001:106;;102011:95:::1;102001:106:::0;;::::1;::::0;102164:28:::1;::::0;::::1;;::::0;;;:12:::1;:28:::0;;;;;102198:164:::1;::::0;::::1;::::0;;;;;;;::::1;::::0;;;;;;;;;102001:106;;-1:-1:-1;102164:28:0;102198:164;;;102299:22:::1;102317:4:::0;102245:15;102299:22:::1;:::i;:::-;102198:164:::0;;::::1;::::0;;::::1;::::0;;;102164:199;;::::1;::::0;;::::1;::::0;;-1:-1:-1;102164: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;102407:23:::1;:36:::0;;102434:9;;-1:-1:-1;102407:36:0::1;::::0;102434:9;;102407:36:::1;:::i;:::-;::::0;;;-1:-1:-1;;102454:33:0::1;::::0;::::1;;::::0;;;:17:::1;:33;::::0;;;;:46;;102491:9;;102454:33;:46:::1;::::0;102491:9;;102454:46:::1;:::i;:::-;::::0;;;-1:-1:-1;102526:17:0::1;::::0;-1:-1:-1;102546:27:0::1;102558:14:::0;102546:11:::1;:27::i;:::-;102526:47:::0;-1:-1:-1;102592:23:0::1;::::0;::::1;::::0;102588:70:::1;;102617:28;::::0;::::1;;::::0;;;:17:::1;:28:::0;;;;;:41;;102649:9;;102617:28;:41:::1;::::0;102649:9;;102617:41:::1;:::i;:::-;::::0;;;-1:-1:-1;;102588:70:0::1;102511:159;102756:46;102780:14;102796:5;102756:23;:46::i;:::-;102820:68;::::0;;19709:25:1;;;19765:2;19750:18;;19743:34;;;19793:18;;;19786:34;;;102820:68:0::1;19856:55:1::0;;;19851:2;19836:18;;19829:83;102820:68:0;::::1;::::0;::::1;::::0;19696:3:1;19681:19;102820:68:0::1;;;;;;;102908:6:::0;101164:1758;-1:-1:-1;;;;;;;;;101164:1758:0:o;57780:133::-;57839:7;57866:39;57875:15;57892:12;;57866:8;:39::i;:::-;57859:46;;57780:133;:::o;70435:1006::-;70580:31;70555:8;70565:4;55667:42;55691:7;55700:8;55667:23;:42::i;:::-;70686:23:::1;::::0;;;::::1;;;:32;70678:70;;;::::0;::::1;::::0;;13256:2:1;70678:70:0::1;::::0;::::1;13238:21:1::0;13295:2;13275:18;;;13268:30;13334:27;13314:18;;;13307:55;13379:18;;70678:70:0::1;13054:349:1::0;70678:70:0::1;70860:12;:19:::0;70846:34:::1;::::0;::::1;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;-1:-1:-1;70846:34:0::1;;70829:51;;70898:9;70893:282;70917:12;:19:::0;70913:23;::::1;70893:282;;;70978:17;::::0;::::1;;::::0;;;:7:::1;:17;::::0;;;;;;;:20;;;;;;;;;70958:17;;:14;;70996:1;;70958:17;::::1;;;;;:::i;:::-;;::::0;;::::1;::::0;;;;;;:40;;;;71013:17:::1;::::0;::::1;71036:1;71013:17:::0;;;:7:::1;:17:::0;;;;;;:20;;;;;;;;;:24;;;71056:17;;:14;;71031:1;;71056:17;::::1;;;;;:::i;:::-;;;;;;;:21;71052:111;;;71079:84;71107:12;71120:1;71107:15;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;71124:19;71145:14;71160:1;71145:17;;;;;;;;:::i;:::-;;;;;;;71079:27;:84::i;:::-;70938:3:::0;::::1;::::0;::::1;:::i;:::-;;;;70893:282;;;;-1:-1:-1::0;;71386:29:0::1;::::0;;::::1;;::::0;;;:19:::1;:29;::::0;;;;71418:15:::1;71386:47:::0;;-1:-1:-1;70435:1006:0;;;-1:-1:-1;70435:1006:0:o;38700:361::-;38895:45;;;38884:10;16803:55:1;;;38895:45:0;;;16785:74:1;16875:18;;;;16868:34;;;38895:45:0;;;;;;;;;;16758:18:1;;;;38895:45:0;;;;;;;;;;;;;38884:57;;-1:-1:-1;;;;38884:10:0;;;;:57;;38895:45;38884:57;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;38848:93;;;;38960:7;:57;;;;-1:-1:-1;38972:11:0;;:16;;:44;;;39003:4;38992:24;;;;;;;;;;;;:::i;:::-;38952:101;;;;;;;20917:2:1;38952:101:0;;;20899:21:1;20956:2;20936:18;;;20929:30;20995:33;20975:18;;;20968:61;21046:18;;38952:101:0;20715:355:1;67257:1525:0;67447:8;67443:46;;;67471:6;:4;:6::i;:::-;67513:21;;;;67509:1266;;67727:27;67773:28;67820:27;67865:30;67887:7;67865:21;:30::i;:::-;67705:190;;;;;;67957:20;67969:7;67957:11;:20::i;:::-;68053:31;;;;;;;:22;:31;;;;;:54;;;68194:42;;;68190:572;;68257:19;68279:41;68301:19;68279;:41;:::i;:::-;68257:63;;68389:11;68364:22;;:36;;;;:::i;:::-;68339:22;:61;68448:33;68470:11;68448:19;:33;:::i;:::-;68419:26;;;;;;;:17;:26;;;;;:62;-1:-1:-1;68190:572:0;;;68522:19;68544:41;68566:19;68544;:41;:::i;:::-;68522:63;;68654:11;68629:22;;:36;;;;:::i;:::-;68604:22;:61;68713:33;68735:11;68713:19;:33;:::i;:::-;68684:26;;;;;;;:17;:26;;;;;:62;-1:-1:-1;67536:1239:0;;;67257:1525;;:::o;98832:508::-;98914:31;-1:-1:-1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;98914:31:0;98947:15;;98975:280;98999:28;;;;;;;:12;:28;;;;;:35;98995:39;;98975:280;;;99070:28;;;;;;;:12;:28;;;;;:31;;99099:1;;99070:31;;;;;;:::i;:::-;;;;;;;;;;;:38;;;99060:6;:48;99056:188;;99143:28;;;;;;;:12;:28;;;;;:31;;99172:1;;99143:31;;;;;;:::i;:::-;;;;;;;;;;;99128:46;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;99203:1;99193:11;;99223:5;;99056:188;99036:3;;;;:::i;:::-;;;;98975:280;;;-1:-1:-1;99273:19:0;;:29;;99265:57;;;;;;;21277:2:1;99265:57:0;;;21259:21:1;21316:2;21296:18;;;21289:30;21355:17;21335:18;;;21328:45;21390:18;;99265:57:0;21075:339:1;99265:57:0;98832:508;;;;;:::o;39069:402::-;39294:51;;;39283:10;21700:15:1;;;39294:51:0;;;21682:34:1;21752:15;;;21732:18;;;21725:43;21784:18;;;;21777:34;;;39294:51:0;;;;;;;;;;21594:18:1;;;;39294:51:0;;;;;;;;;;;;;39283:63;;-1:-1:-1;;;;39283:10:0;;;;:63;;39294:51;39283:63;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;39247:99;;;;39365:7;:57;;;;-1:-1:-1;39377:11:0;;:16;;:44;;;39408:4;39397:24;;;;;;;;;;;;:::i;:::-;39357:106;;;;;;;22024:2:1;39357:106:0;;;22006:21:1;22063:2;22043:18;;;22036:30;22102:34;22082:18;;;22075:62;22173:6;22153:18;;;22146:34;22197:19;;39357:106:0;21822:400:1;39357:106:0;39157:314;;39069:402;;;;:::o;103561:1564::-;103707:7;103790:53;103801:14;103817:19;103838:4;103790:10;:53::i;:::-;;103897:28;103927:21;103952:33;103962:14;103978:6;103952:9;:33::i;:::-;103896:89;;;;104023:9;:26;;;104004:15;:45;;:71;;;-1:-1:-1;104053:14:0;;;;:22;;:14;:22;104004:71;:110;;;-1:-1:-1;104095:10:0;104079:27;;;;:15;:27;;;;;;;;:35;;:27;:35;104004:110;103996:145;;;;;;;22429:2:1;103996:145:0;;;22411:21:1;22468:2;22448:18;;;22441:30;22507:24;22487:18;;;22480:52;22549:18;;103996:145:0;22227:346:1;103996:145:0;104172:19;;;;104208:13;;104204:885;;104300:9;104273:23;;:36;;;;;;;:::i;:::-;;;;-1:-1:-1;;104324:33:0;;;;;;;:17;:33;;;;;:46;;104361:9;;104324:33;:46;;104361:9;;104324:46;:::i;:::-;;;;-1:-1:-1;104404:17:0;;-1:-1:-1;104424:27:0;104436:14;104424:11;:27::i;:::-;104404:47;-1:-1:-1;104474:23:0;;;;104470:70;;104499:28;;;;;;;:17;:28;;;;;:41;;104531:9;;104499:28;:41;;104531:9;;104499:41;:::i;:::-;;;;-1:-1:-1;;104470:70:0;-1:-1:-1;104627:28:0;;;;;;;:12;:28;;;;;:43;;104656:13;;104627:43;;;;;;:::i;:::-;;;;;;;;;;;;;;104620:50;;;;;;;;;;;;;;;;;;;;;;;;;;;;;104799:12;;;:53;;;;;:12;16803:55:1;;;104799:53:0;;;16785:74:1;;;;16875:18;;;16868:34;;;104799:12:0;;;;;;;:21;;16758:18:1;;104799:53:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;104939:46;104963:14;104979:5;104939:23;:46::i;:::-;105007:70;;;22780:25:1;;;22836:2;22821:18;;22814:34;;;105007:70:0;22884:55:1;;;22864:18;;;22857:83;105007:70:0;;;;;;;;;;;22768:2:1;105007:70:0;;;104204:885;105108:9;103561:1564;-1:-1:-1;;;;;;103561:1564:0:o;71528:2813::-;71649:9;71644:327;71668:18;:25;71664:29;;71644:327;;;71715:34;71752:18;71771:1;71752:21;;;;;;;;:::i;:::-;;;;;;;;;;;;;;-1:-1:-1;71792:40:0;;71788:172;;71853:91;;;;;71938:4;71853:91;;;3708:74:1;71853:76:0;;;;;;3681:18:1;;71853:91:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;71788:172;-1:-1:-1;71695:3:0;;;;:::i;:::-;;;;71644:327;;;;72331:27;53206:6;72387:12;;72369:15;:30;;;;:::i;:::-;72361:57;;;;:::i;:::-;72331:87;;72557:9;72552:283;72576:12;:19;72572:23;;72552:283;;;72697:12;72710:1;72697:15;;;;;;;;:::i;:::-;;;;;;;;;;;72691:47;;;;;72732:4;72691:47;;;3708:74:1;72697:15:0;;;;;72691:32;;3681:18:1;;72691:47:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;72662:23;:19;72684:1;72662:23;:::i;:::-;53206:6;72626:14;72638:1;72626:11;:14::i;:::-;:32;;;;:::i;:::-;:60;;;;:::i;:::-;72625:113;;72804:12;72817:1;72804:15;;;;;;;;:::i;:::-;;;;;;;;;;;;72747:73;;;23443:34:1;72747:73:0;;;23431:47:1;;;;23508:6;23494:12;;;23487:28;23553:2;23549:15;;;23531:12;;;23524:110;23650:12;;72747:73:0;;;;;;;;;;;;72617:206;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1;72597:3:0;;;;:::i;:::-;;;;72552:283;;;-1:-1:-1;53206:6:0;73047:23;:19;73069:1;73047:23;:::i;:::-;73046:43;;;;:::i;:::-;73030:12;;:60;;;;:::i;:::-;73015:12;:75;73143:29;:27;:29::i;:::-;73242:16;:14;:16::i;:::-;73224:15;:34;-1:-1:-1;71528:2813:0:o;74349:435::-;74436:34;74473:17;:15;:17::i;:::-;74436:54;;74553:9;74548:133;74572:21;:28;74568:32;;74548:133;;;74649:17;74667:1;74649:20;;;;;;;;:::i;:::-;;;;;;;74622:21;74644:1;74622:24;;;;;;;;:::i;:::-;;;;;;;;;;:47;74602:3;;;;:::i;:::-;;;;74548:133;;;;74750:26;:24;:26::i;:::-;74733:14;:43;-1:-1:-1;74349:435:0:o;68790:585::-;68852:21;;;;68848:520;;68929:27;68959:15;68966:7;68959:6;:15::i;:::-;68929:45;;69037:9;69032:118;69056:10;:17;69052:1;:21;69032:118;;;69121:10;69132:1;69121:13;;;;;;;;:::i;:::-;;;;;;;;;;;;69099:16;;;;;;;:7;:16;;;;;;:19;;;;;;;;;;:35;69116:1;69075:3;69116:1;69075:3;:::i;:::-;;;;69032:118;;;;69217:9;69212:145;69236:10;:17;69232:1;:21;69212:145;;;69317:21;69339:1;69317:24;;;;;;;;:::i;:::-;;;;;;;;;;;;;69279:32;;;;;:23;:32;;;;;;:35;;;;;;;;:62;69312:1;69255:3;69312:1;69255:3;:::i;:::-;;;;69212: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:180::-;1102:6;1155:2;1143:9;1134:7;1130:23;1126:32;1123:52;;;1171:1;1168;1161:12;1123:52;-1:-1:-1;1194:23:1;;1043:180;-1:-1:-1;1043:180:1:o;1410:681::-;1581:2;1633:21;;;1703:13;;1606:18;;;1725:22;;;1552:4;;1581:2;1804:15;;;;1778:2;1763:18;;;1552:4;1847:218;1861:6;1858:1;1855:13;1847:218;;;1926:13;;1941:42;1922:62;1910:75;;2040:15;;;;2005:12;;;;1883:1;1876:9;1847:218;;2096:248;2164:6;2172;2225:2;2213:9;2204:7;2200:23;2196:32;2193:52;;;2241:1;2238;2231:12;2193:52;-1:-1:-1;;2264:23:1;;;2334:2;2319:18;;;2306:32;;-1:-1:-1;2096:248:1:o;2531:1011::-;2760:2;2812:21;;;2882:13;;2785:18;;;2904:22;;;2731:4;;2760:2;2945;;2963:18;;;;3004:15;;;2731:4;3047:469;3061:6;3058:1;3055:13;3047:469;;;3120:13;;3158:9;;3146:22;;3208:11;;;3202:18;3188:12;;;3181:40;3261:11;;;3255:18;3241:12;;;3234:40;3297:4;3341:11;;;3335:18;3321:12;;;3314:40;3377:4;3421:11;;;3415:18;3401:12;;;3394:40;3463:4;3454:14;;;;3491:15;;;;3083:1;3076:9;3047:469;;;-1:-1:-1;3533:3:1;;2531:1011;-1:-1:-1;;;;;;;2531:1011:1:o;3793:260::-;3861:6;3869;3922:2;3910:9;3901:7;3897:23;3893:32;3890:52;;;3938:1;3935;3928:12;3890:52;3961:29;3980:9;3961:29;:::i;:::-;3951:39;;4009:38;4043:2;4032:9;4028:18;4009:38;:::i;:::-;3999:48;;3793:260;;;;;:::o;4481:391::-;4567:6;4575;4583;4591;4644:3;4632:9;4623:7;4619:23;4615:33;4612:53;;;4661:1;4658;4651:12;4612:53;4684:29;4703:9;4684:29;:::i;:::-;4674:39;4760:2;4745:18;;4732:32;;-1:-1:-1;4811:2:1;4796:18;;4783:32;;4862:2;4847:18;4834:32;;-1:-1:-1;4481:391:1;-1:-1:-1;;;4481:391:1:o;5142:118::-;5228:5;5221:13;5214:21;5207:5;5204:32;5194:60;;5250:1;5247;5240:12;5265:315;5330:6;5338;5391:2;5379:9;5370:7;5366:23;5362:32;5359:52;;;5407:1;5404;5397:12;5359:52;5430:29;5449:9;5430:29;:::i;:::-;5420:39;;5509:2;5498:9;5494:18;5481:32;5522:28;5544:5;5522:28;:::i;:::-;5569:5;5559:15;;;5265:315;;;;;:::o;5585:254::-;5653:6;5661;5714:2;5702:9;5693:7;5689:23;5685:32;5682:52;;;5730:1;5727;5720:12;5682:52;5753:29;5772:9;5753:29;:::i;:::-;5743:39;5829:2;5814:18;;;;5801:32;;-1:-1:-1;;;5585:254:1:o;6889:511::-;6957:6;6965;6973;7026:2;7014:9;7005:7;7001:23;6997:32;6994:52;;;7042:1;7039;7032:12;6994:52;7081:9;7068:23;7100:28;7122:5;7100:28;:::i;:::-;7147:5;-1:-1:-1;7204:2:1;7189:18;;7176:32;7217:30;7176:32;7217:30;:::i;:::-;7266:7;-1:-1:-1;7325:2:1;7310:18;;7297:32;7338:30;7297:32;7338:30;:::i;:::-;7387:7;7377:17;;;6889:511;;;;;:::o;7405:403::-;7491:6;7499;7507;7515;7568:3;7556:9;7547:7;7543:23;7539:33;7536:53;;;7585:1;7582;7575:12;7536:53;7608:29;7627:9;7608:29;:::i;:::-;7598:39;;7684:2;7673:9;7669:18;7656:32;7646:42;;7707:38;7741:2;7730:9;7726:18;7707:38;:::i;:::-;7697:48;;7764:38;7798:2;7787:9;7783:18;7764:38;:::i;:::-;7754:48;;7405:403;;;;;;;:::o;7813:254::-;7881:6;7889;7942:2;7930:9;7921:7;7917:23;7913:32;7910:52;;;7958:1;7955;7948:12;7910:52;7994:9;7981:23;7971:33;;8023:38;8057:2;8046:9;8042:18;8023:38;:::i;8331:241::-;8387:6;8440:2;8428:9;8419:7;8415:23;8411:32;8408:52;;;8456:1;8453;8446:12;8408:52;8495:9;8482:23;8514:28;8536:5;8514:28;:::i;8577:184::-;8629:77;8626:1;8619:88;8726:4;8723:1;8716:15;8750:4;8747:1;8740:15;8766:915;8848:6;8901:3;8889:9;8880:7;8876:23;8872:33;8869:53;;;8918:1;8915;8908:12;8869:53;8967:7;8960:4;8949:9;8945:20;8941:34;8931:62;;8989:1;8986;8979:12;8931:62;9022:2;9016:9;9064:3;9056:6;9052:16;9134:6;9122:10;9119:22;9098:18;9086:10;9083:34;9080:62;9077:242;;;9175:77;9172:1;9165:88;9276:4;9273:1;9266:15;9304:4;9301:1;9294:15;9077:242;9335:2;9328:22;9370:6;9414:3;9399:19;;9430;;;9427:39;;;9462:1;9459;9452:12;9427:39;9486:9;9504:146;9520:6;9515:3;9512:15;9504:146;;;9588:17;;9576:30;;9635:4;9626:14;;;;9537;9504:146;;;-1:-1:-1;9669:6:1;;8766:915;-1:-1:-1;;;;;8766:915:1:o;9686:184::-;9738:77;9735:1;9728:88;9835:4;9832:1;9825:15;9859:4;9856:1;9849:15;9875:184;9927:77;9924:1;9917:88;10024:4;10021:1;10014:15;10048:4;10045:1;10038:15;10064:125;10104:4;10132:1;10129;10126:8;10123:34;;;10137:18;;:::i;:::-;-1:-1:-1;10174:9:1;;10064:125::o;10194:228::-;10234:7;10360:1;10292:66;10288:74;10285:1;10282:81;10277:1;10270:9;10263:17;10259:105;10256:131;;;10367:18;;:::i;:::-;-1:-1:-1;10407:9:1;;10194:228::o;10427:274::-;10467:1;10493;10483:189;;10528:77;10525:1;10518:88;10629:4;10626:1;10619:15;10657:4;10654:1;10647:15;10483:189;-1:-1:-1;10686:9:1;;10427:274::o;10706:128::-;10746:3;10777:1;10773:6;10770:1;10767:13;10764:39;;;10783:18;;:::i;:::-;-1:-1:-1;10819:9:1;;10706:128::o;10839:195::-;10878:3;10909:66;10902:5;10899:77;10896:103;;10979:18;;:::i;:::-;-1:-1:-1;11026:1:1;11015:13;;10839:195::o;12515:184::-;12585:6;12638:2;12626:9;12617:7;12613:23;12609:32;12606:52;;;12654:1;12651;12644:12;12606:52;-1:-1:-1;12677:16:1;;12515:184;-1:-1:-1;12515:184:1:o;19923:258::-;19995:1;20005:113;20019:6;20016:1;20013:13;20005:113;;;20095:11;;;20089:18;20076:11;;;20069:39;20041:2;20034:10;20005:113;;;20136:6;20133:1;20130:13;20127:48;;;-1:-1:-1;;20171:1:1;20153:16;;20146:27;19923:258::o;20186:274::-;20315:3;20353:6;20347:13;20369:53;20415:6;20410:3;20403:4;20395:6;20391:17;20369:53;:::i;:::-;20438:16;;;;;20186:274;-1:-1:-1;;20186:274:1:o;20465:245::-;20532:6;20585:2;20573:9;20564:7;20560:23;20556:32;20553:52;;;20601:1;20598;20591:12;20553:52;20633:9;20627:16;20652:28;20674:5;20652:28;:::i;22951:245::-;23030:6;23038;23091:2;23079:9;23070:7;23066:23;23062:32;23059:52;;;23107:1;23104;23097:12;23059:52;-1:-1:-1;;23130:16:1;;23186:2;23171:18;;;23165:25;23130:16;;23165:25;;-1:-1:-1;22951:245:1:o;23673:442::-;23822:2;23811:9;23804:21;23785:4;23854:6;23848:13;23897:6;23892:2;23881:9;23877:18;23870:34;23913:66;23972:6;23967:2;23956:9;23952:18;23947:2;23939:6;23935:15;23913:66;:::i;:::-;24031:2;24019:15;24036:66;24015:88;24000:104;;;;24106:2;23996:113;;23673:442;-1:-1:-1;;23673:442:1:o

Swarm Source

ipfs://a5708ced880ced61607f8832698a622af7904e76425a2842d29c773415a57301

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

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

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
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.