ETH Price: $2,589.83 (-2.55%)

Token

Stacker Ventures ETH v1 (stackETH)
 

Overview

Max Total Supply

1.533370805714011798 stackETH

Holders

109

Market

Onchain Market Cap

$0.00

Circulating Supply Market Cap

-

Other Info

Token Contract (WITH 18 Decimals)

Balance
0.000000000000000001 stackETH

Value
$0.00
0xf1d75e75e375d0656bedad4c0298f4c4668b3e21
Loading...
Loading
Loading...
Loading
Loading...
Loading

Click here to update the token information / general information
# Exchange Pair Price  24H Volume % Volume

Contract Source Code Verified (Exact Match)

Contract Name:
FarmTreasuryV1_ETH

Compiler Version
v0.6.12+commit.27d51765

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, MIT license

Contract Source Code (Solidity)

/**
 *Submitted for verification at Etherscan.io on 2021-04-13
*/

// SPDX-License-Identifier: MIT
/*
This is a Stacker.vc FarmTreasury version 1 contract. It deploys a rebase token where it rebases to be equivalent to it's underlying token. 1 stackUSDT = 1 USDT.
The underlying assets are used to farm on different smart contract and produce yield via the ever-expanding DeFi ecosystem.

THANKS! To Lido DAO for the inspiration in more ways than one, but especially for a lot of the code here. 
If you haven't already, stake your ETH for ETH2.0 with Lido.fi!

Also thanks for Aragon for hosting our Stacker Ventures DAO, and for more inspiration!
*/

pragma solidity ^0.6.11;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

/**
 * @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, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        uint256 c = a + b;
        if (c < a) return (false, 0);
        return (true, c);
    }

    /**
     * @dev Returns the substraction of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        if (b > a) return (false, 0);
        return (true, a - b);
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        // Gas optimization: this is cheaper than requiring 'a' not being zero, but the
        // benefit is lost if 'b' is also tested.
        // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
        if (a == 0) return (true, 0);
        uint256 c = a * b;
        if (c / a != b) return (false, 0);
        return (true, c);
    }

    /**
     * @dev Returns the division of two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        if (b == 0) return (false, 0);
        return (true, a / b);
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        if (b == 0) return (false, 0);
        return (true, a % b);
    }

    /**
     * @dev Returns the addition of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `+` operator.
     *
     * Requirements:
     *
     * - Addition cannot overflow.
     */
    function add(uint256 a, uint256 b) internal pure returns (uint256) {
        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) {
        require(b <= a, "SafeMath: subtraction overflow");
        return a - b;
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `*` operator.
     *
     * Requirements:
     *
     * - Multiplication cannot overflow.
     */
    function mul(uint256 a, uint256 b) internal pure returns (uint256) {
        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, reverting 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) {
        require(b > 0, "SafeMath: division by zero");
        return a / b;
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting when dividing by zero.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(uint256 a, uint256 b) internal pure returns (uint256) {
        require(b > 0, "SafeMath: modulo by zero");
        return a % b;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting with custom message on
     * overflow (when the result is negative).
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {trySub}.
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b <= a, errorMessage);
        return a - b;
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting with custom message on
     * division by zero. The result is rounded towards zero.
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {tryDiv}.
     *
     * Counterpart to Solidity's `/` operator. Note: this function uses a
     * `revert` opcode (which leaves remaining gas untouched) while Solidity
     * uses an invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b > 0, errorMessage);
        return a / b;
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting with custom message when dividing by zero.
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {tryMod}.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b > 0, errorMessage);
        return a % b;
    }
}

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
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);
}

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

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

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

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

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

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

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

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

abstract contract FarmTokenV1 is IERC20 {
    using SafeMath for uint256;
    using Address for address;

    // shares are how a users balance is generated. For rebase tokens, balances are always generated at runtime, while shares stay constant.
    // shares is your proportion of the total pool of invested UnderlyingToken
    // shares are like a Compound.finance cToken, while our token balances are like an Aave aToken.
    mapping(address => uint256) private shares;
    mapping(address => mapping (address => uint256)) private allowances;

    uint256 public totalShares;

    string public name;
    string public symbol;
    string public underlying;
    address public underlyingContract;

    uint8 public decimals;

    event Transfer(address indexed from, address indexed to, uint256 value);
    event Approval(address indexed owner, address indexed spender, uint256 value);

    constructor(string memory _name, uint8 _decimals, address _underlyingContract) public {
        name = string(abi.encodePacked(abi.encodePacked("Stacker Ventures ", _name), " v1"));
        symbol = string(abi.encodePacked("stack", _name));
        underlying = _name;

        decimals = _decimals;

        underlyingContract = _underlyingContract;
    }

    // 1 stackToken = 1 underlying token
    function totalSupply() external override view returns (uint256){
        return _getTotalUnderlying();
    }

    function totalUnderlying() external view returns (uint256){
        return _getTotalUnderlying();
    }

    function balanceOf(address _account) public override view returns (uint256){
        return getUnderlyingForShares(_sharesOf(_account));
    }

    // transfer tokens, not shares
    function transfer(address _recipient, uint256 _amount) external override returns (bool){
        _verify(msg.sender, _amount);
        _transfer(msg.sender, _recipient, _amount);
        return true;
    }

    function transferFrom(address _sender, address _recipient, uint256 _amount) external override returns (bool){
        _verify(_sender, _amount);
        uint256 _currentAllowance = allowances[_sender][msg.sender];
        require(_currentAllowance >= _amount, "FARMTOKENV1: not enough allowance");

        _transfer(_sender, _recipient, _amount);
        _approve(_sender, msg.sender, _currentAllowance.sub(_amount));
        return true;
    }

    // this checks if a transfer/transferFrom/withdraw is allowed. There are some conditions on withdraws/transfers from new deposits
    // function stub, this needs to be implemented in a contract which inherits this for a valid deployment
    // IMPLEMENT THIS
    function _verify(address _account, uint256 _amountUnderlyingToSend) internal virtual;

    // allow tokens, not shares
    function allowance(address _owner, address _spender) external override view returns (uint256){
        return allowances[_owner][_spender];
    }

    // approve tokens, not shares
    function approve(address _spender, uint256 _amount) external override returns (bool){
        _approve(msg.sender, _spender, _amount);
        return true;
    }

    // shares of _account
    function sharesOf(address _account) external view returns (uint256) {
        return _sharesOf(_account);
    }

    // how many shares for _amount of underlying?
    // if there are no shares, or no underlying yet, we are initing the contract or suffered a total loss
    // either way, init this state at 1:1 shares:underlying
    function getSharesForUnderlying(uint256 _amountUnderlying) public view returns (uint256){
        uint256 _totalUnderlying = _getTotalUnderlying();
        if (_totalUnderlying == 0){
            return _amountUnderlying; // this will init at 1:1 _underlying:_shares
        }
        uint256 _totalShares = totalShares;
        if (_totalShares == 0){
            return _amountUnderlying; // this will init the first shares, expected contract underlying balance == 0, or there will be a bonus (doesn't belong to anyone so ok)
        }

        return _amountUnderlying.mul(_totalShares).div(_totalUnderlying);
    }

    // how many underlying for _amount of shares?
    // if there are no shares, or no underlying yet, we are initing the contract or suffered a total loss
    // either way, init this state at 1:1 shares:underlying
    function getUnderlyingForShares(uint256 _amountShares) public view returns (uint256){
        uint256 _totalShares = totalShares;
        if (_totalShares == 0){
            return _amountShares; // this will init at 1:1 _shares:_underlying
        }
        uint256 _totalUnderlying = _getTotalUnderlying();
        if (_totalUnderlying == 0){
            return _amountShares; // this will init at 1:1 
        }

        return _amountShares.mul(_totalUnderlying).div(_totalShares);

    }

    function _sharesOf(address _account) internal view returns (uint256){
        return shares[_account];
    }

    // function stub, this needs to be implemented in a contract which inherits this for a valid deployment
    // sum the contract balance + working balance withdrawn from the contract and actively farming
    // IMPLEMENT THIS
    function _getTotalUnderlying() internal virtual view returns (uint256);

    // in underlying
    function _transfer(address _sender, address _recipient, uint256 _amount) internal {
        uint256 _sharesToTransfer = getSharesForUnderlying(_amount);
        _transferShares(_sender, _recipient, _sharesToTransfer);
        emit Transfer(_sender, _recipient, _amount);
    }

    // in underlying
    function _approve(address _owner, address _spender, uint256 _amount) internal {
        require(_owner != address(0), "FARMTOKENV1: from == 0x0");
        require(_spender != address(0), "FARMTOKENV1: to == 0x00");

        allowances[_owner][_spender] = _amount;
        emit Approval(_owner, _spender, _amount);
    }

    function _transferShares(address _sender, address _recipient,  uint256 _amountShares) internal {
        require(_sender != address(0), "FARMTOKENV1: from == 0x00");
        require(_recipient != address(0), "FARMTOKENV1: to == 0x00");

        uint256 _currentSenderShares = shares[_sender];
        require(_amountShares <= _currentSenderShares, "FARMTOKENV1: transfer amount exceeds balance");

        shares[_sender] = _currentSenderShares.sub(_amountShares);
        shares[_recipient] = shares[_recipient].add(_amountShares);
    }

    function _mintShares(address _recipient, uint256 _amountShares) internal {
        require(_recipient != address(0), "FARMTOKENV1: to == 0x00");

        totalShares = totalShares.add(_amountShares);
        shares[_recipient] = shares[_recipient].add(_amountShares);

        // NOTE: we're not emitting a Transfer event from the zero address here
        // If we mint shares with no underlying, we basically just diluted everyone

        // It's not possible to send events from _everyone_ to reflect each balance dilution (ie: balance going down)

        // Not compliant to ERC20 standard...
    }

    function _burnShares(address _account, uint256 _amountShares) internal {
        require(_account != address(0), "FARMTOKENV1: burn from == 0x00");

        uint256 _accountShares = shares[_account];
        require(_amountShares <= _accountShares, "FARMTOKENV1: burn amount exceeds balance");
        totalShares = totalShares.sub(_amountShares);

        shares[_account] = _accountShares.sub(_amountShares);

        // NOTE: we're not emitting a Transfer event to the zero address here 
        // If we burn shares without burning/withdrawing the underlying
        // then it looks like a system wide credit to everyones balance

        // It's not possible to send events to _everyone_ to reflect each balance credit (ie: balance going up)

        // Not compliant to ERC20 standard...
    }
}

