PSA: Scheduled Server Maintenance & Upgrades [2nd-December-2021 6:00 AM UTC] - Estimated duration: 3 hours.

Contract 0x3058d344C8F845754F0C356881772788c128eA22

 

Contract Overview

Balance:
0 BNB

BNB Value:
$0.00

Token:
 
Txn Hash Method
Block
From
To
Value [Txn Fee]
0x39f926b8b14a5a2991dae781aa7593d4e4a6bd27f2afa35ca89244738a1d1610Approve129430342021-11-25 11:09:446 days 20 hrs ago0x8693d94beaed03e090cd6f1aafd9c01da11d0f19 IN  0x3058d344c8f845754f0c356881772788c128ea220 BNB0.000221565
0x4b4b12114215081cb0737e4d76982b6de9ef12b91acf030cbdfe52943349d4afRebalance129154302021-11-24 10:46:417 days 20 hrs ago0x0acaaba122781945b004c61bb856e859e4894c79 IN  0x3058d344c8f845754f0c356881772788c128ea220 BNB0.00321649
0xc02e3ef12ca5aff2b89ca08604945edd4104e8d3888806f932d39cda08aa27bdDeposit128670712021-11-22 16:55:369 days 14 hrs ago0x53eb35fe10b0279f7a246274392a5c398359d969 IN  0x3058d344c8f845754f0c356881772788c128ea220 BNB0.00224509
0xd725e54769243c84eae91fdac6e4f9cc50357653b3fbd269bda4f97a622504b1Withdraw128574172021-11-22 8:28:399 days 22 hrs ago0xedc9bee76acf5f492ded78af9c0ed54c75fcce96 IN  0x3058d344c8f845754f0c356881772788c128ea220 BNB0.002868065
0xdf579207a11f5f5631e717eb969ffd85eb8d4ecf9b06ccd1dbc3181686a34292Withdraw127079292021-11-16 22:42:3315 days 8 hrs ago0x5195ad65e40c79e11661486b39978ff268f3b342 IN  0x3058d344c8f845754f0c356881772788c128ea220 BNB0.002868125
0xc55900f317e68e18cbbaac8fac15687d1002322134696d6621f982b3de540b30Set_new_fee_addr...126770652021-11-15 19:35:5216 days 11 hrs ago0x5195ad65e40c79e11661486b39978ff268f3b342 IN  0x3058d344c8f845754f0c356881772788c128ea220 BNB0.00014286
0x220852140bc85329b65a76a5a9cd99a66e1b88bed6e9152777cbdef42741e196Deposit126597562021-11-15 4:05:3017 days 3 hrs ago0x5195ad65e40c79e11661486b39978ff268f3b342 IN  0x3058d344c8f845754f0c356881772788c128ea220 BNB0.00209503
0xe4e298b716cf616523ee26f266a434aec3f7b017832755ed956a22692023e9f0Withdraw126402762021-11-14 11:00:3317 days 20 hrs ago0xedc9bee76acf5f492ded78af9c0ed54c75fcce96 IN  0x3058d344c8f845754f0c356881772788c128ea220 BNB0.002868065
0x8455fdf6ef45ce1ed4f50e6556d5813899e0e38d775f669431673d0966877020Withdraw126402012021-11-14 10:56:4817 days 20 hrs ago0xedc9bee76acf5f492ded78af9c0ed54c75fcce96 IN  0x3058d344c8f845754f0c356881772788c128ea220 BNB0.000142675
0x3bf8f58659fbd3a09b9da845e66821679460c685d60132cbcb2e297ceb7aeefdWithdraw126401672021-11-14 10:55:0617 days 20 hrs ago0xedc9bee76acf5f492ded78af9c0ed54c75fcce96 IN  0x3058d344c8f845754f0c356881772788c128ea220 BNB0.000142675
0xca16a3d58a7fcb7fb55515e2e7ba5f30faa806a7a8e9db54a26af241529e00bfWithdraw126390932021-11-14 9:58:1317 days 21 hrs ago0x5195ad65e40c79e11661486b39978ff268f3b342 IN  0x3058d344c8f845754f0c356881772788c128ea220 BNB0.002868065
0xe20801e0d8509e06502e6e32be88ab0f3ae28c71219d17fd3e03a237b044dfb8Deposit125691742021-11-11 22:04:3920 days 9 hrs ago0xedc9bee76acf5f492ded78af9c0ed54c75fcce96 IN  0x3058d344c8f845754f0c356881772788c128ea220 BNB0.00209497
0x7c4d421b94019c7dd144263c5c9d13bba5f6ac5425eadacf8a7a6e4874ee84baDeposit125687112021-11-11 21:41:2920 days 9 hrs ago0xedc9bee76acf5f492ded78af9c0ed54c75fcce96 IN  0x3058d344c8f845754f0c356881772788c128ea220 BNB0.00231997
0xdd149567526b42909790ee0483909ff3faca136cb59e2548b355acb3f3bcf1f3Deposit125276952021-11-10 10:05:5821 days 21 hrs ago0x5195ad65e40c79e11661486b39978ff268f3b342 IN  0x3058d344c8f845754f0c356881772788c128ea220 BNB0.002676665
0xf66cc4d34a14c7a258d4e96e496c8ea64def8a935337eaa6bb3dcab24a3574c1Set_new_fee Amou...125100112021-11-09 19:01:0922 days 12 hrs ago0x5195ad65e40c79e11661486b39978ff268f3b342 IN  0x3058d344c8f845754f0c356881772788c128ea220 BNB0.000216345
0x85fed86c69d4294c005815d57cd0b6daecb7a0d5cdc2dcae69bcbee846bbd55eSet_new_APR125100082021-11-09 19:01:0022 days 12 hrs ago0x5195ad65e40c79e11661486b39978ff268f3b342 IN  0x3058d344c8f845754f0c356881772788c128ea220 BNB0.000143195
0x74a16222094b090b05d14e5dd0b77bf1936a4b69e1f8d40412fb0bc91ecc34400x60806040125099772021-11-09 18:59:2722 days 12 hrs ago0x5195ad65e40c79e11661486b39978ff268f3b342 IN  Contract Creation0 BNB0.01590017
[ Download CSV Export 
Parent Txn Hash Block From To Value
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
xUSDC

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 BscScan.com on 2021-11-09
*/

// SPDX-License-Identifier: MIT
// File: contracts/interfaces/IVenus.sol


pragma solidity 0.6.12;
interface IVenus {
    function balanceOf(address _owner) external view returns (uint256 balance);
    function mint(uint mintAmount) external returns (uint);
    function redeem(uint redeemTokens) external returns(uint);
    function exchangeRateStored() external view returns (uint256);
}
// File: contracts/interfaces/ITreasury.sol


pragma solidity 0.6.12;
interface ITreasury {
    function depositToken(address _token) external payable;
}
// File: contracts/interfaces/IIEarnManager.sol


pragma solidity 0.6.12;
interface IIEarnManager {
    function recommend(address _token) external view returns (
      uint256 _fulcrum,
      uint256 _fortube,
      uint256 _venus,
      uint256 _alpaca
    );
}
// File: contracts/interfaces/FortubeBank.sol


pragma solidity 0.6.12;
interface FortubeBank {
    function deposit(address token, uint256 amount) external payable;
    function withdraw(address underlying, uint256 withdrawTokens) external returns (uint256);
    function controller() external returns (address);
}
// File: contracts/interfaces/FortubeToken.sol


pragma solidity 0.6.12;
interface FortubeToken {
    function balanceOf(address _owner) external view returns (uint256 balance);
    function ONE() external view returns (uint256);
    function exchangeRateStored() external view returns (uint256);
    function underlying() external view returns (address);
    function calcBalanceOfUnderlying(address _owner) external view returns (uint256);
}
// File: contracts/libraries/TokenStructs.sol


pragma solidity 0.6.12;

contract TokenStructs {
    struct Val {
        uint256 value;
    }

    enum ActionType {
        Deposit,   // supply tokens
        Withdraw  // borrow tokens
    }

    enum AssetDenomination {
        Wei // the amount is denominated in wei
    }

    enum AssetReference {
        Delta // the amount is given as a delta from the current value
    }

    struct AssetAmount {
        bool sign; // true if positive
        AssetDenomination denomination;
        AssetReference ref;
        uint256 value;
    }

    struct ActionArgs {
        ActionType actionType;
        uint256 accountId;
        AssetAmount amount;
        uint256 primaryMarketId;
        uint256 secondaryMarketId;
        address otherAddress;
        uint256 otherAccountId;
        bytes data;
    }

    struct Info {
        address owner;  // The address that owns the account
        uint256 number; // A nonce that allows a single address to control many accounts
    }

    struct Wei {
        bool sign; // true if positive
        uint256 value;
    }

    event Deposit(address indexed investor, uint256 indexed amount);
    event Withdraw(address indexed investor, uint256 indexed amount);
}
// File: https://github.com/OpenZeppelin/openzeppelin-contracts/blob/release-v3.4/contracts/utils/ReentrancyGuard.sol



pragma solidity >=0.6.0 <0.8.0;

/**
 * @dev Contract module that helps prevent reentrant calls to a function.
 *
 * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier
 * available, which can be applied to functions to make sure there are no nested
 * (reentrant) calls to them.
 *
 * Note that because there is a single `nonReentrant` guard, functions marked as
 * `nonReentrant` may not call one another. This can be worked around by making
 * those functions `private`, and then adding `external` `nonReentrant` entry
 * points to them.
 *
 * TIP: If you would like to learn more about reentrancy and alternative ways
 * to protect against it, check out our blog post
 * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].
 */
abstract contract ReentrancyGuard {
    // Booleans are more expensive than uint256 or any type that takes up a full
    // word because each write operation emits an extra SLOAD to first read the
    // slot's contents, replace the bits taken up by the boolean, and then write
    // back. This is the compiler's defense against contract upgrades and
    // pointer aliasing, and it cannot be disabled.

    // The values being non-zero value makes deployment a bit more expensive,
    // but in exchange the refund on every call to nonReentrant will be lower in
    // amount. Since refunds are capped to a percentage of the total
    // transaction's gas, it is best to keep them low in cases like this one, to
    // increase the likelihood of the full refund coming into effect.
    uint256 private constant _NOT_ENTERED = 1;
    uint256 private constant _ENTERED = 2;

    uint256 private _status;

    constructor () internal {
        _status = _NOT_ENTERED;
    }

    /**
     * @dev Prevents a contract from calling itself, directly or indirectly.
     * Calling a `nonReentrant` function from another `nonReentrant`
     * function is not supported. It is possible to prevent this from happening
     * by making the `nonReentrant` function external, and make it call a
     * `private` function that does the actual work.
     */
    modifier nonReentrant() {
        // On the first call to nonReentrant, _notEntered will be true
        require(_status != _ENTERED, "ReentrancyGuard: reentrant call");

        // Any calls to nonReentrant after this point will fail
        _status = _ENTERED;

        _;

        // By storing the original value once again, a refund is triggered (see
        // https://eips.ethereum.org/EIPS/eip-2200)
        _status = _NOT_ENTERED;
    }
}

// File: https://github.com/OpenZeppelin/openzeppelin-contracts/blob/release-v3.4/contracts/token/ERC20/IERC20.sol



pragma solidity >=0.6.0 <0.8.0;

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

// File: https://github.com/OpenZeppelin/openzeppelin-contracts/blob/release-v3.4/contracts/utils/Address.sol



pragma solidity >=0.6.2 <0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

// File: https://github.com/OpenZeppelin/openzeppelin-contracts/blob/release-v3.4/contracts/math/SafeMath.sol



pragma solidity >=0.6.0 <0.8.0;

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

// File: https://github.com/OpenZeppelin/openzeppelin-contracts/blob/release-v3.4/contracts/token/ERC20/SafeERC20.sol



pragma solidity >=0.6.0 <0.8.0;




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

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

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

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

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

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

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

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

// File: https://github.com/OpenZeppelin/openzeppelin-contracts/blob/release-v3.4/contracts/utils/Context.sol



pragma solidity >=0.6.0 <0.8.0;

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

// File: contracts/libraries/Ownable.sol



pragma solidity 0.6.12;


/**
 * @dev Contract module which provides a basic access control mechanism, where
 * there is an account (an owner) that can be granted exclusive access to
 * specific functions.
 *
 * By default, the owner account will be the one that deploys the contract. This
 * can later be changed with {transferOwnership}.
 *
 * This module is used through inheritance. It will make available the modifier
 * `onlyOwner`, which can be applied to your functions to restrict their use to
 * the owner.
 */
abstract contract Ownable is Context {
    address private _owner;
    address private _candidate;

    event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    constructor () internal {
        address msgSender = _msgSender();
        _owner = msgSender;
        emit OwnershipTransferred(address(0), msgSender);
    }

    /**
     * @dev Returns the address of the current owner.
     */
    function owner() public view virtual returns (address) {
        return _owner;
    }

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        require(owner() == _msgSender(), "Ownable: caller is not the owner");
        _;
    }

    /**
     * @dev Leaves the contract without owner. It will not be possible to call
     * `onlyOwner` functions anymore. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby removing any functionality that is only available to the owner.
     */
    function renounceOwnership() public virtual onlyOwner {
        emit OwnershipTransferred(_owner, address(0));
        _owner = address(0);
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Can only be called by the current owner.
     */
    function transferOwnership(address newOwner) public virtual onlyOwner {
        require(newOwner != address(0), "Ownable: new owner is the zero address");
        _candidate = newOwner;
    }

    function acceptOwnership() external {
        require(msg.sender == _candidate, "Ownable: not cadidate");
        emit OwnershipTransferred(_owner, _candidate);
        _owner = _candidate;
    }
}
// File: https://github.com/OpenZeppelin/openzeppelin-contracts/blob/release-v3.4/contracts/token/ERC20/ERC20.sol



pragma solidity >=0.6.0 <0.8.0;




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

    mapping (address => uint256) private _balances;

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

    uint256 private _totalSupply;

    string private _name;
    string private _symbol;
    uint8 private _decimals;

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

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

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

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

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

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

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

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

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

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

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

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

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

        _beforeTokenTransfer(sender, recipient, amount);

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

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

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

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

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

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

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

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

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

    /**
     * @dev Sets {decimals} to a value other than the default one of 18.
     *
     * WARNING: This function should only be called from the constructor. Most
     * applications that interact with token contracts will not expect
     * {decimals} to ever change, and may work incorrectly if it does.
     */
    function _setupDecimals(uint8 decimals_) internal virtual {
        _decimals = decimals_;
    }

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

// File: contracts/XUSDC.sol


pragma solidity 0.6.12;
pragma experimental ABIEncoderV2;















contract xUSDC is ERC20, ReentrancyGuard, Ownable, TokenStructs {
  using SafeERC20 for IERC20;
  using Address for address;
  using SafeMath for uint256;

  uint256 public pool;
  address public token;
  address public apr;
  address public fortubeToken;
  address public fortubeBank;
  address public feeAddress;
  uint256 public feeAmount;
  address public venusToken;
  uint256 public feePrecision;

  mapping (address => uint256) depositedAmount;

  enum Lender {
      NONE,
      FORTUBE,
      VENUS
  }
  mapping (Lender => bool) public lenderStatus;
  mapping (Lender => bool) public withdrawable;

  Lender public provider = Lender.NONE;

  constructor () public ERC20("xend USDC", "xUSDC") {

    token = address(0x8AC76a51cc950d9822D68b83fE1Ad97B32Cd580d);
    apr = address(0xdD6d648C991f7d47454354f4Ef326b04025a48A8);
    fortubeToken = address(0xb2CB0Af60372E242710c42e1C34579178c3D2BED);
    fortubeBank = address(0x0cEA0832e9cdBb5D476040D58Ea07ecfbeBB7672);
    feeAddress = address(0x143afc138978Ad681f7C7571858FAAA9D426CecE);
    venusToken = address(0xecA88125a5ADbe82614ffC12D0DB554E2e2867C8);
    feeAmount = 0;
    feePrecision = 1000;
    approveToken();
    lenderStatus[Lender.FORTUBE] = true;
    lenderStatus[Lender.VENUS] = true;
    withdrawable[Lender.FORTUBE] = true;
    withdrawable[Lender.VENUS] = true;
  }

  // Ownable setters incase of support in future for these systems
  function set_new_APR(address _new_APR) public onlyOwner {
      apr = _new_APR;
  }
  function set_new_feeAmount(uint256 fee) public onlyOwner{
    require(fee < feePrecision, 'fee amount must be less than 100%');
    feeAmount = fee;
  }
  function set_new_fee_address(address _new_fee_address) public onlyOwner {
      feeAddress = _new_fee_address;
  }
  function set_new_feePrecision(uint256 _newFeePrecision) public onlyOwner{
    require(_newFeePrecision >= 100, "fee precision must be greater than 100 at least");
    set_new_feeAmount(feeAmount*_newFeePrecision/feePrecision);
    feePrecision = _newFeePrecision;
  }
  // Quick swap low gas method for pool swaps
  function deposit(uint256 _amount)
      external
      nonReentrant
  {
      require(_amount > 0, "deposit must be greater than 0");
      pool = _calcPoolValueInToken();
      IERC20(token).safeTransferFrom(msg.sender, address(this), _amount);
      rebalance();
      // Calculate pool shares
      uint256 shares = 0;
      if (pool == 0) {
        shares = _amount;
        pool = _amount;
      } else {
        if (totalSupply() == 0) {
          shares = _amount;
        } else {
          shares = (_amount.mul(totalSupply())).div(pool);
        }
      }
      pool = _calcPoolValueInToken();
      _mint(msg.sender, shares);
      depositedAmount[msg.sender] = depositedAmount[msg.sender].add(_amount);
      emit Deposit(msg.sender, _amount);
  }

  
  function withdraw(uint256 _shares)
      external
      nonReentrant
  {
      require(_shares > 0, "withdraw must be greater than 0");

      uint256 ibalance = balanceOf(msg.sender);
      require(_shares <= ibalance, "insufficient balance");

      // Could have over value from xTokens
      pool = _calcPoolValueInToken();
      uint256 i = (pool.mul(ibalance)).div(totalSupply());
      // Calc to redeem before updating balances
      uint256 r = (pool.mul(_shares)).div(totalSupply());
      if(i < depositedAmount[msg.sender]){
        i = i.add(1);
        r = r.add(1);
      }
      uint256 profit = (i.sub(depositedAmount[msg.sender])).mul(_shares.div(depositedAmount[msg.sender]));

      emit Transfer(msg.sender, address(0), _shares);

      // Check balance
      uint256 b = IERC20(token).balanceOf(address(this));
      if (b < r) {
        _withdrawSome(r.sub(b));
      }

      uint256 fee = profit.mul(feeAmount).div(feePrecision);
      if(fee > 0){
        IERC20(token).approve(feeAddress, fee);
        ITreasury(feeAddress).depositToken(token);
      }
      IERC20(token).safeTransfer(msg.sender, r.sub(fee));
      _burn(msg.sender, _shares);
      depositedAmount[msg.sender] = depositedAmount[msg.sender].sub(_shares.mul(depositedAmount[msg.sender]).div(ibalance));
      rebalance();
      pool = _calcPoolValueInToken();
      emit Withdraw(msg.sender, _shares);
  }

  receive() external payable {}

  function recommend() public view returns (Lender) {
    (, uint256 ftapr, uint256 vapr,) = IIEarnManager(apr).recommend(token);
    uint256 max = 0;
    if (ftapr > max && lenderStatus[Lender.FORTUBE]) {
      max = ftapr;
    }
    if (vapr > max && lenderStatus[Lender.VENUS]) {
      max = vapr;
    }
    Lender newProvider = Lender.NONE;
    if (max == ftapr) {
      newProvider = Lender.FORTUBE;
    } else if (max == vapr) {
      newProvider = Lender.VENUS;
    }
    return newProvider;
  }

  function balance() external view returns (uint256) {
    return _balance();
  }

  function getDepositedAmount(address investor) public view returns (uint256) {
    return depositedAmount[investor];
  }

  function approveToken() public {
      IERC20(token).approve(FortubeBank(fortubeBank).controller(),  uint(-1));
      IERC20(token).approve(venusToken, uint(-1));
  }
  function balanceFortubeInToken() external view returns (uint256) {
    return _balanceFortubeInToken();
  }

  function balanceVenusInToken() external view returns (uint256) {
    return _balanceVenusInToken();
  }

  function balanceFortube() external view returns (uint256) {
    return _balanceFortube();
  }
  function balanceVenus() external view returns (uint256) {
    return _balanceVenus();
  }

  function _balance() internal view returns (uint256) {
    return IERC20(token).balanceOf(address(this));
  }

  function _balanceFortubeInToken() internal view returns (uint256) {
    uint256 b = _balanceFortube();
    if (b > 0 && withdrawable[Lender.FORTUBE]) {
      uint256 exchangeRate = FortubeToken(fortubeToken).exchangeRateStored();
      uint256 oneAmount = FortubeToken(fortubeToken).ONE();
      b = b.mul(exchangeRate).div(oneAmount).add(1);
    }
    return b;
  }

  function _balanceVenusInToken() internal view returns (uint256) {
    uint256 b = _balanceVenus();
    if (b > 0 && withdrawable[Lender.VENUS]) {
      uint256 exchangeRate = IVenus(venusToken).exchangeRateStored();
      b = b.mul(exchangeRate).div(1e28).add(1).mul(1e10);
    }
    return b;

  }
  function _balanceFortube() internal view returns (uint256) {
    if(withdrawable[Lender.FORTUBE])
      return FortubeToken(fortubeToken).balanceOf(address(this));
    else
      return 0;
  }
  function _balanceVenus() internal view returns (uint256) {
    if(withdrawable[Lender.VENUS])
      return IERC20(venusToken).balanceOf(address(this));
    else
      return 0;
  }

  function _withdrawAll() internal {
    uint256  amount = _balanceFortube();
    if (amount > 0) {
      _withdrawFortube(amount);
    }
    amount = _balanceVenus();
    if (amount > 0) {
      _withdrawVenus(amount);
    }
  }

  function _withdrawSomeFortube(uint256 _amount) internal {
    uint256 b = _balanceFortube();
    uint256 bT = _balanceFortubeInToken();
    require(bT >= _amount, "insufficient funds");
    uint256 amount = (b.mul(_amount)).div(bT).add(1);
    _withdrawFortube(amount);
  }

function _withdrawSomeVenus(uint256 _amount) internal {
    uint256 b = _balanceVenus();
    uint256 bT = _balanceVenusInToken();
    require(bT >= _amount, "insufficient funds");
    uint256 amount = (b.mul(_amount)).div(bT);
    _withdrawVenus(amount);
  }

  function _withdrawSome(uint256 _amount) internal {
    
    if (provider == Lender.FORTUBE) {
      _withdrawSomeFortube(_amount);
    }
    if (provider == Lender.VENUS) {
      _withdrawSomeVenus(_amount);
    }
  }

  function rebalance() public {
    Lender newProvider = recommend();

    if (newProvider != provider) {
      _withdrawAll();
    }

    if (_balance() > 0) {
      if (newProvider == Lender.FORTUBE) {
        supplyFortube(_balance());
      } else if (newProvider == Lender.VENUS) {
        supplyVenus(_balance());
      }
    }

    provider = newProvider;
  }

  function supplyFortube(uint amount) public {
      require(amount > 0, "FORTUBE: supply failed");
      FortubeBank(fortubeBank).deposit(FortubeToken(fortubeToken).underlying(), amount);
  }
  function supplyVenus(uint amount) public {
      require(amount > 0, "VENUS: supply failed");
      IVenus(venusToken).mint(amount);
  }
  function _withdrawFortube(uint amount) internal {
      require(amount > 0, "FORTUBE: withdraw failed");
      FortubeBank(fortubeBank).withdraw(FortubeToken(fortubeToken).underlying(), amount);
  }
  function _withdrawVenus(uint amount) internal {
      require(amount > 0, "VENUS: withdraw failed");
      IVenus(venusToken).redeem(amount);
  }
  function _calcPoolValueInToken() internal view returns (uint) {
    return _balanceFortubeInToken()
      .add(_balanceVenusInToken())
      .add(_balance());
  }

  function calcPoolValueInToken() public view returns (uint) {

    return _calcPoolValueInToken();
  }

  function getPricePerFullShare() public view returns (uint) {
    uint _pool = _calcPoolValueInToken();
    return _pool.mul(1e18).div(totalSupply());
  }

  function activateLender(Lender lender) public onlyOwner {
    lenderStatus[lender] = true;
    withdrawable[lender] = true;
    rebalance();
  }

  function deactivateWithdrawableLender(Lender lender) public onlyOwner {
    lenderStatus[lender] = false;
    rebalance();
  }

  function deactivateNonWithdrawableLender(Lender lender) public onlyOwner {
    lenderStatus[lender] = false;
    withdrawable[lender] = false;
    rebalance();
  }
}

Contract Security Audit

Contract ABI

[{"inputs":[],"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":true,"internalType":"address","name":"investor","type":"address"},{"indexed":true,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Deposit","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","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":true,"internalType":"address","name":"investor","type":"address"},{"indexed":true,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Withdraw","type":"event"},{"inputs":[],"name":"acceptOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"enum xUSDC.Lender","name":"lender","type":"uint8"}],"name":"activateLender","outputs":[],"stateMutability":"nonpayable","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":[],"name":"approveToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"apr","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"balance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"balanceFortube","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"balanceFortubeInToken","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"balanceVenus","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"balanceVenusInToken","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"calcPoolValueInToken","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"enum xUSDC.Lender","name":"lender","type":"uint8"}],"name":"deactivateNonWithdrawableLender","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"enum xUSDC.Lender","name":"lender","type":"uint8"}],"name":"deactivateWithdrawableLender","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"subtractedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"deposit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"feeAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"feeAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"feePrecision","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"fortubeBank","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"fortubeToken","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"investor","type":"address"}],"name":"getDepositedAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getPricePerFullShare","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"enum xUSDC.Lender","name":"","type":"uint8"}],"name":"lenderStatus","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pool","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"provider","outputs":[{"internalType":"enum xUSDC.Lender","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rebalance","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"recommend","outputs":[{"internalType":"enum xUSDC.Lender","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_new_APR","type":"address"}],"name":"set_new_APR","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"fee","type":"uint256"}],"name":"set_new_feeAmount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newFeePrecision","type":"uint256"}],"name":"set_new_feePrecision","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_new_fee_address","type":"address"}],"name":"set_new_fee_address","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"supplyFortube","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"supplyVenus","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"token","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","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":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"venusToken","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_shares","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"enum xUSDC.Lender","name":"","type":"uint8"}],"name":"withdrawable","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"stateMutability":"payable","type":"receive"}]

