ETH Price: $3,217.43 (+0.72%)

Contract

0xb324b2BD8a3Dc55b04111E84d5cce0c3771F8889
 

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Sync206022252024-08-25 1:07:4781 days ago1724548067IN
0xb324b2BD...3771F8889
0 ETH0.000392151.10683799
Sync205306032024-08-15 0:58:5991 days ago1723683539IN
0xb324b2BD...3771F8889
0 ETH0.001347261.27887969
Stake Locked198028762024-05-05 9:03:59192 days ago1714899839IN
0xb324b2BD...3771F8889
0 ETH0.003687336.22408333
Sync197564222024-04-28 21:13:35199 days ago1714338815IN
0xb324b2BD...3771F8889
0 ETH0.005235146.1426325
Sync190734552024-01-24 2:14:47295 days ago1706062487IN
0xb324b2BD...3771F8889
0 ETH0.001128149.43344907
Sync181141612023-09-11 16:00:11429 days ago1694448011IN
0xb324b2BD...3771F8889
0 ETH0.008000331.3605737
Sync177797162023-07-26 20:43:35476 days ago1690404215IN
0xb324b2BD...3771F8889
0 ETH0.0047546240.20180181
Sync174787142023-06-14 14:16:35518 days ago1686752195IN
0xb324b2BD...3771F8889
0 ETH0.0053451732.19187896
Get Reward173082252023-05-21 14:06:11542 days ago1684677971IN
0xb324b2BD...3771F8889
0 ETH0.0062558231.79630878
Withdraw Locked173082252023-05-21 14:06:11542 days ago1684677971IN
0xb324b2BD...3771F8889
0 ETH0.0210019331.79630878
Sync171451752023-04-28 14:19:47565 days ago1682691587IN
0xb324b2BD...3771F8889
0 ETH0.0099895847.87584194
Sync169221782023-03-28 0:08:23597 days ago1679962103IN
0xb324b2BD...3771F8889
0 ETH0.0073530862.87486559
Withdraw Locked168042572023-03-11 10:30:23613 days ago1678530623IN
0xb324b2BD...3771F8889
0 ETH0.0380525171.78012682
Sync167511252023-03-03 23:06:59621 days ago1677884819IN
0xb324b2BD...3771F8889
0 ETH0.0033115628.3165771
Get Reward167021942023-02-25 1:59:47628 days ago1677290387IN
0xb324b2BD...3771F8889
0 ETH0.0074283822.40746575
Get Reward162896962022-12-29 10:03:47685 days ago1672308227IN
0xb324b2BD...3771F8889
0 ETH0.0066707114.61568933
Stake Locked155961672022-09-23 12:52:23782 days ago1663937543IN
0xb324b2BD...3771F8889
0 ETH0.006041169.28230039
Stake Locked155799432022-09-21 6:08:11784 days ago1663740491IN
0xb324b2BD...3771F8889
0 ETH0.0074068811.38263722
Withdraw Locked155443852022-09-16 6:22:59789 days ago1663309379IN
0xb324b2BD...3771F8889
0 ETH0.003611716.9905109
Sync155188292022-09-12 4:14:15794 days ago1662956055IN
0xb324b2BD...3771F8889
0 ETH0.0017894511.13142935
Sync154973952022-09-08 15:33:01797 days ago1662651181IN
0xb324b2BD...3771F8889
0 ETH0.0029996725.64962704
Sync_gauge_weigh...154973952022-09-08 15:33:01797 days ago1662651181IN
0xb324b2BD...3771F8889
0 ETH0.0019241325.64962704
Get Reward154971332022-09-08 14:31:35797 days ago1662647495IN
0xb324b2BD...3771F8889
0 ETH0.0056032216.38087977
Stake Locked154912002022-09-07 15:52:13798 days ago1662565933IN
0xb324b2BD...3771F8889
0 ETH0.0212923429.91652868
Sync_gauge_weigh...154502212022-09-01 2:22:34805 days ago1661998954IN
0xb324b2BD...3771F8889
0 ETH0.0029380420.16561095
View all transactions

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
FraxUnifiedFarm_ERC20_Convex_stkcvxTUSDFRAXBP

Compiler Version
v0.8.15+commit.e14f2714

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-08-14
*/

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

// Sources flattened with hardhat v2.10.1 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/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/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


// ====================================================================
// |     ______                   _______                             |
// |    / _____________ __  __   / ____(_____  ____ _____  ________   |
// |   / /_  / ___/ __ `| |/_/  / /_  / / __ \/ __ `/ __ \/ ___/ _ \  |
// |  / __/ / /  / /_/ _>  <   / __/ / / / / / /_/ / / / / /__/  __/  |
// | /_/   /_/   \__,_/_/|_|  /_/   /_/_/ /_/\__,_/_/ /_/\___/\___/   |
// |                                                                  |
// ====================================================================
// ====================== FraxUnifiedFarmTemplate =====================
// ====================================================================
// Farming contract that accounts for veFXS
// Overrideable for UniV3, ERC20s, etc
// New for V2
//      - Multiple reward tokens possible
//      - Can add to existing locked stakes
//      - Contract is aware of proxied veFXS
//      - veFXS multiplier formula changed
// Apes together strong

// Frax Finance: https://github.com/FraxFinance

// Primary Author(s)
// Travis Moore: https://github.com/FortisFortuna

// Reviewer(s) / Contributor(s)
// Jason Huan: https://github.com/jasonhuan
// Sam Kazemian: https://github.com/samkazemian
// Dennis: github.com/denett

// Originally inspired by Synthetix.io, but heavily modified by the Frax team
// (Locked, veFXS, and UniV3 portions are new)
// https://raw.githubusercontent.com/Synthetixio/synthetix/develop/contracts/StakingRewards.sol








// Extra rewards

contract FraxUnifiedFarmTemplate is Owned, ReentrancyGuard {

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

    // Instances
    IveFXS private immutable veFXS = IveFXS(0xc8418aF6358FFddA74e09Ca9CC3Fe03Ca6aDC5b0);
    
    // Frax related
    address internal immutable frax_address = 0x853d955aCEf822Db058eb8505911ED77F175b99e;
    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(2e18); // E18. 1x = e18
    uint256 public lock_time_for_max_multiplier = 1 * 365 * 86400; // 1 year
    // uint256 public lock_time_for_max_multiplier = 2 * 86400; // 2 days
    uint256 public lock_time_min = 594000; // 6.875 * 86400 (~7 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(4e18); // E18. 2e18 means 2 veFXS must be held by the staker per 1 FRAX
    mapping(address => uint256) internal _vefxsMultiplierStored;
    mapping(address => bool) internal valid_vefxs_proxies;
    mapping(address => mapping(address => bool)) internal proxy_allowed_stakers;

    // Reward addresses, gauge addresses, reward rates, and reward managers
    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) public lastRewardClaimTime; // staker addr -> timestamp
    
    // Gauge tracking
    uint256[] private last_gauge_relative_weights;
    uint256[] private last_gauge_time_totals;

    // Balance tracking
    uint256 internal _total_liquidity_locked;
    uint256 internal _total_combined_weight;
    mapping(address => uint256) internal _locked_liquidity;
    mapping(address => uint256) internal _combined_weights;
    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


    // Stakers set which proxy(s) they want to use
    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 and overrides
    bool public stakesUnlocked; // Release locked stakes in case of emergency
    bool internal withdrawalsPaused; // For emergencies
    bool internal rewardsCollectionPaused; // For emergencies
    bool internal stakingPaused; // For emergencies

    /* ========== STRUCTS ========== */
    // In children...


    /* ========== MODIFIERS ========== */

    modifier onlyByOwnGov() {
        require(msg.sender == owner || msg.sender == 0x8412ebf45bAC1B340BbE8F318b928C466c4E39CA, "Not owner or timelock");
        _;
    }

    modifier onlyTknMgrs(address reward_token_address) {
        require(msg.sender == owner || isTokenManagerFor(msg.sender, reward_token_address), "Not owner or tkn mgr");
        _;
    }

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

    /* ========== 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
        //     )
        // ) ;
        return Math.min(
            lock_max_multiplier,
            (secs * lock_max_multiplier) / 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 =============== */


    // Proxy can allow a staker to use their veFXS balance (the staker will have to reciprocally toggle them too)
    // Must come before stakerSetVeFXSProxy
    // CALLED BY PROXY
    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)
    // CALLED BY STAKER
    function stakerSetVeFXSProxy(address proxy_address) external {
        require(valid_vefxs_proxies[proxy_address], "Invalid proxy");
        require(proxy_allowed_stakers[proxy_address][msg.sender], "Proxy has not allowed you yet");
        
        // Corner case sanity check to make sure LP isn't double counted
        address old_proxy_addr = staker_designated_proxies[msg.sender];
        if (old_proxy_addr != address(0)) {
            // Remove the LP count from the old proxy
            proxy_lp_balances[old_proxy_addr] -= _locked_liquidity[msg.sender];
        }

        // Set the new proxy
        staker_designated_proxies[msg.sender] = proxy_address; 

        // Add the the LP as well
        proxy_lp_balances[proxy_address] += _locked_liquidity[msg.sender];
    }

    // ------ STAKING ------
    // In children...


    // ------ WITHDRAWING ------
    // In children...


    // ------ REWARDS SYNCING ------

    function updateRewardAndBalance(address account, bool sync_too) public {
        // 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 updateRewardAndBalanceMdf(rewardee, true) returns (uint256[] memory rewards_before) {
        // Update the last reward claim time first, as an extra reentrancy safeguard
        lastRewardClaimTime[rewardee] = block.timestamp;
        
        // Make sure rewards collection isn't paused
        require(rewardsCollectionPaused == false, "Rewards collection paused");
        
        // Update the rewards array and distribute rewards
        rewards_before = new uint256[](rewardTokens.length);

        for (uint256 i = 0; i < rewardTokens.length; i++){ 
            rewards_before[i] = rewards[rewardee][i];
            rewards[rewardee][i] = 0;
            if (rewards_before[i] > 0) {
                TransferHelper.safeTransfer(rewardTokens[i], destination_address, rewards_before[i]);

                emit RewardPaid(rewardee, rewards_before[i], rewardTokens[i], destination_address);
            }
        }

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


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

    // If the period expired, renew it
    function retroCatchUp() internal {
        // Pull in rewards from the rewards distributor, if applicable
        for (uint256 i = 0; i < rewardDistributors.length; i++){ 
            address reward_distributor_address = rewardDistributors[i];
            if (reward_distributor_address != address(0)) {
                IFraxGaugeFXSRewardsDistributor(reward_distributor_address).distributeReward(address(this));
            }
        }

        // Ensure the provided reward amount is not more than the balance in the contract.
        // This keeps the reward rate in the right range, preventing overflows due to
        // very high values of rewardRate in the earned and rewardsPerToken functions;
        // Reward + leftover must be less than 2^256 / 10^18 to avoid overflow.
        uint256 num_periods_elapsed = uint256(block.timestamp - periodFinish) / rewardsDuration; // Floor division to the nearest period
        
        // Make sure there are enough tokens to renew the reward period
        for (uint256 i = 0; i < rewardTokens.length; i++){ 
            require((rewardRates(i) * rewardsDuration * (num_periods_elapsed + 1)) <= IERC20(rewardTokens[i]).balanceOf(address(this)), string(abi.encodePacked("Not enough reward tokens available: ", rewardTokens[i])) );
        }
        
        // uint256 old_lastUpdateTime = lastUpdateTime;
        // uint256 new_lastUpdateTime = block.timestamp;

        // lastUpdateTime = periodFinish;
        periodFinish = periodFinish + ((num_periods_elapsed + 1) * rewardsDuration);

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

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

    /* ========== EVENTS ========== */
    event RewardPaid(address indexed user, uint256 amount, address token_address, address destination_address);

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


// File contracts/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 lp_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/Misc_AMOs/curve/I2poolToken.sol


interface I2poolToken {
  function decimals() external view returns (uint256);
  function transfer(address _to, uint256 _value) external returns (bool);
  function transferFrom(address _from, address _to, uint256 _value) external returns (bool);
  function approve(address _spender, uint256 _value) external returns (bool);
  function increaseAllowance(address _spender, uint256 _added_value) external returns (bool);
  function decreaseAllowance(address _spender, uint256 _subtracted_value) external returns (bool);
  function mint(address _to, uint256 _value) external returns (bool);
  function burnFrom(address _to, uint256 _value) external returns (bool);
  function set_minter(address _minter) external;
  function set_name(string memory _name, string memory _symbol) external;
  function name() external view returns (string memory);
  function symbol() external view returns (string memory);
  function balanceOf(address arg0) external view returns (uint256);
  function allowance(address arg0, address arg1) external view returns (uint256);
  function totalSupply() external view returns (uint256);
  function minter() external view returns (address);
}


// File contracts/Staking/FraxUnifiedFarm_ERC20.sol


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

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

// Convex wrappers




// Fraxswap
// import '../Fraxswap/core/interfaces/IFraxswapPair.sol';

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

    // -------------------- COMMON -------------------- 
    bool internal frax_is_token0;

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

    // Convex stkcvxFPIFRAX, stkcvxFRAXBP, etc
    IConvexStakingWrapperFrax public immutable stakingToken;
    I2poolToken public immutable curveToken;
    I2pool public immutable curvePool;

    // Fraxswap
    // IFraxswapPair public immutable stakingToken;

    // G-UNI
    // IGUniPool public immutable stakingToken;
    
    // mStable
    // IFeederPool public immutable stakingToken;

    // sdETH-FraxPut Vault
    // IOpynPerpVault public immutable stakingToken;

    // StakeDAO Vault
    // IStakeDaoVault public immutable stakingToken;

    // Uniswap V2
    // IUniswapV2Pair public immutable stakingToken;

    // Vesper
    // IVPool public immutable 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 and stkcvxFRAXBP only
        // stakingToken = IConvexStakingWrapperFrax(_stakingToken);
        // curveToken = I2poolToken(stakingToken.curveToken());
        // curvePool = I2pool(curveToken.minter());
        // address token0 = curvePool.coins(0);
        // frax_is_token0 = (token0 == frax_address);

        // Convex stkcvxBUSDBP and other metaFRAXBPs, where the token is also the pool
        stakingToken = IConvexStakingWrapperFrax(_stakingToken);
        curveToken = I2poolToken(stakingToken.curveToken());
        curvePool = I2pool(address(curveToken));
        frax_is_token0 = false; // Irrelevant here, as token 0 will be FRAXBP

        // Fraxswap
        // stakingToken = IFraxswapPair(_stakingToken);
        // address token0 = stakingToken.token0();
        // frax_is_token0 = (token0 == frax_address);

        // 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 and stkcvxFRAXBP only
        // ============================================
        // {
        //     // Half of the LP is FRAXBP
        //     // Using 0.5 * virtual price for gas savings
        //     frax_per_lp_token = curvePool.get_virtual_price() / 2; 
        // }

        // Convex stkcvxBUSDBP and other metaFRAXBPs
        // ============================================
        {
            // Half of the LP is FRAXBP. Half of that should be FRAX.
            // Using 0.25 * virtual price for gas savings
            frax_per_lp_token = curvePool.get_virtual_price() / 4; 
        }

        // Fraxswap
        // ============================================
        // {
        //     uint256 total_frax_reserves;
        //     (uint256 _reserve0, uint256 _reserve1, , ,) = (stakingToken.getReserveAfterTwamm(block.timestamp));
        //     if (frax_is_token0) total_frax_reserves = _reserve0;
        //     else total_frax_reserves = _reserve1;

        //     frax_per_lp_token = (total_frax_reserves * 1e18) / stakingToken.totalSupply();
        // }

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

    function calcCurrLockMultiplier(address account, uint256 stake_idx) public view returns (uint256 midpoint_lock_multiplier) {
        // Get the stake
        LockedStake memory thisStake = lockedStakes[account][stake_idx];

        // Handles corner case where user never claims for a new stake
        // Don't want the multiplier going above the max
        uint256 accrue_start_time;
        if (lastRewardClaimTime[account] < thisStake.start_timestamp) {
            accrue_start_time = thisStake.start_timestamp;
        }
        else {
            accrue_start_time = lastRewardClaimTime[account];
        }
        
        // If the lock is expired
        if (thisStake.ending_timestamp <= block.timestamp) {
            // If the lock expired in the time since the last claim, the weight needs to be proportionately averaged this time
            if (lastRewardClaimTime[account] < thisStake.ending_timestamp){
                uint256 time_before_expiry = thisStake.ending_timestamp - accrue_start_time;
                uint256 time_after_expiry = block.timestamp - thisStake.ending_timestamp;

                // Average the pre-expiry lock multiplier
                uint256 pre_expiry_avg_multiplier = lockMultiplier(time_before_expiry / 2);

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

                // Otherwise, it needs to just be 0x
                midpoint_lock_multiplier = 0;
            }
        }
        // If the lock is not expired
        else {
            // Decay the lock multiplier based on the time left
            uint256 avg_time_left;
            {
                uint256 time_left_p1 = thisStake.ending_timestamp - accrue_start_time;
                uint256 time_left_p2 = thisStake.ending_timestamp - block.timestamp;
                avg_time_left = (time_left_p1 + time_left_p2) / 2;
            }
            midpoint_lock_multiplier = lockMultiplier(avg_time_left);
        }

        // Sanity check: make sure it never goes above the initial multiplier
        if (midpoint_lock_multiplier > thisStake.lock_multiplier) midpoint_lock_multiplier = thisStake.lock_multiplier;
    }

    // Calculate the combined weight for an account
    function calcCurCombinedWeight(address account) public override view
        returns (
            uint256 old_combined_weight,
            uint256 new_vefxs_multiplier,
            uint256 new_combined_weight
        )
    {
        // Get the old combined weight
        old_combined_weight = _combined_weights[account];

        // Get the veFXS multipliers
        // For the calculations, use the midpoint (analogous to midpoint Riemann sum)
        new_vefxs_multiplier = veFXSMultiplier(account);

        uint256 midpoint_vefxs_multiplier;
        if (
            (_locked_liquidity[account] == 0 && _combined_weights[account] == 0) || 
            (new_vefxs_multiplier >= _vefxsMultiplierStored[account])
        ) {
            // This is only called for the first stake to make sure the veFXS multiplier is not cut in half
            // Also used if the user increased or maintained their position
            midpoint_vefxs_multiplier = new_vefxs_multiplier;
        }
        else {
            // Handles natural decay with a non-increased veFXS position
            midpoint_vefxs_multiplier = (new_vefxs_multiplier + _vefxsMultiplierStored[account]) / 2;
        }

        // Loop through the locked stakes, first by getting the liquidity * lock_multiplier portion
        new_combined_weight = 0;
        for (uint256 i = 0; i < lockedStakes[account].length; i++) {
            LockedStake memory thisStake = lockedStakes[account][i];

            // Calculate the midpoint lock multiplier
            uint256 midpoint_lock_multiplier = calcCurrLockMultiplier(account, i);

            // Calculate the combined boost
            uint256 liquidity = thisStake.liquidity;
            uint256 combined_boosted_amount = liquidity + ((liquidity * (midpoint_lock_multiplier + midpoint_vefxs_multiplier)) / MULTIPLIER_PRECISION);
            new_combined_weight += combined_boosted_amount;
        }
    }

    // ------ LOCK RELATED ------

    // All the locked stakes for a given account
    function lockedStakesOf(address account) external view returns (LockedStake[] memory) {
        return lockedStakes[account];
    }

    // Returns the length of the locked stakes for a given account
    function lockedStakesOfLength(address account) external view returns (uint256) {
        return lockedStakes[account].length;
    }

    // // All the locked stakes for a given account [old-school method]
    // function lockedStakesOfMultiArr(address account) external view returns (
    //     bytes32[] memory kek_ids,
    //     uint256[] memory start_timestamps,
    //     uint256[] memory liquidities,
    //     uint256[] memory ending_timestamps,
    //     uint256[] memory lock_multipliers
    // ) {
    //     for (uint256 i = 0; i < lockedStakes[account].length; i++){ 
    //         LockedStake memory thisStake = lockedStakes[account][i];
    //         kek_ids[i] = thisStake.kek_id;
    //         start_timestamps[i] = thisStake.start_timestamp;
    //         liquidities[i] = thisStake.liquidity;
    //         ending_timestamps[i] = thisStake.ending_timestamp;
    //         lock_multipliers[i] = thisStake.lock_multiplier;
    //     }
    // }

    /* =============== MUTATIVE FUNCTIONS =============== */

    // ------ STAKING ------

    function _getStake(address staker_address, bytes32 kek_id) internal view returns (LockedStake memory locked_stake, uint256 arr_idx) {
        for (uint256 i = 0; i < lockedStakes[staker_address].length; i++){ 
            if (kek_id == lockedStakes[staker_address][i].kek_id){
                locked_stake = lockedStakes[staker_address][i];
                arr_idx = i;
                break;
            }
        }
        require(locked_stake.kek_id == kek_id, "Stake not found");
        
    }

    // Add additional LPs to an existing locked stake
    function lockAdditional(bytes32 kek_id, uint256 addl_liq) nonReentrant updateRewardAndBalanceMdf(msg.sender, true) public {
        // 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);

        emit LockedAdditional(msg.sender, kek_id, addl_liq);
    }

    // Extends the lock of an existing stake
    function lockLonger(bytes32 kek_id, uint256 new_ending_ts) nonReentrant updateRewardAndBalanceMdf(msg.sender, true) public {
        // Get the stake and its index
        (LockedStake memory thisStake, uint256 theArrayIndex) = _getStake(msg.sender, kek_id);

        // Check
        require(new_ending_ts > block.timestamp, "Must be in the future");

        // Calculate some times
        uint256 time_left = (thisStake.ending_timestamp > block.timestamp) ? thisStake.ending_timestamp - block.timestamp : 0;
        uint256 new_secs = new_ending_ts - block.timestamp;

        // Checks
        // require(time_left > 0, "Already expired");
        require(new_secs > time_left, "Cannot shorten lock time");
        require(new_secs >= lock_time_min, "Minimum stake time not met");
        require(new_secs <= lock_time_for_max_multiplier, "Trying to lock for too long");

        // Update the stake
        lockedStakes[msg.sender][theArrayIndex] = LockedStake(
            kek_id,
            block.timestamp,
            thisStake.liquidity,
            new_ending_ts,
            lockMultiplier(new_secs)
        );

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

        emit LockedLonger(msg.sender, kek_id, new_secs, block.timestamp, new_ending_ts);
    }

    

    // Two different stake functions are needed because of delegateCall and msg.sender issues (important for proxies)
    function stakeLocked(uint256 liquidity, uint256 secs) nonReentrant external returns (bytes32) {
        return _stakeLocked(msg.sender, msg.sender, liquidity, secs, block.timestamp);
    }

    // If this were not internal, and source_address had an infinite approve, this could be exploitable
    // (pull funds from source_address and stake for an arbitrary staker_address)
    function _stakeLocked(
        address staker_address,
        address source_address,
        uint256 liquidity,
        uint256 secs,
        uint256 start_timestamp
    ) internal updateRewardAndBalanceMdf(staker_address, true) returns (bytes32) {
        require(stakingPaused == false, "Staking paused");
        require(secs >= lock_time_min, "Minimum stake time not met");
        require(secs <= lock_time_for_max_multiplier,"Trying to lock for too long");

        // Pull in the required token(s)
        // Varies per farm
        TransferHelper.safeTransferFrom(address(stakingToken), source_address, address(this), liquidity);

        // Get the lock multiplier and kek_id
        uint256 lock_multiplier = lockMultiplier(secs);
        bytes32 kek_id = keccak256(abi.encodePacked(staker_address, start_timestamp, liquidity, _locked_liquidity[staker_address]));
        
        // Create the locked stake
        lockedStakes[staker_address].push(LockedStake(
            kek_id,
            start_timestamp,
            liquidity,
            start_timestamp + secs,
            lock_multiplier
        ));

        // Update liquidities
        _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 proxies)
    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
    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, "Stake is still locked!");
        uint256 liquidity = thisStake.liquidity;

        if (liquidity > 0) {

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

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

            // 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 - Owner or timelock only ========== */

    // Inherited...

    /* ========== EVENTS ========== */
    event LockedAdditional(address indexed user, bytes32 kek_id, uint256 amount);
    event LockedLonger(address indexed user, bytes32 kek_id, uint256 new_secs, uint256 new_start_ts, uint256 new_end_ts);
    event StakeLocked(address indexed user, uint256 amount, uint256 secs, bytes32 kek_id, address source_address);
    event WithdrawLocked(address indexed user, uint256 liquidity, bytes32 kek_id, address destination_address);
}


// File contracts/Staking/Variants/FraxUnifiedFarm_ERC20_Convex_stkcvxTUSDFRAXBP.sol


contract FraxUnifiedFarm_ERC20_Convex_stkcvxTUSDFRAXBP 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":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"bytes32","name":"kek_id","type":"bytes32"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"LockedAdditional","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"bytes32","name":"kek_id","type":"bytes32"},{"indexed":false,"internalType":"uint256","name":"new_secs","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"new_start_ts","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"new_end_ts","type":"uint256"}],"name":"LockedLonger","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"oldOwner","type":"address"},{"indexed":false,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnerChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnerNominated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"address","name":"token_address","type":"address"},{"indexed":false,"internalType":"address","name":"destination_address","type":"address"}],"name":"RewardPaid","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"secs","type":"uint256"},{"indexed":false,"internalType":"bytes32","name":"kek_id","type":"bytes32"},{"indexed":false,"internalType":"address","name":"source_address","type":"address"}],"name":"StakeLocked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"liquidity","type":"uint256"},{"indexed":false,"internalType":"bytes32","name":"kek_id","type":"bytes32"},{"indexed":false,"internalType":"address","name":"destination_address","type":"address"}],"name":"WithdrawLocked","type":"event"},{"inputs":[],"name":"acceptOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"calcCurCombinedWeight","outputs":[{"internalType":"uint256","name":"old_combined_weight","type":"uint256"},{"internalType":"uint256","name":"new_vefxs_multiplier","type":"uint256"},{"internalType":"uint256","name":"new_combined_weight","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"stake_idx","type":"uint256"}],"name":"calcCurrLockMultiplier","outputs":[{"internalType":"uint256","name":"midpoint_lock_multiplier","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"reward_token_address","type":"address"},{"internalType":"address","name":"new_manager_address","type":"address"}],"name":"changeTokenManager","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"combinedWeightOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"curvePool","outputs":[{"internalType":"contract I2pool","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"curveToken","outputs":[{"internalType":"contract I2poolToken","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":[{"internalType":"address","name":"","type":"address"}],"name":"lastRewardClaimTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lastUpdateTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"kek_id","type":"bytes32"},{"internalType":"uint256","name":"addl_liq","type":"uint256"}],"name":"lockAdditional","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"kek_id","type":"bytes32"},{"internalType":"uint256","name":"new_ending_ts","type":"uint256"}],"name":"lockLonger","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"secs","type":"uint256"}],"name":"lockMultiplier","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lock_max_multiplier","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lock_time_for_max_multiplier","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lock_time_min","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"lockedLiquidityOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"lockedStakes","outputs":[{"internalType":"bytes32","name":"kek_id","type":"bytes32"},{"internalType":"uint256","name":"start_timestamp","type":"uint256"},{"internalType":"uint256","name":"liquidity","type":"uint256"},{"internalType":"uint256","name":"ending_timestamp","type":"uint256"},{"internalType":"uint256","name":"lock_multiplier","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"lockedStakesOf","outputs":[{"components":[{"internalType":"bytes32","name":"kek_id","type":"bytes32"},{"internalType":"uint256","name":"start_timestamp","type":"uint256"},{"internalType":"uint256","name":"liquidity","type":"uint256"},{"internalType":"uint256","name":"ending_timestamp","type":"uint256"},{"internalType":"uint256","name":"lock_multiplier","type":"uint256"}],"internalType":"struct FraxUnifiedFarm_ERC20.LockedStake[]","name":"","type":"tuple[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"lockedStakesOfLength","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"maxLPForMaxBoost","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"minVeFXSForMaxBoost","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"proxy_address","type":"address"}],"name":"minVeFXSForMaxBoostProxy","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_owner","type":"address"}],"name":"nominateNewOwner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"nominatedOwner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"periodFinish","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"proxy_address","type":"address"}],"name":"proxyStakedFrax","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"staker_address","type":"address"}],"name":"proxyToggleStaker","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"proxy_lp_balances","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"tokenAddress","type":"address"},{"internalType":"uint256","name":"tokenAmount","type":"uint256"}],"name":"recoverERC20","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"rewardManagers","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"token_idx","type":"uint256"}],"name":"rewardRates","outputs":[{"internalType":"uint256","name":"rwd_rate","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"rewardTokenAddrToIdx","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rewardsDuration","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rewardsPerToken","outputs":[{"internalType":"uint256[]","name":"newRewardsPerTokenStored","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[6]","name":"_misc_vars","type":"uint256[6]"}],"name":"setMiscVariables","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_stakingPaused","type":"bool"},{"internalType":"bool","name":"_withdrawalsPaused","type":"bool"},{"internalType":"bool","name":"_rewardsCollectionPaused","type":"bool"}],"name":"setPauses","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"reward_token_address","type":"address"},{"internalType":"uint256","name":"_new_rate","type":"uint256"},{"internalType":"address","name":"_gauge_controller_address","type":"address"},{"internalType":"address","name":"_rewards_distributor_address","type":"address"}],"name":"setRewardVars","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"liquidity","type":"uint256"},{"internalType":"uint256","name":"secs","type":"uint256"}],"name":"stakeLocked","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"proxy_address","type":"address"}],"name":"stakerSetVeFXSProxy","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"staker_designated_proxies","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"stakesUnlocked","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"stakingToken","outputs":[{"internalType":"contract IConvexStakingWrapperFrax","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"sync","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"force_update","type":"bool"}],"name":"sync_gauge_weights","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_proxy_addr","type":"address"}],"name":"toggleValidVeFXSProxy","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"totalCombinedWeight","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalLiquidityLocked","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"unlockStakes","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"bool","name":"sync_too","type":"bool"}],"name":"updateRewardAndBalance","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"}]