contract FarmTreasuryV1 is ReentrancyGuard, FarmTokenV1 {
    using SafeERC20 for IERC20;
    using SafeMath for uint256;
    using Address for address;

    mapping(address => DepositInfo) public userDeposits;
    mapping(address => bool) public noLockWhitelist;

    struct DepositInfo {
        uint256 amountUnderlyingLocked;
        uint256 timestampDeposit;
        uint256 timestampUnlocked;
    }

    uint256 internal constant LOOP_LIMIT = 200;

    address payable public governance;
    address payable public farmBoss;

    bool public paused = false;
    bool public pausedDeposits = false;

    // fee schedule, can be changed by governance, in bips
    // performance fee is on any gains, base fee is on AUM/yearly
    uint256 public constant max = 10000;
    uint256 public performanceToTreasury = 1000;
    uint256 public performanceToFarmer = 1000;
    uint256 public baseToTreasury = 100;
    uint256 public baseToFarmer = 100;

    // limits on rebalancing from the farmer, trying to negate errant rebalances
    uint256 public rebalanceUpLimit = 100; // maximum of a 1% gain per rebalance
    uint256 public rebalanceUpWaitTime = 23 hours;
    uint256 public lastRebalanceUpTime;

    // waiting period on withdraws from time of deposit
    // locked amount linearly decreases until the time is up, so at waitPeriod/2 after deposit, you can withdraw depositAmt/2 funds.
    uint256 public waitPeriod = 1 weeks;

    // hot wallet holdings for instant withdraw, in bips
    // if the hot wallet balance expires, the users will need to wait for the next rebalance period in order to withdraw
    uint256 public hotWalletHoldings = 1000; // 10% initially

    uint256 public ACTIVELY_FARMED;

    event RebalanceHot(uint256 amountIn, uint256 amountToFarmer, uint256 timestamp);
    event ProfitDeclared(bool profit, uint256 amount, uint256 timestamp, uint256 totalAmountInPool, uint256 totalSharesInPool, uint256 performanceFeeTotal, uint256 baseFeeTotal);
    event Deposit(address depositor, uint256 amount, address referral);
    event Withdraw(address withdrawer, uint256 amount);

    constructor(string memory _nameUnderlying, uint8 _decimalsUnderlying, address _underlying) public FarmTokenV1(_nameUnderlying, _decimalsUnderlying, _underlying) {
        governance = msg.sender;
        lastRebalanceUpTime = block.timestamp;
    }

    function setGovernance(address payable _new) external {
        require(msg.sender == governance, "FARMTREASURYV1: !governance");
        governance = _new;
    }

    // the "farmBoss" is a trusted smart contract that functions kind of like an EOA.
    // HOWEVER specific contract addresses need to be whitelisted in order for this contract to be allowed to interact w/ them
    // the governance has full control over the farmBoss, and other addresses can have partial control for strategy rotation/rebalancing
    function setFarmBoss(address payable _new) external {
        require(msg.sender == governance, "FARMTREASURYV1: !governance");
        farmBoss = _new;
    }

    function setNoLockWhitelist(address[] calldata _accounts, bool[] calldata _noLock) external {
        require(msg.sender == governance, "FARMTREASURYV1: !governance");
        require(_accounts.length == _noLock.length && _accounts.length <= LOOP_LIMIT, "FARMTREASURYV1: check array lengths");

        for (uint256 i = 0; i < _accounts.length; i++){
            noLockWhitelist[_accounts[i]] = _noLock[i];
        }
    }

    function pause() external {
        require(msg.sender == governance, "FARMTREASURYV1: !governance");
        paused = true;
    }

    function unpause() external {
        require(msg.sender == governance, "FARMTREASURYV1: !governance");
        paused = false;
    }

    function pauseDeposits() external {
        require(msg.sender == governance, "FARMTREASURYV1: !governance");
        pausedDeposits = true;
    }

    function unpauseDeposits() external {
        require(msg.sender == governance, "FARMTREASURYV1: !governance");
        pausedDeposits = false;
    }

    function setFeeDistribution(uint256 _performanceToTreasury, uint256 _performanceToFarmer, uint256 _baseToTreasury, uint256 _baseToFarmer) external {
        require(msg.sender == governance, "FARMTREASURYV1: !governance");
        require(_performanceToTreasury.add(_performanceToFarmer) < max, "FARMTREASURYV1: too high performance");
        require(_baseToTreasury.add(_baseToFarmer) <= 500, "FARMTREASURYV1: too high base");
        
        performanceToTreasury = _performanceToTreasury;
        performanceToFarmer = _performanceToFarmer;
        baseToTreasury = _baseToTreasury;
        baseToFarmer = _baseToFarmer;
    }

    function setWaitPeriod(uint256 _new) external {
        require(msg.sender == governance, "FARMTREASURYV1: !governance");
        require(_new <= 10 weeks, "FARMTREASURYV1: too long wait");

        waitPeriod = _new;
    }

    function setHotWalletHoldings(uint256 _new) external {
        require(msg.sender == governance, "FARMTREASURYV1: !governance");
        require(_new <= max && _new >= 100, "FARMTREASURYV1: hot wallet values bad");

        hotWalletHoldings = _new;
    }

    function setRebalanceUpLimit(uint256 _new) external {
        require(msg.sender == governance, "FARMTREASURYV1: !governance");
        require(_new < max, "FARMTREASURYV1: >= max");

        rebalanceUpLimit = _new;
    }

    function setRebalanceUpWaitTime(uint256 _new) external {
        require(msg.sender == governance, "FARMTREASURYV1: !governance");
        require(_new <= 1 weeks, "FARMTREASURYV1: > 1 week");

        rebalanceUpWaitTime = _new;
    }

    function deposit(uint256 _amountUnderlying, address _referral) external nonReentrant {
        require(_amountUnderlying > 0, "FARMTREASURYV1: amount == 0");
        require(!paused && !pausedDeposits, "FARMTREASURYV1: paused");

        _deposit(_amountUnderlying, _referral);

        IERC20 _underlying = IERC20(underlyingContract);
        uint256 _before = _underlying.balanceOf(address(this));
        _underlying.safeTransferFrom(msg.sender, address(this), _amountUnderlying);
        uint256 _after = _underlying.balanceOf(address(this));
        uint256 _total = _after.sub(_before);
        require(_total >= _amountUnderlying, "FARMTREASURYV1: bad transfer");
    }

    function _deposit(uint256 _amountUnderlying, address _referral) internal {
        // determine how many shares this will be
        uint256 _sharesToMint = getSharesForUnderlying(_amountUnderlying);

        _mintShares(msg.sender, _sharesToMint);
        // store some important info for this deposit, that will be checked on withdraw/transfer of tokens
        _storeDepositInfo(msg.sender, _amountUnderlying);

        // emit deposit w/ referral event... can't refer yourself
        if (_referral != msg.sender){
            emit Deposit(msg.sender, _amountUnderlying, _referral);
        }
        else {
            emit Deposit(msg.sender, _amountUnderlying, address(0));
        }

        emit Transfer(address(0), msg.sender, _amountUnderlying);
    }

    function _storeDepositInfo(address _account, uint256 _amountUnderlying) internal {

        DepositInfo memory _existingInfo = userDeposits[_account];

        // first deposit, make a new entry in the mapping, lock all funds for "waitPeriod"
        if (_existingInfo.timestampDeposit == 0){
            DepositInfo memory _info = DepositInfo(
                {
                    amountUnderlyingLocked: _amountUnderlying, 
                    timestampDeposit: block.timestamp, 
                    timestampUnlocked: block.timestamp.add(waitPeriod)
                }
            );
            userDeposits[_account] = _info;
        }
        // not the first deposit, if there are still funds locked, then average out the waits (ie: 1 BTC locked 10 days = 2 BTC locked 5 days)
        else {
            uint256 _lockedAmt = _getLockedAmount(_account, _existingInfo.amountUnderlyingLocked, _existingInfo.timestampDeposit, _existingInfo.timestampUnlocked);
            // if there's no lock, disregard old info and make a new lock

            if (_lockedAmt == 0){
                DepositInfo memory _info = DepositInfo(
                    {
                        amountUnderlyingLocked: _amountUnderlying, 
                        timestampDeposit: block.timestamp, 
                        timestampUnlocked: block.timestamp.add(waitPeriod)
                    }
                );
                userDeposits[_account] = _info;
            }
            // funds are still locked from a past deposit, average out the waittime remaining with the waittime for this new deposit
            /*
                solve this equation:

                newDepositAmt * waitPeriod + remainingAmt * existingWaitPeriod = (newDepositAmt + remainingAmt) * X waitPeriod

                therefore:

                                (newDepositAmt * waitPeriod + remainingAmt * existingWaitPeriod)
                X waitPeriod =  ----------------------------------------------------------------
                                                (newDepositAmt + remainingAmt)

                Example: 7 BTC new deposit, with wait period of 2 weeks
                         1 BTC remaining, with remaining wait period of 1 week
                         ...
                         (7 BTC * 2 weeks + 1 BTC * 1 week) / 8 BTC = 1.875 weeks
            */
            else {
                uint256 _lockedAmtTime = _lockedAmt.mul(_existingInfo.timestampUnlocked.sub(block.timestamp));
                uint256 _newAmtTime = _amountUnderlying.mul(waitPeriod);
                uint256 _total = _amountUnderlying.add(_lockedAmt);

                uint256 _newLockedTime = (_lockedAmtTime.add(_newAmtTime)).div(_total);

                DepositInfo memory _info = DepositInfo(
                    {
                        amountUnderlyingLocked: _total, 
                        timestampDeposit: block.timestamp, 
                        timestampUnlocked: block.timestamp.add(_newLockedTime)
                    }
                );
                userDeposits[_account] = _info;
            }
        }
    }

    function getLockedAmount(address _account) public view returns (uint256) {
        DepositInfo memory _existingInfo = userDeposits[_account];
        return _getLockedAmount(_account, _existingInfo.amountUnderlyingLocked, _existingInfo.timestampDeposit, _existingInfo.timestampUnlocked);
    }

    // the locked amount linearly decreases until the timestampUnlocked time, then it's zero
    // Example: if 5 BTC contributed (2 week lock), then after 1 week there will be 2.5 BTC locked, the rest is free to transfer/withdraw
    function _getLockedAmount(address _account, uint256 _amountLocked, uint256 _timestampDeposit, uint256 _timestampUnlocked) internal view returns (uint256) {
        if (_timestampUnlocked <= block.timestamp || noLockWhitelist[_account]){
            return 0;
        }
        else {
            uint256 _remainingTime = _timestampUnlocked.sub(block.timestamp);
            uint256 _totalTime = _timestampUnlocked.sub(_timestampDeposit);

            return _amountLocked.mul(_remainingTime).div(_totalTime);
        }
    }

    function withdraw(uint256 _amountUnderlying) external nonReentrant {
        require(_amountUnderlying > 0, "FARMTREASURYV1: amount == 0");
        require(!paused, "FARMTREASURYV1: paused");

        _withdraw(_amountUnderlying);

        IERC20(underlyingContract).safeTransfer(msg.sender, _amountUnderlying);
    }

    function _withdraw(uint256 _amountUnderlying) internal {
        _verify(msg.sender, _amountUnderlying);
        // try and catch the more obvious error of hot wallet being depleted, otherwise proceed
        if (IERC20(underlyingContract).balanceOf(address(this)) < _amountUnderlying){
            revert("FARMTREASURYV1: Hot wallet balance depleted. Please try smaller withdraw or wait for rebalancing.");
        }

        uint256 _sharesToBurn = getSharesForUnderlying(_amountUnderlying);
        _burnShares(msg.sender, _sharesToBurn); // they must have >= _sharesToBurn, checked here

        emit Transfer(msg.sender, address(0), _amountUnderlying);
        emit Withdraw(msg.sender, _amountUnderlying);
    }

    // wait time verification
    function _verify(address _account, uint256 _amountUnderlyingToSend) internal override {
        DepositInfo memory _existingInfo = userDeposits[_account];

        uint256 _lockedAmt = _getLockedAmount(_account, _existingInfo.amountUnderlyingLocked, _existingInfo.timestampDeposit, _existingInfo.timestampUnlocked);
        uint256 _balance = balanceOf(_account);

        // require that any funds locked are not leaving the account in question.
        require(_balance.sub(_amountUnderlyingToSend) >= _lockedAmt, "FARMTREASURYV1: requested funds are temporarily locked");
    }

    // this means that we made a GAIN, due to standard farming gains
    // operaratable by farmBoss, this is standard operating procedure, farmers can only report gains
    function rebalanceUp(uint256 _amount, address _farmerRewards) external nonReentrant returns (bool, uint256) {
        require(msg.sender == farmBoss, "FARMTREASURYV1: !farmBoss");
        require(!paused, "FARMTREASURYV1: paused");

        // fee logic & profit recording
        // check farmer limits on rebalance wait time for earning reportings. if there is no _amount reported, we don't take any fees and skip these checks
        // we should always allow pure hot wallet rebalances, however earnings needs some checks and restrictions
        if (_amount > 0){
            require(block.timestamp.sub(lastRebalanceUpTime) >= rebalanceUpWaitTime, "FARMTREASURYV1: <rebalanceUpWaitTime");
            require(ACTIVELY_FARMED.mul(rebalanceUpLimit).div(max) >= _amount, "FARMTREASURYV1 _amount > rebalanceUpLimit");
            // farmer incurred a gain of _amount, add this to the amount being farmed
            ACTIVELY_FARMED = ACTIVELY_FARMED.add(_amount);
            uint256 _totalPerformance = _performanceFee(_amount, _farmerRewards);
            uint256 _totalAnnual = _annualFee(_farmerRewards);

            // for farmer controls, and also for the annual fee time
            // only update this if there is a reported gain, otherwise this is just a hot wallet rebalance, and we should always allow these
            lastRebalanceUpTime = block.timestamp; 

            // for off-chain APY calculations, fees assessed
            emit ProfitDeclared(true, _amount, block.timestamp, _getTotalUnderlying(), totalShares, _totalPerformance, _totalAnnual);
        }
        else {
            // for off-chain APY calculations, no fees assessed
            emit ProfitDeclared(true, _amount, block.timestamp, _getTotalUnderlying(), totalShares, 0, 0);
        }
        // end fee logic & profit recording

        // funds are in the contract and gains are accounted for, now determine if we need to further rebalance the hot wallet up, or can take funds in order to farm
        // start hot wallet and farmBoss rebalance logic
        (bool _fundsNeeded, uint256 _amountChange) = _calcHotWallet();
        _rebalanceHot(_fundsNeeded, _amountChange); // if the hot wallet rebalance fails, revert() the entire function
        // end logic

        return (_fundsNeeded, _amountChange); // in case we need them, FE simulations and such
    }

    // this means that the system took a loss, and it needs to be reflected in the next rebalance
    // only operatable by governance, (large) losses should be extremely rare by good farming practices
    // this would look like a farmed smart contract getting exploited/hacked, and us not having the necessary insurance for it
    // possible that some more aggressive IL strategies could also need this function called
    function rebalanceDown(uint256 _amount, bool _rebalanceHotWallet) external nonReentrant returns (bool, uint256) {
        require(msg.sender == governance, "FARMTREASURYV1: !governance");
        // require(!paused, "FARMTREASURYV1: paused"); <-- governance can only call this anyways, leave this commented out

        ACTIVELY_FARMED = ACTIVELY_FARMED.sub(_amount);

        if (_rebalanceHotWallet){
            (bool _fundsNeeded, uint256 _amountChange) = _calcHotWallet();
            _rebalanceHot(_fundsNeeded, _amountChange); // if the hot wallet rebalance fails, revert() the entire function

            return (_fundsNeeded, _amountChange); // in case we need them, FE simulations and such
        }

        // for off-chain APY calculations, no fees assessed
        emit ProfitDeclared(false, _amount, block.timestamp, _getTotalUnderlying(), totalShares, 0, 0);

        return (false, 0);
    }

    function _performanceFee(uint256 _amount, address _farmerRewards) internal returns (uint256){

        uint256 _existingShares = totalShares;
        uint256 _balance = _getTotalUnderlying();

        uint256 _performanceToFarmerUnderlying = _amount.mul(performanceToFarmer).div(max);
        uint256 _performanceToTreasuryUnderlying = _amount.mul(performanceToTreasury).div(max);
        uint256 _performanceTotalUnderlying = _performanceToFarmerUnderlying.add(_performanceToTreasuryUnderlying);

        if (_performanceTotalUnderlying == 0){
            return 0;
        }

        uint256 _sharesToMint = _underlyingFeeToShares(_performanceTotalUnderlying, _balance, _existingShares);

        uint256 _sharesToFarmer = _sharesToMint.mul(_performanceToFarmerUnderlying).div(_performanceTotalUnderlying); // by the same ratio
        uint256 _sharesToTreasury = _sharesToMint.sub(_sharesToFarmer);

        _mintShares(_farmerRewards, _sharesToFarmer);
        _mintShares(governance, _sharesToTreasury);

        uint256 _underlyingFarmer = getUnderlyingForShares(_sharesToFarmer);
        uint256 _underlyingTreasury = getUnderlyingForShares(_sharesToTreasury);

        // do two mint events, in underlying, not shares
        emit Transfer(address(0), _farmerRewards, _underlyingFarmer);
        emit Transfer(address(0), governance, _underlyingTreasury);

        return _underlyingFarmer.add(_underlyingTreasury);
    }

    // we are taking baseToTreasury + baseToFarmer each year, every time this is called, look when we took fee last, and linearize the fee to now();
    function _annualFee(address _farmerRewards) internal returns (uint256) {
        uint256 _lastAnnualFeeTime = lastRebalanceUpTime;
        if (_lastAnnualFeeTime >= block.timestamp){
            return 0;
        }

        uint256 _elapsedTime = block.timestamp.sub(_lastAnnualFeeTime);
        uint256 _existingShares = totalShares;
        uint256 _balance = _getTotalUnderlying();

        uint256 _annualPossibleUnderlying = _balance.mul(_elapsedTime).div(365 days);
        uint256 _annualToFarmerUnderlying = _annualPossibleUnderlying.mul(baseToFarmer).div(max);
        uint256 _annualToTreasuryUnderlying = _annualPossibleUnderlying.mul(baseToFarmer).div(max);
        uint256 _annualTotalUnderlying = _annualToFarmerUnderlying.add(_annualToTreasuryUnderlying);

        if (_annualTotalUnderlying == 0){
            return 0;
        }

        uint256 _sharesToMint = _underlyingFeeToShares(_annualTotalUnderlying, _balance, _existingShares);

        uint256 _sharesToFarmer = _sharesToMint.mul(_annualToFarmerUnderlying).div(_annualTotalUnderlying); // by the same ratio
        uint256 _sharesToTreasury = _sharesToMint.sub(_sharesToFarmer);

        _mintShares(_farmerRewards, _sharesToFarmer);
        _mintShares(governance, _sharesToTreasury);

        uint256 _underlyingFarmer = getUnderlyingForShares(_sharesToFarmer);
        uint256 _underlyingTreasury = getUnderlyingForShares(_sharesToTreasury);

        // do two mint events, in underlying, not shares
        emit Transfer(address(0), _farmerRewards, _underlyingFarmer);
        emit Transfer(address(0), governance, _underlyingTreasury);

        return _underlyingFarmer.add(_underlyingTreasury);
    }

    function _underlyingFeeToShares(uint256 _totalFeeUnderlying, uint256 _balance, uint256 _existingShares) pure internal returns (uint256 _sharesToMint){
        // to mint the required amount of fee shares, solve:
        /* 
            ratio:

                    currentShares             newShares     
            -------------------------- : --------------------, where newShares = (currentShares + mintShares)
            (totalUnderlying - feeAmt)      totalUnderlying

            solved:
            ---> (currentShares / (totalUnderlying - feeAmt) * totalUnderlying) - currentShares = mintShares, where newBalanceLessFee = (totalUnderlying - feeAmt)
        */
        return _existingShares
                .mul(_balance)
                .div(_balance.sub(_totalFeeUnderlying))
                .sub(_existingShares);
    }

    function _calcHotWallet() internal view returns (bool _fundsNeeded, uint256 _amountChange) {
        uint256 _balanceHere = IERC20(underlyingContract).balanceOf(address(this));
        uint256 _balanceFarmed = ACTIVELY_FARMED;

        uint256 _totalAmount = _balanceHere.add(_balanceFarmed);
        uint256 _hotAmount = _totalAmount.mul(hotWalletHoldings).div(max);

        // we have too much in hot wallet, send to farmBoss
        if (_balanceHere >= _hotAmount){
            return (false, _balanceHere.sub(_hotAmount));
        }
        // we have too little in hot wallet, pull from farmBoss
        if (_balanceHere < _hotAmount){
            return (true, _hotAmount.sub(_balanceHere));
        }
    }

    // usually paired with _calcHotWallet()
    function _rebalanceHot(bool _fundsNeeded, uint256 _amountChange) internal {
        if (_fundsNeeded){
            uint256 _before = IERC20(underlyingContract).balanceOf(address(this));
            IERC20(underlyingContract).safeTransferFrom(farmBoss, address(this), _amountChange);
            uint256 _after = IERC20(underlyingContract).balanceOf(address(this));
            uint256 _total = _after.sub(_before);

            require(_total >= _amountChange, "FARMTREASURYV1: bad rebalance, hot wallet needs funds!");

            // we took funds from the farmBoss to refill the hot wallet, reflect this in ACTIVELY_FARMED
            ACTIVELY_FARMED = ACTIVELY_FARMED.sub(_amountChange);

            emit RebalanceHot(_amountChange, 0, block.timestamp);
        }
        else {
            require(farmBoss != address(0), "FARMTREASURYV1: !FarmBoss"); // don't burn funds

            IERC20(underlyingContract).safeTransfer(farmBoss, _amountChange); // _calcHotWallet() guarantees we have funds here to send

            // we sent more funds for the farmer to farm, reflect this
            ACTIVELY_FARMED = ACTIVELY_FARMED.add(_amountChange);

            emit RebalanceHot(0, _amountChange, block.timestamp);
        }
    }

    function _getTotalUnderlying() internal override view returns (uint256) {
        uint256 _balanceHere = IERC20(underlyingContract).balanceOf(address(this));
        uint256 _balanceFarmed = ACTIVELY_FARMED;

        return _balanceHere.add(_balanceFarmed);
    }

    function rescue(address _token, uint256 _amount) external nonReentrant {
        require(msg.sender == governance, "FARMTREASURYV1: !governance");

        if (_token != address(0)){
            IERC20(_token).safeTransfer(governance, _amount);
        }
        else { // if _tokenContract is 0x0, then escape ETH
            governance.transfer(_amount);
        }
    }
}

interface IWETH {   
    function deposit() payable external;
    function withdraw(uint256 wad) external;
}

contract FarmTreasuryV1_ETH is ReentrancyGuard, FarmTreasuryV1 {
    using SafeERC20 for IERC20;
    using SafeMath for uint256;
    using Address for address;

    constructor(string memory _nameUnderlying, uint8 _decimalsUnderlying, address _underlying) public FarmTreasuryV1(_nameUnderlying, _decimalsUnderlying, _underlying){
    }

    receive() payable external {
        // ie: not getting sent back WETH from an unwrapping
        if(msg.sender != underlyingContract){
            depositETH(address(0));
        }
    }

    function depositETH(address _referral) public payable nonReentrant {
        require(msg.value > 0, "FARMTREASURYV1: msg.value == 0");
        require(!paused && !pausedDeposits, "FARMTREASURYV1: paused");

        _deposit(msg.value, _referral);

        IWETH(underlyingContract).deposit{value: msg.value}();
    }

    function withdrawETH(uint256 _amountUnderlying) external nonReentrant {
        require(_amountUnderlying > 0, "FARMTREASURYV1: amount == 0");
        require(!paused, "FARMTREASURYV1: paused");

        _withdraw(_amountUnderlying);

        IWETH(underlyingContract).withdraw(_amountUnderlying);
        msg.sender.transfer(_amountUnderlying);
    }
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"string","name":"_nameUnderlying","type":"string"},{"internalType":"uint8","name":"_decimalsUnderlying","type":"uint8"},{"internalType":"address","name":"_underlying","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"depositor","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"address","name":"referral","type":"address"}],"name":"Deposit","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bool","name":"profit","type":"bool"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"timestamp","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"totalAmountInPool","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"totalSharesInPool","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"performanceFeeTotal","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"baseFeeTotal","type":"uint256"}],"name":"ProfitDeclared","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"amountIn","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amountToFarmer","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"timestamp","type":"uint256"}],"name":"RebalanceHot","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"withdrawer","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Withdraw","type":"event"},{"inputs":[],"name":"ACTIVELY_FARMED","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_owner","type":"address"},{"internalType":"address","name":"_spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_spender","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseToFarmer","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseToTreasury","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amountUnderlying","type":"uint256"},{"internalType":"address","name":"_referral","type":"address"}],"name":"deposit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_referral","type":"address"}],"name":"depositETH","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"farmBoss","outputs":[{"internalType":"address payable","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_account","type":"address"}],"name":"getLockedAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amountUnderlying","type":"uint256"}],"name":"getSharesForUnderlying","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amountShares","type":"uint256"}],"name":"getUnderlyingForShares","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"governance","outputs":[{"internalType":"address payable","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"hotWalletHoldings","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lastRebalanceUpTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"max","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"noLockWhitelist","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"pauseDeposits","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pausedDeposits","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"performanceToFarmer","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"performanceToTreasury","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"bool","name":"_rebalanceHotWallet","type":"bool"}],"name":"rebalanceDown","outputs":[{"internalType":"bool","name":"","type":"bool"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"address","name":"_farmerRewards","type":"address"}],"name":"rebalanceUp","outputs":[{"internalType":"bool","name":"","type":"bool"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"rebalanceUpLimit","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rebalanceUpWaitTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"rescue","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address payable","name":"_new","type":"address"}],"name":"setFarmBoss","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_performanceToTreasury","type":"uint256"},{"internalType":"uint256","name":"_performanceToFarmer","type":"uint256"},{"internalType":"uint256","name":"_baseToTreasury","type":"uint256"},{"internalType":"uint256","name":"_baseToFarmer","type":"uint256"}],"name":"setFeeDistribution","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address payable","name":"_new","type":"address"}],"name":"setGovernance","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_new","type":"uint256"}],"name":"setHotWalletHoldings","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"_accounts","type":"address[]"},{"internalType":"bool[]","name":"_noLock","type":"bool[]"}],"name":"setNoLockWhitelist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_new","type":"uint256"}],"name":"setRebalanceUpLimit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_new","type":"uint256"}],"name":"setRebalanceUpWaitTime","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_new","type":"uint256"}],"name":"setWaitPeriod","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_account","type":"address"}],"name":"sharesOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalShares","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalUnderlying","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_recipient","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_sender","type":"address"},{"internalType":"address","name":"_recipient","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"underlying","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"underlyingContract","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unpauseDeposits","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"userDeposits","outputs":[{"internalType":"uint256","name":"amountUnderlyingLocked","type":"uint256"},{"internalType":"uint256","name":"timestampDeposit","type":"uint256"},{"internalType":"uint256","name":"timestampUnlocked","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"waitPeriod","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amountUnderlying","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amountUnderlying","type":"uint256"}],"name":"withdrawETH","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]

