ETH Price: $2,526.18 (+3.38%)

Contract

0x17E9ed51feD2F190D50f5bd4f1a8C9CbCd36162A
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Token Holdings

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Approve168172312023-03-13 6:17:11534 days ago1678688231IN
0x17E9ed51...bCd36162A
0 ETH0.0004010516.51437936
Withdraw152717282022-08-03 20:57:25756 days ago1659560245IN
0x17E9ed51...bCd36162A
0 ETH0.0012985817.13262519
Withdraw147101082022-05-04 9:26:00847 days ago1651656360IN
0x17E9ed51...bCd36162A
0 ETH0.0032387234.8685384
Withdraw142014232022-02-14 2:01:34926 days ago1644804094IN
0x17E9ed51...bCd36162A
0 ETH0.003328235.82722709
Withdraw138410382021-12-20 8:43:13982 days ago1639989793IN
0x17E9ed51...bCd36162A
0 ETH0.0049124152.88082827
Withdraw138072342021-12-15 3:12:50987 days ago1639537970IN
0x17E9ed51...bCd36162A
0 ETH0.0060636880
Withdraw133840042021-10-09 10:31:381054 days ago1633775498IN
0x17E9ed51...bCd36162A
0 ETH0.006763772.8
Withdraw131940162021-09-09 21:29:211084 days ago1631222961IN
0x17E9ed51...bCd36162A
0 ETH0.0093837101
Withdraw131096842021-08-27 20:43:061097 days ago1630096986IN
0x17E9ed51...bCd36162A
0 ETH0.0066570371.65195423
Withdraw131006932021-08-26 11:29:121098 days ago1629977352IN
0x17E9ed51...bCd36162A
0 ETH0.0038092241
Withdraw130583212021-08-19 21:59:521105 days ago1629410392IN
0x17E9ed51...bCd36162A
0 ETH0.0025626733.81012811
Deposit130506632021-08-18 17:53:051106 days ago1629309185IN
0x17E9ed51...bCd36162A
0 ETH0.0034179839.00295948
Withdraw130096732021-08-12 10:01:101112 days ago1628762470IN
0x17E9ed51...bCd36162A
0 ETH0.0023966831.61513608
Deposit130022942021-08-11 6:29:051113 days ago1628663345IN
0x17E9ed51...bCd36162A
0 ETH0.0038559544.53945935
Deposit129969752021-08-10 10:57:491114 days ago1628593069IN
0x17E9ed51...bCd36162A
0 ETH0.0024960428.83135167
Deposit129969702021-08-10 10:57:161114 days ago1628593036IN
0x17E9ed51...bCd36162A
0 ETH0.0039770528.83135167
Withdraw129262642021-07-30 9:45:061125 days ago1627638306IN
0x17E9ed51...bCd36162A
0 ETH0.0022297924
Withdraw128172262021-07-13 6:39:271142 days ago1626158367IN
0x17E9ed51...bCd36162A
0 ETH0.0026014228
Withdraw128154582021-07-12 23:46:581143 days ago1626133618IN
0x17E9ed51...bCd36162A
0 ETH0.0020439722
Withdraw128148972021-07-12 21:30:291143 days ago1626125429IN
0x17E9ed51...bCd36162A
0 ETH0.0020439722
Withdraw127604362021-07-04 10:10:591151 days ago1625393459IN
0x17E9ed51...bCd36162A
0 ETH0.0008338811
Withdraw127289522021-06-29 12:30:171156 days ago1624969817IN
0x17E9ed51...bCd36162A
0 ETH0.0018581620
Withdraw127204352021-06-28 4:40:331157 days ago1624855233IN
0x17E9ed51...bCd36162A
0 ETH0.0009290810
Withdraw127014652021-06-25 5:37:121160 days ago1624599432IN
0x17E9ed51...bCd36162A
0 ETH0.000557376
Withdraw126493902021-06-17 2:59:291168 days ago1623898769IN
0x17E9ed51...bCd36162A
0 ETH0.0016862818.15
View all transactions

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
FarmTreasuryV1

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

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":[],"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"}]