61012060405273c8418af6358ffdda74e09ca9cc3fe03ca6adc5b060805273853d955acef822db058eb8505911ed77f175b99e60a052671bc16d674ec8000060068190556301e1338060075562091050600855673782dace9d9000006009819055600a91909155600b553480156200007657600080fd5b50604051620057483803806200574883398101604081905262000099916200061b565b86868686868686868686868686856001600160a01b038116620001025760405162461bcd60e51b815260206004820152601960248201527f4f776e657220616464726573732063616e6e6f74206265203000000000000000604482015260640160405180910390fd5b600080546001600160a01b0319166001600160a01b03831690811782556040805192835260208301919091527fb532073b38c83145e3e5135377a08bf9aab55bc0fd7c1179cd4fb995d2a5159c910160405180910390a1506001600255845162000174906010906020880190620003f2565b5081516200018a906011906020850190620003f2565b508051620001a0906012906020840190620003f2565b508251620001b69060139060208601906200045c565b5060005b855181101562000321578060146000888481518110620001de57620001de62000722565b6020908102919091018101516001600160a01b03168252810191909152604001600090812091909155601580546001810182559082527f55f448fdea98c4d29eb340757ef0a66cd03dbb9538908a6a81d96026b71ec475015584518590829081106200024e576200024e62000722565b6020026020010151600f60008884815181106200026f576200026f62000722565b6020908102919091018101516001600160a01b03908116835290820192909252604001600090812080546001600160a01b031916939092169290921790556019805460018181019092557f944998273e477b495144fb8794c914197f3ccb46be2900f4698fd0ef743c969501829055601a8054918201815582527f057c384a7d1c54f3a1b2e5e67b2617b8224fdfd1ea7234eea573a6ff665ff63e01558062000318816200074e565b915050620001ba565b506021805460ff19169055426005819055620003429062093a80906200076a565b60049081556001600160a01b03881660c0819052604080516313ce416760e21b81529051919850634f39059c975080830196506020955090935083900301905081865afa15801562000398573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620003be919062000785565b6001600160a01b031660e08190526101005250506021805460ff60201b1916905550620007aa9a5050505050505050505050565b8280548282559060005260206000209081019282156200044a579160200282015b828111156200044a57825182546001600160a01b0319166001600160a01b0390911617825560209092019160019091019062000413565b50620004589291506200049a565b5090565b8280548282559060005260206000209081019282156200044a579160200282015b828111156200044a5782518255916020019190600101906200047d565b5b808211156200045857600081556001016200049b565b80516001600160a01b0381168114620004c957600080fd5b919050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f191681016001600160401b03811182821017156200050f576200050f620004ce565b604052919050565b60006001600160401b03821115620005335762000533620004ce565b5060051b60200190565b600082601f8301126200054f57600080fd5b8151602062000568620005628362000517565b620004e4565b82815260059290921b840181019181810190868411156200058857600080fd5b8286015b84811015620005ae57620005a081620004b1565b83529183019183016200058c565b509695505050505050565b600082601f830112620005cb57600080fd5b81516020620005de620005628362000517565b82815260059290921b84018101918181019086841115620005fe57600080fd5b8286015b84811015620005ae578051835291830191830162000602565b600080600080600080600060e0888a0312156200063757600080fd5b6200064288620004b1565b60208901519097506001600160401b03808211156200066057600080fd5b6200066e8b838c016200053d565b975060408a01519150808211156200068557600080fd5b620006938b838c016200053d565b965060608a0151915080821115620006aa57600080fd5b620006b88b838c01620005b9565b955060808a0151915080821115620006cf57600080fd5b620006dd8b838c016200053d565b945060a08a0151915080821115620006f457600080fd5b50620007038a828b016200053d565b9250506200071460c08901620004b1565b905092959891949750929550565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b60006001820162000763576200076362000738565b5060010190565b6000821982111562000780576200078062000738565b500190565b6000602082840312156200079857600080fd5b620007a382620004b1565b9392505050565b60805160a05160c05160e05161010051614f2b6200081d600039600081816104d10152611523015260006106110152600081816106df015281816121d5015281816137a501526143a601526000505060008181611049015281816110fe0152818161117801526120ba0152614f2b6000f3fe608060405234801561001057600080fd5b50600436106104055760003560e01c80638980f11f1161021a578063d2fbdc0d11610135578063e44b9fa5116100c8578063f2a8d34911610097578063f77e34d11161007c578063f77e34d1146109d9578063facefb64146109ec578063fff6cae9146109ff57600080fd5b8063f2a8d349146109bd578063f2caeb1e146109c657600080fd5b8063e44b9fa514610985578063e7f3058214610998578063ebe2b12b146109ab578063f288baf6146109b457600080fd5b8063d9f96e8d11610104578063d9f96e8d1461092c578063de1a655114610962578063e01f62bf14610975578063e1ba95d21461097d57600080fd5b8063d2fbdc0d146108e0578063d42fc9b4146108f3578063d5e1a9c614610906578063d7400d561461091957600080fd5b8063b94c4dcb116101ad578063ca6df29d1161017c578063ca6df29d14610885578063cc2abd64146108bb578063cdc82e80146108ce578063d2010fb4146108d757600080fd5b8063b94c4dcb1461084d578063c00007b014610856578063c354382614610869578063c8f33c911461087c57600080fd5b80639637927f116101e95780639637927f14610811578063a0f234761461081e578063aa1d4fce14610831578063b85efd061461083a57600080fd5b80638980f11f1461079d5780638bad86a7146107b05780638da5cb5b146107de57806391cf600a146107fe57600080fd5b80634f39059c116103255780636e27cef9116102b85780637910d17b1161028757806379ba50971161026c57806379ba5097146107625780637d6ef08e1461076a5780637f472e541461078a57600080fd5b80637910d17b146107145780637970833e1461072757600080fd5b80636e27cef9146106c957806370641a36146106d257806372f702f3146106da578063774d4ae71461070157600080fd5b80635bfd9258116102f45780635bfd92581461067957806364f2c0601461068157806369339245146106895780636c430dbb146106a957600080fd5b80634f39059c1461060c5780634fd2b5361461063357806353a47bb714610646578063551897731461066657600080fd5b8063218751b21161039d57806336f89af21161036c57806336f89af214610583578063386a9525146105b9578063387edc86146105c357806341a16f3f146105d657600080fd5b8063218751b2146104cc578063231b68dc1461051857806328408bab1461053b5780632c0c2a0a1461057057600080fd5b806317b18c89116103d957806317b18c891461047e5780631c1f78eb146104915780631e090f01146104995780631face856146104b957600080fd5b80628cc2621461040a5780630d7bac4f1461043357806312edb24c146104545780631627540c14610469575b600080fd5b61041d610418366004614921565b610a07565b60405161042a919061493c565b60405180910390f35b610446610441366004614980565b610b86565b60405190815260200161042a565b61045c610bb2565b60405161042a9190614999565b61047c610477366004614921565b610c21565b005b61044661048c3660046149e7565b610d46565b61041d610dd0565b6104ac6104a7366004614921565b610e71565b60405161042a9190614a09565b6104466104c7366004614921565b610f25565b6104f37f000000000000000000000000000000000000000000000000000000000000000081565b60405173ffffffffffffffffffffffffffffffffffffffff909116815260200161042a565b61052b610526366004614a77565b610f6b565b604051901515815260200161042a565b6104f3610549366004614921565b602080526000908152604090205473ffffffffffffffffffffffffffffffffffffffff1681565b61044661057e366004614921565b610fd9565b610446610591366004614921565b73ffffffffffffffffffffffffffffffffffffffff166000908152601e602052604090205490565b61044662093a8081565b61047c6105d1366004614921565b6112ed565b6104f36105e4366004614921565b600f6020526000908152604090205473ffffffffffffffffffffffffffffffffffffffff1681565b6104f37f000000000000000000000000000000000000000000000000000000000000000081565b610446610641366004614921565b6113d7565b6001546104f39073ffffffffffffffffffffffffffffffffffffffff1681565b61047c610674366004614ab8565b6113f8565b61044661151c565b601c54610446565b610446610697366004614921565b60146020526000908152604090205481565b6104466106b7366004614921565b60186020526000908152604090205481565b61044660085481565b61041d6115b0565b6104f37f000000000000000000000000000000000000000000000000000000000000000081565b61044661070f366004614aef565b61170f565b61041d610722366004614ab8565b61191b565b61073a610735366004614aef565b611997565b604080519586526020860194909452928401919091526060830152608082015260a00161042a565b61047c6119e5565b610446610778366004614921565b601f6020526000908152604090205481565b610446610798366004614921565b611b30565b61047c6107ab366004614aef565b611b47565b6107c36107be366004614921565b611d30565b6040805193845260208401929092529082015260600161042a565b6000546104f39073ffffffffffffffffffffffffffffffffffffffff1681565b61047c61080c366004614921565b611f64565b60215461052b9060ff1681565b61044661082c366004614921565b612057565b61044660095481565b61047c6108483660046149e7565b61212f565b61044660075481565b61041d610864366004614921565b612386565b6104f3610877366004614921565b61240e565b61044660055481565b610446610893366004614921565b73ffffffffffffffffffffffffffffffffffffffff1660009081526022602052604090205490565b61047c6108c9366004614b19565b612470565b61044660065481565b61044660035481565b61047c6108ee3660046149e7565b6125a6565b610446610901366004614921565b61290a565b61047c610914366004614b64565b612946565b61047c610927366004614921565b612b35565b61044661093a366004614921565b73ffffffffffffffffffffffffffffffffffffffff166000908152601d602052604090205490565b61047c610970366004614a77565b612d50565b601b54610446565b61047c612e37565b610446610993366004614bb1565b612f08565b61047c6109a6366004614921565b612ff6565b61044660045481565b610446600a5481565b610446600b5481565b6104466109d4366004614980565b613154565b61047c6109e7366004614bd4565b61326b565b61047c6109fa366004614c20565b61343d565b61047c6135fd565b60606000610a136115b0565b60105490915067ffffffffffffffff811115610a3157610a31614bf1565b604051908082528060200260200182016040528015610a5a578160200160208202803683370190505b5073ffffffffffffffffffffffffffffffffffffffff84166000908152601e602052604090205490925015610b805760005b601054811015610b7e5773ffffffffffffffffffffffffffffffffffffffff84166000818152601760209081526040808320858452825280832054938352601682528083208584529091529020548351670de0b6b3a76400009190859085908110610af957610af9614cc5565b6020026020010151610b0b9190614d23565b73ffffffffffffffffffffffffffffffffffffffff87166000908152601e6020526040902054610b3b9190614d3a565b610b459190614d77565b610b4f9190614db2565b838281518110610b6157610b61614cc5565b602090810291909101015280610b7681614dca565b915050610a8c565b505b50919050565b600654600754600091610bac91610b9d8286614d3a565b610ba79190614d77565b61362d565b92915050565b60606010805480602002602001604051908101604052809291908181526020018280548015610c1757602002820191906000526020600020905b815473ffffffffffffffffffffffffffffffffffffffff168152600190910190602001808311610bec575b5050505050905090565b60005473ffffffffffffffffffffffffffffffffffffffff163314610ccd576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602f60248201527f4f6e6c792074686520636f6e7472616374206f776e6572206d6179207065726660448201527f6f726d207468697320616374696f6e000000000000000000000000000000000060648201526084015b60405180910390fd5b600180547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff83169081179091556040519081527f906a1c6bd7e3091ea86693dd029a831c19049ce77f1dce2ce0bab1cacbabce229060200160405180910390a150565b60006002805403610db3576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610cc4565b60028055610dc43380858542613645565b60016002559392505050565b60135460609067ffffffffffffffff811115610dee57610dee614bf1565b604051908082528060200260200182016040528015610e17578160200160208202803683370190505b50905060005b601354811015610e6d5762093a80610e3482613154565b610e3e9190614d3a565b828281518110610e5057610e50614cc5565b602090810291909101015280610e6581614dca565b915050610e1d565b5090565b73ffffffffffffffffffffffffffffffffffffffff81166000908152602260209081526040808320805482518185028101850190935280835260609492939192909184015b82821015610f1a57838290600052602060002090600502016040518060a00160405290816000820154815260200160018201548152602001600282015481526020016003820154815260200160048201548152505081526020019060010190610eb6565b505050509050919050565b73ffffffffffffffffffffffffffffffffffffffff81166000908152601f6020526040812054600354670de0b6b3a764000091610f6191614d3a565b610bac9190614d77565b6000805473ffffffffffffffffffffffffffffffffffffffff90811690841603610f9757506001610bac565b73ffffffffffffffffffffffffffffffffffffffff8281166000908152600f6020526040902054818516911603610fd057506001610bac565b50600092915050565b60008080610fe68461240e565b905073ffffffffffffffffffffffffffffffffffffffff8116156110b9576040517f70a0823100000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff82811660048301527f000000000000000000000000000000000000000000000000000000000000000016906370a0823190602401602060405180830381865afa158015611090573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110b49190614e02565b611169565b6040517f70a0823100000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff85811660048301527f000000000000000000000000000000000000000000000000000000000000000016906370a0823190602401602060405180830381865afa158015611145573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111699190614e02565b91506000670de0b6b3a76400007f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166318160ddd6040518163ffffffff1660e01b8152600401602060405180830381865afa1580156111e1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112059190614e02565b61120f9190614d3a565b600954600a5461121f9086614d3a565b6112299190614d3a565b6112339190614d77565b905060008073ffffffffffffffffffffffffffffffffffffffff8416156112625761125d84611b30565b61126b565b61126b876113d7565b905080156112bd57600081611288670de0b6b3a764000088614d3a565b6112929190614d77565b9050670de0b6b3a7640000600a54826112ab9190614d3a565b6112b59190614d77565b9250506112c2565b600091505b508082116112d057806112d2565b815b9450600a548511156112e457600a5494505b50505050919050565b6002805403611358576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610cc4565b6002805560215462010000900460ff16156113cf576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601960248201527f5265776172647320636f6c6c656374696f6e20706175736564000000000000006044820152606401610cc4565b506001600255565b6000670de0b6b3a7640000600b546113ee8461290a565b610f619190614d3a565b8015611406576114066135fd565b73ffffffffffffffffffffffffffffffffffffffff82161561151857600080600061143085611d30565b92509250925061143f85613a4b565b73ffffffffffffffffffffffffffffffffffffffff85166000908152600c602052604090208290558281106114c357600061147a8483614d23565b905080601c5461148a9190614db2565b601c556114978185614db2565b73ffffffffffffffffffffffffffffffffffffffff87166000908152601e602052604090205550611514565b60006114cf8285614d23565b905080601c546114df9190614d23565b601c556114ec8185614d23565b73ffffffffffffffffffffffffffffffffffffffff87166000908152601e6020526040902055505b5050505b5050565b60008060047f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663bb7b8b806040518163ffffffff1660e01b8152600401602060405180830381865afa15801561158c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f619190614e02565b6060601b54600014806115c35750601c54155b1561161d576015805480602002602001604051908101604052809291908181526020018280548015610c1757602002820191906000526020600020905b815481526020019060010190808311611600575050505050905090565b60105467ffffffffffffffff81111561163857611638614bf1565b604051908082528060200260200182016040528015611661578160200160208202803683370190505b50905060005b601554811015610e6d57601c5461167d82613154565b600554611688613b4b565b6116929190614d23565b61169c9190614d3a565b6116ae90670de0b6b3a7640000614d3a565b6116b89190614d77565b601582815481106116cb576116cb614cc5565b90600052602060002001546116e09190614db2565b8282815181106116f2576116f2614cc5565b60209081029190910101528061170781614dca565b915050611667565b73ffffffffffffffffffffffffffffffffffffffff8216600090815260226020526040812080548291908490811061174957611749614cc5565b600091825260208083206040805160a081018252600590940290910180548452600181015484840181905260028201548584015260038201546060860152600490910154608085015273ffffffffffffffffffffffffffffffffffffffff89168552601890925283205491935011156117c7575060208101516117ef565b5073ffffffffffffffffffffffffffffffffffffffff84166000908152601860205260409020545b428260600151116118af57606082015173ffffffffffffffffffffffffffffffffffffffff861660009081526018602052604090205410156118a657600081836060015161183d9190614d23565b905060008360600151426118519190614d23565b90506000611863610441600285614d77565b905060006118718382614d3a565b61187b8584614d3a565b6118859190614db2565b90506118918385614db2565b61189b9082614d77565b9650505050506118ff565b600092506118ff565b6000808284606001516118c29190614d23565b905060004285606001516118d69190614d23565b905060026118e48284614db2565b6118ee9190614d77565b925050506118fb81610b86565b9350505b816080015183111561191357816080015192505b505092915050565b60606002805403611988576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610cc4565b60028055610dc4338484613b5e565b602260205281600052604060002081815481106119b357600080fd5b600091825260209091206005909102018054600182015460028301546003840154600490940154929550909350919085565b60015473ffffffffffffffffffffffffffffffffffffffff163314611a8c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603560248201527f596f75206d757374206265206e6f6d696e61746564206265666f726520796f7560448201527f2063616e20616363657074206f776e65727368697000000000000000000000006064820152608401610cc4565b6000546001546040805173ffffffffffffffffffffffffffffffffffffffff93841681529290911660208301527fb532073b38c83145e3e5135377a08bf9aab55bc0fd7c1179cd4fb995d2a5159c910160405180910390a160018054600080547fffffffffffffffffffffffff000000000000000000000000000000000000000090811673ffffffffffffffffffffffffffffffffffffffff841617909155169055565b6000670de0b6b3a7640000600b546113ee84610f25565b600054829073ffffffffffffffffffffffffffffffffffffffff16331480611b745750611b743382610f6b565b611bda576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601460248201527f4e6f74206f776e6572206f7220746b6e206d67720000000000000000000000006044820152606401610cc4565b6000805b601054811015611c54578473ffffffffffffffffffffffffffffffffffffffff1660108281548110611c1257611c12614cc5565b60009182526020909120015473ffffffffffffffffffffffffffffffffffffffff1603611c425760019150611c54565b80611c4c81614dca565b915050611bde565b50808015611c88575073ffffffffffffffffffffffffffffffffffffffff8481166000908152600f60205260409020541633145b80611cb3575080158015611cb3575060005473ffffffffffffffffffffffffffffffffffffffff1633145b15611cc957611cc3843385613e2a565b50505050565b6040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601a60248201527f4e6f2076616c696420746f6b656e7320746f207265636f7665720000000000006044820152606401610cc4565b505050565b73ffffffffffffffffffffffffffffffffffffffff81166000908152601e60205260408120549080611d6184610fd9565b73ffffffffffffffffffffffffffffffffffffffff85166000908152601d602052604081205491935090158015611dbb575073ffffffffffffffffffffffffffffffffffffffff85166000908152601e6020526040902054155b80611deb575073ffffffffffffffffffffffffffffffffffffffff85166000908152600c60205260409020548310155b15611df7575081611e37565b73ffffffffffffffffffffffffffffffffffffffff85166000908152600c6020526040902054600290611e2a9085614db2565b611e349190614d77565b90505b6000915060005b73ffffffffffffffffffffffffffffffffffffffff8616600090815260226020526040902054811015611f5b5773ffffffffffffffffffffffffffffffffffffffff86166000908152602260205260408120805483908110611ea257611ea2614cc5565b90600052602060002090600502016040518060a00160405290816000820154815260200160018201548152602001600282015481526020016003820154815260200160048201548152505090506000611efb888461170f565b60408301519091506000670de0b6b3a7640000611f188785614db2565b611f229084614d3a565b611f2c9190614d77565b611f369083614db2565b9050611f428188614db2565b9650505050508080611f5390614dca565b915050611e3e565b50509193909250565b60005473ffffffffffffffffffffffffffffffffffffffff16331480611f9d5750738412ebf45bac1b340bbe8f318b928c466c4e39ca33145b612003576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601560248201527f4e6f74206f776e6572206f722074696d656c6f636b00000000000000000000006044820152606401610cc4565b73ffffffffffffffffffffffffffffffffffffffff166000908152600d6020526040902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00811660ff90911615179055565b6000600354600b546120699190614d3a565b6040517f70a0823100000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff8481166004830152670de0b6b3a76400009182917f000000000000000000000000000000000000000000000000000000000000000016906370a0823190602401602060405180830381865afa158015612101573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906121259190614e02565b6113ee9190614d3a565b600280540361219a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610cc4565b600280553360016121ab82826113f8565b6000806121b83387613f93565b9150915060008583604001516121ce9190614db2565b90506121fc7f0000000000000000000000000000000000000000000000000000000000000000333089614158565b6040805160a08101825288815260208581015181830152818301849052606080870151908301526080808701519083015233600090815260229091529190912080548490811061224e5761224e614cc5565b9060005260206000209060050201600082015181600001556020820151816001015560408201518160020155606082015181600301556080820151816004015590505085601b60008282546122a39190614db2565b9091555050336000908152601d6020526040812080548892906122c7908490614db2565b90915550600090506122d83361240e565b905073ffffffffffffffffffffffffffffffffffffffff8116156123315773ffffffffffffffffffffffffffffffffffffffff81166000908152601f60205260408120805489929061232b908490614db2565b90915550505b5061233d3360006113f8565b604080518881526020810188905233917f2640b32e7e5d0fa2a21ea06b22fbd75fda0fda384a895a5fdeef43646de47a0c910160405180910390a2505060016002555050505050565b606060028054036123f3576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610cc4565b6002805561240333836001613b5e565b600160025592915050565b73ffffffffffffffffffffffffffffffffffffffff81166000908152600d602052604081205460ff1615612440575090565b5073ffffffffffffffffffffffffffffffffffffffff90811660009081526020805260409020541690565b919050565b60005473ffffffffffffffffffffffffffffffffffffffff163314806124a95750738412ebf45bac1b340bbe8f318b928c466c4e39ca33145b61250f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601560248201527f4e6f74206f776e6572206f722074696d656c6f636b00000000000000000000006044820152606401610cc4565b6021805491151562010000027fffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ffff931515610100027fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ff951515630100000002959095167fffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ff00ff909316929092179390931791909116179055565b6002805403612611576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610cc4565b6002805533600161262282826113f8565b60008061262f3387613f93565b9150915042851161269c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601560248201527f4d75737420626520696e207468652066757475726500000000000000000000006044820152606401610cc4565b6000428360600151116126b05760006126c0565b4283606001516126c09190614d23565b905060006126ce4288614d23565b9050818111612739576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601860248201527f43616e6e6f742073686f7274656e206c6f636b2074696d6500000000000000006044820152606401610cc4565b6008548110156127a5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601a60248201527f4d696e696d756d207374616b652074696d65206e6f74206d65740000000000006044820152606401610cc4565b600754811115612811576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601b60248201527f547279696e6720746f206c6f636b20666f7220746f6f206c6f6e6700000000006044820152606401610cc4565b6040518060a001604052808981526020014281526020018560400151815260200188815260200161284183610b86565b905233600090815260226020526040902080548590811061286457612864614cc5565b906000526020600020906005020160008201518160000155602082015181600101556040820151816002015560608201518160030155608082015181600401559050506128b23360006113f8565b6040805189815260208101839052428183015260608101899052905133917fc2cf1aae6decacbc52f96b4e4fec96d4ebab5236e4ed987165537bc463014a43919081900360800190a250506001600255505050505050565b73ffffffffffffffffffffffffffffffffffffffff81166000908152601d6020526040812054600354670de0b6b3a764000091610f6191614d3a565b600054849073ffffffffffffffffffffffffffffffffffffffff1633148061297357506129733382610f6b565b6129d9576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601460248201527f4e6f74206f776e6572206f7220746b6e206d67720000000000000000000000006044820152606401610cc4565b73ffffffffffffffffffffffffffffffffffffffff8516600090815260146020526040902054601380548692908110612a1457612a14614cc5565b9060005260206000200181905550826011601460008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205481548110612a7557612a75614cc5565b600091825260208083209190910180547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff948516179055918716815260149091526040902054601280548492908110612ae657612ae6614cc5565b9060005260206000200160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505050505050565b73ffffffffffffffffffffffffffffffffffffffff81166000908152600d602052604090205460ff16612bc4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600d60248201527f496e76616c69642070726f7879000000000000000000000000000000000000006044820152606401610cc4565b73ffffffffffffffffffffffffffffffffffffffff81166000908152600e6020908152604080832033845290915290205460ff16612c5e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f50726f787920686173206e6f7420616c6c6f77656420796f75207965740000006044820152606401610cc4565b33600090815260208052604090205473ffffffffffffffffffffffffffffffffffffffff168015612cd357336000908152601d602090815260408083205473ffffffffffffffffffffffffffffffffffffffff85168452601f9092528220805491929091612ccd908490614d23565b90915550505b3360009081526020808052604080832080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff8716908117909155601d835281842054908452601f9092528220805491929091612d47908490614db2565b90915550505050565b600054829073ffffffffffffffffffffffffffffffffffffffff16331480612d7d5750612d7d3382610f6b565b612de3576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601460248201527f4e6f74206f776e6572206f7220746b6e206d67720000000000000000000000006044820152606401610cc4565b5073ffffffffffffffffffffffffffffffffffffffff9182166000908152600f6020526040902080547fffffffffffffffffffffffff00000000000000000000000000000000000000001691909216179055565b60005473ffffffffffffffffffffffffffffffffffffffff16331480612e705750738412ebf45bac1b340bbe8f318b928c466c4e39ca33145b612ed6576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601560248201527f4e6f74206f776e6572206f722074696d656c6f636b00000000000000000000006044820152606401610cc4565b602180547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00811660ff90911615179055565b60006002805403612f75576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610cc4565b60028055602154610100900460ff1615612feb576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601260248201527f5769746864726177616c732070617573656400000000000000000000000000006044820152606401610cc4565b610dc43383856142f6565b336000908152600d602052604090205460ff1661306f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600d60248201527f496e76616c69642070726f7879000000000000000000000000000000000000006044820152606401610cc4565b336000818152600e6020908152604080832073ffffffffffffffffffffffffffffffffffffffff8681168552908352818420805460ff8116157fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff009091161790559180529091205416036131515773ffffffffffffffffffffffffffffffffffffffff811660009081526020808052604080832080547fffffffffffffffffffffffff0000000000000000000000000000000000000000169055601d825280832054338452601f909252822080549192909161314b908490614d23565b90915550505b50565b6000806011838154811061316a5761316a614cc5565b60009182526020909120015473ffffffffffffffffffffffffffffffffffffffff169050801561324557670de0b6b3a7640000601984815481106131b0576131b0614cc5565b90600052602060002001548273ffffffffffffffffffffffffffffffffffffffff16630a3be7576040518163ffffffff1660e01b8152600401602060405180830381865afa158015613206573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061322a9190614e02565b6132349190614d3a565b61323e9190614d77565b9150610b80565b6013838154811061325857613258614cc5565b9060005260206000200154915050919050565b60005b6011548110156115185760006011828154811061328d5761328d614cc5565b60009182526020909120015473ffffffffffffffffffffffffffffffffffffffff169050801561342a5782806132df5750601a82815481106132d1576132d1614cc5565b906000526020600020015442115b1561342a576040517f6472eee100000000000000000000000000000000000000000000000000000000815230600482015242602482015273ffffffffffffffffffffffffffffffffffffffff821690636472eee1906044016020604051808303816000875af1158015613356573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061337a9190614e02565b6019838154811061338d5761338d614cc5565b90600052602060002001819055508073ffffffffffffffffffffffffffffffffffffffff1663513872bd6040518163ffffffff1660e01b8152600401602060405180830381865afa1580156133e6573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061340a9190614e02565b601a838154811061341d5761341d614cc5565b6000918252602090912001555b508061343581614dca565b91505061326e565b60005473ffffffffffffffffffffffffffffffffffffffff163314806134765750738412ebf45bac1b340bbe8f318b928c466c4e39ca33145b6134dc576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601560248201527f4e6f74206f776e6572206f722074696d656c6f636b00000000000000000000006044820152606401610cc4565b8051670de0b6b3a7640000111561354f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601360248201527f4d757374206265203e3d204d554c2050524543000000000000000000000000006044820152606401610cc4565b6080810151600111801590613569575060a0810151600111155b6135cf576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600c60248201527f4d757374206265203e3d203100000000000000000000000000000000000000006044820152606401610cc4565b80516006556020810151600a556040810151600b556060810151600955608081015160075560a00151600855565b613607600061326b565b61360f61151c565b600355600454421061362557613623614557565b565b61362361488a565b600081831061363c578161363e565b825b9392505050565b600085600161365482826113f8565b6021546301000000900460ff16156136c8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600e60248201527f5374616b696e67207061757365640000000000000000000000000000000000006044820152606401610cc4565b600854851015613734576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601a60248201527f4d696e696d756d207374616b652074696d65206e6f74206d65740000000000006044820152606401610cc4565b6007548511156137a0576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601b60248201527f547279696e6720746f206c6f636b20666f7220746f6f206c6f6e6700000000006044820152606401610cc4565b6137cc7f0000000000000000000000000000000000000000000000000000000000000000883089614158565b60006137d786610b86565b73ffffffffffffffffffffffffffffffffffffffff8a166000908152601d602090815260408083205490517fffffffffffffffffffffffffffffffffffffffff00000000000000000000000060608f901b169281019290925260348201899052605482018b9052607482015291925090609401604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0818403018152828252805160209182012073ffffffffffffffffffffffffffffffffffffffff8e1660009081526022835283902060a0850184528185529184018a90529183018b905290925090606081016138ca8a8a614db2565b815260209081018590528254600181810185556000948552828520845160059093020191825591830151918101919091556040820151600282015560608201516003820155608090910151600490910155601b80548a929061392d908490614db2565b909155505073ffffffffffffffffffffffffffffffffffffffff8a166000908152601d6020526040812080548a9290613967908490614db2565b90915550600090506139788b61240e565b905073ffffffffffffffffffffffffffffffffffffffff8116156139d15773ffffffffffffffffffffffffffffffffffffffff81166000908152601f6020526040812080548b92906139cb908490614db2565b90915550505b506139dd8a60006113f8565b604080518981526020810189905290810182905273ffffffffffffffffffffffffffffffffffffffff8a811660608301528b16907ff400e72e69ef4402819dfc57eeddc66f5eb69bf405e0e8098b1946ec1ac14a229060800160405180910390a29998505050505050505050565b73ffffffffffffffffffffffffffffffffffffffff811615613151576000613a7282610a07565b905060005b8151811015613ae057818181518110613a9257613a92614cc5565b60209081029190910181015173ffffffffffffffffffffffffffffffffffffffff85166000908152601783526040808220858352909352919091205580613ad881614dca565b915050613a77565b5060005b8151811015611d2b5760158181548110613b0057613b00614cc5565b600091825260208083209091015473ffffffffffffffffffffffffffffffffffffffff8616835260168252604080842085855290925291205580613b4381614dca565b915050613ae4565b6000613b594260045461362d565b905090565b6060836001613b6d82826113f8565b73ffffffffffffffffffffffffffffffffffffffff8616600090815260186020526040902042905560215462010000900460ff1615613c08576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601960248201527f5265776172647320636f6c6c656374696f6e20706175736564000000000000006044820152606401610cc4565b60105467ffffffffffffffff811115613c2357613c23614bf1565b604051908082528060200260200182016040528015613c4c578160200160208202803683370190505b50925060005b601054811015613e205773ffffffffffffffffffffffffffffffffffffffff871660009081526017602090815260408083208484529091529020548451859083908110613ca157613ca1614cc5565b60209081029190910181019190915273ffffffffffffffffffffffffffffffffffffffff881660009081526017825260408082208483529092529081208190558451859083908110613cf557613cf5614cc5565b60200260200101511115613e0e57613d6460108281548110613d1957613d19614cc5565b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1687868481518110613d5757613d57614cc5565b6020026020010151613e2a565b8673ffffffffffffffffffffffffffffffffffffffff167f1d2f2ca53af5d2f333bd32fdd45f9c52ad8ebe31414f7792912077fcb3876dff858381518110613dae57613dae614cc5565b602002602001015160108481548110613dc957613dc9614cc5565b600091825260209182902001546040805193845273ffffffffffffffffffffffffffffffffffffffff918216928401929092528a169082015260600160405180910390a25b80613e1881614dca565b915050613c52565b5050509392505050565b6040805173ffffffffffffffffffffffffffffffffffffffff8481166024830152604480830185905283518084039091018152606490920183526020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fa9059cbb000000000000000000000000000000000000000000000000000000001790529151600092839290871691613ec19190614e47565b6000604051808303816000865af19150503d8060008114613efe576040519150601f19603f3d011682016040523d82523d6000602084013e613f03565b606091505b5091509150818015613f2d575080511580613f2d575080806020019051810190613f2d9190614e63565b611514576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5472616e7366657248656c7065723a205452414e534645525f4641494c4544006044820152606401610cc4565b613fc86040518060a0016040528060008019168152602001600081526020016000815260200160008152602001600081525090565b6000805b73ffffffffffffffffffffffffffffffffffffffff85166000908152602260205260409020548110156140e65773ffffffffffffffffffffffffffffffffffffffff8516600090815260226020526040902080548290811061403057614030614cc5565b90600052602060002090600502016000015484036140d45773ffffffffffffffffffffffffffffffffffffffff8516600090815260226020526040902080548290811061407f5761407f614cc5565b90600052602060002090600502016040518060a00160405290816000820154815260200160018201548152602001600282015481526020016003820154815260200160048201548152505092508091506140e6565b806140de81614dca565b915050613fcc565b5081518314614151576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600f60248201527f5374616b65206e6f7420666f756e6400000000000000000000000000000000006044820152606401610cc4565b9250929050565b6040805173ffffffffffffffffffffffffffffffffffffffff85811660248301528481166044830152606480830185905283518084039091018152608490920183526020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167f23b872dd0000000000000000000000000000000000000000000000000000000017905291516000928392908816916141f79190614e47565b6000604051808303816000865af19150503d8060008114614234576040519150601f19603f3d011682016040523d82523d6000602084013e614239565b606091505b50915091508180156142635750805115806142635750808060200190518101906142639190614e63565b6142ee576040517f08c379a0000000000000000000000000000000000000000000000000000000008152602060048201526024808201527f5472616e7366657248656c7065723a205452414e534645525f46524f4d5f464160448201527f494c4544000000000000000000000000000000000000000000000000000000006064820152608401610cc4565b505050505050565b600061430484846001613b5e565b506000806143128685613f93565b91509150816060015142101580614330575060215460ff1615156001145b614396576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601660248201527f5374616b65206973207374696c6c206c6f636b656421000000000000000000006044820152606401610cc4565b6040820151801561454d576143cc7f00000000000000000000000000000000000000000000000000000000000000008783613e2a565b80601b60008282546143de9190614d23565b909155505073ffffffffffffffffffffffffffffffffffffffff87166000908152601d602052604081208054839290614418908490614d23565b90915550600090506144298861240e565b905073ffffffffffffffffffffffffffffffffffffffff8116156144825773ffffffffffffffffffffffffffffffffffffffff81166000908152601f60205260408120805484929061447c908490614d23565b90915550505b5073ffffffffffffffffffffffffffffffffffffffff871660009081526022602052604090208054839081106144ba576144ba614cc5565b6000918252602082206005909102018181556001810182905560028101829055600381018290556004018190556144f29088906113f8565b604080518281526020810187905273ffffffffffffffffffffffffffffffffffffffff888116828401529151918916917f1d9308f6b22a2754a1c622bb30889e8f8f956c83e524d039e9d65d5f052eb9089181900360600190a25b9695505050505050565b60005b6012548110156146485760006012828154811061457957614579614cc5565b60009182526020909120015473ffffffffffffffffffffffffffffffffffffffff1690508015614635576040517f092193ab00000000000000000000000000000000000000000000000000000000815230600482015273ffffffffffffffffffffffffffffffffffffffff82169063092193ab9060240160408051808303816000875af115801561460e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906146329190614e80565b50505b508061464081614dca565b91505061455a565b50600062093a806004544261465d9190614d23565b6146679190614d77565b905060005b60105481101561484a576010818154811061468957614689614cc5565b6000918252602090912001546040517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015273ffffffffffffffffffffffffffffffffffffffff909116906370a0823190602401602060405180830381865afa158015614700573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906147249190614e02565b61472f836001614db2565b62093a8061473c84613154565b6147469190614d3a565b6147509190614d3a565b11156010828154811061476557614765614cc5565b60009182526020918290200154604080517f4e6f7420656e6f7567682072657761726420746f6b656e7320617661696c6162938101939093527f6c653a20000000000000000000000000000000000000000000000000000000009083015260601b7fffffffffffffffffffffffffffffffffffffffff00000000000000000000000016604482015260580160405160208183030381529060405290614837576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610cc49190614ea4565b508061484281614dca565b91505061466c565b5062093a8061485a826001614db2565b6148649190614d3a565b6004546148719190614db2565b60045561487c61488a565b61488461151c565b60035550565b60006148946115b0565b905060005b6015548110156148ee578181815181106148b5576148b5614cc5565b6020026020010151601582815481106148d0576148d0614cc5565b600091825260209091200155806148e681614dca565b915050614899565b506148f7613b4b565b60055550565b803573ffffffffffffffffffffffffffffffffffffffff8116811461246b57600080fd5b60006020828403121561493357600080fd5b61363e826148fd565b6020808252825182820181905260009190848201906040850190845b8181101561497457835183529284019291840191600101614958565b50909695505050505050565b60006020828403121561499257600080fd5b5035919050565b6020808252825182820181905260009190848201906040850190845b8181101561497457835173ffffffffffffffffffffffffffffffffffffffff16835292840192918401916001016149b5565b600080604083850312156149fa57600080fd5b50508035926020909101359150565b602080825282518282018190526000919060409081850190868401855b82811015614a6a5781518051855286810151878601528581015186860152606080820151908601526080908101519085015260a09093019290850190600101614a26565b5091979650505050505050565b60008060408385031215614a8a57600080fd5b614a93836148fd565b9150614aa1602084016148fd565b90509250929050565b801515811461315157600080fd5b60008060408385031215614acb57600080fd5b614ad4836148fd565b91506020830135614ae481614aaa565b809150509250929050565b60008060408385031215614b0257600080fd5b614b0b836148fd565b946020939093013593505050565b600080600060608486031215614b2e57600080fd5b8335614b3981614aaa565b92506020840135614b4981614aaa565b91506040840135614b5981614aaa565b809150509250925092565b60008060008060808587031215614b7a57600080fd5b614b83856148fd565b935060208501359250614b98604086016148fd565b9150614ba6606086016148fd565b905092959194509250565b60008060408385031215614bc457600080fd5b82359150614aa1602084016148fd565b600060208284031215614be657600080fd5b813561363e81614aaa565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600060c08284031215614c3257600080fd5b82601f830112614c4157600080fd5b60405160c0810181811067ffffffffffffffff82111715614c8b577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040528060c0840185811115614ca057600080fd5b845b81811015614cba578035835260209283019201614ca2565b509195945050505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600082821015614d3557614d35614cf4565b500390565b6000817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615614d7257614d72614cf4565b500290565b600082614dad577f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b500490565b60008219821115614dc557614dc5614cf4565b500190565b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8203614dfb57614dfb614cf4565b5060010190565b600060208284031215614e1457600080fd5b5051919050565b60005b83811015614e36578181015183820152602001614e1e565b83811115611cc35750506000910152565b60008251614e59818460208701614e1b565b9190910192915050565b600060208284031215614e7557600080fd5b815161363e81614aaa565b60008060408385031215614e9357600080fd5b505080516020909101519092909150565b6020815260008251806020840152614ec3816040850160208701614e1b565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016919091016040019291505056fea26469706673582212205aebb569aae77c355e348f8cc000f795c11b91d0812e5743988160eafc0efd4864736f6c634300080f0033000000000000000000000000ff5b4bcbf765fe363269114e1c765229a29edefd00000000000000000000000000000000000000000000000000000000000000e00000000000000000000000000000000000000000000000000000000000000120000000000000000000000000000000000000000000000000000000000000016000000000000000000000000000000000000000000000000000000000000001a000000000000000000000000000000000000000000000000000000000000001e000000000000000000000000032fa492ac1f729e0ee9eddfcbacc3ef72b234e2700000000000000000000000000000000000000000000000000000000000000010000000000000000000000003432b6a60d23ca0dfca7761b7ab56459d9c964d00000000000000000000000000000000000000000000000000000000000000001000000000000000000000000b1748c79709f4ba2dd82834b8c82d4a505003f27000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000a86cc92e3da000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001000000000000000000000000278dc748eda1d8efef1adfb518542612b49fcd34

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106104055760003560e01c80638980f11f1161021a578063d2fbdc0d11610135578063e44b9fa5116100c8578063f2a8d34911610097578063f77e34d11161007c578063f77e34d1146109d9578063facefb64146109ec578063fff6cae9146109ff57600080fd5b8063f2a8d349146109bd578063f2caeb1e146109c657600080fd5b8063e44b9fa514610985578063e7f3058214610998578063ebe2b12b146109ab578063f288baf6146109b457600080fd5b8063d9f96e8d11610104578063d9f96e8d1461092c578063de1a655114610962578063e01f62bf14610975578063e1ba95d21461097d57600080fd5b8063d2fbdc0d146108e0578063d42fc9b4146108f3578063d5e1a9c614610906578063d7400d561461091957600080fd5b8063b94c4dcb116101ad578063ca6df29d1161017c578063ca6df29d14610885578063cc2abd64146108bb578063cdc82e80146108ce578063d2010fb4146108d757600080fd5b8063b94c4dcb1461084d578063c00007b014610856578063c354382614610869578063c8f33c911461087c57600080fd5b80639637927f116101e95780639637927f14610811578063a0f234761461081e578063aa1d4fce14610831578063b85efd061461083a57600080fd5b80638980f11f1461079d5780638bad86a7146107b05780638da5cb5b146107de57806391cf600a146107fe57600080fd5b80634f39059c116103255780636e27cef9116102b85780637910d17b1161028757806379ba50971161026c57806379ba5097146107625780637d6ef08e1461076a5780637f472e541461078a57600080fd5b80637910d17b146107145780637970833e1461072757600080fd5b80636e27cef9146106c957806370641a36146106d257806372f702f3146106da578063774d4ae71461070157600080fd5b80635bfd9258116102f45780635bfd92581461067957806364f2c0601461068157806369339245146106895780636c430dbb146106a957600080fd5b80634f39059c1461060c5780634fd2b5361461063357806353a47bb714610646578063551897731461066657600080fd5b8063218751b21161039d57806336f89af21161036c57806336f89af214610583578063386a9525146105b9578063387edc86146105c357806341a16f3f146105d657600080fd5b8063218751b2146104cc578063231b68dc1461051857806328408bab1461053b5780632c0c2a0a1461057057600080fd5b806317b18c89116103d957806317b18c891461047e5780631c1f78eb146104915780631e090f01146104995780631face856146104b957600080fd5b80628cc2621461040a5780630d7bac4f1461043357806312edb24c146104545780631627540c14610469575b600080fd5b61041d610418366004614921565b610a07565b60405161042a919061493c565b60405180910390f35b610446610441366004614980565b610b86565b60405190815260200161042a565b61045c610bb2565b60405161042a9190614999565b61047c610477366004614921565b610c21565b005b61044661048c3660046149e7565b610d46565b61041d610dd0565b6104ac6104a7366004614921565b610e71565b60405161042a9190614a09565b6104466104c7366004614921565b610f25565b6104f37f00000000000000000000000033baeda08b8afacc4d3d07cf31d49fc1f1f3e89381565b60405173ffffffffffffffffffffffffffffffffffffffff909116815260200161042a565b61052b610526366004614a77565b610f6b565b604051901515815260200161042a565b6104f3610549366004614921565b602080526000908152604090205473ffffffffffffffffffffffffffffffffffffffff1681565b61044661057e366004614921565b610fd9565b610446610591366004614921565b73ffffffffffffffffffffffffffffffffffffffff166000908152601e602052604090205490565b61044662093a8081565b61047c6105d1366004614921565b6112ed565b6104f36105e4366004614921565b600f6020526000908152604090205473ffffffffffffffffffffffffffffffffffffffff1681565b6104f37f00000000000000000000000033baeda08b8afacc4d3d07cf31d49fc1f1f3e89381565b610446610641366004614921565b6113d7565b6001546104f39073ffffffffffffffffffffffffffffffffffffffff1681565b61047c610674366004614ab8565b6113f8565b61044661151c565b601c54610446565b610446610697366004614921565b60146020526000908152604090205481565b6104466106b7366004614921565b60186020526000908152604090205481565b61044660085481565b61041d6115b0565b6104f37f00000000000000000000000032fa492ac1f729e0ee9eddfcbacc3ef72b234e2781565b61044661070f366004614aef565b61170f565b61041d610722366004614ab8565b61191b565b61073a610735366004614aef565b611997565b604080519586526020860194909452928401919091526060830152608082015260a00161042a565b61047c6119e5565b610446610778366004614921565b601f6020526000908152604090205481565b610446610798366004614921565b611b30565b61047c6107ab366004614aef565b611b47565b6107c36107be366004614921565b611d30565b6040805193845260208401929092529082015260600161042a565b6000546104f39073ffffffffffffffffffffffffffffffffffffffff1681565b61047c61080c366004614921565b611f64565b60215461052b9060ff1681565b61044661082c366004614921565b612057565b61044660095481565b61047c6108483660046149e7565b61212f565b61044660075481565b61041d610864366004614921565b612386565b6104f3610877366004614921565b61240e565b61044660055481565b610446610893366004614921565b73ffffffffffffffffffffffffffffffffffffffff1660009081526022602052604090205490565b61047c6108c9366004614b19565b612470565b61044660065481565b61044660035481565b61047c6108ee3660046149e7565b6125a6565b610446610901366004614921565b61290a565b61047c610914366004614b64565b612946565b61047c610927366004614921565b612b35565b61044661093a366004614921565b73ffffffffffffffffffffffffffffffffffffffff166000908152601d602052604090205490565b61047c610970366004614a77565b612d50565b601b54610446565b61047c612e37565b610446610993366004614bb1565b612f08565b61047c6109a6366004614921565b612ff6565b61044660045481565b610446600a5481565b610446600b5481565b6104466109d4366004614980565b613154565b61047c6109e7366004614bd4565b61326b565b61047c6109fa366004614c20565b61343d565b61047c6135fd565b60606000610a136115b0565b60105490915067ffffffffffffffff811115610a3157610a31614bf1565b604051908082528060200260200182016040528015610a5a578160200160208202803683370190505b5073ffffffffffffffffffffffffffffffffffffffff84166000908152601e602052604090205490925015610b805760005b601054811015610b7e5773ffffffffffffffffffffffffffffffffffffffff84166000818152601760209081526040808320858452825280832054938352601682528083208584529091529020548351670de0b6b3a76400009190859085908110610af957610af9614cc5565b6020026020010151610b0b9190614d23565b73ffffffffffffffffffffffffffffffffffffffff87166000908152601e6020526040902054610b3b9190614d3a565b610b459190614d77565b610b4f9190614db2565b838281518110610b6157610b61614cc5565b602090810291909101015280610b7681614dca565b915050610a8c565b505b50919050565b600654600754600091610bac91610b9d8286614d3a565b610ba79190614d77565b61362d565b92915050565b60606010805480602002602001604051908101604052809291908181526020018280548015610c1757602002820191906000526020600020905b815473ffffffffffffffffffffffffffffffffffffffff168152600190910190602001808311610bec575b5050505050905090565b60005473ffffffffffffffffffffffffffffffffffffffff163314610ccd576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602f60248201527f4f6e6c792074686520636f6e7472616374206f776e6572206d6179207065726660448201527f6f726d207468697320616374696f6e000000000000000000000000000000000060648201526084015b60405180910390fd5b600180547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff83169081179091556040519081527f906a1c6bd7e3091ea86693dd029a831c19049ce77f1dce2ce0bab1cacbabce229060200160405180910390a150565b60006002805403610db3576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610cc4565b60028055610dc43380858542613645565b60016002559392505050565b60135460609067ffffffffffffffff811115610dee57610dee614bf1565b604051908082528060200260200182016040528015610e17578160200160208202803683370190505b50905060005b601354811015610e6d5762093a80610e3482613154565b610e3e9190614d3a565b828281518110610e5057610e50614cc5565b602090810291909101015280610e6581614dca565b915050610e1d565b5090565b73ffffffffffffffffffffffffffffffffffffffff81166000908152602260209081526040808320805482518185028101850190935280835260609492939192909184015b82821015610f1a57838290600052602060002090600502016040518060a00160405290816000820154815260200160018201548152602001600282015481526020016003820154815260200160048201548152505081526020019060010190610eb6565b505050509050919050565b73ffffffffffffffffffffffffffffffffffffffff81166000908152601f6020526040812054600354670de0b6b3a764000091610f6191614d3a565b610bac9190614d77565b6000805473ffffffffffffffffffffffffffffffffffffffff90811690841603610f9757506001610bac565b73ffffffffffffffffffffffffffffffffffffffff8281166000908152600f6020526040902054818516911603610fd057506001610bac565b50600092915050565b60008080610fe68461240e565b905073ffffffffffffffffffffffffffffffffffffffff8116156110b9576040517f70a0823100000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff82811660048301527f000000000000000000000000c8418af6358ffdda74e09ca9cc3fe03ca6adc5b016906370a0823190602401602060405180830381865afa158015611090573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110b49190614e02565b611169565b6040517f70a0823100000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff85811660048301527f000000000000000000000000c8418af6358ffdda74e09ca9cc3fe03ca6adc5b016906370a0823190602401602060405180830381865afa158015611145573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111699190614e02565b91506000670de0b6b3a76400007f000000000000000000000000c8418af6358ffdda74e09ca9cc3fe03ca6adc5b073ffffffffffffffffffffffffffffffffffffffff166318160ddd6040518163ffffffff1660e01b8152600401602060405180830381865afa1580156111e1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112059190614e02565b61120f9190614d3a565b600954600a5461121f9086614d3a565b6112299190614d3a565b6112339190614d77565b905060008073ffffffffffffffffffffffffffffffffffffffff8416156112625761125d84611b30565b61126b565b61126b876113d7565b905080156112bd57600081611288670de0b6b3a764000088614d3a565b6112929190614d77565b9050670de0b6b3a7640000600a54826112ab9190614d3a565b6112b59190614d77565b9250506112c2565b600091505b508082116112d057806112d2565b815b9450600a548511156112e457600a5494505b50505050919050565b6002805403611358576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610cc4565b6002805560215462010000900460ff16156113cf576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601960248201527f5265776172647320636f6c6c656374696f6e20706175736564000000000000006044820152606401610cc4565b506001600255565b6000670de0b6b3a7640000600b546113ee8461290a565b610f619190614d3a565b8015611406576114066135fd565b73ffffffffffffffffffffffffffffffffffffffff82161561151857600080600061143085611d30565b92509250925061143f85613a4b565b73ffffffffffffffffffffffffffffffffffffffff85166000908152600c602052604090208290558281106114c357600061147a8483614d23565b905080601c5461148a9190614db2565b601c556114978185614db2565b73ffffffffffffffffffffffffffffffffffffffff87166000908152601e602052604090205550611514565b60006114cf8285614d23565b905080601c546114df9190614d23565b601c556114ec8185614d23565b73ffffffffffffffffffffffffffffffffffffffff87166000908152601e6020526040902055505b5050505b5050565b60008060047f00000000000000000000000033baeda08b8afacc4d3d07cf31d49fc1f1f3e89373ffffffffffffffffffffffffffffffffffffffff1663bb7b8b806040518163ffffffff1660e01b8152600401602060405180830381865afa15801561158c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f619190614e02565b6060601b54600014806115c35750601c54155b1561161d576015805480602002602001604051908101604052809291908181526020018280548015610c1757602002820191906000526020600020905b815481526020019060010190808311611600575050505050905090565b60105467ffffffffffffffff81111561163857611638614bf1565b604051908082528060200260200182016040528015611661578160200160208202803683370190505b50905060005b601554811015610e6d57601c5461167d82613154565b600554611688613b4b565b6116929190614d23565b61169c9190614d3a565b6116ae90670de0b6b3a7640000614d3a565b6116b89190614d77565b601582815481106116cb576116cb614cc5565b90600052602060002001546116e09190614db2565b8282815181106116f2576116f2614cc5565b60209081029190910101528061170781614dca565b915050611667565b73ffffffffffffffffffffffffffffffffffffffff8216600090815260226020526040812080548291908490811061174957611749614cc5565b600091825260208083206040805160a081018252600590940290910180548452600181015484840181905260028201548584015260038201546060860152600490910154608085015273ffffffffffffffffffffffffffffffffffffffff89168552601890925283205491935011156117c7575060208101516117ef565b5073ffffffffffffffffffffffffffffffffffffffff84166000908152601860205260409020545b428260600151116118af57606082015173ffffffffffffffffffffffffffffffffffffffff861660009081526018602052604090205410156118a657600081836060015161183d9190614d23565b905060008360600151426118519190614d23565b90506000611863610441600285614d77565b905060006118718382614d3a565b61187b8584614d3a565b6118859190614db2565b90506118918385614db2565b61189b9082614d77565b9650505050506118ff565b600092506118ff565b6000808284606001516118c29190614d23565b905060004285606001516118d69190614d23565b905060026118e48284614db2565b6118ee9190614d77565b925050506118fb81610b86565b9350505b816080015183111561191357816080015192505b505092915050565b60606002805403611988576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610cc4565b60028055610dc4338484613b5e565b602260205281600052604060002081815481106119b357600080fd5b600091825260209091206005909102018054600182015460028301546003840154600490940154929550909350919085565b60015473ffffffffffffffffffffffffffffffffffffffff163314611a8c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603560248201527f596f75206d757374206265206e6f6d696e61746564206265666f726520796f7560448201527f2063616e20616363657074206f776e65727368697000000000000000000000006064820152608401610cc4565b6000546001546040805173ffffffffffffffffffffffffffffffffffffffff93841681529290911660208301527fb532073b38c83145e3e5135377a08bf9aab55bc0fd7c1179cd4fb995d2a5159c910160405180910390a160018054600080547fffffffffffffffffffffffff000000000000000000000000000000000000000090811673ffffffffffffffffffffffffffffffffffffffff841617909155169055565b6000670de0b6b3a7640000600b546113ee84610f25565b600054829073ffffffffffffffffffffffffffffffffffffffff16331480611b745750611b743382610f6b565b611bda576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601460248201527f4e6f74206f776e6572206f7220746b6e206d67720000000000000000000000006044820152606401610cc4565b6000805b601054811015611c54578473ffffffffffffffffffffffffffffffffffffffff1660108281548110611c1257611c12614cc5565b60009182526020909120015473ffffffffffffffffffffffffffffffffffffffff1603611c425760019150611c54565b80611c4c81614dca565b915050611bde565b50808015611c88575073ffffffffffffffffffffffffffffffffffffffff8481166000908152600f60205260409020541633145b80611cb3575080158015611cb3575060005473ffffffffffffffffffffffffffffffffffffffff1633145b15611cc957611cc3843385613e2a565b50505050565b6040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601a60248201527f4e6f2076616c696420746f6b656e7320746f207265636f7665720000000000006044820152606401610cc4565b505050565b73ffffffffffffffffffffffffffffffffffffffff81166000908152601e60205260408120549080611d6184610fd9565b73ffffffffffffffffffffffffffffffffffffffff85166000908152601d602052604081205491935090158015611dbb575073ffffffffffffffffffffffffffffffffffffffff85166000908152601e6020526040902054155b80611deb575073ffffffffffffffffffffffffffffffffffffffff85166000908152600c60205260409020548310155b15611df7575081611e37565b73ffffffffffffffffffffffffffffffffffffffff85166000908152600c6020526040902054600290611e2a9085614db2565b611e349190614d77565b90505b6000915060005b73ffffffffffffffffffffffffffffffffffffffff8616600090815260226020526040902054811015611f5b5773ffffffffffffffffffffffffffffffffffffffff86166000908152602260205260408120805483908110611ea257611ea2614cc5565b90600052602060002090600502016040518060a00160405290816000820154815260200160018201548152602001600282015481526020016003820154815260200160048201548152505090506000611efb888461170f565b60408301519091506000670de0b6b3a7640000611f188785614db2565b611f229084614d3a565b611f2c9190614d77565b611f369083614db2565b9050611f428188614db2565b9650505050508080611f5390614dca565b915050611e3e565b50509193909250565b60005473ffffffffffffffffffffffffffffffffffffffff16331480611f9d5750738412ebf45bac1b340bbe8f318b928c466c4e39ca33145b612003576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601560248201527f4e6f74206f776e6572206f722074696d656c6f636b00000000000000000000006044820152606401610cc4565b73ffffffffffffffffffffffffffffffffffffffff166000908152600d6020526040902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00811660ff90911615179055565b6000600354600b546120699190614d3a565b6040517f70a0823100000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff8481166004830152670de0b6b3a76400009182917f000000000000000000000000c8418af6358ffdda74e09ca9cc3fe03ca6adc5b016906370a0823190602401602060405180830381865afa158015612101573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906121259190614e02565b6113ee9190614d3a565b600280540361219a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610cc4565b600280553360016121ab82826113f8565b6000806121b83387613f93565b9150915060008583604001516121ce9190614db2565b90506121fc7f00000000000000000000000032fa492ac1f729e0ee9eddfcbacc3ef72b234e27333089614158565b6040805160a08101825288815260208581015181830152818301849052606080870151908301526080808701519083015233600090815260229091529190912080548490811061224e5761224e614cc5565b9060005260206000209060050201600082015181600001556020820151816001015560408201518160020155606082015181600301556080820151816004015590505085601b60008282546122a39190614db2565b9091555050336000908152601d6020526040812080548892906122c7908490614db2565b90915550600090506122d83361240e565b905073ffffffffffffffffffffffffffffffffffffffff8116156123315773ffffffffffffffffffffffffffffffffffffffff81166000908152601f60205260408120805489929061232b908490614db2565b90915550505b5061233d3360006113f8565b604080518881526020810188905233917f2640b32e7e5d0fa2a21ea06b22fbd75fda0fda384a895a5fdeef43646de47a0c910160405180910390a2505060016002555050505050565b606060028054036123f3576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610cc4565b6002805561240333836001613b5e565b600160025592915050565b73ffffffffffffffffffffffffffffffffffffffff81166000908152600d602052604081205460ff1615612440575090565b5073ffffffffffffffffffffffffffffffffffffffff90811660009081526020805260409020541690565b919050565b60005473ffffffffffffffffffffffffffffffffffffffff163314806124a95750738412ebf45bac1b340bbe8f318b928c466c4e39ca33145b61250f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601560248201527f4e6f74206f776e6572206f722074696d656c6f636b00000000000000000000006044820152606401610cc4565b6021805491151562010000027fffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ffff931515610100027fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ff951515630100000002959095167fffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ff00ff909316929092179390931791909116179055565b6002805403612611576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610cc4565b6002805533600161262282826113f8565b60008061262f3387613f93565b9150915042851161269c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601560248201527f4d75737420626520696e207468652066757475726500000000000000000000006044820152606401610cc4565b6000428360600151116126b05760006126c0565b4283606001516126c09190614d23565b905060006126ce4288614d23565b9050818111612739576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601860248201527f43616e6e6f742073686f7274656e206c6f636b2074696d6500000000000000006044820152606401610cc4565b6008548110156127a5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601a60248201527f4d696e696d756d207374616b652074696d65206e6f74206d65740000000000006044820152606401610cc4565b600754811115612811576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601b60248201527f547279696e6720746f206c6f636b20666f7220746f6f206c6f6e6700000000006044820152606401610cc4565b6040518060a001604052808981526020014281526020018560400151815260200188815260200161284183610b86565b905233600090815260226020526040902080548590811061286457612864614cc5565b906000526020600020906005020160008201518160000155602082015181600101556040820151816002015560608201518160030155608082015181600401559050506128b23360006113f8565b6040805189815260208101839052428183015260608101899052905133917fc2cf1aae6decacbc52f96b4e4fec96d4ebab5236e4ed987165537bc463014a43919081900360800190a250506001600255505050505050565b73ffffffffffffffffffffffffffffffffffffffff81166000908152601d6020526040812054600354670de0b6b3a764000091610f6191614d3a565b600054849073ffffffffffffffffffffffffffffffffffffffff1633148061297357506129733382610f6b565b6129d9576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601460248201527f4e6f74206f776e6572206f7220746b6e206d67720000000000000000000000006044820152606401610cc4565b73ffffffffffffffffffffffffffffffffffffffff8516600090815260146020526040902054601380548692908110612a1457612a14614cc5565b9060005260206000200181905550826011601460008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205481548110612a7557612a75614cc5565b600091825260208083209190910180547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff948516179055918716815260149091526040902054601280548492908110612ae657612ae6614cc5565b9060005260206000200160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505050505050565b73ffffffffffffffffffffffffffffffffffffffff81166000908152600d602052604090205460ff16612bc4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600d60248201527f496e76616c69642070726f7879000000000000000000000000000000000000006044820152606401610cc4565b73ffffffffffffffffffffffffffffffffffffffff81166000908152600e6020908152604080832033845290915290205460ff16612c5e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f50726f787920686173206e6f7420616c6c6f77656420796f75207965740000006044820152606401610cc4565b33600090815260208052604090205473ffffffffffffffffffffffffffffffffffffffff168015612cd357336000908152601d602090815260408083205473ffffffffffffffffffffffffffffffffffffffff85168452601f9092528220805491929091612ccd908490614d23565b90915550505b3360009081526020808052604080832080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff8716908117909155601d835281842054908452601f9092528220805491929091612d47908490614db2565b90915550505050565b600054829073ffffffffffffffffffffffffffffffffffffffff16331480612d7d5750612d7d3382610f6b565b612de3576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601460248201527f4e6f74206f776e6572206f7220746b6e206d67720000000000000000000000006044820152606401610cc4565b5073ffffffffffffffffffffffffffffffffffffffff9182166000908152600f6020526040902080547fffffffffffffffffffffffff00000000000000000000000000000000000000001691909216179055565b60005473ffffffffffffffffffffffffffffffffffffffff16331480612e705750738412ebf45bac1b340bbe8f318b928c466c4e39ca33145b612ed6576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601560248201527f4e6f74206f776e6572206f722074696d656c6f636b00000000000000000000006044820152606401610cc4565b602180547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00811660ff90911615179055565b60006002805403612f75576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610cc4565b60028055602154610100900460ff1615612feb576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601260248201527f5769746864726177616c732070617573656400000000000000000000000000006044820152606401610cc4565b610dc43383856142f6565b336000908152600d602052604090205460ff1661306f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600d60248201527f496e76616c69642070726f7879000000000000000000000000000000000000006044820152606401610cc4565b336000818152600e6020908152604080832073ffffffffffffffffffffffffffffffffffffffff8681168552908352818420805460ff8116157fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff009091161790559180529091205416036131515773ffffffffffffffffffffffffffffffffffffffff811660009081526020808052604080832080547fffffffffffffffffffffffff0000000000000000000000000000000000000000169055601d825280832054338452601f909252822080549192909161314b908490614d23565b90915550505b50565b6000806011838154811061316a5761316a614cc5565b60009182526020909120015473ffffffffffffffffffffffffffffffffffffffff169050801561324557670de0b6b3a7640000601984815481106131b0576131b0614cc5565b90600052602060002001548273ffffffffffffffffffffffffffffffffffffffff16630a3be7576040518163ffffffff1660e01b8152600401602060405180830381865afa158015613206573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061322a9190614e02565b6132349190614d3a565b61323e9190614d77565b9150610b80565b6013838154811061325857613258614cc5565b9060005260206000200154915050919050565b60005b6011548110156115185760006011828154811061328d5761328d614cc5565b60009182526020909120015473ffffffffffffffffffffffffffffffffffffffff169050801561342a5782806132df5750601a82815481106132d1576132d1614cc5565b906000526020600020015442115b1561342a576040517f6472eee100000000000000000000000000000000000000000000000000000000815230600482015242602482015273ffffffffffffffffffffffffffffffffffffffff821690636472eee1906044016020604051808303816000875af1158015613356573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061337a9190614e02565b6019838154811061338d5761338d614cc5565b90600052602060002001819055508073ffffffffffffffffffffffffffffffffffffffff1663513872bd6040518163ffffffff1660e01b8152600401602060405180830381865afa1580156133e6573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061340a9190614e02565b601a838154811061341d5761341d614cc5565b6000918252602090912001555b508061343581614dca565b91505061326e565b60005473ffffffffffffffffffffffffffffffffffffffff163314806134765750738412ebf45bac1b340bbe8f318b928c466c4e39ca33145b6134dc576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601560248201527f4e6f74206f776e6572206f722074696d656c6f636b00000000000000000000006044820152606401610cc4565b8051670de0b6b3a7640000111561354f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601360248201527f4d757374206265203e3d204d554c2050524543000000000000000000000000006044820152606401610cc4565b6080810151600111801590613569575060a0810151600111155b6135cf576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600c60248201527f4d757374206265203e3d203100000000000000000000000000000000000000006044820152606401610cc4565b80516006556020810151600a556040810151600b556060810151600955608081015160075560a00151600855565b613607600061326b565b61360f61151c565b600355600454421061362557613623614557565b565b61362361488a565b600081831061363c578161363e565b825b9392505050565b600085600161365482826113f8565b6021546301000000900460ff16156136c8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600e60248201527f5374616b696e67207061757365640000000000000000000000000000000000006044820152606401610cc4565b600854851015613734576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601a60248201527f4d696e696d756d207374616b652074696d65206e6f74206d65740000000000006044820152606401610cc4565b6007548511156137a0576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601b60248201527f547279696e6720746f206c6f636b20666f7220746f6f206c6f6e6700000000006044820152606401610cc4565b6137cc7f00000000000000000000000032fa492ac1f729e0ee9eddfcbacc3ef72b234e27883089614158565b60006137d786610b86565b73ffffffffffffffffffffffffffffffffffffffff8a166000908152601d602090815260408083205490517fffffffffffffffffffffffffffffffffffffffff00000000000000000000000060608f901b169281019290925260348201899052605482018b9052607482015291925090609401604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0818403018152828252805160209182012073ffffffffffffffffffffffffffffffffffffffff8e1660009081526022835283902060a0850184528185529184018a90529183018b905290925090606081016138ca8a8a614db2565b815260209081018590528254600181810185556000948552828520845160059093020191825591830151918101919091556040820151600282015560608201516003820155608090910151600490910155601b80548a929061392d908490614db2565b909155505073ffffffffffffffffffffffffffffffffffffffff8a166000908152601d6020526040812080548a9290613967908490614db2565b90915550600090506139788b61240e565b905073ffffffffffffffffffffffffffffffffffffffff8116156139d15773ffffffffffffffffffffffffffffffffffffffff81166000908152601f6020526040812080548b92906139cb908490614db2565b90915550505b506139dd8a60006113f8565b604080518981526020810189905290810182905273ffffffffffffffffffffffffffffffffffffffff8a811660608301528b16907ff400e72e69ef4402819dfc57eeddc66f5eb69bf405e0e8098b1946ec1ac14a229060800160405180910390a29998505050505050505050565b73ffffffffffffffffffffffffffffffffffffffff811615613151576000613a7282610a07565b905060005b8151811015613ae057818181518110613a9257613a92614cc5565b60209081029190910181015173ffffffffffffffffffffffffffffffffffffffff85166000908152601783526040808220858352909352919091205580613ad881614dca565b915050613a77565b5060005b8151811015611d2b5760158181548110613b0057613b00614cc5565b600091825260208083209091015473ffffffffffffffffffffffffffffffffffffffff8616835260168252604080842085855290925291205580613b4381614dca565b915050613ae4565b6000613b594260045461362d565b905090565b6060836001613b6d82826113f8565b73ffffffffffffffffffffffffffffffffffffffff8616600090815260186020526040902042905560215462010000900460ff1615613c08576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601960248201527f5265776172647320636f6c6c656374696f6e20706175736564000000000000006044820152606401610cc4565b60105467ffffffffffffffff811115613c2357613c23614bf1565b604051908082528060200260200182016040528015613c4c578160200160208202803683370190505b50925060005b601054811015613e205773ffffffffffffffffffffffffffffffffffffffff871660009081526017602090815260408083208484529091529020548451859083908110613ca157613ca1614cc5565b60209081029190910181019190915273ffffffffffffffffffffffffffffffffffffffff881660009081526017825260408082208483529092529081208190558451859083908110613cf557613cf5614cc5565b60200260200101511115613e0e57613d6460108281548110613d1957613d19614cc5565b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1687868481518110613d5757613d57614cc5565b6020026020010151613e2a565b8673ffffffffffffffffffffffffffffffffffffffff167f1d2f2ca53af5d2f333bd32fdd45f9c52ad8ebe31414f7792912077fcb3876dff858381518110613dae57613dae614cc5565b602002602001015160108481548110613dc957613dc9614cc5565b600091825260209182902001546040805193845273ffffffffffffffffffffffffffffffffffffffff918216928401929092528a169082015260600160405180910390a25b80613e1881614dca565b915050613c52565b5050509392505050565b6040805173ffffffffffffffffffffffffffffffffffffffff8481166024830152604480830185905283518084039091018152606490920183526020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fa9059cbb000000000000000000000000000000000000000000000000000000001790529151600092839290871691613ec19190614e47565b6000604051808303816000865af19150503d8060008114613efe576040519150601f19603f3d011682016040523d82523d6000602084013e613f03565b606091505b5091509150818015613f2d575080511580613f2d575080806020019051810190613f2d9190614e63565b611514576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5472616e7366657248656c7065723a205452414e534645525f4641494c4544006044820152606401610cc4565b613fc86040518060a0016040528060008019168152602001600081526020016000815260200160008152602001600081525090565b6000805b73ffffffffffffffffffffffffffffffffffffffff85166000908152602260205260409020548110156140e65773ffffffffffffffffffffffffffffffffffffffff8516600090815260226020526040902080548290811061403057614030614cc5565b90600052602060002090600502016000015484036140d45773ffffffffffffffffffffffffffffffffffffffff8516600090815260226020526040902080548290811061407f5761407f614cc5565b90600052602060002090600502016040518060a00160405290816000820154815260200160018201548152602001600282015481526020016003820154815260200160048201548152505092508091506140e6565b806140de81614dca565b915050613fcc565b5081518314614151576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600f60248201527f5374616b65206e6f7420666f756e6400000000000000000000000000000000006044820152606401610cc4565b9250929050565b6040805173ffffffffffffffffffffffffffffffffffffffff85811660248301528481166044830152606480830185905283518084039091018152608490920183526020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167f23b872dd0000000000000000000000000000000000000000000000000000000017905291516000928392908816916141f79190614e47565b6000604051808303816000865af19150503d8060008114614234576040519150601f19603f3d011682016040523d82523d6000602084013e614239565b606091505b50915091508180156142635750805115806142635750808060200190518101906142639190614e63565b6142ee576040517f08c379a0000000000000000000000000000000000000000000000000000000008152602060048201526024808201527f5472616e7366657248656c7065723a205452414e534645525f46524f4d5f464160448201527f494c4544000000000000000000000000000000000000000000000000000000006064820152608401610cc4565b505050505050565b600061430484846001613b5e565b506000806143128685613f93565b91509150816060015142101580614330575060215460ff1615156001145b614396576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601660248201527f5374616b65206973207374696c6c206c6f636b656421000000000000000000006044820152606401610cc4565b6040820151801561454d576143cc7f00000000000000000000000032fa492ac1f729e0ee9eddfcbacc3ef72b234e278783613e2a565b80601b60008282546143de9190614d23565b909155505073ffffffffffffffffffffffffffffffffffffffff87166000908152601d602052604081208054839290614418908490614d23565b90915550600090506144298861240e565b905073ffffffffffffffffffffffffffffffffffffffff8116156144825773ffffffffffffffffffffffffffffffffffffffff81166000908152601f60205260408120805484929061447c908490614d23565b90915550505b5073ffffffffffffffffffffffffffffffffffffffff871660009081526022602052604090208054839081106144ba576144ba614cc5565b6000918252602082206005909102018181556001810182905560028101829055600381018290556004018190556144f29088906113f8565b604080518281526020810187905273ffffffffffffffffffffffffffffffffffffffff888116828401529151918916917f1d9308f6b22a2754a1c622bb30889e8f8f956c83e524d039e9d65d5f052eb9089181900360600190a25b9695505050505050565b60005b6012548110156146485760006012828154811061457957614579614cc5565b60009182526020909120015473ffffffffffffffffffffffffffffffffffffffff1690508015614635576040517f092193ab00000000000000000000000000000000000000000000000000000000815230600482015273ffffffffffffffffffffffffffffffffffffffff82169063092193ab9060240160408051808303816000875af115801561460e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906146329190614e80565b50505b508061464081614dca565b91505061455a565b50600062093a806004544261465d9190614d23565b6146679190614d77565b905060005b60105481101561484a576010818154811061468957614689614cc5565b6000918252602090912001546040517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015273ffffffffffffffffffffffffffffffffffffffff909116906370a0823190602401602060405180830381865afa158015614700573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906147249190614e02565b61472f836001614db2565b62093a8061473c84613154565b6147469190614d3a565b6147509190614d3a565b11156010828154811061476557614765614cc5565b60009182526020918290200154604080517f4e6f7420656e6f7567682072657761726420746f6b656e7320617661696c6162938101939093527f6c653a20000000000000000000000000000000000000000000000000000000009083015260601b7fffffffffffffffffffffffffffffffffffffffff00000000000000000000000016604482015260580160405160208183030381529060405290614837576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610cc49190614ea4565b508061484281614dca565b91505061466c565b5062093a8061485a826001614db2565b6148649190614d3a565b6004546148719190614db2565b60045561487c61488a565b61488461151c565b60035550565b60006148946115b0565b905060005b6015548110156148ee578181815181106148b5576148b5614cc5565b6020026020010151601582815481106148d0576148d0614cc5565b600091825260209091200155806148e681614dca565b915050614899565b506148f7613b4b565b60055550565b803573ffffffffffffffffffffffffffffffffffffffff8116811461246b57600080fd5b60006020828403121561493357600080fd5b61363e826148fd565b6020808252825182820181905260009190848201906040850190845b8181101561497457835183529284019291840191600101614958565b50909695505050505050565b60006020828403121561499257600080fd5b5035919050565b6020808252825182820181905260009190848201906040850190845b8181101561497457835173ffffffffffffffffffffffffffffffffffffffff16835292840192918401916001016149b5565b600080604083850312156149fa57600080fd5b50508035926020909101359150565b602080825282518282018190526000919060409081850190868401855b82811015614a6a5781518051855286810151878601528581015186860152606080820151908601526080908101519085015260a09093019290850190600101614a26565b5091979650505050505050565b60008060408385031215614a8a57600080fd5b614a93836148fd565b9150614aa1602084016148fd565b90509250929050565b801515811461315157600080fd5b60008060408385031215614acb57600080fd5b614ad4836148fd565b91506020830135614ae481614aaa565b809150509250929050565b60008060408385031215614b0257600080fd5b614b0b836148fd565b946020939093013593505050565b600080600060608486031215614b2e57600080fd5b8335614b3981614aaa565b92506020840135614b4981614aaa565b91506040840135614b5981614aaa565b809150509250925092565b60008060008060808587031215614b7a57600080fd5b614b83856148fd565b935060208501359250614b98604086016148fd565b9150614ba6606086016148fd565b905092959194509250565b60008060408385031215614bc457600080fd5b82359150614aa1602084016148fd565b600060208284031215614be657600080fd5b813561363e81614aaa565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600060c08284031215614c3257600080fd5b82601f830112614c4157600080fd5b60405160c0810181811067ffffffffffffffff82111715614c8b577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040528060c0840185811115614ca057600080fd5b845b81811015614cba578035835260209283019201614ca2565b509195945050505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600082821015614d3557614d35614cf4565b500390565b6000817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615614d7257614d72614cf4565b500290565b600082614dad577f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b500490565b60008219821115614dc557614dc5614cf4565b500190565b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8203614dfb57614dfb614cf4565b5060010190565b600060208284031215614e1457600080fd5b5051919050565b60005b83811015614e36578181015183820152602001614e1e565b83811115611cc35750506000910152565b60008251614e59818460208701614e1b565b9190910192915050565b600060208284031215614e7557600080fd5b815161363e81614aaa565b60008060408385031215614e9357600080fd5b505080516020909101519092909150565b6020815260008251806020840152614ec3816040850160208701614e1b565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016919091016040019291505056fea26469706673582212205aebb569aae77c355e348f8cc000f795c11b91d0812e5743988160eafc0efd4864736f6c634300080f0033

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