6080604052600b805461ffff60a01b191690556103e8600c819055600d8190556064600e819055600f8190556010556201437060115562093a806013556014553480156200004c57600080fd5b5060405162003fd038038062003fd0833981810160405260608110156200007257600080fd5b81019080805160405193929190846401000000008211156200009357600080fd5b908301906020820185811115620000a957600080fd5b8251640100000000811182820188101715620000c457600080fd5b82525081516020918201929091019080838360005b83811015620000f3578181015183820152602001620000d9565b50505050905090810190601f168015620001215780820380516001836020036101000a031916815260200191505b5060408181526020838101519390910151600160005570029ba30b1b5b2b9102b32b73a3ab932b99607d1b82840190815287519496509094508693869386938693869386938693603190910191908401908083835b60208310620001975780518252601f19909201916020918201910162000176565b6001836020036101000a0380198251168184511680821785525050505050509050019150506040516020818303038152906040526040516020018082805190602001908083835b60208310620001ff5780518252601f199092019160209182019101620001de565b51815160209384036101000a60001901801990921691161790526220763160e81b9190930190815260408051808303601c190181526003909201905280516200025295506004945092019190506200034f565b5082604051602001808064737461636b60d81b81525060050182805190602001908083835b60208310620002985780518252601f19909201916020918201910162000277565b6001836020036101000a03801982511681845116808217855250505050505090500191505060405160208183030381529060405260059080519060200190620002e39291906200034f565b508251620002f99060069060208601906200034f565b50600780546001600160a01b039092166001600160a01b031960ff909416600160a01b0260ff60a01b19909316929092178316919091179055600a80549091163317905550504260125550620003eb9350505050565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106200039257805160ff1916838001178555620003c2565b82800160010185558215620003c2579182015b82811115620003c2578251825591602001919060010190620003a5565b50620003d0929150620003d4565b5090565b5b80821115620003d05760008155600101620003d5565b613bd580620003fb6000396000f3fe60806040526004361061031e5760003560e01c80636ac5db19116101ab578063ab033ea9116100f7578063dd2a1eab11610095578063ed3efad51161006f578063ed3efad514610ae0578063f14210a614610baf578063f5eb42dc14610bd9578063fb6cc88214610c0c57610341565b8063dd2a1eab14610a7b578063dd62ed3e14610a90578063e54542b214610acb57610341565b8063b76e6be2116100d1578063b76e6be214610a27578063c70920bc1461056e578063c7c863f014610a51578063d5836ce814610a6657610341565b8063ab033ea91461098f578063b0f122c1146109c2578063b4f82fdc146109f457610341565b80638456cb5911610164578063929ec5371161013e578063929ec537146108db57806395d89b411461090e5780639b0fbe4914610923578063a9059cbb1461095657610341565b80638456cb591461089c578063852b1901146108b15780638e26c09d146108c657610341565b80636ac5db19146107b85780636e553f65146107cd5780636f307dc31461080657806370a082311461081b5780637a4e4ecf1461084e5780637f7d9a061461088757610341565b80632e1a7d4d1161026a5780634e118982116102235780635dfbaeaf116101fd5780635dfbaeaf146107645780636068d6cb1461077957806363d8882a1461078e5780636a62dd54146107a357610341565b80634e118982146107105780635aa6e6751461073a5780635c975abb1461074f57610341565b80632e1a7d4d1461062b578063313ce567146106555780633a98ef39146106805780633f4ba83a1461069557806347662b38146106aa5780634aa3c302146106d457610341565b80630ba36dcd116102d7578063222a528f116102b1578063222a528f1461058357806323b872dd146105ad5780632676440e146105f05780632d2da8061461060557610341565b80630ba36dcd146104ec57806310cfe9061461053d57806318160ddd1461056e57610341565b8063013a6edd14610346578063021919801461038257806306fdde03146103975780630733690814610421578063095ea7b3146104755780630b598a68146104c257610341565b36610341576007546001600160a01b0316331461033f5761033f6000610c21565b005b600080fd5b34801561035257600080fd5b506103706004803603602081101561036957600080fd5b5035610da7565b60408051918252519081900360200190f35b34801561038e57600080fd5b5061033f610df4565b3480156103a357600080fd5b506103ac610e56565b6040805160208082528351818301528351919283929083019185019080838360005b838110156103e65781810151838201526020016103ce565b50505050905090810190601f1680156104135780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561042d57600080fd5b5061045a6004803603604081101561044457600080fd5b50803590602001356001600160a01b0316610ee4565b60408051921515835260208301919091528051918290030190f35b34801561048157600080fd5b506104ae6004803603604081101561049857600080fd5b506001600160a01b0381351690602001356111d3565b604080519115158252519081900360200190f35b3480156104ce57600080fd5b5061033f600480360360208110156104e557600080fd5b50356111ea565b3480156104f857600080fd5b5061051f6004803603602081101561050f57600080fd5b50356001600160a01b031661128b565b60408051938452602084019290925282820152519081900360600190f35b34801561054957600080fd5b506105526112ac565b604080516001600160a01b039092168252519081900360200190f35b34801561057a57600080fd5b506103706112bb565b34801561058f57600080fd5b5061033f600480360360208110156105a657600080fd5b50356112ca565b3480156105b957600080fd5b506104ae600480360360608110156105d057600080fd5b506001600160a01b03813581169160208101359091169060400135611374565b3480156105fc57600080fd5b5061037061140f565b61033f6004803603602081101561061b57600080fd5b50356001600160a01b0316610c21565b34801561063757600080fd5b5061033f6004803603602081101561064e57600080fd5b5035611415565b34801561066157600080fd5b5061066a611532565b6040805160ff9092168252519081900360200190f35b34801561068c57600080fd5b50610370611542565b3480156106a157600080fd5b5061033f611548565b3480156106b657600080fd5b5061033f600480360360208110156106cd57600080fd5b50356115a4565b3480156106e057600080fd5b5061033f600480360360808110156106f757600080fd5b508035906020810135906040810135906060013561164e565b34801561071c57600080fd5b506103706004803603602081101561073357600080fd5b5035611758565b34801561074657600080fd5b50610552611785565b34801561075b57600080fd5b506104ae611794565b34801561077057600080fd5b506103706117a4565b34801561078557600080fd5b506104ae6117aa565b34801561079a57600080fd5b5061033f6117ba565b3480156107af57600080fd5b50610370611816565b3480156107c457600080fd5b5061037061181c565b3480156107d957600080fd5b5061033f600480360360408110156107f057600080fd5b50803590602001356001600160a01b0316611822565b34801561081257600080fd5b506103ac611aaa565b34801561082757600080fd5b506103706004803603602081101561083e57600080fd5b50356001600160a01b0316611b05565b34801561085a57600080fd5b5061033f6004803603604081101561087157600080fd5b506001600160a01b038135169060200135611b18565b34801561089357600080fd5b50610370611c23565b3480156108a857600080fd5b5061033f611c29565b3480156108bd57600080fd5b50610552611c8b565b3480156108d257600080fd5b50610370611c9a565b3480156108e757600080fd5b50610370600480360360208110156108fe57600080fd5b50356001600160a01b0316611ca0565b34801561091a57600080fd5b506103ac611cf8565b34801561092f57600080fd5b5061033f6004803603602081101561094657600080fd5b50356001600160a01b0316611d53565b34801561096257600080fd5b506104ae6004803603604081101561097957600080fd5b506001600160a01b038135169060200135611dc2565b34801561099b57600080fd5b5061033f600480360360208110156109b257600080fd5b50356001600160a01b0316611dd9565b3480156109ce57600080fd5b5061045a600480360360408110156109e557600080fd5b50803590602001351515611e48565b348015610a0057600080fd5b506104ae60048036036020811015610a1757600080fd5b50356001600160a01b0316611f97565b348015610a3357600080fd5b5061033f60048036036020811015610a4a57600080fd5b5035611fac565b348015610a5d57600080fd5b5061037061204c565b348015610a7257600080fd5b50610370612052565b348015610a8757600080fd5b50610370612058565b348015610a9c57600080fd5b5061037060048036036040811015610ab357600080fd5b506001600160a01b038135811691602001351661205e565b348015610ad757600080fd5b50610370612089565b348015610aec57600080fd5b5061033f60048036036040811015610b0357600080fd5b810190602081018135640100000000811115610b1e57600080fd5b820183602082011115610b3057600080fd5b80359060200191846020830284011164010000000083111715610b5257600080fd5b919390929091602081019035640100000000811115610b7057600080fd5b820183602082011115610b8257600080fd5b80359060200191846020830284011164010000000083111715610ba457600080fd5b50909250905061208f565b348015610bbb57600080fd5b5061033f60048036036020811015610bd257600080fd5b5035612197565b348015610be557600080fd5b5061037060048036036020811015610bfc57600080fd5b50356001600160a01b0316612327565b348015610c1857600080fd5b50610370612332565b60026000541415610c67576040805162461bcd60e51b815260206004820152601f60248201526000805160206138fa833981519152604482015290519081900360640190fd5b600260005534610cbe576040805162461bcd60e51b815260206004820152601e60248201527f4641524d545245415355525956313a206d73672e76616c7565203d3d20300000604482015290519081900360640190fd5b600b54600160a01b900460ff16158015610ce25750600b54600160a81b900460ff16155b610d2c576040805162461bcd60e51b8152602060048201526016602482015275119054935514915054d55496558c4e881c185d5cd95960521b604482015290519081900360640190fd5b610d363482612338565b600760009054906101000a90046001600160a01b03166001600160a01b031663d0e30db0346040518263ffffffff1660e01b81526004016000604051808303818588803b158015610d8657600080fd5b505af1158015610d9a573d6000803e3d6000fd5b5050600160005550505050565b60035460009080610dbb5782915050610def565b6000610dc5612422565b905080610dd6578392505050610def565b610dea82610de486846124b5565b9061250e565b925050505b919050565b600a546001600160a01b03163314610e41576040805162461bcd60e51b815260206004820152601b602482015260008051602061391a833981519152604482015290519081900360640190fd5b600b805460ff60a81b1916600160a81b179055565b6004805460408051602060026001851615610100026000190190941693909304601f81018490048402820184019092528181529291830182828015610edc5780601f10610eb157610100808354040283529160200191610edc565b820191906000526020600020905b815481529060010190602001808311610ebf57829003601f168201915b505050505081565b60008060026000541415610f2d576040805162461bcd60e51b815260206004820152601f60248201526000805160206138fa833981519152604482015290519081900360640190fd5b6002600055600b546001600160a01b03163314610f91576040805162461bcd60e51b815260206004820152601960248201527f4641524d545245415355525956313a20216661726d426f737300000000000000604482015290519081900360640190fd5b600b54600160a01b900460ff1615610fe9576040805162461bcd60e51b8152602060048201526016602482015275119054935514915054d55496558c4e881c185d5cd95960521b604482015290519081900360640190fd5b831561113b57601154601254611000904290612575565b101561103d5760405162461bcd60e51b8152600401808060200182810382526024815260200180613a676024913960400191505060405180910390fd5b8361105b612710610de46010546015546124b590919063ffffffff16565b10156110985760405162461bcd60e51b81526004018080602001828103825260298152602001806139f16029913960400191505060405180910390fd5b6015546110a590856125d2565b60155560006110b4858561262c565b905060006110c185612785565b9050426012819055507f133173a0deb39808464c88239fe745075919e0093d1a15670d29eaade2f5dbca600187426110f7612422565b6003546040805195151586526020860194909452848401929092526060840152608083015260a0820185905260c08201849052519081900360e00190a150506111a6565b7f133173a0deb39808464c88239fe745075919e0093d1a15670d29eaade2f5dbca60018542611168612422565b60035460408051951515865260208601949094528484019290925260608401526080830152600060a0830181905260c0830152519081900360e00190a15b6000806111b1612926565b915091506111bf8282612a14565b90925090505b600160005590939092509050565b60006111e0338484612c9e565b5060015b92915050565b600a546001600160a01b03163314611237576040805162461bcd60e51b815260206004820152601b602482015260008051602061391a833981519152604482015290519081900360640190fd5b6127108110611286576040805162461bcd60e51b815260206004820152601660248201527508c82a49aa8a48a82a6aaa4b2ac6274407c7a40dac2f60531b604482015290519081900360640190fd5b601055565b60086020526000908152604090208054600182015460029092015490919083565b6007546001600160a01b031681565b60006112c5612422565b905090565b600a546001600160a01b03163314611317576040805162461bcd60e51b815260206004820152601b602482015260008051602061391a833981519152604482015290519081900360640190fd5b62093a8081111561136f576040805162461bcd60e51b815260206004820152601860248201527f4641524d545245415355525956313a203e2031207765656b0000000000000000604482015290519081900360640190fd5b601155565b60006113808483612db0565b6001600160a01b0384166000908152600260209081526040808320338452909152902054828110156113e35760405162461bcd60e51b8152600401808060200182810382526021815260200180613a8b6021913960400191505060405180910390fd5b6113ee858585612e5e565b61140285336113fd8487612575565b612c9e565b60019150505b9392505050565b60125481565b6002600054141561145b576040805162461bcd60e51b815260206004820152601f60248201526000805160206138fa833981519152604482015290519081900360640190fd5b6002600055806114b2576040805162461bcd60e51b815260206004820152601b60248201527f4641524d545245415355525956313a20616d6f756e74203d3d20300000000000604482015290519081900360640190fd5b600b54600160a01b900460ff161561150a576040805162461bcd60e51b8152602060048201526016602482015275119054935514915054d55496558c4e881c185d5cd95960521b604482015290519081900360640190fd5b61151381612eb5565b60075461152a906001600160a01b03163383612fee565b506001600055565b600754600160a01b900460ff1681565b60035481565b600a546001600160a01b03163314611595576040805162461bcd60e51b815260206004820152601b602482015260008051602061391a833981519152604482015290519081900360640190fd5b600b805460ff60a01b19169055565b600a546001600160a01b031633146115f1576040805162461bcd60e51b815260206004820152601b602482015260008051602061391a833981519152604482015290519081900360640190fd5b625c4900811115611649576040805162461bcd60e51b815260206004820152601d60248201527f4641524d545245415355525956313a20746f6f206c6f6e672077616974000000604482015290519081900360640190fd5b601355565b600a546001600160a01b0316331461169b576040805162461bcd60e51b815260206004820152601b602482015260008051602061391a833981519152604482015290519081900360640190fd5b6127106116a885856125d2565b106116e45760405162461bcd60e51b8152600401808060200182810382526024815260200180613aac6024913960400191505060405180910390fd5b6101f46116f183836125d2565b1115611744576040805162461bcd60e51b815260206004820152601d60248201527f4641524d545245415355525956313a20746f6f20686967682062617365000000604482015290519081900360640190fd5b600c93909355600d91909155600e55600f55565b600080611763612422565b9050806117735782915050610def565b60035480610dd6578392505050610def565b600a546001600160a01b031681565b600b54600160a01b900460ff1681565b60145481565b600b54600160a81b900460ff1681565b600a546001600160a01b03163314611807576040805162461bcd60e51b815260206004820152601b602482015260008051602061391a833981519152604482015290519081900360640190fd5b600b805460ff60a81b19169055565b60155481565b61271081565b60026000541415611868576040805162461bcd60e51b815260206004820152601f60248201526000805160206138fa833981519152604482015290519081900360640190fd5b6002600055816118bf576040805162461bcd60e51b815260206004820152601b60248201527f4641524d545245415355525956313a20616d6f756e74203d3d20300000000000604482015290519081900360640190fd5b600b54600160a01b900460ff161580156118e35750600b54600160a81b900460ff16155b61192d576040805162461bcd60e51b8152602060048201526016602482015275119054935514915054d55496558c4e881c185d5cd95960521b604482015290519081900360640190fd5b6119378282612338565b600754604080516370a0823160e01b815230600482015290516001600160a01b039092169160009183916370a0823191602480820192602092909190829003018186803b15801561198757600080fd5b505afa15801561199b573d6000803e3d6000fd5b505050506040513d60208110156119b157600080fd5b505190506119ca6001600160a01b038316333087613045565b6000826001600160a01b03166370a08231306040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b158015611a1957600080fd5b505afa158015611a2d573d6000803e3d6000fd5b505050506040513d6020811015611a4357600080fd5b505190506000611a538284612575565b905085811015610d9a576040805162461bcd60e51b815260206004820152601c60248201527f4641524d545245415355525956313a20626164207472616e7366657200000000604482015290519081900360640190fd5b6006805460408051602060026001851615610100026000190190941693909304601f81018490048402820184019092528181529291830182828015610edc5780601f10610eb157610100808354040283529160200191610edc565b60006111e4611b13836130a5565b610da7565b60026000541415611b5e576040805162461bcd60e51b815260206004820152601f60248201526000805160206138fa833981519152604482015290519081900360640190fd5b6002600055600a546001600160a01b03163314611bb0576040805162461bcd60e51b815260206004820152601b602482015260008051602061391a833981519152604482015290519081900360640190fd5b6001600160a01b03821615611bde57600a54611bd9906001600160a01b03848116911683612fee565b611c1a565b600a546040516001600160a01b039091169082156108fc029083906000818181858888f19350505050158015611c18573d6000803e3d6000fd5b505b50506001600055565b600e5481565b600a546001600160a01b03163314611c76576040805162461bcd60e51b815260206004820152601b602482015260008051602061391a833981519152604482015290519081900360640190fd5b600b805460ff60a01b1916600160a01b179055565b600b546001600160a01b031681565b60135481565b6000611caa6138d8565b506001600160a01b03821660009081526008602090815260409182902082516060810184528154808252600183015493820184905260029092015493810184905292611408928692916130c0565b6005805460408051602060026001851615610100026000190190941693909304601f81018490048402820184019092528181529291830182828015610edc5780601f10610eb157610100808354040283529160200191610edc565b600a546001600160a01b03163314611da0576040805162461bcd60e51b815260206004820152601b602482015260008051602061391a833981519152604482015290519081900360640190fd5b600b80546001600160a01b0319166001600160a01b0392909216919091179055565b6000611dce3383612db0565b6111e0338484612e5e565b600a546001600160a01b03163314611e26576040805162461bcd60e51b815260206004820152601b602482015260008051602061391a833981519152604482015290519081900360640190fd5b600a80546001600160a01b0319166001600160a01b0392909216919091179055565b60008060026000541415611e91576040805162461bcd60e51b815260206004820152601f60248201526000805160206138fa833981519152604482015290519081900360640190fd5b6002600055600a546001600160a01b03163314611ee3576040805162461bcd60e51b815260206004820152601b602482015260008051602061391a833981519152604482015290519081900360640190fd5b601554611ef09085612575565b6015558215611f1c57600080611f04612926565b91509150611f128282612a14565b90925090506111c5565b7f133173a0deb39808464c88239fe745075919e0093d1a15670d29eaade2f5dbca60008542611f49612422565b60035460408051951515865260208601949094528484019290925260608401526080830152600060a0830181905260c0830152519081900360e00190a1505060016000908155928392509050565b60096020526000908152604090205460ff1681565b600a546001600160a01b03163314611ff9576040805162461bcd60e51b815260206004820152601b602482015260008051602061391a833981519152604482015290519081900360640190fd5b612710811115801561200c575060648110155b6120475760405162461bcd60e51b8152600401808060200182810382526025815260200180613b516025913960400191505060405180910390fd5b601455565b600d5481565b600f5481565b60105481565b6001600160a01b03918216600090815260026020908152604080832093909416825291909152205490565b60115481565b600a546001600160a01b031633146120dc576040805162461bcd60e51b815260206004820152601b602482015260008051602061391a833981519152604482015290519081900360640190fd5b82811480156120ec575060c88311155b6121275760405162461bcd60e51b81526004018080602001828103825260238152602001806139986023913960400191505060405180910390fd5b60005b838110156121905782828281811061213e57fe5b9050602002013515156009600087878581811061215757fe5b602090810292909201356001600160a01b0316835250810191909152604001600020805460ff191691151591909117905560010161212a565b5050505050565b600260005414156121dd576040805162461bcd60e51b815260206004820152601f60248201526000805160206138fa833981519152604482015290519081900360640190fd5b600260005580612234576040805162461bcd60e51b815260206004820152601b60248201527f4641524d545245415355525956313a20616d6f756e74203d3d20300000000000604482015290519081900360640190fd5b600b54600160a01b900460ff161561228c576040805162461bcd60e51b8152602060048201526016602482015275119054935514915054d55496558c4e881c185d5cd95960521b604482015290519081900360640190fd5b61229581612eb5565b60075460408051632e1a7d4d60e01b81526004810184905290516001600160a01b0390921691632e1a7d4d9160248082019260009290919082900301818387803b1580156122e257600080fd5b505af11580156122f6573d6000803e3d6000fd5b505060405133925083156108fc02915083906000818181858888f19350505050158015611c1a573d6000803e3d6000fd5b60006111e4826130a5565b600c5481565b600061234383611758565b905061234f338261312d565b61235933846131d5565b6001600160a01b03821633146123b65760408051338152602081018590526001600160a01b0384168183015290517fe31c7b8d08ee7db0afa68782e1028ef92305caeea8626633ad44d413e30f6b2f9181900360600190a16123f7565b604080513381526020810185905260008183015290517fe31c7b8d08ee7db0afa68782e1028ef92305caeea8626633ad44d413e30f6b2f9181900360600190a15b6040805184815290513391600091600080516020613ad08339815191529181900360200190a3505050565b600754604080516370a0823160e01b8152306004820152905160009283926001600160a01b03909116916370a0823191602480820192602092909190829003018186803b15801561247257600080fd5b505afa158015612486573d6000803e3d6000fd5b505050506040513d602081101561249c57600080fd5b50516015549091506124ae82826125d2565b9250505090565b6000826124c4575060006111e4565b828202828482816124d157fe5b04146114085760405162461bcd60e51b8152600401808060200182810382526021815260200180613a466021913960400191505060405180910390fd5b6000808211612564576040805162461bcd60e51b815260206004820152601a60248201527f536166654d6174683a206469766973696f6e206279207a65726f000000000000604482015290519081900360640190fd5b81838161256d57fe5b049392505050565b6000828211156125cc576040805162461bcd60e51b815260206004820152601e60248201527f536166654d6174683a207375627472616374696f6e206f766572666c6f770000604482015290519081900360640190fd5b50900390565b600082820183811015611408576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b6003546000908161263b612422565b9050600061265a612710610de4600d54896124b590919063ffffffff16565b90506000612679612710610de4600c548a6124b590919063ffffffff16565b9050600061268783836125d2565b90508061269c576000955050505050506111e4565b60006126a98286886133ee565b905060006126bb83610de484886124b5565b905060006126c98383612575565b90506126d58a8361312d565b600a546126eb906001600160a01b03168261312d565b60006126f683610da7565b9050600061270383610da7565b6040805184815290519192506001600160a01b038e1691600091600080516020613ad0833981519152919081900360200190a3600a546040805183815290516001600160a01b0390921691600091600080516020613ad0833981519152919081900360200190a361277482826125d2565b9d9c50505050505050505050505050565b60125460009042811061279c576000915050610def565b60006127a84283612575565b60035490915060006127b8612422565b905060006127ce6301e13380610de484876124b5565b905060006127ed612710610de4600f54856124b590919063ffffffff16565b9050600061280c612710610de4600f54866124b590919063ffffffff16565b9050600061281a83836125d2565b90508061283257600098505050505050505050610def565b600061283f8287896133ee565b9050600061285183610de484886124b5565b9050600061285f8383612575565b905061286b8d8361312d565b600a54612881906001600160a01b03168261312d565b600061288c83610da7565b9050600061289983610da7565b90508e6001600160a01b031660006001600160a01b0316600080516020613ad0833981519152846040518082815260200191505060405180910390a3600a546040805183815290516001600160a01b0390921691600091600080516020613ad0833981519152919081900360200190a361291382826125d2565b9f9e505050505050505050505050505050565b600754604080516370a0823160e01b81523060048201529051600092839283926001600160a01b03909216916370a0823191602480820192602092909190829003018186803b15801561297857600080fd5b505afa15801561298c573d6000803e3d6000fd5b505050506040513d60208110156129a257600080fd5b505160155490915060006129b683836125d2565b905060006129d5612710610de4601454856124b590919063ffffffff16565b90508084106129f75760006129ea8583612575565b9550955050505050612a10565b80841015612a0b5760016129ea8286612575565b505050505b9091565b8115612bcf57600754604080516370a0823160e01b815230600482015290516000926001600160a01b0316916370a08231916024808301926020929190829003018186803b158015612a6557600080fd5b505afa158015612a79573d6000803e3d6000fd5b505050506040513d6020811015612a8f57600080fd5b5051600b54600754919250612ab2916001600160a01b0390811691163085613045565b600754604080516370a0823160e01b815230600482015290516000926001600160a01b0316916370a08231916024808301926020929190829003018186803b158015612afd57600080fd5b505afa158015612b11573d6000803e3d6000fd5b505050506040513d6020811015612b2757600080fd5b505190506000612b378284612575565b905083811015612b785760405162461bcd60e51b815260040180806020018281038252603681526020018061393a6036913960400191505060405180910390fd5b601554612b859085612575565b6015556040805185815260006020820152428183015290517f18a2e1f028d901921e131f7cfb6ec21bbee608f341e3ba9f27b971ccc98738ba9181900360600190a1505050612c9a565b600b546001600160a01b0316612c2c576040805162461bcd60e51b815260206004820152601960248201527f4641524d545245415355525956313a20214661726d426f737300000000000000604482015290519081900360640190fd5b600b54600754612c49916001600160a01b03918216911683612fee565b601554612c5690826125d2565b601555604080516000815260208101839052428183015290517f18a2e1f028d901921e131f7cfb6ec21bbee608f341e3ba9f27b971ccc98738ba9181900360600190a15b5050565b6001600160a01b038316612cf9576040805162461bcd60e51b815260206004820152601860248201527f4641524d544f4b454e56313a2066726f6d203d3d203078300000000000000000604482015290519081900360640190fd5b6001600160a01b038216612d4e576040805162461bcd60e51b815260206004820152601760248201527604641524d544f4b454e56313a20746f203d3d203078303604c1b604482015290519081900360640190fd5b6001600160a01b03808416600081815260026020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b612db86138d8565b506001600160a01b03821660009081526008602090815260408083208151606081018352815480825260018301549482018590526002909201549281018390529392612e0792879291906130c0565b90506000612e1485611b05565b905081612e218286612575565b10156121905760405162461bcd60e51b81526004018080602001828103825260368152602001806139bb6036913960400191505060405180910390fd5b6000612e6982611758565b9050612e76848483613411565b826001600160a01b0316846001600160a01b0316600080516020613ad0833981519152846040518082815260200191505060405180910390a350505050565b612ebf3382612db0565b600754604080516370a0823160e01b8152306004820152905183926001600160a01b0316916370a08231916024808301926020929190829003018186803b158015612f0957600080fd5b505afa158015612f1d573d6000803e3d6000fd5b505050506040513d6020811015612f3357600080fd5b50511015612f725760405162461bcd60e51b8152600401808060200182810382526061815260200180613af06061913960800191505060405180910390fd5b6000612f7d82611758565b9050612f893382613574565b6040805183815290516000913391600080516020613ad08339815191529181900360200190a3604080513381526020810184905281517f884edad9ce6fa2440d8a54cc123490eb96d2768479d49ff9c7366125a9424364929181900390910190a15050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052613040908490613662565b505050565b604080516001600160a01b0380861660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b17905261309f908590613662565b50505050565b6001600160a01b031660009081526001602052604090205490565b600042821115806130e957506001600160a01b03851660009081526009602052604090205460ff165b156130f657506000613125565b60006131028342612575565b905060006131108486612575565b905061312081610de488856124b5565b925050505b949350505050565b6001600160a01b038216613182576040805162461bcd60e51b815260206004820152601760248201527604641524d544f4b454e56313a20746f203d3d203078303604c1b604482015290519081900360640190fd5b60035461318f90826125d2565b6003556001600160a01b0382166000908152600160205260409020546131b590826125d2565b6001600160a01b0390921660009081526001602052604090209190915550565b6131dd6138d8565b506001600160a01b0382166000908152600860209081526040918290208251606081018452815481526001820154928101839052600290910154928101929092526132905761322a6138d8565b6040518060600160405280848152602001428152602001613256601354426125d290919063ffffffff16565b90526001600160a01b0385166000908152600860209081526040918290208351815590830151600182015591015160029091015550613040565b60006132aa848360000151846020015185604001516130c0565b90508061331f576132b96138d8565b60405180606001604052808581526020014281526020016132e5601354426125d290919063ffffffff16565b90526001600160a01b038616600090815260086020908152604091829020835181559083015160018201559101516002909101555061309f565b600061334261333b42856040015161257590919063ffffffff16565b83906124b5565b9050600061335b601354866124b590919063ffffffff16565b9050600061336986856125d2565b9050600061337b82610de486866125d2565b90506133856138d8565b60405180606001604052808481526020014281526020016133af84426125d290919063ffffffff16565b90526001600160a01b038a1660009081526008602090815260409182902083518155908301516001820155910151600290910155505050505050505050565b60006131258261340b6134018688612575565b610de486886124b5565b90612575565b6001600160a01b03831661346c576040805162461bcd60e51b815260206004820152601960248201527f4641524d544f4b454e56313a2066726f6d203d3d203078303000000000000000604482015290519081900360640190fd5b6001600160a01b0382166134c1576040805162461bcd60e51b815260206004820152601760248201527604641524d544f4b454e56313a20746f203d3d203078303604c1b604482015290519081900360640190fd5b6001600160a01b038316600090815260016020526040902054808211156135195760405162461bcd60e51b815260040180806020018281038252602c815260200180613a1a602c913960400191505060405180910390fd5b6135238183612575565b6001600160a01b03808616600090815260016020526040808220939093559085168152205461355290836125d2565b6001600160a01b03909316600090815260016020526040902092909255505050565b6001600160a01b0382166135cf576040805162461bcd60e51b815260206004820152601e60248201527f4641524d544f4b454e56313a206275726e2066726f6d203d3d20307830300000604482015290519081900360640190fd5b6001600160a01b038216600090815260016020526040902054808211156136275760405162461bcd60e51b81526004018080602001828103825260288152602001806139706028913960400191505060405180910390fd5b6003546136349083612575565b6003556136418183612575565b6001600160a01b039093166000908152600160205260409020929092555050565b60606136b7826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166137139092919063ffffffff16565b805190915015613040578080602001905160208110156136d657600080fd5b50516130405760405162461bcd60e51b815260040180806020018281038252602a815260200180613b76602a913960400191505060405180910390fd5b60606131258484600085856137278561382e565b613778576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b602083106137b75780518252601f199092019160209182019101613798565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114613819576040519150601f19603f3d011682016040523d82523d6000602084013e61381e565b606091505b5091509150613120828286613834565b3b151590565b60608315613843575081611408565b8251156138535782518084602001fd5b8160405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561389d578181015183820152602001613885565b50505050905090810190601f1680156138ca5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b6040518060600160405280600081526020016000815260200160008152509056fe5265656e7472616e637947756172643a207265656e7472616e742063616c6c004641524d545245415355525956313a2021676f7665726e616e636500000000004641524d545245415355525956313a2062616420726562616c616e63652c20686f742077616c6c6574206e656564732066756e6473214641524d544f4b454e56313a206275726e20616d6f756e7420657863656564732062616c616e63654641524d545245415355525956313a20636865636b206172726179206c656e677468734641524d545245415355525956313a207265717565737465642066756e6473206172652074656d706f726172696c79206c6f636b65644641524d54524541535552595631205f616d6f756e74203e20726562616c616e636555704c696d69744641524d544f4b454e56313a207472616e7366657220616d6f756e7420657863656564732062616c616e6365536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f774641524d545245415355525956313a203c726562616c616e636555705761697454696d654641524d544f4b454e56313a206e6f7420656e6f75676820616c6c6f77616e63654641524d545245415355525956313a20746f6f206869676820706572666f726d616e6365ddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef4641524d545245415355525956313a20486f742077616c6c65742062616c616e6365206465706c657465642e20506c656173652074727920736d616c6c6572207769746864726177206f72207761697420666f7220726562616c616e63696e672e4641524d545245415355525956313a20686f742077616c6c65742076616c756573206261645361666545524332303a204552433230206f7065726174696f6e20646964206e6f742073756363656564a2646970667358221220959cb3d1620bc98d6cad1933cfa4c3671a8961cca6378720f89cb9f22cc531aa64736f6c634300060c003300000000000000000000000000000000000000000000000000000000000000600000000000000000000000000000000000000000000000000000000000000012000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc200000000000000000000000000000000000000000000000000000000000000034554480000000000000000000000000000000000000000000000000000000000