6080604052600b805461ffff60a01b191690556103e8600c819055600d8190556064600e819055600f8190556010556201437060115562093a806013556014553480156200004c57600080fd5b506040516200399738038062003997833981810160405260608110156200007257600080fd5b81019080805160405193929190846401000000008211156200009357600080fd5b908301906020820185811115620000a957600080fd5b8251640100000000811182820188101715620000c457600080fd5b82525081516020918201929091019080838360005b83811015620000f3578181015183820152602001620000d9565b50505050905090810190601f168015620001215780820380516001836020036101000a031916815260200191505b5060408181526020838101519390910151600160005570029ba30b1b5b2b9102b32b73a3ab932b99607d1b8284019081528751949650909450869386938693869392603190920191908401908083835b60208310620001925780518252601f19909201916020918201910162000171565b6001836020036101000a0380198251168184511680821785525050505050509050019150506040516020818303038152906040526040516020018082805190602001908083835b60208310620001fa5780518252601f199092019160209182019101620001d9565b51815160209384036101000a60001901801990921691161790526220763160e81b9190930190815260408051808303601c190181526003909201905280516200024d955060049450920191905062000347565b5082604051602001808064737461636b60d81b81525060050182805190602001908083835b60208310620002935780518252601f19909201916020918201910162000272565b6001836020036101000a03801982511681845116808217855250505050505090500191505060405160208183030381529060405260059080519060200190620002de92919062000347565b508251620002f490600690602086019062000347565b50600780546001600160a01b039092166001600160a01b031960ff909416600160a01b0260ff60a01b19909316929092178316919091179055600a80549091163317905550504260125550620003e39050565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106200038a57805160ff1916838001178555620003ba565b82800160010185558215620003ba579182015b82811115620003ba5782518255916020019190600101906200039d565b50620003c8929150620003cc565b5090565b5b80821115620003c85760008155600101620003cd565b6135a480620003f36000396000f3fe608060405234801561001057600080fd5b50600436106102f15760003560e01c80636ac5db191161019d578063ab033ea9116100e9578063d5836ce8116100a2578063e54542b21161007c578063e54542b214610801578063ed3efad514610809578063f5eb42dc146108cb578063fb6cc882146108f1576102f1565b8063d5836ce8146107c3578063dd2a1eab146107cb578063dd62ed3e146107d3576102f1565b8063ab033ea91461072d578063b0f122c114610753578063b4f82fdc14610778578063b76e6be21461079e578063c70920bc146104b8578063c7c863f0146107bb576102f1565b80638456cb5911610156578063929ec53711610130578063929ec537146106ad57806395d89b41146106d35780639b0fbe49146106db578063a9059cbb14610701576102f1565b80638456cb5914610695578063852b19011461069d5780638e26c09d146106a5576102f1565b80636ac5db19146105ff5780636e553f65146106075780636f307dc31461063357806370a082311461063b5780637a4e4ecf146106615780637f7d9a061461068d576102f1565b80632e1a7d4d1161025c5780634e118982116102155780635dfbaeaf116101ef5780635dfbaeaf146105df5780636068d6cb146105e757806363d8882a146105ef5780636a62dd54146105f7576102f1565b80634e118982146105b25780635aa6e675146105cf5780635c975abb146105d7576102f1565b80632e1a7d4d1461051b578063313ce567146105385780633a98ef39146105565780633f4ba83a1461055e57806347662b38146105665780634aa3c30214610583576102f1565b80630ba36dcd116102ae5780630ba36dcd1461045057806310cfe9061461049457806318160ddd146104b8578063222a528f146104c057806323b872dd146104dd5780632676440e14610513576102f1565b8063013a6edd146102f6578063021919801461032557806306fdde031461032f57806307336908146103ac578063095ea7b3146103f35780630b598a6814610433575b600080fd5b6103136004803603602081101561030c57600080fd5b50356108f9565b60408051918252519081900360200190f35b61032d610946565b005b6103376109a8565b6040805160208082528351818301528351919283929083019185019080838360005b83811015610371578181015183820152602001610359565b50505050905090810190601f16801561039e5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6103d8600480360360408110156103c257600080fd5b50803590602001356001600160a01b0316610a36565b60408051921515835260208301919091528051918290030190f35b61041f6004803603604081101561040957600080fd5b506001600160a01b038135169060200135610d25565b604080519115158252519081900360200190f35b61032d6004803603602081101561044957600080fd5b5035610d3c565b6104766004803603602081101561046657600080fd5b50356001600160a01b0316610ddd565b60408051938452602084019290925282820152519081900360600190f35b61049c610dfe565b604080516001600160a01b039092168252519081900360200190f35b610313610e0d565b61032d600480360360208110156104d657600080fd5b5035610e1c565b61041f600480360360608110156104f357600080fd5b506001600160a01b03813581169160208101359091169060400135610ec6565b610313610f61565b61032d6004803603602081101561053157600080fd5b5035610f67565b610540611084565b6040805160ff9092168252519081900360200190f35b610313611094565b61032d61109a565b61032d6004803603602081101561057c57600080fd5b50356110f6565b61032d6004803603608081101561059957600080fd5b50803590602081013590604081013590606001356111a0565b610313600480360360208110156105c857600080fd5b50356112aa565b61049c6112d7565b61041f6112e6565b6103136112f6565b61041f6112fc565b61032d61130c565b610313611368565b61031361136e565b61032d6004803603604081101561061d57600080fd5b50803590602001356001600160a01b0316611374565b610337611609565b6103136004803603602081101561065157600080fd5b50356001600160a01b0316611664565b61032d6004803603604081101561067757600080fd5b506001600160a01b038135169060200135611677565b610313611782565b61032d611788565b61049c6117ea565b6103136117f9565b610313600480360360208110156106c357600080fd5b50356001600160a01b03166117ff565b610337611857565b61032d600480360360208110156106f157600080fd5b50356001600160a01b03166118b2565b61041f6004803603604081101561071757600080fd5b506001600160a01b038135169060200135611921565b61032d6004803603602081101561074357600080fd5b50356001600160a01b0316611938565b6103d86004803603604081101561076957600080fd5b508035906020013515156119a7565b61041f6004803603602081101561078e57600080fd5b50356001600160a01b0316611af6565b61032d600480360360208110156107b457600080fd5b5035611b0b565b610313611bab565b610313611bb1565b610313611bb7565b610313600480360360408110156107e957600080fd5b506001600160a01b0381358116916020013516611bbd565b610313611be8565b61032d6004803603604081101561081f57600080fd5b81019060208101813564010000000081111561083a57600080fd5b82018360208201111561084c57600080fd5b8035906020019184602083028401116401000000008311171561086e57600080fd5b91939092909160208101903564010000000081111561088c57600080fd5b82018360208201111561089e57600080fd5b803590602001918460208302840111640100000000831117156108c057600080fd5b509092509050611bee565b610313600480360360208110156108e157600080fd5b50356001600160a01b0316611cf6565b610313611d01565b6003546000908061090d5782915050610941565b6000610917611d07565b905080610928578392505050610941565b61093c826109368684611d9a565b90611df3565b925050505b919050565b600a546001600160a01b03163314610993576040805162461bcd60e51b815260206004820152601b60248201526000805160206132e9833981519152604482015290519081900360640190fd5b600b805460ff60a81b1916600160a81b179055565b6004805460408051602060026001851615610100026000190190941693909304601f81018490048402820184019092528181529291830182828015610a2e5780601f10610a0357610100808354040283529160200191610a2e565b820191906000526020600020905b815481529060010190602001808311610a1157829003601f168201915b505050505081565b60008060026000541415610a7f576040805162461bcd60e51b815260206004820152601f60248201526000805160206132c9833981519152604482015290519081900360640190fd5b6002600055600b546001600160a01b03163314610ae3576040805162461bcd60e51b815260206004820152601960248201527f4641524d545245415355525956313a20216661726d426f737300000000000000604482015290519081900360640190fd5b600b54600160a01b900460ff1615610b3b576040805162461bcd60e51b8152602060048201526016602482015275119054935514915054d55496558c4e881c185d5cd95960521b604482015290519081900360640190fd5b8315610c8d57601154601254610b52904290611e5a565b1015610b8f5760405162461bcd60e51b81526004018080602001828103825260248152602001806134366024913960400191505060405180910390fd5b83610bad612710610936601054601554611d9a90919063ffffffff16565b1015610bea5760405162461bcd60e51b81526004018080602001828103825260298152602001806133c06029913960400191505060405180910390fd5b601554610bf79085611eb7565b6015556000610c068585611f11565b90506000610c138561206a565b9050426012819055507f133173a0deb39808464c88239fe745075919e0093d1a15670d29eaade2f5dbca60018742610c49611d07565b6003546040805195151586526020860194909452848401929092526060840152608083015260a0820185905260c08201849052519081900360e00190a15050610cf8565b7f133173a0deb39808464c88239fe745075919e0093d1a15670d29eaade2f5dbca60018542610cba611d07565b60035460408051951515865260208601949094528484019290925260608401526080830152600060a0830181905260c0830152519081900360e00190a15b600080610d0361220b565b91509150610d1182826122f9565b90925090505b600160005590939092509050565b6000610d32338484612583565b5060015b92915050565b600a546001600160a01b03163314610d89576040805162461bcd60e51b815260206004820152601b60248201526000805160206132e9833981519152604482015290519081900360640190fd5b6127108110610dd8576040805162461bcd60e51b815260206004820152601660248201527508c82a49aa8a48a82a6aaa4b2ac6274407c7a40dac2f60531b604482015290519081900360640190fd5b601055565b60086020526000908152604090208054600182015460029092015490919083565b6007546001600160a01b031681565b6000610e17611d07565b905090565b600a546001600160a01b03163314610e69576040805162461bcd60e51b815260206004820152601b60248201526000805160206132e9833981519152604482015290519081900360640190fd5b62093a80811115610ec1576040805162461bcd60e51b815260206004820152601860248201527f4641524d545245415355525956313a203e2031207765656b0000000000000000604482015290519081900360640190fd5b601155565b6000610ed28483612695565b6001600160a01b038416600090815260026020908152604080832033845290915290205482811015610f355760405162461bcd60e51b815260040180806020018281038252602181526020018061345a6021913960400191505060405180910390fd5b610f40858585612743565b610f548533610f4f8487611e5a565b612583565b60019150505b9392505050565b60125481565b60026000541415610fad576040805162461bcd60e51b815260206004820152601f60248201526000805160206132c9833981519152604482015290519081900360640190fd5b600260005580611004576040805162461bcd60e51b815260206004820152601b60248201527f4641524d545245415355525956313a20616d6f756e74203d3d20300000000000604482015290519081900360640190fd5b600b54600160a01b900460ff161561105c576040805162461bcd60e51b8152602060048201526016602482015275119054935514915054d55496558c4e881c185d5cd95960521b604482015290519081900360640190fd5b6110658161279a565b60075461107c906001600160a01b031633836128d3565b506001600055565b600754600160a01b900460ff1681565b60035481565b600a546001600160a01b031633146110e7576040805162461bcd60e51b815260206004820152601b60248201526000805160206132e9833981519152604482015290519081900360640190fd5b600b805460ff60a01b19169055565b600a546001600160a01b03163314611143576040805162461bcd60e51b815260206004820152601b60248201526000805160206132e9833981519152604482015290519081900360640190fd5b625c490081111561119b576040805162461bcd60e51b815260206004820152601d60248201527f4641524d545245415355525956313a20746f6f206c6f6e672077616974000000604482015290519081900360640190fd5b601355565b600a546001600160a01b031633146111ed576040805162461bcd60e51b815260206004820152601b60248201526000805160206132e9833981519152604482015290519081900360640190fd5b6127106111fa8585611eb7565b106112365760405162461bcd60e51b815260040180806020018281038252602481526020018061347b6024913960400191505060405180910390fd5b6101f46112438383611eb7565b1115611296576040805162461bcd60e51b815260206004820152601d60248201527f4641524d545245415355525956313a20746f6f20686967682062617365000000604482015290519081900360640190fd5b600c93909355600d91909155600e55600f55565b6000806112b5611d07565b9050806112c55782915050610941565b60035480610928578392505050610941565b600a546001600160a01b031681565b600b54600160a01b900460ff1681565b60145481565b600b54600160a81b900460ff1681565b600a546001600160a01b03163314611359576040805162461bcd60e51b815260206004820152601b60248201526000805160206132e9833981519152604482015290519081900360640190fd5b600b805460ff60a81b19169055565b60155481565b61271081565b600260005414156113ba576040805162461bcd60e51b815260206004820152601f60248201526000805160206132c9833981519152604482015290519081900360640190fd5b600260005581611411576040805162461bcd60e51b815260206004820152601b60248201527f4641524d545245415355525956313a20616d6f756e74203d3d20300000000000604482015290519081900360640190fd5b600b54600160a01b900460ff161580156114355750600b54600160a81b900460ff16155b61147f576040805162461bcd60e51b8152602060048201526016602482015275119054935514915054d55496558c4e881c185d5cd95960521b604482015290519081900360640190fd5b611489828261292a565b600754604080516370a0823160e01b815230600482015290516001600160a01b039092169160009183916370a0823191602480820192602092909190829003018186803b1580156114d957600080fd5b505afa1580156114ed573d6000803e3d6000fd5b505050506040513d602081101561150357600080fd5b5051905061151c6001600160a01b038316333087612a14565b6000826001600160a01b03166370a08231306040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b15801561156b57600080fd5b505afa15801561157f573d6000803e3d6000fd5b505050506040513d602081101561159557600080fd5b5051905060006115a58284611e5a565b9050858110156115fc576040805162461bcd60e51b815260206004820152601c60248201527f4641524d545245415355525956313a20626164207472616e7366657200000000604482015290519081900360640190fd5b5050600160005550505050565b6006805460408051602060026001851615610100026000190190941693909304601f81018490048402820184019092528181529291830182828015610a2e5780601f10610a0357610100808354040283529160200191610a2e565b6000610d3661167283612a74565b6108f9565b600260005414156116bd576040805162461bcd60e51b815260206004820152601f60248201526000805160206132c9833981519152604482015290519081900360640190fd5b6002600055600a546001600160a01b0316331461170f576040805162461bcd60e51b815260206004820152601b60248201526000805160206132e9833981519152604482015290519081900360640190fd5b6001600160a01b0382161561173d57600a54611738906001600160a01b038481169116836128d3565b611779565b600a546040516001600160a01b039091169082156108fc029083906000818181858888f19350505050158015611777573d6000803e3d6000fd5b505b50506001600055565b600e5481565b600a546001600160a01b031633146117d5576040805162461bcd60e51b815260206004820152601b60248201526000805160206132e9833981519152604482015290519081900360640190fd5b600b805460ff60a01b1916600160a01b179055565b600b546001600160a01b031681565b60135481565b60006118096132a7565b506001600160a01b03821660009081526008602090815260409182902082516060810184528154808252600183015493820184905260029092015493810184905292610f5a92869291612a8f565b6005805460408051602060026001851615610100026000190190941693909304601f81018490048402820184019092528181529291830182828015610a2e5780601f10610a0357610100808354040283529160200191610a2e565b600a546001600160a01b031633146118ff576040805162461bcd60e51b815260206004820152601b60248201526000805160206132e9833981519152604482015290519081900360640190fd5b600b80546001600160a01b0319166001600160a01b0392909216919091179055565b600061192d3383612695565b610d32338484612743565b600a546001600160a01b03163314611985576040805162461bcd60e51b815260206004820152601b60248201526000805160206132e9833981519152604482015290519081900360640190fd5b600a80546001600160a01b0319166001600160a01b0392909216919091179055565b600080600260005414156119f0576040805162461bcd60e51b815260206004820152601f60248201526000805160206132c9833981519152604482015290519081900360640190fd5b6002600055600a546001600160a01b03163314611a42576040805162461bcd60e51b815260206004820152601b60248201526000805160206132e9833981519152604482015290519081900360640190fd5b601554611a4f9085611e5a565b6015558215611a7b57600080611a6361220b565b91509150611a7182826122f9565b9092509050610d17565b7f133173a0deb39808464c88239fe745075919e0093d1a15670d29eaade2f5dbca60008542611aa8611d07565b60035460408051951515865260208601949094528484019290925260608401526080830152600060a0830181905260c0830152519081900360e00190a1505060016000908155928392509050565b60096020526000908152604090205460ff1681565b600a546001600160a01b03163314611b58576040805162461bcd60e51b815260206004820152601b60248201526000805160206132e9833981519152604482015290519081900360640190fd5b6127108111158015611b6b575060648110155b611ba65760405162461bcd60e51b81526004018080602001828103825260258152602001806135206025913960400191505060405180910390fd5b601455565b600d5481565b600f5481565b60105481565b6001600160a01b03918216600090815260026020908152604080832093909416825291909152205490565b60115481565b600a546001600160a01b03163314611c3b576040805162461bcd60e51b815260206004820152601b60248201526000805160206132e9833981519152604482015290519081900360640190fd5b8281148015611c4b575060c88311155b611c865760405162461bcd60e51b81526004018080602001828103825260238152602001806133676023913960400191505060405180910390fd5b60005b83811015611cef57828282818110611c9d57fe5b90506020020135151560096000878785818110611cb657fe5b602090810292909201356001600160a01b0316835250810191909152604001600020805460ff1916911515919091179055600101611c89565b5050505050565b6000610d3682612a74565b600c5481565b600754604080516370a0823160e01b8152306004820152905160009283926001600160a01b03909116916370a0823191602480820192602092909190829003018186803b158015611d5757600080fd5b505afa158015611d6b573d6000803e3d6000fd5b505050506040513d6020811015611d8157600080fd5b5051601554909150611d938282611eb7565b9250505090565b600082611da957506000610d36565b82820282848281611db657fe5b0414610f5a5760405162461bcd60e51b81526004018080602001828103825260218152602001806134156021913960400191505060405180910390fd5b6000808211611e49576040805162461bcd60e51b815260206004820152601a60248201527f536166654d6174683a206469766973696f6e206279207a65726f000000000000604482015290519081900360640190fd5b818381611e5257fe5b049392505050565b600082821115611eb1576040805162461bcd60e51b815260206004820152601e60248201527f536166654d6174683a207375627472616374696f6e206f766572666c6f770000604482015290519081900360640190fd5b50900390565b600082820183811015610f5a576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b60035460009081611f20611d07565b90506000611f3f612710610936600d5489611d9a90919063ffffffff16565b90506000611f5e612710610936600c548a611d9a90919063ffffffff16565b90506000611f6c8383611eb7565b905080611f8157600095505050505050610d36565b6000611f8e828688612afc565b90506000611fa0836109368488611d9a565b90506000611fae8383611e5a565b9050611fba8a83612b1f565b600a54611fd0906001600160a01b031682612b1f565b6000611fdb836108f9565b90506000611fe8836108f9565b6040805184815290519192506001600160a01b038e169160009160008051602061349f833981519152919081900360200190a3600a546040805183815290516001600160a01b039092169160009160008051602061349f833981519152919081900360200190a36120598282611eb7565b9d9c50505050505050505050505050565b601254600090428110612081576000915050610941565b600061208d4283611e5a565b600354909150600061209d611d07565b905060006120b36301e133806109368487611d9a565b905060006120d2612710610936600f5485611d9a90919063ffffffff16565b905060006120f1612710610936600f5486611d9a90919063ffffffff16565b905060006120ff8383611eb7565b90508061211757600098505050505050505050610941565b6000612124828789612afc565b90506000612136836109368488611d9a565b905060006121448383611e5a565b90506121508d83612b1f565b600a54612166906001600160a01b031682612b1f565b6000612171836108f9565b9050600061217e836108f9565b90508e6001600160a01b031660006001600160a01b031660008051602061349f833981519152846040518082815260200191505060405180910390a3600a546040805183815290516001600160a01b039092169160009160008051602061349f833981519152919081900360200190a36121f88282611eb7565b9f9e505050505050505050505050505050565b600754604080516370a0823160e01b81523060048201529051600092839283926001600160a01b03909216916370a0823191602480820192602092909190829003018186803b15801561225d57600080fd5b505afa158015612271573d6000803e3d6000fd5b505050506040513d602081101561228757600080fd5b5051601554909150600061229b8383611eb7565b905060006122ba61271061093660145485611d9a90919063ffffffff16565b90508084106122dc5760006122cf8583611e5a565b95509550505050506122f5565b808410156122f05760016122cf8286611e5a565b505050505b9091565b81156124b457600754604080516370a0823160e01b815230600482015290516000926001600160a01b0316916370a08231916024808301926020929190829003018186803b15801561234a57600080fd5b505afa15801561235e573d6000803e3d6000fd5b505050506040513d602081101561237457600080fd5b5051600b54600754919250612397916001600160a01b0390811691163085612a14565b600754604080516370a0823160e01b815230600482015290516000926001600160a01b0316916370a08231916024808301926020929190829003018186803b1580156123e257600080fd5b505afa1580156123f6573d6000803e3d6000fd5b505050506040513d602081101561240c57600080fd5b50519050600061241c8284611e5a565b90508381101561245d5760405162461bcd60e51b81526004018080602001828103825260368152602001806133096036913960400191505060405180910390fd5b60155461246a9085611e5a565b6015556040805185815260006020820152428183015290517f18a2e1f028d901921e131f7cfb6ec21bbee608f341e3ba9f27b971ccc98738ba9181900360600190a150505061257f565b600b546001600160a01b0316612511576040805162461bcd60e51b815260206004820152601960248201527f4641524d545245415355525956313a20214661726d426f737300000000000000604482015290519081900360640190fd5b600b5460075461252e916001600160a01b039182169116836128d3565b60155461253b9082611eb7565b601555604080516000815260208101839052428183015290517f18a2e1f028d901921e131f7cfb6ec21bbee608f341e3ba9f27b971ccc98738ba9181900360600190a15b5050565b6001600160a01b0383166125de576040805162461bcd60e51b815260206004820152601860248201527f4641524d544f4b454e56313a2066726f6d203d3d203078300000000000000000604482015290519081900360640190fd5b6001600160a01b038216612633576040805162461bcd60e51b815260206004820152601760248201527604641524d544f4b454e56313a20746f203d3d203078303604c1b604482015290519081900360640190fd5b6001600160a01b03808416600081815260026020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b61269d6132a7565b506001600160a01b038216600090815260086020908152604080832081516060810183528154808252600183015494820185905260029092015492810183905293926126ec9287929190612a8f565b905060006126f985611664565b9050816127068286611e5a565b1015611cef5760405162461bcd60e51b815260040180806020018281038252603681526020018061338a6036913960400191505060405180910390fd5b600061274e826112aa565b905061275b848483612bc7565b826001600160a01b0316846001600160a01b031660008051602061349f833981519152846040518082815260200191505060405180910390a350505050565b6127a43382612695565b600754604080516370a0823160e01b8152306004820152905183926001600160a01b0316916370a08231916024808301926020929190829003018186803b1580156127ee57600080fd5b505afa158015612802573d6000803e3d6000fd5b505050506040513d602081101561281857600080fd5b505110156128575760405162461bcd60e51b81526004018080602001828103825260618152602001806134bf6061913960800191505060405180910390fd5b6000612862826112aa565b905061286e3382612d2a565b604080518381529051600091339160008051602061349f8339815191529181900360200190a3604080513381526020810184905281517f884edad9ce6fa2440d8a54cc123490eb96d2768479d49ff9c7366125a9424364929181900390910190a15050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052612925908490612e18565b505050565b6000612935836112aa565b90506129413382612b1f565b61294b3384612ec9565b6001600160a01b03821633146129a85760408051338152602081018590526001600160a01b0384168183015290517fe31c7b8d08ee7db0afa68782e1028ef92305caeea8626633ad44d413e30f6b2f9181900360600190a16129e9565b604080513381526020810185905260008183015290517fe31c7b8d08ee7db0afa68782e1028ef92305caeea8626633ad44d413e30f6b2f9181900360600190a15b604080518481529051339160009160008051602061349f8339815191529181900360200190a3505050565b604080516001600160a01b0380861660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b179052612a6e908590612e18565b50505050565b6001600160a01b031660009081526001602052604090205490565b60004282111580612ab857506001600160a01b03851660009081526009602052604090205460ff165b15612ac557506000612af4565b6000612ad18342611e5a565b90506000612adf8486611e5a565b9050612aef816109368885611d9a565b925050505b949350505050565b6000612af482612b19612b0f8688611e5a565b6109368688611d9a565b90611e5a565b6001600160a01b038216612b74576040805162461bcd60e51b815260206004820152601760248201527604641524d544f4b454e56313a20746f203d3d203078303604c1b604482015290519081900360640190fd5b600354612b819082611eb7565b6003556001600160a01b038216600090815260016020526040902054612ba79082611eb7565b6001600160a01b0390921660009081526001602052604090209190915550565b6001600160a01b038316612c22576040805162461bcd60e51b815260206004820152601960248201527f4641524d544f4b454e56313a2066726f6d203d3d203078303000000000000000604482015290519081900360640190fd5b6001600160a01b038216612c77576040805162461bcd60e51b815260206004820152601760248201527604641524d544f4b454e56313a20746f203d3d203078303604c1b604482015290519081900360640190fd5b6001600160a01b03831660009081526001602052604090205480821115612ccf5760405162461bcd60e51b815260040180806020018281038252602c8152602001806133e9602c913960400191505060405180910390fd5b612cd98183611e5a565b6001600160a01b038086166000908152600160205260408082209390935590851681522054612d089083611eb7565b6001600160a01b03909316600090815260016020526040902092909255505050565b6001600160a01b038216612d85576040805162461bcd60e51b815260206004820152601e60248201527f4641524d544f4b454e56313a206275726e2066726f6d203d3d20307830300000604482015290519081900360640190fd5b6001600160a01b03821660009081526001602052604090205480821115612ddd5760405162461bcd60e51b815260040180806020018281038252602881526020018061333f6028913960400191505060405180910390fd5b600354612dea9083611e5a565b600355612df78183611e5a565b6001600160a01b039093166000908152600160205260409020929092555050565b6060612e6d826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166130e29092919063ffffffff16565b80519091501561292557808060200190516020811015612e8c57600080fd5b50516129255760405162461bcd60e51b815260040180806020018281038252602a815260200180613545602a913960400191505060405180910390fd5b612ed16132a7565b506001600160a01b038216600090815260086020908152604091829020825160608101845281548152600182015492810183905260029091015492810192909252612f8457612f1e6132a7565b6040518060600160405280848152602001428152602001612f4a60135442611eb790919063ffffffff16565b90526001600160a01b0385166000908152600860209081526040918290208351815590830151600182015591015160029091015550612925565b6000612f9e84836000015184602001518560400151612a8f565b90508061301357612fad6132a7565b6040518060600160405280858152602001428152602001612fd960135442611eb790919063ffffffff16565b90526001600160a01b0386166000908152600860209081526040918290208351815590830151600182015591015160029091015550612a6e565b600061303661302f428560400151611e5a90919063ffffffff16565b8390611d9a565b9050600061304f60135486611d9a90919063ffffffff16565b9050600061305d8685611eb7565b9050600061306f826109368686611eb7565b90506130796132a7565b60405180606001604052808481526020014281526020016130a38442611eb790919063ffffffff16565b90526001600160a01b038a1660009081526008602090815260409182902083518155908301516001820155910151600290910155505050505050505050565b6060612af48484600085856130f6856131fd565b613147576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b602083106131865780518252601f199092019160209182019101613167565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d80600081146131e8576040519150601f19603f3d011682016040523d82523d6000602084013e6131ed565b606091505b5091509150612aef828286613203565b3b151590565b60608315613212575081610f5a565b8251156132225782518084602001fd5b8160405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561326c578181015183820152602001613254565b50505050905090810190601f1680156132995780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b6040518060600160405280600081526020016000815260200160008152509056fe5265656e7472616e637947756172643a207265656e7472616e742063616c6c004641524d545245415355525956313a2021676f7665726e616e636500000000004641524d545245415355525956313a2062616420726562616c616e63652c20686f742077616c6c6574206e656564732066756e6473214641524d544f4b454e56313a206275726e20616d6f756e7420657863656564732062616c616e63654641524d545245415355525956313a20636865636b206172726179206c656e677468734641524d545245415355525956313a207265717565737465642066756e6473206172652074656d706f726172696c79206c6f636b65644641524d54524541535552595631205f616d6f756e74203e20726562616c616e636555704c696d69744641524d544f4b454e56313a207472616e7366657220616d6f756e7420657863656564732062616c616e6365536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f774641524d545245415355525956313a203c726562616c616e636555705761697454696d654641524d544f4b454e56313a206e6f7420656e6f75676820616c6c6f77616e63654641524d545245415355525956313a20746f6f206869676820706572666f726d616e6365ddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef4641524d545245415355525956313a20486f742077616c6c65742062616c616e6365206465706c657465642e20506c656173652074727920736d616c6c6572207769746864726177206f72207761697420666f7220726562616c616e63696e672e4641524d545245415355525956313a20686f742077616c6c65742076616c756573206261645361666545524332303a204552433230206f7065726174696f6e20646964206e6f742073756363656564a2646970667358221220748799ff5ac245ec05b02035f4f2f0f3eb7e1479644656d743198353023dea1664736f6c634300060c0033000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000080000000000000000000000002260fac5e5542a773aa44fbcfedf7c193bc2c59900000000000000000000000000000000000000000000000000000000000000045742544300000000000000000000000000000000000000000000000000000000

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106102f15760003560e01c80636ac5db191161019d578063ab033ea9116100e9578063d5836ce8116100a2578063e54542b21161007c578063e54542b214610801578063ed3efad514610809578063f5eb42dc146108cb578063fb6cc882146108f1576102f1565b8063d5836ce8146107c3578063dd2a1eab146107cb578063dd62ed3e146107d3576102f1565b8063ab033ea91461072d578063b0f122c114610753578063b4f82fdc14610778578063b76e6be21461079e578063c70920bc146104b8578063c7c863f0146107bb576102f1565b80638456cb5911610156578063929ec53711610130578063929ec537146106ad57806395d89b41146106d35780639b0fbe49146106db578063a9059cbb14610701576102f1565b80638456cb5914610695578063852b19011461069d5780638e26c09d146106a5576102f1565b80636ac5db19146105ff5780636e553f65146106075780636f307dc31461063357806370a082311461063b5780637a4e4ecf146106615780637f7d9a061461068d576102f1565b80632e1a7d4d1161025c5780634e118982116102155780635dfbaeaf116101ef5780635dfbaeaf146105df5780636068d6cb146105e757806363d8882a146105ef5780636a62dd54146105f7576102f1565b80634e118982146105b25780635aa6e675146105cf5780635c975abb146105d7576102f1565b80632e1a7d4d1461051b578063313ce567146105385780633a98ef39146105565780633f4ba83a1461055e57806347662b38146105665780634aa3c30214610583576102f1565b80630ba36dcd116102ae5780630ba36dcd1461045057806310cfe9061461049457806318160ddd146104b8578063222a528f146104c057806323b872dd146104dd5780632676440e14610513576102f1565b8063013a6edd146102f6578063021919801461032557806306fdde031461032f57806307336908146103ac578063095ea7b3146103f35780630b598a6814610433575b600080fd5b6103136004803603602081101561030c57600080fd5b50356108f9565b60408051918252519081900360200190f35b61032d610946565b005b6103376109a8565b6040805160208082528351818301528351919283929083019185019080838360005b83811015610371578181015183820152602001610359565b50505050905090810190601f16801561039e5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6103d8600480360360408110156103c257600080fd5b50803590602001356001600160a01b0316610a36565b60408051921515835260208301919091528051918290030190f35b61041f6004803603604081101561040957600080fd5b506001600160a01b038135169060200135610d25565b604080519115158252519081900360200190f35b61032d6004803603602081101561044957600080fd5b5035610d3c565b6104766004803603602081101561046657600080fd5b50356001600160a01b0316610ddd565b60408051938452602084019290925282820152519081900360600190f35b61049c610dfe565b604080516001600160a01b039092168252519081900360200190f35b610313610e0d565b61032d600480360360208110156104d657600080fd5b5035610e1c565b61041f600480360360608110156104f357600080fd5b506001600160a01b03813581169160208101359091169060400135610ec6565b610313610f61565b61032d6004803603602081101561053157600080fd5b5035610f67565b610540611084565b6040805160ff9092168252519081900360200190f35b610313611094565b61032d61109a565b61032d6004803603602081101561057c57600080fd5b50356110f6565b61032d6004803603608081101561059957600080fd5b50803590602081013590604081013590606001356111a0565b610313600480360360208110156105c857600080fd5b50356112aa565b61049c6112d7565b61041f6112e6565b6103136112f6565b61041f6112fc565b61032d61130c565b610313611368565b61031361136e565b61032d6004803603604081101561061d57600080fd5b50803590602001356001600160a01b0316611374565b610337611609565b6103136004803603602081101561065157600080fd5b50356001600160a01b0316611664565b61032d6004803603604081101561067757600080fd5b506001600160a01b038135169060200135611677565b610313611782565b61032d611788565b61049c6117ea565b6103136117f9565b610313600480360360208110156106c357600080fd5b50356001600160a01b03166117ff565b610337611857565b61032d600480360360208110156106f157600080fd5b50356001600160a01b03166118b2565b61041f6004803603604081101561071757600080fd5b506001600160a01b038135169060200135611921565b61032d6004803603602081101561074357600080fd5b50356001600160a01b0316611938565b6103d86004803603604081101561076957600080fd5b508035906020013515156119a7565b61041f6004803603602081101561078e57600080fd5b50356001600160a01b0316611af6565b61032d600480360360208110156107b457600080fd5b5035611b0b565b610313611bab565b610313611bb1565b610313611bb7565b610313600480360360408110156107e957600080fd5b506001600160a01b0381358116916020013516611bbd565b610313611be8565b61032d6004803603604081101561081f57600080fd5b81019060208101813564010000000081111561083a57600080fd5b82018360208201111561084c57600080fd5b8035906020019184602083028401116401000000008311171561086e57600080fd5b91939092909160208101903564010000000081111561088c57600080fd5b82018360208201111561089e57600080fd5b803590602001918460208302840111640100000000831117156108c057600080fd5b509092509050611bee565b610313600480360360208110156108e157600080fd5b50356001600160a01b0316611cf6565b610313611d01565b6003546000908061090d5782915050610941565b6000610917611d07565b905080610928578392505050610941565b61093c826109368684611d9a565b90611df3565b925050505b919050565b600a546001600160a01b03163314610993576040805162461bcd60e51b815260206004820152601b60248201526000805160206132e9833981519152604482015290519081900360640190fd5b600b805460ff60a81b1916600160a81b179055565b6004805460408051602060026001851615610100026000190190941693909304601f81018490048402820184019092528181529291830182828015610a2e5780601f10610a0357610100808354040283529160200191610a2e565b820191906000526020600020905b815481529060010190602001808311610a1157829003601f168201915b505050505081565b60008060026000541415610a7f576040805162461bcd60e51b815260206004820152601f60248201526000805160206132c9833981519152604482015290519081900360640190fd5b6002600055600b546001600160a01b03163314610ae3576040805162461bcd60e51b815260206004820152601960248201527f4641524d545245415355525956313a20216661726d426f737300000000000000604482015290519081900360640190fd5b600b54600160a01b900460ff1615610b3b576040805162461bcd60e51b8152602060048201526016602482015275119054935514915054d55496558c4e881c185d5cd95960521b604482015290519081900360640190fd5b8315610c8d57601154601254610b52904290611e5a565b1015610b8f5760405162461bcd60e51b81526004018080602001828103825260248152602001806134366024913960400191505060405180910390fd5b83610bad612710610936601054601554611d9a90919063ffffffff16565b1015610bea5760405162461bcd60e51b81526004018080602001828103825260298152602001806133c06029913960400191505060405180910390fd5b601554610bf79085611eb7565b6015556000610c068585611f11565b90506000610c138561206a565b9050426012819055507f133173a0deb39808464c88239fe745075919e0093d1a15670d29eaade2f5dbca60018742610c49611d07565b6003546040805195151586526020860194909452848401929092526060840152608083015260a0820185905260c08201849052519081900360e00190a15050610cf8565b7f133173a0deb39808464c88239fe745075919e0093d1a15670d29eaade2f5dbca60018542610cba611d07565b60035460408051951515865260208601949094528484019290925260608401526080830152600060a0830181905260c0830152519081900360e00190a15b600080610d0361220b565b91509150610d1182826122f9565b90925090505b600160005590939092509050565b6000610d32338484612583565b5060015b92915050565b600a546001600160a01b03163314610d89576040805162461bcd60e51b815260206004820152601b60248201526000805160206132e9833981519152604482015290519081900360640190fd5b6127108110610dd8576040805162461bcd60e51b815260206004820152601660248201527508c82a49aa8a48a82a6aaa4b2ac6274407c7a40dac2f60531b604482015290519081900360640190fd5b601055565b60086020526000908152604090208054600182015460029092015490919083565b6007546001600160a01b031681565b6000610e17611d07565b905090565b600a546001600160a01b03163314610e69576040805162461bcd60e51b815260206004820152601b60248201526000805160206132e9833981519152604482015290519081900360640190fd5b62093a80811115610ec1576040805162461bcd60e51b815260206004820152601860248201527f4641524d545245415355525956313a203e2031207765656b0000000000000000604482015290519081900360640190fd5b601155565b6000610ed28483612695565b6001600160a01b038416600090815260026020908152604080832033845290915290205482811015610f355760405162461bcd60e51b815260040180806020018281038252602181526020018061345a6021913960400191505060405180910390fd5b610f40858585612743565b610f548533610f4f8487611e5a565b612583565b60019150505b9392505050565b60125481565b60026000541415610fad576040805162461bcd60e51b815260206004820152601f60248201526000805160206132c9833981519152604482015290519081900360640190fd5b600260005580611004576040805162461bcd60e51b815260206004820152601b60248201527f4641524d545245415355525956313a20616d6f756e74203d3d20300000000000604482015290519081900360640190fd5b600b54600160a01b900460ff161561105c576040805162461bcd60e51b8152602060048201526016602482015275119054935514915054d55496558c4e881c185d5cd95960521b604482015290519081900360640190fd5b6110658161279a565b60075461107c906001600160a01b031633836128d3565b506001600055565b600754600160a01b900460ff1681565b60035481565b600a546001600160a01b031633146110e7576040805162461bcd60e51b815260206004820152601b60248201526000805160206132e9833981519152604482015290519081900360640190fd5b600b805460ff60a01b19169055565b600a546001600160a01b03163314611143576040805162461bcd60e51b815260206004820152601b60248201526000805160206132e9833981519152604482015290519081900360640190fd5b625c490081111561119b576040805162461bcd60e51b815260206004820152601d60248201527f4641524d545245415355525956313a20746f6f206c6f6e672077616974000000604482015290519081900360640190fd5b601355565b600a546001600160a01b031633146111ed576040805162461bcd60e51b815260206004820152601b60248201526000805160206132e9833981519152604482015290519081900360640190fd5b6127106111fa8585611eb7565b106112365760405162461bcd60e51b815260040180806020018281038252602481526020018061347b6024913960400191505060405180910390fd5b6101f46112438383611eb7565b1115611296576040805162461bcd60e51b815260206004820152601d60248201527f4641524d545245415355525956313a20746f6f20686967682062617365000000604482015290519081900360640190fd5b600c93909355600d91909155600e55600f55565b6000806112b5611d07565b9050806112c55782915050610941565b60035480610928578392505050610941565b600a546001600160a01b031681565b600b54600160a01b900460ff1681565b60145481565b600b54600160a81b900460ff1681565b600a546001600160a01b03163314611359576040805162461bcd60e51b815260206004820152601b60248201526000805160206132e9833981519152604482015290519081900360640190fd5b600b805460ff60a81b19169055565b60155481565b61271081565b600260005414156113ba576040805162461bcd60e51b815260206004820152601f60248201526000805160206132c9833981519152604482015290519081900360640190fd5b600260005581611411576040805162461bcd60e51b815260206004820152601b60248201527f4641524d545245415355525956313a20616d6f756e74203d3d20300000000000604482015290519081900360640190fd5b600b54600160a01b900460ff161580156114355750600b54600160a81b900460ff16155b61147f576040805162461bcd60e51b8152602060048201526016602482015275119054935514915054d55496558c4e881c185d5cd95960521b604482015290519081900360640190fd5b611489828261292a565b600754604080516370a0823160e01b815230600482015290516001600160a01b039092169160009183916370a0823191602480820192602092909190829003018186803b1580156114d957600080fd5b505afa1580156114ed573d6000803e3d6000fd5b505050506040513d602081101561150357600080fd5b5051905061151c6001600160a01b038316333087612a14565b6000826001600160a01b03166370a08231306040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b15801561156b57600080fd5b505afa15801561157f573d6000803e3d6000fd5b505050506040513d602081101561159557600080fd5b5051905060006115a58284611e5a565b9050858110156115fc576040805162461bcd60e51b815260206004820152601c60248201527f4641524d545245415355525956313a20626164207472616e7366657200000000604482015290519081900360640190fd5b5050600160005550505050565b6006805460408051602060026001851615610100026000190190941693909304601f81018490048402820184019092528181529291830182828015610a2e5780601f10610a0357610100808354040283529160200191610a2e565b6000610d3661167283612a74565b6108f9565b600260005414156116bd576040805162461bcd60e51b815260206004820152601f60248201526000805160206132c9833981519152604482015290519081900360640190fd5b6002600055600a546001600160a01b0316331461170f576040805162461bcd60e51b815260206004820152601b60248201526000805160206132e9833981519152604482015290519081900360640190fd5b6001600160a01b0382161561173d57600a54611738906001600160a01b038481169116836128d3565b611779565b600a546040516001600160a01b039091169082156108fc029083906000818181858888f19350505050158015611777573d6000803e3d6000fd5b505b50506001600055565b600e5481565b600a546001600160a01b031633146117d5576040805162461bcd60e51b815260206004820152601b60248201526000805160206132e9833981519152604482015290519081900360640190fd5b600b805460ff60a01b1916600160a01b179055565b600b546001600160a01b031681565b60135481565b60006118096132a7565b506001600160a01b03821660009081526008602090815260409182902082516060810184528154808252600183015493820184905260029092015493810184905292610f5a92869291612a8f565b6005805460408051602060026001851615610100026000190190941693909304601f81018490048402820184019092528181529291830182828015610a2e5780601f10610a0357610100808354040283529160200191610a2e565b600a546001600160a01b031633146118ff576040805162461bcd60e51b815260206004820152601b60248201526000805160206132e9833981519152604482015290519081900360640190fd5b600b80546001600160a01b0319166001600160a01b0392909216919091179055565b600061192d3383612695565b610d32338484612743565b600a546001600160a01b03163314611985576040805162461bcd60e51b815260206004820152601b60248201526000805160206132e9833981519152604482015290519081900360640190fd5b600a80546001600160a01b0319166001600160a01b0392909216919091179055565b600080600260005414156119f0576040805162461bcd60e51b815260206004820152601f60248201526000805160206132c9833981519152604482015290519081900360640190fd5b6002600055600a546001600160a01b03163314611a42576040805162461bcd60e51b815260206004820152601b60248201526000805160206132e9833981519152604482015290519081900360640190fd5b601554611a4f9085611e5a565b6015558215611a7b57600080611a6361220b565b91509150611a7182826122f9565b9092509050610d17565b7f133173a0deb39808464c88239fe745075919e0093d1a15670d29eaade2f5dbca60008542611aa8611d07565b60035460408051951515865260208601949094528484019290925260608401526080830152600060a0830181905260c0830152519081900360e00190a1505060016000908155928392509050565b60096020526000908152604090205460ff1681565b600a546001600160a01b03163314611b58576040805162461bcd60e51b815260206004820152601b60248201526000805160206132e9833981519152604482015290519081900360640190fd5b6127108111158015611b6b575060648110155b611ba65760405162461bcd60e51b81526004018080602001828103825260258152602001806135206025913960400191505060405180910390fd5b601455565b600d5481565b600f5481565b60105481565b6001600160a01b03918216600090815260026020908152604080832093909416825291909152205490565b60115481565b600a546001600160a01b03163314611c3b576040805162461bcd60e51b815260206004820152601b60248201526000805160206132e9833981519152604482015290519081900360640190fd5b8281148015611c4b575060c88311155b611c865760405162461bcd60e51b81526004018080602001828103825260238152602001806133676023913960400191505060405180910390fd5b60005b83811015611cef57828282818110611c9d57fe5b90506020020135151560096000878785818110611cb657fe5b602090810292909201356001600160a01b0316835250810191909152604001600020805460ff1916911515919091179055600101611c89565b5050505050565b6000610d3682612a74565b600c5481565b600754604080516370a0823160e01b8152306004820152905160009283926001600160a01b03909116916370a0823191602480820192602092909190829003018186803b158015611d5757600080fd5b505afa158015611d6b573d6000803e3d6000fd5b505050506040513d6020811015611d8157600080fd5b5051601554909150611d938282611eb7565b9250505090565b600082611da957506000610d36565b82820282848281611db657fe5b0414610f5a5760405162461bcd60e51b81526004018080602001828103825260218152602001806134156021913960400191505060405180910390fd5b6000808211611e49576040805162461bcd60e51b815260206004820152601a60248201527f536166654d6174683a206469766973696f6e206279207a65726f000000000000604482015290519081900360640190fd5b818381611e5257fe5b049392505050565b600082821115611eb1576040805162461bcd60e51b815260206004820152601e60248201527f536166654d6174683a207375627472616374696f6e206f766572666c6f770000604482015290519081900360640190fd5b50900390565b600082820183811015610f5a576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b60035460009081611f20611d07565b90506000611f3f612710610936600d5489611d9a90919063ffffffff16565b90506000611f5e612710610936600c548a611d9a90919063ffffffff16565b90506000611f6c8383611eb7565b905080611f8157600095505050505050610d36565b6000611f8e828688612afc565b90506000611fa0836109368488611d9a565b90506000611fae8383611e5a565b9050611fba8a83612b1f565b600a54611fd0906001600160a01b031682612b1f565b6000611fdb836108f9565b90506000611fe8836108f9565b6040805184815290519192506001600160a01b038e169160009160008051602061349f833981519152919081900360200190a3600a546040805183815290516001600160a01b039092169160009160008051602061349f833981519152919081900360200190a36120598282611eb7565b9d9c50505050505050505050505050565b601254600090428110612081576000915050610941565b600061208d4283611e5a565b600354909150600061209d611d07565b905060006120b36301e133806109368487611d9a565b905060006120d2612710610936600f5485611d9a90919063ffffffff16565b905060006120f1612710610936600f5486611d9a90919063ffffffff16565b905060006120ff8383611eb7565b90508061211757600098505050505050505050610941565b6000612124828789612afc565b90506000612136836109368488611d9a565b905060006121448383611e5a565b90506121508d83612b1f565b600a54612166906001600160a01b031682612b1f565b6000612171836108f9565b9050600061217e836108f9565b90508e6001600160a01b031660006001600160a01b031660008051602061349f833981519152846040518082815260200191505060405180910390a3600a546040805183815290516001600160a01b039092169160009160008051602061349f833981519152919081900360200190a36121f88282611eb7565b9f9e505050505050505050505050505050565b600754604080516370a0823160e01b81523060048201529051600092839283926001600160a01b03909216916370a0823191602480820192602092909190829003018186803b15801561225d57600080fd5b505afa158015612271573d6000803e3d6000fd5b505050506040513d602081101561228757600080fd5b5051601554909150600061229b8383611eb7565b905060006122ba61271061093660145485611d9a90919063ffffffff16565b90508084106122dc5760006122cf8583611e5a565b95509550505050506122f5565b808410156122f05760016122cf8286611e5a565b505050505b9091565b81156124b457600754604080516370a0823160e01b815230600482015290516000926001600160a01b0316916370a08231916024808301926020929190829003018186803b15801561234a57600080fd5b505afa15801561235e573d6000803e3d6000fd5b505050506040513d602081101561237457600080fd5b5051600b54600754919250612397916001600160a01b0390811691163085612a14565b600754604080516370a0823160e01b815230600482015290516000926001600160a01b0316916370a08231916024808301926020929190829003018186803b1580156123e257600080fd5b505afa1580156123f6573d6000803e3d6000fd5b505050506040513d602081101561240c57600080fd5b50519050600061241c8284611e5a565b90508381101561245d5760405162461bcd60e51b81526004018080602001828103825260368152602001806133096036913960400191505060405180910390fd5b60155461246a9085611e5a565b6015556040805185815260006020820152428183015290517f18a2e1f028d901921e131f7cfb6ec21bbee608f341e3ba9f27b971ccc98738ba9181900360600190a150505061257f565b600b546001600160a01b0316612511576040805162461bcd60e51b815260206004820152601960248201527f4641524d545245415355525956313a20214661726d426f737300000000000000604482015290519081900360640190fd5b600b5460075461252e916001600160a01b039182169116836128d3565b60155461253b9082611eb7565b601555604080516000815260208101839052428183015290517f18a2e1f028d901921e131f7cfb6ec21bbee608f341e3ba9f27b971ccc98738ba9181900360600190a15b5050565b6001600160a01b0383166125de576040805162461bcd60e51b815260206004820152601860248201527f4641524d544f4b454e56313a2066726f6d203d3d203078300000000000000000604482015290519081900360640190fd5b6001600160a01b038216612633576040805162461bcd60e51b815260206004820152601760248201527604641524d544f4b454e56313a20746f203d3d203078303604c1b604482015290519081900360640190fd5b6001600160a01b03808416600081815260026020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b61269d6132a7565b506001600160a01b038216600090815260086020908152604080832081516060810183528154808252600183015494820185905260029092015492810183905293926126ec9287929190612a8f565b905060006126f985611664565b9050816127068286611e5a565b1015611cef5760405162461bcd60e51b815260040180806020018281038252603681526020018061338a6036913960400191505060405180910390fd5b600061274e826112aa565b905061275b848483612bc7565b826001600160a01b0316846001600160a01b031660008051602061349f833981519152846040518082815260200191505060405180910390a350505050565b6127a43382612695565b600754604080516370a0823160e01b8152306004820152905183926001600160a01b0316916370a08231916024808301926020929190829003018186803b1580156127ee57600080fd5b505afa158015612802573d6000803e3d6000fd5b505050506040513d602081101561281857600080fd5b505110156128575760405162461bcd60e51b81526004018080602001828103825260618152602001806134bf6061913960800191505060405180910390fd5b6000612862826112aa565b905061286e3382612d2a565b604080518381529051600091339160008051602061349f8339815191529181900360200190a3604080513381526020810184905281517f884edad9ce6fa2440d8a54cc123490eb96d2768479d49ff9c7366125a9424364929181900390910190a15050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052612925908490612e18565b505050565b6000612935836112aa565b90506129413382612b1f565b61294b3384612ec9565b6001600160a01b03821633146129a85760408051338152602081018590526001600160a01b0384168183015290517fe31c7b8d08ee7db0afa68782e1028ef92305caeea8626633ad44d413e30f6b2f9181900360600190a16129e9565b604080513381526020810185905260008183015290517fe31c7b8d08ee7db0afa68782e1028ef92305caeea8626633ad44d413e30f6b2f9181900360600190a15b604080518481529051339160009160008051602061349f8339815191529181900360200190a3505050565b604080516001600160a01b0380861660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b179052612a6e908590612e18565b50505050565b6001600160a01b031660009081526001602052604090205490565b60004282111580612ab857506001600160a01b03851660009081526009602052604090205460ff165b15612ac557506000612af4565b6000612ad18342611e5a565b90506000612adf8486611e5a565b9050612aef816109368885611d9a565b925050505b949350505050565b6000612af482612b19612b0f8688611e5a565b6109368688611d9a565b90611e5a565b6001600160a01b038216612b74576040805162461bcd60e51b815260206004820152601760248201527604641524d544f4b454e56313a20746f203d3d203078303604c1b604482015290519081900360640190fd5b600354612b819082611eb7565b6003556001600160a01b038216600090815260016020526040902054612ba79082611eb7565b6001600160a01b0390921660009081526001602052604090209190915550565b6001600160a01b038316612c22576040805162461bcd60e51b815260206004820152601960248201527f4641524d544f4b454e56313a2066726f6d203d3d203078303000000000000000604482015290519081900360640190fd5b6001600160a01b038216612c77576040805162461bcd60e51b815260206004820152601760248201527604641524d544f4b454e56313a20746f203d3d203078303604c1b604482015290519081900360640190fd5b6001600160a01b03831660009081526001602052604090205480821115612ccf5760405162461bcd60e51b815260040180806020018281038252602c8152602001806133e9602c913960400191505060405180910390fd5b612cd98183611e5a565b6001600160a01b038086166000908152600160205260408082209390935590851681522054612d089083611eb7565b6001600160a01b03909316600090815260016020526040902092909255505050565b6001600160a01b038216612d85576040805162461bcd60e51b815260206004820152601e60248201527f4641524d544f4b454e56313a206275726e2066726f6d203d3d20307830300000604482015290519081900360640190fd5b6001600160a01b03821660009081526001602052604090205480821115612ddd5760405162461bcd60e51b815260040180806020018281038252602881526020018061333f6028913960400191505060405180910390fd5b600354612dea9083611e5a565b600355612df78183611e5a565b6001600160a01b039093166000908152600160205260409020929092555050565b6060612e6d826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166130e29092919063ffffffff16565b80519091501561292557808060200190516020811015612e8c57600080fd5b50516129255760405162461bcd60e51b815260040180806020018281038252602a815260200180613545602a913960400191505060405180910390fd5b612ed16132a7565b506001600160a01b038216600090815260086020908152604091829020825160608101845281548152600182015492810183905260029091015492810192909252612f8457612f1e6132a7565b6040518060600160405280848152602001428152602001612f4a60135442611eb790919063ffffffff16565b90526001600160a01b0385166000908152600860209081526040918290208351815590830151600182015591015160029091015550612925565b6000612f9e84836000015184602001518560400151612a8f565b90508061301357612fad6132a7565b6040518060600160405280858152602001428152602001612fd960135442611eb790919063ffffffff16565b90526001600160a01b0386166000908152600860209081526040918290208351815590830151600182015591015160029091015550612a6e565b600061303661302f428560400151611e5a90919063ffffffff16565b8390611d9a565b9050600061304f60135486611d9a90919063ffffffff16565b9050600061305d8685611eb7565b9050600061306f826109368686611eb7565b90506130796132a7565b60405180606001604052808481526020014281526020016130a38442611eb790919063ffffffff16565b90526001600160a01b038a1660009081526008602090815260409182902083518155908301516001820155910151600290910155505050505050505050565b6060612af48484600085856130f6856131fd565b613147576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b602083106131865780518252601f199092019160209182019101613167565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d80600081146131e8576040519150601f19603f3d011682016040523d82523d6000602084013e6131ed565b606091505b5091509150612aef828286613203565b3b151590565b60608315613212575081610f5a565b8251156132225782518084602001fd5b8160405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561326c578181015183820152602001613254565b50505050905090810190601f1680156132995780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b6040518060600160405280600081526020016000815260200160008152509056fe5265656e7472616e637947756172643a207265656e7472616e742063616c6c004641524d545245415355525956313a2021676f7665726e616e636500000000004641524d545245415355525956313a2062616420726562616c616e63652c20686f742077616c6c6574206e656564732066756e6473214641524d544f4b454e56313a206275726e20616d6f756e7420657863656564732062616c616e63654641524d545245415355525956313a20636865636b206172726179206c656e677468734641524d545245415355525956313a207265717565737465642066756e6473206172652074656d706f726172696c79206c6f636b65644641524d54524541535552595631205f616d6f756e74203e20726562616c616e636555704c696d69744641524d544f4b454e56313a207472616e7366657220616d6f756e7420657863656564732062616c616e6365536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f774641524d545245415355525956313a203c726562616c616e636555705761697454696d654641524d544f4b454e56313a206e6f7420656e6f75676820616c6c6f77616e63654641524d545245415355525956313a20746f6f206869676820706572666f726d616e6365ddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef4641524d545245415355525956313a20486f742077616c6c65742062616c616e6365206465706c657465642e20506c656173652074727920736d616c6c6572207769746864726177206f72207761697420666f7220726562616c616e63696e672e4641524d545245415355525956313a20686f742077616c6c65742076616c756573206261645361666545524332303a204552433230206f7065726174696f6e20646964206e6f742073756363656564a2646970667358221220748799ff5ac245ec05b02035f4f2f0f3eb7e1479644656d743198353023dea1664736f6c634300060c0033

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