000000000000000000000000ff5b4bcbf765fe363269114e1c765229a29edefd00000000000000000000000000000000000000000000000000000000000000e00000000000000000000000000000000000000000000000000000000000000120000000000000000000000000000000000000000000000000000000000000016000000000000000000000000000000000000000000000000000000000000001a000000000000000000000000000000000000000000000000000000000000001e000000000000000000000000032fa492ac1f729e0ee9eddfcbacc3ef72b234e2700000000000000000000000000000000000000000000000000000000000000010000000000000000000000003432b6a60d23ca0dfca7761b7ab56459d9c964d00000000000000000000000000000000000000000000000000000000000000001000000000000000000000000b1748c79709f4ba2dd82834b8c82d4a505003f27000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000a86cc92e3da000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001000000000000000000000000278dc748eda1d8efef1adfb518542612b49fcd34

-----Decoded View---------------
Arg [0] : _owner (address): 0xfF5B4BCbf765FE363269114e1c765229a29eDeFD
Arg [1] : _rewardTokens (address[]): 0x3432B6A60D23Ca0dFCa7761B7ab56459D9C964D0
Arg [2] : _rewardManagers (address[]): 0xB1748C79709f4Ba2Dd82834B8c82D4a505003f27
Arg [3] : _rewardRates (uint256[]): 11574074074074
Arg [4] : _gaugeControllers (address[]): 0x0000000000000000000000000000000000000000
Arg [5] : _rewardDistributors (address[]): 0x278dC748edA1d8eFEf1aDFB518542612b49Fcd34
Arg [6] : _stakingToken (address): 0x32fA492Ac1F729E0eE9eDdfCBacc3ef72B234e27