Deployed Bytecode

0x60806040526004361061031e5760003560e01c80636ac5db19116101ab578063ab033ea9116100f7578063dd2a1eab11610095578063ed3efad51161006f578063ed3efad514610ae0578063f14210a614610baf578063f5eb42dc14610bd9578063fb6cc88214610c0c57610341565b8063dd2a1eab14610a7b578063dd62ed3e14610a90578063e54542b214610acb57610341565b8063b76e6be2116100d1578063b76e6be214610a27578063c70920bc1461056e578063c7c863f014610a51578063d5836ce814610a6657610341565b8063ab033ea91461098f578063b0f122c1146109c2578063b4f82fdc146109f457610341565b80638456cb5911610164578063929ec5371161013e578063929ec537146108db57806395d89b411461090e5780639b0fbe4914610923578063a9059cbb1461095657610341565b80638456cb591461089c578063852b1901146108b15780638e26c09d146108c657610341565b80636ac5db19146107b85780636e553f65146107cd5780636f307dc31461080657806370a082311461081b5780637a4e4ecf1461084e5780637f7d9a061461088757610341565b80632e1a7d4d1161026a5780634e118982116102235780635dfbaeaf116101fd5780635dfbaeaf146107645780636068d6cb1461077957806363d8882a1461078e5780636a62dd54146107a357610341565b80634e118982146107105780635aa6e6751461073a5780635c975abb1461074f57610341565b80632e1a7d4d1461062b578063313ce567146106555780633a98ef39146106805780633f4ba83a1461069557806347662b38146106aa5780634aa3c302146106d457610341565b80630ba36dcd116102d7578063222a528f116102b1578063222a528f1461058357806323b872dd146105ad5780632676440e146105f05780632d2da8061461060557610341565b80630ba36dcd146104ec57806310cfe9061461053d57806318160ddd1461056e57610341565b8063013a6edd14610346578063021919801461038257806306fdde03146103975780630733690814610421578063095ea7b3146104755780630b598a68146104c257610341565b36610341576007546001600160a01b0316331461033f5761033f6000610c21565b005b600080fd5b34801561035257600080fd5b506103706004803603602081101561036957600080fd5b5035610da7565b60408051918252519081900360200190f35b34801561038e57600080fd5b5061033f610df4565b3480156103a357600080fd5b506103ac610e56565b6040805160208082528351818301528351919283929083019185019080838360005b838110156103e65781810151838201526020016103ce565b50505050905090810190601f1680156104135780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561042d57600080fd5b5061045a6004803603604081101561044457600080fd5b50803590602001356001600160a01b0316610ee4565b60408051921515835260208301919091528051918290030190f35b34801561048157600080fd5b506104ae6004803603604081101561049857600080fd5b506001600160a01b0381351690602001356111d3565b604080519115158252519081900360200190f35b3480156104ce57600080fd5b5061033f600480360360208110156104e557600080fd5b50356111ea565b3480156104f857600080fd5b5061051f6004803603602081101561050f57600080fd5b50356001600160a01b031661128b565b60408051938452602084019290925282820152519081900360600190f35b34801561054957600080fd5b506105526112ac565b604080516001600160a01b039092168252519081900360200190f35b34801561057a57600080fd5b506103706112bb565b34801561058f57600080fd5b5061033f600480360360208110156105a657600080fd5b50356112ca565b3480156105b957600080fd5b506104ae600480360360608110156105d057600080fd5b506001600160a01b03813581169160208101359091169060400135611374565b3480156105fc57600080fd5b5061037061140f565b61033f6004803603602081101561061b57600080fd5b50356001600160a01b0316610c21565b34801561063757600080fd5b5061033f6004803603602081101561064e57600080fd5b5035611415565b34801561066157600080fd5b5061066a611532565b6040805160ff9092168252519081900360200190f35b34801561068c57600080fd5b50610370611542565b3480156106a157600080fd5b5061033f611548565b3480156106b657600080fd5b5061033f600480360360208110156106cd57600080fd5b50356115a4565b3480156106e057600080fd5b5061033f600480360360808110156106f757600080fd5b508035906020810135906040810135906060013561164e565b34801561071c57600080fd5b506103706004803603602081101561073357600080fd5b5035611758565b34801561074657600080fd5b50610552611785565b34801561075b57600080fd5b506104ae611794565b34801561077057600080fd5b506103706117a4565b34801561078557600080fd5b506104ae6117aa565b34801561079a57600080fd5b5061033f6117ba565b3480156107af57600080fd5b50610370611816565b3480156107c457600080fd5b5061037061181c565b3480156107d957600080fd5b5061033f600480360360408110156107f057600080fd5b50803590602001356001600160a01b0316611822565b34801561081257600080fd5b506103ac611aaa565b34801561082757600080fd5b506103706004803603602081101561083e57600080fd5b50356001600160a01b0316611b05565b34801561085a57600080fd5b5061033f6004803603604081101561087157600080fd5b506001600160a01b038135169060200135611b18565b34801561089357600080fd5b50610370611c23565b3480156108a857600080fd5b5061033f611c29565b3480156108bd57600080fd5b50610552611c8b565b3480156108d257600080fd5b50610370611c9a565b3480156108e757600080fd5b50610370600480360360208110156108fe57600080fd5b50356001600160a01b0316611ca0565b34801561091a57600080fd5b506103ac611cf8565b34801561092f57600080fd5b5061033f6004803603602081101561094657600080fd5b50356001600160a01b0316611d53565b34801561096257600080fd5b506104ae6004803603604081101561097957600080fd5b506001600160a01b038135169060200135611dc2565b34801561099b57600080fd5b5061033f600480360360208110156109b257600080fd5b50356001600160a01b0316611dd9565b3480156109ce57600080fd5b5061045a600480360360408110156109e557600080fd5b50803590602001351515611e48565b348015610a0057600080fd5b506104ae60048036036020811015610a1757600080fd5b50356001600160a01b0316611f97565b348015610a3357600080fd5b5061033f60048036036020811015610a4a57600080fd5b5035611fac565b348015610a5d57600080fd5b5061037061204c565b348015610a7257600080fd5b50610370612052565b348015610a8757600080fd5b50610370612058565b348015610a9c57600080fd5b5061037060048036036040811015610ab357600080fd5b506001600160a01b038135811691602001351661205e565b348015610ad757600080fd5b50610370612089565b348015610aec57600080fd5b5061033f60048036036040811015610b0357600080fd5b810190602081018135640100000000811115610b1e57600080fd5b820183602082011115610b3057600080fd5b80359060200191846020830284011164010000000083111715610b5257600080fd5b919390929091602081019035640100000000811115610b7057600080fd5b820183602082011115610b8257600080fd5b80359060200191846020830284011164010000000083111715610ba457600080fd5b50909250905061208f565b348015610bbb57600080fd5b5061033f60048036036020811015610bd257600080fd5b5035612197565b348015610be557600080fd5b5061037060048036036020811015610bfc57600080fd5b50356001600160a01b0316612327565b348015610c1857600080fd5b50610370612332565b60026000541415610c67576040805162461bcd60e51b815260206004820152601f60248201526000805160206138fa833981519152604482015290519081900360640190fd5b600260005534610cbe576040805162461bcd60e51b815260206004820152601e60248201527f4641524d545245415355525956313a206d73672e76616c7565203d3d20300000604482015290519081900360640190fd5b600b54600160a01b900460ff16158015610ce25750600b54600160a81b900460ff16155b610d2c576040805162461bcd60e51b8152602060048201526016602482015275119054935514915054d55496558c4e881c185d5cd95960521b604482015290519081900360640190fd5b610d363482612338565b600760009054906101000a90046001600160a01b03166001600160a01b031663d0e30db0346040518263ffffffff1660e01b81526004016000604051808303818588803b158015610d8657600080fd5b505af1158015610d9a573d6000803e3d6000fd5b5050600160005550505050565b60035460009080610dbb5782915050610def565b6000610dc5612422565b905080610dd6578392505050610def565b610dea82610de486846124b5565b9061250e565b925050505b919050565b600a546001600160a01b03163314610e41576040805162461bcd60e51b815260206004820152601b602482015260008051602061391a833981519152604482015290519081900360640190fd5b600b805460ff60a81b1916600160a81b179055565b6004805460408051602060026001851615610100026000190190941693909304601f81018490048402820184019092528181529291830182828015610edc5780601f10610eb157610100808354040283529160200191610edc565b820191906000526020600020905b815481529060010190602001808311610ebf57829003601f168201915b505050505081565b60008060026000541415610f2d576040805162461bcd60e51b815260206004820152601f60248201526000805160206138fa833981519152604482015290519081900360640190fd5b6002600055600b546001600160a01b03163314610f91576040805162461bcd60e51b815260206004820152601960248201527f4641524d545245415355525956313a20216661726d426f737300000000000000604482015290519081900360640190fd5b600b54600160a01b900460ff1615610fe9576040805162461bcd60e51b8152602060048201526016602482015275119054935514915054d55496558c4e881c185d5cd95960521b604482015290519081900360640190fd5b831561113b57601154601254611000904290612575565b101561103d5760405162461bcd60e51b8152600401808060200182810382526024815260200180613a676024913960400191505060405180910390fd5b8361105b612710610de46010546015546124b590919063ffffffff16565b10156110985760405162461bcd60e51b81526004018080602001828103825260298152602001806139f16029913960400191505060405180910390fd5b6015546110a590856125d2565b60155560006110b4858561262c565b905060006110c185612785565b9050426012819055507f133173a0deb39808464c88239fe745075919e0093d1a15670d29eaade2f5dbca600187426110f7612422565b6003546040805195151586526020860194909452848401929092526060840152608083015260a0820185905260c08201849052519081900360e00190a150506111a6565b7f133173a0deb39808464c88239fe745075919e0093d1a15670d29eaade2f5dbca60018542611168612422565b60035460408051951515865260208601949094528484019290925260608401526080830152600060a0830181905260c0830152519081900360e00190a15b6000806111b1612926565b915091506111bf8282612a14565b90925090505b600160005590939092509050565b60006111e0338484612c9e565b5060015b92915050565b600a546001600160a01b03163314611237576040805162461bcd60e51b815260206004820152601b602482015260008051602061391a833981519152604482015290519081900360640190fd5b6127108110611286576040805162461bcd60e51b815260206004820152601660248201527508c82a49aa8a48a82a6aaa4b2ac6274407c7a40dac2f60531b604482015290519081900360640190fd5b601055565b60086020526000908152604090208054600182015460029092015490919083565b6007546001600160a01b031681565b60006112c5612422565b905090565b600a546001600160a01b03163314611317576040805162461bcd60e51b815260206004820152601b602482015260008051602061391a833981519152604482015290519081900360640190fd5b62093a8081111561136f576040805162461bcd60e51b815260206004820152601860248201527f4641524d545245415355525956313a203e2031207765656b0000000000000000604482015290519081900360640190fd5b601155565b60006113808483612db0565b6001600160a01b0384166000908152600260209081526040808320338452909152902054828110156113e35760405162461bcd60e51b8152600401808060200182810382526021815260200180613a8b6021913960400191505060405180910390fd5b6113ee858585612e5e565b61140285336113fd8487612575565b612c9e565b60019150505b9392505050565b60125481565b6002600054141561145b576040805162461bcd60e51b815260206004820152601f60248201526000805160206138fa833981519152604482015290519081900360640190fd5b6002600055806114b2576040805162461bcd60e51b815260206004820152601b60248201527f4641524d545245415355525956313a20616d6f756e74203d3d20300000000000604482015290519081900360640190fd5b600b54600160a01b900460ff161561150a576040805162461bcd60e51b8152602060048201526016602482015275119054935514915054d55496558c4e881c185d5cd95960521b604482015290519081900360640190fd5b61151381612eb5565b60075461152a906001600160a01b03163383612fee565b506001600055565b600754600160a01b900460ff1681565b60035481565b600a546001600160a01b03163314611595576040805162461bcd60e51b815260206004820152601b602482015260008051602061391a833981519152604482015290519081900360640190fd5b600b805460ff60a01b19169055565b600a546001600160a01b031633146115f1576040805162461bcd60e51b815260206004820152601b602482015260008051602061391a833981519152604482015290519081900360640190fd5b625c4900811115611649576040805162461bcd60e51b815260206004820152601d60248201527f4641524d545245415355525956313a20746f6f206c6f6e672077616974000000604482015290519081900360640190fd5b601355565b600a546001600160a01b0316331461169b576040805162461bcd60e51b815260206004820152601b602482015260008051602061391a833981519152604482015290519081900360640190fd5b6127106116a885856125d2565b106116e45760405162461bcd60e51b8152600401808060200182810382526024815260200180613aac6024913960400191505060405180910390fd5b6101f46116f183836125d2565b1115611744576040805162461bcd60e51b815260206004820152601d60248201527f4641524d545245415355525956313a20746f6f20686967682062617365000000604482015290519081900360640190fd5b600c93909355600d91909155600e55600f55565b600080611763612422565b9050806117735782915050610def565b60035480610dd6578392505050610def565b600a546001600160a01b031681565b600b54600160a01b900460ff1681565b60145481565b600b54600160a81b900460ff1681565b600a546001600160a01b03163314611807576040805162461bcd60e51b815260206004820152601b602482015260008051602061391a833981519152604482015290519081900360640190fd5b600b805460ff60a81b19169055565b60155481565b61271081565b60026000541415611868576040805162461bcd60e51b815260206004820152601f60248201526000805160206138fa833981519152604482015290519081900360640190fd5b6002600055816118bf576040805162461bcd60e51b815260206004820152601b60248201527f4641524d545245415355525956313a20616d6f756e74203d3d20300000000000604482015290519081900360640190fd5b600b54600160a01b900460ff161580156118e35750600b54600160a81b900460ff16155b61192d576040805162461bcd60e51b8152602060048201526016602482015275119054935514915054d55496558c4e881c185d5cd95960521b604482015290519081900360640190fd5b6119378282612338565b600754604080516370a0823160e01b815230600482015290516001600160a01b039092169160009183916370a0823191602480820192602092909190829003018186803b15801561198757600080fd5b505afa15801561199b573d6000803e3d6000fd5b505050506040513d60208110156119b157600080fd5b505190506119ca6001600160a01b038316333087613045565b6000826001600160a01b03166370a08231306040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b158015611a1957600080fd5b505afa158015611a2d573d6000803e3d6000fd5b505050506040513d6020811015611a4357600080fd5b505190506000611a538284612575565b905085811015610d9a576040805162461bcd60e51b815260206004820152601c60248201527f4641524d545245415355525956313a20626164207472616e7366657200000000604482015290519081900360640190fd5b6006805460408051602060026001851615610100026000190190941693909304601f81018490048402820184019092528181529291830182828015610edc5780601f10610eb157610100808354040283529160200191610edc565b60006111e4611b13836130a5565b610da7565b60026000541415611b5e576040805162461bcd60e51b815260206004820152601f60248201526000805160206138fa833981519152604482015290519081900360640190fd5b6002600055600a546001600160a01b03163314611bb0576040805162461bcd60e51b815260206004820152601b602482015260008051602061391a833981519152604482015290519081900360640190fd5b6001600160a01b03821615611bde57600a54611bd9906001600160a01b03848116911683612fee565b611c1a565b600a546040516001600160a01b039091169082156108fc029083906000818181858888f19350505050158015611c18573d6000803e3d6000fd5b505b50506001600055565b600e5481565b600a546001600160a01b03163314611c76576040805162461bcd60e51b815260206004820152601b602482015260008051602061391a833981519152604482015290519081900360640190fd5b600b805460ff60a01b1916600160a01b179055565b600b546001600160a01b031681565b60135481565b6000611caa6138d8565b506001600160a01b03821660009081526008602090815260409182902082516060810184528154808252600183015493820184905260029092015493810184905292611408928692916130c0565b6005805460408051602060026001851615610100026000190190941693909304601f81018490048402820184019092528181529291830182828015610edc5780601f10610eb157610100808354040283529160200191610edc565b600a546001600160a01b03163314611da0576040805162461bcd60e51b815260206004820152601b602482015260008051602061391a833981519152604482015290519081900360640190fd5b600b80546001600160a01b0319166001600160a01b0392909216919091179055565b6000611dce3383612db0565b6111e0338484612e5e565b600a546001600160a01b03163314611e26576040805162461bcd60e51b815260206004820152601b602482015260008051602061391a833981519152604482015290519081900360640190fd5b600a80546001600160a01b0319166001600160a01b0392909216919091179055565b60008060026000541415611e91576040805162461bcd60e51b815260206004820152601f60248201526000805160206138fa833981519152604482015290519081900360640190fd5b6002600055600a546001600160a01b03163314611ee3576040805162461bcd60e51b815260206004820152601b602482015260008051602061391a833981519152604482015290519081900360640190fd5b601554611ef09085612575565b6015558215611f1c57600080611f04612926565b91509150611f128282612a14565b90925090506111c5565b7f133173a0deb39808464c88239fe745075919e0093d1a15670d29eaade2f5dbca60008542611f49612422565b60035460408051951515865260208601949094528484019290925260608401526080830152600060a0830181905260c0830152519081900360e00190a1505060016000908155928392509050565b60096020526000908152604090205460ff1681565b600a546001600160a01b03163314611ff9576040805162461bcd60e51b815260206004820152601b602482015260008051602061391a833981519152604482015290519081900360640190fd5b612710811115801561200c575060648110155b6120475760405162461bcd60e51b8152600401808060200182810382526025815260200180613b516025913960400191505060405180910390fd5b601455565b600d5481565b600f5481565b60105481565b6001600160a01b03918216600090815260026020908152604080832093909416825291909152205490565b60115481565b600a546001600160a01b031633146120dc576040805162461bcd60e51b815260206004820152601b602482015260008051602061391a833981519152604482015290519081900360640190fd5b82811480156120ec575060c88311155b6121275760405162461bcd60e51b81526004018080602001828103825260238152602001806139986023913960400191505060405180910390fd5b60005b838110156121905782828281811061213e57fe5b9050602002013515156009600087878581811061215757fe5b602090810292909201356001600160a01b0316835250810191909152604001600020805460ff191691151591909117905560010161212a565b5050505050565b600260005414156121dd576040805162461bcd60e51b815260206004820152601f60248201526000805160206138fa833981519152604482015290519081900360640190fd5b600260005580612234576040805162461bcd60e51b815260206004820152601b60248201527f4641524d545245415355525956313a20616d6f756e74203d3d20300000000000604482015290519081900360640190fd5b600b54600160a01b900460ff161561228c576040805162461bcd60e51b8152602060048201526016602482015275119054935514915054d55496558c4e881c185d5cd95960521b604482015290519081900360640190fd5b61229581612eb5565b60075460408051632e1a7d4d60e01b81526004810184905290516001600160a01b0390921691632e1a7d4d9160248082019260009290919082900301818387803b1580156122e257600080fd5b505af11580156122f6573d6000803e3d6000fd5b505060405133925083156108fc02915083906000818181858888f19350505050158015611c1a573d6000803e3d6000fd5b60006111e4826130a5565b600c5481565b600061234383611758565b905061234f338261312d565b61235933846131d5565b6001600160a01b03821633146123b65760408051338152602081018590526001600160a01b0384168183015290517fe31c7b8d08ee7db0afa68782e1028ef92305caeea8626633ad44d413e30f6b2f9181900360600190a16123f7565b604080513381526020810185905260008183015290517fe31c7b8d08ee7db0afa68782e1028ef92305caeea8626633ad44d413e30f6b2f9181900360600190a15b6040805184815290513391600091600080516020613ad08339815191529181900360200190a3505050565b600754604080516370a0823160e01b8152306004820152905160009283926001600160a01b03909116916370a0823191602480820192602092909190829003018186803b15801561247257600080fd5b505afa158015612486573d6000803e3d6000fd5b505050506040513d602081101561249c57600080fd5b50516015549091506124ae82826125d2565b9250505090565b6000826124c4575060006111e4565b828202828482816124d157fe5b04146114085760405162461bcd60e51b8152600401808060200182810382526021815260200180613a466021913960400191505060405180910390fd5b6000808211612564576040805162461bcd60e51b815260206004820152601a60248201527f536166654d6174683a206469766973696f6e206279207a65726f000000000000604482015290519081900360640190fd5b81838161256d57fe5b049392505050565b6000828211156125cc576040805162461bcd60e51b815260206004820152601e60248201527f536166654d6174683a207375627472616374696f6e206f766572666c6f770000604482015290519081900360640190fd5b50900390565b600082820183811015611408576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b6003546000908161263b612422565b9050600061265a612710610de4600d54896124b590919063ffffffff16565b90506000612679612710610de4600c548a6124b590919063ffffffff16565b9050600061268783836125d2565b90508061269c576000955050505050506111e4565b60006126a98286886133ee565b905060006126bb83610de484886124b5565b905060006126c98383612575565b90506126d58a8361312d565b600a546126eb906001600160a01b03168261312d565b60006126f683610da7565b9050600061270383610da7565b6040805184815290519192506001600160a01b038e1691600091600080516020613ad0833981519152919081900360200190a3600a546040805183815290516001600160a01b0390921691600091600080516020613ad0833981519152919081900360200190a361277482826125d2565b9d9c50505050505050505050505050565b60125460009042811061279c576000915050610def565b60006127a84283612575565b60035490915060006127b8612422565b905060006127ce6301e13380610de484876124b5565b905060006127ed612710610de4600f54856124b590919063ffffffff16565b9050600061280c612710610de4600f54866124b590919063ffffffff16565b9050600061281a83836125d2565b90508061283257600098505050505050505050610def565b600061283f8287896133ee565b9050600061285183610de484886124b5565b9050600061285f8383612575565b905061286b8d8361312d565b600a54612881906001600160a01b03168261312d565b600061288c83610da7565b9050600061289983610da7565b90508e6001600160a01b031660006001600160a01b0316600080516020613ad0833981519152846040518082815260200191505060405180910390a3600a546040805183815290516001600160a01b0390921691600091600080516020613ad0833981519152919081900360200190a361291382826125d2565b9f9e505050505050505050505050505050565b600754604080516370a0823160e01b81523060048201529051600092839283926001600160a01b03909216916370a0823191602480820192602092909190829003018186803b15801561297857600080fd5b505afa15801561298c573d6000803e3d6000fd5b505050506040513d60208110156129a257600080fd5b505160155490915060006129b683836125d2565b905060006129d5612710610de4601454856124b590919063ffffffff16565b90508084106129f75760006129ea8583612575565b9550955050505050612a10565b80841015612a0b5760016129ea8286612575565b505050505b9091565b8115612bcf57600754604080516370a0823160e01b815230600482015290516000926001600160a01b0316916370a08231916024808301926020929190829003018186803b158015612a6557600080fd5b505afa158015612a79573d6000803e3d6000fd5b505050506040513d6020811015612a8f57600080fd5b5051600b54600754919250612ab2916001600160a01b0390811691163085613045565b600754604080516370a0823160e01b815230600482015290516000926001600160a01b0316916370a08231916024808301926020929190829003018186803b158015612afd57600080fd5b505afa158015612b11573d6000803e3d6000fd5b505050506040513d6020811015612b2757600080fd5b505190506000612b378284612575565b905083811015612b785760405162461bcd60e51b815260040180806020018281038252603681526020018061393a6036913960400191505060405180910390fd5b601554612b859085612575565b6015556040805185815260006020820152428183015290517f18a2e1f028d901921e131f7cfb6ec21bbee608f341e3ba9f27b971ccc98738ba9181900360600190a1505050612c9a565b600b546001600160a01b0316612c2c576040805162461bcd60e51b815260206004820152601960248201527f4641524d545245415355525956313a20214661726d426f737300000000000000604482015290519081900360640190fd5b600b54600754612c49916001600160a01b03918216911683612fee565b601554612c5690826125d2565b601555604080516000815260208101839052428183015290517f18a2e1f028d901921e131f7cfb6ec21bbee608f341e3ba9f27b971ccc98738ba9181900360600190a15b5050565b6001600160a01b038316612cf9576040805162461bcd60e51b815260206004820152601860248201527f4641524d544f4b454e56313a2066726f6d203d3d203078300000000000000000604482015290519081900360640190fd5b6001600160a01b038216612d4e576040805162461bcd60e51b815260206004820152601760248201527604641524d544f4b454e56313a20746f203d3d203078303604c1b604482015290519081900360640190fd5b6001600160a01b03808416600081815260026020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b612db86138d8565b506001600160a01b03821660009081526008602090815260408083208151606081018352815480825260018301549482018590526002909201549281018390529392612e0792879291906130c0565b90506000612e1485611b05565b905081612e218286612575565b10156121905760405162461bcd60e51b81526004018080602001828103825260368152602001806139bb6036913960400191505060405180910390fd5b6000612e6982611758565b9050612e76848483613411565b826001600160a01b0316846001600160a01b0316600080516020613ad0833981519152846040518082815260200191505060405180910390a350505050565b612ebf3382612db0565b600754604080516370a0823160e01b8152306004820152905183926001600160a01b0316916370a08231916024808301926020929190829003018186803b158015612f0957600080fd5b505afa158015612f1d573d6000803e3d6000fd5b505050506040513d6020811015612f3357600080fd5b50511015612f725760405162461bcd60e51b8152600401808060200182810382526061815260200180613af06061913960800191505060405180910390fd5b6000612f7d82611758565b9050612f893382613574565b6040805183815290516000913391600080516020613ad08339815191529181900360200190a3604080513381526020810184905281517f884edad9ce6fa2440d8a54cc123490eb96d2768479d49ff9c7366125a9424364929181900390910190a15050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052613040908490613662565b505050565b604080516001600160a01b0380861660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b17905261309f908590613662565b50505050565b6001600160a01b031660009081526001602052604090205490565b600042821115806130e957506001600160a01b03851660009081526009602052604090205460ff165b156130f657506000613125565b60006131028342612575565b905060006131108486612575565b905061312081610de488856124b5565b925050505b949350505050565b6001600160a01b038216613182576040805162461bcd60e51b815260206004820152601760248201527604641524d544f4b454e56313a20746f203d3d203078303604c1b604482015290519081900360640190fd5b60035461318f90826125d2565b6003556001600160a01b0382166000908152600160205260409020546131b590826125d2565b6001600160a01b0390921660009081526001602052604090209190915550565b6131dd6138d8565b506001600160a01b0382166000908152600860209081526040918290208251606081018452815481526001820154928101839052600290910154928101929092526132905761322a6138d8565b6040518060600160405280848152602001428152602001613256601354426125d290919063ffffffff16565b90526001600160a01b0385166000908152600860209081526040918290208351815590830151600182015591015160029091015550613040565b60006132aa848360000151846020015185604001516130c0565b90508061331f576132b96138d8565b60405180606001604052808581526020014281526020016132e5601354426125d290919063ffffffff16565b90526001600160a01b038616600090815260086020908152604091829020835181559083015160018201559101516002909101555061309f565b600061334261333b42856040015161257590919063ffffffff16565b83906124b5565b9050600061335b601354866124b590919063ffffffff16565b9050600061336986856125d2565b9050600061337b82610de486866125d2565b90506133856138d8565b60405180606001604052808481526020014281526020016133af84426125d290919063ffffffff16565b90526001600160a01b038a1660009081526008602090815260409182902083518155908301516001820155910151600290910155505050505050505050565b60006131258261340b6134018688612575565b610de486886124b5565b90612575565b6001600160a01b03831661346c576040805162461bcd60e51b815260206004820152601960248201527f4641524d544f4b454e56313a2066726f6d203d3d203078303000000000000000604482015290519081900360640190fd5b6001600160a01b0382166134c1576040805162461bcd60e51b815260206004820152601760248201527604641524d544f4b454e56313a20746f203d3d203078303604c1b604482015290519081900360640190fd5b6001600160a01b038316600090815260016020526040902054808211156135195760405162461bcd60e51b815260040180806020018281038252602c815260200180613a1a602c913960400191505060405180910390fd5b6135238183612575565b6001600160a01b03808616600090815260016020526040808220939093559085168152205461355290836125d2565b6001600160a01b03909316600090815260016020526040902092909255505050565b6001600160a01b0382166135cf576040805162461bcd60e51b815260206004820152601e60248201527f4641524d544f4b454e56313a206275726e2066726f6d203d3d20307830300000604482015290519081900360640190fd5b6001600160a01b038216600090815260016020526040902054808211156136275760405162461bcd60e51b81526004018080602001828103825260288152602001806139706028913960400191505060405180910390fd5b6003546136349083612575565b6003556136418183612575565b6001600160a01b039093166000908152600160205260409020929092555050565b60606136b7826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166137139092919063ffffffff16565b805190915015613040578080602001905160208110156136d657600080fd5b50516130405760405162461bcd60e51b815260040180806020018281038252602a815260200180613b76602a913960400191505060405180910390fd5b60606131258484600085856137278561382e565b613778576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b602083106137b75780518252601f199092019160209182019101613798565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114613819576040519150601f19603f3d011682016040523d82523d6000602084013e61381e565b606091505b5091509150613120828286613834565b3b151590565b60608315613843575081611408565b8251156138535782518084602001fd5b8160405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561389d578181015183820152602001613885565b50505050905090810190601f1680156138ca5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b6040518060600160405280600081526020016000815260200160008152509056fe5265656e7472616e637947756172643a207265656e7472616e742063616c6c004641524d545245415355525956313a2021676f7665726e616e636500000000004641524d545245415355525956313a2062616420726562616c616e63652c20686f742077616c6c6574206e656564732066756e6473214641524d544f4b454e56313a206275726e20616d6f756e7420657863656564732062616c616e63654641524d545245415355525956313a20636865636b206172726179206c656e677468734641524d545245415355525956313a207265717565737465642066756e6473206172652074656d706f726172696c79206c6f636b65644641524d54524541535552595631205f616d6f756e74203e20726562616c616e636555704c696d69744641524d544f4b454e56313a207472616e7366657220616d6f756e7420657863656564732062616c616e6365536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f774641524d545245415355525956313a203c726562616c616e636555705761697454696d654641524d544f4b454e56313a206e6f7420656e6f75676820616c6c6f77616e63654641524d545245415355525956313a20746f6f206869676820706572666f726d616e6365ddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef4641524d545245415355525956313a20486f742077616c6c65742062616c616e6365206465706c657465642e20506c656173652074727920736d616c6c6572207769746864726177206f72207761697420666f7220726562616c616e63696e672e4641524d545245415355525956313a20686f742077616c6c65742076616c756573206261645361666545524332303a204552433230206f7065726174696f6e20646964206e6f742073756363656564a2646970667358221220959cb3d1620bc98d6cad1933cfa4c3671a8961cca6378720f89cb9f22cc531aa64736f6c634300060c0033

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

