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

Contract 0xa25dec88B81a94Ca951f3a4ff4AAbC32B3759E6C

 

Contract Overview

Balance:
0 BNB

BNB Value:
$0.00

Token:
Txn Hash Method
Block
From
To
Value [Txn Fee]
0x9f6336912e5dc40faff124de4a123a7bfb7b60bb3b4587a2c7ec23b6e1067d55Deposit130870342021-11-30 21:44:131 day 9 hrs ago0x68f76296465b2442005f825694bc0439f4765cf3 IN  0xa25dec88b81a94ca951f3a4ff4aabc32b3759e6c0 BNB0.00227793
0x37dddf4a1cf624d6ab201768c1a6cbfb10d15f24fcbd5753e3f6dd69cfb288c9Withdraw130865712021-11-30 21:20:241 day 9 hrs ago0x68f76296465b2442005f825694bc0439f4765cf3 IN  0xa25dec88b81a94ca951f3a4ff4aabc32b3759e6c0 BNB0.002690495
0xa6359ed073fbb08bb2dbac0971682180cd8d169e8e0663a67503c3eec1c3bb93Withdraw130865402021-11-30 21:18:421 day 9 hrs ago0x68f76296465b2442005f825694bc0439f4765cf3 IN  0xa25dec88b81a94ca951f3a4ff4aabc32b3759e6c0 BNB0.002857045
0x062659fb4dd339258adbfda16233ac4b9ad0905f2acaa10d2efcb98d1de0e91cDeposit130864062021-11-30 21:11:391 day 9 hrs ago0x68f76296465b2442005f825694bc0439f4765cf3 IN  0xa25dec88b81a94ca951f3a4ff4aabc32b3759e6c0 BNB0.00227787
0xfdb79fd44c53ec4f7fb619ab8c46f6f12f218f11cc8c5e6e7adc38cd787a86baDeposit130576102021-11-29 19:35:322 days 11 hrs ago0x68f76296465b2442005f825694bc0439f4765cf3 IN  0xa25dec88b81a94ca951f3a4ff4aabc32b3759e6c0 BNB0.00220328
0x67f22c7c6072ab2167bb93e6a891d6ca29a0ac7b88e9c2abb260c5f27e06eb7aDeposit130516262021-11-29 14:09:592 days 16 hrs ago0x8693d94beaed03e090cd6f1aafd9c01da11d0f19 IN  0xa25dec88b81a94ca951f3a4ff4aabc32b3759e6c0 BNB0.00313282
0x027c4637ac6198356a1ea7852fb3a05feea5cde6484dcc33d19d5153134692e1Withdraw129689702021-11-26 11:29:025 days 19 hrs ago0x8693d94beaed03e090cd6f1aafd9c01da11d0f19 IN  0xa25dec88b81a94ca951f3a4ff4aabc32b3759e6c0 BNB0.00600494
0xef9a68c34acaec3f5524d0568c4375fa0ed0daa82f9ce330cccdbaa0f17b5059Withdraw129673592021-11-26 10:00:355 days 21 hrs ago0x8693d94beaed03e090cd6f1aafd9c01da11d0f19 IN  0xa25dec88b81a94ca951f3a4ff4aabc32b3759e6c0 BNB0.006273715
0xba687c2e05641516743bf07f2209231e070b3e609f6d4360f355d56f64cbf82cDeposit129546482021-11-25 21:37:066 days 9 hrs ago0x8693d94beaed03e090cd6f1aafd9c01da11d0f19 IN  0xa25dec88b81a94ca951f3a4ff4aabc32b3759e6c0 BNB0.003197205
0x2f0891fba17cf4650e136906c9c30d821577d798d6c08bdb88b0dc2c727db481Deposit129537012021-11-25 20:48:026 days 10 hrs ago0x8693d94beaed03e090cd6f1aafd9c01da11d0f19 IN  0xa25dec88b81a94ca951f3a4ff4aabc32b3759e6c0 BNB0.003121995
0xd0c4ea3b785c121332a1605d9899a241e255bb7ac5bc8c0d3dbdd400c0eb7228Approve129534122021-11-25 20:33:116 days 10 hrs ago0x8693d94beaed03e090cd6f1aafd9c01da11d0f19 IN  0xa25dec88b81a94ca951f3a4ff4aabc32b3759e6c0 BNB0.00022047
0x346fab37a79d980a7ab927c2a29ee50a203c3c66619f86ab58632612aac04176Deposit129531212021-11-25 20:17:326 days 10 hrs ago0x8693d94beaed03e090cd6f1aafd9c01da11d0f19 IN  0xa25dec88b81a94ca951f3a4ff4aabc32b3759e6c0 BNB0.003122275
0xfb9b75472d8855ba86da6dcf0f33bc5708d2945fb14f2a3ad766bf8842067f7bApprove129530082021-11-25 20:11:176 days 10 hrs ago0x8693d94beaed03e090cd6f1aafd9c01da11d0f19 IN  0xa25dec88b81a94ca951f3a4ff4aabc32b3759e6c0 BNB0.00022047
0xdbe6c0a12a5f4db431a26f5089b3653c11f9eac080e5da8eeba1569f223f0045Approve129528482021-11-25 20:02:376 days 11 hrs ago0x8693d94beaed03e090cd6f1aafd9c01da11d0f19 IN  0xa25dec88b81a94ca951f3a4ff4aabc32b3759e6c0 BNB0.00022047
0x752fae1ae2ecd3d5688110e6fec0fe9c5712bffa137bbcaba4f8e66c1e283a9eApprove129526942021-11-25 19:53:596 days 11 hrs ago0x8693d94beaed03e090cd6f1aafd9c01da11d0f19 IN  0xa25dec88b81a94ca951f3a4ff4aabc32b3759e6c0 BNB0.00022047
0xc1761486980796a3c6422e4a2d48fdf46710034e0a830eed555dd0b372d5a4d9Approve129526082021-11-25 19:48:436 days 11 hrs ago0x8693d94beaed03e090cd6f1aafd9c01da11d0f19 IN  0xa25dec88b81a94ca951f3a4ff4aabc32b3759e6c0 BNB0.00022047
0x80829ab8e807217fbe8dcbc982f102f158a82bd2403c1a77a44846d71063171bApprove129524142021-11-25 19:38:346 days 11 hrs ago0x8693d94beaed03e090cd6f1aafd9c01da11d0f19 IN  0xa25dec88b81a94ca951f3a4ff4aabc32b3759e6c0 BNB0.00022047
0xe572f4a49412af17dcd1d53f0f3d0ab3e2d1b83dab808a0895176eee42f54cc8Approve129520782021-11-25 19:21:056 days 11 hrs ago0x8693d94beaed03e090cd6f1aafd9c01da11d0f19 IN  0xa25dec88b81a94ca951f3a4ff4aabc32b3759e6c0 BNB0.00022047
0x8ec6954d343d5c3fe786f8400b1921b96f1d6e6293b1df09e6a284ab478ca406Approve129518812021-11-25 19:10:226 days 11 hrs ago0x8693d94beaed03e090cd6f1aafd9c01da11d0f19 IN  0xa25dec88b81a94ca951f3a4ff4aabc32b3759e6c0 BNB0.00022047
0x7e3009c95b3d5b4067cf92fd22295a69684dead9566b0558894d900c667ae9abWithdraw129517102021-11-25 19:01:456 days 12 hrs ago0x8693d94beaed03e090cd6f1aafd9c01da11d0f19 IN  0xa25dec88b81a94ca951f3a4ff4aabc32b3759e6c0 BNB0.00475696
0xf57bc997235841b38697268f2c7922437eca50d91c2d020778f6c862268dea6eDeposit129516932021-11-25 19:00:546 days 12 hrs ago0x8693d94beaed03e090cd6f1aafd9c01da11d0f19 IN  0xa25dec88b81a94ca951f3a4ff4aabc32b3759e6c0 BNB0.003122625
0x4f37bd8a45e2fe9bdcb0a5b6511dcd5d1c6fc217de269ac10cedbd62ff780497Deposit129514202021-11-25 18:46:286 days 12 hrs ago0x68f76296465b2442005f825694bc0439f4765cf3 IN  0xa25dec88b81a94ca951f3a4ff4aabc32b3759e6c0 BNB0.003122065
0x2cab4b3dfcaaff079912e48754d9ae3dbbb07e1df3983ca1f1b803a2eb36c4e1Approve129512142021-11-25 18:34:406 days 12 hrs ago0x8693d94beaed03e090cd6f1aafd9c01da11d0f19 IN  0xa25dec88b81a94ca951f3a4ff4aabc32b3759e6c0 BNB0.00022047
0x4928087cdf956af40b3470b71bc11d29833db7867471b2aa8960f2d179d60500Withdraw129511322021-11-25 18:30:196 days 12 hrs ago0x8693d94beaed03e090cd6f1aafd9c01da11d0f19 IN  0xa25dec88b81a94ca951f3a4ff4aabc32b3759e6c0 BNB0.00475649
0x98c468c5b6506128b7e6725eb331c07af89e280c6814acbc32c63cbbe6c53852Withdraw129488522021-11-25 16:27:066 days 14 hrs ago0xc4587f57dbbe0e9e7648aef0f8c86b591c15c8cf IN  0xa25dec88b81a94ca951f3a4ff4aabc32b3759e6c0 BNB0.00475654
[ Download CSV Export 
Parent Txn Hash Block From To Value
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
xBUSD

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/IAlpaca.sol


pragma solidity 0.6.12;
interface IAlpaca {
    function balanceOf(address _owner) external view returns (uint256 balance);
    function deposit(uint256 _amount) external payable;
    function withdraw(uint256 _share) external;
    function totalToken() external view returns (uint256);
    function totalSupply() external view returns (uint256);
}
// 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/Fulcrum.sol


pragma solidity 0.6.12;
interface Fulcrum {
    function mint(address receiver, uint256 amount) external payable returns (uint256 mintAmount);
    function burn(address receiver, uint256 burnAmount) external returns (uint256 loanAmountPaid);
    function assetBalanceOf(address _owner) external view returns (uint256 balance);
    function mintWithEther(address receiver) external payable returns(uint256);
    function burnToEther(address receiver, uint256 burnAmount) external returns(uint256);
}
// 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/XBUSD.sol


pragma solidity 0.6.12;
pragma experimental ABIEncoderV2;

















contract xBUSD 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 fulcrum;
  address public apr;
  address public fortubeToken;
  address public fortubeBank;
  address public feeAddress;
  uint256 public feeAmount;
  address public venusToken;
  uint256 public feePrecision;
  address public alpacaToken;

  mapping (address => uint256) depositedAmount;

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

  Lender public provider = Lender.NONE;

  constructor () public ERC20("xend BUSD", "xBUSD") {
    token = address(0xe9e7CEA3DedcA5984780Bafc599bD69ADd087D56);
    apr = address(0xdD6d648C991f7d47454354f4Ef326b04025a48A8);
    fulcrum = address(0x7343b25c4953f4C57ED4D16c33cbEDEFAE9E8Eb9);
    fortubeToken = address(0x57160962Dc107C8FBC2A619aCA43F79Fd03E7556);
    fortubeBank = address(0x0cEA0832e9cdBb5D476040D58Ea07ecfbeBB7672);
    feeAddress = address(0x143afc138978Ad681f7C7571858FAAA9D426CecE);
    venusToken = address(0x95c78222B3D6e262426483D42CfA53685A67Ab9D);
    alpacaToken = address(0x7C9e73d4C71dae564d41F78d56439bB4ba87592f);
    feeAmount = 0;
    feePrecision = 1000;
    approveToken();
    lenderStatus[Lender.FULCRUM] = false;
    lenderStatus[Lender.FORTUBE] = true;
    lenderStatus[Lender.VENUS] = true;
    lenderStatus[Lender.ALPACA] = true;
    withdrawable[Lender.FULCRUM] = false;
    withdrawable[Lender.FORTUBE] = true;
    withdrawable[Lender.VENUS] = true;
    withdrawable[Lender.ALPACA] = 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 fapr, uint256 ftapr, uint256 vapr, uint256 aapr) = IIEarnManager(apr).recommend(token);
    uint256 max = 0;
    if (fapr > max && lenderStatus[Lender.FULCRUM]) {
      max = fapr;
    }
    if (ftapr > max && lenderStatus[Lender.FORTUBE]) {
      max = ftapr;
    }
    if (vapr > max && lenderStatus[Lender.VENUS]) {
      max = vapr;
    }
    if (aapr > max && lenderStatus[Lender.ALPACA]) {
      max = aapr;
    }
    Lender newProvider = Lender.NONE;
    if (max == fapr) {
      newProvider = Lender.FULCRUM;
    } else if (max == ftapr) {
      newProvider = Lender.FORTUBE;
    } else if (max == vapr) {
      newProvider = Lender.VENUS;
    } else if (max == aapr) {
      newProvider = Lender.ALPACA;
    }
    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(fulcrum, uint(-1));
      IERC20(token).approve(FortubeBank(fortubeBank).controller(),  uint(-1));
      IERC20(token).approve(venusToken, uint(-1));
      IERC20(token).approve(alpacaToken, uint(-1));
  }
  function balanceFortubeInToken() external view returns (uint256) {
    return _balanceFortubeInToken();
  }

  function balanceFulcrumInToken() external view returns (uint256) {
    return _balanceFulcrumInToken();
  }

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

  function balanceAlpacaInToken() external view returns (uint256) {
    return _balanceAlpacaInToken();
  }

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

  function balanceAlpaca() external view returns (uint256) {
    return _balanceAlpaca();
  }

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

  function _balanceFulcrumInToken() internal view returns (uint256) {
    uint256 b = _balanceFulcrum();
    if (b > 0 && withdrawable[Lender.FULCRUM]) {
      b = Fulcrum(fulcrum).assetBalanceOf(address(this)).add(1);
    }
    return b;
  }

  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 _balanceAlpacaInToken() internal view returns (uint256) {
    uint256 b = _balanceAlpaca();
    if (b > 0 && withdrawable[Lender.ALPACA]) {
      b = b.mul(IAlpaca(alpacaToken).totalToken()).div(IAlpaca(alpacaToken).totalSupply()).add(1);
    }
    return b;
  }

  function _balanceFulcrum() internal view returns (uint256) {
    if(withdrawable[Lender.FULCRUM])
      return IERC20(fulcrum).balanceOf(address(this));
    else
      return 0;
  }
  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 _balanceAlpaca() public view returns (uint256) {
    if(withdrawable[Lender.VENUS])
      return IAlpaca(alpacaToken).balanceOf(address(this));
    else
      return 0;
  }

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

  function _withdrawSomeFulcrum(uint256 _amount) internal {
    uint256 b = _balanceFulcrum();
    // Balance of token in fulcrum
    uint256 bT = _balanceFulcrumInToken();
    require(bT >= _amount, "insufficient funds");
    // can have unintentional rounding errors
    uint256 amount = (b.mul(_amount)).div(bT).add(1);
    _withdrawFulcrum(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 _withdrawSomeAlpaca(uint256 _amount) internal {
    uint256 b = _balanceAlpaca();
    uint256 bT = _balanceAlpacaInToken();
    require(bT >= _amount, "insufficient funds");
    uint256 amount = (b.mul(_amount)).div(bT).add(1);
    _withdrawAlpaca(amount);
  }

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

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

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

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

    provider = newProvider;
  }

  function supplyFulcrum(uint amount) public {
      require(Fulcrum(fulcrum).mint(address(this), amount) > 0, "FULCRUM: supply failed");
  }
  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 supplyAlpaca(uint amount) public {
      require(amount > 0, "ALPACA: supply failed");
      IAlpaca(alpacaToken).deposit(amount);
  }
  function _withdrawFulcrum(uint amount) internal {
      require(Fulcrum(fulcrum).burn(address(this), amount) > 0, "FULCRUM: withdraw failed");
  }
  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 _withdrawAlpaca(uint amount) internal {
      require(amount > 0, "ALPACA: withdraw failed");
      IAlpaca(alpacaToken).withdraw(amount);
  }

  function _calcPoolValueInToken() internal view returns (uint) {
    return _balanceFulcrumInToken()
      .add(_balanceFortubeInToken())
      .add(_balanceVenusInToken())
      .add(_balanceAlpacaInToken())
      .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":"_balanceAlpaca","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"acceptOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"enum xBUSD.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":[],"name":"alpacaToken","outputs":[{"internalType":"address","name":"","type":"address"}],"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":"balanceAlpaca","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"balanceAlpacaInToken","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":[],"name":"balanceFulcrum","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"balanceFulcrumInToken","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 xBUSD.Lender","name":"lender","type":"uint8"}],"name":"deactivateNonWithdrawableLender","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"enum xBUSD.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":[],"name":"fulcrum","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 xBUSD.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 xBUSD.Lender","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rebalance","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"recommend","outputs":[{"internalType":"enum xBUSD.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":"supplyAlpaca","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":"supplyFulcrum","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 xBUSD.Lender","name":"","type":"uint8"}],"name":"withdrawable","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"stateMutability":"payable","type":"receive"}]