60806040526015805460ff191690553480156200001b57600080fd5b50604080518082018252600981526878656e64205553444360b81b602080830191825283518085019094526005845264785553444360d81b9084015281519192916200006a916003916200041e565b508051620000809060049060208401906200041e565b50506005805460ff191660121790555060016006556000620000a162000281565b600780546001600160a01b0319166001600160a01b038316908117909155604051919250906000907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a350600a80546001600160a01b0319908116738ac76a51cc950d9822d68b83fe1ad97b32cd580d17909155600b8054821673dd6d648c991f7d47454354f4ef326b04025a48a8179055600c8054821673b2cb0af60372e242710c42e1c34579178c3d2bed179055600d80548216730cea0832e9cdbb5d476040d58ea07ecfbebb7672179055600e8054821673143afc138978ad681f7c7571858faaa9d426cece1790556010805490911673eca88125a5adbe82614ffc12d0db554e2e2867c81790556000600f556103e8601155620001c462000285565b7f4155c2f711f2cdd34f8262ab8fb9b7020a700fe7b6948222152f7670d1fdf34d8054600160ff1991821681179092557f0b9d2c0c271bb30544eb78c59bdaebdae2728e5f65814c07768a0abe90ed1923805482168317905560146020527fb6c61a840592cc84133e4b25bd509abf4659307c57b160799b38490a5aa48f2c805482168317905560026000527fa1930aa930426c54c34daad2b9ada7c5d0ef0c96078a3c5bb79f6fa6602c4a7a8054909116909117905562000525565b3390565b600a54600d546040805163f77c479160e01b815290516001600160a01b039384169363095ea7b393169163f77c47919160048083019260209291908290030181600087803b158015620002d757600080fd5b505af1158015620002ec573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620003129190620004ba565b6000196040518363ffffffff1660e01b8152600401620003349291906200050c565b602060405180830381600087803b1580156200034f57600080fd5b505af115801562000364573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906200038a9190620004ea565b50600a5460105460405163095ea7b360e01b81526001600160a01b039283169263095ea7b392620003c592911690600019906004016200050c565b602060405180830381600087803b158015620003e057600080fd5b505af1158015620003f5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906200041b9190620004ea565b50565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106200046157805160ff191683800117855562000491565b8280016001018555821562000491579182015b828111156200049157825182559160200191906001019062000474565b506200049f929150620004a3565b5090565b5b808211156200049f5760008155600101620004a4565b600060208284031215620004cc578081fd5b81516001600160a01b0381168114620004e3578182fd5b9392505050565b600060208284031215620004fc578081fd5b81518015158114620004e3578182fd5b6001600160a01b03929092168252602082015260400190565b6130fa80620005356000396000f3fe6080604052600436106102b25760003560e01c8063715018a611610175578063a9059cbb116100dc578063e9081ec711610095578063fc0c546a1161006f578063fc0c546a14610799578063fe476e01146107ae578063fe582e24146107ce578063fedf23fc146107ee576102b9565b8063e9081ec714610739578063f2fde38b14610759578063f9a2528214610779576102b9565b8063a9059cbb1461069a578063ad4c6592146106ba578063b69ef8a8146106cf578063b6b55f25146106e4578063c72e947314610704578063dd62ed3e14610719576102b9565b80639218b52e1161012e5780639218b52e146105fb57806395d89b411461061b57806399b71d5c146106305780639c7266bc14610645578063a160176d14610665578063a457c2d71461067a576102b9565b8063715018a61461057d57806377c7b8fc1461059257806378b423af146105a757806379ba5097146105bc5780637d7c2a1c146105d15780638da5cb5b146105e6576102b9565b80633d8450c911610219578063546b6615116101d2578063546b6615146104e957806357ded9c91461050957806364e85a2e1461051e57806369e154041461053357806370a08231146105485780637137ef9914610568576102b9565b80633d8450c91461043d578063412753581461045d57806344d40d7f1461047f578063463574731461049f57806349b4e9c8146104bf5780634fdac0ef146104d4576102b9565b806323b872dd1161026b57806323b872dd1461038457806325305c73146103a45780632e1a7d4d146103c4578063313ce567146103e657806335ff1e2814610408578063395093511461041d576102b9565b806306fdde03146102be578063085d4883146102e9578063095ea7b31461030b57806310a325191461033857806316f0115b1461035a57806318160ddd1461036f576102b9565b366102b957005b600080fd5b3480156102ca57600080fd5b506102d361080e565b6040516102e09190612999565b60405180910390f35b3480156102f557600080fd5b506102fe6108a5565b6040516102e09190612985565b34801561031757600080fd5b5061032b61032636600461283e565b6108ae565b6040516102e0919061297a565b34801561034457600080fd5b5061034d6108cc565b6040516102e09190612fb7565b34801561036657600080fd5b5061034d6108db565b34801561037b57600080fd5b5061034d6108e1565b34801561039057600080fd5b5061032b61039f3660046127fe565b6108e7565b3480156103b057600080fd5b5061032b6103bf366004612889565b61096f565b3480156103d057600080fd5b506103e46103df3660046128a8565b610984565b005b3480156103f257600080fd5b506103fb610d6d565b6040516102e09190612fc0565b34801561041457600080fd5b5061034d610d76565b34801561042957600080fd5b5061032b61043836600461283e565b610d7c565b34801561044957600080fd5b506103e46104583660046128a8565b610dca565b34801561046957600080fd5b50610472610e70565b6040516102e09190612929565b34801561048b57600080fd5b506103e461049a366004612889565b610e7f565b3480156104ab57600080fd5b506103e46104ba36600461278e565b610f05565b3480156104cb57600080fd5b50610472610f66565b3480156104e057600080fd5b5061034d610f75565b3480156104f557600080fd5b506103e46105043660046128a8565b610f7f565b34801561051557600080fd5b50610472610ffc565b34801561052a57600080fd5b5061047261100b565b34801561053f57600080fd5b5061034d61101a565b34801561055457600080fd5b5061034d61056336600461278e565b611020565b34801561057457600080fd5b5061034d61103b565b34801561058957600080fd5b506103e4611045565b34801561059e57600080fd5b5061034d6110ce565b3480156105b357600080fd5b5061034d6110fe565b3480156105c857600080fd5b506103e4611108565b3480156105dd57600080fd5b506103e4611195565b3480156105f257600080fd5b50610472611240565b34801561060757600080fd5b506103e461061636600461278e565b61124f565b34801561062757600080fd5b506102d36112b0565b34801561063c57600080fd5b506103e4611311565b34801561065157600080fd5b5061032b610660366004612889565b611497565b34801561067157600080fd5b506102fe6114ac565b34801561068657600080fd5b5061032b61069536600461283e565b6115e9565b3480156106a657600080fd5b5061032b6106b536600461283e565b611651565b3480156106c657600080fd5b50610472611665565b3480156106db57600080fd5b5061034d611674565b3480156106f057600080fd5b506103e46106ff3660046128a8565b61167e565b34801561071057600080fd5b5061034d6117a8565b34801561072557600080fd5b5061034d6107343660046127c6565b6117b2565b34801561074557600080fd5b5061034d61075436600461278e565b6117dd565b34801561076557600080fd5b506103e461077436600461278e565b6117f8565b34801561078557600080fd5b506103e4610794366004612889565b61187f565b3480156107a557600080fd5b50610472611912565b3480156107ba57600080fd5b506103e46107c93660046128a8565b611921565b3480156107da57600080fd5b506103e46107e93660046128a8565b611986565b3480156107fa57600080fd5b506103e4610809366004612889565b611a80565b60038054604080516020601f600260001961010060018816150201909516949094049384018190048102820181019092528281526060939092909183018282801561089a5780601f1061086f5761010080835404028352916020019161089a565b820191906000526020600020905b81548152906001019060200180831161087d57829003601f168201915b505050505090505b90565b60155460ff1681565b60006108c26108bb611b13565b8484611b17565b5060015b92915050565b60006108d6611bcb565b905090565b60095481565b60025490565b60006108f4848484611d42565b61096484610900611b13565b61095f85604051806060016040528060288152602001613058602891396001600160a01b038a1660009081526001602052604081209061093e611b13565b6001600160a01b031681526020810191909152604001600020549190611e45565b611b17565b5060015b9392505050565b60146020526000908152604090205460ff1681565b600260065414156109b05760405162461bcd60e51b81526004016109a790612f49565b60405180910390fd5b6002600655806109d25760405162461bcd60e51b81526004016109a790612c9d565b60006109dd33611020565b9050808211156109ff5760405162461bcd60e51b81526004016109a790612c6f565b610a07611e71565b6009556000610a2a610a176108e1565b600954610a249085611e91565b90611ecb565b90506000610a46610a396108e1565b600954610a249087611e91565b33600090815260126020526040902054909150821015610a7b57610a6b826001611efd565b9150610a78816001611efd565b90505b33600090815260126020526040812054610abb90610a9a908790611ecb565b33600090815260126020526040902054610ab5908690611f22565b90611e91565b905060006001600160a01b0316336001600160a01b031660008051602061308083398151915287604051610aef9190612fb7565b60405180910390a3600a546040516370a0823160e01b81526000916001600160a01b0316906370a0823190610b28903090600401612929565b60206040518083038186803b158015610b4057600080fd5b505afa158015610b54573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b7891906128c0565b905082811015610b9457610b94610b8f8483611f22565b611f4a565b6000610bb1601154610a24600f5486611e9190919063ffffffff16565b90508015610ca957600a54600e5460405163095ea7b360e01b81526001600160a01b039283169263095ea7b392610bef929116908590600401612961565b602060405180830381600087803b158015610c0957600080fd5b505af1158015610c1d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c419190612869565b50600e54600a54604051632fd5526560e01b81526001600160a01b0392831692632fd5526592610c7692911690600401612929565b600060405180830381600087803b158015610c9057600080fd5b505af1158015610ca4573d6000803e3d6000fd5b505050505b610cca33610cb78684611f22565b600a546001600160a01b03169190611f8e565b610cd43388611fe9565b33600090815260126020526040902054610d0f90610cf9908890610a24908b90611e91565b3360009081526012602052604090205490611f22565b33600090815260126020526040902055610d27611195565b610d2f611e71565b600955604051879033907f884edad9ce6fa2440d8a54cc123490eb96d2768479d49ff9c7366125a942436490600090a3505060016006555050505050565b60055460ff1690565b60115481565b60006108c2610d89611b13565b8461095f8560016000610d9a611b13565b6001600160a01b03908116825260208083019390935260409182016000908120918c168152925290205490611efd565b60008111610dea5760405162461bcd60e51b81526004016109a790612bcb565b60105460405163140e25ad60e31b81526001600160a01b039091169063a0712d6890610e1a908490600401612fb7565b602060405180830381600087803b158015610e3457600080fd5b505af1158015610e48573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e6c91906128c0565b5050565b600e546001600160a01b031681565b610e87611b13565b6001600160a01b0316610e98611240565b6001600160a01b031614610ebe5760405162461bcd60e51b81526004016109a790612c3a565b600060136000836002811115610ed057fe5b6002811115610edb57fe5b81526020810191909152604001600020805460ff1916911515919091179055610f02611195565b50565b610f0d611b13565b6001600160a01b0316610f1e611240565b6001600160a01b031614610f445760405162461bcd60e51b81526004016109a790612c3a565b600b80546001600160a01b0319166001600160a01b0392909216919091179055565b600c546001600160a01b031681565b60006108d66120b9565b610f87611b13565b6001600160a01b0316610f98611240565b6001600160a01b031614610fbe5760405162461bcd60e51b81526004016109a790612c3a565b6064811015610fdf5760405162461bcd60e51b81526004016109a790612eb0565b610ff760115482600f540281610ff157fe5b04611921565b601155565b600b546001600160a01b031681565b6010546001600160a01b031681565b600f5481565b6001600160a01b031660009081526020819052604090205490565b60006108d6611e71565b61104d611b13565b6001600160a01b031661105e611240565b6001600160a01b0316146110845760405162461bcd60e51b81526004016109a790612c3a565b6007546040516000916001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600780546001600160a01b0319169055565b6000806110d9611e71565b90506110f86110e66108e1565b610a2483670de0b6b3a7640000611e91565b91505090565b60006108d661217e565b6008546001600160a01b031633146111325760405162461bcd60e51b81526004016109a790612a0f565b6008546007546040516001600160a01b0392831692909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3600854600780546001600160a01b0319166001600160a01b03909216919091179055565b600061119f6114ac565b60155490915060ff1660028111156111b357fe5b8160028111156111bf57fe5b146111cc576111cc6121e4565b60006111d6612218565b111561121f5760018160028111156111ea57fe5b1415611200576111fb6107e9612218565b61121f565b600281600281111561120e57fe5b141561121f5761121f610458612218565b6015805482919060ff1916600183600281111561123857fe5b021790555050565b6007546001600160a01b031690565b611257611b13565b6001600160a01b0316611268611240565b6001600160a01b03161461128e5760405162461bcd60e51b81526004016109a790612c3a565b600e80546001600160a01b0319166001600160a01b0392909216919091179055565b60048054604080516020601f600260001961010060018816150201909516949094049384018190048102820181019092528281526060939092909183018282801561089a5780601f1061086f5761010080835404028352916020019161089a565b600a54600d546040805163f77c479160e01b815290516001600160a01b039384169363095ea7b393169163f77c47919160048083019260209291908290030181600087803b15801561136257600080fd5b505af1158015611376573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061139a91906127aa565b6000196040518363ffffffff1660e01b81526004016113ba929190612961565b602060405180830381600087803b1580156113d457600080fd5b505af11580156113e8573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061140c9190612869565b50600a5460105460405163095ea7b360e01b81526001600160a01b039283169263095ea7b3926114459291169060001990600401612961565b602060405180830381600087803b15801561145f57600080fd5b505af1158015611473573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f029190612869565b60136020526000908152604090205460ff1681565b600b54600a546040516303622f8f60e61b8152600092839283926001600160a01b039283169263d88be3c0926114e792911690600401612929565b60806040518083038186803b1580156114ff57600080fd5b505afa158015611513573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061153791906128d8565b509250925050600080831180156115795750600160005260136020527f4155c2f711f2cdd34f8262ab8fb9b7020a700fe7b6948222152f7670d1fdf34d5460ff165b156115815750815b80821180156115bb5750600260005260136020527f0b9d2c0c271bb30544eb78c59bdaebdae2728e5f65814c07768a0abe90ed19235460ff165b156115c35750805b6000838214156115d5575060016115e1565b828214156115e1575060025b935050505090565b60006108c26115f6611b13565b8461095f856040518060600160405280602581526020016130a06025913960016000611620611b13565b6001600160a01b03908116825260208083019390935260409182016000908120918d16815292529020549190611e45565b60006108c261165e611b13565b8484611d42565b600d546001600160a01b031681565b60006108d6612218565b600260065414156116a15760405162461bcd60e51b81526004016109a790612f49565b6002600655806116c35760405162461bcd60e51b81526004016109a790612e42565b6116cb611e71565b600955600a546116e6906001600160a01b0316333084612299565b6116ee611195565b6000600954600014156117075750600981905580611735565b61170f6108e1565b61171a575080611735565b611732600954610a2461172b6108e1565b8590611e91565b90505b61173d611e71565b60095561174a33826122c0565b336000908152601260205260409020546117649083611efd565b3360008181526012602052604080822093909355915184927fe1fffcc4923d04b559f4d29a8bfc6cda04eb5b0d3c460751c2402c5c5cc9109c91a350506001600655565b60006108d6612362565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b6001600160a01b031660009081526012602052604090205490565b611800611b13565b6001600160a01b0316611811611240565b6001600160a01b0316146118375760405162461bcd60e51b81526004016109a790612c3a565b6001600160a01b03811661185d5760405162461bcd60e51b81526004016109a790612a3e565b600880546001600160a01b0319166001600160a01b0392909216919091179055565b611887611b13565b6001600160a01b0316611898611240565b6001600160a01b0316146118be5760405162461bcd60e51b81526004016109a790612c3a565b6000601360008360028111156118d057fe5b60028111156118db57fe5b815260200190815260200160002060006101000a81548160ff021916908315150217905550600060146000836002811115610ed057fe5b600a546001600160a01b031681565b611929611b13565b6001600160a01b031661193a611240565b6001600160a01b0316146119605760405162461bcd60e51b81526004016109a790612c3a565b60115481106119815760405162461bcd60e51b81526004016109a790612d4c565b600f55565b600081116119a65760405162461bcd60e51b81526004016109a790612b9b565b600d54600c5460408051636f307dc360e01b815290516001600160a01b03938416936347e7ef24931691636f307dc3916004808301926020929190829003018186803b1580156119f557600080fd5b505afa158015611a09573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611a2d91906127aa565b836040518363ffffffff1660e01b8152600401611a4b929190612961565b600060405180830381600087803b158015611a6557600080fd5b505af1158015611a79573d6000803e3d6000fd5b5050505050565b611a88611b13565b6001600160a01b0316611a99611240565b6001600160a01b031614611abf5760405162461bcd60e51b81526004016109a790612c3a565b600160136000836002811115611ad157fe5b6002811115611adc57fe5b815260200190815260200160002060006101000a81548160ff021916908315150217905550600160146000836002811115610ed057fe5b3390565b6001600160a01b038316611b3d5760405162461bcd60e51b81526004016109a790612dfe565b6001600160a01b038216611b635760405162461bcd60e51b81526004016109a790612a84565b6001600160a01b0380841660008181526001602090815260408083209487168084529490915290819020849055517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92590611bbe908590612fb7565b60405180910390a3505050565b600080611bd661217e565b9050600081118015611c135750600160005260146020527fb6c61a840592cc84133e4b25bd509abf4659307c57b160799b38490a5aa48f2c5460ff165b156108d657600c546040805163182df0f560e01b815290516000926001600160a01b03169163182df0f5916004808301926020929190829003018186803b158015611c5d57600080fd5b505afa158015611c71573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611c9591906128c0565b90506000600c60009054906101000a90046001600160a01b03166001600160a01b031663c2ee3a086040518163ffffffff1660e01b815260040160206040518083038186803b158015611ce757600080fd5b505afa158015611cfb573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611d1f91906128c0565b9050611d3a6001611d3483610a248787611e91565b90611efd565b949350505050565b6001600160a01b038316611d685760405162461bcd60e51b81526004016109a790612d8d565b6001600160a01b038216611d8e5760405162461bcd60e51b81526004016109a7906129cc565b611d99838383611fe4565b611dd681604051806060016040528060268152602001613032602691396001600160a01b0386166000908152602081905260409020549190611e45565b6001600160a01b038085166000908152602081905260408082209390935590841681522054611e059082611efd565b6001600160a01b03808416600081815260208190526040908190209390935591519085169060008051602061308083398151915290611bbe908590612fb7565b60008184841115611e695760405162461bcd60e51b81526004016109a79190612999565b505050900390565b60006108d6611e7e612218565b611d34611e89612362565b611d34611bcb565b600082611ea0575060006108c6565b82820282848281611ead57fe5b04146109685760405162461bcd60e51b81526004016109a790612bf9565b6000808211611eec5760405162461bcd60e51b81526004016109a790612b64565b818381611ef557fe5b049392505050565b6000828201838110156109685760405162461bcd60e51b81526004016109a790612ac6565b600082821115611f445760405162461bcd60e51b81526004016109a790612b2d565b50900390565b600160155460ff166002811115611f5d57fe5b1415611f6c57611f6c81612456565b600260155460ff166002811115611f7f57fe5b1415610f0257610f02816124ae565b611fe48363a9059cbb60e01b8484604051602401611fad929190612961565b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152612501565b505050565b6001600160a01b03821661200f5760405162461bcd60e51b81526004016109a790612d0b565b61201b82600083611fe4565b61205881604051806060016040528060228152602001613010602291396001600160a01b0385166000908152602081905260409020549190611e45565b6001600160a01b03831660009081526020819052604090205560025461207e9082611f22565b6002556040516000906001600160a01b03841690600080516020613080833981519152906120ad908590612fb7565b60405180910390a35050565b6002600090815260146020527fa1930aa930426c54c34daad2b9ada7c5d0ef0c96078a3c5bb79f6fa6602c4a7a5460ff1615612176576010546040516370a0823160e01b81526001600160a01b03909116906370a082319061211f903090600401612929565b60206040518083038186803b15801561213757600080fd5b505afa15801561214b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061216f91906128c0565b90506108a2565b5060006108a2565b6001600090815260146020527fb6c61a840592cc84133e4b25bd509abf4659307c57b160799b38490a5aa48f2c5460ff161561217657600c546040516370a0823160e01b81526001600160a01b03909116906370a082319061211f903090600401612929565b60006121ee61217e565b905080156121ff576121ff81612590565b6122076120b9565b90508015610f0257610f0281612655565b600a546040516370a0823160e01b81526000916001600160a01b0316906370a0823190612249903090600401612929565b60206040518083038186803b15801561226157600080fd5b505afa158015612275573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108d691906128c0565b6122ba846323b872dd60e01b858585604051602401611fad9392919061293d565b50505050565b6001600160a01b0382166122e65760405162461bcd60e51b81526004016109a790612f80565b6122f260008383611fe4565b6002546122ff9082611efd565b6002556001600160a01b0382166000908152602081905260409020546123259082611efd565b6001600160a01b038316600081815260208190526040808220939093559151909190600080516020613080833981519152906120ad908590612fb7565b60008061236d6120b9565b90506000811180156123aa5750600260005260146020527fa1930aa930426c54c34daad2b9ada7c5d0ef0c96078a3c5bb79f6fa6602c4a7a5460ff165b156108d6576010546040805163182df0f560e01b815290516000926001600160a01b03169163182df0f5916004808301926020929190829003018186803b1580156123f457600080fd5b505afa158015612408573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061242c91906128c0565b90506109686402540be400610ab56001611d346b204fce5e3e25026110000000610a248888611e91565b600061246061217e565b9050600061246c611bcb565b90508281101561248e5760405162461bcd60e51b81526004016109a790612dd2565b60006124a36001611d3484610a248789611e91565b90506122ba81612590565b60006124b86120b9565b905060006124c4612362565b9050828110156124e65760405162461bcd60e51b81526004016109a790612dd2565b60006124f682610a248587611e91565b90506122ba81612655565b6060612556826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166126a59092919063ffffffff16565b805190915015611fe457808060200190518101906125749190612869565b611fe45760405162461bcd60e51b81526004016109a790612eff565b600081116125b05760405162461bcd60e51b81526004016109a790612cd4565b600d54600c5460408051636f307dc360e01b815290516001600160a01b039384169363f3fef3a3931691636f307dc3916004808301926020929190829003018186803b1580156125ff57600080fd5b505afa158015612613573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061263791906127aa565b836040518363ffffffff1660e01b8152600401610e1a929190612961565b600081116126755760405162461bcd60e51b81526004016109a790612afd565b60105460405163db006a7560e01b81526001600160a01b039091169063db006a7590610e1a908490600401612fb7565b6060611d3a8484600085856126b98561274f565b6126d55760405162461bcd60e51b81526004016109a790612e79565b60006060866001600160a01b031685876040516126f2919061290d565b60006040518083038185875af1925050503d806000811461272f576040519150601f19603f3d011682016040523d82523d6000602084013e612734565b606091505b5091509150612744828286612755565b979650505050505050565b3b151590565b60608315612764575081610968565b8251156127745782518084602001fd5b8160405162461bcd60e51b81526004016109a79190612999565b60006020828403121561279f578081fd5b813561096881612ffa565b6000602082840312156127bb578081fd5b815161096881612ffa565b600080604083850312156127d8578081fd5b82356127e381612ffa565b915060208301356127f381612ffa565b809150509250929050565b600080600060608486031215612812578081fd5b833561281d81612ffa565b9250602084013561282d81612ffa565b929592945050506040919091013590565b60008060408385031215612850578182fd5b823561285b81612ffa565b946020939093013593505050565b60006020828403121561287a578081fd5b81518015158114610968578182fd5b60006020828403121561289a578081fd5b813560038110610968578182fd5b6000602082840312156128b9578081fd5b5035919050565b6000602082840312156128d1578081fd5b5051919050565b600080600080608085870312156128ed578081fd5b505082516020840151604085015160609095015191969095509092509050565b6000825161291f818460208701612fce565b9190910192915050565b6001600160a01b0391909116815260200190565b6001600160a01b039384168152919092166020820152604081019190915260600190565b6001600160a01b03929092168252602082015260400190565b901515815260200190565b602081016003831061299357fe5b91905290565b60006020825282518060208401526129b8816040850160208701612fce565b601f01601f19169190910160400192915050565b60208082526023908201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260408201526265737360e81b606082015260800190565b6020808252601590820152744f776e61626c653a206e6f7420636164696461746560581b604082015260600190565b60208082526026908201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160408201526564647265737360d01b606082015260800190565b60208082526022908201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604082015261737360f01b606082015260800190565b6020808252601b908201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604082015260600190565b6020808252601690820152751591539554ce881dda5d1a191c985dc819985a5b195960521b604082015260600190565b6020808252601e908201527f536166654d6174683a207375627472616374696f6e206f766572666c6f770000604082015260600190565b6020808252601a908201527f536166654d6174683a206469766973696f6e206279207a65726f000000000000604082015260600190565b6020808252601690820152751193d4951550914e881cdd5c1c1b1e4819985a5b195960521b604082015260600190565b6020808252601490820152731591539554ce881cdd5c1c1b1e4819985a5b195960621b604082015260600190565b60208082526021908201527f536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f6040820152607760f81b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b602080825260149082015273696e73756666696369656e742062616c616e636560601b604082015260600190565b6020808252601f908201527f7769746864726177206d7573742062652067726561746572207468616e203000604082015260600190565b60208082526018908201527f464f52545542453a207769746864726177206661696c65640000000000000000604082015260600190565b60208082526021908201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736040820152607360f81b606082015260800190565b60208082526021908201527f66656520616d6f756e74206d757374206265206c657373207468616e203130306040820152602560f81b606082015260800190565b60208082526025908201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604082015264647265737360d81b606082015260800190565b602080825260129082015271696e73756666696369656e742066756e647360701b604082015260600190565b60208082526024908201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646040820152637265737360e01b606082015260800190565b6020808252601e908201527f6465706f736974206d7573742062652067726561746572207468616e20300000604082015260600190565b6020808252601d908201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604082015260600190565b6020808252602f908201527f66656520707265636973696f6e206d757374206265206772656174657220746860408201526e185b880c4c0c08185d081b19585cdd608a1b606082015260800190565b6020808252602a908201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6040820152691bdd081cdd58d8d9595960b21b606082015260800190565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b6020808252601f908201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604082015260600190565b90815260200190565b60ff91909116815260200190565b60005b83811015612fe9578181015183820152602001612fd1565b838111156122ba5750506000910152565b6001600160a01b0381168114610f0257600080fdfe45524332303a206275726e20616d6f756e7420657863656564732062616c616e636545524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e636545524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e6365ddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa2646970667358221220e650badd117a15e5d71a818f3e7d9033d06be469271fa0baf5412c08b15d7bd664736f6c634300060c0033