-----Encoded View---------------
17 Constructor Arguments found :
Arg [0] : 000000000000000000000000ff5b4bcbf765fe363269114e1c765229a29edefd
Arg [1] : 00000000000000000000000000000000000000000000000000000000000000e0
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000120
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000160
Arg [4] : 00000000000000000000000000000000000000000000000000000000000001a0
Arg [5] : 00000000000000000000000000000000000000000000000000000000000001e0
Arg [6] : 00000000000000000000000032fa492ac1f729e0ee9eddfcbacc3ef72b234e27
Arg [7] : 0000000000000000000000000000000000000000000000000000000000000001
Arg [8] : 0000000000000000000000003432b6a60d23ca0dfca7761b7ab56459d9c964d0
Arg [9] : 0000000000000000000000000000000000000000000000000000000000000001
Arg [10] : 000000000000000000000000b1748c79709f4ba2dd82834b8c82d4a505003f27
Arg [11] : 0000000000000000000000000000000000000000000000000000000000000001
Arg [12] : 00000000000000000000000000000000000000000000000000000a86cc92e3da
Arg [13] : 0000000000000000000000000000000000000000000000000000000000000001
Arg [14] : 0000000000000000000000000000000000000000000000000000000000000000
Arg [15] : 0000000000000000000000000000000000000000000000000000000000000001
Arg [16] : 000000000000000000000000278dc748eda1d8efef1adfb518542612b49fcd34