00000000000000000000000000000000000000000000000000000000000000600000000000000000000000000000000000000000000000000000000000000012000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc200000000000000000000000000000000000000000000000000000000000000034554480000000000000000000000000000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : _nameUnderlying (string): ETH
Arg [1] : _decimalsUnderlying (uint8): 18
Arg [2] : _underlying (address): 0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2

-----Encoded View---------------
5 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000060
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000012
Arg [2] : 000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000003
Arg [4] : 4554480000000000000000000000000000000000000000000000000000000000


Deployed Bytecode Sourcemap

57972:1242:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;58438:18;;-1:-1:-1;;;;;58438:18:0;58424:10;:32;58421:85;;58472:22;58491:1;58472:10;:22::i;:::-;57972:1242;;;;;30188:504;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;30188:504:0;;:::i;:::-;;;;;;;;;;;;;;;;37630:149;;;;;;;;;;;;;:::i;26380:18::-;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;47187:2391;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;47187:2391:0;;;;;;-1:-1:-1;;;;;47187:2391:0;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;28793:164;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;28793:164:0;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;39099:227;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;39099:227:0;;:::i;33959:51::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;33959:51:0;-1:-1:-1;;;;;33959:51:0;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;26463:33;;;;;;;;;;;;;:::i;:::-;;;;-1:-1:-1;;;;;26463:33:0;;;;;;;;;;;;;;27113:110;;;;;;;;;;;;;:::i;39334:240::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;39334:240:0;;:::i;27749:453::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;27749:453:0;;;;;;;;;;;;;;;;;:::i;34994:34::-;;;;;;;;;;;;;:::i;58521:323::-;;;;;;;;;;;;;;;;-1:-1:-1;58521:323:0;-1:-1:-1;;;;;58521:323:0;;:::i;45319:324::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;45319:324:0;;:::i;26505:21::-;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;26345:26;;;;;;;;;;;;;:::i;37486:136::-;;;;;;;;;;;;;:::i;38595:228::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;38595:228:0;;:::i;37947:640::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;37947:640:0;;;;;;;;;;;;;;;;;:::i;29332:629::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;29332:629:0;;:::i;34271:33::-;;;;;;;;;;;;;:::i;34351:26::-;;;;;;;;;;;;;:::i;35452:39::-;;;;;;;;;;;;;:::i;34384:34::-;;;;;;;;;;;;;:::i;37787:152::-;;;;;;;;;;;;;:::i;35517:30::-;;;;;;;;;;;;;:::i;34554:35::-;;;;;;;;;;;;;:::i;39582:688::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;39582:688:0;;;;;;-1:-1:-1;;;;;39582:688:0;;:::i;26432:24::-;;;;;;;;;;;;;:::i;27344:144::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;27344:144:0;-1:-1:-1;;;;;27344:144:0;;:::i;57469:381::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;57469:381:0;;;;;;;;:::i;34694:35::-;;;;;;;;;;;;;:::i;37345:133::-;;;;;;;;;;;;;:::i;34311:31::-;;;;;;;;;;;;;:::i;35228:35::-;;;;;;;;;;;;;:::i;44240:296::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;44240:296:0;-1:-1:-1;;;;;44240:296:0;;:::i;26405:20::-;;;;;;;;;;;;;:::i;36739:161::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;36739:161:0;-1:-1:-1;;;;;36739:161:0;;:::i;27532:209::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;27532:209:0;;;;;;;;:::i;36213:165::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;36213:165:0;-1:-1:-1;;;;;36213:165:0;;:::i;50012:926::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;50012:926:0;;;;;;;;;:::i;34017:47::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;34017:47:0;-1:-1:-1;;;;;34017:47:0;;:::i;38831:260::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;38831:260:0;;:::i;34646:41::-;;;;;;;;;;;;;:::i;34736:33::-;;;;;;;;;;;;;:::i;34860:37::-;;;;;;;;;;;;;:::i;28603:147::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;28603:147:0;;;;;;;;;;:::i;34942:45::-;;;;;;;;;;;;;:::i;36908:429::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;36908:429:0;;-1:-1:-1;36908:429:0;-1:-1:-1;36908:429:0;:::i;58852:359::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;58852:359:0;;:::i;28992:113::-;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;28992:113:0;-1:-1:-1;;;;;28992:113:0;;:::i;34596:43::-;;;;;;;;;;;;;:::i;58521:323::-;11112:1;11718:7;;:19;;11710:63;;;;;-1:-1:-1;;;11710:63:0;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;11710:63:0;;;;;;;;;;;;;;;11112:1;11851:7;:18;58607:9:::1;58599:56;;;::::0;;-1:-1:-1;;;58599:56:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;::::1;::::0;;;;;;;;;;;;;::::1;;58675:6;::::0;-1:-1:-1;;;58675:6:0;::::1;;;58674:7;:26:::0;::::1;;;-1:-1:-1::0;58686:14:0::1;::::0;-1:-1:-1;;;58686:14:0;::::1;;;58685:15;58674:26;58666:61;;;::::0;;-1:-1:-1;;;58666:61:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;-1:-1:-1;;;58666:61:0;;;;;;;;;;;;;::::1;;58740:30;58749:9;58760;58740:8;:30::i;:::-;58789:18;;;;;;;;;-1:-1:-1::0;;;;;58789:18:0::1;-1:-1:-1::0;;;;;58783:33:0::1;;58824:9;58783:53;;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;-1:-1:-1::0;;11068:1:0;12030:7;:22;-1:-1:-1;;;;58521:323:0:o;30188:504::-;30306:11;;30264:7;;30332:17;30328:114;;30372:13;30365:20;;;;;30328:114;30452:24;30479:21;:19;:21::i;:::-;30452:48;-1:-1:-1;30515:21:0;30511:99;;30559:13;30552:20;;;;;;30511:99;30629:53;30669:12;30629:35;:13;30647:16;30629:17;:35::i;:::-;:39;;:53::i;:::-;30622:60;;;;30188:504;;;;:::o;37630:149::-;37697:10;;-1:-1:-1;;;;;37697:10:0;37683;:24;37675:64;;;;;-1:-1:-1;;;37675:64:0;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;37675:64:0;;;;;;;;;;;;;;;37750:14;:21;;-1:-1:-1;;;;37750:21:0;-1:-1:-1;;;37750:21:0;;;37630:149::o;26380:18::-;;;;;;;;;;;;;;;-1:-1:-1;;26380:18:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;47187:2391::-;47280:4;47286:7;11112:1;11718:7;;:19;;11710:63;;;;;-1:-1:-1;;;11710:63:0;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;11710:63:0;;;;;;;;;;;;;;;11112:1;11851:7;:18;47328:8:::1;::::0;-1:-1:-1;;;;;47328:8:0::1;47314:10;:22;47306:60;;;::::0;;-1:-1:-1;;;47306:60:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;::::1;::::0;;;;;;;;;;;;;::::1;;47386:6;::::0;-1:-1:-1;;;47386:6:0;::::1;;;47385:7;47377:42;;;::::0;;-1:-1:-1;;;47377:42:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;-1:-1:-1;;;47377:42:0;;;;;;;;;;;;;::::1;;47749:11:::0;;47745:1242:::1;;47828:19;::::0;47804::::1;::::0;47784:40:::1;::::0;:15:::1;::::0;:19:::1;:40::i;:::-;:63;;47776:112;;;;-1:-1:-1::0;;;47776:112:0::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;47961:7;47911:46;34584:5;47911:37;47931:16;;47911:15;;:19;;:37;;;;:::i;:46::-;:57;;47903:111;;;;-1:-1:-1::0;;;47903:111:0::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;48134:15;::::0;:28:::1;::::0;48154:7;48134:19:::1;:28::i;:::-;48116:15;:46:::0;48177:25:::1;48205:40;48221:7:::0;48230:14;48205:15:::1;:40::i;:::-;48177:68;;48260:20;48283:26;48294:14;48283:10;:26::i;:::-;48260:49;;48560:15;48538:19;:37;;;;48660:115;48675:4;48681:7;48690:15;48707:21;:19;:21::i;:::-;48730:11;::::0;48660:115:::1;::::0;;;::::1;;::::0;;::::1;::::0;::::1;::::0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;::::1;47745:1242;;;;;48887:88;48902:4;48908:7;48917:15;48934:21;:19;:21::i;:::-;48957:11;::::0;48887:88:::1;::::0;;;::::1;;::::0;;::::1;::::0;::::1;::::0;;;;;;;;;;;;;;;;;;;48970:1:::1;48887:88:::0;;;;;;;;;;;;;;;;;;::::1;47745:1242;49270:17;49289:21:::0;49314:16:::1;:14;:16::i;:::-;49269:61;;;;49341:42;49355:12;49369:13;49341;:42::i;:::-;49493:12:::0;;-1:-1:-1;49507:13:0;-1:-1:-1;11882:1:0::1;11068::::0;12030:7;:22;47187:2391;;;;-1:-1:-1;47187:2391:0;-1:-1:-1;47187:2391:0:o;28793:164::-;28872:4;28888:39;28897:10;28909:8;28919:7;28888:8;:39::i;:::-;-1:-1:-1;28945:4:0;28793:164;;;;;:::o;39099:227::-;39184:10;;-1:-1:-1;;;;;39184:10:0;39170;:24;39162:64;;;;;-1:-1:-1;;;39162:64:0;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;39162:64:0;;;;;;;;;;;;;;;34584:5;39245:4;:10;39237:45;;;;;-1:-1:-1;;;39237:45:0;;;;;;;;;;;;-1:-1:-1;;;39237:45:0;;;;;;;;;;;;;;;39295:16;:23;39099:227::o;33959:51::-;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;26463:33::-;;;-1:-1:-1;;;;;26463:33:0;;:::o;27113:110::-;27168:7;27194:21;:19;:21::i;:::-;27187:28;;27113:110;:::o;39334:240::-;39422:10;;-1:-1:-1;;;;;39422:10:0;39408;:24;39400:64;;;;;-1:-1:-1;;;39400:64:0;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;39400:64:0;;;;;;;;;;;;;;;39491:7;39483:4;:15;;39475:52;;;;;-1:-1:-1;;;39475:52:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;39540:19;:26;39334:240::o;27749:453::-;27852:4;27868:25;27876:7;27885;27868;:25::i;:::-;-1:-1:-1;;;;;27932:19:0;;27904:25;27932:19;;;:10;:19;;;;;;;;27952:10;27932:31;;;;;;;;27982:28;;;;27974:74;;;;-1:-1:-1;;;27974:74:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;28061:39;28071:7;28080:10;28092:7;28061:9;:39::i;:::-;28111:61;28120:7;28129:10;28141:30;:17;28163:7;28141:21;:30::i;:::-;28111:8;:61::i;:::-;28190:4;28183:11;;;27749:453;;;;;;:::o;34994:34::-;;;;:::o;45319:324::-;11112:1;11718:7;;:19;;11710:63;;;;;-1:-1:-1;;;11710:63:0;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;11710:63:0;;;;;;;;;;;;;;;11112:1;11851:7;:18;45405:21;45397:61:::1;;;::::0;;-1:-1:-1;;;45397:61:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;::::1;::::0;;;;;;;;;;;;;::::1;;45478:6;::::0;-1:-1:-1;;;45478:6:0;::::1;;;45477:7;45469:42;;;::::0;;-1:-1:-1;;;45469:42:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;-1:-1:-1;;;45469:42:0;;;;;;;;;;;;;::::1;;45524:28;45534:17;45524:9;:28::i;:::-;45572:18;::::0;45565:70:::1;::::0;-1:-1:-1;;;;;45572:18:0::1;45605:10;45617:17:::0;45565:39:::1;:70::i;:::-;-1:-1:-1::0;11068:1:0;12030:7;:22;45319:324::o;26505:21::-;;;-1:-1:-1;;;26505:21:0;;;;;:::o;26345:26::-;;;;:::o;37486:136::-;37547:10;;-1:-1:-1;;;;;37547:10:0;37533;:24;37525:64;;;;;-1:-1:-1;;;37525:64:0;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;37525:64:0;;;;;;;;;;;;;;;37600:6;:14;;-1:-1:-1;;;;37600:14:0;;;37486:136::o;38595:228::-;38674:10;;-1:-1:-1;;;;;38674:10:0;38660;:24;38652:64;;;;;-1:-1:-1;;;38652:64:0;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;38652:64:0;;;;;;;;;;;;;;;38743:8;38735:4;:16;;38727:58;;;;;-1:-1:-1;;;38727:58:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;38798:10;:17;38595:228::o;37947:640::-;38127:10;;-1:-1:-1;;;;;38127:10:0;38113;:24;38105:64;;;;;-1:-1:-1;;;38105:64:0;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;38105:64:0;;;;;;;;;;;;;;;34584:5;38188:48;:22;38215:20;38188:26;:48::i;:::-;:54;38180:103;;;;-1:-1:-1;;;38180:103:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;38340:3;38302:34;:15;38322:13;38302:19;:34::i;:::-;:41;;38294:83;;;;;-1:-1:-1;;;38294:83:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;38398:21;:46;;;;38455:19;:42;;;;38508:14;:32;38551:12;:28;37947:640::o;29332:629::-;29412:7;29431:24;29458:21;:19;:21::i;:::-;29431:48;-1:-1:-1;29494:21:0;29490:122;;29538:17;29531:24;;;;;29490:122;29645:11;;29671:17;29667:210;;29711:17;29704:24;;;;;;34271:33;;;-1:-1:-1;;;;;34271:33:0;;:::o;34351:26::-;;;-1:-1:-1;;;34351:26:0;;;;;:::o;35452:39::-;;;;:::o;34384:34::-;;;-1:-1:-1;;;34384:34:0;;;;;:::o;37787:152::-;37856:10;;-1:-1:-1;;;;;37856:10:0;37842;:24;37834:64;;;;;-1:-1:-1;;;37834:64:0;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;37834:64:0;;;;;;;;;;;;;;;37909:14;:22;;-1:-1:-1;;;;37909:22:0;;;37787:152::o;35517:30::-;;;;:::o;34554:35::-;34584:5;34554:35;:::o;39582:688::-;11112:1;11718:7;;:19;;11710:63;;;;;-1:-1:-1;;;11710:63:0;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;11710:63:0;;;;;;;;;;;;;;;11112:1;11851:7;:18;39686:21;39678:61:::1;;;::::0;;-1:-1:-1;;;39678:61:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;::::1;::::0;;;;;;;;;;;;;::::1;;39759:6;::::0;-1:-1:-1;;;39759:6:0;::::1;;;39758:7;:26:::0;::::1;;;-1:-1:-1::0;39770:14:0::1;::::0;-1:-1:-1;;;39770:14:0;::::1;;;39769:15;39758:26;39750:61;;;::::0;;-1:-1:-1;;;39750:61:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;-1:-1:-1;;;39750:61:0;;;;;;;;;;;;;::::1;;39824:38;39833:17;39852:9;39824:8;:38::i;:::-;39903:18;::::0;39951:36:::1;::::0;;-1:-1:-1;;;39951:36:0;;39981:4:::1;39951:36;::::0;::::1;::::0;;;-1:-1:-1;;;;;39903:18:0;;::::1;::::0;39875::::1;::::0;39903;;39951:21:::1;::::0;:36;;;;;::::1;::::0;;;;;;;;;39903:18;39951:36;::::1;;::::0;::::1;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;::::0;::::1;;-1:-1:-1::0;39951:36:0;;-1:-1:-1;39998:74:0::1;-1:-1:-1::0;;;;;39998:28:0;::::1;40027:10;40047:4;40054:17:::0;39998:28:::1;:74::i;:::-;40083:14;40100:11;-1:-1:-1::0;;;;;40100:21:0::1;;40130:4;40100:36;;;;;;;;;;;;;-1:-1:-1::0;;;;;40100:36:0::1;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;::::0;::::1;;-1:-1:-1::0;40100:36:0;;-1:-1:-1;40147:14:0::1;40164:19;40100:36:::0;40175:7;40164:10:::1;:19::i;:::-;40147:36;;40212:17;40202:6;:27;;40194:68;;;::::0;;-1:-1:-1;;;40194:68:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;::::1;::::0;;;;;;;;;;;;;::::1;26432:24:::0;;;;;;;;;;;;;;;-1:-1:-1;;26432:24:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;27344:144;27411:7;27437:43;27460:19;27470:8;27460:9;:19::i;:::-;27437:22;:43::i;57469:381::-;11112:1;11718:7;;:19;;11710:63;;;;;-1:-1:-1;;;11710:63:0;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;11710:63:0;;;;;;;;;;;;;;;11112:1;11851:7;:18;57573:10:::1;::::0;-1:-1:-1;;;;;57573:10:0::1;57559;:24;57551:64;;;::::0;;-1:-1:-1;;;57551:64:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;-1:-1:-1;;;;;;;;;;;57551:64:0;;;;;;;;;;;;;::::1;;-1:-1:-1::0;;;;;57632:20:0;::::1;::::0;57628:215:::1;;57696:10;::::0;57668:48:::1;::::0;-1:-1:-1;;;;;57668:27:0;;::::1;::::0;57696:10:::1;57708:7:::0;57668:27:::1;:48::i;:::-;57628:215;;;57803:10;::::0;:28:::1;::::0;-1:-1:-1;;;;;57803:10:0;;::::1;::::0;:28;::::1;;;::::0;57823:7;;57803:10:::1;:28:::0;:10;:28;57823:7;57803:10;:28;::::1;;;;;;;;;;;;;::::0;::::1;;;;;;57628:215;-1:-1:-1::0;;11068:1:0;12030:7;:22;57469:381::o;34694:35::-;;;;:::o;37345:133::-;37404:10;;-1:-1:-1;;;;;37404:10:0;37390;:24;37382:64;;;;;-1:-1:-1;;;37382:64:0;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;37382:64:0;;;;;;;;;;;;;;;37457:6;:13;;-1:-1:-1;;;;37457:13:0;-1:-1:-1;;;37457:13:0;;;37345:133::o;34311:31::-;;;-1:-1:-1;;;;;34311:31:0;;:::o;35228:35::-;;;;:::o;44240:296::-;44304:7;44324:32;;:::i;:::-;-1:-1:-1;;;;;;44359:22:0;;;;;;:12;:22;;;;;;;;;44324:57;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;44399:129;;44372:8;;44324:57;44399:16;:129::i;26405:20::-;;;;;;;;;;;;;;;-1:-1:-1;;26405:20:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;36739:161;36824:10;;-1:-1:-1;;;;;36824:10:0;36810;:24;36802:64;;;;;-1:-1:-1;;;36802:64:0;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;36802:64:0;;;;;;;;;;;;;;;36877:8;:15;;-1:-1:-1;;;;;;36877:15:0;-1:-1:-1;;;;;36877:15:0;;;;;;;;;;36739:161::o;27532:209::-;27614:4;27630:28;27638:10;27650:7;27630;:28::i;:::-;27669:42;27679:10;27691;27703:7;27669:9;:42::i;36213:165::-;36300:10;;-1:-1:-1;;;;;36300:10:0;36286;:24;36278:64;;;;;-1:-1:-1;;;36278:64:0;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;36278:64:0;;;;;;;;;;;;;;;36353:10;:17;;-1:-1:-1;;;;;;36353:17:0;-1:-1:-1;;;;;36353:17:0;;;;;;;;;;36213:165::o;50012:926::-;50109:4;50115:7;11112:1;11718:7;;:19;;11710:63;;;;;-1:-1:-1;;;11710:63:0;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;11710:63:0;;;;;;;;;;;;;;;11112:1;11851:7;:18;50157:10:::1;::::0;-1:-1:-1;;;;;50157:10:0::1;50143;:24;50135:64;;;::::0;;-1:-1:-1;;;50135:64:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;-1:-1:-1;;;;;;;;;;;50135:64:0;;;;;;;;;;;;;::::1;;50354:15;::::0;:28:::1;::::0;50374:7;50354:19:::1;:28::i;:::-;50336:15;:46:::0;50395:338;::::1;;;50435:17;50454:21:::0;50479:16:::1;:14;:16::i;:::-;50434:61;;;;50510:42;50524:12;50538:13;50510;:42::i;:::-;50644:12:::0;;-1:-1:-1;50658:13:0;-1:-1:-1;50636:36:0::1;;50395:338;50811:89;50826:5;50833:7;50842:15;50859:21;:19;:21::i;:::-;50882:11;::::0;50811:89:::1;::::0;;;::::1;;::::0;;::::1;::::0;::::1;::::0;;;;;;;;;;;;;;;;;;;50895:1:::1;50811:89:::0;;;;;;;;;;;;;;;;;;::::1;-1:-1:-1::0;;11068:1:0;50921:5:::1;12030:22:::0;;;50921:5;;;-1:-1:-1;50012:926:0;-1:-1:-1;50012:926:0:o;34017:47::-;;;;;;;;;;;;;;;:::o;38831:260::-;38917:10;;-1:-1:-1;;;;;38917:10:0;38903;:24;38895:64;;;;;-1:-1:-1;;;38895:64:0;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;38895:64:0;;;;;;;;;;;;;;;34584:5;38978:4;:11;;:26;;;;;39001:3;38993:4;:11;;38978:26;38970:76;;;;-1:-1:-1;;;38970:76:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;39059:17;:24;38831:260::o;34646:41::-;;;;:::o;34736:33::-;;;;:::o;34860:37::-;;;;:::o;28603:147::-;-1:-1:-1;;;;;28714:18:0;;;28688:7;28714:18;;;:10;:18;;;;;;;;:28;;;;;;;;;;;;;28603:147::o;34942:45::-;;;;:::o;36908:429::-;37033:10;;-1:-1:-1;;;;;37033:10:0;37019;:24;37011:64;;;;;-1:-1:-1;;;37011:64:0;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;37011:64:0;;;;;;;;;;;;;;;37094:34;;;:68;;;;-1:-1:-1;34259:3:0;37132:30;;;37094:68;37086:116;;;;-1:-1:-1;;;37086:116:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;37220:9;37215:115;37235:20;;;37215:115;;;37308:7;;37316:1;37308:10;;;;;;;;;;;;;;;37276:15;:29;37292:9;;37302:1;37292:12;;;;;;;;;;;;;;;;-1:-1:-1;;;;;37292:12:0;37276:29;;-1:-1:-1;37276:29:0;;;;;;;;-1:-1:-1;37276:29:0;:42;;-1:-1:-1;;37276:42:0;;;;;;;;;;-1:-1:-1;37257:3:0;37215:115;;;;36908:429;;;;:::o;58852:359::-;11112:1;11718:7;;:19;;11710:63;;;;;-1:-1:-1;;;11710:63:0;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;11710:63:0;;;;;;;;;;;;;;;11112:1;11851:7;:18;58941:21;58933:61:::1;;;::::0;;-1:-1:-1;;;58933:61:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;::::1;::::0;;;;;;;;;;;;;::::1;;59014:6;::::0;-1:-1:-1;;;59014:6:0;::::1;;;59013:7;59005:42;;;::::0;;-1:-1:-1;;;59005:42:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;-1:-1:-1;;;59005:42:0;;;;;;;;;;;;;::::1;;59060:28;59070:17;59060:9;:28::i;:::-;59107:18;::::0;59101:53:::1;::::0;;-1:-1:-1;;;59101:53:0;;::::1;::::0;::::1;::::0;;;;;-1:-1:-1;;;;;59107:18:0;;::::1;::::0;59101:34:::1;::::0;:53;;;;;59107:18:::1;::::0;59101:53;;;;;;;;59107:18;;59101:53;::::1;;::::0;::::1;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;-1:-1:-1::0;;59165:38:0::1;::::0;:10:::1;::::0;-1:-1:-1;59165:38:0;::::1;;;::::0;-1:-1:-1;59185:17:0;;59165:38:::1;::::0;;;59185:17;59165:10;:38;::::1;;;;;;;;;;;;;::::0;::::1;;;;28992:113:::0;29051:7;29078:19;29088:8;29078:9;:19::i;34596:43::-;;;;:::o;40278:780::-;40413:21;40437:41;40460:17;40437:22;:41::i;:::-;40413:65;;40491:38;40503:10;40515:13;40491:11;:38::i;:::-;40648:48;40666:10;40678:17;40648;:48::i;:::-;-1:-1:-1;;;;;40780:23:0;;40793:10;40780:23;40776:206;;40824:49;;;40832:10;40824:49;;;;;;;;-1:-1:-1;;;;;40824:49:0;;;;;;;;;;;;;;;;;40776:206;;;40920:50;;;40928:10;40920:50;;;;;;;;40967:1;40920:50;;;;;;;;;;;;;;;40776:206;40999:51;;;;;;;;41020:10;;41016:1;;-1:-1:-1;;;;;;;;;;;40999:51:0;;;;;;;;40278:780;;;:::o;57193:268::-;57306:18;;57299:51;;;-1:-1:-1;;;57299:51:0;;57344:4;57299:51;;;;;;57256:7;;;;-1:-1:-1;;;;;57306:18:0;;;;57299:36;;:51;;;;;;;;;;;;;;;57306:18;57299:51;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;57299:51:0;57386:15;;57299:51;;-1:-1:-1;57421:32:0;57299:51;57386:15;57421:16;:32::i;:::-;57414:39;;;;57193:268;:::o;15650:220::-;15708:7;15732:6;15728:20;;-1:-1:-1;15747:1:0;15740:8;;15728:20;15771:5;;;15775:1;15771;:5;:1;15795:5;;;;;:10;15787:56;;;;-1:-1:-1;;;15787:56:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;16348:153;16406:7;16438:1;16434;:5;16426:44;;;;;-1:-1:-1;;;16426:44:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;16492:1;16488;:5;;;;;;;16348:153;-1:-1:-1;;;16348:153:0:o;15233:158::-;15291:7;15324:1;15319;:6;;15311:49;;;;;-1:-1:-1;;;15311:49:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;15378:5:0;;;15233:158::o;14771:179::-;14829:7;14861:5;;;14885:6;;;;14877:46;;;;;-1:-1:-1;;;14877:46:0;;;;;;;;;;;;;;;;;;;;;;;;;;;50946:1458;51077:11;;51030:7;;;51118:21;:19;:21::i;:::-;51099:40;;51152:38;51193:41;34584:5;51193:32;51205:19;;51193:7;:11;;:32;;;;:::i;:41::-;51152:82;;51245:40;51288:43;34584:5;51288:34;51300:21;;51288:7;:11;;:34;;;;:::i;:43::-;51245:86;-1:-1:-1;51342:35:0;51380:68;:30;51245:86;51380:34;:68::i;:::-;51342:106;-1:-1:-1;51465:32:0;51461:72;;51520:1;51513:8;;;;;;;;;51461:72;51545:21;51569:78;51592:27;51621:8;51631:15;51569:22;:78::i;:::-;51545:102;-1:-1:-1;51660:23:0;51686:82;51740:27;51686:49;51545:102;51704:30;51686:17;:49::i;:82::-;51660:108;-1:-1:-1;51800:25:0;51828:34;:13;51660:108;51828:17;:34::i;:::-;51800:62;;51875:44;51887:14;51903:15;51875:11;:44::i;:::-;51942:10;;51930:42;;-1:-1:-1;;;;;51942:10:0;51954:17;51930:11;:42::i;:::-;51985:25;52013:39;52036:15;52013:22;:39::i;:::-;51985:67;;52063:27;52093:41;52116:17;52093:22;:41::i;:::-;52210:55;;;;;;;;52063:71;;-1:-1:-1;;;;;;52210:55:0;;;52227:1;;-1:-1:-1;;;;;;;;;;;52210:55:0;;;;;;;;;52302:10;;52281:53;;;;;;;;-1:-1:-1;;;;;52302:10:0;;;;;;-1:-1:-1;;;;;;;;;;;52281:53:0;;;;;;;;;52354:42;:17;52376:19;52354:21;:42::i;:::-;52347:49;50946:1458;-1:-1:-1;;;;;;;;;;;;;50946:1458:0:o;52562:1718::-;52673:19;;52624:7;;52729:15;52707:37;;52703:77;;52767:1;52760:8;;;;;52703:77;52792:20;52815:39;:15;52835:18;52815:19;:39::i;:::-;52891:11;;52792:62;;-1:-1:-1;52865:23:0;52932:21;:19;:21::i;:::-;52913:40;-1:-1:-1;52966:33:0;53002:40;53033:8;53002:26;52913:40;53015:12;53002;:26::i;:40::-;52966:76;;53053:33;53089:52;34584:5;53089:43;53119:12;;53089:25;:29;;:43;;;;:::i;:52::-;53053:88;;53152:35;53190:52;34584:5;53190:43;53220:12;;53190:25;:29;;:43;;;;:::i;:52::-;53152:90;-1:-1:-1;53253:30:0;53286:58;:25;53152:90;53286:29;:58::i;:::-;53253:91;-1:-1:-1;53361:27:0;53357:67;;53411:1;53404:8;;;;;;;;;;;;53357:67;53436:21;53460:73;53483:22;53507:8;53517:15;53460:22;:73::i;:::-;53436:97;-1:-1:-1;53546:23:0;53572:72;53621:22;53572:44;53436:97;53590:25;53572:17;:44::i;:72::-;53546:98;-1:-1:-1;53676:25:0;53704:34;:13;53546:98;53704:17;:34::i;:::-;53676:62;;53751:44;53763:14;53779:15;53751:11;:44::i;:::-;53818:10;;53806:42;;-1:-1:-1;;;;;53818:10:0;53830:17;53806:11;:42::i;:::-;53861:25;53889:39;53912:15;53889:22;:39::i;:::-;53861:67;;53939:27;53969:41;53992:17;53969:22;:41::i;:::-;53939:71;;54107:14;-1:-1:-1;;;;;54086:55:0;54103:1;-1:-1:-1;;;;;54086:55:0;-1:-1:-1;;;;;;;;;;;54123:17:0;54086:55;;;;;;;;;;;;;;;;;;54178:10;;54157:53;;;;;;;;-1:-1:-1;;;;;54178:10:0;;;;;;-1:-1:-1;;;;;;;;;;;54157:53:0;;;;;;;;;54230:42;:17;54252:19;54230:21;:42::i;:::-;54223:49;52562:1718;-1:-1:-1;;;;;;;;;;;;;;;52562:1718:0:o;55144:729::-;55276:18;;55269:51;;;-1:-1:-1;;;55269:51:0;;55314:4;55269:51;;;;;;55193:17;;;;;;-1:-1:-1;;;;;55276:18:0;;;;55269:36;;:51;;;;;;;;;;;;;;;55276:18;55269:51;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;55269:51:0;55356:15;;55269:51;;-1:-1:-1;55331:22:0;55407:32;55269:51;55356:15;55407:16;:32::i;:::-;55384:55;;55450:18;55471:44;34584:5;55471:35;55488:17;;55471:12;:16;;:35;;;;:::i;:44::-;55450:65;;55609:10;55593:12;:26;55589:102;;55643:5;55650:28;:12;55667:10;55650:16;:28::i;:::-;55635:44;;;;;;;;;;55589:102;55785:10;55770:12;:25;55766:100;;;55819:4;55825:28;:10;55840:12;55825:14;:28::i;55766:100::-;55144:729;;;;;;;:::o;55926:1259::-;56015:12;56011:1167;;;56068:18;;56061:51;;;-1:-1:-1;;;56061:51:0;;56106:4;56061:51;;;;;;56043:15;;-1:-1:-1;;;;;56068:18:0;;56061:36;;:51;;;;;;;;;;;;;;56068:18;56061:51;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;56061:51:0;56171:8;;56134:18;;56061:51;;-1:-1:-1;56127:83:0;;-1:-1:-1;;;;;56134:18:0;;;;56171:8;56189:4;56196:13;56127:43;:83::i;:::-;56249:18;;56242:51;;;-1:-1:-1;;;56242:51:0;;56287:4;56242:51;;;;;;56225:14;;-1:-1:-1;;;;;56249:18:0;;56242:36;;:51;;;;;;;;;;;;;;56249:18;56242:51;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;56242:51:0;;-1:-1:-1;56308:14:0;56325:19;56242:51;56336:7;56325:10;:19::i;:::-;56308:36;;56379:13;56369:6;:23;;56361:90;;;;-1:-1:-1;;;56361:90:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;56592:15;;:34;;56612:13;56592:19;:34::i;:::-;56574:15;:52;56648:47;;;;;;56676:1;56648:47;;;;56679:15;56648:47;;;;;;;;;;;;;;;56011:1167;;;;;;56745:8;;-1:-1:-1;;;;;56745:8:0;56737:60;;;;;-1:-1:-1;;;56737:60:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;56874:8;;56841:18;;56834:64;;-1:-1:-1;;;;;56841:18:0;;;;56874:8;56884:13;56834:39;:64::i;:::-;57063:15;;:34;;57083:13;57063:19;:34::i;:::-;57045:15;:52;57119:47;;;57132:1;57119:47;;;;;;;;57150:15;57119:47;;;;;;;;;;;;;;;56011:1167;55926:1259;;:::o;31461:325::-;-1:-1:-1;;;;;31558:20:0;;31550:57;;;;;-1:-1:-1;;;31550:57:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;31626:22:0;;31618:58;;;;;-1:-1:-1;;;31618:58:0;;;;;;;;;;;;-1:-1:-1;;;31618:58:0;;;;;;;;;;;;;;;-1:-1:-1;;;;;31689:18:0;;;;;;;:10;:18;;;;;;;;:28;;;;;;;;;;;;;:38;;;31743:35;;;;;;;;;;;;;;;;;31461:325;;;:::o;46419:588::-;46516:32;;:::i;:::-;-1:-1:-1;;;;;;46551:22:0;;;;;;:12;:22;;;;;;;;46516:57;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;46551:22;46607:129;;46564:8;;46516:57;;46607:16;:129::i;:::-;46586:150;;46747:16;46766:19;46776:8;46766:9;:19::i;:::-;46747:38;-1:-1:-1;46930:10:0;46889:37;46747:38;46902:23;46889:12;:37::i;:::-;:51;;46881:118;;;;-1:-1:-1;;;46881:118:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;31151:280;31244:25;31272:31;31295:7;31272:22;:31::i;:::-;31244:59;;31314:55;31330:7;31339:10;31351:17;31314:15;:55::i;:::-;31403:10;-1:-1:-1;;;;;31385:38:0;31394:7;-1:-1:-1;;;;;31385:38:0;-1:-1:-1;;;;;;;;;;;31415:7:0;31385:38;;;;;;;;;;;;;;;;;;31151:280;;;;:::o;45651:729::-;45717:38;45725:10;45737:17;45717:7;:38::i;:::-;45874:18;;45867:51;;;-1:-1:-1;;;45867:51:0;;45912:4;45867:51;;;;;;45921:17;;-1:-1:-1;;;;;45874:18:0;;45867:36;;:51;;;;;;;;;;;;;;45874:18;45867:51;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;45867:51:0;:71;45863:210;;;45954:107;;-1:-1:-1;;;45954:107:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;45863:210;46085:21;46109:41;46132:17;46109:22;:41::i;:::-;46085:65;;46161:38;46173:10;46185:13;46161:11;:38::i;:::-;46266:51;;;;;;;;46295:1;;46275:10;;-1:-1:-1;;;;;;;;;;;46266:51:0;;;;;;;;46333:39;;;46342:10;46333:39;;;;;;;;;;;;;;;;;;;;;45651:729;;:::o;22710:177::-;22820:58;;;-1:-1:-1;;;;;22820:58:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;22820:58:0;-1:-1:-1;;;22820:58:0;;;22793:86;;22813:5;;22793:19;:86::i;:::-;22710:177;;;:::o;22895:205::-;23023:68;;;-1:-1:-1;;;;;23023:68:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;23023:68:0;-1:-1:-1;;;23023:68:0;;;22996:96;;23016:5;;22996:19;:96::i;:::-;22895:205;;;;:::o;30700:110::-;-1:-1:-1;;;;;30786:16:0;30760:7;30786:16;;;:6;:16;;;;;;;30700:110::o;44777:534::-;44922:7;44968:15;44946:18;:37;;:66;;;-1:-1:-1;;;;;;44987:25:0;;;;;;:15;:25;;;;;;;;44946:66;44942:362;;;-1:-1:-1;45035:1:0;45028:8;;44942:362;45078:22;45103:39;:18;45126:15;45103:22;:39::i;:::-;45078:64;-1:-1:-1;45157:18:0;45178:41;:18;45201:17;45178:22;:41::i;:::-;45157:62;-1:-1:-1;45243:49:0;45157:62;45243:33;:13;45261:14;45243:17;:33::i;:49::-;45236:56;;;;44942:362;44777:534;;;;;;:::o;32349:616::-;-1:-1:-1;;;;;32441:24:0;;32433:60;;;;;-1:-1:-1;;;32433:60:0;;;;;;;;;;;;-1:-1:-1;;;32433:60:0;;;;;;;;;;;;;;;32520:11;;:30;;32536:13;32520:15;:30::i;:::-;32506:11;:44;-1:-1:-1;;;;;32582:18:0;;;;;;:6;:18;;;;;;:37;;32605:13;32582:22;:37::i;:::-;-1:-1:-1;;;;;32561:18:0;;;;;;;:6;:18;;;;;:58;;;;-1:-1:-1;32349:616:0:o;41066:3166::-;41160:32;;:::i;:::-;-1:-1:-1;;;;;;41195:22:0;;;;;;:12;:22;;;;;;;;;41160:57;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;41322:2903;;41377:24;;:::i;:::-;41404:259;;;;;;;;41481:17;41404:259;;;;41540:15;41404:259;;;;41598:31;41618:10;;41598:15;:19;;:31;;;;:::i;:::-;41404:259;;-1:-1:-1;;;;;41678:22:0;;;;;;:12;:22;;;;;;;;;:30;;;;;;;;;;;;;;;;;;;;-1:-1:-1;41322:2903:0;;;41894:18;41915:129;41932:8;41942:13;:36;;;41980:13;:30;;;42012:13;:31;;;41915:16;:129::i;:::-;41894:150;-1:-1:-1;42140:15:0;42136:2078;;42175:24;;:::i;:::-;42202:283;;;;;;;;42287:17;42202:283;;;;42350:15;42202:283;;;;42412:31;42432:10;;42412:15;:19;;:31;;;;:::i;:::-;42202:283;;-1:-1:-1;;;;;42504:22:0;;;;;;:12;:22;;;;;;;;;:30;;;;;;;;;;;;;;;;;;;;-1:-1:-1;42136:2078:0;;;43498:22;43523:68;43538:52;43574:15;43538:13;:31;;;:35;;:52;;;;:::i;:::-;43523:10;;:14;:68::i;:::-;43498:93;;43610:19;43632:33;43654:10;;43632:17;:21;;:33;;;;:::i;:::-;43610:55;-1:-1:-1;43684:14:0;43701:33;:17;43723:10;43701:21;:33::i;:::-;43684:50;-1:-1:-1;43755:22:0;43780:45;43684:50;43781:31;:14;43800:11;43781:18;:31::i;43780:45::-;43755:70;;43846:24;;:::i;:::-;43873:276;;;;;;;;43958:6;43873:276;;;;44010:15;43873:276;;;;44072:35;44092:14;44072:15;:19;;:35;;;;:::i;:::-;43873:276;;-1:-1:-1;;;;;44168:22:0;;;;;;:12;:22;;;;;;;;;:30;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;41322:2903:0;41066:3166;;;:::o;54288:848::-;54415:21;54985:143;55112:15;54985:104;55055:33;:8;55068:19;55055:12;:33::i;:::-;54985:47;:15;55023:8;54985:37;:47::i;:104::-;:126;;:143::i;31794:547::-;-1:-1:-1;;;;;31908:21:0;;31900:59;;;;;-1:-1:-1;;;31900:59:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;31978:24:0;;31970:60;;;;;-1:-1:-1;;;31970:60:0;;;;;;;;;;;;-1:-1:-1;;;31970:60:0;;;;;;;;;;;;;;;-1:-1:-1;;;;;32074:15:0;;32043:28;32074:15;;;:6;:15;;;;;;32108:37;;;;32100:94;;;;-1:-1:-1;;;32100:94:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;32225:39;:20;32250:13;32225:24;:39::i;:::-;-1:-1:-1;;;;;32207:15:0;;;;;;;:6;:15;;;;;;:57;;;;32296:18;;;;;;;:37;;32319:13;32296:22;:37::i;:::-;-1:-1:-1;;;;;32275:18:0;;;;;;;:6;:18;;;;;:58;;;;-1:-1:-1;;;31794:547:0:o;32973:816::-;-1:-1:-1;;;;;33063:22:0;;33055:65;;;;;-1:-1:-1;;;33055:65:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;33158:16:0;;33133:22;33158:16;;;:6;:16;;;;;;33193:31;;;;33185:84;;;;-1:-1:-1;;;33185:84:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;33294:11;;:30;;33310:13;33294:15;:30::i;:::-;33280:11;:44;33356:33;:14;33375:13;33356:18;:33::i;:::-;-1:-1:-1;;;;;33337:16:0;;;;;;;:6;:16;;;;;:52;;;;-1:-1:-1;;32973:816:0:o;25015:761::-;25439:23;25465:69;25493:4;25465:69;;;;;;;;;;;;;;;;;25473:5;-1:-1:-1;;;;;25465:27:0;;;:69;;;;;:::i;:::-;25549:17;;25439:95;;-1:-1:-1;25549:21:0;25545:224;;25691:10;25680:30;;;;;;;;;;;;;;;-1:-1:-1;25680:30:0;25672:85;;;;-1:-1:-1;;;25672:85:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5120:195;5223:12;5255:52;5277:6;5285:4;5291:1;5294:12;5223;6424:18;6435:6;6424:10;:18::i;:::-;6416:60;;;;;-1:-1:-1;;;6416:60:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;6550:12;6564:23;6591:6;-1:-1:-1;;;;;6591:11:0;6611:5;6619:4;6591:33;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;6591:33:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6549:75;;;;6642:52;6660:7;6669:10;6681:12;6642:17;:52::i;2202:422::-;2569:20;2608:8;;;2202:422::o;8712:742::-;8827:12;8856:7;8852:595;;;-1:-1:-1;8887:10:0;8880:17;;8852:595;9001:17;;:21;8997:439;;9264:10;9258:17;9325:15;9312:10;9308:2;9304:19;9297:44;9212:148;9407:12;9400:20;;-1:-1:-1;;;9400:20:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;;;;;;;;;;;;;;:::o

Swarm Source

ipfs://959cb3d1620bc98d6cad1933cfa4c3671a8961cca6378720f89cb9f22cc531aa
Loading...
Loading
Loading...
Loading
[ Download: CSV Export  ]
[ Download: CSV Export  ]

A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.