60806040526017805460ff191690553480156200001b57600080fd5b5060408051808201825260098152681e195b9908109554d160ba1b6020808301918252835180850190945260058452641e109554d160da1b9084015281519192916200006a916003916200061c565b508051620000809060049060208401906200061c565b50506005805460ff191660121790555060016006556000620000a16200035d565b600780546001600160a01b0319166001600160a01b038316908117909155604051919250906000907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a350600a80546001600160a01b031990811673e9e7cea3dedca5984780bafc599bd69add087d5617909155600c8054821673dd6d648c991f7d47454354f4ef326b04025a48a8179055600b80548216737343b25c4953f4c57ed4d16c33cbedefae9e8eb9179055600d805482167357160962dc107c8fbc2a619aca43f79fd03e7556179055600e80548216730cea0832e9cdbb5d476040d58ea07ecfbebb7672179055600f8054821673143afc138978ad681f7c7571858faaa9d426cece1790556011805482167395c78222b3d6e262426483d42cfa53685a67ab9d17905560138054909116737c9e73d4c71dae564d41f78d56439bb4ba87592f17905560006010556103e86012556200020062000361565b7f27739e4bb5e6f8b5e4b57a047dca8767cc9b982a011081e086cbb0dfa9de818d805460ff199081169091557f07d4ff730d9753101d832555708a37d38c2c45fce8cacaefc99f06074e93fe0b8054821660019081179091557fb3a65e8276bd33b3e4f7d6081ebd9899187264822358758dca2e2bc37b2a9c2780548316821790557f8191f4eb6b8bafbfe9a5389c8d07d7f5fd81137a7ee653fc4358269845ee1d2e805483168217905560166020527f4c4dc693d7db52f85fe052106f4b4b920e78e8ef37dee82878a60ab8585faf498054831690557fcaff291fe014adc6b72a172705750b4cabe8f8667664d2924a166caab288564880548316821790557ff06d282f967055cb1eee17e04aa005b9682a620f4bbcfaee55ba78607a3d87ae805483168217905560046000527fec061709de2491458f4c981032059d7d19b0e55f45018bac6b3e660bdc959a59805490921617905562000723565b3390565b600a54600b5460405163095ea7b360e01b81526001600160a01b039283169263095ea7b3926200039b92911690600019906004016200070a565b602060405180830381600087803b158015620003b657600080fd5b505af1158015620003cb573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620003f19190620006e8565b50600a54600e546040805163f77c479160e01b815290516001600160a01b039384169363095ea7b393169163f77c47919160048083019260209291908290030181600087803b1580156200044457600080fd5b505af115801562000459573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906200047f9190620006b8565b6000196040518363ffffffff1660e01b8152600401620004a19291906200070a565b602060405180830381600087803b158015620004bc57600080fd5b505af1158015620004d1573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620004f79190620006e8565b50600a5460115460405163095ea7b360e01b81526001600160a01b039283169263095ea7b3926200053292911690600019906004016200070a565b602060405180830381600087803b1580156200054d57600080fd5b505af115801562000562573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620005889190620006e8565b50600a5460135460405163095ea7b360e01b81526001600160a01b039283169263095ea7b392620005c392911690600019906004016200070a565b602060405180830381600087803b158015620005de57600080fd5b505af1158015620005f3573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620006199190620006e8565b50565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106200065f57805160ff19168380011785556200068f565b828001600101855582156200068f579182015b828111156200068f57825182559160200191906001019062000672565b506200069d929150620006a1565b5090565b5b808211156200069d5760008155600101620006a2565b600060208284031215620006ca578081fd5b81516001600160a01b0381168114620006e1578182fd5b9392505050565b600060208284031215620006fa578081fd5b81518015158114620006e1578182fd5b6001600160a01b03929092168252602082015260400190565b613bd280620007336000396000f3fe6080604052600436106103855760003560e01c8063715018a6116101d1578063ad4c659211610102578063e9081ec7116100a0578063fc0c546a1161006f578063fc0c546a1461093f578063fe476e0114610954578063fe582e2414610974578063fedf23fc146109945761038c565b8063e9081ec7146108ca578063f2fde38b146108ea578063f5a41dea1461090a578063f9a252821461091f5761038c565b8063bed65bae116100dc578063bed65bae1461086b578063bf02a96114610880578063c72e947314610895578063dd62ed3e146108aa5761038c565b8063ad4c659214610821578063b69ef8a814610836578063b6b55f251461084b5761038c565b80639218b52e1161016f5780639c7266bc116101495780639c7266bc146107ac578063a160176d146107cc578063a457c2d7146107e1578063a9059cbb146108015761038c565b80639218b52e1461076257806395d89b411461078257806399b71d5c146107975761038c565b806379ba5097116101ab57806379ba5097146107035780637d7c2a1c146107185780638124955c1461072d5780638da5cb5b1461074d5761038c565b8063715018a6146106c457806377c7b8fc146106d957806378b423af146106ee5761038c565b806335ff1e28116102b65780634fdac0ef1161025457806364e85a2e1161022357806364e85a2e1461066557806369e154041461067a57806370a082311461068f5780637137ef99146106af5761038c565b80634fdac0ef14610606578063546b66151461061b57806357ded9c91461063b57806358782c21146106505761038c565b80634127535811610290578063412753581461058f57806344d40d7f146105b157806346357473146105d157806349b4e9c8146105f15761038c565b806335ff1e281461053a578063395093511461054f5780633d8450c91461056f5761038c565b806316f0115b1161032357806323b872dd116102fd57806323b872dd146104b857806325305c73146104d85780632e1a7d4d146104f8578063313ce567146105185761038c565b806316f0115b1461047957806318160ddd1461048e57806320dac83b146104a35761038c565b8063085d48831161035f578063085d488314610400578063095ea7b3146104225780630eb2a2671461044f57806310a32519146104645761038c565b806306c892c61461039157806306fdde03146103bc57806307f75530146103de5761038c565b3661038c57005b600080fd5b34801561039d57600080fd5b506103a66109b4565b6040516103b39190613a8f565b60405180910390f35b3480156103c857600080fd5b506103d16109c4565b6040516103b391906133a4565b3480156103ea57600080fd5b506103fe6103f93660046132b3565b610a5a565b005b34801561040c57600080fd5b50610415610ae8565b6040516103b39190613390565b34801561042e57600080fd5b5061044261043d366004613249565b610af1565b6040516103b39190613385565b34801561045b57600080fd5b506103a6610b0f565b34801561047057600080fd5b506103a6610b19565b34801561048557600080fd5b506103a6610b23565b34801561049a57600080fd5b506103a6610b29565b3480156104af57600080fd5b506103a6610b2f565b3480156104c457600080fd5b506104426104d3366004613209565b610b39565b3480156104e457600080fd5b506104426104f3366004613294565b610bc1565b34801561050457600080fd5b506103fe6105133660046132b3565b610bd6565b34801561052457600080fd5b5061052d610fb6565b6040516103b39190613a98565b34801561054657600080fd5b506103a6610fbf565b34801561055b57600080fd5b5061044261056a366004613249565b610fc5565b34801561057b57600080fd5b506103fe61058a3660046132b3565b611013565b34801561059b57600080fd5b506105a46110b9565b6040516103b39190613334565b3480156105bd57600080fd5b506103fe6105cc366004613294565b6110c8565b3480156105dd57600080fd5b506103fe6105ec366004613199565b61114e565b3480156105fd57600080fd5b506105a46111af565b34801561061257600080fd5b506103a66111be565b34801561062757600080fd5b506103fe6106363660046132b3565b6111c8565b34801561064757600080fd5b506105a4611245565b34801561065c57600080fd5b506105a4611254565b34801561067157600080fd5b506105a4611263565b34801561068657600080fd5b506103a6611272565b34801561069b57600080fd5b506103a66106aa366004613199565b611278565b3480156106bb57600080fd5b506103a6611293565b3480156106d057600080fd5b506103fe61129d565b3480156106e557600080fd5b506103a6611326565b3480156106fa57600080fd5b506103a6611356565b34801561070f57600080fd5b506103fe611360565b34801561072457600080fd5b506103fe6113ed565b34801561073957600080fd5b506103fe6107483660046132b3565b6114d6565b34801561075957600080fd5b506105a4611578565b34801561076e57600080fd5b506103fe61077d366004613199565b611587565b34801561078e57600080fd5b506103d16115e8565b3480156107a357600080fd5b506103fe611649565b3480156107b857600080fd5b506104426107c7366004613294565b6118e5565b3480156107d857600080fd5b506104156118fa565b3480156107ed57600080fd5b506104426107fc366004613249565b611ae2565b34801561080d57600080fd5b5061044261081c366004613249565b611b4a565b34801561082d57600080fd5b506105a4611b5e565b34801561084257600080fd5b506103a6611b6d565b34801561085757600080fd5b506103fe6108663660046132b3565b611b77565b34801561087757600080fd5b506105a4611ca1565b34801561088c57600080fd5b506103a6611cb0565b3480156108a157600080fd5b506103a6611d75565b3480156108b657600080fd5b506103a66108c53660046131d1565b611d7f565b3480156108d657600080fd5b506103a66108e5366004613199565b611daa565b3480156108f657600080fd5b506103fe610905366004613199565b611dc5565b34801561091657600080fd5b506103a6611e4c565b34801561092b57600080fd5b506103fe61093a366004613294565b611e56565b34801561094b57600080fd5b506105a4611ee9565b34801561096057600080fd5b506103fe61096f3660046132b3565b611ef8565b34801561098057600080fd5b506103fe61098f3660046132b3565b611f5d565b3480156109a057600080fd5b506103fe6109af366004613294565b612022565b60006109be611cb0565b90505b90565b60038054604080516020601f6002600019610100600188161502019095169490940493840181900481028201810190925282815260609390929091830182828015610a505780601f10610a2557610100808354040283529160200191610a50565b820191906000526020600020905b815481529060010190602001808311610a3357829003601f168201915b5050505050905090565b60008111610a835760405162461bcd60e51b8152600401610a7a906134d1565b60405180910390fd5b60135460405163b6b55f2560e01b81526001600160a01b039091169063b6b55f2590610ab3908490600401613a8f565b600060405180830381600087803b158015610acd57600080fd5b505af1158015610ae1573d6000803e3d6000fd5b5050505050565b60175460ff1681565b6000610b05610afe6120b5565b84846120b9565b5060015b92915050565b60006109be61216d565b60006109be6121d3565b60095481565b60025490565b60006109be61234a565b6000610b468484846124aa565b610bb684610b526120b5565b610bb185604051806060016040528060288152602001613b30602891396001600160a01b038a16600090815260016020526040812090610b906120b5565b6001600160a01b0316815260208101919091526040016000205491906125ad565b6120b9565b5060015b9392505050565b60166020526000908152604090205460ff1681565b60026006541415610bf95760405162461bcd60e51b8152600401610a7a90613a21565b600260065580610c1b5760405162461bcd60e51b8152600401610a7a9061370e565b6000610c2633611278565b905080821115610c485760405162461bcd60e51b8152600401610a7a906136e0565b610c506125d9565b6009556000610c73610c60610b29565b600954610c6d908561260f565b90612649565b90506000610c8f610c82610b29565b600954610c6d908761260f565b33600090815260146020526040902054909150821015610cc457610cb482600161267b565b9150610cc181600161267b565b90505b33600090815260146020526040812054610d0490610ce3908790612649565b33600090815260146020526040902054610cfe9086906126a0565b9061260f565b905060006001600160a01b0316336001600160a01b0316600080516020613b5883398151915287604051610d389190613a8f565b60405180910390a3600a546040516370a0823160e01b81526000916001600160a01b0316906370a0823190610d71903090600401613334565b60206040518083038186803b158015610d8957600080fd5b505afa158015610d9d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610dc191906132cb565b905082811015610ddd57610ddd610dd884836126a0565b6126c8565b6000610dfa601254610c6d6010548661260f90919063ffffffff16565b90508015610ef257600a54600f5460405163095ea7b360e01b81526001600160a01b039283169263095ea7b392610e38929116908590600401613348565b602060405180830381600087803b158015610e5257600080fd5b505af1158015610e66573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e8a9190613274565b50600f54600a54604051632fd5526560e01b81526001600160a01b0392831692632fd5526592610ebf92911690600401613334565b600060405180830381600087803b158015610ed957600080fd5b505af1158015610eed573d6000803e3d6000fd5b505050505b610f1333610f0086846126a0565b600a546001600160a01b03169190612750565b610f1d33886127ab565b33600090815260146020526040902054610f5890610f42908890610c6d908b9061260f565b33600090815260146020526040902054906126a0565b33600090815260146020526040902055610f706113ed565b610f786125d9565b600955604051879033907f884edad9ce6fa2440d8a54cc123490eb96d2768479d49ff9c7366125a942436490600090a3505060016006555050505050565b60055460ff1690565b60125481565b6000610b05610fd26120b5565b84610bb18560016000610fe36120b5565b6001600160a01b03908116825260208083019390935260409182016000908120918c16815292529020549061267b565b600081116110335760405162461bcd60e51b8152600401610a7a90613605565b60115460405163140e25ad60e31b81526001600160a01b039091169063a0712d6890611063908490600401613a8f565b602060405180830381600087803b15801561107d57600080fd5b505af1158015611091573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110b591906132cb565b5050565b600f546001600160a01b031681565b6110d06120b5565b6001600160a01b03166110e1611578565b6001600160a01b0316146111075760405162461bcd60e51b8152600401610a7a906136ab565b60006015600083600481111561111957fe5b600481111561112457fe5b81526020810191909152604001600020805460ff191691151591909117905561114b6113ed565b50565b6111566120b5565b6001600160a01b0316611167611578565b6001600160a01b03161461118d5760405162461bcd60e51b8152600401610a7a906136ab565b600c80546001600160a01b0319166001600160a01b0392909216919091179055565b600d546001600160a01b031681565b60006109be61287b565b6111d06120b5565b6001600160a01b03166111e1611578565b6001600160a01b0316146112075760405162461bcd60e51b8152600401610a7a906136ab565b60648110156112285760405162461bcd60e51b8152600401610a7a90613958565b61124060125482601054028161123a57fe5b04611ef8565b601255565b600c546001600160a01b031681565b600b546001600160a01b031681565b6011546001600160a01b031681565b60105481565b6001600160a01b031660009081526020819052604090205490565b60006109be6125d9565b6112a56120b5565b6001600160a01b03166112b6611578565b6001600160a01b0316146112dc5760405162461bcd60e51b8152600401610a7a906136ab565b6007546040516000916001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600780546001600160a01b0319169055565b6000806113316125d9565b905061135061133e610b29565b610c6d83670de0b6b3a764000061260f565b91505090565b60006109be6128e1565b6008546001600160a01b0316331461138a5760405162461bcd60e51b8152600401610a7a9061341a565b6008546007546040516001600160a01b0392831692909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3600854600780546001600160a01b0319166001600160a01b03909216919091179055565b60006113f76118fa565b60175490915060ff16600481111561140b57fe5b81600481111561141757fe5b1461142457611424612947565b600061142e6129ad565b11156114b557600181600481111561144257fe5b1415611458576114536107486129ad565b6114b5565b600281600481111561146657fe5b14156114775761145361098f6129ad565b600381600481111561148557fe5b14156114965761145361058a6129ad565b60048160048111156114a457fe5b14156114b5576114b56103f96129ad565b6017805482919060ff191660018360048111156114ce57fe5b021790555050565b600b546040516340c10f1960e01b81526000916001600160a01b0316906340c10f19906115099030908690600401613348565b602060405180830381600087803b15801561152357600080fd5b505af1158015611537573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061155b91906132cb565b1161114b5760405162461bcd60e51b8152600401610a7a906139a7565b6007546001600160a01b031690565b61158f6120b5565b6001600160a01b03166115a0611578565b6001600160a01b0316146115c65760405162461bcd60e51b8152600401610a7a906136ab565b600f80546001600160a01b0319166001600160a01b0392909216919091179055565b60048054604080516020601f6002600019610100600188161502019095169490940493840181900481028201810190925282815260609390929091830182828015610a505780601f10610a2557610100808354040283529160200191610a50565b600a54600b5460405163095ea7b360e01b81526001600160a01b039283169263095ea7b3926116819291169060001990600401613348565b602060405180830381600087803b15801561169b57600080fd5b505af11580156116af573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116d39190613274565b50600a54600e546040805163f77c479160e01b815290516001600160a01b039384169363095ea7b393169163f77c47919160048083019260209291908290030181600087803b15801561172557600080fd5b505af1158015611739573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061175d91906131b5565b6000196040518363ffffffff1660e01b815260040161177d929190613348565b602060405180830381600087803b15801561179757600080fd5b505af11580156117ab573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906117cf9190613274565b50600a5460115460405163095ea7b360e01b81526001600160a01b039283169263095ea7b3926118089291169060001990600401613348565b602060405180830381600087803b15801561182257600080fd5b505af1158015611836573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061185a9190613274565b50600a5460135460405163095ea7b360e01b81526001600160a01b039283169263095ea7b3926118939291169060001990600401613348565b602060405180830381600087803b1580156118ad57600080fd5b505af11580156118c1573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061114b9190613274565b60156020526000908152604090205460ff1681565b600c54600a546040516303622f8f60e61b815260009283928392839283926001600160a01b039182169263d88be3c092611938921690600401613334565b60806040518083038186803b15801561195057600080fd5b505afa158015611964573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061198891906132e3565b9350935093509350600080851180156119cc5750600160005260156020527f27739e4bb5e6f8b5e4b57a047dca8767cc9b982a011081e086cbb0dfa9de818d5460ff165b156119d45750835b8084118015611a0e5750600260005260156020527f07d4ff730d9753101d832555708a37d38c2c45fce8cacaefc99f06074e93fe0b5460ff165b15611a165750825b8083118015611a505750600360005260156020527fb3a65e8276bd33b3e4f7d6081ebd9899187264822358758dca2e2bc37b2a9c275460ff165b15611a585750815b8082118015611a925750600460005260156020527f8191f4eb6b8bafbfe9a5389c8d07d7f5fd81137a7ee653fc4358269845ee1d2e5460ff165b15611a9a5750805b600085821415611aac57506001611ad8565b84821415611abc57506002611ad8565b83821415611acc57506003611ad8565b82821415611ad8575060045b9550505050505090565b6000610b05611aef6120b5565b84610bb185604051806060016040528060258152602001613b786025913960016000611b196120b5565b6001600160a01b03908116825260208083019390935260409182016000908120918d168152925290205491906125ad565b6000610b05611b576120b5565b84846124aa565b600e546001600160a01b031681565b60006109be6129ad565b60026006541415611b9a5760405162461bcd60e51b8152600401610a7a90613a21565b600260065580611bbc5760405162461bcd60e51b8152600401610a7a906138ea565b611bc46125d9565b600955600a54611bdf906001600160a01b0316333084612a2e565b611be76113ed565b600060095460001415611c005750600981905580611c2e565b611c08610b29565b611c13575080611c2e565b611c2b600954610c6d611c24610b29565b859061260f565b90505b611c366125d9565b600955611c433382612a55565b33600090815260146020526040902054611c5d908361267b565b3360008181526014602052604080822093909355915184927fe1fffcc4923d04b559f4d29a8bfc6cda04eb5b0d3c460751c2402c5c5cc9109c91a350506001600655565b6013546001600160a01b031681565b6003600090815260166020527ff06d282f967055cb1eee17e04aa005b9682a620f4bbcfaee55ba78607a3d87ae5460ff1615611d6d576013546040516370a0823160e01b81526001600160a01b03909116906370a0823190611d16903090600401613334565b60206040518083038186803b158015611d2e57600080fd5b505afa158015611d42573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611d6691906132cb565b90506109c1565b5060006109c1565b60006109be612af7565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b6001600160a01b031660009081526014602052604090205490565b611dcd6120b5565b6001600160a01b0316611dde611578565b6001600160a01b031614611e045760405162461bcd60e51b8152600401610a7a906136ab565b6001600160a01b038116611e2a5760405162461bcd60e51b8152600401610a7a90613449565b600880546001600160a01b0319166001600160a01b0392909216919091179055565b60006109be612beb565b611e5e6120b5565b6001600160a01b0316611e6f611578565b6001600160a01b031614611e955760405162461bcd60e51b8152600401610a7a906136ab565b600060156000836004811115611ea757fe5b6004811115611eb257fe5b815260200190815260200160002060006101000a81548160ff02191690831515021790555060006016600083600481111561111957fe5b600a546001600160a01b031681565b611f006120b5565b6001600160a01b0316611f11611578565b6001600160a01b031614611f375760405162461bcd60e51b8152600401610a7a906136ab565b6012548110611f585760405162461bcd60e51b8152600401610a7a906137bd565b601055565b60008111611f7d5760405162461bcd60e51b8152600401610a7a906135d5565b600e54600d5460408051636f307dc360e01b815290516001600160a01b03938416936347e7ef24931691636f307dc3916004808301926020929190829003018186803b158015611fcc57600080fd5b505afa158015611fe0573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061200491906131b5565b836040518363ffffffff1660e01b8152600401610ab3929190613348565b61202a6120b5565b6001600160a01b031661203b611578565b6001600160a01b0316146120615760405162461bcd60e51b8152600401610a7a906136ab565b60016015600083600481111561207357fe5b600481111561207e57fe5b815260200190815260200160002060006101000a81548160ff02191690831515021790555060016016600083600481111561111957fe5b3390565b6001600160a01b0383166120df5760405162461bcd60e51b8152600401610a7a906138a6565b6001600160a01b0382166121055760405162461bcd60e51b8152600401610a7a9061348f565b6001600160a01b0380841660008181526001602090815260408083209487168084529490915290819020849055517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92590612160908590613a8f565b60405180910390a3505050565b6001600090815260166020527f4c4dc693d7db52f85fe052106f4b4b920e78e8ef37dee82878a60ab8585faf495460ff1615611d6d57600b546040516370a0823160e01b81526001600160a01b03909116906370a0823190611d16903090600401613334565b6000806121de6128e1565b905060008111801561221b5750600260005260166020527fcaff291fe014adc6b72a172705750b4cabe8f8667664d2924a166caab28856485460ff165b156109be57600d546040805163182df0f560e01b815290516000926001600160a01b03169163182df0f5916004808301926020929190829003018186803b15801561226557600080fd5b505afa158015612279573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061229d91906132cb565b90506000600d60009054906101000a90046001600160a01b03166001600160a01b031663c2ee3a086040518163ffffffff1660e01b815260040160206040518083038186803b1580156122ef57600080fd5b505afa158015612303573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061232791906132cb565b9050612342600161233c83610c6d878761260f565b9061267b565b949350505050565b600080612355611cb0565b90506000811180156123925750600460005260166020527fec061709de2491458f4c981032059d7d19b0e55f45018bac6b3e660bdc959a595460ff165b156109be57610b09600161233c601360009054906101000a90046001600160a01b03166001600160a01b03166318160ddd6040518163ffffffff1660e01b815260040160206040518083038186803b1580156123ed57600080fd5b505afa158015612401573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061242591906132cb565b6013546040805163626be56760e01b81529051610c6d926001600160a01b03169163626be567916004808301926020929190829003018186803b15801561246b57600080fd5b505afa15801561247f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906124a391906132cb565b869061260f565b6001600160a01b0383166124d05760405162461bcd60e51b8152600401610a7a906137fe565b6001600160a01b0382166124f65760405162461bcd60e51b8152600401610a7a906133d7565b6125018383836127a6565b61253e81604051806060016040528060268152602001613b0a602691396001600160a01b03861660009081526020819052604090205491906125ad565b6001600160a01b03808516600090815260208190526040808220939093559084168152205461256d908261267b565b6001600160a01b038084166000818152602081905260409081902093909355915190851690600080516020613b5883398151915290612160908590613a8f565b600081848411156125d15760405162461bcd60e51b8152600401610a7a91906133a4565b505050900390565b60006109be6125e66129ad565b61233c6125f161234a565b61233c6125fc612af7565b61233c6126076121d3565b61233c612beb565b60008261261e57506000610b09565b8282028284828161262b57fe5b0414610bba5760405162461bcd60e51b8152600401610a7a90613633565b600080821161266a5760405162461bcd60e51b8152600401610a7a9061359e565b81838161267357fe5b049392505050565b600082820183811015610bba5760405162461bcd60e51b8152600401610a7a90613500565b6000828211156126c25760405162461bcd60e51b8152600401610a7a90613567565b50900390565b600160175460ff1660048111156126db57fe5b14156126ea576126ea81612cbf565b600260175460ff1660048111156126fd57fe5b141561270c5761270c81612d17565b600360175460ff16600481111561271f57fe5b141561272e5761272e81612d6f565b600460175460ff16600481111561274157fe5b141561114b5761114b81612dc2565b6127a68363a9059cbb60e01b848460405160240161276f929190613348565b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152612e1a565b505050565b6001600160a01b0382166127d15760405162461bcd60e51b8152600401610a7a9061377c565b6127dd826000836127a6565b61281a81604051806060016040528060228152602001613ae8602291396001600160a01b03851660009081526020819052604090205491906125ad565b6001600160a01b03831660009081526020819052604090205560025461284090826126a0565b6002556040516000906001600160a01b03841690600080516020613b588339815191529061286f908590613a8f565b60405180910390a35050565b6003600090815260166020527ff06d282f967055cb1eee17e04aa005b9682a620f4bbcfaee55ba78607a3d87ae5460ff1615611d6d576011546040516370a0823160e01b81526001600160a01b03909116906370a0823190611d16903090600401613334565b6002600090815260166020527fcaff291fe014adc6b72a172705750b4cabe8f8667664d2924a166caab28856485460ff1615611d6d57600d546040516370a0823160e01b81526001600160a01b03909116906370a0823190611d16903090600401613334565b600061295161216d565b905080156129625761296281612ea9565b61296a6128e1565b9050801561297b5761297b81612f4b565b61298361287b565b905080156129945761299481613010565b61299c611cb0565b9050801561114b5761114b81613060565b600a546040516370a0823160e01b81526000916001600160a01b0316906370a08231906129de903090600401613334565b60206040518083038186803b1580156129f657600080fd5b505afa158015612a0a573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109be91906132cb565b612a4f846323b872dd60e01b85858560405160240161276f93929190613361565b50505050565b6001600160a01b038216612a7b5760405162461bcd60e51b8152600401610a7a90613a58565b612a87600083836127a6565b600254612a94908261267b565b6002556001600160a01b038216600090815260208190526040902054612aba908261267b565b6001600160a01b038316600081815260208190526040808220939093559151909190600080516020613b588339815191529061286f908590613a8f565b600080612b0261287b565b9050600081118015612b3f5750600360005260166020527ff06d282f967055cb1eee17e04aa005b9682a620f4bbcfaee55ba78607a3d87ae5460ff165b156109be576011546040805163182df0f560e01b815290516000926001600160a01b03169163182df0f5916004808301926020929190829003018186803b158015612b8957600080fd5b505afa158015612b9d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612bc191906132cb565b9050610bba6402540be400610cfe600161233c6b204fce5e3e25026110000000610c6d888861260f565b600080612bf661216d565b9050600081118015612c335750600160005260166020527f4c4dc693d7db52f85fe052106f4b4b920e78e8ef37dee82878a60ab8585faf495460ff165b156109be57600b54604051630359f7eb60e11b8152610b09916001916001600160a01b03909116906306b3efd690612c6f903090600401613334565b60206040518083038186803b158015612c8757600080fd5b505afa158015612c9b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061233c91906132cb565b6000612cc961216d565b90506000612cd5612beb565b905082811015612cf75760405162461bcd60e51b8152600401610a7a9061387a565b6000612d0c600161233c84610c6d878961260f565b9050612a4f81612ea9565b6000612d216128e1565b90506000612d2d6121d3565b905082811015612d4f5760405162461bcd60e51b8152600401610a7a9061387a565b6000612d64600161233c84610c6d878961260f565b9050612a4f81612f4b565b6000612d7961287b565b90506000612d85612af7565b905082811015612da75760405162461bcd60e51b8152600401610a7a9061387a565b6000612db782610c6d858761260f565b9050612a4f81613010565b6000612dcc611cb0565b90506000612dd861234a565b905082811015612dfa5760405162461bcd60e51b8152600401610a7a9061387a565b6000612e0f600161233c84610c6d878961260f565b9050612a4f81613060565b6060612e6f826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166130b09092919063ffffffff16565b8051909150156127a65780806020019051810190612e8d9190613274565b6127a65760405162461bcd60e51b8152600401610a7a906139d7565b600b54604051632770a7eb60e21b81526000916001600160a01b031690639dc29fac90612edc9030908690600401613348565b602060405180830381600087803b158015612ef657600080fd5b505af1158015612f0a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612f2e91906132cb565b1161114b5760405162461bcd60e51b8152600401610a7a90613674565b60008111612f6b5760405162461bcd60e51b8152600401610a7a90613745565b600e54600d5460408051636f307dc360e01b815290516001600160a01b039384169363f3fef3a3931691636f307dc3916004808301926020929190829003018186803b158015612fba57600080fd5b505afa158015612fce573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612ff291906131b5565b836040518363ffffffff1660e01b8152600401611063929190613348565b600081116130305760405162461bcd60e51b8152600401610a7a90613537565b60115460405163db006a7560e01b81526001600160a01b039091169063db006a7590611063908490600401613a8f565b600081116130805760405162461bcd60e51b8152600401610a7a90613843565b601354604051632e1a7d4d60e01b81526001600160a01b0390911690632e1a7d4d90610ab3908490600401613a8f565b60606123428484600085856130c48561315a565b6130e05760405162461bcd60e51b8152600401610a7a90613921565b60006060866001600160a01b031685876040516130fd9190613318565b60006040518083038185875af1925050503d806000811461313a576040519150601f19603f3d011682016040523d82523d6000602084013e61313f565b606091505b509150915061314f828286613160565b979650505050505050565b3b151590565b6060831561316f575081610bba565b82511561317f5782518084602001fd5b8160405162461bcd60e51b8152600401610a7a91906133a4565b6000602082840312156131aa578081fd5b8135610bba81613ad2565b6000602082840312156131c6578081fd5b8151610bba81613ad2565b600080604083850312156131e3578081fd5b82356131ee81613ad2565b915060208301356131fe81613ad2565b809150509250929050565b60008060006060848603121561321d578081fd5b833561322881613ad2565b9250602084013561323881613ad2565b929592945050506040919091013590565b6000806040838503121561325b578182fd5b823561326681613ad2565b946020939093013593505050565b600060208284031215613285578081fd5b81518015158114610bba578182fd5b6000602082840312156132a5578081fd5b813560058110610bba578182fd5b6000602082840312156132c4578081fd5b5035919050565b6000602082840312156132dc578081fd5b5051919050565b600080600080608085870312156132f8578081fd5b505082516020840151604085015160609095015191969095509092509050565b6000825161332a818460208701613aa6565b9190910192915050565b6001600160a01b0391909116815260200190565b6001600160a01b03929092168252602082015260400190565b6001600160a01b039384168152919092166020820152604081019190915260600190565b901515815260200190565b602081016005831061339e57fe5b91905290565b60006020825282518060208401526133c3816040850160208701613aa6565b601f01601f19169190910160400192915050565b60208082526023908201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260408201526265737360e81b606082015260800190565b6020808252601590820152744f776e61626c653a206e6f7420636164696461746560581b604082015260600190565b60208082526026908201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160408201526564647265737360d01b606082015260800190565b60208082526022908201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604082015261737360f01b606082015260800190565b6020808252601590820152741053141050d04e881cdd5c1c1b1e4819985a5b1959605a1b604082015260600190565b6020808252601b908201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604082015260600190565b6020808252601690820152751591539554ce881dda5d1a191c985dc819985a5b195960521b604082015260600190565b6020808252601e908201527f536166654d6174683a207375627472616374696f6e206f766572666c6f770000604082015260600190565b6020808252601a908201527f536166654d6174683a206469766973696f6e206279207a65726f000000000000604082015260600190565b6020808252601690820152751193d4951550914e881cdd5c1c1b1e4819985a5b195960521b604082015260600190565b6020808252601490820152731591539554ce881cdd5c1c1b1e4819985a5b195960621b604082015260600190565b60208082526021908201527f536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f6040820152607760f81b606082015260800190565b60208082526018908201527f46554c4352554d3a207769746864726177206661696c65640000000000000000604082015260600190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b602080825260149082015273696e73756666696369656e742062616c616e636560601b604082015260600190565b6020808252601f908201527f7769746864726177206d7573742062652067726561746572207468616e203000604082015260600190565b60208082526018908201527f464f52545542453a207769746864726177206661696c65640000000000000000604082015260600190565b60208082526021908201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736040820152607360f81b606082015260800190565b60208082526021908201527f66656520616d6f756e74206d757374206265206c657373207468616e203130306040820152602560f81b606082015260800190565b60208082526025908201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604082015264647265737360d81b606082015260800190565b60208082526017908201527f414c504143413a207769746864726177206661696c6564000000000000000000604082015260600190565b602080825260129082015271696e73756666696369656e742066756e647360701b604082015260600190565b60208082526024908201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646040820152637265737360e01b606082015260800190565b6020808252601e908201527f6465706f736974206d7573742062652067726561746572207468616e20300000604082015260600190565b6020808252601d908201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604082015260600190565b6020808252602f908201527f66656520707265636973696f6e206d757374206265206772656174657220746860408201526e185b880c4c0c08185d081b19585cdd608a1b606082015260800190565b60208082526016908201527511955310d495534e881cdd5c1c1b1e4819985a5b195960521b604082015260600190565b6020808252602a908201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6040820152691bdd081cdd58d8d9595960b21b606082015260800190565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b6020808252601f908201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604082015260600190565b90815260200190565b60ff91909116815260200190565b60005b83811015613ac1578181015183820152602001613aa9565b83811115612a4f5750506000910152565b6001600160a01b038116811461114b57600080fdfe45524332303a206275726e20616d6f756e7420657863656564732062616c616e636545524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e636545524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e6365ddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa2646970667358221220ce6176fac61ef9e12a89009ec40bb3b3676d45329a8eb6ad6dc70a8075bf8eba64736f6c634300060c0033