Deployed Bytecode Sourcemap

88978:529:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;35332;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;37542:477;;;;;;:::i;:::-;;:::i;:::-;;;1374:25:1;;;1362:2;1347:18;37542:477:0;1228:177:1;33611:109:0;;;:::i;:::-;;;;;;;:::i;22957:141::-;;;;;;:::i;:::-;;:::i;:::-;;83950:190;;;;;;:::i;:::-;;:::i;35925:339::-;;;:::i;79205:133::-;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;38238:179::-;;;;;;:::i;:::-;;:::i;67527:33::-;;;;;;;;3738:42:1;3726:55;;;3708:74;;3696:2;3681:18;67527:33:0;3547:241:1;33275:298:0;;;;;;:::i;:::-;;:::i;:::-;;;4223:14:1;;4216:22;4198:41;;4186:2;4171:18;33275:298:0;4058:187:1;30651:60:0;;;;;;:::i;:::-;;;;;;;;;;;;;;;;39786:1752;;;;;;:::i;:::-;;:::i;36978:127::-;;;;;;:::i;:::-;37071:26;;37044:7;37071:26;;;:17;:26;;;;;;;36978:127;29591:48;;29633:6;29591:48;;45653:238;;;;;;:::i;:::-;;:::i;29219:49::-;;;;;;:::i;:::-;;;;;;;;;;;;;;;;67481:39;;;;;38938:181;;;;;;:::i;:::-;;:::i;22725:29::-;;;;;;;;;43487:1522;;;;;;:::i;:::-;;:::i;70820:3522::-;;;:::i;36692:111::-;36773:22;;36692:111;;29472:55;;;;;;:::i;:::-;;;;;;;;;;;;;;29983:54;;;;;;:::i;:::-;;;;;;;;;;;;;;28493:37;;;;;;34435:681;;;:::i;67419:55::-;;;;;74396:2692;;;;;;:::i;:::-;;:::i;46360:206::-;;;;;;:::i;:::-;;:::i;68162:53::-;;;;;;:::i;:::-;;:::i;:::-;;;;5958:25:1;;;6014:2;5999:18;;5992:34;;;;6042:18;;;6035:34;;;;6100:2;6085:18;;6078:34;6143:3;6128:19;;6121:35;5945:3;5930:19;68162:53:0;5699:463:1;23106:271:0;;;:::i;30442:52::-;;;;;;:::i;:::-;;;;;;;;;;;;;;39127:199;;;;;;:::i;:::-;;:::i;53358:1013::-;;;;;;:::i;:::-;;:::i;77149:1961::-;;;;;;:::i;:::-;;:::i;:::-;;;;6369:25:1;;;6425:2;6410:18;;6403:34;;;;6453:18;;;6446:34;6357:2;6342:18;77149:1961:0;6167:319:1;22698:20:0;;;;;;;;;53068:161;;;;;;:::i;:::-;;:::i;30842:26::-;;;;;;;;;38520:224;;;;;;:::i;:::-;;:::i;28587:55::-;;;;;;81079:1325;;;;;;:::i;:::-;;:::i;28340:61::-;;;;;;46180:172;;;;;;:::i;:::-;;:::i;39334:444::-;;;;;;:::i;:::-;;:::i;28186:29::-;;;;;;79414:133;;;;;;:::i;:::-;79511:21;;79484:7;79511:21;;;:12;:21;;;;;:28;;79414:133;52518:311;;;;;;:::i;:::-;;:::i;28266:50::-;;;;;;27989:30;;;;;;82458:1357;;;;;;:::i;:::-;;:::i;38064:166::-;;;;;;:::i;:::-;;:::i;55414:483::-;;;;;;:::i;:::-;;:::i;42521:800::-;;;;;;:::i;:::-;;:::i;36526:128::-;;;;;;:::i;:::-;36620:26;;36593:7;36620:26;;;:17;:26;;;;;;;36526:128;55972:207;;;;;;:::i;:::-;;:::i;36362:113::-;36444:23;;36362:113;;52922:97;;;:::i;86213:259::-;;;;;;:::i;:::-;;:::i;41796:610::-;;;;;;:::i;:::-;;:::i;28152:27::-;;;;;;28725:51;;;;;;28801:59;;;;;;33913:452;;;;;;:::i;:::-;;:::i;51208:761::-;;;;;;:::i;:::-;;:::i;54379:958::-;;;;;;:::i;:::-;;:::i;51977:363::-;;;:::i;35332:529::-;35386:27;35426;35456:17;:15;:17::i;:::-;35511:12;:19;35426:47;;-1:-1:-1;35497:34:0;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;35497:34:0;-1:-1:-1;35548:26:0;;;35577:1;35548:26;;;:17;:26;;;;;;35484:47;;-1:-1:-1;35548:30:0;35544:310;;35599:9;35594:249;35618:12;:19;35614:23;;35594:249;;;35808:16;;;;;;;:7;:16;;;;;;;;:19;;;;;;;;;35727:32;;;:23;:32;;;;;:35;;;;;;;;;35711:13;;35767:4;;35727:35;35711:10;;35825:1;;35711:13;;;;;;:::i;:::-;;;;;;;:51;;;;:::i;:::-;35681:26;;;;;;;:17;:26;;;;;;:82;;;;:::i;:::-;35680:91;;;;:::i;:::-;35679:148;;;;:::i;:::-;35663:10;35674:1;35663:13;;;;;;;;:::i;:::-;;;;;;;;;;:164;35639:3;;;;:::i;:::-;;;;35594:249;;;;35544:310;35415:446;35332:529;;;:::o;37542:477::-;37906:19;;37971:28;;37601:7;;37883:127;;37941:26;37906:19;37941:4;:26;:::i;:::-;37940:59;;;;:::i;:::-;37883:8;:127::i;:::-;37876:134;37542:477;-1:-1:-1;;37542:477:0:o;33611:109::-;33664:16;33700:12;33693:19;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;33611:109;:::o;22957:141::-;23437:5;;;;23423:10;:19;23415:79;;;;;;;10837:2:1;23415:79:0;;;10819:21:1;10876:2;10856:18;;;10849:30;10915:34;10895:18;;;10888:62;10986:17;10966:18;;;10959:45;11021:19;;23415:79:0;;;;;;;;;23029:14:::1;:23:::0;;;::::1;;::::0;::::1;::::0;;::::1;::::0;;;23068:22:::1;::::0;3708:74:1;;;23068:22:0::1;::::0;3696:2:1;3681:18;23068:22:0::1;;;;;;;22957:141:::0;:::o;83950:190::-;84035:7;21632:1;22238:7;;:19;22230:63;;;;;;;11253:2:1;22230:63:0;;;11235:21:1;11292:2;11272:18;;;11265:30;11331:33;11311:18;;;11304:61;11382:18;;22230:63:0;11051:355:1;22230:63:0;21632:1;22371:18;;84062:70:::1;84075:10;::::0;84099:9;84110:4;84116:15:::1;84062:12;:70::i;:::-;21588:1:::0;22550:7;:22;84055:77;83950:190;-1:-1:-1;;;83950:190:0:o;35925:339::-;36075:17;:24;35980:41;;36061:39;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;36061:39:0;;36034:66;;36118:9;36113:144;36137:17;:24;36133:28;;36113:144;;;29633:6;36213:14;36225:1;36213:11;:14::i;:::-;:32;;;;:::i;:::-;36183:24;36208:1;36183:27;;;;;;;;:::i;:::-;;;;;;;;;;:62;36163:3;;;;:::i;:::-;;;;36113:144;;;;35925:339;:::o;79205:133::-;79309:21;;;;;;;:12;:21;;;;;;;;79302:28;;;;;;;;;;;;;;;;;79269:20;;79302:28;;79309:21;;79302:28;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;79205:133;;;:::o;38238:179::-;38353:32;;;38307:7;38353:32;;;:17;:32;;;;;;38335:15;;28117:4;;38335:50;;;:::i;:::-;38334:75;;;;:::i;33275:298::-;33371:4;33406:5;;;;;;33391:20;;;;33387:136;;-1:-1:-1;33420:4:0;33413:11;;33387:136;33462:48;:33;;;;;;;:14;:33;;;;;;:48;;;:33;;:48;33458:65;;-1:-1:-1;33519:4:0;33512:11;;33458:65;-1:-1:-1;33559:5:0;33275:298;;;;:::o;39786:1752::-;39849:24;;;40010:20;40022:7;40010:11;:20::i;:::-;39990:40;-1:-1:-1;40061:23:0;;;;40060:81;;40115:26;;;;;:15;3726:55:1;;;40115:26:0;;;3708:74:1;40115:5:0;:15;;;;3681:18:1;;40115:26:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;40060:81;;;40088:24;;;;;:15;3726:55:1;;;40088:24:0;;;3708:74:1;40088:5:0;:15;;;;3681:18:1;;40088:24:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;40041:100;;40247:19;28117:4;40371:5;:17;;;:19;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:42;;;;:::i;:::-;40312:24;;40289:20;;40270:39;;:16;:39;:::i;:::-;:66;;;;:::i;:::-;40269:145;;;;:::i;:::-;40247:167;-1:-1:-1;40523:19:0;;40738:23;;;;40737:94;;40796:35;40821:9;40796:24;:35::i;:::-;40737:94;;;40765:28;40785:7;40765:19;:28::i;:::-;40708:123;-1:-1:-1;40852:30:0;;40848:323;;40903:27;40977:26;40934:39;28117:4;40934:16;:39;:::i;:::-;40933:70;;;;:::i;:::-;40903:100;;28117:4;41077:20;;41055:19;:42;;;;:::i;:::-;41054:67;;;;:::i;:::-;41040:81;;40883:254;40848:323;;;41170:1;41156:15;;40848:323;40553:699;41339:11;41325;:25;:53;;41367:11;41325:53;;;41353:11;41325:53;41305:74;;41469:20;;41450:16;:39;41446:84;;;41510:20;;41491:39;;41446:84;39875:1663;;;;39786:1752;;;:::o;45653:238::-;21632:1;22238:7;;:19;22230:63;;;;;;;11253:2:1;22230:63:0;;;11235:21:1;11292:2;11272:18;;;11265:30;11331:33;11311:18;;;11304:61;11382:18;;22230:63:0;11051:355:1;22230:63:0;21632:1;22371:18;;45750:23:::1;::::0;;;::::1;;;:32;45742:70;;;::::0;::::1;::::0;;11802:2:1;45742:70:0::1;::::0;::::1;11784:21:1::0;11841:2;11821:18;;;11814:30;11880:27;11860:18;;;11853:55;11925:18;;45742:70:0::1;11600:349:1::0;45742:70:0::1;-1:-1:-1::0;21588:1:0;22550:7;:22;45653:238::o;38938:181::-;39005:7;28117:4;39059:28;;39033:23;39048:7;39033:14;:23::i;:::-;:54;;;;:::i;43487:1522::-;43674:8;43670:46;;;43698:6;:4;:6::i;:::-;43740:21;;;;43736:1266;;43954:27;44000:28;44047:27;44092:30;44114:7;44092:21;:30::i;:::-;43932:190;;;;;;44184:20;44196:7;44184:11;:20::i;:::-;44280:31;;;;;;;:22;:31;;;;;:54;;;44421:42;;;44417:572;;44484:19;44506:41;44528:19;44506;:41;:::i;:::-;44484:63;;44616:11;44591:22;;:36;;;;:::i;:::-;44566:22;:61;44675:33;44697:11;44675:19;:33;:::i;:::-;44646:26;;;;;;;:17;:26;;;;;:62;-1:-1:-1;44417:572:0;;;44749:19;44771:41;44793:19;44771;:41;:::i;:::-;44749:63;;44881:11;44856:22;;:36;;;;:::i;:::-;44831:22;:61;44940:33;44962:11;44940:19;:33;:::i;:::-;44911:26;;;;;;;:17;:26;;;;;:62;-1:-1:-1;44417:572:0;43763:1239;;;43736:1266;43487:1522;;:::o;70820:3522::-;70876:7;70957:25;71622:1;71590:9;:27;;;:29;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;34435:681::-;34483:41;34541:23;;34568:1;34541:28;:59;;;-1:-1:-1;34573:22:0;;:27;34541:59;34537:572;;;34624:21;34617:28;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;34435:681;:::o;34537:572::-;34728:12;:19;34714:34;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;34714:34:0;;34687:61;;34768:9;34763:289;34787:21;:28;34783:32;;34763:289;;;34995:22;;34970:14;34982:1;34970:11;:14::i;:::-;34952;;34923:26;:24;:26::i;:::-;:43;;;;:::i;:::-;34922:62;;;;:::i;:::-;:69;;34987:4;34922:69;:::i;:::-;34921:96;;;;:::i;:::-;34871:21;34893:1;34871:24;;;;;;;;:::i;:::-;;;;;;;;;:165;;;;:::i;:::-;34841:24;34866:1;34841:27;;;;;;;;:::i;:::-;;;;;;;;;;:195;34817:3;;;;:::i;:::-;;;;34763:289;;74396:2692;74587:21;;;74485:32;74587:21;;;:12;:21;;;;;:32;;74485;;74587:21;74609:9;;74587:32;;;;;;:::i;:::-;;;;;;;;;74556:63;;;;;;;;74587:32;;;;;;;74556:63;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;74802:28;;;;;:19;:28;;;;;;74556:63;;-1:-1:-1;;74798:224:0;;;-1:-1:-1;74895:25:0;;;;74798:224;;;-1:-1:-1;74982:28:0;;;;;;;:19;:28;;;;;;74798:224;75111:15;75081:9;:26;;;:45;75077:1802;;75306:26;;;;75275:28;;;;;;;:19;:28;;;;;;:57;75271:1087;;;75352:26;75410:17;75381:9;:26;;;:46;;;;:::i;:::-;75352:75;;75446:25;75492:9;:26;;;75474:15;:44;;;;:::i;:::-;75446:72;-1:-1:-1;75598:33:0;75634:38;75649:22;75670:1;75649:18;:22;:::i;75634:38::-;75598:74;-1:-1:-1;75889:17:0;75961:21;75965:17;75889;75961:21;:::i;:::-;75910:46;75938:18;75910:25;:46;:::i;:::-;75909:74;;;;:::i;:::-;75889:94;-1:-1:-1;76042:38:0;76063:17;76042:18;:38;:::i;:::-;76029:52;;:9;:52;:::i;:::-;76002:79;;75333:764;;;;75077:1802;;75271:1087;76341:1;76314:28;;75077:1802;;;76503:21;76558:20;76610:17;76581:9;:26;;;:46;;;;:::i;:::-;76558:69;;76646:20;76698:15;76669:9;:26;;;:44;;;;:::i;:::-;76646:67;-1:-1:-1;76780:1:0;76749:27;76646:67;76749:12;:27;:::i;:::-;76748:33;;;;:::i;:::-;76732:49;;76539:258;;76838:29;76853:13;76838:14;:29::i;:::-;76811:56;;76423:456;75077:1802;77001:9;:25;;;76974:24;:52;76970:110;;;77055:9;:25;;;77028:52;;76970:110;74519:2569;;74396:2692;;;;:::o;46360:206::-;46462:16;21632:1;22238:7;;:19;22230:63;;;;;;;11253:2:1;22230:63:0;;;11235:21:1;11292:2;11272:18;;;11265:30;11331:33;11311:18;;;11304:61;11382:18;;22230:63:0;11051:355:1;22230:63:0;21632:1;22371:18;;46498:60:::1;46509:10;46521:19:::0;46542:15;46498:10:::1;:60::i;68162:53::-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;68162:53:0;;-1:-1:-1;68162:53:0;;;:::o;23106:271::-;23175:14;;;;23161:10;:28;23153:94;;;;;;;12156:2:1;23153:94:0;;;12138:21:1;12195:2;12175:18;;;12168:30;12234:34;12214:18;;;12207:62;12305:23;12285:18;;;12278:51;12346:19;;23153:94:0;11954:417:1;23153:94:0;23276:5;;;23283:14;23263:35;;;23276:5;;;;12611:34:1;;23283:14:0;;;;12676:2:1;12661:18;;12654:43;23263:35:0;;12523:18:1;23263:35:0;;;;;;;23317:14;;;;23309:22;;;;;;23317:14;;;23309:22;;;;23342:27;;;23106:271::o;39127:199::-;39205:7;28117:4;39266:28;;39233:30;39249:13;39233:15;:30::i;53358:1013::-;31469:5;;53444:12;;31469:5;;31455:10;:19;;:74;;;31478:51;31496:10;31508:20;31478:17;:51::i;:::-;31447:107;;;;;;;12910:2:1;31447:107:0;;;12892:21:1;12949:2;12929:18;;;12922:30;12988:22;12968:18;;;12961:50;13028:18;;31447:107:0;12708:344:1;31447:107:0;53526:18:::1;53568:9:::0;53563:192:::1;53587:12;:19:::0;53583:23;::::1;53563:192;;;53651:12;53632:31;;:12;53645:1;53632:15;;;;;;;;:::i;:::-;;::::0;;;::::1;::::0;;;::::1;::::0;::::1;;:31:::0;53628:116:::1;;53700:4;53684:20;;53723:5;;53628:116;53608:3:::0;::::1;::::0;::::1;:::i;:::-;;;;53563:192;;;;53981:13;:59;;;;-1:-1:-1::0;53998:42:0::1;:28:::0;;::::1;;::::0;;;:14:::1;:28;::::0;;;;;::::1;54030:10;53998:42;53981:59;53980:123;;;;54064:13;54063:14;:39;;;;-1:-1:-1::0;54096:5:0::1;::::0;::::1;;54082:10;:19;54063:39;53958:406;;;54134:66;54162:12;54176:10;54188:11;54134:27;:66::i;:::-;54215:7;53358:1013:::0;;;:::o;53958:406::-:1;54316:36;::::0;::::1;::::0;;13259:2:1;54316:36:0::1;::::0;::::1;13241:21:1::0;13298:2;13278:18;;;13271:30;13337:28;13317:18;;;13310:56;13383:18;;54316:36:0::1;13057:350:1::0;31565:1:0::1;53358:1013:::0;;;:::o;77149:1961::-;77452:26;;;77250:27;77452:26;;;:17;:26;;;;;;;77250:27;77639:24;77470:7;77639:15;:24::i;:::-;77739:26;;;77676:33;77739:26;;;:17;:26;;;;;;77616:47;;-1:-1:-1;77676:33:0;77739:31;:66;;;;-1:-1:-1;77774:26:0;;;;;;;:17;:26;;;;;;:31;77739:66;77738:143;;;-1:-1:-1;77849:31:0;;;;;;;:22;:31;;;;;;77825:55;;;77738:143;77720:638;;;-1:-1:-1;78122:20:0;77720:638;;;78310:31;;;;;;;:22;:31;;;;;;78345:1;;78287:54;;:20;:54;:::i;:::-;78286:60;;;;:::i;:::-;78258:88;;77720:638;78493:1;78471:23;;78510:9;78505:598;78529:21;;;;;;;:12;:21;;;;;:28;78525:32;;78505:598;;;78610:21;;;78579:28;78610:21;;;:12;:21;;;;;:24;;78632:1;;78610:24;;;;;;:::i;:::-;;;;;;;;;;;78579:55;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;78706:32;78741:34;78764:7;78773:1;78741:22;:34::i;:::-;78857:19;;;;78706:69;;-1:-1:-1;78837:17:0;28117:4;78952:52;78979:25;78706:69;78952:52;:::i;:::-;78939:66;;:9;:66;:::i;:::-;78938:91;;;;:::i;:::-;78925:105;;:9;:105;:::i;:::-;78891:139;-1:-1:-1;79045:46:0;78891:139;79045:46;;:::i;:::-;;;78564:539;;;;78559:3;;;;;:::i;:::-;;;;78505:598;;;;77379:1731;77149:1961;;;;;:::o;53068:161::-;31266:5;;;;31252:10;:19;;:79;;-1:-1:-1;31289:42:0;31275:10;:56;31252:79;31244:113;;;;;;;13614:2:1;31244:113:0;;;13596:21:1;13653:2;13633:18;;;13626:30;13692:23;13672:18;;;13665:51;13733:18;;31244:113:0;13412:345:1;31244:113:0;53189:32:::1;;;::::0;;;:19:::1;:32;::::0;;;;;;53153:68;;::::1;53189:32;::::0;;::::1;53188:33;53153:68;::::0;;53068:161::o;38520:224::-;38586:7;38720:15;;38689:28;;:46;;;;:::i;:::-;38614:24;;;;;:15;3726:55:1;;;38614:24:0;;;3708:74:1;28117:4:0;;;;38614:5;:15;;;;3681:18:1;;38614:24:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:47;;;;:::i;81079:1325::-;21632:1;22238:7;;:19;22230:63;;;;;;;11253:2:1;22230:63:0;;;11235:21:1;11292:2;11272:18;;;11265:30;11331:33;11311:18;;;11304:61;11382:18;;22230:63:0;11051:355:1;22230:63:0;21632:1;22371:18;;81176:10:::1;81188:4;31660:41;81176:10:::0;81188:4;31660:22:::1;:41::i;:::-;81253:28:::2;81283:21:::0;81308:29:::2;81318:10;81330:6;81308:9;:29::i;:::-;81252:85;;;;81387:15;81427:8;81405:9;:19;;;:30;;;;:::i;:::-;81387:48:::0;-1:-1:-1;81566:91:0::2;81606:12;81621:10;81641:4;81648:8;81566:31;:91::i;:::-;81741:186;::::0;;::::2;::::0;::::2;::::0;;;;;::::2;81788:25:::0;;::::2;::::0;81741:186;;::::2;::::0;;;;;;;;81850:26;;::::2;::::0;81741:186;;;;;81891:25;;::::2;::::0;81741:186;;;;81712:10:::2;-1:-1:-1::0;81699:24:0;;;:12:::2;:24:::0;;;;;;;:39;;81724:13;;81699:39;::::2;;;;;:::i;:::-;;;;;;;;;;;:228;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;81998:8;81971:23;;:35;;;;;;;:::i;:::-;::::0;;;-1:-1:-1;;82035:10:0::2;82017:29;::::0;;;:17:::2;:29;::::0;;;;:41;;82050:8;;82017:29;:41:::2;::::0;82050:8;;82017:41:::2;:::i;:::-;::::0;;;-1:-1:-1;82084:17:0::2;::::0;-1:-1:-1;82104:23:0::2;82116:10;82104:11;:23::i;:::-;82084:43:::0;-1:-1:-1;82146:23:0::2;::::0;::::2;::::0;82142:69:::2;;82171:28;::::0;::::2;;::::0;;;:17:::2;:28;::::0;;;;:40;;82203:8;;82171:28;:40:::2;::::0;82203:8;;82171:40:::2;:::i;:::-;::::0;;;-1:-1:-1;;82142:69:0::2;82069:154;82291:41;82314:10;82326:5;82291:22;:41::i;:::-;82350:46;::::0;;14281:25:1;;;14337:2;14322:18;;14315:34;;;82367:10:0::2;::::0;82350:46:::2;::::0;14254:18:1;82350:46:0::2;;;;;;;-1:-1:-1::0;;21588:1:0;22550:7;:22;-1:-1:-1;;;;;81079:1325:0:o;46180:172::-;46259:16;21632:1;22238:7;;:19;22230:63;;;;;;;11253:2:1;22230:63:0;;;11235:21:1;11292:2;11272:18;;;11265:30;11331:33;11311:18;;;11304:61;11382:18;;22230:63:0;11051:355:1;22230:63:0;21632:1;22371:18;;46295:49:::1;46306:10;46318:19:::0;46339:4:::1;46295:10;:49::i;:::-;21588:1:::0;22550:7;:22;46288:56;46180:172;-1:-1:-1;;46180:172:0:o;39334:444::-;39413:25;;;39390:7;39413:25;;;:19;:25;;;;;;;;39409:362;;;-1:-1:-1;39616:4:0;39334:444::o;39409:362::-;-1:-1:-1;39728:31:0;;;;;;;;:25;:31;;;;;;;;39334:444::o;39409:362::-;39334:444;;;:::o;52518:311::-;31266:5;;;;31252:10;:19;;:79;;-1:-1:-1;31289:42:0;31275:10;:56;31252:79;31244:113;;;;;;;13614:2:1;31244:113:0;;;13596:21:1;13653:2;13633:18;;;13626:30;13692:23;13672:18;;;13665:51;13733:18;;31244:113:0;13412:345:1;31244:113:0;52681:13:::1;:30:::0;;52771:50;::::1;;::::0;::::1;::::0;52722:38;::::1;;52681:30;52722:38;::::0;52681:30;::::1;;::::0;::::1;52722:38:::0;;;;;;;;;;;;;;;::::1;52771:50:::0;;;::::1;;::::0;;52518:311::o;82458:1357::-;21632:1;22238:7;;:19;22230:63;;;;;;;11253:2:1;22230:63:0;;;11235:21:1;11292:2;11272:18;;;11265:30;11331:33;11311:18;;;11304:61;11382:18;;22230:63:0;11051:355:1;22230:63:0;21632:1;22371:18;;82556:10:::1;82568:4;31660:41;82556:10:::0;82568:4;31660:22:::1;:41::i;:::-;82633:28:::2;82663:21:::0;82688:29:::2;82698:10;82710:6;82688:9;:29::i;:::-;82632:85;;;;82772:15;82756:13;:31;82748:65;;;::::0;::::2;::::0;;14562:2:1;82748:65:0::2;::::0;::::2;14544:21:1::0;14601:2;14581:18;;;14574:30;14640:23;14620:18;;;14613:51;14681:18;;82748:65:0::2;14360:345:1::0;82748:65:0::2;82859:17;82909:15;82880:9;:26;;;:44;82879:97;;82975:1;82879:97;;;82957:15;82928:9;:26;;;:44;;;;:::i;:::-;82859:117:::0;-1:-1:-1;82987:16:0::2;83006:31;83022:15;83006:13:::0;:31:::2;:::i;:::-;82987:50;;83143:9;83132:8;:20;83124:57;;;::::0;::::2;::::0;;14912:2:1;83124:57:0::2;::::0;::::2;14894:21:1::0;14951:2;14931:18;;;14924:30;14990:26;14970:18;;;14963:54;15034:18;;83124:57:0::2;14710:348:1::0;83124:57:0::2;83212:13;;83200:8;:25;;83192:64;;;::::0;::::2;::::0;;15265:2:1;83192:64:0::2;::::0;::::2;15247:21:1::0;15304:2;15284:18;;;15277:30;15343:28;15323:18;;;15316:56;15389:18;;83192:64:0::2;15063:350:1::0;83192:64:0::2;83287:28;;83275:8;:40;;83267:80;;;::::0;::::2;::::0;;15620:2:1;83267:80:0::2;::::0;::::2;15602:21:1::0;15659:2;15639:18;;;15632:30;15698:29;15678:18;;;15671:57;15745:18;;83267:80:0::2;15418:351:1::0;83267:80:0::2;83431:174;;;;;;;;83457:6;83431:174;;;;83478:15;83431:174;;;;83508:9;:19;;;83431:174;;;;83542:13;83431:174;;;;83570:24;83585:8;83570:14;:24::i;:::-;83431:174:::0;;83402:10:::2;83389:24;::::0;;;:12:::2;:24;::::0;;;;:39;;83414:13;;83389:39;::::2;;;;;:::i;:::-;;;;;;;;;;;:216;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;83674:41;83697:10;83709:5;83674:22;:41::i;:::-;83733:74;::::0;;16005:25:1;;;16061:2;16046:18;;16039:34;;;83776:15:0::2;16089:18:1::0;;;16082:34;16147:2;16132:18;;16125:34;;;83733:74:0;;83746:10:::2;::::0;83733:74:::2;::::0;;;;;15992:3:1;83733:74:0;;::::2;-1:-1:-1::0;;21588:1:0;22550:7;:22;-1:-1:-1;;;;;;82458:1357:0:o;38064:166::-;38172:26;;;38126:7;38172:26;;;:17;:26;;;;;;38154:15;;28117:4;;38154:44;;;:::i;55414:483::-;31469:5;;55580:20;;31469:5;;31455:10;:19;;:74;;;31478:51;31496:10;31508:20;31478:17;:51::i;:::-;31447:107;;;;;;;12910:2:1;31447:107:0;;;12892:21:1;12949:2;12929:18;;;12922:30;12988:22;12968:18;;;12961:50;13028:18;;31447:107:0;12708:344:1;31447:107:0;55631:42:::1;::::0;::::1;;::::0;;;:20:::1;:42;::::0;;;;;55613:17:::1;:61:::0;;55677:9;;55631:42;55613:61;::::1;;;;;:::i;:::-;;;;;;;;:73;;;;55760:25;55697:16;55714:20;:42;55735:20;55714:42;;;;;;;;;;;;;;;;55697:60;;;;;;;;:::i;:::-;;::::0;;;::::1;::::0;;;;;;::::1;:88:::0;;;::::1;;::::0;;::::1;;::::0;;55815:42;;::::1;::::0;;:20:::1;:42:::0;;;;;;;55796:18:::1;:62:::0;;55861:28;;55815:42;55796:62;::::1;;;;;:::i;:::-;;;;;;;;;:93;;;;;;;;;;;;;;;;;;55414:483:::0;;;;;:::o;42521:800::-;42601:34;;;;;;;:19;:34;;;;;;;;42593:60;;;;;;;16372:2:1;42593:60:0;;;16354:21:1;16411:2;16391:18;;;16384:30;16450:15;16430:18;;;16423:43;16483:18;;42593:60:0;16170:337:1;42593:60:0;42672:36;;;;;;;:21;:36;;;;;;;;42709:10;42672:48;;;;;;;;;;42664:90;;;;;;;16714:2:1;42664:90:0;;;16696:21:1;16753:2;16733:18;;;16726:30;16792:31;16772:18;;;16765:59;16841:18;;42664:90:0;16512:353:1;42664:90:0;42900:10;42849:22;42874:37;;;:25;:37;;;;;;;;42926:28;;42922:182;;43081:10;43063:29;;;;:17;:29;;;;;;;;;;43026:33;;;;:17;:33;;;;;:66;;43063:29;;43026:33;;:66;;43063:29;;43026:66;:::i;:::-;;;;-1:-1:-1;;42922:182:0;43172:10;43146:37;;;;:25;:37;;;;;;;:53;;;;:37;:53;;;;;;;;43284:17;:29;;;;;;43248:32;;;:17;:32;;;;;:65;;43284:29;;43248:32;;:65;;43284:29;;43248:65;:::i;:::-;;;;-1:-1:-1;;;;42521:800:0:o;55972:207::-;31469:5;;56080:20;;31469:5;;31455:10;:19;;:74;;;31478:51;31496:10;31508:20;31478:17;:51::i;:::-;31447:107;;;;;;;12910:2:1;31447:107:0;;;12892:21:1;12949:2;12929:18;;;12922:30;12988:22;12968:18;;;12961:50;13028:18;;31447:107:0;12708:344:1;31447:107:0;-1:-1:-1;56113:36:0::1;::::0;;::::1;;::::0;;;:14:::1;:36;::::0;;;;:58;;;::::1;::::0;;;::::1;;::::0;;55972:207::o;52922:97::-;31266:5;;;;31252:10;:19;;:79;;-1:-1:-1;31289:42:0;31275:10;:56;31252:79;31244:113;;;;;;;13614:2:1;31244:113:0;;;13596:21:1;13653:2;13633:18;;;13626:30;13692:23;13672:18;;;13665:51;13733:18;;31244:113:0;13412:345:1;31244:113:0;52997:14:::1;::::0;;52979:32;;::::1;52997:14;::::0;;::::1;52996:15;52979:32;::::0;;52922:97::o;86213:259::-;86313:7;21632:1;22238:7;;:19;22230:63;;;;;;;11253:2:1;22230:63:0;;;11235:21:1;11292:2;11272:18;;;11265:30;11331:33;11311:18;;;11304:61;11382:18;;22230:63:0;11051:355:1;22230:63:0;21632:1;22371:18;;86341:17:::1;::::0;::::1;::::0;::::1;;;:26;86333:57;;;::::0;::::1;::::0;;17072:2:1;86333:57:0::1;::::0;::::1;17054:21:1::0;17111:2;17091:18;;;17084:30;17150:20;17130:18;;;17123:48;17188:18;;86333:57:0::1;16870:342:1::0;86333:57:0::1;86408:56;86424:10;86436:19;86457:6;86408:15;:56::i;41796:610::-:0;41895:10;41875:31;;;;:19;:31;;;;;;;;41867:57;;;;;;;16372:2:1;41867:57:0;;;16354:21:1;16411:2;16391:18;;;16384:30;16450:15;16430:18;;;16423:43;16483:18;;41867:57:0;16170:337:1;41867:57:0;42010:10;41988:33;;;;:21;:33;;;;;;;;;:49;;;;;;;;;;;;;;;;41987:50;41935:102;;;;;;;42140:41;;;;;;;;:55;42136:263;;42211:41;;;42263:1;42211:41;;;:25;:41;;;;;;;:54;;;;;;42354:17;:33;;;;;;42339:10;42321:29;;:17;:29;;;;;:66;;42354:33;;42321:29;;:66;;42354:33;;42321:66;:::i;:::-;;;;-1:-1:-1;;42136:263:0;41796:610;:::o;33913:452::-;33974:16;34003:32;34038:16;34055:9;34038:27;;;;;;;;:::i;:::-;;;;;;;;;;;;;;-1:-1:-1;34080:38:0;;34076:282;;34261:4;34219:27;34247:9;34219:38;;;;;;;;:::i;:::-;;;;;;;;;34168:24;34147:67;;;:69;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:110;;;;:::i;:::-;34146:119;;;;:::i;:::-;34135:130;;34076:282;;;34318:17;34336:9;34318:28;;;;;;;;:::i;:::-;;;;;;;;;34307:39;;33992:373;33913:452;;;:::o;51208:761::-;51325:9;51320:642;51344:16;:23;51340:27;;51320:642;;;51389:32;51424:16;51441:1;51424:19;;;;;;;;:::i;:::-;;;;;;;;;;;;;;-1:-1:-1;51462:38:0;;51458:493;;51525:12;:61;;;;51560:22;51583:1;51560:25;;;;;;;;:::i;:::-;;;;;;;;;51542:15;:43;51525:61;51521:415;;;51700:106;;;;;51783:4;51700:106;;;17391:74:1;51790:15:0;17481:18:1;;;17474:34;51700:74:0;;;;;;17364:18:1;;51700:106:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;51667:27;51695:1;51667:30;;;;;;;;:::i;:::-;;;;;;;;:139;;;;51878:24;51857:57;;;:59;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;51829:22;51852:1;51829:25;;;;;;;;:::i;:::-;;;;;;;;;;:87;51521:415;-1:-1:-1;51369:3:0;;;;:::i;:::-;;;;51320:642;;54379:958;31266:5;;;;31252:10;:19;;:79;;-1:-1:-1;31289:42:0;31275:10;:56;31252:79;31244:113;;;;;;;13614:2:1;31244:113:0;;;13596:21:1;13653:2;13633:18;;;13626:30;13692:23;13672:18;;;13665:51;13733:18;;31244:113:0;13412:345:1;31244:113:0;54788:13;;28117:4:::1;-1:-1:-1::0;54788:37:0::1;54780:69;;;::::0;::::1;::::0;;17721:2:1;54780:69:0::1;::::0;::::1;17703:21:1::0;17760:2;17740:18;;;17733:30;17799:21;17779:18;;;17772:49;17838:18;;54780:69:0::1;17519:343:1::0;54780:69:0::1;54973:13:::0;;::::1;::::0;54990:1:::1;-1:-1:-1::0;54973:18:0;::::1;::::0;54972:44:::1;;-1:-1:-1::0;54997:13:0;;::::1;::::0;55014:1:::1;-1:-1:-1::0;54997:18:0::1;54972:44;54964:69;;;::::0;::::1;::::0;;18410:2:1;54964:69:0::1;::::0;::::1;18392:21:1::0;18449:2;18429:18;;;18422:30;18488:14;18468:18;;;18461:42;18520:18;;54964:69:0::1;18208:336:1::0;54964:69:0::1;55068:13:::0;;55046:19:::1;:35:::0;55068:13:::1;55115::::0;::::1;::::0;55092:20:::1;:36:::0;55170:13;;::::1;::::0;55139:28:::1;:44:::0;55221:13;;::::1;::::0;55194:24:::1;:40:::0;55276:13;;::::1;::::0;55245:28:::1;:44:::0;55316:13;::::1;::::0;55300::::1;:29:::0;54379:958::o;51977:363::-;52060:25;52079:5;52060:18;:25::i;:::-;52155:16;:14;:16::i;:::-;52137:15;:34;52207:12;;52188:15;:31;52184:149;;52236:14;:12;:14::i;:::-;51977:363::o;52184:149::-;52292:29;:27;:29::i;523:106::-;581:7;612:1;608;:5;:13;;620:1;608:13;;;616:1;608:13;601:20;523:106;-1:-1:-1;;;523:106:0:o;84336:1705::-;84582:7;84551:14;84567:4;31660:41;31683:7;31692:8;31660:22;:41::i;:::-;84610:13:::1;::::0;;;::::1;;;:22;84602:49;;;::::0;::::1;::::0;;18751:2:1;84602:49:0::1;::::0;::::1;18733:21:1::0;18790:2;18770:18;;;18763:30;18829:16;18809:18;;;18802:44;18863:18;;84602:49:0::1;18549:338:1::0;84602:49:0::1;84678:13;;84670:4;:21;;84662:60;;;::::0;::::1;::::0;;15265:2:1;84662:60:0::1;::::0;::::1;15247:21:1::0;15304:2;15284:18;;;15277:30;15343:28;15323:18;;;15316:56;15389:18;;84662:60:0::1;15063:350:1::0;84662:60:0::1;84749:28;;84741:4;:36;;84733:75;;;::::0;::::1;::::0;;15620:2:1;84733:75:0::1;::::0;::::1;15602:21:1::0;15659:2;15639:18;;;15632:30;15698:29;15678:18;;;15671:57;15745:18;;84733:75:0::1;15418:351:1::0;84733:75:0::1;84891:96;84931:12;84946:14;84970:4;84977:9;84891:31;:96::i;:::-;85047:23;85073:20;85088:4;85073:14;:20::i;:::-;85192:33;::::0;::::1;85104:14;85192:33:::0;;;:17:::1;:33;::::0;;;;;;;;85131:95;;19138:66:1;19125:2;19121:15;;;19117:88;85131:95:0;;::::1;19105:101:1::0;;;;19222:12;;;19215:28;;;19259:12;;;19252:28;;;19296:12;;;19289:28;85047:46:0;;-1:-1:-1;85104:14:0;19333:13:1;;85131:95:0::1;::::0;;;;;::::1;::::0;;;;;;85121:106;;85131:95:::1;85121:106:::0;;::::1;::::0;85284:28:::1;::::0;::::1;;::::0;;;:12:::1;:28:::0;;;;;85318:164:::1;::::0;::::1;::::0;;;;;;;::::1;::::0;;;;;;;;;85121:106;;-1:-1:-1;85284:28:0;85318:164;;;85419:22:::1;85437:4:::0;85365:15;85419:22:::1;:::i;:::-;85318:164:::0;;::::1;::::0;;::::1;::::0;;;85284:199;;::::1;::::0;;::::1;::::0;;-1:-1:-1;85284: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;85527:23:::1;:36:::0;;85554:9;;-1:-1:-1;85527:36:0::1;::::0;85554:9;;85527:36:::1;:::i;:::-;::::0;;;-1:-1:-1;;85574:33:0::1;::::0;::::1;;::::0;;;:17:::1;:33;::::0;;;;:46;;85611:9;;85574:33;:46:::1;::::0;85611:9;;85574:46:::1;:::i;:::-;::::0;;;-1:-1:-1;85646:17:0::1;::::0;-1:-1:-1;85666:27:0::1;85678:14:::0;85666:11:::1;:27::i;:::-;85646:47:::0;-1:-1:-1;85712:23:0::1;::::0;::::1;::::0;85708:70:::1;;85737:28;::::0;::::1;;::::0;;;:17:::1;:28;::::0;;;;:41;;85769:9;;85737:28;:41:::1;::::0;85769:9;;85737:41:::1;:::i;:::-;::::0;;;-1:-1:-1;;85708:70:0::1;85631:159;85876:45;85899:14;85915:5;85876:22;:45::i;:::-;85939:68;::::0;;19588:25:1;;;19644:2;19629:18;;19622:34;;;19672:18;;;19665:34;;;85939:68:0::1;19735:55:1::0;;;19730:2;19715:18;;19708:83;85939:68:0;::::1;::::0;::::1;::::0;19575:3:1;19560:19;85939:68:0::1;;;;;;;86027:6:::0;84336:1705;-1:-1:-1;;;;;;;;;84336:1705:0:o;45017:585::-;45079:21;;;;45075:520;;45156:27;45186:15;45193:7;45186:6;:15::i;:::-;45156:45;;45264:9;45259:118;45283:10;:17;45279:1;:21;45259:118;;;45348:10;45359:1;45348:13;;;;;;;;:::i;:::-;;;;;;;;;;;;45326:16;;;;;;;:7;:16;;;;;;:19;;;;;;;;;;:35;45343:1;45302:3;45343:1;45302:3;:::i;:::-;;;;45259:118;;;;45444:9;45439:145;45463:10;:17;45459:1;:21;45439:145;;;45544:21;45566:1;45544:24;;;;;;;;:::i;:::-;;;;;;;;;;;;;45506:32;;;;;:23;:32;;;;;;:35;;;;;;;;:62;45539:1;45482:3;45539:1;45482:3;:::i;:::-;;;;45439:145;;33772:133;33831:7;33858:39;33867:15;33884:12;;33858:8;:39::i;:::-;33851:46;;33772:133;:::o;46662:1194::-;46810:31;46785:8;46795:4;31660:41;31683:7;31692:8;31660:22;:41::i;:::-;46940:29:::1;::::0;::::1;;::::0;;;:19:::1;:29;::::0;;;;46972:15:::1;46940:47:::0;;47070:23:::1;::::0;;;::::1;;;:32;47062:70;;;::::0;::::1;::::0;;11802:2:1;47062:70:0::1;::::0;::::1;11784:21:1::0;11841:2;11821:18;;;11814:30;11880:27;11860:18;;;11853:55;11925:18;;47062:70:0::1;11600:349:1::0;47062:70:0::1;47244:12;:19:::0;47230:34:::1;::::0;::::1;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;-1:-1:-1;47230:34:0::1;;47213:51;;47282:9;47277:419;47301:12;:19:::0;47297:23;::::1;47277:419;;;47362:17;::::0;::::1;;::::0;;;:7:::1;:17;::::0;;;;;;;:20;;;;;;;;;47342:17;;:14;;47380:1;;47342:17;::::1;;;;;:::i;:::-;;::::0;;::::1;::::0;;;;;;:40;;;;47397:17:::1;::::0;::::1;47420:1;47397:17:::0;;;:7:::1;:17:::0;;;;;;:20;;;;;;;;;:24;;;47440:17;;:14;;47415:1;;47440:17;::::1;;;;;:::i;:::-;;;;;;;:21;47436:249;;;47482:84;47510:12;47523:1;47510:15;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;47527:19;47548:14;47563:1;47548:17;;;;;;;;:::i;:::-;;;;;;;47482:27;:84::i;:::-;47603:8;47592:77;;;47613:14;47628:1;47613:17;;;;;;;;:::i;:::-;;;;;;;47632:12;47645:1;47632:15;;;;;;;;:::i;:::-;;::::0;;;::::1;::::0;;;;::::1;::::0;47592:77:::1;::::0;;20004:25:1;;;47632:15:0::1;::::0;;::::1;20106:18:1::0;;;20099:43;;;;20178:15;;20158:18;;;20151:43;19992:2;19977:18;47592:77:0::1;;;;;;;47436:249;47322:3:::0;::::1;::::0;::::1;:::i;:::-;;;;47277:419;;;;46662:1194:::0;;;;;;;:::o;18949:361::-;19144:45;;;19133:10;17409:55:1;;;19144:45:0;;;17391:74:1;17481:18;;;;17474:34;;;19144:45:0;;;;;;;;;;17364:18:1;;;;19144:45:0;;;;;;;;;;;;;19133:57;;-1:-1:-1;;;;19133:10:0;;;;:57;;19144:45;19133:57;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;19097:93;;;;19209:7;:57;;;;-1:-1:-1;19221:11:0;;:16;;:44;;;19252:4;19241:24;;;;;;;;;;;;:::i;:::-;19201:101;;;;;;;21199:2:1;19201:101:0;;;21181:21:1;21238:2;21218:18;;;21211:30;21277:33;21257:18;;;21250:61;21328:18;;19201:101:0;20997:355:1;80508:508:0;80590:31;-1:-1:-1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;80590:31:0;80623:15;;80651:280;80675:28;;;;;;;:12;:28;;;;;:35;80671:39;;80651:280;;;80746:28;;;;;;;:12;:28;;;;;:31;;80775:1;;80746:31;;;;;;:::i;:::-;;;;;;;;;;;:38;;;80736:6;:48;80732:188;;80819:28;;;;;;;:12;:28;;;;;:31;;80848:1;;80819:31;;;;;;:::i;:::-;;;;;;;;;;;80804:46;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;80879:1;80869:11;;80899:5;;80732:188;80712:3;;;;:::i;:::-;;;;80651:280;;;-1:-1:-1;80949:19:0;;:29;;80941:57;;;;;;;21559:2:1;80941:57:0;;;21541:21:1;21598:2;21578:18;;;21571:30;21637:17;21617:18;;;21610:45;21672:18;;80941:57:0;21357:339:1;80941:57:0;80508:508;;;;;:::o;19318:402::-;19543:51;;;19532:10;21982:15:1;;;19543:51:0;;;21964:34:1;22034:15;;;22014:18;;;22007:43;22066:18;;;;22059:34;;;19543:51:0;;;;;;;;;;21876:18:1;;;;19543:51:0;;;;;;;;;;;;;19532:63;;-1:-1:-1;;;;19532:10:0;;;;:63;;19543:51;19532:63;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;19496:99;;;;19614:7;:57;;;;-1:-1:-1;19626:11:0;;:16;;:44;;;19657:4;19646:24;;;;;;;;;;;;:::i;:::-;19606:106;;;;;;;22306:2:1;19606:106:0;;;22288:21:1;22345:2;22325:18;;;22318:30;22384:34;22364:18;;;22357:62;22455:6;22435:18;;;22428:34;22479:19;;19606:106:0;22104:400:1;19606:106:0;19406:314;;19318:402;;;;:::o;86607:1555::-;86753:7;86836:53;86847:14;86863:19;86884:4;86836:10;:53::i;:::-;;86943:28;86973:21;86998:33;87008:14;87024:6;86998:9;:33::i;:::-;86942:89;;;;87069:9;:26;;;87050:15;:45;;:71;;;-1:-1:-1;87099:14:0;;;;:22;;:14;:22;87050:71;87042:106;;;;;;;22711:2:1;87042:106:0;;;22693:21:1;22750:2;22730:18;;;22723:30;22789:24;22769:18;;;22762:52;22831:18;;87042:106:0;22509:346:1;87042:106:0;87179:19;;;;87215:13;;87211:915;;87359:82;87395:12;87410:19;87431:9;87359:27;:82::i;:::-;87520:9;87493:23;;:36;;;;;;;:::i;:::-;;;;-1:-1:-1;;87544:33:0;;;;;;;:17;:33;;;;;:46;;87581:9;;87544:33;:46;;87581:9;;87544:46;:::i;:::-;;;;-1:-1:-1;87624:17:0;;-1:-1:-1;87644:27:0;87656:14;87644:11;:27::i;:::-;87624:47;-1:-1:-1;87694:23:0;;;;87690:70;;87719:28;;;;;;;:17;:28;;;;;:41;;87751:9;;87719:28;:41;;87751:9;;87719:41;:::i;:::-;;;;-1:-1:-1;;87690:70:0;-1:-1:-1;87847:28:0;;;;;;;:12;:28;;;;;:43;;87876:13;;87847:43;;;;;;:::i;:::-;;;;;;;;;;;;;87840:50;;;;;;;;;;;;;;;;;;;;;;;;;;87977:45;;88000:14;;87977:22;:45::i;:::-;88044:70;;;23062:25:1;;;23118:2;23103:18;;23096:34;;;88044:70:0;23166:55:1;;;23146:18;;;23139:83;88044:70:0;;;;;;;;;;;23050:2:1;88044:70:0;;;87211:915;88145:9;86607:1555;-1:-1:-1;;;;;;86607:1555:0:o;47943:2814::-;48064:9;48059:327;48083:18;:25;48079:29;;48059:327;;;48130:34;48167:18;48186:1;48167:21;;;;;;;;:::i;:::-;;;;;;;;;;;;;;-1:-1:-1;48207:40:0;;48203:172;;48268:91;;;;;48353:4;48268:91;;;3708:74:1;48268:76:0;;;;;;3681:18:1;;48268:91:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;48203:172;-1:-1:-1;48110:3:0;;;;:::i;:::-;;;;48059:327;;;;48746:27;29633:6;48802:12;;48784:15;:30;;;;:::i;:::-;48776:57;;;;:::i;:::-;48746:87;;48972:9;48967:284;48991:12;:19;48987:23;;48967:284;;;49113:12;49126:1;49113:15;;;;;;;;:::i;:::-;;;;;;;;;;;49106:48;;;;;49148:4;49106:48;;;3708:74:1;49113:15:0;;;;;49106:33;;3681:18:1;;49106:48:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;49077:23;:19;49099:1;49077:23;:::i;:::-;29633:6;49041:14;49053:1;49041:11;:14::i;:::-;:32;;;;:::i;:::-;:60;;;;:::i;:::-;49040:114;;49220:12;49233:1;49220:15;;;;;;;;:::i;:::-;;;;;;;;;;;;49163:73;;;23725:34:1;49163:73:0;;;23713:47:1;;;;23790:6;23776:12;;;23769:28;23835:2;23831:15;;;23813:12;;;23806:110;23932:12;;49163:73:0;;;;;;;;;;;;49032:207;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1;49012:3:0;;;;:::i;:::-;;;;48967:284;;;-1:-1:-1;29633:6:0;49463:23;:19;49485:1;49463:23;:::i;:::-;49462:43;;;;:::i;:::-;49446:12;;:60;;;;:::i;:::-;49431:12;:75;49559:29;:27;:29::i;:::-;49658:16;:14;:16::i;:::-;49640:15;:34;-1:-1:-1;47943:2814:0:o;50765:435::-;50852:34;50889:17;:15;:17::i;:::-;50852:54;;50969:9;50964:133;50988:21;:28;50984:32;;50964:133;;;51065:17;51083:1;51065:20;;;;;;;;:::i;:::-;;;;;;;51038:21;51060:1;51038:24;;;;;;;;:::i;:::-;;;;;;;;;;:47;51018:3;;;;:::i;:::-;;;;50964:133;;;;51166:26;:24;:26::i;:::-;51149:14;:43;-1:-1:-1;50765:435:0:o;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;4732:118::-;4818:5;4811:13;4804:21;4797:5;4794:32;4784:60;;4840:1;4837;4830:12;4855:315;4920:6;4928;4981:2;4969:9;4960:7;4956:23;4952:32;4949:52;;;4997:1;4994;4987:12;4949:52;5020:29;5039:9;5020:29;:::i;:::-;5010:39;;5099:2;5088:9;5084:18;5071:32;5112:28;5134:5;5112:28;:::i;:::-;5159:5;5149:15;;;4855:315;;;;;:::o;5440:254::-;5508:6;5516;5569:2;5557:9;5548:7;5544:23;5540:32;5537:52;;;5585:1;5582;5575:12;5537:52;5608:29;5627:9;5608:29;:::i;:::-;5598:39;5684:2;5669:18;;;;5656:32;;-1:-1:-1;;;5440:254:1:o;6744:511::-;6812:6;6820;6828;6881:2;6869:9;6860:7;6856:23;6852:32;6849:52;;;6897:1;6894;6887:12;6849:52;6936:9;6923:23;6955:28;6977:5;6955:28;:::i;:::-;7002:5;-1:-1:-1;7059:2:1;7044:18;;7031:32;7072:30;7031:32;7072:30;:::i;:::-;7121:7;-1:-1:-1;7180:2:1;7165:18;;7152:32;7193:30;7152:32;7193:30;:::i;:::-;7242:7;7232:17;;;6744:511;;;;;:::o;7260:403::-;7346:6;7354;7362;7370;7423:3;7411:9;7402:7;7398:23;7394:33;7391:53;;;7440:1;7437;7430:12;7391:53;7463:29;7482:9;7463:29;:::i;:::-;7453:39;;7539:2;7528:9;7524:18;7511:32;7501:42;;7562:38;7596:2;7585:9;7581:18;7562:38;:::i;:::-;7552:48;;7619:38;7653:2;7642:9;7638:18;7619:38;:::i;:::-;7609:48;;7260:403;;;;;;;:::o;7668:254::-;7736:6;7744;7797:2;7785:9;7776:7;7772:23;7768:32;7765:52;;;7813:1;7810;7803:12;7765:52;7849:9;7836:23;7826:33;;7878:38;7912:2;7901:9;7897:18;7878:38;:::i;7927:241::-;7983:6;8036:2;8024:9;8015:7;8011:23;8007:32;8004:52;;;8052:1;8049;8042:12;8004:52;8091:9;8078:23;8110:28;8132:5;8110:28;:::i;8173:184::-;8225:77;8222:1;8215:88;8322:4;8319:1;8312:15;8346:4;8343:1;8336:15;8362:915;8444:6;8497:3;8485:9;8476:7;8472:23;8468:33;8465:53;;;8514:1;8511;8504:12;8465:53;8563:7;8556:4;8545:9;8541:20;8537:34;8527:62;;8585:1;8582;8575:12;8527:62;8618:2;8612:9;8660:3;8652:6;8648:16;8730:6;8718:10;8715:22;8694:18;8682:10;8679:34;8676:62;8673:242;;;8771:77;8768:1;8761:88;8872:4;8869:1;8862:15;8900:4;8897:1;8890:15;8673:242;8931:2;8924:22;8966:6;9010:3;8995:19;;9026;;;9023:39;;;9058:1;9055;9048:12;9023:39;9082:9;9100:146;9116:6;9111:3;9108:15;9100:146;;;9184:17;;9172:30;;9231:4;9222:14;;;;9133;9100:146;;;-1:-1:-1;9265:6:1;;8362:915;-1:-1:-1;;;;;8362:915:1:o;9282:184::-;9334:77;9331:1;9324:88;9431:4;9428:1;9421:15;9455:4;9452:1;9445:15;9471:184;9523:77;9520:1;9513:88;9620:4;9617:1;9610:15;9644:4;9641:1;9634:15;9660:125;9700:4;9728:1;9725;9722:8;9719:34;;;9733:18;;:::i;:::-;-1:-1:-1;9770:9:1;;9660:125::o;9790:228::-;9830:7;9956:1;9888:66;9884:74;9881:1;9878:81;9873:1;9866:9;9859:17;9855:105;9852:131;;;9963:18;;:::i;:::-;-1:-1:-1;10003:9:1;;9790:228::o;10023:274::-;10063:1;10089;10079:189;;10124:77;10121:1;10114:88;10225:4;10222:1;10215:15;10253:4;10250:1;10243:15;10079:189;-1:-1:-1;10282:9:1;;10023:274::o;10302:128::-;10342:3;10373:1;10369:6;10366:1;10363:13;10360:39;;;10379:18;;:::i;:::-;-1:-1:-1;10415:9:1;;10302:128::o;10435:195::-;10474:3;10505:66;10498:5;10495:77;10492:103;;10575:18;;:::i;:::-;-1:-1:-1;10622:1:1;10611:13;;10435:195::o;11411:184::-;11481:6;11534:2;11522:9;11513:7;11509:23;11505:32;11502:52;;;11550:1;11547;11540:12;11502:52;-1:-1:-1;11573:16:1;;11411:184;-1:-1:-1;11411:184:1:o;20205:258::-;20277:1;20287:113;20301:6;20298:1;20295:13;20287:113;;;20377:11;;;20371:18;20358:11;;;20351:39;20323:2;20316:10;20287:113;;;20418:6;20415:1;20412:13;20409:48;;;-1:-1:-1;;20453:1:1;20435:16;;20428:27;20205:258::o;20468:274::-;20597:3;20635:6;20629:13;20651:53;20697:6;20692:3;20685:4;20677:6;20673:17;20651:53;:::i;:::-;20720:16;;;;;20468:274;-1:-1:-1;;20468:274:1:o;20747:245::-;20814:6;20867:2;20855:9;20846:7;20842:23;20838:32;20835:52;;;20883:1;20880;20873:12;20835:52;20915:9;20909:16;20934:28;20956:5;20934:28;:::i;23233:245::-;23312:6;23320;23373:2;23361:9;23352:7;23348:23;23344:32;23341:52;;;23389:1;23386;23379:12;23341:52;-1:-1:-1;;23412:16:1;;23468:2;23453:18;;;23447:25;23412:16;;23447:25;;-1:-1:-1;23233:245:1:o;23955:442::-;24104:2;24093:9;24086:21;24067:4;24136:6;24130:13;24179:6;24174:2;24163:9;24159:18;24152:34;24195:66;24254:6;24249:2;24238:9;24234:18;24229:2;24221:6;24217:15;24195:66;:::i;:::-;24313:2;24301:15;24318:66;24297:88;24282:104;;;;24388:2;24278:113;;23955:442;-1:-1:-1;;23955:442:1:o

Swarm Source

ipfs://5aebb569aae77c355e348f8cc000f795c11b91d0812e5743988160eafc0efd48

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.