000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000080000000000000000000000002260fac5e5542a773aa44fbcfedf7c193bc2c59900000000000000000000000000000000000000000000000000000000000000045742544300000000000000000000000000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : _nameUnderlying (string): WBTC
Arg [1] : _decimalsUnderlying (uint8): 8
Arg [2] : _underlying (address): 0x2260FAC5E5542a773Aa44fBCfeDf7C193bc2C599

-----Encoded View---------------
5 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000060
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000008
Arg [2] : 0000000000000000000000002260fac5e5542a773aa44fbcfedf7c193bc2c599
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000004
Arg [4] : 5742544300000000000000000000000000000000000000000000000000000000


Deployed Bytecode Sourcemap

33796:24057:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;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;28992:113::-;;;;;;;;;;;;;;;;-1:-1:-1;28992:113:0;-1:-1:-1;;;;;28992:113:0;;:::i;34596:43::-;;;:::i;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;;-1:-1:-1::0;;11068:1:0;12030:7;:22;-1:-1:-1;;;;39582:688:0:o;26432:24::-;;;;;;;;;;;;;;;-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;28992:113::-;29051:7;29078:19;29088:8;29078:9;:19::i;34596:43::-;;;;:::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;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;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;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;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;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;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://748799ff5ac245ec05b02035f4f2f0f3eb7e1479644656d743198353023dea16

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

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

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading
[ Download: CSV Export  ]

A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.