Deployed ByteCode Sourcemap

43706:13979:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;50604:93;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;34705:91;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;55888:146::-;;;;;;;;;;-1:-1:-1;55888:146:0;;;;;:::i;:::-;;:::i;:::-;;44431:36;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;36851:169::-;;;;;;;;;;-1:-1:-1;36851:169:0;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;50309:95::-;;;;;;;;;;;;;:::i;49855:109::-;;;;;;;;;;;;;:::i;43869:19::-;;;;;;;;;;;;;:::i;35804:108::-;;;;;;;;;;;;;:::i;50196:107::-;;;;;;;;;;;;;:::i;37502:321::-;;;;;;;;;;-1:-1:-1;37502:321:0;;;;;:::i;:::-;;:::i;44380:44::-;;;;;;;;;;-1:-1:-1;44380:44:0;;;;;:::i;:::-;;:::i;47043:1439::-;;;;;;;;;;-1:-1:-1;47043:1439:0;;;;;:::i;:::-;;:::i;35648:91::-;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;44120:27::-;;;;;;;;;;;;;:::i;38232:218::-;;;;;;;;;;-1:-1:-1;38232:218:0;;;;;:::i;:::-;;:::i;55745:139::-;;;;;;;;;;-1:-1:-1;55745:139:0;;;;;:::i;:::-;;:::i;44031:25::-;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;57380:129::-;;;;;;;;;;-1:-1:-1;57380:129:0;;;;;:::i;:::-;;:::i;45560:85::-;;;;;;;;;;-1:-1:-1;45560:85:0;;;;;:::i;:::-;;:::i;43968:27::-;;;;;;;;;;;;;:::i;50507:91::-;;;;;;;;;;;;;:::i;45928:271::-;;;;;;;;;;-1:-1:-1;45928:271:0;;;;;:::i;:::-;;:::i;43945:18::-;;;;;;;;;;;;;:::i;43918:22::-;;;;;;;;;;;;;:::i;44090:25::-;;;;;;;;;;;;;:::i;44061:24::-;;;;;;;;;;;;;:::i;35975:127::-;;;;;;;;;;-1:-1:-1;35975:127:0;;;;;:::i;:::-;;:::i;56954:104::-;;;;;;;;;;;;;:::i;31769:148::-;;;;;;;;;;;;;:::i;57064:156::-;;;;;;;;;;;;;:::i;50408:95::-;;;;;;;;;;;;;:::i;32274:199::-;;;;;;;;;;;;;:::i;54845:552::-;;;;;;;;;;;;;:::i;55403:141::-;;;;;;;;;;-1:-1:-1;55403:141:0;;;;;:::i;:::-;;:::i;31118:87::-;;;;;;;;;;;;;:::i;45808:116::-;;;;;;;;;;-1:-1:-1;45808:116:0;;;;;:::i;:::-;;:::i;34915:95::-;;;;;;;;;;;;;:::i;49580:271::-;;;;;;;;;;;;;:::i;44331:44::-;;;;;;;;;;-1:-1:-1;44331:44:0;;;;;:::i;:::-;;:::i;48523:837::-;;;;;;;;;;;;;:::i;38953:269::-;;;;;;;;;;-1:-1:-1;38953:269:0;;;;;:::i;:::-;;:::i;36315:175::-;;;;;;;;;;-1:-1:-1;36315:175:0;;;;;:::i;:::-;;:::i;44000:26::-;;;;;;;;;;;;;:::i;49366:81::-;;;;;;;;;;;;;:::i;46250:783::-;;;;;;;;;;-1:-1:-1;46250:783:0;;;;;:::i;:::-;;:::i;44152:26::-;;;;;;;;;;;;;:::i;52626:186::-;;;;;;;;;;;;;:::i;50085:105::-;;;;;;;;;;;;;:::i;36553:151::-;;;;;;;;;;-1:-1:-1;36553:151:0;;;;;:::i;:::-;;:::i;49453:121::-;;;;;;;;;;-1:-1:-1;49453:121:0;;;;;:::i;:::-;;:::i;32072:194::-;;;;;;;;;;-1:-1:-1;32072:194:0;;;;;:::i;:::-;;:::i;49970:109::-;;;;;;;;;;;;;:::i;57515:167::-;;;;;;;;;;-1:-1:-1;57515:167:0;;;;;:::i;:::-;;:::i;43893:20::-;;;;;;;;;;;;;:::i;45649:155::-;;;;;;;;;;-1:-1:-1;45649:155:0;;;;;:::i;:::-;;:::i;55548:193::-;;;;;;;;;;-1:-1:-1;55548:193:0;;;;;:::i;:::-;;:::i;57226:148::-;;;;;;;;;;-1:-1:-1;57226:148:0;;;;;:::i;:::-;;:::i;50604:93::-;50652:7;50675:16;:14;:16::i;:::-;50668:23;;50604:93;;:::o;34705:91::-;34783:5;34776:12;;;;;;;;-1:-1:-1;;34776:12:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;34750:13;;34776:12;;34783:5;;34776:12;;34783:5;34776:12;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;34705:91;:::o;55888:146::-;55956:1;55947:6;:10;55939:44;;;;-1:-1:-1;;;55939:44:0;;;;;;;:::i;:::-;;;;;;;;;56000:11;;55992:36;;-1:-1:-1;;;55992:36:0;;-1:-1:-1;;;;;56000:11:0;;;;55992:28;;:36;;56021:6;;55992:36;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;55888:146;:::o;44431:36::-;;;;;;:::o;36851:169::-;36934:4;36951:39;36960:12;:10;:12::i;:::-;36974:7;36983:6;36951:8;:39::i;:::-;-1:-1:-1;37008:4:0;36851:169;;;;;:::o;50309:95::-;50358:7;50381:17;:15;:17::i;49855:109::-;49911:7;49934:24;:22;:24::i;43869:19::-;;;;:::o;35804:108::-;35892:12;;35804:108;:::o;50196:107::-;50251:7;50274:23;:21;:23::i;37502:321::-;37608:4;37625:36;37635:6;37643:9;37654:6;37625:9;:36::i;:::-;37672:121;37681:6;37689:12;:10;:12::i;:::-;37703:89;37741:6;37703:89;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;37703:19:0;;;;;;:11;:19;;;;;;37723:12;:10;:12::i;:::-;-1:-1:-1;;;;;37703:33:0;;;;;;;;;;;;-1:-1:-1;37703:33:0;;;:89;:37;:89::i;:::-;37672:8;:121::i;:::-;-1:-1:-1;37811:4:0;37502:321;;;;;;:::o;44380:44::-;;;;;;;;;;;;;;;:::o;47043:1439::-;5704:1;6310:7;;:19;;6302:63;;;;-1:-1:-1;;;6302:63:0;;;;;;;:::i;:::-;5704:1;6443:7;:18;47134:11;47126:55:::1;;;;-1:-1:-1::0;;;47126:55:0::1;;;;;;;:::i;:::-;47192:16;47211:21;47221:10;47211:9;:21::i;:::-;47192:40;;47260:8;47249:7;:19;;47241:52;;;;-1:-1:-1::0;;;47241:52:0::1;;;;;;;:::i;:::-;47356:23;:21;:23::i;:::-;47349:4;:30:::0;47388:9:::1;47400:39;47425:13;:11;:13::i;:::-;47401:4;::::0;:18:::1;::::0;47410:8;47401::::1;:18::i;:::-;47400:24:::0;::::1;:39::i;:::-;47388:51;;47498:9;47510:38;47534:13;:11;:13::i;:::-;47511:4;::::0;:17:::1;::::0;47520:7;47511:8:::1;:17::i;47510:38::-;47580:10;47564:27;::::0;;;:15:::1;:27;::::0;;;;;47498:50;;-1:-1:-1;47560:31:0;::::1;47557:91;;;47607:8;:1:::0;47613::::1;47607:5;:8::i;:::-;47603:12:::0;-1:-1:-1;47630:8:0::1;:1:::0;47636::::1;47630:5;:8::i;:::-;47626:12;;47557:91;47742:10;47656:14;47726:27:::0;;;:15:::1;:27;::::0;;;;;47673:82:::1;::::0;47714:40:::1;::::0;:7;;:11:::1;:40::i;:::-;47696:10;47680:27;::::0;;;:15:::1;:27;::::0;;;;;47674:34:::1;::::0;:1;;:5:::1;:34::i;:::-;47673:40:::0;::::1;:82::i;:::-;47656:99;;47800:1;-1:-1:-1::0;;;;;47771:41:0::1;47780:10;-1:-1:-1::0;;;;;47771:41:0::1;-1:-1:-1::0;;;;;;;;;;;47804:7:0::1;47771:41;;;;;;:::i;:::-;;;;;;;;47866:5;::::0;47859:38:::1;::::0;-1:-1:-1;;;47859:38:0;;47847:9:::1;::::0;-1:-1:-1;;;;;47866:5:0::1;::::0;47859:23:::1;::::0;:38:::1;::::0;47891:4:::1;::::0;47859:38:::1;;;:::i;:::-;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;47847:50;;47914:1;47910;:5;47906:55;;;47928:23;47942:8;:1:::0;47948;47942:5:::1;:8::i;:::-;47928:13;:23::i;:::-;47971:11;47985:39;48011:12;;47985:21;47996:9;;47985:6;:10;;:21;;;;:::i;:39::-;47971:53:::0;-1:-1:-1;48036:7:0;;48033:122:::1;;48062:5;::::0;48077:10:::1;::::0;48055:38:::1;::::0;-1:-1:-1;;;48055:38:0;;-1:-1:-1;;;;;48062:5:0;;::::1;::::0;48055:21:::1;::::0;:38:::1;::::0;48077:10;::::1;::::0;48089:3;;48055:38:::1;;;:::i;:::-;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1::0;48114:10:0::1;::::0;48139:5:::1;::::0;48104:41:::1;::::0;-1:-1:-1;;;48104:41:0;;-1:-1:-1;;;;;48114:10:0;;::::1;::::0;48104:34:::1;::::0;:41:::1;::::0;48139:5;::::1;::::0;48104:41:::1;;;:::i;:::-;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;48033:122;48163:50;48190:10;48202;:1:::0;48208:3;48202:5:::1;:10::i;:::-;48170:5;::::0;-1:-1:-1;;;;;48170:5:0::1;::::0;48163:50;:26:::1;:50::i;:::-;48222:26;48228:10;48240:7;48222:5;:26::i;:::-;48347:10;48331:27;::::0;;;:15:::1;:27;::::0;;;;;48287:87:::1;::::0;48319:54:::1;::::0;48364:8;;48319:40:::1;::::0;:7;;:11:::1;:40::i;:54::-;48303:10;48287:27;::::0;;;:15:::1;:27;::::0;;;;;;:31:::1;:87::i;:::-;48273:10;48257:27;::::0;;;:15:::1;:27;::::0;;;;:117;48383:11:::1;:9;:11::i;:::-;48410:23;:21;:23::i;:::-;48403:4;:30:::0;48447:29:::1;::::0;48468:7;;48456:10:::1;::::0;48447:29:::1;::::0;;;::::1;-1:-1:-1::0;;5660:1:0;6622:7;:22;-1:-1:-1;;;;;47043:1439:0:o;35648:91::-;35722:9;;;;35648:91;:::o;44120:27::-;;;;:::o;38232:218::-;38320:4;38337:83;38346:12;:10;:12::i;:::-;38360:7;38369:50;38408:10;38369:11;:25;38381:12;:10;:12::i;:::-;-1:-1:-1;;;;;38369:25:0;;;;;;;;;;;;;;;;;-1:-1:-1;38369:25:0;;;:34;;;;;;;;;;;:38;:50::i;55745:139::-;55812:1;55803:6;:10;55795:43;;;;-1:-1:-1;;;55795:43:0;;;;;;;:::i;:::-;55854:10;;55847:31;;-1:-1:-1;;;55847:31:0;;-1:-1:-1;;;;;55854:10:0;;;;55847:23;;:31;;55871:6;;55847:31;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;55745:139;:::o;44031:25::-;;;-1:-1:-1;;;;;44031:25:0;;:::o;57380:129::-;31349:12;:10;:12::i;:::-;-1:-1:-1;;;;;31338:23:0;:7;:5;:7::i;:::-;-1:-1:-1;;;;;31338:23:0;;31330:68;;;;-1:-1:-1;;;31330:68:0;;;;;;;:::i;:::-;57480:5:::1;57457:12;:20;57470:6;57457:20;;;;;;;;;;;;;;;;::::0;;::::1;::::0;::::1;::::0;;;;;;-1:-1:-1;57457:20:0;:28;;-1:-1:-1;;57457:28:0::1;::::0;::::1;;::::0;;;::::1;::::0;;57492:11:::1;:9;:11::i;:::-;57380:129:::0;:::o;45560:85::-;31349:12;:10;:12::i;:::-;-1:-1:-1;;;;;31338:23:0;:7;:5;:7::i;:::-;-1:-1:-1;;;;;31338:23:0;;31330:68;;;;-1:-1:-1;;;31330:68:0;;;;;;;:::i;:::-;45625:3:::1;:14:::0;;-1:-1:-1;;;;;;45625:14:0::1;-1:-1:-1::0;;;;;45625:14:0;;;::::1;::::0;;;::::1;::::0;;45560:85::o;43968:27::-;;;-1:-1:-1;;;;;43968:27:0;;:::o;50507:91::-;50554:7;50577:15;:13;:15::i;45928:271::-;31349:12;:10;:12::i;:::-;-1:-1:-1;;;;;31338:23:0;:7;:5;:7::i;:::-;-1:-1:-1;;;;;31338:23:0;;31330:68;;;;-1:-1:-1;;;31330:68:0;;;;;;;:::i;:::-;46035:3:::1;46015:16;:23;;46007:83;;;;-1:-1:-1::0;;;46007:83:0::1;;;;;;;:::i;:::-;46097:58;46142:12;;46125:16;46115:9;;:26;:39;;;;;;46097:17;:58::i;:::-;46162:12;:31:::0;45928:271::o;43945:18::-;;;-1:-1:-1;;;;;43945:18:0;;:::o;43918:22::-;;;-1:-1:-1;;;;;43918:22:0;;:::o;44090:25::-;;;-1:-1:-1;;;;;44090:25:0;;:::o;44061:24::-;;;;:::o;35975:127::-;-1:-1:-1;;;;;36076:18:0;36049:7;36076:18;;;;;;;;;;;;35975:127::o;56954:104::-;57007:4;57029:23;:21;:23::i;31769:148::-;31349:12;:10;:12::i;:::-;-1:-1:-1;;;;;31338:23:0;:7;:5;:7::i;:::-;-1:-1:-1;;;;;31338:23:0;;31330:68;;;;-1:-1:-1;;;31330:68:0;;;;;;;:::i;:::-;31860:6:::1;::::0;31839:40:::1;::::0;31876:1:::1;::::0;-1:-1:-1;;;;;31860:6:0::1;::::0;31839:40:::1;::::0;31876:1;;31839:40:::1;31890:6;:19:::0;;-1:-1:-1;;;;;;31890:19:0::1;::::0;;31769:148::o;57064:156::-;57117:4;57130:10;57143:23;:21;:23::i;:::-;57130:36;;57180:34;57200:13;:11;:13::i;:::-;57180:15;:5;57190:4;57180:9;:15::i;:34::-;57173:41;;;57064:156;:::o;50408:95::-;50457:7;50480:17;:15;:17::i;32274:199::-;32343:10;;-1:-1:-1;;;;;32343:10:0;32329;:24;32321:58;;;;-1:-1:-1;;;32321:58:0;;;;;;;:::i;:::-;32424:10;;32416:6;;32395:40;;-1:-1:-1;;;;;32424:10:0;;;;32416:6;;;;32395:40;;32424:10;;32395:40;32455:10;;32446:6;:19;;-1:-1:-1;;;;;;32446:19:0;-1:-1:-1;;;;;32455:10:0;;;32446:19;;;;;;32274:199::o;54845:552::-;54880:18;54901:11;:9;:11::i;:::-;54940:8;;54880:32;;-1:-1:-1;54940:8:0;;54925:23;;;;;;;;:11;:23;;;;;;;;;54921:60;;54959:14;:12;:14::i;:::-;55006:1;54993:10;:8;:10::i;:::-;:14;54989:372;;;55037:14;55022:11;:29;;;;;;;;;55018:336;;;55064:25;55078:10;:8;:10::i;55064:25::-;55018:336;;;55124:14;55109:11;:29;;;;;;;;;55105:249;;;55151:25;55165:10;:8;:10::i;55105:249::-;55211:12;55196:11;:27;;;;;;;;;55192:162;;;55236:23;55248:10;:8;:10::i;55192:162::-;55294:13;55279:11;:28;;;;;;;;;55275:79;;;55320:24;55333:10;:8;:10::i;55320:24::-;55369:8;:22;;55380:11;;55369:8;-1:-1:-1;;55369:22:0;;55380:11;55369:22;;;;;;;;;;;;;54845:552;:::o;55403:141::-;55471:7;;55463:44;;-1:-1:-1;;;55463:44:0;;55510:1;;-1:-1:-1;;;;;55471:7:0;;55463:21;;:44;;55493:4;;55500:6;;55463:44;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:48;55455:83;;;;-1:-1:-1;;;55455:83:0;;;;;;;:::i;31118:87::-;31191:6;;-1:-1:-1;;;;;31191:6:0;31118:87;:::o;45808:116::-;31349:12;:10;:12::i;:::-;-1:-1:-1;;;;;31338:23:0;:7;:5;:7::i;:::-;-1:-1:-1;;;;;31338:23:0;;31330:68;;;;-1:-1:-1;;;31330:68:0;;;;;;;:::i;:::-;45889:10:::1;:29:::0;;-1:-1:-1;;;;;;45889:29:0::1;-1:-1:-1::0;;;;;45889:29:0;;;::::1;::::0;;;::::1;::::0;;45808:116::o;34915:95::-;34995:7;34988:14;;;;;;;;-1:-1:-1;;34988:14:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;34962:13;;34988:14;;34995:7;;34988:14;;34995:7;34988:14;;;;;;;;;;;;;;;;;;;;;;;;49580:271;49627:5;;49642:7;;49620:40;;-1:-1:-1;;;49620:40:0;;-1:-1:-1;;;;;49627:5:0;;;;49620:21;;:40;;49642:7;;;-1:-1:-1;;49656:2:0;49620:40;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1;49676:5:0;;49703:11;;49691:37;;;-1:-1:-1;;;49691:37:0;;;;-1:-1:-1;;;;;49676:5:0;;;;49669:21;;49703:11;;49691:35;;:37;;;;;;;;;;;;;;49676:5;49703:11;49691:37;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1;;49669:71:0;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1;49756:5:0;;49771:10;;49749:43;;-1:-1:-1;;;49749:43:0;;-1:-1:-1;;;;;49756:5:0;;;;49749:21;;:43;;49771:10;;;-1:-1:-1;;49788:2:0;49749:43;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1;49808:5:0;;49823:11;;49801:44;;-1:-1:-1;;;49801:44:0;;-1:-1:-1;;;;;49808:5:0;;;;49801:21;;:44;;49823:11;;;-1:-1:-1;;49841:2:0;49801:44;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;44331:::-;;;;;;;;;;;;;;;:::o;48523:837::-;48654:3;;48669:5;;48640:35;;-1:-1:-1;;;48640:35:0;;48565:6;;;;;;;;;;-1:-1:-1;;;;;48654:3:0;;;;48640:28;;:35;;48669:5;;48640:35;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;48580:95;;;;;;;;48682:11;48715:3;48708:4;:10;:42;;;;-1:-1:-1;48735:14:0;48722:28;;:12;:28;;;;;;48708:42;48704:75;;;-1:-1:-1;48767:4:0;48704:75;48797:3;48789:5;:11;:43;;;;-1:-1:-1;48817:14:0;48804:28;;:12;:28;;;;;;48789:43;48785:77;;;-1:-1:-1;48849:5:0;48785:77;48879:3;48872:4;:10;:40;;;;-1:-1:-1;48899:12:0;48886:26;;:12;:26;;;;;;48872:40;48868:73;;;-1:-1:-1;48929:4:0;48868:73;48958:3;48951:4;:10;:41;;;;-1:-1:-1;48978:13:0;48965:27;;:12;:27;;;;;;48951:41;48947:74;;;-1:-1:-1;49009:4:0;48947:74;49027:18;49077:4;49070:3;:11;49066:264;;;-1:-1:-1;49106:14:0;49066:264;;;49145:5;49138:3;:12;49134:196;;;-1:-1:-1;49175:14:0;49134:196;;;49214:4;49207:3;:11;49203:127;;;-1:-1:-1;49243:12:0;49203:127;;;49280:4;49273:3;:11;49269:61;;;-1:-1:-1;49309:13:0;49269:61;49343:11;-1:-1:-1;;;;;;48523:837:0;:::o;38953:269::-;39046:4;39063:129;39072:12;:10;:12::i;:::-;39086:7;39095:96;39134:15;39095:96;;;;;;;;;;;;;;;;;:11;:25;39107:12;:10;:12::i;:::-;-1:-1:-1;;;;;39095:25:0;;;;;;;;;;;;;;;;;-1:-1:-1;39095:25:0;;;:34;;;;;;;;;;;:96;:38;:96::i;36315:175::-;36401:4;36418:42;36428:12;:10;:12::i;:::-;36442:9;36453:6;36418:9;:42::i;44000:26::-;;;-1:-1:-1;;;;;44000:26:0;;:::o;49366:81::-;49408:7;49431:10;:8;:10::i;46250:783::-;5704:1;6310:7;;:19;;6302:63;;;;-1:-1:-1;;;6302:63:0;;;;;;;:::i;:::-;5704:1;6443:7;:18;46340:11;46332:54:::1;;;;-1:-1:-1::0;;;46332:54:0::1;;;;;;;:::i;:::-;46402:23;:21;:23::i;:::-;46395:4;:30:::0;46441:5:::1;::::0;46434:66:::1;::::0;-1:-1:-1;;;;;46441:5:0::1;46465:10;46485:4;46492:7:::0;46434:30:::1;:66::i;:::-;46509:11;:9;:11::i;:::-;46561:14;46592:4;;46600:1;46592:9;46588:246;;;-1:-1:-1::0;46641:4:0::1;:14:::0;;;46623:7;46588:246:::1;;;46686:13;:11;:13::i;:::-;46682:143;;-1:-1:-1::0;46728:7:0;46682:143:::1;;;46775:38;46808:4;;46776:26;46788:13;:11;:13::i;:::-;46776:7:::0;;:11:::1;:26::i;46775:38::-;46766:47;;46682:143;46849:23;:21;:23::i;:::-;46842:4;:30:::0;46881:25:::1;46887:10;46899:6:::0;46881:5:::1;:25::i;:::-;46961:10;46945:27;::::0;;;:15:::1;:27;::::0;;;;;:40:::1;::::0;46977:7;46945:31:::1;:40::i;:::-;46931:10;46915:27;::::0;;;:15:::1;:27;::::0;;;;;:70;;;;46999:28;;47019:7;;46999:28:::1;::::0;::::1;-1:-1:-1::0;;5660:1:0;6622:7;:22;46250:783::o;44152:26::-;;;-1:-1:-1;;;;;44152:26:0;;:::o;52626:186::-;52705:12;52673:7;52692:26;;;:12;:26;;;;;;52689:117;;;52742:11;;52734:45;;-1:-1:-1;;;52734:45:0;;-1:-1:-1;;;;;52742:11:0;;;;52734:30;;:45;;52773:4;;52734:45;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;52727:52;;;;52689:117;-1:-1:-1;52805:1:0;52798:8;;50085:105;50139:7;50162:22;:20;:22::i;36553:151::-;-1:-1:-1;;;;;36669:18:0;;;36642:7;36669:18;;;:11;:18;;;;;;;;:27;;;;;;;;;;;;;36553:151::o;49453:121::-;-1:-1:-1;;;;;49543:25:0;49520:7;49543:25;;;:15;:25;;;;;;;49453:121::o;32072:194::-;31349:12;:10;:12::i;:::-;-1:-1:-1;;;;;31338:23:0;:7;:5;:7::i;:::-;-1:-1:-1;;;;;31338:23:0;;31330:68;;;;-1:-1:-1;;;31330:68:0;;;;;;;:::i;:::-;-1:-1:-1;;;;;32161:22:0;::::1;32153:73;;;;-1:-1:-1::0;;;32153:73:0::1;;;;;;;:::i;:::-;32237:10;:21:::0;;-1:-1:-1;;;;;;32237:21:0::1;-1:-1:-1::0;;;;;32237:21:0;;;::::1;::::0;;;::::1;::::0;;32072:194::o;49970:109::-;50026:7;50049:24;:22;:24::i;57515:167::-;31349:12;:10;:12::i;:::-;-1:-1:-1;;;;;31338:23:0;:7;:5;:7::i;:::-;-1:-1:-1;;;;;31338:23:0;;31330:68;;;;-1:-1:-1;;;31330:68:0;;;;;;;:::i;:::-;57618:5:::1;57595:12;:20;57608:6;57595:20;;;;;;;;;;;;;;;;;;;;;;;;;;;;:28;;;;;;;;;;;;;;;;;;57653:5;57630:12;:20;57643:6;57630:20;;;;;;;43893::::0;;;-1:-1:-1;;;;;43893:20:0;;:::o;45649:155::-;31349:12;:10;:12::i;:::-;-1:-1:-1;;;;;31338:23:0;:7;:5;:7::i;:::-;-1:-1:-1;;;;;31338:23:0;;31330:68;;;;-1:-1:-1;;;31330:68:0;;;;;;;:::i;:::-;45726:12:::1;;45720:3;:18;45712:64;;;;-1:-1:-1::0;;;45712:64:0::1;;;;;;;:::i;:::-;45783:9;:15:::0;45649:155::o;55548:193::-;55617:1;55608:6;:10;55600:45;;;;-1:-1:-1;;;55600:45:0;;;;;;;:::i;:::-;55666:11;;55700:12;;55687:39;;;-1:-1:-1;;;55687:39:0;;;;-1:-1:-1;;;;;55666:11:0;;;;55654:32;;55700:12;;55687:37;;:39;;;;;;;;;;;;;;55700:12;55687:39;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;55728:6;55654:81;;;;;;;;;;;;;;;;:::i;57226:148::-;31349:12;:10;:12::i;:::-;-1:-1:-1;;;;;31338:23:0;:7;:5;:7::i;:::-;-1:-1:-1;;;;;31338:23:0;;31330:68;;;;-1:-1:-1;;;31330:68:0;;;;;;;:::i;:::-;57312:4:::1;57289:12;:20;57302:6;57289:20;;;;;;;;;;;;;;;;;;;;;;;;;;;;:27;;;;;;;;;;;;;;;;;;57346:4;57323:12;:20;57336:6;57323:20;;;;;;;29637:106:::0;29725:10;29637:106;:::o;42100:346::-;-1:-1:-1;;;;;42202:19:0;;42194:68;;;;-1:-1:-1;;;42194:68:0;;;;;;;:::i;:::-;-1:-1:-1;;;;;42281:21:0;;42273:68;;;;-1:-1:-1;;;42273:68:0;;;;;;;:::i;:::-;-1:-1:-1;;;;;42354:18:0;;;;;;;:11;:18;;;;;;;;:27;;;;;;;;;;;;;;:36;;;42406:32;;;;;42384:6;;42406:32;:::i;:::-;;;;;;;;42100:346;;;:::o;52044:186::-;52126:14;52094:7;52113:28;;;:12;:28;;;;;;52110:114;;;52164:7;;52157:40;;-1:-1:-1;;;52157:40:0;;-1:-1:-1;;;;;52164:7:0;;;;52157:25;;:40;;52191:4;;52157:40;;;:::i;51071:374::-;51128:7;51144:9;51156:17;:15;:17::i;:::-;51144:29;;51188:1;51184;:5;:37;;;;-1:-1:-1;51206:14:0;51193:28;;:12;:28;;;;;;51184:37;51180:245;;;51268:12;;51255:47;;;-1:-1:-1;;;51255:47:0;;;;51232:20;;-1:-1:-1;;;;;51268:12:0;;51255:45;;:47;;;;;;;;;;;;;;51268:12;51255:47;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;51232:70;;51311:17;51344:12;;;;;;;;;-1:-1:-1;;;;;51344:12:0;-1:-1:-1;;;;;51331:30:0;;:32;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;51311:52;-1:-1:-1;51376:41:0;51415:1;51376:34;51311:52;51376:19;:1;51382:12;51376:5;:19::i;:34::-;:38;;:41::i;:::-;51372:45;51071:374;-1:-1:-1;;;;51071:374:0:o;51761:277::-;51817:7;51833:9;51845:16;:14;:16::i;:::-;51833:28;;51876:1;51872;:5;:36;;;;-1:-1:-1;51894:13:0;51881:27;;:12;:27;;;;;;51872:36;51868:150;;;51923:87;52008:1;51923:80;51976:11;;;;;;;;;-1:-1:-1;;;;;51976:11:0;-1:-1:-1;;;;;51968:32:0;;:34;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;51937:11;;51929:33;;;-1:-1:-1;;;51929:33:0;;;;51923:40;;-1:-1:-1;;;;;51937:11:0;;51929:31;;:33;;;;;;;;;;;;;;51937:11;51929:33;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;51923:1;;:5;:40::i;39712:539::-;-1:-1:-1;;;;;39818:20:0;;39810:70;;;;-1:-1:-1;;;39810:70:0;;;;;;;:::i;:::-;-1:-1:-1;;;;;39899:23:0;;39891:71;;;;-1:-1:-1;;;39891:71:0;;;;;;;:::i;:::-;39975:47;39996:6;40004:9;40015:6;39975:20;:47::i;:::-;40055:71;40077:6;40055:71;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;40055:17:0;;:9;:17;;;;;;;;;;;;:71;:21;:71::i;:::-;-1:-1:-1;;;;;40035:17:0;;;:9;:17;;;;;;;;;;;:91;;;;40160:20;;;;;;;:32;;40185:6;40160:24;:32::i;:::-;-1:-1:-1;;;;;40137:20:0;;;:9;:20;;;;;;;;;;;;:55;;;;40208:35;;;;;;-1:-1:-1;;;;;;;;;;;40208:35:0;;;40236:6;;40208:35;:::i;23304:166::-;23390:7;23426:12;23418:6;;;;23410:29;;;;-1:-1:-1;;;23410:29:0;;;;;;;;:::i;:::-;-1:-1:-1;;;23457:5:0;;;23304:166::o;56707:241::-;56763:4;56783:159;56931:10;:8;:10::i;:::-;56783:135;56894:23;:21;:23::i;:::-;56783:98;56858:22;:20;:22::i;:::-;56783:62;56820:24;:22;:24::i;:::-;56783;:22;:24::i;21356:220::-;21414:7;21438:6;21434:20;;-1:-1:-1;21453:1:0;21446:8;;21434:20;21477:5;;;21481:1;21477;:5;:1;21501:5;;;;;:10;21493:56;;;;-1:-1:-1;;;21493:56:0;;;;;;;:::i;22054:153::-;22112:7;22144:1;22140;:5;22132:44;;;;-1:-1:-1;;;22132:44:0;;;;;;;:::i;:::-;22198:1;22194;:5;;;;;;;22054:153;-1:-1:-1;;;22054:153:0:o;20477:179::-;20535:7;20567:5;;;20591:6;;;;20583:46;;;;-1:-1:-1;;;20583:46:0;;;;;;;:::i;20939:158::-;20997:7;21030:1;21025;:6;;21017:49;;;;-1:-1:-1;;;21017:49:0;;;;;;;:::i;:::-;-1:-1:-1;21084:5:0;;;20939:158::o;54454:385::-;54526:14;54514:8;;;;:26;;;;;;;;;54510:78;;;54551:29;54572:7;54551:20;:29::i;:::-;54610:14;54598:8;;;;:26;;;;;;;;;54594:78;;;54635:29;54656:7;54635:20;:29::i;:::-;54694:12;54682:8;;;;:24;;;;;;;;;54678:74;;;54717:27;54736:7;54717:18;:27::i;:::-;54774:13;54762:8;;;;:25;;;;;;;;;54758:76;;;54798:28;54818:7;54798:19;:28::i;25869:177::-;25952:86;25972:5;26002:23;;;26027:2;26031:5;25979:58;;;;;;;;;:::i;:::-;;;;-1:-1:-1;;25979:58:0;;;;;;;;;;;;;;-1:-1:-1;;;;;25979:58:0;-1:-1:-1;;;;;;25979:58:0;;;;;;;;;;25952:19;:86::i;:::-;25869:177;;;:::o;41244:418::-;-1:-1:-1;;;;;41328:21:0;;41320:67;;;;-1:-1:-1;;;41320:67:0;;;;;;;:::i;:::-;41400:49;41421:7;41438:1;41442:6;41400:20;:49::i;:::-;41483:68;41506:6;41483:68;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;41483:18:0;;:9;:18;;;;;;;;;;;;:68;:22;:68::i;:::-;-1:-1:-1;;;;;41462:18:0;;:9;:18;;;;;;;;;;:89;41577:12;;:24;;41594:6;41577:16;:24::i;:::-;41562:12;:39;41617:37;;41643:1;;-1:-1:-1;;;;;41617:37:0;;;-1:-1:-1;;;;;;;;;;;41617:37:0;;;41647:6;;41617:37;:::i;:::-;;;;;;;;41244:418;;:::o;52435:185::-;52515:12;52483:7;52502:26;;;:12;:26;;;;;;52499:115;;;52551:10;;52544:43;;-1:-1:-1;;;52544:43:0;;-1:-1:-1;;;;;52551:10:0;;;;52544:28;;:43;;52581:4;;52544:43;;;:::i;52234:197::-;52316:14;52284:7;52303:28;;;:12;:28;;;;;;52300:125;;;52360:12;;52347:51;;-1:-1:-1;;;52347:51:0;;-1:-1:-1;;;;;52360:12:0;;;;52347:36;;:51;;52392:4;;52347:51;;;:::i;52818:426::-;52858:15;52876:17;:15;:17::i;:::-;52858:35;-1:-1:-1;52904:10:0;;52900:57;;52925:24;52942:6;52925:16;:24::i;:::-;52972:17;:15;:17::i;:::-;52963:26;-1:-1:-1;53000:10:0;;52996:57;;53021:24;53038:6;53021:16;:24::i;:::-;53068:15;:13;:15::i;:::-;53059:24;-1:-1:-1;53094:10:0;;53090:55;;53115:22;53130:6;53115:14;:22::i;:::-;53160:16;:14;:16::i;:::-;53151:25;-1:-1:-1;53187:10:0;;53183:56;;53208:23;53224:6;53208:15;:23::i;50703:110::-;50776:5;;50769:38;;-1:-1:-1;;;50769:38:0;;50746:7;;-1:-1:-1;;;;;50776:5:0;;50769:23;;:38;;50801:4;;50769:38;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;26054:205::-;26155:96;26175:5;26205:27;;;26234:4;26240:2;26244:5;26182:68;;;;;;;;;;:::i;26155:96::-;26054:205;;;;:::o;40533:378::-;-1:-1:-1;;;;;40617:21:0;;40609:65;;;;-1:-1:-1;;;40609:65:0;;;;;;;:::i;:::-;40687:49;40716:1;40720:7;40729:6;40687:20;:49::i;:::-;40764:12;;:24;;40781:6;40764:16;:24::i;:::-;40749:12;:39;-1:-1:-1;;;;;40820:18:0;;:9;:18;;;;;;;;;;;:30;;40843:6;40820:22;:30::i;:::-;-1:-1:-1;;;;;40799:18:0;;:9;:18;;;;;;;;;;;:51;;;;40866:37;;40799:18;;:9;-1:-1:-1;;;;;;;;;;;40866:37:0;;;40896:6;;40866:37;:::i;51451:304::-;51506:7;51522:9;51534:15;:13;:15::i;:::-;51522:27;;51564:1;51560;:5;:35;;;;-1:-1:-1;51582:12:0;51569:26;;:12;:26;;;;;;51560:35;51556:179;;;51636:10;;51629:39;;;-1:-1:-1;;;51629:39:0;;;;51606:20;;-1:-1:-1;;;;;51636:10:0;;51629:37;;:39;;;;;;;;;;;;;;51636:10;51629:39;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;51606:62;-1:-1:-1;51681:46:0;51722:4;51681:36;51715:1;51681:29;51705:4;51681:19;:1;51606:62;51681:5;:19::i;50819:246::-;50876:7;50892:9;50904:17;:15;:17::i;:::-;50892:29;;50936:1;50932;:5;:37;;;;-1:-1:-1;50954:14:0;50941:28;;:12;:28;;;;;;50932:37;50928:117;;;50992:7;;50984:46;;-1:-1:-1;;;50984:46:0;;:53;;51035:1;;-1:-1:-1;;;;;50992:7:0;;;;50984:31;;:46;;51024:4;;50984:46;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;53250:362::-;53313:9;53325:17;:15;:17::i;:::-;53313:29;;53385:10;53398:24;:22;:24::i;:::-;53385:37;;53443:7;53437:2;:13;;53429:44;;;;-1:-1:-1;;;53429:44:0;;;;;;;:::i;:::-;53527:14;53544:31;53573:1;53544:24;53565:2;53545:14;:1;53551:7;53545:5;:14::i;53544:31::-;53527:48;;53582:24;53599:6;53582:16;:24::i;53618:279::-;53681:9;53693:17;:15;:17::i;:::-;53681:29;;53717:10;53730:24;:22;:24::i;:::-;53717:37;;53775:7;53769:2;:13;;53761:44;;;;-1:-1:-1;;;53761:44:0;;;;;;;:::i;:::-;53812:14;53829:31;53858:1;53829:24;53850:2;53830:14;:1;53836:7;53830:5;:14::i;53829:31::-;53812:48;;53867:24;53884:6;53867:16;:24::i;53903:264::-;53964:9;53976:15;:13;:15::i;:::-;53964:27;;53998:10;54011:22;:20;:22::i;:::-;53998:35;;54054:7;54048:2;:13;;54040:44;;;;-1:-1:-1;;;54040:44:0;;;;;;;:::i;:::-;54091:14;54108:24;54129:2;54109:14;:1;54115:7;54109:5;:14::i;54108:24::-;54091:41;;54139:22;54154:6;54139:14;:22::i;54173:275::-;54235:9;54247:16;:14;:16::i;:::-;54235:28;;54270:10;54283:23;:21;:23::i;:::-;54270:36;;54327:7;54321:2;:13;;54313:44;;;;-1:-1:-1;;;54313:44:0;;;;;;;:::i;:::-;54364:14;54381:31;54410:1;54381:24;54402:2;54382:14;:1;54388:7;54382:5;:14::i;54381:31::-;54364:48;;54419:23;54435:6;54419:15;:23::i;28174:761::-;28598:23;28624:69;28652:4;28624:69;;;;;;;;;;;;;;;;;28632:5;-1:-1:-1;;;;;28624:27:0;;;:69;;;;;:::i;:::-;28708:17;;28598:95;;-1:-1:-1;28708:21:0;28704:224;;28850:10;28839:30;;;;;;;;;;;;:::i;:::-;28831:85;;;;-1:-1:-1;;;28831:85:0;;;;;;;:::i;56038:148::-;56111:7;;56103:44;;-1:-1:-1;;;56103:44:0;;56150:1;;-1:-1:-1;;;;;56111:7:0;;56103:21;;:44;;56133:4;;56140:6;;56103:44;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:48;56095:85;;;;-1:-1:-1;;;56095:85:0;;;;;;;:::i;56190:201::-;56264:1;56255:6;:10;56247:47;;;;-1:-1:-1;;;56247:47:0;;;;;;;:::i;:::-;56315:11;;56350:12;;56337:39;;;-1:-1:-1;;;56337:39:0;;;;-1:-1:-1;;;;;56315:11:0;;;;56303:33;;56350:12;;56337:37;;:39;;;;;;;;;;;;;;56350:12;56337:39;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;56378:6;56303:82;;;;;;;;;;;;;;;;:::i;56395:148::-;56467:1;56458:6;:10;56450:45;;;;-1:-1:-1;;;56450:45:0;;;;;;;:::i;:::-;56511:10;;56504:33;;-1:-1:-1;;;56504:33:0;;-1:-1:-1;;;;;56511:10:0;;;;56504:25;;:33;;56530:6;;56504:33;;;:::i;56547:154::-;56620:1;56611:6;:10;56603:46;;;;-1:-1:-1;;;56603:46:0;;;;;;;:::i;:::-;56666:11;;56658:37;;-1:-1:-1;;;56658:37:0;;-1:-1:-1;;;;;56666:11:0;;;;56658:29;;:37;;56688:6;;56658:37;;;:::i;13280:195::-;13383:12;13415:52;13437:6;13445:4;13451:1;13454:12;13383;14584:18;14595:6;14584:10;:18::i;:::-;14576:60;;;;-1:-1:-1;;;14576:60:0;;;;;;;:::i;:::-;14710:12;14724:23;14751:6;-1:-1:-1;;;;;14751:11:0;14771:5;14779:4;14751:33;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;14709:75;;;;14802:52;14820:7;14829:10;14841:12;14802:17;:52::i;:::-;14795:59;14332:530;-1:-1:-1;;;;;;;14332:530:0:o;10362:422::-;10729:20;10768:8;;;10362:422::o;16872:742::-;16987:12;17016:7;17012:595;;;-1:-1:-1;17047:10:0;17040:17;;17012:595;17161:17;;:21;17157:439;;17424:10;17418:17;17485:15;17472:10;17468:2;17464:19;17457:44;17372:148;17567:12;17560:20;;-1:-1:-1;;;17560: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;35381:5;33715:13;33708:21;35359:5;35356:32;35346:2;;-1:-1;;35392: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;35498:1;35491:5;35488:12;35478:2;;-1:-1;;35504: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;16726:271::-;;4888:5;33056:12;4999:52;5044:6;5039:3;5032:4;5025:5;5021:16;4999:52;:::i;:::-;5063:16;;;;;16860:137;-1:-1;;16860:137::o;17004:222::-;-1:-1;;;;;33938:54;;;;4568:37;;17131:2;17116:18;;17102:124::o;17478:349::-;-1:-1;;;;;33938:54;;;;4427:58;;17813:2;17798:18;;16563:37;17641:2;17626:18;;17612:215::o;17834:444::-;-1:-1;;;;;33938:54;;;4568:37;;33938:54;;;;18181:2;18166:18;;4568:37;18264:2;18249:18;;16563:37;;;;18017:2;18002:18;;17988:290::o;18625:210::-;33715:13;;33708:21;4682:34;;18746:2;18731:18;;18717:118::o;18842:240::-;18978:2;18963:18;;35147:1;35137:12;;35127:2;;35153:9;35127:2;5171:59;;;18949:133;:::o;19089:310::-;;19236:2;19257:17;19250:47;5387:5;33056:12;33495:6;19236:2;19225:9;19221:18;33483:19;5481:52;5526:6;33523:14;19225:9;33523:14;19236:2;5507:5;5503:16;5481:52;:::i;:::-;35046:7;35030:14;-1:-1;;35026:28;5545:39;;;;33523:14;5545:39;;19207:192;-1:-1;;19207:192::o;19406:416::-;19606:2;19620:47;;;5821:2;19591:18;;;33483:19;5857:34;33523:14;;;5837:55;-1:-1;;;5912:12;;;5905:27;5951:12;;;19577:245::o;19829:416::-;20029:2;20043:47;;;6202:2;20014:18;;;33483:19;-1:-1;;;33523:14;;;6218:44;6281:12;;;20000:245::o;20252:416::-;20452:2;20466:47;;;6532:2;20437:18;;;33483:19;6568:34;33523:14;;;6548:55;-1:-1;;;6623:12;;;6616:30;6665:12;;;20423:245::o;20675:416::-;20875:2;20889:47;;;6916:2;20860:18;;;33483:19;6952:34;33523:14;;;6932:55;-1:-1;;;7007:12;;;7000:26;7045:12;;;20846:245::o;21098:416::-;21298:2;21312:47;;;7296:2;21283:18;;;33483:19;-1:-1;;;33523:14;;;7312:44;7375:12;;;21269:245::o;21521:416::-;21721:2;21735:47;;;7626:2;21706:18;;;33483:19;7662:29;33523:14;;;7642:50;7711:12;;;21692:245::o;21944:416::-;22144:2;22158:47;;;7962:2;22129:18;;;33483:19;-1:-1;;;33523:14;;;7978:45;8042:12;;;22115:245::o;22367:416::-;22567:2;22581:47;;;8293:2;22552:18;;;33483:19;8329:32;33523:14;;;8309:53;8381:12;;;22538:245::o;23213:416::-;23413:2;23427:47;;;9016:2;23398:18;;;33483:19;9052:28;33523:14;;;9032:49;9100:12;;;23384:245::o;23636:416::-;23836:2;23850:47;;;9351:2;23821:18;;;33483:19;-1:-1;;;33523:14;;;9367:45;9431:12;;;23807:245::o;24059:416::-;24259:2;24273:47;;;9682:2;24244:18;;;33483:19;-1:-1;;;33523:14;;;9698:43;9760:12;;;24230:245::o;24482:416::-;24682:2;24696:47;;;10011:2;24667:18;;;33483:19;10047:34;33523:14;;;10027:55;-1:-1;;;10102:12;;;10095:25;10139:12;;;24653:245::o;24905:416::-;25105:2;25119:47;;;10390:2;25090:18;;;33483:19;10426:26;33523:14;;;10406:47;10472:12;;;25076:245::o;25328:416::-;25528:2;25542:47;;;25513:18;;;33483:19;10759:34;33523:14;;;10739:55;10813:12;;;25499:245::o;25751:416::-;25951:2;25965:47;;;11064:2;25936:18;;;33483:19;-1:-1;;;33523:14;;;11080:43;11142:12;;;25922:245::o;26174:416::-;26374:2;26388:47;;;11393:2;26359:18;;;33483:19;11429:33;33523:14;;;11409:54;11482:12;;;26345:245::o;26597:416::-;26797:2;26811:47;;;11733:2;26782:18;;;33483:19;11769:26;33523:14;;;11749:47;11815:12;;;26768:245::o;27020:416::-;27220:2;27234:47;;;12066:2;27205:18;;;33483:19;12102:34;33523:14;;;12082:55;-1:-1;;;12157:12;;;12150:25;12194:12;;;27191:245::o;27443:416::-;27643:2;27657:47;;;12445:2;27628:18;;;33483:19;12481:34;33523:14;;;12461:55;-1:-1;;;12536:12;;;12529:25;12573:12;;;27614:245::o;27866:416::-;28066:2;28080:47;;;12824:2;28051:18;;;33483:19;12860:34;33523:14;;;12840:55;-1:-1;;;12915:12;;;12908:29;12956:12;;;28037:245::o;28289:416::-;28489:2;28503:47;;;13207:2;28474:18;;;33483:19;13243:25;33523:14;;;13223:46;13288:12;;;28460:245::o;28712:416::-;28912:2;28926:47;;;13539:2;28897:18;;;33483:19;-1:-1;;;33523:14;;;13555:41;13615:12;;;28883:245::o;29135:416::-;29335:2;29349:47;;;13866:2;29320:18;;;33483:19;13902:34;33523:14;;;13882:55;-1:-1;;;13957:12;;;13950:28;13997:12;;;29306:245::o;29558:416::-;29758:2;29772:47;;;14248:2;29743:18;;;33483:19;14284:32;33523:14;;;14264:53;14336:12;;;29729:245::o;29981:416::-;30181:2;30195:47;;;14587:2;30166:18;;;33483:19;14623:31;33523:14;;;14603:52;14674:12;;;30152:245::o;30404:416::-;30604:2;30618:47;;;14925:2;30589:18;;;33483:19;14961:34;33523:14;;;14941:55;-1:-1;;;15016:12;;;15009:39;15067:12;;;30575:245::o;30827:416::-;31027:2;31041:47;;;15318:2;31012:18;;;33483:19;-1:-1;;;33523:14;;;15334:45;15398:12;;;30998:245::o;31250:416::-;31450:2;31464:47;;;15649:2;31435:18;;;33483:19;15685:34;33523:14;;;15665:55;-1:-1;;;15740:12;;;15733:34;15786:12;;;31421:245::o;31673:416::-;31873:2;31887:47;;;16037:2;31858:18;;;33483:19;16073:33;33523:14;;;16053:54;16126:12;;;31844:245::o;32096:416::-;32296:2;32310:47;;;16377:2;32281:18;;;33483:19;16413:33;33523:14;;;16393:54;16466:12;;;32267:245::o;32519:222::-;16563:37;;;32646:2;32631:18;;32617:124::o;32748:214::-;34154:4;34143:16;;;;16679:35;;32871:2;32856:18;;32842:120::o;34686:268::-;34751:1;34758:101;34772:6;34769:1;34766:13;34758:101;;;34839:11;;;34833:18;34820:11;;;34813:39;34794:2;34787:10;34758:101;;;34874:6;34871:1;34868:13;34865:2;;;-1:-1;;34751:1;34921:16;;34914:27;34735:219::o;35176:117::-;-1:-1;;;;;33938:54;;35235:35;;35225:2;;35284:1;;35274:12

Swarm Source

ipfs://ce6176fac61ef9e12a89009ec40bb3b3676d45329a8eb6ad6dc70a8075bf8eba
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.