Deployed ByteCode Sourcemap

42744:9963:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;33747:91;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;43380:36;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;35893:169::-;;;;;;;;;;-1:-1:-1;35893:169:0;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;48075:109::-;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;42907:19::-;;;;;;;;;;;;;:::i;34846:108::-;;;;;;;;;;;;;:::i;36544:321::-;;;;;;;;;;-1:-1:-1;36544:321:0;;;;;:::i;:::-;;:::i;43329:44::-;;;;;;;;;;-1:-1:-1;43329:44:0;;;;;:::i;:::-;;:::i;45686:1439::-;;;;;;;;;;-1:-1:-1;45686:1439:0;;;;;:::i;:::-;;:::i;:::-;;34690:91;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;43131:27::-;;;;;;;;;;;;;:::i;37274:218::-;;;;;;;;;;-1:-1:-1;37274:218:0;;;;;:::i;:::-;;:::i;51304:139::-;;;;;;;;;;-1:-1:-1;51304:139:0;;;;;:::i;:::-;;:::i;43042:25::-;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;52402:129::-;;;;;;;;;;-1:-1:-1;52402:129:0;;;;;:::i;:::-;;:::i;44203:85::-;;;;;;;;;;-1:-1:-1;44203:85:0;;;;;:::i;:::-;;:::i;42979:27::-;;;;;;;;;;;;;:::i;48400:91::-;;;;;;;;;;;;;:::i;44571:271::-;;;;;;;;;;-1:-1:-1;44571:271:0;;;;;:::i;:::-;;:::i;42956:18::-;;;;;;;;;;;;;:::i;43101:25::-;;;;;;;;;;;;;:::i;43072:24::-;;;;;;;;;;;;;:::i;35017:127::-;;;;;;;;;;-1:-1:-1;35017:127:0;;;;;:::i;:::-;;:::i;51976:104::-;;;;;;;;;;;;;:::i;30811:148::-;;;;;;;;;;;;;:::i;52086:156::-;;;;;;;;;;;;;:::i;48301:95::-;;;;;;;;;;;;;:::i;31316:199::-;;;;;;;;;;;;;:::i;50721:380::-;;;;;;;;;;;;;:::i;30160:87::-;;;;;;;;;;;;;:::i;44451:116::-;;;;;;;;;;-1:-1:-1;44451:116:0;;;;;:::i;:::-;;:::i;33957:95::-;;;;;;;;;;;;;:::i;47902:169::-;;;;;;;;;;;;;:::i;43280:44::-;;;;;;;;;;-1:-1:-1;43280:44:0;;;;;:::i;:::-;;:::i;47166:516::-;;;;;;;;;;;;;:::i;37995:269::-;;;;;;;;;;-1:-1:-1;37995:269:0;;;;;:::i;:::-;;:::i;35357:175::-;;;;;;;;;;-1:-1:-1;35357:175:0;;;;;:::i;:::-;;:::i;43011:26::-;;;;;;;;;;;;;:::i;47688:81::-;;;;;;;;;;;;;:::i;44893:783::-;;;;;;;;;;-1:-1:-1;44893:783:0;;;;;:::i;:::-;;:::i;48190:105::-;;;;;;;;;;;;;:::i;35595:151::-;;;;;;;;;;-1:-1:-1;35595:151:0;;;;;:::i;:::-;;:::i;47775:121::-;;;;;;;;;;-1:-1:-1;47775:121:0;;;;;:::i;:::-;;:::i;31114:194::-;;;;;;;;;;-1:-1:-1;31114:194:0;;;;;:::i;:::-;;:::i;52537:167::-;;;;;;;;;;-1:-1:-1;52537:167:0;;;;;:::i;:::-;;:::i;42931:20::-;;;;;;;;;;;;;:::i;44292:155::-;;;;;;;;;;-1:-1:-1;44292:155:0;;;;;:::i;:::-;;:::i;51107:193::-;;;;;;;;;;-1:-1:-1;51107:193:0;;;;;:::i;:::-;;:::i;52248:148::-;;;;;;;;;;-1:-1:-1;52248:148:0;;;;;:::i;:::-;;:::i;33747:91::-;33825:5;33818:12;;;;;;;;-1:-1:-1;;33818:12:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;33792:13;;33818:12;;33825:5;;33818:12;;33825:5;33818:12;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;33747:91;;:::o;43380:36::-;;;;;;:::o;35893:169::-;35976:4;35993:39;36002:12;:10;:12::i;:::-;36016:7;36025:6;35993:8;:39::i;:::-;-1:-1:-1;36050:4:0;35893:169;;;;;:::o;48075:109::-;48131:7;48154:24;:22;:24::i;:::-;48147:31;;48075:109;:::o;42907:19::-;;;;:::o;34846:108::-;34934:12;;34846:108;:::o;36544:321::-;36650:4;36667:36;36677:6;36685:9;36696:6;36667:9;:36::i;:::-;36714:121;36723:6;36731:12;:10;:12::i;:::-;36745:89;36783:6;36745:89;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;36745:19:0;;;;;;:11;:19;;;;;;36765:12;:10;:12::i;:::-;-1:-1:-1;;;;;36745:33:0;;;;;;;;;;;;-1:-1:-1;36745:33:0;;;:89;:37;:89::i;:::-;36714:8;:121::i;:::-;-1:-1:-1;36853:4:0;36544:321;;;;;;:::o;43329:44::-;;;;;;;;;;;;;;;:::o;45686:1439::-;4746:1;5352:7;;:19;;5344:63;;;;-1:-1:-1;;;5344:63:0;;;;;;;:::i;:::-;;;;;;;;;4746:1;5485:7;:18;45777:11;45769:55:::1;;;;-1:-1:-1::0;;;45769:55:0::1;;;;;;;:::i;:::-;45835:16;45854:21;45864:10;45854:9;:21::i;:::-;45835:40;;45903:8;45892:7;:19;;45884:52;;;;-1:-1:-1::0;;;45884:52:0::1;;;;;;;:::i;:::-;45999:23;:21;:23::i;:::-;45992:4;:30:::0;46031:9:::1;46043:39;46068:13;:11;:13::i;:::-;46044:4;::::0;:18:::1;::::0;46053:8;46044::::1;:18::i;:::-;46043:24:::0;::::1;:39::i;:::-;46031:51;;46141:9;46153:38;46177:13;:11;:13::i;:::-;46154:4;::::0;:17:::1;::::0;46163:7;46154:8:::1;:17::i;46153:38::-;46223:10;46207:27;::::0;;;:15:::1;:27;::::0;;;;;46141:50;;-1:-1:-1;46203:31:0;::::1;46200:91;;;46250:8;:1:::0;46256::::1;46250:5;:8::i;:::-;46246:12:::0;-1:-1:-1;46273:8:0::1;:1:::0;46279::::1;46273:5;:8::i;:::-;46269:12;;46200:91;46385:10;46299:14;46369:27:::0;;;:15:::1;:27;::::0;;;;;46316:82:::1;::::0;46357:40:::1;::::0;:7;;:11:::1;:40::i;:::-;46339:10;46323:27;::::0;;;:15:::1;:27;::::0;;;;;46317:34:::1;::::0;:1;;:5:::1;:34::i;:::-;46316:40:::0;::::1;:82::i;:::-;46299:99;;46443:1;-1:-1:-1::0;;;;;46414:41:0::1;46423:10;-1:-1:-1::0;;;;;46414:41:0::1;-1:-1:-1::0;;;;;;;;;;;46447:7:0::1;46414:41;;;;;;:::i;:::-;;;;;;;;46509:5;::::0;46502:38:::1;::::0;-1:-1:-1;;;46502:38:0;;46490:9:::1;::::0;-1:-1:-1;;;;;46509:5:0::1;::::0;46502:23:::1;::::0;:38:::1;::::0;46534:4:::1;::::0;46502:38:::1;;;:::i;:::-;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;46490:50;;46557:1;46553;:5;46549:55;;;46571:23;46585:8;:1:::0;46591;46585:5:::1;:8::i;:::-;46571:13;:23::i;:::-;46614:11;46628:39;46654:12;;46628:21;46639:9;;46628:6;:10;;:21;;;;:::i;:39::-;46614:53:::0;-1:-1:-1;46679:7:0;;46676:122:::1;;46705:5;::::0;46720:10:::1;::::0;46698:38:::1;::::0;-1:-1:-1;;;46698:38:0;;-1:-1:-1;;;;;46705:5:0;;::::1;::::0;46698:21:::1;::::0;:38:::1;::::0;46720:10;::::1;::::0;46732:3;;46698:38:::1;;;:::i;:::-;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1::0;46757:10:0::1;::::0;46782:5:::1;::::0;46747:41:::1;::::0;-1:-1:-1;;;46747:41:0;;-1:-1:-1;;;;;46757:10:0;;::::1;::::0;46747:34:::1;::::0;:41:::1;::::0;46782:5;::::1;::::0;46747:41:::1;;;:::i;:::-;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;46676:122;46806:50;46833:10;46845;:1:::0;46851:3;46845:5:::1;:10::i;:::-;46813:5;::::0;-1:-1:-1;;;;;46813:5:0::1;::::0;46806:50;:26:::1;:50::i;:::-;46865:26;46871:10;46883:7;46865:5;:26::i;:::-;46990:10;46974:27;::::0;;;:15:::1;:27;::::0;;;;;46930:87:::1;::::0;46962:54:::1;::::0;47007:8;;46962:40:::1;::::0;:7;;:11:::1;:40::i;:54::-;46946:10;46930:27;::::0;;;:15:::1;:27;::::0;;;;;;:31:::1;:87::i;:::-;46916:10;46900:27;::::0;;;:15:::1;:27;::::0;;;;:117;47026:11:::1;:9;:11::i;:::-;47053:23;:21;:23::i;:::-;47046:4;:30:::0;47090:29:::1;::::0;47111:7;;47099:10:::1;::::0;47090:29:::1;::::0;;;::::1;-1:-1:-1::0;;4702:1:0;5664:7;:22;-1:-1:-1;;;;;45686:1439:0:o;34690:91::-;34764:9;;;;34690:91;:::o;43131:27::-;;;;:::o;37274:218::-;37362:4;37379:83;37388:12;:10;:12::i;:::-;37402:7;37411:50;37450:10;37411:11;:25;37423:12;:10;:12::i;:::-;-1:-1:-1;;;;;37411:25:0;;;;;;;;;;;;;;;;;-1:-1:-1;37411:25:0;;;:34;;;;;;;;;;;:38;:50::i;51304:139::-;51371:1;51362:6;:10;51354:43;;;;-1:-1:-1;;;51354:43:0;;;;;;;:::i;:::-;51413:10;;51406:31;;-1:-1:-1;;;51406:31:0;;-1:-1:-1;;;;;51413:10:0;;;;51406:23;;:31;;51430:6;;51406:31;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;51304:139;:::o;43042:25::-;;;-1:-1:-1;;;;;43042:25:0;;:::o;52402:129::-;30391:12;:10;:12::i;:::-;-1:-1:-1;;;;;30380:23:0;:7;:5;:7::i;:::-;-1:-1:-1;;;;;30380:23:0;;30372:68;;;;-1:-1:-1;;;30372:68:0;;;;;;;:::i;:::-;52502:5:::1;52479:12;:20;52492:6;52479:20;;;;;;;;;;;;;;;;::::0;;::::1;::::0;::::1;::::0;;;;;;-1:-1:-1;52479:20:0;:28;;-1:-1:-1;;52479:28:0::1;::::0;::::1;;::::0;;;::::1;::::0;;52514:11:::1;:9;:11::i;:::-;52402:129:::0;:::o;44203:85::-;30391:12;:10;:12::i;:::-;-1:-1:-1;;;;;30380:23:0;:7;:5;:7::i;:::-;-1:-1:-1;;;;;30380:23:0;;30372:68;;;;-1:-1:-1;;;30372:68:0;;;;;;;:::i;:::-;44268:3:::1;:14:::0;;-1:-1:-1;;;;;;44268:14:0::1;-1:-1:-1::0;;;;;44268:14:0;;;::::1;::::0;;;::::1;::::0;;44203:85::o;42979:27::-;;;-1:-1:-1;;;;;42979:27:0;;:::o;48400:91::-;48447:7;48470:15;:13;:15::i;44571:271::-;30391:12;:10;:12::i;:::-;-1:-1:-1;;;;;30380:23:0;:7;:5;:7::i;:::-;-1:-1:-1;;;;;30380:23:0;;30372:68;;;;-1:-1:-1;;;30372:68:0;;;;;;;:::i;:::-;44678:3:::1;44658:16;:23;;44650:83;;;;-1:-1:-1::0;;;44650:83:0::1;;;;;;;:::i;:::-;44740:58;44785:12;;44768:16;44758:9;;:26;:39;;;;;;44740:17;:58::i;:::-;44805:12;:31:::0;44571:271::o;42956:18::-;;;-1:-1:-1;;;;;42956:18:0;;:::o;43101:25::-;;;-1:-1:-1;;;;;43101:25:0;;:::o;43072:24::-;;;;:::o;35017:127::-;-1:-1:-1;;;;;35118:18:0;35091:7;35118:18;;;;;;;;;;;;35017:127::o;51976:104::-;52029:4;52051:23;:21;:23::i;30811:148::-;30391:12;:10;:12::i;:::-;-1:-1:-1;;;;;30380:23:0;:7;:5;:7::i;:::-;-1:-1:-1;;;;;30380:23:0;;30372:68;;;;-1:-1:-1;;;30372:68:0;;;;;;;:::i;:::-;30902:6:::1;::::0;30881:40:::1;::::0;30918:1:::1;::::0;-1:-1:-1;;;;;30902:6:0::1;::::0;30881:40:::1;::::0;30918:1;;30881:40:::1;30932:6;:19:::0;;-1:-1:-1;;;;;;30932:19:0::1;::::0;;30811:148::o;52086:156::-;52139:4;52152:10;52165:23;:21;:23::i;:::-;52152:36;;52202:34;52222:13;:11;:13::i;:::-;52202:15;:5;52212:4;52202:9;:15::i;:34::-;52195:41;;;52086:156;:::o;48301:95::-;48350:7;48373:17;:15;:17::i;31316:199::-;31385:10;;-1:-1:-1;;;;;31385:10:0;31371;:24;31363:58;;;;-1:-1:-1;;;31363:58:0;;;;;;;:::i;:::-;31466:10;;31458:6;;31437:40;;-1:-1:-1;;;;;31466:10:0;;;;31458:6;;;;31437:40;;31466:10;;31437:40;31497:10;;31488:6;:19;;-1:-1:-1;;;;;;31488:19:0;-1:-1:-1;;;;;31497:10:0;;;31488:19;;;;;;31316:199::o;50721:380::-;50756:18;50777:11;:9;:11::i;:::-;50816:8;;50756:32;;-1:-1:-1;50816:8:0;;50801:23;;;;;;;;:11;:23;;;;;;;;;50797:60;;50835:14;:12;:14::i;:::-;50882:1;50869:10;:8;:10::i;:::-;:14;50865:200;;;50913:14;50898:11;:29;;;;;;;;;50894:164;;;50940:25;50954:10;:8;:10::i;50940:25::-;50894:164;;;51000:12;50985:11;:27;;;;;;;;;50981:77;;;51025:23;51037:10;:8;:10::i;51025:23::-;51073:8;:22;;51084:11;;51073:8;-1:-1:-1;;51073:22:0;;51084:11;51073:22;;;;;;;;;;;;;50721:380;:::o;30160:87::-;30233:6;;-1:-1:-1;;;;;30233:6:0;30160:87;:::o;44451:116::-;30391:12;:10;:12::i;:::-;-1:-1:-1;;;;;30380:23:0;:7;:5;:7::i;:::-;-1:-1:-1;;;;;30380:23:0;;30372:68;;;;-1:-1:-1;;;30372:68:0;;;;;;;:::i;:::-;44532:10:::1;:29:::0;;-1:-1:-1;;;;;;44532:29:0::1;-1:-1:-1::0;;;;;44532:29:0;;;::::1;::::0;;;::::1;::::0;;44451:116::o;33957:95::-;34037:7;34030:14;;;;;;;;-1:-1:-1;;34030:14:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;34004:13;;34030:14;;34037:7;;34030:14;;34037:7;34030:14;;;;;;;;;;;;;;;;;;;;;;;;47902:169;47949:5;;47976:11;;47964:37;;;-1:-1:-1;;;47964:37:0;;;;-1:-1:-1;;;;;47949:5:0;;;;47942:21;;47976:11;;47964:35;;:37;;;;;;;;;;;;;;47949:5;47976:11;47964:37;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1;;47942:71:0;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1;48029:5:0;;48044:10;;48022:43;;-1:-1:-1;;;48022:43:0;;-1:-1:-1;;;;;48029:5:0;;;;48022:21;;:43;;48044:10;;;-1:-1:-1;;48061:2:0;48022:43;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;43280:44::-;;;;;;;;;;;;;;;:::o;47166:516::-;47272:3;;47287:5;;47258:35;;-1:-1:-1;;;47258:35:0;;47208:6;;;;;;-1:-1:-1;;;;;47272:3:0;;;;47258:28;;:35;;47287:5;;;47258:35;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;47223:70;;;;;;47300:11;47334:3;47326:5;:11;:43;;;;-1:-1:-1;47354:14:0;47341:28;;:12;:28;;;;;;47326:43;47322:77;;;-1:-1:-1;47386:5:0;47322:77;47416:3;47409:4;:10;:40;;;;-1:-1:-1;47436:12:0;47423:26;;:12;:26;;;;;;47409:40;47405:73;;;-1:-1:-1;47466:4:0;47405:73;47484:18;47534:5;47527:3;:12;47523:129;;;-1:-1:-1;47564:14:0;47523:129;;;47603:4;47596:3;:11;47592:60;;;-1:-1:-1;47632:12:0;47592:60;47665:11;-1:-1:-1;;;;47166:516:0;:::o;37995:269::-;38088:4;38105:129;38114:12;:10;:12::i;:::-;38128:7;38137:96;38176:15;38137:96;;;;;;;;;;;;;;;;;:11;:25;38149:12;:10;:12::i;:::-;-1:-1:-1;;;;;38137:25:0;;;;;;;;;;;;;;;;;-1:-1:-1;38137:25:0;;;:34;;;;;;;;;;;:96;:38;:96::i;35357:175::-;35443:4;35460:42;35470:12;:10;:12::i;:::-;35484:9;35495:6;35460:9;:42::i;43011:26::-;;;-1:-1:-1;;;;;43011:26:0;;:::o;47688:81::-;47730:7;47753:10;:8;:10::i;44893:783::-;4746:1;5352:7;;:19;;5344:63;;;;-1:-1:-1;;;5344:63:0;;;;;;;:::i;:::-;4746:1;5485:7;:18;44983:11;44975:54:::1;;;;-1:-1:-1::0;;;44975:54:0::1;;;;;;;:::i;:::-;45045:23;:21;:23::i;:::-;45038:4;:30:::0;45084:5:::1;::::0;45077:66:::1;::::0;-1:-1:-1;;;;;45084:5:0::1;45108:10;45128:4;45135:7:::0;45077:30:::1;:66::i;:::-;45152:11;:9;:11::i;:::-;45204:14;45235:4;;45243:1;45235:9;45231:246;;;-1:-1:-1::0;45284:4:0::1;:14:::0;;;45266:7;45231:246:::1;;;45329:13;:11;:13::i;:::-;45325:143;;-1:-1:-1::0;45371:7:0;45325:143:::1;;;45418:38;45451:4;;45419:26;45431:13;:11;:13::i;:::-;45419:7:::0;;:11:::1;:26::i;45418:38::-;45409:47;;45325:143;45492:23;:21;:23::i;:::-;45485:4;:30:::0;45524:25:::1;45530:10;45542:6:::0;45524:5:::1;:25::i;:::-;45604:10;45588:27;::::0;;;:15:::1;:27;::::0;;;;;:40:::1;::::0;45620:7;45588:31:::1;:40::i;:::-;45574:10;45558:27;::::0;;;:15:::1;:27;::::0;;;;;:70;;;;45642:28;;45662:7;;45642:28:::1;::::0;::::1;-1:-1:-1::0;;4702:1:0;5664:7;:22;44893:783::o;48190:105::-;48244:7;48267:22;:20;:22::i;35595:151::-;-1:-1:-1;;;;;35711:18:0;;;35684:7;35711:18;;;:11;:18;;;;;;;;:27;;;;;;;;;;;;;35595:151::o;47775:121::-;-1:-1:-1;;;;;47865:25:0;47842:7;47865:25;;;:15;:25;;;;;;;47775:121::o;31114:194::-;30391:12;:10;:12::i;:::-;-1:-1:-1;;;;;30380:23:0;:7;:5;:7::i;:::-;-1:-1:-1;;;;;30380:23:0;;30372:68;;;;-1:-1:-1;;;30372:68:0;;;;;;;:::i;:::-;-1:-1:-1;;;;;31203:22:0;::::1;31195:73;;;;-1:-1:-1::0;;;31195:73:0::1;;;;;;;:::i;:::-;31279:10;:21:::0;;-1:-1:-1;;;;;;31279:21:0::1;-1:-1:-1::0;;;;;31279:21:0;;;::::1;::::0;;;::::1;::::0;;31114:194::o;52537:167::-;30391:12;:10;:12::i;:::-;-1:-1:-1;;;;;30380:23:0;:7;:5;:7::i;:::-;-1:-1:-1;;;;;30380:23:0;;30372:68;;;;-1:-1:-1;;;30372:68:0;;;;;;;:::i;:::-;52640:5:::1;52617:12;:20;52630:6;52617:20;;;;;;;;;;;;;;;;;;;;;;;;;;;;:28;;;;;;;;;;;;;;;;;;52675:5;52652:12;:20;52665:6;52652:20;;;;;;;42931::::0;;;-1:-1:-1;;;;;42931:20:0;;:::o;44292:155::-;30391:12;:10;:12::i;:::-;-1:-1:-1;;;;;30380:23:0;:7;:5;:7::i;:::-;-1:-1:-1;;;;;30380:23:0;;30372:68;;;;-1:-1:-1;;;30372:68:0;;;;;;;:::i;:::-;44369:12:::1;;44363:3;:18;44355:64;;;;-1:-1:-1::0;;;44355:64:0::1;;;;;;;:::i;:::-;44426:9;:15:::0;44292:155::o;51107:193::-;51176:1;51167:6;:10;51159:45;;;;-1:-1:-1;;;51159:45:0;;;;;;;:::i;:::-;51225:11;;51259:12;;51246:39;;;-1:-1:-1;;;51246:39:0;;;;-1:-1:-1;;;;;51225:11:0;;;;51213:32;;51259:12;;51246:37;;:39;;;;;;;;;;;;;;51259:12;51246:39;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;51287:6;51213:81;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;51107:193;:::o;52248:148::-;30391:12;:10;:12::i;:::-;-1:-1:-1;;;;;30380:23:0;:7;:5;:7::i;:::-;-1:-1:-1;;;;;30380:23:0;;30372:68;;;;-1:-1:-1;;;30372:68:0;;;;;;;:::i;:::-;52334:4:::1;52311:12;:20;52324:6;52311:20;;;;;;;;;;;;;;;;;;;;;;;;;;;;:27;;;;;;;;;;;;;;;;;;52368:4;52345:12;:20;52358:6;52345:20;;;;;;;28679:106:::0;28767:10;28679:106;:::o;41142:346::-;-1:-1:-1;;;;;41244:19:0;;41236:68;;;;-1:-1:-1;;;41236:68:0;;;;;;;:::i;:::-;-1:-1:-1;;;;;41323:21:0;;41315:68;;;;-1:-1:-1;;;41315:68:0;;;;;;;:::i;:::-;-1:-1:-1;;;;;41396:18:0;;;;;;;:11;:18;;;;;;;;:27;;;;;;;;;;;;;;:36;;;41448:32;;;;;41426:6;;41448:32;:::i;:::-;;;;;;;;41142:346;;;:::o;48613:374::-;48670:7;48686:9;48698:17;:15;:17::i;:::-;48686:29;;48730:1;48726;:5;:37;;;;-1:-1:-1;48748:14:0;48735:28;;:12;:28;;;;;;48726:37;48722:245;;;48810:12;;48797:47;;;-1:-1:-1;;;48797:47:0;;;;48774:20;;-1:-1:-1;;;;;48810:12:0;;48797:45;;:47;;;;;;;;;;;;;;48810:12;48797:47;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;48774:70;;48853:17;48886:12;;;;;;;;;-1:-1:-1;;;;;48886:12:0;-1:-1:-1;;;;;48873:30:0;;:32;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;48853:52;-1:-1:-1;48918:41:0;48957:1;48918:34;48853:52;48918:19;:1;48924:12;48918:5;:19::i;:34::-;:38;;:41::i;:::-;48914:45;48613:374;-1:-1:-1;;;;48613:374:0:o;38754:539::-;-1:-1:-1;;;;;38860:20:0;;38852:70;;;;-1:-1:-1;;;38852:70:0;;;;;;;:::i;:::-;-1:-1:-1;;;;;38941:23:0;;38933:71;;;;-1:-1:-1;;;38933:71:0;;;;;;;:::i;:::-;39017:47;39038:6;39046:9;39057:6;39017:20;:47::i;:::-;39097:71;39119:6;39097:71;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;39097:17:0;;:9;:17;;;;;;;;;;;;:71;:21;:71::i;:::-;-1:-1:-1;;;;;39077:17:0;;;:9;:17;;;;;;;;;;;:91;;;;39202:20;;;;;;;:32;;39227:6;39202:24;:32::i;:::-;-1:-1:-1;;;;;39179:20:0;;;:9;:20;;;;;;;;;;;;:55;;;;39250:35;;;;;;-1:-1:-1;;;;;;;;;;;39250:35:0;;;39278:6;;39250:35;:::i;22346:166::-;22432:7;22468:12;22460:6;;;;22452:29;;;;-1:-1:-1;;;22452:29:0;;;;;;;;:::i;:::-;-1:-1:-1;;;22499:5:0;;;22346:166::o;51804:::-;51860:4;51880:84;51953:10;:8;:10::i;:::-;51880:60;51917:22;:20;:22::i;:::-;51880:24;:22;:24::i;20398:220::-;20456:7;20480:6;20476:20;;-1:-1:-1;20495:1:0;20488:8;;20476:20;20519:5;;;20523:1;20519;:5;:1;20543:5;;;;;:10;20535:56;;;;-1:-1:-1;;;20535:56:0;;;;;;;:::i;21096:153::-;21154:7;21186:1;21182;:5;21174:44;;;;-1:-1:-1;;;21174:44:0;;;;;;;:::i;:::-;21240:1;21236;:5;;;;;;;21096:153;-1:-1:-1;;;21096:153:0:o;19519:179::-;19577:7;19609:5;;;19633:6;;;;19625:46;;;;-1:-1:-1;;;19625:46:0;;;;;;;:::i;19981:158::-;20039:7;20072:1;20067;:6;;20059:49;;;;-1:-1:-1;;;20059:49:0;;;;;;;:::i;:::-;-1:-1:-1;20126:5:0;;;19981:158::o;50490:225::-;50568:14;50556:8;;;;:26;;;;;;;;;50552:78;;;50593:29;50614:7;50593:20;:29::i;:::-;50652:12;50640:8;;;;:24;;;;;;;;;50636:74;;;50675:27;50694:7;50675:18;:27::i;24911:177::-;24994:86;25014:5;25044:23;;;25069:2;25073:5;25021:58;;;;;;;;;:::i;:::-;;;;-1:-1:-1;;25021:58:0;;;;;;;;;;;;;;-1:-1:-1;;;;;25021:58:0;-1:-1:-1;;;;;;25021:58:0;;;;;;;;;;24994:19;:86::i;:::-;24911:177;;;:::o;40286:418::-;-1:-1:-1;;;;;40370:21:0;;40362:67;;;;-1:-1:-1;;;40362:67:0;;;;;;;:::i;:::-;40442:49;40463:7;40480:1;40484:6;40442:20;:49::i;:::-;40525:68;40548:6;40525:68;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;40525:18:0;;:9;:18;;;;;;;;;;;;:68;:22;:68::i;:::-;-1:-1:-1;;;;;40504:18:0;;:9;:18;;;;;;;;;;:89;40619:12;;:24;;40636:6;40619:16;:24::i;:::-;40604:12;:39;40659:37;;40685:1;;-1:-1:-1;;;;;40659:37:0;;;-1:-1:-1;;;;;;;;;;;40659:37:0;;;40689:6;;40659:37;:::i;:::-;;;;;;;;40286:418;;:::o;49504:185::-;49584:12;49552:7;49571:26;;;:12;:26;;;;;;49568:115;;;49620:10;;49613:43;;-1:-1:-1;;;49613:43:0;;-1:-1:-1;;;;;49620:10:0;;;;49613:28;;:43;;49650:4;;49613:43;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;49606:50;;;;49568:115;-1:-1:-1;49682:1:0;49675:8;;49303:197;49385:14;49353:7;49372:28;;;:12;:28;;;;;;49369:125;;;49429:12;;49416:51;;-1:-1:-1;;;49416:51:0;;-1:-1:-1;;;;;49429:12:0;;;;49416:36;;:51;;49461:4;;49416:51;;;:::i;49695:236::-;49735:15;49753:17;:15;:17::i;:::-;49735:35;-1:-1:-1;49781:10:0;;49777:57;;49802:24;49819:6;49802:16;:24::i;:::-;49849:15;:13;:15::i;:::-;49840:24;-1:-1:-1;49875:10:0;;49871:55;;49896:22;49911:6;49896:14;:22::i;48497:110::-;48570:5;;48563:38;;-1:-1:-1;;;48563:38:0;;48540:7;;-1:-1:-1;;;;;48570:5:0;;48563:23;;:38;;48595:4;;48563:38;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;25096:205::-;25197:96;25217:5;25247:27;;;25276:4;25282:2;25286:5;25224:68;;;;;;;;;;:::i;25197:96::-;25096:205;;;;:::o;39575:378::-;-1:-1:-1;;;;;39659:21:0;;39651:65;;;;-1:-1:-1;;;39651:65:0;;;;;;;:::i;:::-;39729:49;39758:1;39762:7;39771:6;39729:20;:49::i;:::-;39806:12;;:24;;39823:6;39806:16;:24::i;:::-;39791:12;:39;-1:-1:-1;;;;;39862:18:0;;:9;:18;;;;;;;;;;;:30;;39885:6;39862:22;:30::i;:::-;-1:-1:-1;;;;;39841:18:0;;:9;:18;;;;;;;;;;;:51;;;;39908:37;;39841:18;;:9;-1:-1:-1;;;;;;;;;;;39908:37:0;;;39938:6;;39908:37;:::i;48993:306::-;49048:7;49064:9;49076:15;:13;:15::i;:::-;49064:27;;49106:1;49102;:5;:35;;;;-1:-1:-1;49124:12:0;49111:26;;:12;:26;;;;;;49102:35;49098:179;;;49178:10;;49171:39;;;-1:-1:-1;;;49171:39:0;;;;49148:20;;-1:-1:-1;;;;;49178:10:0;;49171:37;;:39;;;;;;;;;;;;;;49178:10;49171:39;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;49148:62;-1:-1:-1;49223:46:0;49264:4;49223:36;49257:1;49223:29;49247:4;49223:19;:1;49148:62;49223:5;:19::i;49937:279::-;50000:9;50012:17;:15;:17::i;:::-;50000:29;;50036:10;50049:24;:22;:24::i;:::-;50036:37;;50094:7;50088:2;:13;;50080:44;;;;-1:-1:-1;;;50080:44:0;;;;;;;:::i;:::-;50131:14;50148:31;50177:1;50148:24;50169:2;50149:14;:1;50155:7;50149:5;:14::i;50148:31::-;50131:48;;50186:24;50203:6;50186:16;:24::i;50220:264::-;50281:9;50293:15;:13;:15::i;:::-;50281:27;;50315:10;50328:22;:20;:22::i;:::-;50315:35;;50371:7;50365:2;:13;;50357:44;;;;-1:-1:-1;;;50357:44:0;;;;;;;:::i;:::-;50408:14;50425:24;50446:2;50426:14;:1;50432:7;50426:5;:14::i;50425:24::-;50408:41;;50456:22;50471:6;50456:14;:22::i;27216:761::-;27640:23;27666:69;27694:4;27666:69;;;;;;;;;;;;;;;;;27674:5;-1:-1:-1;;;;;27666:27:0;;;:69;;;;;:::i;:::-;27750:17;;27640:95;;-1:-1:-1;27750:21:0;27746:224;;27892:10;27881:30;;;;;;;;;;;;:::i;:::-;27873:85;;;;-1:-1:-1;;;27873:85:0;;;;;;;:::i;51447:201::-;51521:1;51512:6;:10;51504:47;;;;-1:-1:-1;;;51504:47:0;;;;;;;:::i;:::-;51572:11;;51607:12;;51594:39;;;-1:-1:-1;;;51594:39:0;;;;-1:-1:-1;;;;;51572:11:0;;;;51560:33;;51607:12;;51594:37;;:39;;;;;;;;;;;;;;51607:12;51594:39;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;51635:6;51560:82;;;;;;;;;;;;;;;;:::i;51652:148::-;51724:1;51715:6;:10;51707:45;;;;-1:-1:-1;;;51707:45:0;;;;;;;:::i;:::-;51768:10;;51761:33;;-1:-1:-1;;;51761:33:0;;-1:-1:-1;;;;;51768:10:0;;;;51761:25;;:33;;51787:6;;51761:33;;;:::i;12322:195::-;12425:12;12457:52;12479:6;12487:4;12493:1;12496:12;12425;13626:18;13637:6;13626:10;:18::i;:::-;13618:60;;;;-1:-1:-1;;;13618:60:0;;;;;;;:::i;:::-;13752:12;13766:23;13793:6;-1:-1:-1;;;;;13793:11:0;13813:5;13821:4;13793:33;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;13751:75;;;;13844:52;13862:7;13871:10;13883:12;13844:17;:52::i;:::-;13837:59;13374:530;-1:-1:-1;;;;;;;13374:530:0:o;9404:422::-;9771:20;9810:8;;;9404:422::o;15914:742::-;16029:12;16058:7;16054:595;;;-1:-1:-1;16089:10:0;16082:17;;16054:595;16203:17;;:21;16199:439;;16466:10;16460:17;16527:15;16514:10;16510:2;16506:19;16499:44;16414:148;16609:12;16602:20;;-1:-1:-1;;;16602:20:0;;;;;;;;:::i;855:241:-1:-;;959:2;947:9;938:7;934:23;930:32;927:2;;;-1:-1;;965:12;927:2;85:6;72:20;97:33;124:5;97:33;:::i;1103:263::-;;1218:2;1206:9;1197:7;1193:23;1189:32;1186:2;;;-1:-1;;1224:12;1186:2;226:6;220:13;238:33;265:5;238:33;:::i;1373:366::-;;;1494:2;1482:9;1473:7;1469:23;1465:32;1462:2;;;-1:-1;;1500:12;1462:2;85:6;72:20;97:33;124:5;97:33;:::i;:::-;1552:63;-1:-1;1652:2;1691:22;;72:20;97:33;72:20;97:33;:::i;:::-;1660:63;;;;1456:283;;;;;:::o;1746:491::-;;;;1884:2;1872:9;1863:7;1859:23;1855:32;1852:2;;;-1:-1;;1890:12;1852:2;85:6;72:20;97:33;124:5;97:33;:::i;:::-;1942:63;-1:-1;2042:2;2081:22;;72:20;97:33;72:20;97:33;:::i;:::-;1846:391;;2050:63;;-1:-1;;;2150:2;2189:22;;;;644:20;;1846:391::o;2244:366::-;;;2365:2;2353:9;2344:7;2340:23;2336:32;2333:2;;;-1:-1;;2371:12;2333:2;85:6;72:20;97:33;124:5;97:33;:::i;:::-;2423:63;2523:2;2562:22;;;;644:20;;-1:-1;;;2327:283::o;2617:257::-;;2729:2;2717:9;2708:7;2704:23;2700:32;2697:2;;;-1:-1;;2735:12;2697:2;364:6;358:13;32007:5;30341:13;30334:21;31985:5;31982:32;31972:2;;-1:-1;;32018:12;2881:263;;2996:2;2984:9;2975:7;2971:23;2967:32;2964:2;;;-1:-1;;3002:12;2964:2;509:6;496:20;32124:1;32117:5;32114:12;32104:2;;-1:-1;;32130:12;3151:241;;3255:2;3243:9;3234:7;3230:23;3226:32;3223:2;;;-1:-1;;3261:12;3223:2;-1:-1;644:20;;3217:175;-1:-1;3217:175::o;3399:263::-;;3514:2;3502:9;3493:7;3489:23;3485:32;3482:2;;;-1:-1;;3520:12;3482:2;-1:-1;792:13;;3476:186;-1:-1;3476:186::o;3669:672::-;;;;;3835:3;3823:9;3814:7;3810:23;3806:33;3803:2;;;-1:-1;;3842:12;3803:2;-1:-1;;792:13;;4005:2;4055:22;;792:13;4124:2;4174:22;;792:13;4243:2;4293:22;;;792:13;;;;;-1:-1;792:13;;-1:-1;3797:544;-1:-1;3797:544::o;15400:271::-;;4888:5;29682:12;4999:52;5044:6;5039:3;5032:4;5025:5;5021:16;4999:52;:::i;:::-;5063:16;;;;;15534:137;-1:-1;;15534:137::o;15678:222::-;-1:-1;;;;;30564:54;;;;4568:37;;15805:2;15790:18;;15776:124::o;16152:444::-;-1:-1;;;;;30564:54;;;4568:37;;30564:54;;;;16499:2;16484:18;;4568:37;16582:2;16567:18;;15237:37;;;;16335:2;16320:18;;16306:290::o;16603:333::-;-1:-1;;;;;30564:54;;;;4568:37;;16922:2;16907:18;;15237:37;16758:2;16743:18;;16729:207::o;16943:210::-;30341:13;;30334:21;4682:34;;17064:2;17049:18;;17035:118::o;17160:240::-;17296:2;17281:18;;31773:1;31763:12;;31753:2;;31779:9;31753:2;5171:59;;;17267:133;:::o;17407:310::-;;17554:2;17575:17;17568:47;5387:5;29682:12;30121:6;17554:2;17543:9;17539:18;30109:19;5481:52;5526:6;30149:14;17543:9;30149:14;17554:2;5507:5;5503:16;5481:52;:::i;:::-;31672:7;31656:14;-1:-1;;31652:28;5545:39;;;;30149:14;5545:39;;17525:192;-1:-1;;17525:192::o;17724:416::-;17924:2;17938:47;;;5821:2;17909:18;;;30109:19;5857:34;30149:14;;;5837:55;-1:-1;;;5912:12;;;5905:27;5951:12;;;17895:245::o;18147:416::-;18347:2;18361:47;;;6202:2;18332:18;;;30109:19;-1:-1;;;30149:14;;;6218:44;6281:12;;;18318:245::o;18570:416::-;18770:2;18784:47;;;6532:2;18755:18;;;30109:19;6568:34;30149:14;;;6548:55;-1:-1;;;6623:12;;;6616:30;6665:12;;;18741:245::o;18993:416::-;19193:2;19207:47;;;6916:2;19178:18;;;30109:19;6952:34;30149:14;;;6932:55;-1:-1;;;7007:12;;;7000:26;7045:12;;;19164:245::o;19416:416::-;19616:2;19630:47;;;7296:2;19601:18;;;30109:19;7332:29;30149:14;;;7312:50;7381:12;;;19587:245::o;19839:416::-;20039:2;20053:47;;;7632:2;20024:18;;;30109:19;-1:-1;;;30149:14;;;7648:45;7712:12;;;20010:245::o;20262:416::-;20462:2;20476:47;;;7963:2;20447:18;;;30109:19;7999:32;30149:14;;;7979:53;8051:12;;;20433:245::o;21108:416::-;21308:2;21322:47;;;8686:2;21293:18;;;30109:19;8722:28;30149:14;;;8702:49;8770:12;;;21279:245::o;21531:416::-;21731:2;21745:47;;;9021:2;21716:18;;;30109:19;-1:-1;;;30149:14;;;9037:45;9101:12;;;21702:245::o;21954:416::-;22154:2;22168:47;;;9352:2;22139:18;;;30109:19;-1:-1;;;30149:14;;;9368:43;9430:12;;;22125:245::o;22377:416::-;22577:2;22591:47;;;9681:2;22562:18;;;30109:19;9717:34;30149:14;;;9697:55;-1:-1;;;9772:12;;;9765:25;9809:12;;;22548:245::o;22800:416::-;23000:2;23014:47;;;22985:18;;;30109:19;10096:34;30149:14;;;10076:55;10150:12;;;22971:245::o;23223:416::-;23423:2;23437:47;;;10401:2;23408:18;;;30109:19;-1:-1;;;30149:14;;;10417:43;10479:12;;;23394:245::o;23646:416::-;23846:2;23860:47;;;10730:2;23831:18;;;30109:19;10766:33;30149:14;;;10746:54;10819:12;;;23817:245::o;24069:416::-;24269:2;24283:47;;;11070:2;24254:18;;;30109:19;11106:26;30149:14;;;11086:47;11152:12;;;24240:245::o;24492:416::-;24692:2;24706:47;;;11403:2;24677:18;;;30109:19;11439:34;30149:14;;;11419:55;-1:-1;;;11494:12;;;11487:25;11531:12;;;24663:245::o;24915:416::-;25115:2;25129:47;;;11782:2;25100:18;;;30109:19;11818:34;30149:14;;;11798:55;-1:-1;;;11873:12;;;11866:25;11910:12;;;25086:245::o;25338:416::-;25538:2;25552:47;;;12161:2;25523:18;;;30109:19;12197:34;30149:14;;;12177:55;-1:-1;;;12252:12;;;12245:29;12293:12;;;25509:245::o;25761:416::-;25961:2;25975:47;;;12544:2;25946:18;;;30109:19;-1:-1;;;30149:14;;;12560:41;12620:12;;;25932:245::o;26184:416::-;26384:2;26398:47;;;12871:2;26369:18;;;30109:19;12907:34;30149:14;;;12887:55;-1:-1;;;12962:12;;;12955:28;13002:12;;;26355:245::o;26607:416::-;26807:2;26821:47;;;13253:2;26792:18;;;30109:19;13289:32;30149:14;;;13269:53;13341:12;;;26778:245::o;27030:416::-;27230:2;27244:47;;;13592:2;27215:18;;;30109:19;13628:31;30149:14;;;13608:52;13679:12;;;27201:245::o;27453:416::-;27653:2;27667:47;;;13930:2;27638:18;;;30109:19;13966:34;30149:14;;;13946:55;-1:-1;;;14021:12;;;14014:39;14072:12;;;27624:245::o;27876:416::-;28076:2;28090:47;;;14323:2;28061:18;;;30109:19;14359:34;30149:14;;;14339:55;-1:-1;;;14414:12;;;14407:34;14460:12;;;28047:245::o;28299:416::-;28499:2;28513:47;;;14711:2;28484:18;;;30109:19;14747:33;30149:14;;;14727:54;14800:12;;;28470:245::o;28722:416::-;28922:2;28936:47;;;15051:2;28907:18;;;30109:19;15087:33;30149:14;;;15067:54;15140:12;;;28893:245::o;29145:222::-;15237:37;;;29272:2;29257:18;;29243:124::o;29374:214::-;30780:4;30769:16;;;;15353:35;;29497:2;29482:18;;29468:120::o;31312:268::-;31377:1;31384:101;31398:6;31395:1;31392:13;31384:101;;;31465:11;;;31459:18;31446:11;;;31439:39;31420:2;31413:10;31384:101;;;31500:6;31497:1;31494:13;31491:2;;;-1:-1;;31377:1;31547:16;;31540:27;31361:219::o;31802:117::-;-1:-1;;;;;30564:54;;31861:35;;31851:2;;31910:1;;31900:12

Swarm Source

ipfs://e650badd117a15e5d71a818f3e7d9033d06be469271fa0baf5412c08b15d7bd6
Block Transaction Gas Used Reward
Age Block Fee Address BC Fee Address Voting Power Jailed Incoming
Block Uncle Number Difficulty Gas Used Reward
Loading
Loading
Make sure to use the "Vote Down" button for any spammy posts, and the "Vote Up" for interesting conversations.