ETH Price: $3,385.42 (-1.52%)
Gas: 2 Gwei

Contract

0x60d133c666919B54a3254E0d3F14332cB783B733
 
Transaction Hash
Method
Block
From
To
Value
Withdraw Collate...198075572024-05-06 0:45:4754 days ago1714956347IN
0x60d133c6...cB783B733
0 ETH0.000703114.50191348
Pay Back Token198075472024-05-06 0:43:4754 days ago1714956227IN
0x60d133c6...cB783B733
0 ETH0.000677414.86689576
Withdraw Collate...197714132024-04-30 23:30:3559 days ago1714519835IN
0x60d133c6...cB783B733
0 ETH0.000820425.25300562
Pay Back Token197714002024-04-30 23:27:5959 days ago1714519679IN
0x60d133c6...cB783B733
0 ETH0.000749075.38172151
Withdraw Collate...197574772024-04-29 0:46:1161 days ago1714351571IN
0x60d133c6...cB783B733
0 ETH0.000713214.56659446
Pay Back Token197574692024-04-29 0:44:3561 days ago1714351475IN
0x60d133c6...cB783B733
0 ETH0.000679094.87901254
Deposit Collater...196494262024-04-13 21:50:2376 days ago1713045023IN
0x60d133c6...cB783B733
0 ETH0.00751635150.9125553
Pay Back Token196375222024-04-12 5:45:3578 days ago1712900735IN
0x60d133c6...cB783B733
0 ETH0.0016337111.73747899
Withdraw Collate...196374982024-04-12 5:40:4778 days ago1712900447IN
0x60d133c6...cB783B733
0 ETH0.0018756512.0094111
Update Vault Deb...193064692024-02-25 18:45:11124 days ago1708886711IN
0x60d133c6...cB783B733
0 ETH0.0012756328.2439862
Update Vault Deb...193064622024-02-25 18:43:47124 days ago1708886627IN
0x60d133c6...cB783B733
0 ETH0.0018323129.42773635
Update Vault Deb...192718742024-02-20 22:26:23129 days ago1708467983IN
0x60d133c6...cB783B733
0 ETH0.003944563.35029728
Withdraw Collate...192177562024-02-13 7:58:35137 days ago1707811115IN
0x60d133c6...cB783B733
0 ETH0.0035191121.45594768
Withdraw Collate...186092822023-11-19 23:59:47222 days ago1700438387IN
0x60d133c6...cB783B733
0 ETH0.0043182630
Pay Back Token186092672023-11-19 23:56:47222 days ago1700438207IN
0x60d133c6...cB783B733
0 ETH0.0041444430
Withdraw Collate...185542262023-11-12 7:04:11230 days ago1699772651IN
0x60d133c6...cB783B733
0 ETH0.0031135821.6308468
Create Vault181280502023-09-13 14:42:47289 days ago1694616167IN
0x60d133c6...cB783B733
0 ETH0.0029599619.87476163
Withdraw Collate...180968142023-09-09 5:40:23294 days ago1694238023IN
0x60d133c6...cB783B733
0 ETH0.0015833611
Pay Back Token180967652023-09-09 5:30:23294 days ago1694237423IN
0x60d133c6...cB783B733
0 ETH0.0015196211
Withdraw Collate...180831872023-09-07 7:52:47296 days ago1694073167IN
0x60d133c6...cB783B733
0 ETH0.0009207212.04999675
Pay Back Token180831772023-09-07 7:50:47296 days ago1694073047IN
0x60d133c6...cB783B733
0 ETH0.0015443511
Pay Back Token174480582023-06-10 6:40:35385 days ago1686379235IN
0x60d133c6...cB783B733
0 ETH0.0040864429.10384396
Pay Back Token174480052023-06-10 6:29:59385 days ago1686378599IN
0x60d133c6...cB783B733
0 ETH0.0031876919.64257344
Withdraw Collate...168033212023-03-11 7:20:59476 days ago1678519259IN
0x60d133c6...cB783B733
0 ETH0.04826616335.23760502
Borrow Token168032992023-03-11 7:16:35476 days ago1678518995IN
0x60d133c6...cB783B733
0 ETH0.05721162337.80277536
View all transactions

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Loading...
Loading

Similar Match Source Code
This contract matches the deployed Bytecode of the Source Code for Contract 0x8C45969a...C6E2ac9d1
The constructor portion of the code might be different and could alter the actual behaviour of the contract

Contract Name:
stableQiVault

Compiler Version
v0.8.11+commit.d7f03943

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, None license

Contract Source Code (Solidity)

/**
 *Submitted for verification at Etherscan.io on 2022-09-06
*/

// Sources flattened with hardhat v2.9.6 https://hardhat.org

// File @openzeppelin/contracts/utils/[email protected]

// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)

pragma solidity ^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 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) {
        return msg.sender;
    }

    function _msgData() internal view virtual returns (bytes calldata) {
        return msg.data;
    }
}


// File @openzeppelin/contracts/access/[email protected]

// OpenZeppelin Contracts v4.4.1 (access/Ownable.sol)

pragma solidity ^0.8.0;

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

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

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    constructor() {
        _transferOwnership(_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 {
        _transferOwnership(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");
        _transferOwnership(newOwner);
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Internal function without access restriction.
     */
    function _transferOwnership(address newOwner) internal virtual {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}


// File @openzeppelin/contracts/token/ERC20/[email protected]

// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/IERC20.sol)

pragma solidity ^0.8.0;

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

    /**
     * @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 `to`.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transfer(address to, 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 `from` to `to` 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 from,
        address to,
        uint256 amount
    ) external returns (bool);
}


// File @openzeppelin/contracts/utils/[email protected]

// OpenZeppelin Contracts (last updated v4.5.0) (utils/Address.sol)

pragma solidity ^0.8.1;

/**
 * @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
     * ====
     *
     * [IMPORTANT]
     * ====
     * You shouldn't rely on `isContract` to protect against flash loan attacks!
     *
     * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets
     * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract
     * constructor.
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize/address.code.length, which returns 0
        // for contracts in construction, since the code is only stored at the end
        // of the constructor execution.

        return account.code.length > 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");

        (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");

        (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");

        (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");

        (bool success, bytes memory returndata) = target.delegatecall(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the
     * revert reason using the provided one.
     *
     * _Available since v4.3._
     */
    function verifyCallResult(
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal 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

                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}


// File @openzeppelin/contracts/token/ERC20/utils/[email protected]

// OpenZeppelin Contracts v4.4.1 (token/ERC20/utils/SafeERC20.sol)

pragma solidity ^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 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'
        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) + value;
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
    }

    function safeDecreaseAllowance(
        IERC20 token,
        address spender,
        uint256 value
    ) internal {
        unchecked {
            uint256 oldAllowance = token.allowance(address(this), spender);
            require(oldAllowance >= value, "SafeERC20: decreased allowance below zero");
            uint256 newAllowance = oldAllowance - value;
            _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
            require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed");
        }
    }
}


// File @openzeppelin/contracts/token/ERC20/extensions/[email protected]

// OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/IERC20Metadata.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface for the optional metadata functions from the ERC20 standard.
 *
 * _Available since v4.1._
 */
interface IERC20Metadata is IERC20 {
    /**
     * @dev Returns the name of the token.
     */
    function name() external view returns (string memory);

    /**
     * @dev Returns the symbol of the token.
     */
    function symbol() external view returns (string memory);

    /**
     * @dev Returns the decimals places of the token.
     */
    function decimals() external view returns (uint8);
}


// File @openzeppelin/contracts/token/ERC20/[email protected]

// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/ERC20.sol)

pragma solidity ^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 Contracts guidelines: functions revert
 * instead 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, IERC20Metadata {
    mapping(address => uint256) private _balances;

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

    uint256 private _totalSupply;

    string private _name;
    string private _symbol;

    /**
     * @dev Sets the values for {name} and {symbol}.
     *
     * The default value of {decimals} is 18. To select a different value for
     * {decimals} you should overload it.
     *
     * All two of these values are immutable: they can only be set once during
     * construction.
     */
    constructor(string memory name_, string memory symbol_) {
        _name = name_;
        _symbol = symbol_;
    }

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

    /**
     * @dev Returns the symbol of the token, usually a shorter version of the
     * name.
     */
    function symbol() public view virtual override 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 this function is
     * overridden;
     *
     * 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 override returns (uint8) {
        return 18;
    }

    /**
     * @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:
     *
     * - `to` cannot be the zero address.
     * - the caller must have a balance of at least `amount`.
     */
    function transfer(address to, uint256 amount) public virtual override returns (bool) {
        address owner = _msgSender();
        _transfer(owner, to, 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}.
     *
     * NOTE: If `amount` is the maximum `uint256`, the allowance is not updated on
     * `transferFrom`. This is semantically equivalent to an infinite approval.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function approve(address spender, uint256 amount) public virtual override returns (bool) {
        address owner = _msgSender();
        _approve(owner, 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}.
     *
     * NOTE: Does not update the allowance if the current allowance
     * is the maximum `uint256`.
     *
     * Requirements:
     *
     * - `from` and `to` cannot be the zero address.
     * - `from` must have a balance of at least `amount`.
     * - the caller must have allowance for ``from``'s tokens of at least
     * `amount`.
     */
    function transferFrom(
        address from,
        address to,
        uint256 amount
    ) public virtual override returns (bool) {
        address spender = _msgSender();
        _spendAllowance(from, spender, amount);
        _transfer(from, to, amount);
        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) {
        address owner = _msgSender();
        _approve(owner, spender, allowance(owner, spender) + 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) {
        address owner = _msgSender();
        uint256 currentAllowance = allowance(owner, spender);
        require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero");
        unchecked {
            _approve(owner, spender, currentAllowance - subtractedValue);
        }

        return true;
    }

    /**
     * @dev Moves `amount` of tokens from `sender` to `recipient`.
     *
     * This 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:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `from` must have a balance of at least `amount`.
     */
    function _transfer(
        address from,
        address to,
        uint256 amount
    ) internal virtual {
        require(from != address(0), "ERC20: transfer from the zero address");
        require(to != address(0), "ERC20: transfer to the zero address");

        _beforeTokenTransfer(from, to, amount);

        uint256 fromBalance = _balances[from];
        require(fromBalance >= amount, "ERC20: transfer amount exceeds balance");
        unchecked {
            _balances[from] = fromBalance - amount;
        }
        _balances[to] += amount;

        emit Transfer(from, to, amount);

        _afterTokenTransfer(from, to, 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:
     *
     * - `account` 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 += amount;
        _balances[account] += amount;
        emit Transfer(address(0), account, amount);

        _afterTokenTransfer(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);

        uint256 accountBalance = _balances[account];
        require(accountBalance >= amount, "ERC20: burn amount exceeds balance");
        unchecked {
            _balances[account] = accountBalance - amount;
        }
        _totalSupply -= amount;

        emit Transfer(account, address(0), amount);

        _afterTokenTransfer(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 Updates `owner` s allowance for `spender` based on spent `amount`.
     *
     * Does not update the allowance amount in case of infinite allowance.
     * Revert if not enough allowance is available.
     *
     * Might emit an {Approval} event.
     */
    function _spendAllowance(
        address owner,
        address spender,
        uint256 amount
    ) internal virtual {
        uint256 currentAllowance = allowance(owner, spender);
        if (currentAllowance != type(uint256).max) {
            require(currentAllowance >= amount, "ERC20: insufficient allowance");
            unchecked {
                _approve(owner, spender, currentAllowance - amount);
            }
        }
    }

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

    /**
     * @dev Hook that is called after any transfer of tokens. This includes
     * minting and burning.
     *
     * Calling conditions:
     *
     * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens
     * has been transferred to `to`.
     * - when `from` is zero, `amount` tokens have been minted for `to`.
     * - when `to` is zero, `amount` of ``from``'s tokens have been 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 _afterTokenTransfer(
        address from,
        address to,
        uint256 amount
    ) internal virtual {}
}


// File @openzeppelin/contracts/security/[email protected]

// OpenZeppelin Contracts v4.4.1 (security/ReentrancyGuard.sol)

pragma solidity ^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() {
        _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 making it call a
     * `private` function that does the actual work.
     */
    modifier nonReentrant() {
        // On the first call to nonReentrant, _notEntered will be true
        require(_status != _ENTERED, "ReentrancyGuard: reentrant call");

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

        _;

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


// File contracts/interfaces/IPriceSourceAll.sol

pragma solidity 0.8.11;
interface IPriceSource {
    function latestRoundData() external view returns (uint256);
    function latestAnswer() external view returns (uint256);
    function decimals() external view returns (uint8);
}


// File @openzeppelin/contracts/utils/introspection/[email protected]

// OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC165 standard, as defined in the
 * https://eips.ethereum.org/EIPS/eip-165[EIP].
 *
 * Implementers can declare support of contract interfaces, which can then be
 * queried by others ({ERC165Checker}).
 *
 * For an implementation, see {ERC165}.
 */
interface IERC165 {
    /**
     * @dev Returns true if this contract implements the interface defined by
     * `interfaceId`. See the corresponding
     * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section]
     * to learn more about how these ids are created.
     *
     * This function call must use less than 30 000 gas.
     */
    function supportsInterface(bytes4 interfaceId) external view returns (bool);
}


// File @openzeppelin/contracts/token/ERC721/[email protected]

// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/IERC721.sol)

pragma solidity ^0.8.0;

/**
 * @dev Required interface of an ERC721 compliant contract.
 */
interface IERC721 is IERC165 {
    /**
     * @dev Emitted when `tokenId` token is transferred from `from` to `to`.
     */
    event Transfer(address indexed from, address indexed to, uint256 indexed tokenId);

    /**
     * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token.
     */
    event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId);

    /**
     * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets.
     */
    event ApprovalForAll(address indexed owner, address indexed operator, bool approved);

    /**
     * @dev Returns the number of tokens in ``owner``'s account.
     */
    function balanceOf(address owner) external view returns (uint256 balance);

    /**
     * @dev Returns the owner of the `tokenId` token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function ownerOf(uint256 tokenId) external view returns (address owner);

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId,
        bytes calldata data
    ) external;

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients
     * are aware of the ERC721 protocol to prevent tokens from being forever locked.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId
    ) external;

    /**
     * @dev Transfers `tokenId` token from `from` to `to`.
     *
     * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must be owned by `from`.
     * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(
        address from,
        address to,
        uint256 tokenId
    ) external;

    /**
     * @dev Gives permission to `to` to transfer `tokenId` token to another account.
     * The approval is cleared when the token is transferred.
     *
     * Only a single account can be approved at a time, so approving the zero address clears previous approvals.
     *
     * Requirements:
     *
     * - The caller must own the token or be an approved operator.
     * - `tokenId` must exist.
     *
     * Emits an {Approval} event.
     */
    function approve(address to, uint256 tokenId) external;

    /**
     * @dev Approve or remove `operator` as an operator for the caller.
     * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller.
     *
     * Requirements:
     *
     * - The `operator` cannot be the caller.
     *
     * Emits an {ApprovalForAll} event.
     */
    function setApprovalForAll(address operator, bool _approved) external;

    /**
     * @dev Returns the account approved for `tokenId` token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function getApproved(uint256 tokenId) external view returns (address operator);

    /**
     * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`.
     *
     * See {setApprovalForAll}
     */
    function isApprovedForAll(address owner, address operator) external view returns (bool);
}


// File @openzeppelin/contracts/token/ERC721/[email protected]

// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/IERC721Receiver.sol)

pragma solidity ^0.8.0;

/**
 * @title ERC721 token receiver interface
 * @dev Interface for any contract that wants to support safeTransfers
 * from ERC721 asset contracts.
 */
interface IERC721Receiver {
    /**
     * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom}
     * by `operator` from `from`, this function is called.
     *
     * It must return its Solidity selector to confirm the token transfer.
     * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted.
     *
     * The selector can be obtained in Solidity with `IERC721Receiver.onERC721Received.selector`.
     */
    function onERC721Received(
        address operator,
        address from,
        uint256 tokenId,
        bytes calldata data
    ) external returns (bytes4);
}


// File @openzeppelin/contracts/token/ERC721/extensions/[email protected]

// OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol)

pragma solidity ^0.8.0;

/**
 * @title ERC-721 Non-Fungible Token Standard, optional metadata extension
 * @dev See https://eips.ethereum.org/EIPS/eip-721
 */
interface IERC721Metadata is IERC721 {
    /**
     * @dev Returns the token collection name.
     */
    function name() external view returns (string memory);

    /**
     * @dev Returns the token collection symbol.
     */
    function symbol() external view returns (string memory);

    /**
     * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token.
     */
    function tokenURI(uint256 tokenId) external view returns (string memory);
}


// File @openzeppelin/contracts/utils/[email protected]

// OpenZeppelin Contracts v4.4.1 (utils/Strings.sol)

pragma solidity ^0.8.0;

/**
 * @dev String operations.
 */
library Strings {
    bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef";

    /**
     * @dev Converts a `uint256` to its ASCII `string` decimal representation.
     */
    function toString(uint256 value) internal pure returns (string memory) {
        // Inspired by OraclizeAPI's implementation - MIT licence
        // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol

        if (value == 0) {
            return "0";
        }
        uint256 temp = value;
        uint256 digits;
        while (temp != 0) {
            digits++;
            temp /= 10;
        }
        bytes memory buffer = new bytes(digits);
        while (value != 0) {
            digits -= 1;
            buffer[digits] = bytes1(uint8(48 + uint256(value % 10)));
            value /= 10;
        }
        return string(buffer);
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.
     */
    function toHexString(uint256 value) internal pure returns (string memory) {
        if (value == 0) {
            return "0x00";
        }
        uint256 temp = value;
        uint256 length = 0;
        while (temp != 0) {
            length++;
            temp >>= 8;
        }
        return toHexString(value, length);
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length.
     */
    function toHexString(uint256 value, uint256 length) internal pure returns (string memory) {
        bytes memory buffer = new bytes(2 * length + 2);
        buffer[0] = "0";
        buffer[1] = "x";
        for (uint256 i = 2 * length + 1; i > 1; --i) {
            buffer[i] = _HEX_SYMBOLS[value & 0xf];
            value >>= 4;
        }
        require(value == 0, "Strings: hex length insufficient");
        return string(buffer);
    }
}


// File @openzeppelin/contracts/utils/introspection/[email protected]

// OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol)

pragma solidity ^0.8.0;

/**
 * @dev Implementation of the {IERC165} interface.
 *
 * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check
 * for the additional interface id that will be supported. For example:
 *
 * ```solidity
 * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
 *     return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId);
 * }
 * ```
 *
 * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation.
 */
abstract contract ERC165 is IERC165 {
    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
        return interfaceId == type(IERC165).interfaceId;
    }
}


// File @openzeppelin/contracts/token/ERC721/[email protected]

// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/ERC721.sol)

pragma solidity ^0.8.0;







/**
 * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
 * the Metadata extension, but not including the Enumerable extension, which is available separately as
 * {ERC721Enumerable}.
 */
contract ERC721 is Context, ERC165, IERC721, IERC721Metadata {
    using Address for address;
    using Strings for uint256;

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

    // Mapping from token ID to owner address
    mapping(uint256 => address) private _owners;

    // Mapping owner address to token count
    mapping(address => uint256) private _balances;

    // Mapping from token ID to approved address
    mapping(uint256 => address) private _tokenApprovals;

    // Mapping from owner to operator approvals
    mapping(address => mapping(address => bool)) private _operatorApprovals;

    /**
     * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection.
     */
    constructor(string memory name_, string memory symbol_) {
        _name = name_;
        _symbol = symbol_;
    }

    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) {
        return
            interfaceId == type(IERC721).interfaceId ||
            interfaceId == type(IERC721Metadata).interfaceId ||
            super.supportsInterface(interfaceId);
    }

    /**
     * @dev See {IERC721-balanceOf}.
     */
    function balanceOf(address owner) public view virtual override returns (uint256) {
        require(owner != address(0), "ERC721: balance query for the zero address");
        return _balances[owner];
    }

    /**
     * @dev See {IERC721-ownerOf}.
     */
    function ownerOf(uint256 tokenId) public view virtual override returns (address) {
        address owner = _owners[tokenId];
        require(owner != address(0), "ERC721: owner query for nonexistent token");
        return owner;
    }

    /**
     * @dev See {IERC721Metadata-name}.
     */
    function name() public view virtual override returns (string memory) {
        return _name;
    }

    /**
     * @dev See {IERC721Metadata-symbol}.
     */
    function symbol() public view virtual override returns (string memory) {
        return _symbol;
    }

    /**
     * @dev See {IERC721Metadata-tokenURI}.
     */
    function tokenURI(uint256 tokenId) public view virtual override returns (string memory) {
        require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token");

        string memory baseURI = _baseURI();
        return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : "";
    }

    /**
     * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each
     * token will be the concatenation of the `baseURI` and the `tokenId`. Empty
     * by default, can be overridden in child contracts.
     */
    function _baseURI() internal view virtual returns (string memory) {
        return "";
    }

    /**
     * @dev See {IERC721-approve}.
     */
    function approve(address to, uint256 tokenId) public virtual override {
        address owner = ERC721.ownerOf(tokenId);
        require(to != owner, "ERC721: approval to current owner");

        require(
            _msgSender() == owner || isApprovedForAll(owner, _msgSender()),
            "ERC721: approve caller is not owner nor approved for all"
        );

        _approve(to, tokenId);
    }

    /**
     * @dev See {IERC721-getApproved}.
     */
    function getApproved(uint256 tokenId) public view virtual override returns (address) {
        require(_exists(tokenId), "ERC721: approved query for nonexistent token");

        return _tokenApprovals[tokenId];
    }

    /**
     * @dev See {IERC721-setApprovalForAll}.
     */
    function setApprovalForAll(address operator, bool approved) public virtual override {
        _setApprovalForAll(_msgSender(), operator, approved);
    }

    /**
     * @dev See {IERC721-isApprovedForAll}.
     */
    function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) {
        return _operatorApprovals[owner][operator];
    }

    /**
     * @dev See {IERC721-transferFrom}.
     */
    function transferFrom(
        address from,
        address to,
        uint256 tokenId
    ) public virtual override {
        //solhint-disable-next-line max-line-length
        require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved");

        _transfer(from, to, tokenId);
    }

    /**
     * @dev See {IERC721-safeTransferFrom}.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId
    ) public virtual override {
        safeTransferFrom(from, to, tokenId, "");
    }

    /**
     * @dev See {IERC721-safeTransferFrom}.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) public virtual override {
        require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved");
        _safeTransfer(from, to, tokenId, _data);
    }

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients
     * are aware of the ERC721 protocol to prevent tokens from being forever locked.
     *
     * `_data` is additional data, it has no specified format and it is sent in call to `to`.
     *
     * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g.
     * implement alternative mechanisms to perform token transfer, such as signature-based.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function _safeTransfer(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) internal virtual {
        _transfer(from, to, tokenId);
        require(_checkOnERC721Received(from, to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer");
    }

    /**
     * @dev Returns whether `tokenId` exists.
     *
     * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}.
     *
     * Tokens start existing when they are minted (`_mint`),
     * and stop existing when they are burned (`_burn`).
     */
    function _exists(uint256 tokenId) internal view virtual returns (bool) {
        return _owners[tokenId] != address(0);
    }

    /**
     * @dev Returns whether `spender` is allowed to manage `tokenId`.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) {
        require(_exists(tokenId), "ERC721: operator query for nonexistent token");
        address owner = ERC721.ownerOf(tokenId);
        return (spender == owner || isApprovedForAll(owner, spender) || getApproved(tokenId) == spender);
    }

    /**
     * @dev Safely mints `tokenId` and transfers it to `to`.
     *
     * Requirements:
     *
     * - `tokenId` must not exist.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function _safeMint(address to, uint256 tokenId) internal virtual {
        _safeMint(to, tokenId, "");
    }

    /**
     * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is
     * forwarded in {IERC721Receiver-onERC721Received} to contract recipients.
     */
    function _safeMint(
        address to,
        uint256 tokenId,
        bytes memory _data
    ) internal virtual {
        _mint(to, tokenId);
        require(
            _checkOnERC721Received(address(0), to, tokenId, _data),
            "ERC721: transfer to non ERC721Receiver implementer"
        );
    }

    /**
     * @dev Mints `tokenId` and transfers it to `to`.
     *
     * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible
     *
     * Requirements:
     *
     * - `tokenId` must not exist.
     * - `to` cannot be the zero address.
     *
     * Emits a {Transfer} event.
     */
    function _mint(address to, uint256 tokenId) internal virtual {
        require(to != address(0), "ERC721: mint to the zero address");
        require(!_exists(tokenId), "ERC721: token already minted");

        _beforeTokenTransfer(address(0), to, tokenId);

        _balances[to] += 1;
        _owners[tokenId] = to;

        emit Transfer(address(0), to, tokenId);

        _afterTokenTransfer(address(0), to, tokenId);
    }

    /**
     * @dev Destroys `tokenId`.
     * The approval is cleared when the token is burned.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     *
     * Emits a {Transfer} event.
     */
    function _burn(uint256 tokenId) internal virtual {
        address owner = ERC721.ownerOf(tokenId);

        _beforeTokenTransfer(owner, address(0), tokenId);

        // Clear approvals
        _approve(address(0), tokenId);

        _balances[owner] -= 1;
        delete _owners[tokenId];

        emit Transfer(owner, address(0), tokenId);

        _afterTokenTransfer(owner, address(0), tokenId);
    }

    /**
     * @dev Transfers `tokenId` from `from` to `to`.
     *  As opposed to {transferFrom}, this imposes no restrictions on msg.sender.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - `tokenId` token must be owned by `from`.
     *
     * Emits a {Transfer} event.
     */
    function _transfer(
        address from,
        address to,
        uint256 tokenId
    ) internal virtual {
        require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer from incorrect owner");
        require(to != address(0), "ERC721: transfer to the zero address");

        _beforeTokenTransfer(from, to, tokenId);

        // Clear approvals from the previous owner
        _approve(address(0), tokenId);

        _balances[from] -= 1;
        _balances[to] += 1;
        _owners[tokenId] = to;

        emit Transfer(from, to, tokenId);

        _afterTokenTransfer(from, to, tokenId);
    }

    /**
     * @dev Approve `to` to operate on `tokenId`
     *
     * Emits a {Approval} event.
     */
    function _approve(address to, uint256 tokenId) internal virtual {
        _tokenApprovals[tokenId] = to;
        emit Approval(ERC721.ownerOf(tokenId), to, tokenId);
    }

    /**
     * @dev Approve `operator` to operate on all of `owner` tokens
     *
     * Emits a {ApprovalForAll} event.
     */
    function _setApprovalForAll(
        address owner,
        address operator,
        bool approved
    ) internal virtual {
        require(owner != operator, "ERC721: approve to caller");
        _operatorApprovals[owner][operator] = approved;
        emit ApprovalForAll(owner, operator, approved);
    }

    /**
     * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address.
     * The call is not executed if the target address is not a contract.
     *
     * @param from address representing the previous owner of the given token ID
     * @param to target address that will receive the tokens
     * @param tokenId uint256 ID of the token to be transferred
     * @param _data bytes optional data to send along with the call
     * @return bool whether the call correctly returned the expected magic value
     */
    function _checkOnERC721Received(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) private returns (bool) {
        if (to.isContract()) {
            try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) {
                return retval == IERC721Receiver.onERC721Received.selector;
            } catch (bytes memory reason) {
                if (reason.length == 0) {
                    revert("ERC721: transfer to non ERC721Receiver implementer");
                } else {
                    assembly {
                        revert(add(32, reason), mload(reason))
                    }
                }
            }
        } else {
            return true;
        }
    }

    /**
     * @dev Hook that is called before any token transfer. This includes minting
     * and burning.
     *
     * Calling conditions:
     *
     * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be
     * transferred to `to`.
     * - When `from` is zero, `tokenId` will be minted for `to`.
     * - When `to` is zero, ``from``'s `tokenId` 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 tokenId
    ) internal virtual {}

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


// File @openzeppelin/contracts/token/ERC721/extensions/[email protected]

// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC721/extensions/IERC721Enumerable.sol)

pragma solidity ^0.8.0;

/**
 * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension
 * @dev See https://eips.ethereum.org/EIPS/eip-721
 */
interface IERC721Enumerable is IERC721 {
    /**
     * @dev Returns the total amount of tokens stored by the contract.
     */
    function totalSupply() external view returns (uint256);

    /**
     * @dev Returns a token ID owned by `owner` at a given `index` of its token list.
     * Use along with {balanceOf} to enumerate all of ``owner``'s tokens.
     */
    function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256);

    /**
     * @dev Returns a token ID at a given `index` of all the tokens stored by the contract.
     * Use along with {totalSupply} to enumerate all tokens.
     */
    function tokenByIndex(uint256 index) external view returns (uint256);
}


// File @openzeppelin/contracts/token/ERC721/extensions/[email protected]

// OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/ERC721Enumerable.sol)

pragma solidity ^0.8.0;


/**
 * @dev This implements an optional extension of {ERC721} defined in the EIP that adds
 * enumerability of all the token ids in the contract as well as all token ids owned by each
 * account.
 */
abstract contract ERC721Enumerable is ERC721, IERC721Enumerable {
    // Mapping from owner to list of owned token IDs
    mapping(address => mapping(uint256 => uint256)) private _ownedTokens;

    // Mapping from token ID to index of the owner tokens list
    mapping(uint256 => uint256) private _ownedTokensIndex;

    // Array with all token ids, used for enumeration
    uint256[] private _allTokens;

    // Mapping from token id to position in the allTokens array
    mapping(uint256 => uint256) private _allTokensIndex;

    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override(IERC165, ERC721) returns (bool) {
        return interfaceId == type(IERC721Enumerable).interfaceId || super.supportsInterface(interfaceId);
    }

    /**
     * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}.
     */
    function tokenOfOwnerByIndex(address owner, uint256 index) public view virtual override returns (uint256) {
        require(index < ERC721.balanceOf(owner), "ERC721Enumerable: owner index out of bounds");
        return _ownedTokens[owner][index];
    }

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

    /**
     * @dev See {IERC721Enumerable-tokenByIndex}.
     */
    function tokenByIndex(uint256 index) public view virtual override returns (uint256) {
        require(index < ERC721Enumerable.totalSupply(), "ERC721Enumerable: global index out of bounds");
        return _allTokens[index];
    }

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

        if (from == address(0)) {
            _addTokenToAllTokensEnumeration(tokenId);
        } else if (from != to) {
            _removeTokenFromOwnerEnumeration(from, tokenId);
        }
        if (to == address(0)) {
            _removeTokenFromAllTokensEnumeration(tokenId);
        } else if (to != from) {
            _addTokenToOwnerEnumeration(to, tokenId);
        }
    }

    /**
     * @dev Private function to add a token to this extension's ownership-tracking data structures.
     * @param to address representing the new owner of the given token ID
     * @param tokenId uint256 ID of the token to be added to the tokens list of the given address
     */
    function _addTokenToOwnerEnumeration(address to, uint256 tokenId) private {
        uint256 length = ERC721.balanceOf(to);
        _ownedTokens[to][length] = tokenId;
        _ownedTokensIndex[tokenId] = length;
    }

    /**
     * @dev Private function to add a token to this extension's token tracking data structures.
     * @param tokenId uint256 ID of the token to be added to the tokens list
     */
    function _addTokenToAllTokensEnumeration(uint256 tokenId) private {
        _allTokensIndex[tokenId] = _allTokens.length;
        _allTokens.push(tokenId);
    }

    /**
     * @dev Private function to remove a token from this extension's ownership-tracking data structures. Note that
     * while the token is not assigned a new owner, the `_ownedTokensIndex` mapping is _not_ updated: this allows for
     * gas optimizations e.g. when performing a transfer operation (avoiding double writes).
     * This has O(1) time complexity, but alters the order of the _ownedTokens array.
     * @param from address representing the previous owner of the given token ID
     * @param tokenId uint256 ID of the token to be removed from the tokens list of the given address
     */
    function _removeTokenFromOwnerEnumeration(address from, uint256 tokenId) private {
        // To prevent a gap in from's tokens array, we store the last token in the index of the token to delete, and
        // then delete the last slot (swap and pop).

        uint256 lastTokenIndex = ERC721.balanceOf(from) - 1;
        uint256 tokenIndex = _ownedTokensIndex[tokenId];

        // When the token to delete is the last token, the swap operation is unnecessary
        if (tokenIndex != lastTokenIndex) {
            uint256 lastTokenId = _ownedTokens[from][lastTokenIndex];

            _ownedTokens[from][tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token
            _ownedTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index
        }

        // This also deletes the contents at the last position of the array
        delete _ownedTokensIndex[tokenId];
        delete _ownedTokens[from][lastTokenIndex];
    }

    /**
     * @dev Private function to remove a token from this extension's token tracking data structures.
     * This has O(1) time complexity, but alters the order of the _allTokens array.
     * @param tokenId uint256 ID of the token to be removed from the tokens list
     */
    function _removeTokenFromAllTokensEnumeration(uint256 tokenId) private {
        // To prevent a gap in the tokens array, we store the last token in the index of the token to delete, and
        // then delete the last slot (swap and pop).

        uint256 lastTokenIndex = _allTokens.length - 1;
        uint256 tokenIndex = _allTokensIndex[tokenId];

        // When the token to delete is the last token, the swap operation is unnecessary. However, since this occurs so
        // rarely (when the last minted token is burnt) that we still do the swap here to avoid the gas cost of adding
        // an 'if' statement (like in _removeTokenFromOwnerEnumeration)
        uint256 lastTokenId = _allTokens[lastTokenIndex];

        _allTokens[tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token
        _allTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index

        // This also deletes the contents at the last position of the array
        delete _allTokensIndex[tokenId];
        _allTokens.pop();
    }
}


// File contracts/token/MyVaultV4.sol

// contracts/MyVaultNFT.sol
pragma solidity 0.8.11;


contract VaultNFTv4 is ERC721, ERC721Enumerable {

    string public uri;

    function _beforeTokenTransfer(address from, address to, uint256 tokenId) internal override(ERC721, ERC721Enumerable) {
        super._beforeTokenTransfer(from, to, tokenId);
    }

    function supportsInterface(bytes4 interfaceId) public view override(ERC721, ERC721Enumerable) returns (bool) {
        return super.supportsInterface(interfaceId);
    }

    constructor(string memory name, string memory symbol, string memory _uri)
        ERC721(name, symbol)
    {
        uri = _uri;
    }

    function tokenURI(uint256 tokenId) public override view returns (string memory) {
        require(_exists(tokenId));

        return uri;
    }
}


// File contracts/fixedInterestVaults/fixedVault.sol

pragma solidity 0.8.11;




contract fixedVault is ReentrancyGuard, VaultNFTv4 {
    using SafeERC20 for ERC20;

    /// @dev Constants used across the contract.
    uint256 constant TEN_THOUSAND = 10000;
    uint256 constant ONE_YEAR = 31556952;
    uint256 constant THOUSAND = 1000;

    IPriceSource public ethPriceSource;

    uint256 public _minimumCollateralPercentage;

    uint256 public vaultCount;
    
    uint256 public closingFee;
    uint256 public openingFee;

    uint256 public minDebt;
    uint256 public maxDebt;

    uint256 constant public tokenPeg = 1e8; // $1

    uint256 public iR;

    mapping(uint256 => uint256) public vaultCollateral;
    mapping(uint256 => uint256) public accumulatedVaultDebt;

    mapping(uint256 => uint256) public lastInterest;
    mapping(uint256 => uint256) public promoter;

    uint256 public adminFee; // 10% of the earned interest
    uint256 public refFee; // 90% of the earned interest

    uint256 public debtRatio;
    uint256 public gainRatio;

    ERC20 public collateral;
    ERC20 public mai;

    uint256 public decimalDifferenceRaisedToTen;

    uint256 public priceSourceDecimals;
    uint256 public totalBorrowed;

    mapping(address => uint256) public maticDebt;
    uint256 public maiDebt;

    address public stabilityPool;
    address public adm;
    address public ref;
    address public router;
    uint8 public version = 7;

    event CreateVault(uint256 vaultID, address creator);
    event DestroyVault(uint256 vaultID);
    event DepositCollateral(uint256 vaultID, uint256 amount);
    event WithdrawCollateral(uint256 vaultID, uint256 amount);
    event BorrowToken(uint256 vaultID, uint256 amount);
    event PayBackToken(uint256 vaultID, uint256 amount, uint256 closingFee);
    event LiquidateVault(
        uint256 vaultID,
        address owner,
        address buyer,
        uint256 debtRepaid,
        uint256 collateralLiquidated,
        uint256 closingFee
    );
    event BoughtRiskyDebtVault(uint256 riskyVault, uint256 newVault, address riskyVaultBuyer, uint256 amountPaidtoBuy);

    constructor(
        address ethPriceSourceAddress,
        uint256 minimumCollateralPercentage,
        string memory name,
        string memory symbol,
        address _mai,
        address _collateral,
        string memory baseURI
    ) VaultNFTv4(name, symbol, baseURI) {
        
        require(ethPriceSourceAddress != address(0));
        require(minimumCollateralPercentage != 0);

        closingFee = 50; // 0.5%
        openingFee = 0; // 0.0% 

        ethPriceSource = IPriceSource(ethPriceSourceAddress);
        stabilityPool = address(0);
        
        maxDebt = 500000 ether; //Keeping maxDebt at 500K * 10^(18)


        debtRatio = 2; // 1/2, pay back 50%
        gainRatio = 1100; // /10 so 1.1

        _minimumCollateralPercentage = minimumCollateralPercentage;

        collateral = ERC20(_collateral);
        mai = ERC20(_mai);
        priceSourceDecimals = 8;
        
        /*
            This works only for collaterals with decimals < 18
        */
        decimalDifferenceRaisedToTen =
            10**(mai.decimals() - collateral.decimals());
        
        adm = msg.sender;
        ref = msg.sender;
    }

    modifier onlyVaultOwner(uint256 vaultID) {
        require(_exists(vaultID), "Vault does not exist");
        require(ownerOf(vaultID) == msg.sender, "Vault is not owned by you");
        _;
    }

    modifier onlyRouter() {
        require(
            router == address(0) || msg.sender == router,
            "must use router"
        );
        _;
    }

    modifier vaultExists(uint256 vaultID) {
        require(_exists(vaultID), "Vault does not exist");
        _;
    }

    modifier frontExists(uint256 vaultID) {
        require(_exists(vaultID), "front end vault does not exist");
        require(promoter[vaultID] <= TEN_THOUSAND && promoter[vaultID] > 0, "Front end not added");
        _;
    }

    /// @notice Return the current debt available to borrow.
    /// @dev checks the outstanding balance of the borrowable asset within the contract.
    /// @return available balance of borrowable asset.
    function getDebtCeiling() public view returns (uint256) {
        return mai.balanceOf(address(this));
    }

    /// @param vaultID is the token id of the vault being checked.
    /// @notice Returns true if a vault exists
    /// @dev the erc721 spec allows users to burn/destroy their nft
    /// @return boolean if the vault exists
    function exists(uint256 vaultID) external view returns (bool) {
        return _exists(vaultID);
    }

    /// @notice Returns the total value locked in the vault, based on the oracle price.
    /// @return uint256 total value locked in vault
    function getTotalValueLocked() external view returns (uint256) {
        return ( getEthPriceSource() * decimalDifferenceRaisedToTen * collateral.balanceOf(address(this)) ) ; //extra 1e8, to get fraction in ui
                // 1e8 * 1eDelta 
    }

    /// @notice Return the fee charged when repaying a vault.
    /// @return uint256 is the fee charged to a vault when repaying.
    function getClosingFee() external view returns (uint256) {
        return closingFee;
    }

    /// @notice Return the peg maintained by the vault.
    /// @return uint256 is the value with 8 decimals used to calculate borrowable debt.
    function getTokenPriceSource() public view returns (uint256) {
        return tokenPeg;
    }

    /// @notice Return the collateral value
    /// @return uint256 is the value retrieved from the oracle used
    /// to calculate the available borrowable amounts.
    function getEthPriceSource() public view returns (uint256) {
        return ethPriceSource.latestAnswer();
    }

    /// @param vaultID is the token id of the vault being checked.
    /// @notice Returns the debt owned by the vault and the interest accrued over time.
    /// @return uint256 fee earned in the time between updates
    /// @return uint256 debt owed by the vault for further calculation.
    function _vaultDebtAndFee(uint256 vaultID)
        internal
        view
        returns (uint256, uint256)
    {
        uint256 currentTime = block.timestamp;
        uint256 debt = accumulatedVaultDebt[vaultID];
        uint256 fee = 0;
        if (lastInterest[vaultID] != 0 && iR > 0) {
            uint256 timeDelta = currentTime - lastInterest[vaultID];

            uint256 feeAccrued = (((iR * debt) * timeDelta) / ONE_YEAR) / TEN_THOUSAND;
            fee = feeAccrued;
            debt = feeAccrued + debt;
        }
        return (fee, debt);
    }

    /// @param vaultID is the token id of the vault being checked.
    /// @notice Returns the debt owned by the vault without tracking the interest
    /// @return uint256 debt owed by the vault for further calculation.
    function vaultDebt(uint256 vaultID) public view returns (uint256) {
        (, uint256 debt) = _vaultDebtAndFee(vaultID);
        return debt;
    }

    /// @param vaultID is the token id of the vault being checked.
    /// @notice Adds the interest charged to the vault over the previous time called.
    /// @return uint256 latest vault debt
    function updateVaultDebt(uint256 vaultID) public returns (uint256) {
        (uint256 fee, uint256 debt) = _vaultDebtAndFee(vaultID);

        maiDebt = maiDebt + fee;

        totalBorrowed = totalBorrowed + fee;

        if(iR > 0) {
            lastInterest[vaultID] = block.timestamp;
        }

        // we can just update the current vault debt here instead
        accumulatedVaultDebt[vaultID] = debt;

        return debt;
    }

    /// @param _collateral is the amount of collateral tokens to be valued.
    /// @param _debt is the debt owed by the vault.
    /// @notice Returns collateral value and debt based on the oracle prices
    /// @return uint256 coolateral value * 100. used to calculate the CDR
    /// @return uint256 debt value. Uses token price source to derive.
    function calculateCollateralProperties(uint256 _collateral, uint256 _debt)
        private
        view
        returns (uint256, uint256)
    {
        require(getEthPriceSource() != 0);
        require(getTokenPriceSource() != 0);

        uint256 collateralValue = _collateral *
            getEthPriceSource() *
            decimalDifferenceRaisedToTen;

        require(collateralValue >= _collateral);

        uint256 debtValue = _debt * getTokenPriceSource();

        require(debtValue >= _debt);

        uint256 collateralValueTimes100 = collateralValue * 100;
        require(collateralValueTimes100 > collateralValue);

        return (collateralValueTimes100, debtValue);
    }

    
    /// @param _collateral is the amount of collateral tokens held by vault.
    /// @param debt is the debt owed by the vault.
    /// @notice Calculates if the CDR is valid before taking a further action with a user
    /// @return boolean describing if the new CDR is valid.
    function isValidCollateral(uint256 _collateral, uint256 debt)
        public
        view
        returns (bool)
    {
        (
            uint256 collateralValueTimes100,
            uint256 debtValue
        ) = calculateCollateralProperties(_collateral, debt);

        uint256 collateralPercentage = collateralValueTimes100 / debtValue;
        return collateralPercentage >= _minimumCollateralPercentage;
    }

    

    /// @param fee is the amount of basis points (BP) to charge
    /// @param amount is the total value to calculate the BPs from
    /// @param promoFee is the fee charged by the front end
    /// @notice Returns fee to charge based on the collateral amount
    /// @return uint256 fee to charge the collateral.
    /// @dev fee can be called on web app to compare charges.
    function calculateFee(
        uint256 fee,
        uint256 amount,
        uint256 promoFee
    ) public view returns (uint256) {
        uint256 _fee;
        if (promoFee>0) {
            _fee = ((amount * fee * getTokenPriceSource() * promoFee) /
                (getEthPriceSource() * TEN_THOUSAND * TEN_THOUSAND));
        } else {
            _fee = (amount * fee * getTokenPriceSource()) /
                (getEthPriceSource() * TEN_THOUSAND);
        }
        return _fee / decimalDifferenceRaisedToTen;
    }

    /// @notice Creates a new ERC721 Vault NFT
    /// @return uint256 the token id of the vault created.
    function createVault() public returns (uint256) {
        uint256 id = vaultCount;
        vaultCount = vaultCount + 1;
        require(vaultCount >= id);
        _mint(msg.sender, id);
        emit CreateVault(id, msg.sender);
        return id;
    }

    /// @notice Destroys an ERC721 Vault NFT
    /// @param vaultID the vault ID to destroy
    /// @dev vault must not have any debt owed to be able to be destroyed.
    function destroyVault(uint256 vaultID)
        external
        onlyVaultOwner(vaultID)
        nonReentrant
    {
        require(vaultDebt(vaultID) == 0, "Vault has outstanding debt");

        if (vaultCollateral[vaultID] != 0) {
            // withdraw leftover collateral
            collateral.safeTransfer(ownerOf(vaultID), vaultCollateral[vaultID]);
        }

        _burn(vaultID);

        delete vaultCollateral[vaultID];
        delete accumulatedVaultDebt[vaultID];
        delete lastInterest[vaultID];
        emit DestroyVault(vaultID);
    }

    /// @param vaultID is the token id of the vault being interacted with.
    /// @param amount is the amount of collateral to deposit from msg.sender
    /// @notice Adds collateral to a specific vault by token id
    /// @dev Any address can deposit into a vault
    function depositCollateral(uint256 vaultID, uint256 amount)
        external
        vaultExists(vaultID)
        onlyRouter
    {
        uint256 newCollateral = vaultCollateral[vaultID] + (amount);

        require(newCollateral >= vaultCollateral[vaultID]);

        vaultCollateral[vaultID] = newCollateral;

        collateral.safeTransferFrom(msg.sender, address(this), amount);

        emit DepositCollateral(vaultID, amount);
    }

    /// @param vaultID is the token id of the vault being interacted with.
    /// @param amount is the amount of collateral to withdraw
    /// @notice withdraws collateral to a specific vault by token id
    /// @dev If there is debt, then it can only withdraw up to the min CDR.
    function withdrawCollateral(uint256 vaultID, uint256 amount)
        external
        onlyVaultOwner(vaultID)
        nonReentrant
    {
        require(
            vaultCollateral[vaultID] >= amount,
            "Vault does not have enough collateral"
        );

        uint256 newCollateral = vaultCollateral[vaultID] - amount;
        uint256 debt = updateVaultDebt(vaultID);

        if (debt != 0) {
            require(
                isValidCollateral(newCollateral, debt),
                "Withdrawal would put vault below minimum collateral percentage"
            );
        }

        vaultCollateral[vaultID] = newCollateral;
        collateral.safeTransfer(msg.sender, amount);

        emit WithdrawCollateral(vaultID, amount);
    }

    /// @param vaultID is the token id of the vault being interacted with.
    /// @param amount is the amount of borrowable asset to borrow
    /// @notice borrows asset based on the collateral held and the price of the collateral.
    /// @dev Borrowing is limited by the CDR of the vault
    /// If there's opening fee, it will be charged here.
    function borrowToken(
        uint256 vaultID,
        uint256 amount,
        uint256 _front
    ) external 
    frontExists(_front) 
    onlyVaultOwner(vaultID) 
    nonReentrant
    {

        require(amount > 0, "Must borrow non-zero amount");
        require(
            amount <= getDebtCeiling(),
            "borrowToken: Cannot mint over available supply."
        );

        uint256 newDebt = updateVaultDebt(vaultID) + amount;

        require(newDebt<=maxDebt, "borrowToken: max loan cap reached.");

        require(newDebt > vaultDebt(vaultID));


        require(
            isValidCollateral(vaultCollateral[vaultID], newDebt),
            "Borrow would put vault below minimum collateral percentage"
        );

        require(
            ((vaultDebt(vaultID)) + amount) >= minDebt,
            "Vault debt can't be under minDebt"
        );

        accumulatedVaultDebt[vaultID] = newDebt;

        uint256 _openingFee = calculateFee(openingFee, newDebt, promoter[_front]);

        vaultCollateral[vaultID] = vaultCollateral[vaultID] - (_openingFee);
        vaultCollateral[_front] = vaultCollateral[_front] + (_openingFee);
        
        // mai
        mai.safeTransfer(msg.sender, amount);
        totalBorrowed = totalBorrowed + (amount);

        emit BorrowToken(vaultID, amount);
    }

    function paybackTokenAll(
        uint256 vaultID,
        uint256 deadline,
        uint256 _front
    ) external frontExists(_front) vaultExists(vaultID) onlyRouter {
        require(
            deadline >= block.timestamp,
            "paybackTokenAll: deadline expired."
        );

        uint256 _amount = updateVaultDebt(vaultID);
        payBackToken(vaultID, _amount, _front);
    }

    /// @param vaultID is the token id of the vault being interacted with.
    /// @param amount is the amount of borrowable asset to repay
    /// @param _front is the front end that will get the opening
    /// @notice payback asset to close loan.
    /// @dev If there is debt, then it can only withdraw up to the min CDR.
    function payBackToken(
        uint256 vaultID,
        uint256 amount,
        uint256 _front
    ) public frontExists(_front) vaultExists(vaultID) onlyRouter {
        require(mai.balanceOf(msg.sender) >= amount, "Token balance too low");

        uint256 vaultDebtNow = updateVaultDebt(vaultID);

        require(
            vaultDebtNow >= amount,
            "Vault debt less than amount to pay back"
        );

        require(
            ((vaultDebtNow) - amount) >= minDebt || amount == (vaultDebtNow),
            "Vault debt can't be under minDebt"
        );

        uint256 _closingFee = calculateFee(
            closingFee,
            amount,
            promoter[_front]
        );

        accumulatedVaultDebt[vaultID] = vaultDebtNow - amount;

        vaultCollateral[vaultID] = vaultCollateral[vaultID] - _closingFee;
        vaultCollateral[_front] = vaultCollateral[_front] + _closingFee;

        totalBorrowed = totalBorrowed - amount;

        //mai
        mai.safeTransferFrom(msg.sender, address(this), amount);
        
        emit PayBackToken(vaultID, amount, _closingFee);
    }

    /// @notice withdraws liquidator earnings.
    /// @dev reverts if there's no collateral to withdraw.
    function getPaid() external nonReentrant {
        require(maticDebt[msg.sender] != 0, "Don't have anything for you.");
        uint256 amount = maticDebt[msg.sender];
        maticDebt[msg.sender] = 0;
        collateral.safeTransfer(msg.sender, amount);
    }

    /// @param pay is address of the person to getPaid
    /// @notice withdraws liquidator earnings.
    /// @dev reverts if there's no collateral to withdraw.
    function getPaid(address pay) external nonReentrant {
        require(maticDebt[pay] != 0, "Don't have anything for you.");
        uint256 amount = maticDebt[pay];
        maticDebt[pay] = 0;
        collateral.safeTransfer(pay, amount);
    }

    /// @param vaultID is the token id of the vault being interacted with.
    /// @notice Calculates cost to liquidate a vault
    /// @dev Can be used to calculate balance required to liquidate a vault. 
    function checkCost(uint256 vaultID) public view returns (uint256) {
        uint256 vaultDebtNow = vaultDebt(vaultID);

        if (
            vaultCollateral[vaultID] == 0 ||
            vaultDebtNow == 0 ||
            !checkLiquidation(vaultID)
        ) {
            return 0;
        }

        (,
            uint256 debtValue
        ) = calculateCollateralProperties(
                vaultCollateral[vaultID],
                vaultDebtNow
            );

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

        debtValue = debtValue / (10**priceSourceDecimals);

        uint256 halfDebt = debtValue / debtRatio; //debtRatio (2)

        if (halfDebt <= minDebt) {
            halfDebt = debtValue;
        }

        return (halfDebt);
    }

    /// @param vaultID is the token id of the vault being interacted with.
    /// @notice Calculates collateral to extract when liquidating a vault
    /// @dev Can be used to calculate earnings from liquidating a vault. 
    function checkExtract(uint256 vaultID) public view returns (uint256) {
        if (vaultCollateral[vaultID] == 0 || !checkLiquidation(vaultID)) {
            return 0;
        }
        uint256 vaultDebtNow = vaultDebt(vaultID);

        (, uint256 debtValue) = calculateCollateralProperties(
            vaultCollateral[vaultID],
            vaultDebtNow
        );

        uint256 halfDebt = debtValue / debtRatio; //debtRatio (2)

        if (halfDebt == 0) {
            return 0;
        }
        if ((halfDebt) / (10**priceSourceDecimals) <= minDebt) {
            // full liquidation if under the min debt.
            return (debtValue * ( gainRatio)) / (THOUSAND) / (getEthPriceSource()) / decimalDifferenceRaisedToTen;
        } else {
            return (halfDebt * (gainRatio)) / THOUSAND / (getEthPriceSource()) / decimalDifferenceRaisedToTen;
        }
    }

    /// @param vaultID is the token id of the vault being interacted with.
    /// @notice Calculates the collateral percentage of a vault.
    function checkCollateralPercentage(uint256 vaultID)
        public
        view
        vaultExists(vaultID)
        returns (uint256)
    {
        uint256 vaultDebtNow = vaultDebt(vaultID);

        if (vaultCollateral[vaultID] == 0 || vaultDebtNow == 0) {
            return 0;
        }
        (
            uint256 collateralValueTimes100,
            uint256 debtValue
        ) = calculateCollateralProperties(
                vaultCollateral[vaultID],
                vaultDebtNow
            );

        return collateralValueTimes100 / (debtValue);
    }

    /// @param vaultID is the token id of the vault being interacted with.
    /// @notice Calculates if a vault is liquidatable.
    /// @return bool if vault is liquidatable or not.
    function checkLiquidation(uint256 vaultID)
        public
        view
        vaultExists(vaultID)
        returns (bool)
    {
        uint256 vaultDebtNow = vaultDebt(vaultID);

        if (vaultCollateral[vaultID] == 0 || vaultDebtNow == 0) {
            return false;
        }

        (
            uint256 collateralValueTimes100,
            uint256 debtValue
        ) = calculateCollateralProperties(
                vaultCollateral[vaultID],
                vaultDebtNow
            );

        uint256 collateralPercentage = collateralValueTimes100 / (debtValue);
        if (collateralPercentage < _minimumCollateralPercentage) {
            return true;
        } else {
            return false;
        }
    }

    /// @param vaultID is the token id of the vault being interacted with.
    /// @notice Calculates if a vault is risky and can be bought.
    /// @return bool if vault is risky or not.
    function checkRiskyVault(uint256 vaultID) public view vaultExists(vaultID) returns (bool) {

        uint256 vaultDebtNow = vaultDebt(vaultID);

        if (vaultCollateral[vaultID] == 0 || vaultDebtNow == 0) {
            return false;
        }

        (
            uint256 collateralValueTimes100,
            uint256 debtValue
        ) = calculateCollateralProperties(
                vaultCollateral[vaultID],
                vaultDebtNow
            );

        uint256 collateralPercentage = collateralValueTimes100 / (debtValue);

        if ((collateralPercentage*10) <= gainRatio) {
            return true;
        } else {
            return false;
        }
    }


    /// @param vaultID is the token id of the vault being interacted with.
    /// @notice Pays back the part of the debt owed by the vault and removes a 
    /// comparable amount of collateral plus bonus
    /// @dev if vault CDR is under the bonus ratio,
    /// then it will only be able to be bought through buy risky.
    /// Amount to pay back is based on debtRatio variable.
    function liquidateVault(uint256 vaultID, uint256 _front)
        external
        frontExists(_front)
        vaultExists(vaultID)
    {
        require(
            stabilityPool == address(0) || msg.sender == stabilityPool,
            "liquidation is disabled for public"
        );

        uint256 vaultDebtNow = updateVaultDebt(vaultID);
        (
            uint256 collateralValueTimes100,
            uint256 debtValue
        ) = calculateCollateralProperties(
                vaultCollateral[vaultID],
                vaultDebtNow
            );
        require(vaultDebtNow != 0, "Vault debt is 0");

        uint256 collateralPercentage = collateralValueTimes100 / (debtValue);

        require(
            collateralPercentage < _minimumCollateralPercentage,
            "Vault is not below minimum collateral percentage"
        );

        require(collateralPercentage * 10 > gainRatio , "Vault is not above gain ratio");

        debtValue = debtValue / (10**priceSourceDecimals);

        uint256 halfDebt = debtValue / (debtRatio); //debtRatio (2)

        if (halfDebt <= minDebt) {
            halfDebt = debtValue;
        }

        require(
            mai.balanceOf(msg.sender) >= halfDebt,
            "Token balance too low to pay off outstanding debt"
        );

        totalBorrowed = totalBorrowed - (halfDebt);

        uint256 maticExtract = checkExtract(vaultID);

        accumulatedVaultDebt[vaultID] = vaultDebtNow - (halfDebt); // we paid back half of its debt.

        uint256 _closingFee = calculateFee(closingFee, halfDebt, promoter[_front]);
        vaultCollateral[vaultID] = vaultCollateral[vaultID] - (_closingFee);
        vaultCollateral[_front] = vaultCollateral[_front] + (_closingFee);

        
        // deduct the amount from the vault's collateral
        vaultCollateral[vaultID] = vaultCollateral[vaultID] - (maticExtract);

        // let liquidator take the collateral
        maticDebt[msg.sender] = maticDebt[msg.sender] + (maticExtract);

        //mai
        mai.safeTransferFrom(msg.sender, address(this), halfDebt);

        emit LiquidateVault(
            vaultID,
            ownerOf(vaultID),
            msg.sender,
            halfDebt,
            maticExtract,
            _closingFee
        );
    }

    /// @param vaultID is the token id of the vault being interacted with.
    /// @notice Pays back the debt owed to bring it back to min CDR. 
    /// And transfers ownership of it to the liquidator with a new vault
    /// @return uint256 new vault created with the debt and collateral.
    /// @dev this function can only be called if vault CDR is under the bonus ratio.
    /// address who calls it will now own the debt and the collateral.
    function buyRiskDebtVault(uint256 vaultID) external vaultExists(vaultID) returns(uint256) {
        require(
            stabilityPool == address(0) || msg.sender == stabilityPool,
            "buy risky is disabled for public"
        );        uint256 vaultDebtNow = updateVaultDebt(vaultID);

        require(vaultDebtNow != 0, "Vault debt is 0");

        (
            uint256 collateralValueTimes100,
            uint256 debtValue
        ) = calculateCollateralProperties(
                vaultCollateral[vaultID],
                vaultDebtNow
            );

        uint256 collateralPercentage = collateralValueTimes100 / (debtValue);
        require(
            (collateralPercentage*10) <= gainRatio,
            "Vault is not below risky collateral percentage" 
        );

        uint256 maiDebtTobePaid = (debtValue / (10**priceSourceDecimals)) - 
                                    (collateralValueTimes100 / 
                                    ( _minimumCollateralPercentage * (10**priceSourceDecimals)));

        //have enough MAI to bring vault to X CDR (presumably min)
        require(mai.balanceOf(msg.sender) >= maiDebtTobePaid, "Not enough mai to buy the risky vault");
        //mai
        mai.safeTransferFrom(msg.sender, address(this), maiDebtTobePaid);
        totalBorrowed = totalBorrowed - (maiDebtTobePaid);
        // newVault for msg.sender
        uint256 newVault = createVault();
        // updating vault collateral and debt details for the transfer of risky vault
        vaultCollateral[newVault] = vaultCollateral[vaultID];
        accumulatedVaultDebt[newVault] = vaultDebtNow - maiDebtTobePaid;
        lastInterest[newVault] = block.timestamp;
        // resetting the vaultID vault info
        delete vaultCollateral[vaultID];
        delete accumulatedVaultDebt[vaultID];
        // lastInterest of vaultID would be block.timestamp, not reseting its timestamp
        emit BoughtRiskyDebtVault(vaultID, newVault, msg.sender, maiDebtTobePaid);
        return newVault;

    }
}


// File contracts/fixedInterestVaults/fixedQiVault.sol

pragma solidity 0.8.11;


/// @title Fixed Interest Vault
/// @notice Single collateral lending manager with fixed rate interest.
contract stableQiVault is fixedVault, Ownable {

    /// @dev Used to restrain the fee. Can only be up to 5% of the amount.
    uint256 constant FEE_MAX = 500;
    
    string private oracleType;
    
    constructor(
        address ethPriceSourceAddress,
        uint256 minimumCollateralPercentage,
        string memory name,
        string memory symbol,
        address _mai,
        address _collateral,
        string memory baseURI
    )
        fixedVault(
            ethPriceSourceAddress,
            minimumCollateralPercentage,
            name,
            symbol,
            _mai,
            _collateral,
            baseURI
        )
    {
        createVault();
        addFrontEnd(0);
    }

    event UpdatedClosingFee(uint256 newFee);
    event UpdatedOpeningFee(uint256 newFee);
    event WithdrawInterest(uint256 earned);
    event UpdatedMinDebt(uint256 newMinDebt);
    event UpdatedMaxDebt(uint256 newMaxDebt);
    event UpdatedDebtRatio(uint256 _debtRatio);
    event UpdatedGainRatio(uint256 _gainRatio);
    event UpdatedEthPriceSource(address _ethPriceSourceAddress);
    
    event AddedFrontEnd(uint256 promoter);
    event RemovedFrontEnd(uint256 promoter);
    event UpdatedFrontEnd(uint256 promoter, uint256 newFee);

    event UpdatedFees(uint256 _adminFee, uint256 _refFee);

    event UpdatedMinCollateralRatio(uint256 newMinCollateralRatio);
    event UpdatedStabilityPool(address pool);
    event UpdatedInterestRate(uint256 interestRate);
    event BurnedToken(uint256 amount);
    event UpdatedTokenURI(string uri);

    event UpdatedAdmin(address newAdmin);
    event UpdatedRef(address newRef);
    event UpdatedOracleName(string oracle);

    modifier onlyOperators() {
        require(ref == msg.sender || adm == msg.sender || owner() == msg.sender, "Needs to be called by operators");
        _;
    }

    modifier onlyAdmin() {
        require(adm == msg.sender, "Needs to be called by admin");
        _;
    }

    /// @param _oracle name of the oracle used by the contract
    /// @notice sets the oracle name used by the contract. for visual purposes.
    function updateOracleName(string memory _oracle) external onlyOwner {
        oracleType = _oracle;
        emit UpdatedOracleName(_oracle);
    }

    /// @param _gainRatio sets the bonus earned from a liquidator
    /// @notice implements a setter for the bonus earned by a liquidator
    /// @dev fails if the bonus is less than 1
    function setGainRatio(uint256 _gainRatio) external onlyOwner {
        require(_gainRatio >= 1000, "gainRatio cannot be less than or equal to 1000");
        gainRatio = _gainRatio;
        emit UpdatedGainRatio(gainRatio);
    }

    /// @param _debtRatio sets the ratio of debt paid back by a liquidator
    /// @notice sets the ratio of the debt to be paid back
    /// @dev it divides the debt. 1/debtRatio.
    function setDebtRatio(uint256 _debtRatio) external onlyOwner {
        require(_debtRatio != 0, "Debt Ratio cannot be 0");
        debtRatio = _debtRatio;
        emit UpdatedDebtRatio(debtRatio);
    }

        /// @param ethPriceSourceAddress is the address that provides the price of the collateral
    /// @notice sets the address used as oracle
    /// @dev Oracle price feed is used in here. Interface's available in the at /interfaces/IPriceSourceAll.sol
    function changeEthPriceSource(address ethPriceSourceAddress)
        external
        onlyOwner
    {
        require(ethPriceSourceAddress != address(0), "Ethpricesource cannot be zero address" );
        ethPriceSource = IPriceSource(ethPriceSourceAddress);
        emit UpdatedEthPriceSource(ethPriceSourceAddress);
    }

    /// @param _pool is the address that can execute liquidations
    /// @notice sets the address used as stability pool for liquidations
    /// @dev if not set to address(0) then _pool is the only address able to liquidate
    function setStabilityPool(address _pool) external onlyOwner {
        require(_pool != address(0), "StabilityPool cannot be zero address" );
        stabilityPool = _pool;
        emit UpdatedStabilityPool(stabilityPool);
    }

    /// @param _admin is the ratio earned by the address that maintains the market
    /// @param _ref is the ratio earned by the address that provides the borrowable asset
    /// @notice sets the interest rate split between the admin and ref
    /// @dev if not set to address(0) then _pool is the only address able to liquidate
    function setFees(uint256 _admin, uint256 _ref) external onlyOwner {
        require((_admin+_ref)==TEN_THOUSAND, "setFees: must equal 10000.");
        adminFee=_admin;
        refFee=_ref;
        emit UpdatedFees(adminFee, refFee);
    }

    /// @param minimumCollateralPercentage is the CDR that limits the amount borrowed
    /// @notice sets the CDR
    /// @dev only callable by owner of the contract
    function setMinCollateralRatio(uint256 minimumCollateralPercentage)
        external
        onlyOwner
    {
        _minimumCollateralPercentage = minimumCollateralPercentage;
        emit UpdatedMinCollateralRatio(_minimumCollateralPercentage);
    }

    /// @param _minDebt is minimum debt able to be borrowed by a vault.
    /// @notice sets the minimum debt.
    /// @dev dust protection
    function setMinDebt(uint256 _minDebt)
        external
        onlyOwner
    {
        require(_minDebt >=0, "setMinDebt: must be over 0.");
        minDebt = _minDebt;
        emit UpdatedMinDebt(minDebt);
    }

    /// @param _maxDebt is maximum debt able to be borrowed by a vault.
    /// @notice sets the maximum debt.
    /// @dev whale and liquidity protection.
    function setMaxDebt(uint256 _maxDebt)
        external
        onlyOwner
    {
        require(_maxDebt >=0, "setMaxDebt: must be over 0.");
        maxDebt = _maxDebt;
        emit UpdatedMaxDebt(maxDebt);
    }

    /// @param _ref is the address that provides the borrowable asset
    /// @notice sets the address that earns interest for providing a borrowable asset
    /// @dev cannot be address(0)
    function setRef(address _ref) external onlyOwner {
        require(_ref != address(0), "Reference Address cannot be zero");
        ref = _ref;
        emit UpdatedRef(ref);
    }

    /// @param _adm is the ratio earned by the address that maintains the market
    /// @notice sets the address that earns interest for maintaining the market
    /// @dev cannot be address(0)
    function setAdmin(address _adm) external onlyOwner {
        require(_adm != address(0), "Admin Address cannot be zero");
        adm = _adm;
        emit UpdatedAdmin(adm);
    }

    /// @param _openingFee is the fee charged to a vault when borrowing.
    /// @notice sets opening fee.
    /// @dev can only be up to 5% (FEE_MAX) of the amount.
    function setOpeningFee(uint256 _openingFee) external onlyOwner {
        require(_openingFee >= 0 && _openingFee <= FEE_MAX, "setOpeningFee: cannot be more than 5%");
        openingFee = _openingFee;
        // emit event
        emit UpdatedOpeningFee(openingFee);
    }

    /// @param _closingFee is the fee charged to a vault when repaying.
    /// @notice sets closing fee.
    /// @dev can only be up to 5% (FEE_MAX) of the amount.
    function setClosingFee(uint256 _closingFee) external onlyOwner {
        require(_closingFee >= 0 && _closingFee <= FEE_MAX, "setClosingFee: cannot be more than 5%");
        closingFee = _closingFee;
        // emit event
        emit UpdatedClosingFee(closingFee);
    }

    /// @param _promoter is a front end for the contract
    /// @notice adds a front end to earn opening/closing fees from borrowing/repaying.
    /// @dev can only be up to 5% (FEE_MAX) of the amount.
    function addFrontEnd(uint256 _promoter) public onlyOwner {
        require(_exists(_promoter), "addFrontEnd: Vault does not exist");    
        require(promoter[_promoter] == 0, "addFrontEnd: already added");
        promoter[_promoter] = TEN_THOUSAND;
        emit AddedFrontEnd(_promoter);
    }

    /// @param _promoter is a front end for the contract
    /// @param cashback is the amount of fee not taken from a user.
    /// @notice updates the cashback variable for a given front end
    /// @dev can only be updated by the front end vault's owner
    function updateFrontEnd(uint256 _promoter, uint256 cashback) external frontExists(_promoter) onlyVaultOwner(_promoter) {
        require(cashback > 0 && cashback <= TEN_THOUSAND, "updateFrontEnd: cannot be 0");
        promoter[_promoter] = cashback;
        emit UpdatedFrontEnd(_promoter, cashback);
    }

    /// @param _promoter is a front end for the contract
    /// @notice removes the ability for a front end to earn fees
    function removeFrontEnd(uint256 _promoter) external frontExists(_promoter) onlyOwner {
        require(_exists(_promoter), "removeFrontEnd: Vault does not exist");
        require(promoter[_promoter] > 0, "removeFrontEnd: not a front end");
        promoter[_promoter] = 0;
        emit RemovedFrontEnd(_promoter);
    }

    /// @notice withdraws earned interest by vault.
    function withdrawInterest() external onlyOperators nonReentrant {

        uint256 adm_fee = maiDebt*adminFee / TEN_THOUSAND;

        // Transfer
        mai.transfer(ref, (maiDebt-adm_fee) ); // cheaper and equivalent.
        mai.transfer(adm, adm_fee);
        emit WithdrawInterest(maiDebt);
        maiDebt = 0;
    }

    /// @param _iR is the fixed interest charged by a vault
    /// @notice sets the interest charged by a vault.
    function setInterestRate(uint256 _iR) external onlyOwner {
        iR = _iR;
        emit UpdatedInterestRate(iR);
    }

    /// @param amountToken is the amount of borrowable asset that is removed from the debt ceiling.
    /// @notice removes debt ceiling from the vault.
    /// @dev returns the asset to the owner so it can be redeployed at a later time.
    function burn(uint256 amountToken) external onlyAdmin {
        // Burn
        require(amountToken < mai.balanceOf(address(this)), "burn: Balance not enough");
        mai.transfer(ref, amountToken);
        emit BurnedToken(amountToken);
    }

    /// @param _uri is the url for the nft metadata
    /// @notice updates the metadata
    /// @dev it currently uses an ipfs json
    function setTokenURI(string calldata _uri) external onlyOwner {
        uri = _uri;
        emit UpdatedTokenURI(uri);
    }

    function setRouter(address _router) external onlyOwner {
        router=_router;
    }
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"ethPriceSourceAddress","type":"address"},{"internalType":"uint256","name":"minimumCollateralPercentage","type":"uint256"},{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"symbol","type":"string"},{"internalType":"address","name":"_mai","type":"address"},{"internalType":"address","name":"_collateral","type":"address"},{"internalType":"string","name":"baseURI","type":"string"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"promoter","type":"uint256"}],"name":"AddedFrontEnd","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"vaultID","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"BorrowToken","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"riskyVault","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"newVault","type":"uint256"},{"indexed":false,"internalType":"address","name":"riskyVaultBuyer","type":"address"},{"indexed":false,"internalType":"uint256","name":"amountPaidtoBuy","type":"uint256"}],"name":"BoughtRiskyDebtVault","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"BurnedToken","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"vaultID","type":"uint256"},{"indexed":false,"internalType":"address","name":"creator","type":"address"}],"name":"CreateVault","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"vaultID","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"DepositCollateral","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"vaultID","type":"uint256"}],"name":"DestroyVault","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"vaultID","type":"uint256"},{"indexed":false,"internalType":"address","name":"owner","type":"address"},{"indexed":false,"internalType":"address","name":"buyer","type":"address"},{"indexed":false,"internalType":"uint256","name":"debtRepaid","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"collateralLiquidated","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"closingFee","type":"uint256"}],"name":"LiquidateVault","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":false,"internalType":"uint256","name":"vaultID","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"closingFee","type":"uint256"}],"name":"PayBackToken","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"promoter","type":"uint256"}],"name":"RemovedFrontEnd","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"newAdmin","type":"address"}],"name":"UpdatedAdmin","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"newFee","type":"uint256"}],"name":"UpdatedClosingFee","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"_debtRatio","type":"uint256"}],"name":"UpdatedDebtRatio","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"_ethPriceSourceAddress","type":"address"}],"name":"UpdatedEthPriceSource","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"_adminFee","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"_refFee","type":"uint256"}],"name":"UpdatedFees","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"promoter","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"newFee","type":"uint256"}],"name":"UpdatedFrontEnd","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"_gainRatio","type":"uint256"}],"name":"UpdatedGainRatio","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"interestRate","type":"uint256"}],"name":"UpdatedInterestRate","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"newMaxDebt","type":"uint256"}],"name":"UpdatedMaxDebt","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"newMinCollateralRatio","type":"uint256"}],"name":"UpdatedMinCollateralRatio","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"newMinDebt","type":"uint256"}],"name":"UpdatedMinDebt","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"newFee","type":"uint256"}],"name":"UpdatedOpeningFee","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"oracle","type":"string"}],"name":"UpdatedOracleName","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"newRef","type":"address"}],"name":"UpdatedRef","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"pool","type":"address"}],"name":"UpdatedStabilityPool","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"uri","type":"string"}],"name":"UpdatedTokenURI","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"vaultID","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"WithdrawCollateral","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"earned","type":"uint256"}],"name":"WithdrawInterest","type":"event"},{"inputs":[],"name":"_minimumCollateralPercentage","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"accumulatedVaultDebt","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_promoter","type":"uint256"}],"name":"addFrontEnd","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"adm","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"adminFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"vaultID","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"_front","type":"uint256"}],"name":"borrowToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amountToken","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"vaultID","type":"uint256"}],"name":"buyRiskDebtVault","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"fee","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"promoFee","type":"uint256"}],"name":"calculateFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"ethPriceSourceAddress","type":"address"}],"name":"changeEthPriceSource","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"vaultID","type":"uint256"}],"name":"checkCollateralPercentage","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"vaultID","type":"uint256"}],"name":"checkCost","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"vaultID","type":"uint256"}],"name":"checkExtract","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"vaultID","type":"uint256"}],"name":"checkLiquidation","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"vaultID","type":"uint256"}],"name":"checkRiskyVault","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"closingFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"collateral","outputs":[{"internalType":"contract ERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"createVault","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"debtRatio","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decimalDifferenceRaisedToTen","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"vaultID","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"depositCollateral","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"vaultID","type":"uint256"}],"name":"destroyVault","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"ethPriceSource","outputs":[{"internalType":"contract IPriceSource","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"vaultID","type":"uint256"}],"name":"exists","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"gainRatio","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getClosingFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getDebtCeiling","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getEthPriceSource","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"pay","type":"address"}],"name":"getPaid","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"getPaid","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"getTokenPriceSource","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getTotalValueLocked","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"iR","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_collateral","type":"uint256"},{"internalType":"uint256","name":"debt","type":"uint256"}],"name":"isValidCollateral","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"lastInterest","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"vaultID","type":"uint256"},{"internalType":"uint256","name":"_front","type":"uint256"}],"name":"liquidateVault","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"mai","outputs":[{"internalType":"contract ERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maiDebt","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"maticDebt","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxDebt","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"minDebt","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"openingFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"vaultID","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"_front","type":"uint256"}],"name":"payBackToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"vaultID","type":"uint256"},{"internalType":"uint256","name":"deadline","type":"uint256"},{"internalType":"uint256","name":"_front","type":"uint256"}],"name":"paybackTokenAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"priceSourceDecimals","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"promoter","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ref","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"refFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_promoter","type":"uint256"}],"name":"removeFrontEnd","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"router","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_adm","type":"address"}],"name":"setAdmin","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_closingFee","type":"uint256"}],"name":"setClosingFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_debtRatio","type":"uint256"}],"name":"setDebtRatio","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_admin","type":"uint256"},{"internalType":"uint256","name":"_ref","type":"uint256"}],"name":"setFees","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_gainRatio","type":"uint256"}],"name":"setGainRatio","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_iR","type":"uint256"}],"name":"setInterestRate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_maxDebt","type":"uint256"}],"name":"setMaxDebt","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"minimumCollateralPercentage","type":"uint256"}],"name":"setMinCollateralRatio","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_minDebt","type":"uint256"}],"name":"setMinDebt","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_openingFee","type":"uint256"}],"name":"setOpeningFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_ref","type":"address"}],"name":"setRef","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_router","type":"address"}],"name":"setRouter","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_pool","type":"address"}],"name":"setStabilityPool","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_uri","type":"string"}],"name":"setTokenURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"stabilityPool","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tokenPeg","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalBorrowed","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_promoter","type":"uint256"},{"internalType":"uint256","name":"cashback","type":"uint256"}],"name":"updateFrontEnd","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_oracle","type":"string"}],"name":"updateOracleName","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"vaultID","type":"uint256"}],"name":"updateVaultDebt","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"uri","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"vaultCollateral","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"vaultCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"vaultID","type":"uint256"}],"name":"vaultDebt","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"version","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"vaultID","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"withdrawCollateral","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawInterest","outputs":[],"stateMutability":"nonpayable","type":"function"}]

Deployed Bytecode

0x608060405234801561001057600080fd5b506004361061052f5760003560e01c80638da5cb5b116102af578063cc02ce2211610172578063e0df5b6f116100d9578063ece1373211610092578063ece1373214610b90578063f17336d714610ba3578063f1c91fa614610bac578063f2fde38b14610bb5578063f887ea4014610bc8578063ffc73da714610bdb57600080fd5b8063e0df5b6f14610b14578063e5f4dc9214610b27578063e985e9c514610b30578063eac989f814610b6c578063eb6a887d14610b74578063ec2e0ab314610b8757600080fd5b8063d0064c001161012b578063d0064c0014610a92578063d310f49b14610a9b578063d4a9b2c514610aae578063d73464cc14610ace578063d8dfeb4514610aee578063df98784614610b0157600080fd5b8063cc02ce2214610a46578063cd44db1b14610a59578063cdfedd6314610a63578063cea55f5714610a6e578063cf41d6f814610a77578063cf5f0f3c14610a7f57600080fd5b8063a57ff50311610216578063b3229a63116101cf578063b3229a63146109de578063b86f6aef146109f1578063b88d4fde14610a04578063c0d7865514610a17578063c71abb3214610a2a578063c87b56dd14610a3357600080fd5b8063a57ff50314610989578063a5e9883714610992578063a7c6a1001461099a578063a9c904b5146109a3578063b165ff0b146109b6578063b26025aa146109d657600080fd5b806397a41b8e1161026857806397a41b8e1461091f57806397ff37b91461093257806398c3f2db1461095257806398d721e01461095a578063a0be06f91461096d578063a22cb4651461097657600080fd5b80638da5cb5b146108c55780639035e4cb146108d657806393ee476a146108e957806394cd4ba7146108fc578063952cc86a1461090457806395d89b411461091757600080fd5b806342f371c6116103f75780636352211e1161035e57806370a082311161031757806370a0823114610868578063715018a61461087b578063728bbbb514610883578063767a7b051461088c57806385e290a31461089f57806386375994146108b257600080fd5b80636352211e146107f657806363b8817c146108095780636526941b1461081c578063687e8c171461082f5780636bc855cc14610842578063704b6c021461085557600080fd5b806356572ac0116103b057806356572ac01461078f578063570b2b84146107a25780635d12928b146107b55780635f84f302146107bd5780635ff09ac2146107d05780636234dc21146107e357600080fd5b806342f371c6146107145780634c19386c146107275780634f558e79146107305780634f6ccce7146107435780635357b9891461075657806354fd4d501461076957600080fd5b806321a78f681161049b5780633128ef27116104545780633128ef27146106a257806338536275146106b55780633db99177146106c857806340803854146106db57806342842e0e146106ee57806342966c681461070157600080fd5b806321a78f681461063757806323b872dd1461064a578063241a545a1461065d5780632df87573146106665780632f745c5914610686578063311f392a1461069957600080fd5b8063081812fc116104ed578063081812fc146105cc578063095ea7b3146105df5780630b78f9c0146105f257806311b4a8321461060557806318160ddd146106265780631c883e7b1461062e57600080fd5b806263750c1461053457806301ffc9a71461053e578063048c661d1461056657806304d7aef21461059157806306fdde03146105a457806307960532146105b9575b600080fd5b61053c610bee565b005b61055161054c366004615118565b610e2e565b60405190151581526020015b60405180910390f35b602354610579906001600160a01b031681565b6040516001600160a01b03909116815260200161055d565b602454610579906001600160a01b031681565b6105ac610e3f565b60405161055d919061518d565b61053c6105c73660046151bc565b610ed1565b6105796105da3660046151d7565b610fb4565b61053c6105ed3660046151f0565b61103c565b61053c61060036600461521a565b611152565b6106186106133660046151d7565b61121e565b60405190815260200161055d565b600954610618565b610618600f5481565b602554610579906001600160a01b031681565b61053c61065836600461523c565b6112d0565b61061860135481565b6106186106743660046151d7565b60156020526000908152604090205481565b6106186106943660046151f0565b611301565b610618601b5481565b61053c6106b0366004615278565b611397565b61053c6106c33660046151d7565b6116b8565b61053c6106d63660046151d7565b611717565b61053c6106e93660046151d7565b6117d6565b61053c6106fc36600461523c565b611900565b61053c61070f3660046151d7565b61191b565b600c54610579906001600160a01b031681565b61061860205481565b61055161073e3660046151d7565b611ad9565b6106186107513660046151d7565b611ae4565b610618610764366004615278565b611b77565b60265461077d90600160a01b900460ff1681565b60405160ff909116815260200161055d565b61061861079d3660046151d7565b611c28565b601d54610579906001600160a01b031681565b610618611d22565b61053c6107cb3660046151d7565b611d8b565b61053c6107de3660046151d7565b611dea565b61053c6107f13660046151d7565b611f82565b6105796108043660046151d7565b611fe1565b61053c6108173660046151bc565b612058565b61053c61082a3660046151d7565b61211c565b61055161083d36600461521a565b61217b565b61053c6108503660046151bc565b6121aa565b61053c6108633660046151bc565b612278565b6106186108763660046151bc565b612346565b61053c6123cd565b61061860105481565b61053c61089a36600461521a565b612403565b61053c6108ad3660046151d7565b612605565b61053c6108c03660046151d7565b612786565b6027546001600160a01b0316610579565b6106186108e43660046151d7565b612845565b6106186108f73660046151d7565b612bbc565b610618612c23565b61053c61091236600461521a565b612c95565b6105ac613179565b61053c61092d366004615278565b613188565b6106186109403660046151d7565b60166020526000908152604090205481565b610618613567565b61053c6109683660046151bc565b6135b1565b61061860185481565b61053c6109843660046152b2565b61368b565b610618601e5481565b600f54610618565b610618600e5481565b61053c6109b1366004615375565b61369a565b6106186109c43660046151bc565b60216020526000908152604090205481565b610618613707565b6105516109ec3660046151d7565b613793565b6105516109ff3660046151d7565b61384d565b61053c610a123660046153be565b6138f0565b61053c610a253660046151bc565b613928565b610618601f5481565b6105ac610a413660046151d7565b613974565b61053c610a5436600461521a565b613a1a565b6305f5e100610618565b6106186305f5e10081565b610618601a5481565b61053c613b8f565b61053c610a8d366004615278565b613c47565b61061860125481565b610618610aa93660046151d7565b613d95565b610618610abc3660046151d7565b60146020526000908152604090205481565b610618610adc3660046151d7565b60176020526000908152604090205481565b601c54610579906001600160a01b031681565b610618610b0f3660046151d7565b613da1565b61053c610b2236600461543a565b613e33565b610618600d5481565b610551610b3e3660046154ac565b6001600160a01b03918216600090815260066020908152604080832093909416825291909152205460ff1690565b6105ac613e9a565b61053c610b823660046151d7565b613f28565b61061860195481565b61053c610b9e36600461521a565b613fcd565b61061860115481565b61061860225481565b61053c610bc33660046151bc565b6140c8565b602654610579906001600160a01b031681565b61053c610be93660046151d7565b614163565b6025546001600160a01b0316331480610c1157506024546001600160a01b031633145b80610c35575033610c2a6027546001600160a01b031690565b6001600160a01b0316145b610c865760405162461bcd60e51b815260206004820152601f60248201527f4e6565647320746f2062652063616c6c6564206279206f70657261746f72730060448201526064015b60405180910390fd5b60026000541415610ca95760405162461bcd60e51b8152600401610c7d906154df565b6002600090815560185460225461271091610cc39161552c565b610ccd919061554b565b601d546025546022549293506001600160a01b039182169263a9059cbb9290911690610cfa90859061556d565b6040516001600160e01b031960e085901b1681526001600160a01b03909216600483015260248201526044016020604051808303816000875af1158015610d45573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d699190615584565b50601d546024805460405163a9059cbb60e01b81526001600160a01b0391821660048201529182018490529091169063a9059cbb906044016020604051808303816000875af1158015610dc0573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610de49190615584565b507fc73fb14682b9d51008c1faff296cc9b351c0597de5e25b4ffa158f47f8254e4c602254604051610e1891815260200190565b60405180910390a1506000602281905560019055565b6000610e39826142e3565b92915050565b606060018054610e4e906155a1565b80601f0160208091040260200160405190810160405280929190818152602001828054610e7a906155a1565b8015610ec75780601f10610e9c57610100808354040283529160200191610ec7565b820191906000526020600020905b815481529060010190602001808311610eaa57829003601f168201915b5050505050905090565b6027546001600160a01b03163314610efb5760405162461bcd60e51b8152600401610c7d906155d6565b6001600160a01b038116610f5f5760405162461bcd60e51b815260206004820152602560248201527f4574687072696365736f757263652063616e6e6f74206265207a65726f206164604482015264647265737360d81b6064820152608401610c7d565b600c80546001600160a01b0319166001600160a01b0383169081179091556040519081527fc525e5fed1508c998d3f14bf52f933df1dd16dbf48e2944c426be721e268b755906020015b60405180910390a150565b6000610fbf82614308565b6110205760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610c7d565b506000908152600560205260409020546001600160a01b031690565b600061104782611fe1565b9050806001600160a01b0316836001600160a01b031614156110b55760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610c7d565b336001600160a01b03821614806110d157506110d18133610b3e565b6111435760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610c7d565b61114d8383614325565b505050565b6027546001600160a01b0316331461117c5760405162461bcd60e51b8152600401610c7d906155d6565b612710611189828461560b565b146111d65760405162461bcd60e51b815260206004820152601a60248201527f736574466565733a206d75737420657175616c2031303030302e0000000000006044820152606401610c7d565b6018829055601981905560408051838152602081018390527f4d32f38862d5eb71edfefb7955873bd55920dc98159b6f53f8be62fbf0bebb4b91015b60405180910390a15050565b60008061122a83613d95565b6000848152601460205260409020549091501580611246575080155b8061125757506112558361384d565b155b156112655750600092915050565b60008381526014602052604081205461127e9083614393565b91505080611290575060009392505050565b601f5461129e90600a615707565b6112a8908261554b565b90506000601a54826112ba919061554b565b905060115481116112c85750805b949350505050565b6112da338261441c565b6112f65760405162461bcd60e51b8152600401610c7d90615713565b61114d838383614505565b600061130c83612346565b821061136e5760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b6064820152608401610c7d565b506001600160a01b03919091166000908152600760209081526040808320938352929052205490565b806113a181614308565b6113bd5760405162461bcd60e51b8152600401610c7d90615764565b600081815260176020526040902054612710108015906113ea575060008181526017602052604090205415155b6114065760405162461bcd60e51b8152600401610c7d9061579b565b8361141081614308565b61142c5760405162461bcd60e51b8152600401610c7d906157c8565b6026546001600160a01b0316158061144e57506026546001600160a01b031633145b61146a5760405162461bcd60e51b8152600401610c7d906157f6565b601d546040516370a0823160e01b815233600482015285916001600160a01b0316906370a0823190602401602060405180830381865afa1580156114b2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114d6919061581f565b101561151c5760405162461bcd60e51b8152602060048201526015602482015274546f6b656e2062616c616e636520746f6f206c6f7760581b6044820152606401610c7d565b600061152786612bbc565b9050848110156115895760405162461bcd60e51b815260206004820152602760248201527f5661756c742064656274206c657373207468616e20616d6f756e7420746f20706044820152666179206261636b60c81b6064820152608401610c7d565b601154611596868361556d565b1015806115a257508085145b6115be5760405162461bcd60e51b8152600401610c7d90615838565b600f5460008581526017602052604081205490916115dd918890611b77565b90506115e9868361556d565b60008881526015602090815260408083209390935560149052205461160f90829061556d565b60008881526014602052604080822092909255868152205461163290829061560b565b6000868152601460209081526040909120919091555461165390879061556d565b602055601d5461166e906001600160a01b03163330896146ac565b60408051888152602081018890529081018290527f31f96762af4051f367185773cc2f55bfb112a6c114b3407ded1f321a9eb199ac9060600160405180910390a150505050505050565b6027546001600160a01b031633146116e25760405162461bcd60e51b8152600401610c7d906155d6565b600d8190556040518181527fc0880963f3abc486dbb8b8f04ba4ce47c5b5cd3c59b6b7655f6011da0bf3365090602001610fa9565b6027546001600160a01b031633146117415760405162461bcd60e51b8152600401610c7d906155d6565b6101f48111156117a15760405162461bcd60e51b815260206004820152602560248201527f736574436c6f73696e674665653a2063616e6e6f74206265206d6f7265207468604482015264616e20352560d81b6064820152608401610c7d565b600f8190556040518181527fc1b83121984ef8e824a0babc08fc162077c0716a4dc307121f306e6dfb13806c90602001610fa9565b6027546001600160a01b031633146118005760405162461bcd60e51b8152600401610c7d906155d6565b61180981614308565b61185f5760405162461bcd60e51b815260206004820152602160248201527f61646446726f6e74456e643a205661756c7420646f6573206e6f7420657869736044820152601d60fa1b6064820152608401610c7d565b600081815260176020526040902054156118bb5760405162461bcd60e51b815260206004820152601a60248201527f61646446726f6e74456e643a20616c72656164792061646465640000000000006044820152606401610c7d565b600081815260176020526040908190206127109055517f9d7c7013bbd38c45562efb3f7031f740c1f8b8886dbbf421142755ed68339f4c90610fa99083815260200190565b61114d838383604051806020016040528060008152506138f0565b6024546001600160a01b031633146119755760405162461bcd60e51b815260206004820152601b60248201527f4e6565647320746f2062652063616c6c65642062792061646d696e00000000006044820152606401610c7d565b601d546040516370a0823160e01b81523060048201526001600160a01b03909116906370a0823190602401602060405180830381865afa1580156119bd573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906119e1919061581f565b8110611a2f5760405162461bcd60e51b815260206004820152601860248201527f6275726e3a2042616c616e6365206e6f7420656e6f75676800000000000000006044820152606401610c7d565b601d5460255460405163a9059cbb60e01b81526001600160a01b0391821660048201526024810184905291169063a9059cbb906044016020604051808303816000875af1158015611a84573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611aa89190615584565b506040518181527fb1f67ade07cda330ac167f4fcc4c01b94fdfc04d401cf85e487f0a5b8b98e75f90602001610fa9565b6000610e3982614308565b6000611aef60095490565b8210611b525760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b6064820152608401610c7d565b60098281548110611b6557611b65615879565b90600052602060002001549050919050565b6000808215611bd55761271080611b8c613567565b611b96919061552c565b611ba0919061552c565b836305f5e100611bb0888861552c565b611bba919061552c565b611bc4919061552c565b611bce919061554b565b9050611c10565b612710611be0613567565b611bea919061552c565b6305f5e100611bf9878761552c565b611c03919061552c565b611c0d919061554b565b90505b601e54611c1d908261554b565b9150505b9392505050565b6000818152601460205260408120541580611c495750611c478261384d565b155b15611c5657506000919050565b6000611c6183613d95565b60008481526014602052604081205491925090611c7e9083614393565b9150506000601a5482611c91919061554b565b905080611ca357506000949350505050565b601154601f54611cb490600a615707565b611cbe908361554b565b11611d0657601e54611cce613567565b6103e8601b5485611cdf919061552c565b611ce9919061554b565b611cf3919061554b565b611cfd919061554b565b95945050505050565b601e54611d11613567565b6103e8601b5484611cdf919061552c565b600e54600090611d3381600161560b565b600e819055811115611d4457600080fd5b611d4e3382614717565b604080518281523360208201527f8b6c1d05c678fa59695e26465a85918ce0fc63a88f74af53d1daef8f0a9c7804910160405180910390a1919050565b6027546001600160a01b03163314611db55760405162461bcd60e51b8152600401610c7d906155d6565b60138190556040518181527f323264e3ca065ee856fe1b11204d8896a783bccf148380ac5d7362eb5c4c36a890602001610fa9565b80611df481614308565b611e105760405162461bcd60e51b8152600401610c7d90615764565b60008181526017602052604090205461271010801590611e3d575060008181526017602052604090205415155b611e595760405162461bcd60e51b8152600401610c7d9061579b565b6027546001600160a01b03163314611e835760405162461bcd60e51b8152600401610c7d906155d6565b611e8c82614308565b611ee45760405162461bcd60e51b8152602060048201526024808201527f72656d6f766546726f6e74456e643a205661756c7420646f6573206e6f7420656044820152631e1a5cdd60e21b6064820152608401610c7d565b600082815260176020526040902054611f3f5760405162461bcd60e51b815260206004820152601f60248201527f72656d6f766546726f6e74456e643a206e6f7420612066726f6e7420656e64006044820152606401610c7d565b60008281526017602052604080822091909155517f9b9f950fb3755096dbbe8b1519e73f7c6d1a0507f514fced444919530c00d719906112129084815260200190565b6027546001600160a01b03163314611fac5760405162461bcd60e51b8152600401610c7d906155d6565b60118190556040518181527f4533506fbaba6b18743358b6e6fb9392e8cb21757487b68d232a01b140bbec0190602001610fa9565b6000818152600360205260408120546001600160a01b031680610e395760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610c7d565b6002600054141561207b5760405162461bcd60e51b8152600401610c7d906154df565b600260009081556001600160a01b0382168152602160205260409020546120e45760405162461bcd60e51b815260206004820152601c60248201527f446f6e2774206861766520616e797468696e6720666f7220796f752e000000006044820152606401610c7d565b6001600160a01b0380821660009081526021602052604081208054919055601c54909161211391168383614856565b50506001600055565b6027546001600160a01b031633146121465760405162461bcd60e51b8152600401610c7d906155d6565b60128190556040518181527f1dd8f42ee4750a70f6662d1383372472422592497256d506437e35b3fa914d9b90602001610fa9565b600080600061218a8585614393565b9092509050600061219b828461554b565b600d5411159695505050505050565b6027546001600160a01b031633146121d45760405162461bcd60e51b8152600401610c7d906155d6565b6001600160a01b03811661222a5760405162461bcd60e51b815260206004820181905260248201527f5265666572656e636520416464726573732063616e6e6f74206265207a65726f6044820152606401610c7d565b602580546001600160a01b0319166001600160a01b0383169081179091556040519081527f8ed6553fa1e634b0152cd3539c572bee8c662e446820646d73a0e1b47776af9390602001610fa9565b6027546001600160a01b031633146122a25760405162461bcd60e51b8152600401610c7d906155d6565b6001600160a01b0381166122f85760405162461bcd60e51b815260206004820152601c60248201527f41646d696e20416464726573732063616e6e6f74206265207a65726f000000006044820152606401610c7d565b602480546001600160a01b0319166001600160a01b0383169081179091556040519081527ffce52dd00c7849a7f2602c1f189745238d6a2db16fabf54376ce24cc2fa3d57f90602001610fa9565b60006001600160a01b0382166123b15760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610c7d565b506001600160a01b031660009081526004602052604090205490565b6027546001600160a01b031633146123f75760405162461bcd60e51b8152600401610c7d906155d6565b6124016000614886565b565b8161240d81614308565b6124295760405162461bcd60e51b8152600401610c7d906157c8565b3361243382611fe1565b6001600160a01b0316146124595760405162461bcd60e51b8152600401610c7d9061588f565b6002600054141561247c5760405162461bcd60e51b8152600401610c7d906154df565b60026000908155838152601460205260409020548211156124ed5760405162461bcd60e51b815260206004820152602560248201527f5661756c7420646f6573206e6f74206861766520656e6f75676820636f6c6c616044820152641d195c985b60da1b6064820152608401610c7d565b60008381526014602052604081205461250790849061556d565b9050600061251485612bbc565b9050801561259857612526828261217b565b6125985760405162461bcd60e51b815260206004820152603e60248201527f5769746864726177616c20776f756c6420707574207661756c742062656c6f7760448201527f206d696e696d756d20636f6c6c61746572616c2070657263656e7461676500006064820152608401610c7d565b6000858152601460205260409020829055601c546125c0906001600160a01b03163386614856565b60408051868152602081018690527f6c0ea3bea9dd66afa8f9d39d6eb93d833466190330813b42835efc650dca4cb9910160405180910390a150506001600055505050565b8061260f81614308565b61262b5760405162461bcd60e51b8152600401610c7d906157c8565b3361263582611fe1565b6001600160a01b03161461265b5760405162461bcd60e51b8152600401610c7d9061588f565b6002600054141561267e5760405162461bcd60e51b8152600401610c7d906154df565b600260005561268c82613d95565b156126d95760405162461bcd60e51b815260206004820152601a60248201527f5661756c7420686173206f75747374616e64696e6720646562740000000000006044820152606401610c7d565b6000828152601460205260409020541561271b5761271b6126f983611fe1565b600084815260146020526040902054601c546001600160a01b03169190614856565b612724826148d8565b600082815260146020908152604080832083905560158252808320839055601682528083209290925590518381527f4fe08624ee65b341c38ab9693d216b909d4ddee1bc8d3fe0fea14026c361b465910160405180910390a150506001600055565b6027546001600160a01b031633146127b05760405162461bcd60e51b8152600401610c7d906155d6565b6101f48111156128105760405162461bcd60e51b815260206004820152602560248201527f7365744f70656e696e674665653a2063616e6e6f74206265206d6f7265207468604482015264616e20352560d81b6064820152608401610c7d565b60108190556040518181527fc4ced91ca77dc4287a54d9bd9b15c69b3aba262e30eba7c93301c48606019c9490602001610fa9565b60008161285181614308565b61286d5760405162461bcd60e51b8152600401610c7d906157c8565b6023546001600160a01b0316158061288f57506023546001600160a01b031633145b6128db5760405162461bcd60e51b815260206004820181905260248201527f627579207269736b792069732064697361626c656420666f72207075626c69636044820152606401610c7d565b60006128e684612bbc565b9050806129275760405162461bcd60e51b815260206004820152600f60248201526e05661756c742064656274206973203608c1b6044820152606401610c7d565b60008481526014602052604081205481906129429084614393565b90925090506000612953828461554b565b601b5490915061296482600a61552c565b11156129c95760405162461bcd60e51b815260206004820152602e60248201527f5661756c74206973206e6f742062656c6f77207269736b7920636f6c6c61746560448201526d72616c2070657263656e7461676560901b6064820152608401610c7d565b6000601f54600a6129da9190615707565b600d546129e7919061552c565b6129f1908561554b565b601f546129ff90600a615707565b612a09908561554b565b612a13919061556d565b601d546040516370a0823160e01b815233600482015291925082916001600160a01b03909116906370a0823190602401602060405180830381865afa158015612a60573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612a84919061581f565b1015612ae05760405162461bcd60e51b815260206004820152602560248201527f4e6f7420656e6f756768206d616920746f2062757920746865207269736b79206044820152641d985d5b1d60da1b6064820152608401610c7d565b601d54612af8906001600160a01b03163330846146ac565b80602054612b06919061556d565b6020556000612b13611d22565b60008a815260146020526040808220548383529120559050612b35828761556d565b600082815260156020818152604080842094909455601681528383204290558c8352601481528383208390559081528282209190915581518b815290810183905233818301526060810184905290517fa4cf7276e26bb566de2c7540759e85736eb743807343fd27e6e679b20e8814419181900360800190a1965050505050505b50919050565b6000806000612bca8461497f565b9150915081602254612bdc919061560b565b602255602054612bed90839061560b565b60205560135415612c0a5760008481526016602052604090204290555b6000938452601560205260409093208390555090919050565b601d546040516370a0823160e01b81523060048201526000916001600160a01b0316906370a0823190602401602060405180830381865afa158015612c6c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612c90919061581f565b905090565b80612c9f81614308565b612cbb5760405162461bcd60e51b8152600401610c7d90615764565b60008181526017602052604090205461271010801590612ce8575060008181526017602052604090205415155b612d045760405162461bcd60e51b8152600401610c7d9061579b565b82612d0e81614308565b612d2a5760405162461bcd60e51b8152600401610c7d906157c8565b6023546001600160a01b03161580612d4c57506023546001600160a01b031633145b612da35760405162461bcd60e51b815260206004820152602260248201527f6c69717569646174696f6e2069732064697361626c656420666f72207075626c604482015261696360f01b6064820152608401610c7d565b6000612dae85612bbc565b600086815260146020526040812054919250908190612dcd9084614393565b915091508260001415612e145760405162461bcd60e51b815260206004820152600f60248201526e05661756c742064656274206973203608c1b6044820152606401610c7d565b6000612e20828461554b565b9050600d548110612e8c5760405162461bcd60e51b815260206004820152603060248201527f5661756c74206973206e6f742062656c6f77206d696e696d756d20636f6c6c6160448201526f746572616c2070657263656e7461676560801b6064820152608401610c7d565b601b54612e9a82600a61552c565b11612ee75760405162461bcd60e51b815260206004820152601d60248201527f5661756c74206973206e6f742061626f7665206761696e20726174696f0000006044820152606401610c7d565b601f54612ef590600a615707565b612eff908361554b565b91506000601a5483612f11919061554b565b90506011548111612f1f5750815b601d546040516370a0823160e01b815233600482015282916001600160a01b0316906370a0823190602401602060405180830381865afa158015612f67573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612f8b919061581f565b1015612ff35760405162461bcd60e51b815260206004820152603160248201527f546f6b656e2062616c616e636520746f6f206c6f7720746f20706179206f6666604482015270081bdd5d1cdd185b991a5b99c81919589d607a1b6064820152608401610c7d565b80602054613001919061556d565b602055600061300f8a611c28565b905061301b828761556d565b60008b815260156020908152604080832093909355600f548c8352601790915291812054909161304c918590611b77565b60008c81526014602052604090205490915061306990829061556d565b60008c815260146020526040808220929092558b8152205461308c90829061560b565b60008b815260146020526040808220929092558c815220546130af90839061556d565b60008c8152601460209081526040808320939093553382526021905220546130d890839061560b565b33600081815260216020526040902091909155601d54613105916001600160a01b039091169030866146ac565b7f4d151d3a98b83151d51917640c221f8c8e3c054422ea1b48dcbbd57e3f4210d58b6131308d611fe1565b604080519283526001600160a01b0390911660208301523390820152606081018590526080810184905260a0810183905260c00160405180910390a15050505050505050505050565b606060028054610e4e906155a1565b8061319281614308565b6131ae5760405162461bcd60e51b8152600401610c7d90615764565b600081815260176020526040902054612710108015906131db575060008181526017602052604090205415155b6131f75760405162461bcd60e51b8152600401610c7d9061579b565b8361320181614308565b61321d5760405162461bcd60e51b8152600401610c7d906157c8565b3361322782611fe1565b6001600160a01b03161461324d5760405162461bcd60e51b8152600401610c7d9061588f565b600260005414156132705760405162461bcd60e51b8152600401610c7d906154df565b6002600055836132c25760405162461bcd60e51b815260206004820152601b60248201527f4d75737420626f72726f77206e6f6e2d7a65726f20616d6f756e7400000000006044820152606401610c7d565b6132ca612c23565b8411156133315760405162461bcd60e51b815260206004820152602f60248201527f626f72726f77546f6b656e3a2043616e6e6f74206d696e74206f76657220617660448201526e30b4b630b136329039bab838363c9760891b6064820152608401610c7d565b60008461333d87612bbc565b613347919061560b565b90506012548111156133a65760405162461bcd60e51b815260206004820152602260248201527f626f72726f77546f6b656e3a206d6178206c6f616e2063617020726561636865604482015261321760f11b6064820152608401610c7d565b6133af86613d95565b81116133ba57600080fd5b6000868152601460205260409020546133d3908261217b565b6134455760405162461bcd60e51b815260206004820152603a60248201527f426f72726f7720776f756c6420707574207661756c742062656c6f77206d696e60448201527f696d756d20636f6c6c61746572616c2070657263656e746167650000000000006064820152608401610c7d565b6011548561345288613d95565b61345c919061560b565b101561347a5760405162461bcd60e51b8152600401610c7d90615838565b600086815260156020908152604080832084905560105487845260179092528220546134a891908490611b77565b6000888152601460205260409020549091506134c590829061556d565b6000888152601460205260408082209290925586815220546134e890829061560b565b600086815260146020526040902055601d5461350e906001600160a01b03163388614856565b8560205461351c919061560b565b6020908155604080518981529182018890527f3e08df88d8e28f37df9bf227d3142ac506a364403445661a60891a49ed6792ca910160405180910390a1505060016000555050505050565b600c54604080516350d25bcd60e01b815290516000926001600160a01b0316916350d25bcd9160048083019260209291908290030181865afa158015612c6c573d6000803e3d6000fd5b6027546001600160a01b031633146135db5760405162461bcd60e51b8152600401610c7d906155d6565b6001600160a01b03811661363d5760405162461bcd60e51b8152602060048201526024808201527f53746162696c697479506f6f6c2063616e6e6f74206265207a65726f206164646044820152637265737360e01b6064820152608401610c7d565b602380546001600160a01b0319166001600160a01b0383169081179091556040519081527f0644c4f539d7f787d2287c12d9425e80aefc8bdae99c70af4ca66fb0742577e890602001610fa9565b613696338383614a24565b5050565b6027546001600160a01b031633146136c45760405162461bcd60e51b8152600401610c7d906155d6565b80516136d7906028906020840190614ff5565b507f0d82453dd4ad18b5ce3db08c34a39340ad2bf15046a7d0e86aa075483eb121d881604051610fa9919061518d565b601c546040516370a0823160e01b81523060048201526000916001600160a01b0316906370a0823190602401602060405180830381865afa158015613750573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613774919061581f565b601e5461377f613567565b613789919061552c565b612c90919061552c565b60008161379f81614308565b6137bb5760405162461bcd60e51b8152600401610c7d906157c8565b60006137c684613d95565b60008581526014602052604090205490915015806137e2575080155b156137f1576000925050612bb6565b600084815260146020526040812054819061380c9084614393565b9092509050600061381d828461554b565b601b5490915061382e82600a61552c565b11613840576001955050505050612bb6565b6000955050505050612bb6565b60008161385981614308565b6138755760405162461bcd60e51b8152600401610c7d906157c8565b600061388084613d95565b600085815260146020526040902054909150158061389c575080155b156138ab576000925050612bb6565b60008481526014602052604081205481906138c69084614393565b909250905060006138d7828461554b565b9050600d54811015613840576001955050505050612bb6565b6138fa338361441c565b6139165760405162461bcd60e51b8152600401610c7d90615713565b61392284848484614af3565b50505050565b6027546001600160a01b031633146139525760405162461bcd60e51b8152600401610c7d906155d6565b602680546001600160a01b0319166001600160a01b0392909216919091179055565b606061397f82614308565b61398857600080fd5b600b8054613995906155a1565b80601f01602080910402602001604051908101604052809291908181526020018280546139c1906155a1565b8015613a0e5780601f106139e357610100808354040283529160200191613a0e565b820191906000526020600020905b8154815290600101906020018083116139f157829003601f168201915b50505050509050919050565b81613a2481614308565b613a405760405162461bcd60e51b8152600401610c7d90615764565b60008181526017602052604090205461271010801590613a6d575060008181526017602052604090205415155b613a895760405162461bcd60e51b8152600401610c7d9061579b565b82613a9381614308565b613aaf5760405162461bcd60e51b8152600401610c7d906157c8565b33613ab982611fe1565b6001600160a01b031614613adf5760405162461bcd60e51b8152600401610c7d9061588f565b600083118015613af157506127108311155b613b3d5760405162461bcd60e51b815260206004820152601b60248201527f75706461746546726f6e74456e643a2063616e6e6f74206265203000000000006044820152606401610c7d565b60008481526017602090815260409182902085905581518681529081018590527fbfdd5aecf44aa804bf11f070a41765d280dab82adbfd1c55e1e85b7d5b7920b491015b60405180910390a150505050565b60026000541415613bb25760405162461bcd60e51b8152600401610c7d906154df565b6002600090815533815260216020526040902054613c125760405162461bcd60e51b815260206004820152601c60248201527f446f6e2774206861766520616e797468696e6720666f7220796f752e000000006044820152606401610c7d565b3360008181526021602052604081208054919055601c549091613c3f916001600160a01b03169083614856565b506001600055565b80613c5181614308565b613c6d5760405162461bcd60e51b8152600401610c7d90615764565b60008181526017602052604090205461271010801590613c9a575060008181526017602052604090205415155b613cb65760405162461bcd60e51b8152600401610c7d9061579b565b83613cc081614308565b613cdc5760405162461bcd60e51b8152600401610c7d906157c8565b6026546001600160a01b03161580613cfe57506026546001600160a01b031633145b613d1a5760405162461bcd60e51b8152600401610c7d906157f6565b42841015613d755760405162461bcd60e51b815260206004820152602260248201527f7061796261636b546f6b656e416c6c3a20646561646c696e6520657870697265604482015261321760f11b6064820152608401610c7d565b6000613d8086612bbc565b9050613d8d868286611397565b505050505050565b6000806112c88361497f565b600081613dad81614308565b613dc95760405162461bcd60e51b8152600401610c7d906157c8565b6000613dd484613d95565b6000858152601460205260409020549091501580613df0575080155b15613dff576000925050612bb6565b6000848152601460205260408120548190613e1a9084614393565b9092509050613e29818361554b565b9695505050505050565b6027546001600160a01b03163314613e5d5760405162461bcd60e51b8152600401610c7d906155d6565b613e69600b8383615079565b507ffda45751019c07e08a3ebf7d73a4aea1a6c36bee12d87089096012911a756ab5600b60405161121291906158c6565b600b8054613ea7906155a1565b80601f0160208091040260200160405190810160405280929190818152602001828054613ed3906155a1565b8015613f205780601f10613ef557610100808354040283529160200191613f20565b820191906000526020600020905b815481529060010190602001808311613f0357829003601f168201915b505050505081565b6027546001600160a01b03163314613f525760405162461bcd60e51b8152600401610c7d906155d6565b80613f985760405162461bcd60e51b815260206004820152601660248201527504465627420526174696f2063616e6e6f7420626520360541b6044820152606401610c7d565b601a8190556040518181527f199e93b2fae27b389e2d09761871573f60121b8521be96b8f28c83bf94846ac290602001610fa9565b81613fd781614308565b613ff35760405162461bcd60e51b8152600401610c7d906157c8565b6026546001600160a01b0316158061401557506026546001600160a01b031633145b6140315760405162461bcd60e51b8152600401610c7d906157f6565b60008381526014602052604081205461404b90849061560b565b60008581526014602052604090205490915081101561406957600080fd5b6000848152601460205260409020819055601c54614092906001600160a01b03163330866146ac565b60408051858152602081018590527f52c4e7127ec34e8fc95f09ce2d06b4f00acca12ccbcdfb246ef67ee6aefe068d9101613b81565b6027546001600160a01b031633146140f25760405162461bcd60e51b8152600401610c7d906155d6565b6001600160a01b0381166141575760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610c7d565b61416081614886565b50565b6027546001600160a01b0316331461418d5760405162461bcd60e51b8152600401610c7d906155d6565b6103e88110156141f65760405162461bcd60e51b815260206004820152602e60248201527f6761696e526174696f2063616e6e6f74206265206c657373207468616e206f7260448201526d020657175616c20746f20313030360941b6064820152608401610c7d565b601b8190556040518181527fb6d384ad48d9c5c042c81fa0f88d8061ef87b38475101d6aa5f9ae5a8274a64e90602001610fa9565b6001600160a01b0383166142865761428181600980546000838152600a60205260408120829055600182018355919091527f6e1540171b6c0c960b71a7020d9f60077f6af931a8bbf590da0223dacf75c7af0155565b6142a9565b816001600160a01b0316836001600160a01b0316146142a9576142a98382614b26565b6001600160a01b0382166142c05761114d81614bc3565b826001600160a01b0316826001600160a01b03161461114d5761114d8282614c72565b60006001600160e01b0319821663780e9d6360e01b1480610e395750610e3982614cb6565b6000908152600360205260409020546001600160a01b0316151590565b600081815260056020526040902080546001600160a01b0319166001600160a01b038416908117909155819061435a82611fe1565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60008061439e613567565b6143a757600080fd5b6000601e546143b4613567565b6143be908761552c565b6143c8919061552c565b9050848110156143d757600080fd5b60006143e76305f5e1008661552c565b9050848110156143f657600080fd5b600061440383606461552c565b905082811161441157600080fd5b969095509350505050565b600061442782614308565b6144885760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610c7d565b600061449383611fe1565b9050806001600160a01b0316846001600160a01b031614806144da57506001600160a01b0380821660009081526006602090815260408083209388168352929052205460ff165b806112c85750836001600160a01b03166144f384610fb4565b6001600160a01b031614949350505050565b826001600160a01b031661451882611fe1565b6001600160a01b03161461457c5760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201526437bbb732b960d91b6064820152608401610c7d565b6001600160a01b0382166145de5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610c7d565b6145e9838383614d06565b6145f4600082614325565b6001600160a01b038316600090815260046020526040812080546001929061461d90849061556d565b90915550506001600160a01b038216600090815260046020526040812080546001929061464b90849061560b565b909155505060008181526003602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6040516001600160a01b03808516602483015283166044820152606481018290526139229085906323b872dd60e01b906084015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152614d11565b6001600160a01b03821661476d5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610c7d565b61477681614308565b156147c35760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610c7d565b6147cf60008383614d06565b6001600160a01b03821660009081526004602052604081208054600192906147f890849061560b565b909155505060008181526003602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6040516001600160a01b03831660248201526044810182905261114d90849063a9059cbb60e01b906064016146e0565b602780546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60006148e382611fe1565b90506148f181600084614d06565b6148fc600083614325565b6001600160a01b038116600090815260046020526040812080546001929061492590849061556d565b909155505060008281526003602052604080822080546001600160a01b0319169055518391906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b6000818152601560209081526040808320546016909252822054829142918390158015906149af57506000601354115b15614a1a576000868152601660205260408120546149cd908561556d565b905060006127106301e1855883866013546149e8919061552c565b6149f2919061552c565b6149fc919061554b565b614a06919061554b565b9250829050614a15848261560b565b935050505b9590945092505050565b816001600160a01b0316836001600160a01b03161415614a865760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610c7d565b6001600160a01b03838116600081815260066020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b614afe848484614505565b614b0a84848484614de3565b6139225760405162461bcd60e51b8152600401610c7d9061596e565b60006001614b3384612346565b614b3d919061556d565b600083815260086020526040902054909150808214614b90576001600160a01b03841660009081526007602090815260408083208584528252808320548484528184208190558352600890915290208190555b5060009182526008602090815260408084208490556001600160a01b039094168352600781528383209183525290812055565b600954600090614bd59060019061556d565b6000838152600a602052604081205460098054939450909284908110614bfd57614bfd615879565b906000526020600020015490508060098381548110614c1e57614c1e615879565b6000918252602080832090910192909255828152600a90915260408082208490558582528120556009805480614c5657614c566159c0565b6001900381819060005260206000200160009055905550505050565b6000614c7d83612346565b6001600160a01b039093166000908152600760209081526040808320868452825280832085905593825260089052919091209190915550565b60006001600160e01b031982166380ac58cd60e01b1480614ce757506001600160e01b03198216635b5e139f60e01b145b80610e3957506301ffc9a760e01b6001600160e01b0319831614610e39565b61114d83838361422b565b6000614d66826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316614ee19092919063ffffffff16565b80519091501561114d5780806020019051810190614d849190615584565b61114d5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610c7d565b60006001600160a01b0384163b15614ed657604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290614e279033908990889088906004016159d6565b6020604051808303816000875af1925050508015614e62575060408051601f3d908101601f19168201909252614e5f91810190615a09565b60015b614ebc573d808015614e90576040519150601f19603f3d011682016040523d82523d6000602084013e614e95565b606091505b508051614eb45760405162461bcd60e51b8152600401610c7d9061596e565b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490506112c8565b506001949350505050565b60606112c88484600085856001600160a01b0385163b614f435760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610c7d565b600080866001600160a01b03168587604051614f5f9190615a26565b60006040518083038185875af1925050503d8060008114614f9c576040519150601f19603f3d011682016040523d82523d6000602084013e614fa1565b606091505b5091509150614fb1828286614fbc565b979650505050505050565b60608315614fcb575081611c21565b825115614fdb5782518084602001fd5b8160405162461bcd60e51b8152600401610c7d919061518d565b828054615001906155a1565b90600052602060002090601f0160209004810192826150235760008555615069565b82601f1061503c57805160ff1916838001178555615069565b82800160010185558215615069579182015b8281111561506957825182559160200191906001019061504e565b506150759291506150ed565b5090565b828054615085906155a1565b90600052602060002090601f0160209004810192826150a75760008555615069565b82601f106150c05782800160ff19823516178555615069565b82800160010185558215615069579182015b828111156150695782358255916020019190600101906150d2565b5b8082111561507557600081556001016150ee565b6001600160e01b03198116811461416057600080fd5b60006020828403121561512a57600080fd5b8135611c2181615102565b60005b83811015615150578181015183820152602001615138565b838111156139225750506000910152565b60008151808452615179816020860160208601615135565b601f01601f19169290920160200192915050565b602081526000611c216020830184615161565b80356001600160a01b03811681146151b757600080fd5b919050565b6000602082840312156151ce57600080fd5b611c21826151a0565b6000602082840312156151e957600080fd5b5035919050565b6000806040838503121561520357600080fd5b61520c836151a0565b946020939093013593505050565b6000806040838503121561522d57600080fd5b50508035926020909101359150565b60008060006060848603121561525157600080fd5b61525a846151a0565b9250615268602085016151a0565b9150604084013590509250925092565b60008060006060848603121561528d57600080fd5b505081359360208301359350604090920135919050565b801515811461416057600080fd5b600080604083850312156152c557600080fd5b6152ce836151a0565b915060208301356152de816152a4565b809150509250929050565b634e487b7160e01b600052604160045260246000fd5b600067ffffffffffffffff8084111561531a5761531a6152e9565b604051601f8501601f19908116603f01168101908282118183101715615342576153426152e9565b8160405280935085815286868601111561535b57600080fd5b858560208301376000602087830101525050509392505050565b60006020828403121561538757600080fd5b813567ffffffffffffffff81111561539e57600080fd5b8201601f810184136153af57600080fd5b6112c8848235602084016152ff565b600080600080608085870312156153d457600080fd5b6153dd856151a0565b93506153eb602086016151a0565b925060408501359150606085013567ffffffffffffffff81111561540e57600080fd5b8501601f8101871361541f57600080fd5b61542e878235602084016152ff565b91505092959194509250565b6000806020838503121561544d57600080fd5b823567ffffffffffffffff8082111561546557600080fd5b818501915085601f83011261547957600080fd5b81358181111561548857600080fd5b86602082850101111561549a57600080fd5b60209290920196919550909350505050565b600080604083850312156154bf57600080fd5b6154c8836151a0565b91506154d6602084016151a0565b90509250929050565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b634e487b7160e01b600052601160045260246000fd5b600081600019048311821515161561554657615546615516565b500290565b60008261556857634e487b7160e01b600052601260045260246000fd5b500490565b60008282101561557f5761557f615516565b500390565b60006020828403121561559657600080fd5b8151611c21816152a4565b600181811c908216806155b557607f821691505b60208210811415612bb657634e487b7160e01b600052602260045260246000fd5b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b6000821982111561561e5761561e615516565b500190565b600181815b8085111561565e57816000190482111561564457615644615516565b8085161561565157918102915b93841c9390800290615628565b509250929050565b60008261567557506001610e39565b8161568257506000610e39565b816001811461569857600281146156a2576156be565b6001915050610e39565b60ff8411156156b3576156b3615516565b50506001821b610e39565b5060208310610133831016604e8410600b84101617156156e1575081810a610e39565b6156eb8383615623565b80600019048211156156ff576156ff615516565b029392505050565b6000611c218383615666565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b6020808252601e908201527f66726f6e7420656e64207661756c7420646f6573206e6f742065786973740000604082015260600190565b602080825260139082015272119c9bdb9d08195b99081b9bdd081859191959606a1b604082015260600190565b60208082526014908201527315985d5b1d08191bd95cc81b9bdd08195e1a5cdd60621b604082015260600190565b6020808252600f908201526e36bab9ba103ab9b2903937baba32b960891b604082015260600190565b60006020828403121561583157600080fd5b5051919050565b60208082526021908201527f5661756c7420646562742063616e277420626520756e646572206d696e4465626040820152601d60fa1b606082015260800190565b634e487b7160e01b600052603260045260246000fd5b60208082526019908201527f5661756c74206973206e6f74206f776e656420627920796f7500000000000000604082015260600190565b600060208083526000845481600182811c9150808316806158e857607f831692505b85831081141561590657634e487b7160e01b85526022600452602485fd5b87860183815260200181801561592357600181146159345761595f565b60ff1986168252878201965061595f565b60008b81526020902060005b8681101561595957815484820152908501908901615940565b83019750505b50949998505050505050505050565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b634e487b7160e01b600052603160045260246000fd5b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090613e2990830184615161565b600060208284031215615a1b57600080fd5b8151611c2181615102565b60008251615a38818460208701615135565b919091019291505056fea2646970667358221220ceb74a3747289d33a4e1a9a3a1463b20fe2088bf04aa8ce456e1191057a3865b64736f6c634300080b0033

Deployed Bytecode Sourcemap

98313:10746:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;107611:332;;;:::i;:::-;;69618:171;;;;;;:::i;:::-;;:::i;:::-;;;565:14:1;;558:22;540:41;;528:2;513:18;69618:171:0;;;;;;;;71474:28;;;;;-1:-1:-1;;;;;71474:28:0;;;;;;-1:-1:-1;;;;;756:32:1;;;738:51;;726:2;711:18;71474:28:0;592:203:1;71509:18:0;;;;;-1:-1:-1;;;;;71509:18:0;;;48828:100;;;:::i;:::-;;;;;;;:::i;101738:331::-;;;;;;:::i;:::-;;:::i;50388:221::-;;;;;;:::i;:::-;;:::i;49911:411::-;;;;;;:::i;:::-;;:::i;102880:244::-;;;;;;:::i;:::-;;:::i;88319:799::-;;;;;;:::i;:::-;;:::i;:::-;;;2918:25:1;;;2906:2;2891:18;88319:799:0;2772:177:1;63737:113:0;63825:10;:17;63737:113;;70591:25;;;;;;71534:18;;;;;-1:-1:-1;;;;;71534:18:0;;;51138:339;;;;;;:::i;:::-;;:::i;70770:17::-;;;;;;70853:55;;;;;;:::i;:::-;;;;;;;;;;;;;;63405:256;;;;;;:::i;:::-;;:::i;71174:24::-;;;;;;86148:1151;;;;;;:::i;:::-;;:::i;103302:258::-;;;;;;:::i;:::-;;:::i;105719:277::-;;;;;;:::i;:::-;;:::i;106210:303::-;;;;;;:::i;:::-;;:::i;51548:185::-;;;;;;:::i;:::-;;:::i;108439:250::-;;;;;;:::i;:::-;;:::i;70458:34::-;;;;;-1:-1:-1;;;;;70458:34:0;;;71355:28;;;;;;74803:104;;;;;;:::i;:::-;;:::i;63927:233::-;;;;;;:::i;:::-;;:::i;80205:533::-;;;;;;:::i;:::-;;:::i;71587:24::-;;;;;-1:-1:-1;;;71587:24:0;;;;;;;;;4009:4:1;3997:17;;;3979:36;;3967:2;3952:18;71587:24:0;3837:184:1;89352:896:0;;;;;;:::i;:::-;;:::i;71237:16::-;;;;;-1:-1:-1;;;;;71237:16:0;;;80854:259;;;:::i;108067:123::-;;;;;;:::i;:::-;;:::i;107225:325::-;;;;;;:::i;:::-;;:::i;103711:219::-;;;;;;:::i;:::-;;:::i;48522:239::-;;;;;;:::i;:::-;;:::i;87853:249::-;;;;;;:::i;:::-;;:::i;104097:219::-;;;;;;:::i;:::-;;:::i;79378:429::-;;;;;;:::i;:::-;;:::i;104517:183::-;;;;;;:::i;:::-;;:::i;104906:::-;;;;;;:::i;:::-;;:::i;48252:208::-;;;;;;:::i;:::-;;:::i;2678:103::-;;;:::i;70623:25::-;;;;;;82895:775;;;;;;:::i;:::-;;:::i;81291:578::-;;;;;;:::i;:::-;;:::i;105266:277::-;;;;;;:::i;:::-;;:::i;2027:87::-;2100:6;;-1:-1:-1;;;;;2100:6:0;2027:87;;96040:2071;;;;;;:::i;:::-;;:::i;77552:454::-;;;;;;:::i;:::-;;:::i;74455:110::-;;;:::i;93231:2349::-;;;;;;:::i;:::-;;:::i;48997:104::-;;;:::i;84031:1365::-;;;;;;:::i;:::-;;:::i;70917:47::-;;;;;;:::i;:::-;;;;;;;;;;;;;;75970:114;;;:::i;102306:231::-;;;;;;:::i;:::-;;:::i;71023:23::-;;;;;;50681:155;;;;;;:::i;:::-;;:::i;71262:43::-;;;;;;75450:93;75525:10;;75450:93;;70553:25;;;;;;100492:149;;;;;;:::i;:::-;;:::i;71392:44::-;;;;;;:::i;:::-;;;;;;;;;;;;;;75057:252;;;:::i;92130:702::-;;;;;;:::i;:::-;;:::i;91178:753::-;;;;;;:::i;:::-;;:::i;51804:328::-;;;;;;:::i;:::-;;:::i;108968:88::-;;;;;;:::i;:::-;;:::i;71314:34::-;;;;;;69943:147;;;;;;:::i;:::-;;:::i;106782:311::-;;;;;;:::i;:::-;;:::i;75697:95::-;70752:3;75697:95;;70717:38;;70752:3;70717:38;;71143:24;;;;;;87415:266;;;:::i;85404:405::-;;;;;;:::i;:::-;;:::i;70686:22::-;;;;;;77195:151;;;;;;:::i;:::-;;:::i;70796:50::-;;;;;;:::i;:::-;;;;;;;;;;;;;;70971:43;;;;;;:::i;:::-;;;;;;;;;;;;;;71207:23;;;;;-1:-1:-1;;;;;71207:23:0;;;90398:585;;;;;;:::i;:::-;;:::i;108833:127::-;;;;;;:::i;:::-;;:::i;70501:43::-;;;;;;50907:164;;;;;;:::i;:::-;-1:-1:-1;;;;;51028:25:0;;;51004:4;51028:25;;;:18;:25;;;;;;;;:35;;;;;;;;;;;;;;;50907:164;69403:17;;;:::i;101263:206::-;;;;;;:::i;:::-;;:::i;71083:21::-;;;;;;82147:454;;;;;;:::i;:::-;;:::i;70657:22::-;;;;;;71443;;;;;;2936:201;;;;;;:::i;:::-;;:::i;71559:21::-;;;;;-1:-1:-1;;;;;71559:21:0;;;100838:233;;;;;;:::i;:::-;;:::i;107611:332::-;100103:3;;-1:-1:-1;;;;;100103:3:0;100110:10;100103:17;;:38;;-1:-1:-1;100124:3:0;;-1:-1:-1;;;;;100124:3:0;100131:10;100124:17;100103:38;:63;;;-1:-1:-1;100156:10:0;100145:7;2100:6;;-1:-1:-1;;;;;2100:6:0;;2027:87;100145:7;-1:-1:-1;;;;;100145:21:0;;100103:63;100095:107;;;;-1:-1:-1;;;100095:107:0;;7652:2:1;100095:107:0;;;7634:21:1;7691:2;7671:18;;;7664:30;7730:33;7710:18;;;7703:61;7781:18;;100095:107:0;;;;;;;;;34388:1:::1;34986:7;;:19;;34978:63;;;;-1:-1:-1::0;;;34978:63:0::1;;;;;;;:::i;:::-;34388:1;35119:7;:18:::0;;;107714:8:::2;::::0;107706:7:::2;::::0;70362:5:::2;::::0;107706:16:::2;::::0;::::2;:::i;:::-;:31;;;;:::i;:::-;107771:3;::::0;107784::::2;::::0;107790:7:::2;::::0;107688:49;;-1:-1:-1;;;;;;107771:3:0;;::::2;::::0;:12:::2;::::0;107784:3;;::::2;::::0;107790:15:::2;::::0;107688:49;;107790:15:::2;:::i;:::-;107771:37;::::0;-1:-1:-1;;;;;;107771:37:0::2;::::0;;;;;;-1:-1:-1;;;;;9019:32:1;;;107771:37:0::2;::::0;::::2;9001:51:1::0;9068:18;;;9061:34;8974:18;;107771:37:0::2;;;;;;;;;;;;;;;;;;::::0;::::2;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1::0;107846:3:0::2;::::0;107859::::2;::::0;;107846:26:::2;::::0;-1:-1:-1;;;107846:26:0;;-1:-1:-1;;;;;107859:3:0;;::::2;107846:26;::::0;::::2;9001:51:1::0;9068:18;;;9061:34;;;107846:3:0;;::::2;::::0;:12:::2;::::0;8974:18:1;;107846:26:0::2;;;;;;;;;;;;;;;;;;::::0;::::2;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;107888:25;107905:7;;107888:25;;;;2918::1::0;;2906:2;2891:18;;2772:177;107888:25:0::2;;;;;;;;-1:-1:-1::0;107934:1:0::2;107924:7;:11:::0;;;34344:1:::1;35298:22:::0;;107611:332::o;69618:171::-;69721:4;69745:36;69769:11;69745:23;:36::i;:::-;69738:43;69618:171;-1:-1:-1;;69618:171:0:o;48828:100::-;48882:13;48915:5;48908:12;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;48828:100;:::o;101738:331::-;2100:6;;-1:-1:-1;;;;;2100:6:0;827:10;2247:23;2239:68;;;;-1:-1:-1;;;2239:68:0;;;;;;;:::i;:::-;-1:-1:-1;;;;;101860:35:0;::::1;101852:86;;;::::0;-1:-1:-1;;;101852:86:0;;10304:2:1;101852:86:0::1;::::0;::::1;10286:21:1::0;10343:2;10323:18;;;10316:30;10382:34;10362:18;;;10355:62;-1:-1:-1;;;10433:18:1;;;10426:35;10478:19;;101852:86:0::1;10102:401:1::0;101852:86:0::1;101949:14;:52:::0;;-1:-1:-1;;;;;;101949:52:0::1;-1:-1:-1::0;;;;;101949:52:0;::::1;::::0;;::::1;::::0;;;102017:44:::1;::::0;738:51:1;;;102017:44:0::1;::::0;726:2:1;711:18;102017:44:0::1;;;;;;;;101738:331:::0;:::o;50388:221::-;50464:7;50492:16;50500:7;50492;:16::i;:::-;50484:73;;;;-1:-1:-1;;;50484:73:0;;10710:2:1;50484:73:0;;;10692:21:1;10749:2;10729:18;;;10722:30;10788:34;10768:18;;;10761:62;-1:-1:-1;;;10839:18:1;;;10832:42;10891:19;;50484:73:0;10508:408:1;50484:73:0;-1:-1:-1;50577:24:0;;;;:15;:24;;;;;;-1:-1:-1;;;;;50577:24:0;;50388:221::o;49911:411::-;49992:13;50008:23;50023:7;50008:14;:23::i;:::-;49992:39;;50056:5;-1:-1:-1;;;;;50050:11:0;:2;-1:-1:-1;;;;;50050:11:0;;;50042:57;;;;-1:-1:-1;;;50042:57:0;;11123:2:1;50042:57:0;;;11105:21:1;11162:2;11142:18;;;11135:30;11201:34;11181:18;;;11174:62;-1:-1:-1;;;11252:18:1;;;11245:31;11293:19;;50042:57:0;10921:397:1;50042:57:0;827:10;-1:-1:-1;;;;;50134:21:0;;;;:62;;-1:-1:-1;50159:37:0;50176:5;827:10;50907:164;:::i;50159:37::-;50112:168;;;;-1:-1:-1;;;50112:168:0;;11525:2:1;50112:168:0;;;11507:21:1;11564:2;11544:18;;;11537:30;11603:34;11583:18;;;11576:62;11674:26;11654:18;;;11647:54;11718:19;;50112:168:0;11323:420:1;50112:168:0;50293:21;50302:2;50306:7;50293:8;:21::i;:::-;49981:341;49911:411;;:::o;102880:244::-;2100:6;;-1:-1:-1;;;;;2100:6:0;827:10;2247:23;2239:68;;;;-1:-1:-1;;;2239:68:0;;;;;;;:::i;:::-;70362:5:::1;102966:11;102973:4:::0;102966:6;:11:::1;:::i;:::-;102965:27;102957:66;;;::::0;-1:-1:-1;;;102957:66:0;;12083:2:1;102957:66:0::1;::::0;::::1;12065:21:1::0;12122:2;12102:18;;;12095:30;12161:28;12141:18;;;12134:56;12207:18;;102957:66:0::1;11881:350:1::0;102957:66:0::1;103034:8;:15:::0;;;103060:6:::1;:11:::0;;;103087:29:::1;::::0;;12410:25:1;;;12466:2;12451:18;;12444:34;;;103087:29:0::1;::::0;12383:18:1;103087:29:0::1;;;;;;;;102880:244:::0;;:::o;88319:799::-;88376:7;88396:20;88419:18;88429:7;88419:9;:18::i;:::-;88468:24;;;;:15;:24;;;;;;88396:41;;-1:-1:-1;88468:29:0;;:63;;-1:-1:-1;88514:17:0;;88468:63;:106;;;;88549:25;88566:7;88549:16;:25::i;:::-;88548:26;88468:106;88450:171;;;-1:-1:-1;88608:1:0;;88319:799;-1:-1:-1;;88319:799:0:o;88450:171::-;88649:17;88728:24;;;:15;:24;;;;;;88680:118;;88771:12;88680:29;:118::i;:::-;88633:165;-1:-1:-1;;88815:14:0;88811:55;;-1:-1:-1;88853:1:0;;88319:799;-1:-1:-1;;;88319:799:0:o;88811:55::-;88907:19;;88903:23;;:2;:23;:::i;:::-;88890:37;;:9;:37;:::i;:::-;88878:49;;88940:16;88971:9;;88959;:21;;;;:::i;:::-;88940:40;;89025:7;;89013:8;:19;89009:72;;-1:-1:-1;89060:9:0;89009:72;89101:8;88319:799;-1:-1:-1;;;;88319:799:0:o;51138:339::-;51333:41;827:10;51366:7;51333:18;:41::i;:::-;51325:103;;;;-1:-1:-1;;;51325:103:0;;;;;;;:::i;:::-;51441:28;51451:4;51457:2;51461:7;51441:9;:28::i;63405:256::-;63502:7;63538:23;63555:5;63538:16;:23::i;:::-;63530:5;:31;63522:87;;;;-1:-1:-1;;;63522:87:0;;14483:2:1;63522:87:0;;;14465:21:1;14522:2;14502:18;;;14495:30;14561:34;14541:18;;;14534:62;-1:-1:-1;;;14612:18:1;;;14605:41;14663:19;;63522:87:0;14281:407:1;63522:87:0;-1:-1:-1;;;;;;63627:19:0;;;;;;;;:12;:19;;;;;;;;:26;;;;;;;;;63405:256::o;86148:1151::-;86272:6;74067:16;74075:7;74067;:16::i;:::-;74059:59;;;;-1:-1:-1;;;74059:59:0;;;;;;;:::i;:::-;74137:17;;;;:8;:17;;;;;;70362:5;-1:-1:-1;74137:33:0;;;:58;;-1:-1:-1;74194:1:0;74174:17;;;:8;:17;;;;;;:21;;74137:58;74129:90;;;;-1:-1:-1;;;74129:90:0;;;;;;;:::i;:::-;86292:7:::1;73941:16;73949:7;73941;:16::i;:::-;73933:49;;;;-1:-1:-1::0;;;73933:49:0::1;;;;;;;:::i;:::-;73769:6:::2;::::0;-1:-1:-1;;;;;73769:6:0::2;:20:::0;;:44:::2;;-1:-1:-1::0;73807:6:0::2;::::0;-1:-1:-1;;;;;73807:6:0::2;73793:10;:20;73769:44;73747:109;;;;-1:-1:-1::0;;;73747:109:0::2;;;;;;;:::i;:::-;86331:3:::3;::::0;:25:::3;::::0;-1:-1:-1;;;86331:25:0;;86345:10:::3;86331:25;::::0;::::3;738:51:1::0;86360:6:0;;-1:-1:-1;;;;;86331:3:0::3;::::0;:13:::3;::::0;711:18:1;;86331:25:0::3;;;;;;;;;;;;;;;;;::::0;::::3;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:35;;86323:69;;;::::0;-1:-1:-1;;;86323:69:0;;16484:2:1;86323:69:0::3;::::0;::::3;16466:21:1::0;16523:2;16503:18;;;16496:30;-1:-1:-1;;;16542:18:1;;;16535:51;16603:18;;86323:69:0::3;16282:345:1::0;86323:69:0::3;86405:20;86428:24;86444:7;86428:15;:24::i;:::-;86405:47;;86503:6;86487:12;:22;;86465:111;;;::::0;-1:-1:-1;;;86465:111:0;;16834:2:1;86465:111:0::3;::::0;::::3;16816:21:1::0;16873:2;16853:18;;;16846:30;16912:34;16892:18;;;16885:62;-1:-1:-1;;;16963:18:1;;;16956:37;17010:19;;86465:111:0::3;16632:403:1::0;86465:111:0::3;86640:7;::::0;86612:23:::3;86629:6:::0;86613:12;86612:23:::3;:::i;:::-;86611:36;;:64;;;;86662:12;86651:6;:24;86611:64;86589:147;;;;-1:-1:-1::0;;;86589:147:0::3;;;;;;;:::i;:::-;86798:10;::::0;86749:19:::3;86844:16:::0;;;:8:::3;:16;::::0;;;;;86749:19;;86771:100:::3;::::0;86823:6;;86771:12:::3;:100::i;:::-;86749:122:::0;-1:-1:-1;86916:21:0::3;86931:6:::0;86916:12;:21:::3;:::i;:::-;86884:29;::::0;;;:20:::3;:29;::::0;;;;;;;:53;;;;86977:15:::3;:24:::0;;;;:38:::3;::::0;87004:11;;86977:38:::3;:::i;:::-;86950:24;::::0;;;:15:::3;:24;::::0;;;;;:65;;;;87052:23;;;;;:37:::3;::::0;87078:11;;87052:37:::3;:::i;:::-;87026:23;::::0;;;:15:::3;:23;::::0;;;;;;;:63;;;;87118:13;:22:::3;::::0;87134:6;;87118:22:::3;:::i;:::-;87102:13;:38:::0;87168:3:::3;::::0;:55:::3;::::0;-1:-1:-1;;;;;87168:3:0::3;87189:10;87209:4;87216:6:::0;87168:20:::3;:55::i;:::-;87249:42;::::0;;17644:25:1;;;17700:2;17685:18;;17678:34;;;17728:18;;;17721:34;;;87249:42:0::3;::::0;17632:2:1;17617:18;87249:42:0::3;;;;;;;86312:987;;74230:1:::1;86148:1151:::0;;;;:::o;103302:258::-;2100:6;;-1:-1:-1;;;;;2100:6:0;827:10;2247:23;2239:68;;;;-1:-1:-1;;;2239:68:0;;;;;;;:::i;:::-;103423:28:::1;:58:::0;;;103497:55:::1;::::0;2918:25:1;;;103497:55:0::1;::::0;2906:2:1;2891:18;103497:55:0::1;2772:177:1::0;105719:277:0;2100:6;;-1:-1:-1;;;;;2100:6:0;827:10;2247:23;2239:68;;;;-1:-1:-1;;;2239:68:0;;;;;;;:::i;:::-;98471:3:::1;105821:11;:22;;105793:92;;;::::0;-1:-1:-1;;;105793:92:0;;17968:2:1;105793:92:0::1;::::0;::::1;17950:21:1::0;18007:2;17987:18;;;17980:30;18046:34;18026:18;;;18019:62;-1:-1:-1;;;18097:18:1;;;18090:35;18142:19;;105793:92:0::1;17766:401:1::0;105793:92:0::1;105896:10;:24:::0;;;105959:29:::1;::::0;2918:25:1;;;105959:29:0::1;::::0;2906:2:1;2891:18;105959:29:0::1;2772:177:1::0;106210:303:0;2100:6;;-1:-1:-1;;;;;2100:6:0;827:10;2247:23;2239:68;;;;-1:-1:-1;;;2239:68:0;;;;;;;:::i;:::-;106286:18:::1;106294:9;106286:7;:18::i;:::-;106278:64;;;::::0;-1:-1:-1;;;106278:64:0;;18374:2:1;106278:64:0::1;::::0;::::1;18356:21:1::0;18413:2;18393:18;;;18386:30;18452:34;18432:18;;;18425:62;-1:-1:-1;;;18503:18:1;;;18496:31;18544:19;;106278:64:0::1;18172:397:1::0;106278:64:0::1;106365:19;::::0;;;:8:::1;:19;::::0;;;;;:24;106357:63:::1;;;::::0;-1:-1:-1;;;106357:63:0;;18776:2:1;106357:63:0::1;::::0;::::1;18758:21:1::0;18815:2;18795:18;;;18788:30;18854:28;18834:18;;;18827:56;18900:18;;106357:63:0::1;18574:350:1::0;106357:63:0::1;106431:19;::::0;;;:8:::1;:19;::::0;;;;;;70362:5:::1;106431:34:::0;;106481:24;::::1;::::0;::::1;::::0;106440:9;2918:25:1;;2906:2;2891:18;;2772:177;51548:185:0;51686:39;51703:4;51709:2;51713:7;51686:39;;;;;;;;;;;;:16;:39::i;108439:250::-;100270:3;;-1:-1:-1;;;;;100270:3:0;100277:10;100270:17;100262:57;;;;-1:-1:-1;;;100262:57:0;;19131:2:1;100262:57:0;;;19113:21:1;19170:2;19150:18;;;19143:30;19209:29;19189:18;;;19182:57;19256:18;;100262:57:0;18929:351:1;100262:57:0;108543:3:::1;::::0;:28:::1;::::0;-1:-1:-1;;;108543:28:0;;108565:4:::1;108543:28;::::0;::::1;738:51:1::0;-1:-1:-1;;;;;108543:3:0;;::::1;::::0;:13:::1;::::0;711:18:1;;108543:28:0::1;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;108529:11;:42;108521:79;;;::::0;-1:-1:-1;;;108521:79:0;;19487:2:1;108521:79:0::1;::::0;::::1;19469:21:1::0;19526:2;19506:18;;;19499:30;19565:26;19545:18;;;19538:54;19609:18;;108521:79:0::1;19285:348:1::0;108521:79:0::1;108611:3;::::0;108624::::1;::::0;108611:30:::1;::::0;-1:-1:-1;;;108611:30:0;;-1:-1:-1;;;;;108624:3:0;;::::1;108611:30;::::0;::::1;9001:51:1::0;9068:18;;;9061:34;;;108611:3:0;::::1;::::0;:12:::1;::::0;8974:18:1;;108611:30:0::1;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1::0;108657:24:0::1;::::0;2918:25:1;;;108657:24:0::1;::::0;2906:2:1;2891:18;108657:24:0::1;2772:177:1::0;74803:104:0;74859:4;74883:16;74891:7;74883;:16::i;63927:233::-;64002:7;64038:30;63825:10;:17;;63737:113;64038:30;64030:5;:38;64022:95;;;;-1:-1:-1;;;64022:95:0;;19840:2:1;64022:95:0;;;19822:21:1;19879:2;19859:18;;;19852:30;19918:34;19898:18;;;19891:62;-1:-1:-1;;;19969:18:1;;;19962:42;20021:19;;64022:95:0;19638:408:1;64022:95:0;64135:10;64146:5;64135:17;;;;;;;;:::i;:::-;;;;;;;;;64128:24;;63927:233;;;:::o;80205:533::-;80329:7;;80376:10;;80372:306;;70362:5;;80481:19;:17;:19::i;:::-;:34;;;;:::i;:::-;:49;;;;:::i;:::-;80451:8;70752:3;80412:12;80421:3;80412:6;:12;:::i;:::-;:36;;;;:::i;:::-;:47;;;;:::i;:::-;80411:120;;;;:::i;:::-;80403:129;;80372:306;;;70362:5;80631:19;:17;:19::i;:::-;:34;;;;:::i;:::-;70752:3;80573:12;80582:3;80573:6;:12;:::i;:::-;:36;;;;:::i;:::-;80572:94;;;;:::i;:::-;80565:101;;80372:306;80702:28;;80695:35;;:4;:35;:::i;:::-;80688:42;;;80205:533;;;;;;:::o;89352:896::-;89412:7;89436:24;;;:15;:24;;;;;;:29;;:59;;;89470:25;89487:7;89470:16;:25::i;:::-;89469:26;89436:59;89432:100;;;-1:-1:-1;89519:1:0;;89352:896;-1:-1:-1;89352:896:0:o;89432:100::-;89542:20;89565:18;89575:7;89565:9;:18::i;:::-;89599:17;89664:24;;;:15;:24;;;;;;89542:41;;-1:-1:-1;89599:17:0;89620:106;;89542:41;89620:29;:106::i;:::-;89596:130;;;89739:16;89770:9;;89758;:21;;;;:::i;:::-;89739:40;-1:-1:-1;89812:13:0;89808:54;;-1:-1:-1;89849:1:0;;89352:896;-1:-1:-1;;;;89352:896:0:o;89808:54::-;89918:7;;89894:19;;89890:23;;:2;:23;:::i;:::-;89876:38;;89877:8;89876:38;:::i;:::-;:49;89872:369;;90071:28;;90048:19;:17;:19::i;:::-;70445:4;90020:9;;90006;:24;;;;:::i;:::-;90005:39;;;;:::i;:::-;:63;;;;:::i;:::-;:94;;;;:::i;:::-;89998:101;89352:896;-1:-1:-1;;;;;89352:896:0:o;89872:369::-;90201:28;;90178:19;:17;:19::i;:::-;70445:4;90152:9;;90140:8;:22;;;;:::i;80854:259::-;80926:10;;80893:7;;80960:14;80926:10;80973:1;80960:14;:::i;:::-;80947:10;:27;;;80993:16;-1:-1:-1;80993:16:0;80985:25;;;;;;81021:21;81027:10;81039:2;81021:5;:21::i;:::-;81058:27;;;20357:25:1;;;81074:10:0;20413:2:1;20398:18;;20391:60;81058:27:0;;20330:18:1;81058:27:0;;;;;;;81103:2;80854:259;-1:-1:-1;80854:259:0:o;108067:123::-;2100:6;;-1:-1:-1;;;;;2100:6:0;827:10;2247:23;2239:68;;;;-1:-1:-1;;;2239:68:0;;;;;;;:::i;:::-;108135:2:::1;:8:::0;;;108159:23:::1;::::0;2918:25:1;;;108159:23:0::1;::::0;2906:2:1;2891:18;108159:23:0::1;2772:177:1::0;107225:325:0;107289:9;74067:16;74075:7;74067;:16::i;:::-;74059:59;;;;-1:-1:-1;;;74059:59:0;;;;;;;:::i;:::-;74137:17;;;;:8;:17;;;;;;70362:5;-1:-1:-1;74137:33:0;;;:58;;-1:-1:-1;74194:1:0;74174:17;;;:8;:17;;;;;;:21;;74137:58;74129:90;;;;-1:-1:-1;;;74129:90:0;;;;;;;:::i;:::-;2100:6;;-1:-1:-1;;;;;2100:6:0;827:10;2247:23:::1;2239:68;;;;-1:-1:-1::0;;;2239:68:0::1;;;;;;;:::i;:::-;107329:18:::2;107337:9;107329:7;:18::i;:::-;107321:67;;;::::0;-1:-1:-1;;;107321:67:0;;20664:2:1;107321:67:0::2;::::0;::::2;20646:21:1::0;20703:2;20683:18;;;20676:30;20742:34;20722:18;;;20715:62;-1:-1:-1;;;20793:18:1;;;20786:34;20837:19;;107321:67:0::2;20462:400:1::0;107321:67:0::2;107429:1;107407:19:::0;;;:8:::2;:19;::::0;;;;;107399:67:::2;;;::::0;-1:-1:-1;;;107399:67:0;;21069:2:1;107399:67:0::2;::::0;::::2;21051:21:1::0;21108:2;21088:18;;;21081:30;21147:33;21127:18;;;21120:61;21198:18;;107399:67:0::2;20867:355:1::0;107399:67:0::2;107499:1;107477:19:::0;;;:8:::2;:19;::::0;;;;;:23;;;;107516:26;::::2;::::0;::::2;::::0;107486:9;2918:25:1;;2906:2;2891:18;;2772:177;103711:219:0;2100:6;;-1:-1:-1;;;;;2100:6:0;827:10;2247:23;2239:68;;;;-1:-1:-1;;;2239:68:0;;;;;;;:::i;:::-;103865:7:::1;:18:::0;;;103899:23:::1;::::0;2918:25:1;;;103899:23:0::1;::::0;2906:2:1;2891:18;103899:23:0::1;2772:177:1::0;48522:239:0;48594:7;48630:16;;;:7;:16;;;;;;-1:-1:-1;;;;;48630:16:0;48665:19;48657:73;;;;-1:-1:-1;;;48657:73:0;;21785:2:1;48657:73:0;;;21767:21:1;21824:2;21804:18;;;21797:30;21863:34;21843:18;;;21836:62;-1:-1:-1;;;21914:18:1;;;21907:39;21963:19;;48657:73:0;21583:405:1;87853:249:0;34388:1;34986:7;;:19;;34978:63;;;;-1:-1:-1;;;34978:63:0;;;;;;;:::i;:::-;34388:1;35119:7;:18;;;-1:-1:-1;;;;;87924:14:0;::::1;::::0;;:9:::1;:14;::::0;;;;;87916:60:::1;;;::::0;-1:-1:-1;;;87916:60:0;;22195:2:1;87916:60:0::1;::::0;::::1;22177:21:1::0;22234:2;22214:18;;;22207:30;22273;22253:18;;;22246:58;22321:18;;87916:60:0::1;21993:352:1::0;87916:60:0::1;-1:-1:-1::0;;;;;88004:14:0;;::::1;87987;88004::::0;;;:9:::1;:14;::::0;;;;;;88029:18;;;88058:10:::1;::::0;88004:14;;88058:36:::1;::::0;:10:::1;88014:3:::0;88004:14;88058:23:::1;:36::i;:::-;-1:-1:-1::0;;34344:1:0;35298:7;:22;87853:249::o;104097:219::-;2100:6;;-1:-1:-1;;;;;2100:6:0;827:10;2247:23;2239:68;;;;-1:-1:-1;;;2239:68:0;;;;;;;:::i;:::-;104251:7:::1;:18:::0;;;104285:23:::1;::::0;2918:25:1;;;104285:23:0::1;::::0;2906:2:1;2891:18;104285:23:0::1;2772:177:1::0;79378:429:0;79488:4;79525:31;79571:17;79602:48;79632:11;79645:4;79602:29;:48::i;:::-;79510:140;;-1:-1:-1;79510:140:0;-1:-1:-1;79663:28:0;79694:35;79510:140;;79694:35;:::i;:::-;79771:28;;-1:-1:-1;79747:52:0;;79378:429;-1:-1:-1;;;;;;79378:429:0:o;104517:183::-;2100:6;;-1:-1:-1;;;;;2100:6:0;827:10;2247:23;2239:68;;;;-1:-1:-1;;;2239:68:0;;;;;;;:::i;:::-;-1:-1:-1;;;;;104585:18:0;::::1;104577:63;;;::::0;-1:-1:-1;;;104577:63:0;;22908:2:1;104577:63:0::1;::::0;::::1;22890:21:1::0;;;22927:18;;;22920:30;22986:34;22966:18;;;22959:62;23038:18;;104577:63:0::1;22706:356:1::0;104577:63:0::1;104651:3;:10:::0;;-1:-1:-1;;;;;;104651:10:0::1;-1:-1:-1::0;;;;;104651:10:0;::::1;::::0;;::::1;::::0;;;104677:15:::1;::::0;738:51:1;;;104677:15:0::1;::::0;726:2:1;711:18;104677:15:0::1;592:203:1::0;104906:183:0;2100:6;;-1:-1:-1;;;;;2100:6:0;827:10;2247:23;2239:68;;;;-1:-1:-1;;;2239:68:0;;;;;;;:::i;:::-;-1:-1:-1;;;;;104976:18:0;::::1;104968:59;;;::::0;-1:-1:-1;;;104968:59:0;;23269:2:1;104968:59:0::1;::::0;::::1;23251:21:1::0;23308:2;23288:18;;;23281:30;23347;23327:18;;;23320:58;23395:18;;104968:59:0::1;23067:352:1::0;104968:59:0::1;105038:3;:10:::0;;-1:-1:-1;;;;;;105038:10:0::1;-1:-1:-1::0;;;;;105038:10:0;::::1;::::0;;::::1;::::0;;;105064:17:::1;::::0;738:51:1;;;105064:17:0::1;::::0;726:2:1;711:18;105064:17:0::1;592:203:1::0;48252:208:0;48324:7;-1:-1:-1;;;;;48352:19:0;;48344:74;;;;-1:-1:-1;;;48344:74:0;;23626:2:1;48344:74:0;;;23608:21:1;23665:2;23645:18;;;23638:30;23704:34;23684:18;;;23677:62;-1:-1:-1;;;23755:18:1;;;23748:40;23805:19;;48344:74:0;23424:406:1;48344:74:0;-1:-1:-1;;;;;;48436:16:0;;;;;:9;:16;;;;;;;48252:208::o;2678:103::-;2100:6;;-1:-1:-1;;;;;2100:6:0;827:10;2247:23;2239:68;;;;-1:-1:-1;;;2239:68:0;;;;;;;:::i;:::-;2743:30:::1;2770:1;2743:18;:30::i;:::-;2678:103::o:0;82895:775::-;82998:7;73566:16;73574:7;73566;:16::i;:::-;73558:49;;;;-1:-1:-1;;;73558:49:0;;;;;;;:::i;:::-;73646:10;73626:16;73634:7;73626;:16::i;:::-;-1:-1:-1;;;;;73626:30:0;;73618:68;;;;-1:-1:-1;;;73618:68:0;;;;;;;:::i;:::-;34388:1:::1;34986:7;;:19;;34978:63;;;;-1:-1:-1::0;;;34978:63:0::1;;;;;;;:::i;:::-;34388:1;35119:7;:18:::0;;;83067:24;;;:15:::2;:24;::::0;;;;;:34;-1:-1:-1;83067:34:0::2;83045:121;;;::::0;-1:-1:-1;;;83045:121:0;;24391:2:1;83045:121:0::2;::::0;::::2;24373:21:1::0;24430:2;24410:18;;;24403:30;24469:34;24449:18;;;24442:62;-1:-1:-1;;;24520:18:1;;;24513:35;24565:19;;83045:121:0::2;24189:401:1::0;83045:121:0::2;83179:21;83203:24:::0;;;:15:::2;:24;::::0;;;;;:33:::2;::::0;83230:6;;83203:33:::2;:::i;:::-;83179:57;;83247:12;83262:24;83278:7;83262:15;:24::i;:::-;83247:39:::0;-1:-1:-1;83303:9:0;;83299:204:::2;;83355:38;83373:13;83388:4;83355:17;:38::i;:::-;83329:162;;;::::0;-1:-1:-1;;;83329:162:0;;24797:2:1;83329:162:0::2;::::0;::::2;24779:21:1::0;24836:2;24816:18;;;24809:30;24875:34;24855:18;;;24848:62;24946:32;24926:18;;;24919:60;24996:19;;83329:162:0::2;24595:426:1::0;83329:162:0::2;83515:24;::::0;;;:15:::2;:24;::::0;;;;:40;;;83566:10:::2;::::0;:43:::2;::::0;-1:-1:-1;;;;;83566:10:0::2;83590;83602:6:::0;83566:23:::2;:43::i;:::-;83627:35;::::0;;12410:25:1;;;12466:2;12451:18;;12444:34;;;83627:35:0::2;::::0;12383:18:1;83627:35:0::2;;;;;;;-1:-1:-1::0;;34344:1:0::1;35298:7;:22:::0;-1:-1:-1;;;82895:775:0:o;81291:578::-;81372:7;73566:16;73574:7;73566;:16::i;:::-;73558:49;;;;-1:-1:-1;;;73558:49:0;;;;;;;:::i;:::-;73646:10;73626:16;73634:7;73626;:16::i;:::-;-1:-1:-1;;;;;73626:30:0;;73618:68;;;;-1:-1:-1;;;73618:68:0;;;;;;;:::i;:::-;34388:1:::1;34986:7;;:19;;34978:63;;;;-1:-1:-1::0;;;34978:63:0::1;;;;;;;:::i;:::-;34388:1;35119:7;:18:::0;81427::::2;81437:7:::0;81427:9:::2;:18::i;:::-;:23:::0;81419:62:::2;;;::::0;-1:-1:-1;;;81419:62:0;;25228:2:1;81419:62:0::2;::::0;::::2;25210:21:1::0;25267:2;25247:18;;;25240:30;25306:28;25286:18;;;25279:56;25352:18;;81419:62:0::2;25026:350:1::0;81419:62:0::2;81498:24;::::0;;;:15:::2;:24;::::0;;;;;:29;81494:174:::2;;81589:67;81613:16;81621:7;81613;:16::i;:::-;81631:24;::::0;;;:15:::2;:24;::::0;;;;;81589:10:::2;::::0;-1:-1:-1;;;;;81589:10:0::2;::::0;:67;:23:::2;:67::i;:::-;81680:14;81686:7;81680:5;:14::i;:::-;81714:24;::::0;;;:15:::2;:24;::::0;;;;;;;81707:31;;;81756:20:::2;:29:::0;;;;;81749:36;;;81803:12:::2;:21:::0;;;;;81796:28;;;;81840:21;;2918:25:1;;;81840:21:0::2;::::0;2891:18:1;81840:21:0::2;;;;;;;-1:-1:-1::0;;34344:1:0::1;35298:7;:22:::0;81291:578::o;105266:277::-;2100:6;;-1:-1:-1;;;;;2100:6:0;827:10;2247:23;2239:68;;;;-1:-1:-1;;;2239:68:0;;;;;;;:::i;:::-;98471:3:::1;105368:11;:22;;105340:92;;;::::0;-1:-1:-1;;;105340:92:0;;25583:2:1;105340:92:0::1;::::0;::::1;25565:21:1::0;25622:2;25602:18;;;25595:30;25661:34;25641:18;;;25634:62;-1:-1:-1;;;25712:18:1;;;25705:35;25757:19;;105340:92:0::1;25381:401:1::0;105340:92:0::1;105443:10;:24:::0;;;105506:29:::1;::::0;2918:25:1;;;105506:29:0::1;::::0;2906:2:1;2891:18;105506:29:0::1;2772:177:1::0;96040:2071:0;96121:7;96104;73941:16;73949:7;73941;:16::i;:::-;73933:49;;;;-1:-1:-1;;;73933:49:0;;;;;;;:::i;:::-;96163:13:::1;::::0;-1:-1:-1;;;;;96163:13:0::1;:27:::0;;:58:::1;;-1:-1:-1::0;96208:13:0::1;::::0;-1:-1:-1;;;;;96208:13:0::1;96194:10;:27;96163:58;96141:140;;;::::0;-1:-1:-1;;;96141:140:0;;25989:2:1;96141:140:0::1;::::0;::::1;25971:21:1::0;;;26008:18;;;26001:30;26067:34;26047:18;;;26040:62;26119:18;;96141:140:0::1;25787:356:1::0;96141:140:0::1;96290:20;96313:24;96329:7;96313:15;:24::i;:::-;96290:47:::0;-1:-1:-1;96358:17:0;96350:45:::1;;;::::0;-1:-1:-1;;;96350:45:0;;26350:2:1;96350:45:0::1;::::0;::::1;26332:21:1::0;26389:2;26369:18;;;26362:30;-1:-1:-1;;;26408:18:1;;;26401:45;26463:18;;96350:45:0::1;26148:339:1::0;96350:45:0::1;96423:31;96548:24:::0;;;:15:::1;:24;::::0;;;;;96423:31;;96500:118:::1;::::0;96591:12;96500:29:::1;:118::i;:::-;96408:210:::0;;-1:-1:-1;96408:210:0;-1:-1:-1;96631:28:0::1;96662:37;96408:210:::0;;96662:37:::1;:::i;:::-;96761:9;::::0;96631:68;;-1:-1:-1;96733:23:0::1;96631:68:::0;96754:2:::1;96733:23;:::i;:::-;96732:38;;96710:135;;;::::0;-1:-1:-1;;;96710:135:0;;26694:2:1;96710:135:0::1;::::0;::::1;26676:21:1::0;26733:2;26713:18;;;26706:30;26772:34;26752:18;;;26745:62;-1:-1:-1;;;26823:18:1;;;26816:44;26877:19;;96710:135:0::1;26492:410:1::0;96710:135:0::1;96858:23;97067:19;;97063:2;:23;;;;:::i;:::-;97031:28;;:56;;;;:::i;:::-;96965:123;::::0;:23;:123:::1;:::i;:::-;96902:19;::::0;96898:23:::1;::::0;:2:::1;:23;:::i;:::-;96885:37;::::0;:9;:37:::1;:::i;:::-;96884:205;;;;:::i;:::-;97178:3;::::0;:25:::1;::::0;-1:-1:-1;;;97178:25:0;;97192:10:::1;97178:25;::::0;::::1;738:51:1::0;96858:231:0;;-1:-1:-1;96858:231:0;;-1:-1:-1;;;;;97178:3:0;;::::1;::::0;:13:::1;::::0;711:18:1;;97178:25:0::1;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:44;;97170:94;;;::::0;-1:-1:-1;;;97170:94:0;;27109:2:1;97170:94:0::1;::::0;::::1;27091:21:1::0;27148:2;27128:18;;;27121:30;27187:34;27167:18;;;27160:62;-1:-1:-1;;;27238:18:1;;;27231:35;27283:19;;97170:94:0::1;26907:401:1::0;97170:94:0::1;97290:3;::::0;:64:::1;::::0;-1:-1:-1;;;;;97290:3:0::1;97311:10;97331:4;97338:15:::0;97290:20:::1;:64::i;:::-;97398:15;97381:13;;:33;;;;:::i;:::-;97365:13;:49:::0;97461:16:::1;97480:13;:11;:13::i;:::-;97619:24;::::0;;;:15:::1;:24;::::0;;;;;;97591:25;;;;;:52;97461:32;-1:-1:-1;97687:30:0::1;97702:15:::0;97687:12;:30:::1;:::i;:::-;97654;::::0;;;:20:::1;:30;::::0;;;;;;;:63;;;;97728:12:::1;:22:::0;;;;;97753:15:::1;97728:40:::0;;97831:24;;;:15:::1;:24:::0;;;;;97824:31;;;97873:29;;;;;;97866:36;;;;98007:68;;27544:25:1;;;27585:18;;;27578:34;;;98047:10:0::1;27628:18:1::0;;;27621:60;27712:2;27697:18;;27690:34;;;98007:68:0;;::::1;::::0;;;;27531:3:1;98007:68:0;;::::1;98093:8:::0;-1:-1:-1;;;;;;73993:1:0::1;96040:2071:::0;;;;:::o;77552:454::-;77610:7;77631:11;77644:12;77660:25;77677:7;77660:16;:25::i;:::-;77630:55;;;;77718:3;77708:7;;:13;;;;:::i;:::-;77698:7;:23;77750:13;;:19;;77766:3;;77750:19;:::i;:::-;77734:13;:35;77785:2;;:6;77782:77;;77808:21;;;;:12;:21;;;;;77832:15;77808:39;;77782:77;77938:29;;;;:20;:29;;;;;;:36;;;-1:-1:-1;77970:4:0;;77552:454;-1:-1:-1;77552:454:0:o;74455:110::-;74529:3;;:28;;-1:-1:-1;;;74529:28:0;;74551:4;74529:28;;;738:51:1;74502:7:0;;-1:-1:-1;;;;;74529:3:0;;:13;;711:18:1;;74529:28:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;74522:35;;74455:110;:::o;93231:2349::-;93327:6;74067:16;74075:7;74067;:16::i;:::-;74059:59;;;;-1:-1:-1;;;74059:59:0;;;;;;;:::i;:::-;74137:17;;;;:8;:17;;;;;;70362:5;-1:-1:-1;74137:33:0;;;:58;;-1:-1:-1;74194:1:0;74174:17;;;:8;:17;;;;;;:21;;74137:58;74129:90;;;;-1:-1:-1;;;74129:90:0;;;;;;;:::i;:::-;93356:7:::1;73941:16;73949:7;73941;:16::i;:::-;73933:49;;;;-1:-1:-1::0;;;73933:49:0::1;;;;;;;:::i;:::-;93403:13:::2;::::0;-1:-1:-1;;;;;93403:13:0::2;:27:::0;;:58:::2;;-1:-1:-1::0;93448:13:0::2;::::0;-1:-1:-1;;;;;93448:13:0::2;93434:10;:27;93403:58;93381:142;;;::::0;-1:-1:-1;;;93381:142:0;;27937:2:1;93381:142:0::2;::::0;::::2;27919:21:1::0;27976:2;27956:18;;;27949:30;28015:34;27995:18;;;27988:62;-1:-1:-1;;;28066:18:1;;;28059:32;28108:19;;93381:142:0::2;27735:398:1::0;93381:142:0::2;93536:20;93559:24;93575:7;93559:15;:24::i;:::-;93609:31;93734:24:::0;;;:15:::2;:24;::::0;;;;;93536:47;;-1:-1:-1;93609:31:0;;;93686:118:::2;::::0;93536:47;93686:29:::2;:118::i;:::-;93594:210;;;;93823:12;93839:1;93823:17;;93815:45;;;::::0;-1:-1:-1;;;93815:45:0;;26350:2:1;93815:45:0::2;::::0;::::2;26332:21:1::0;26389:2;26369:18;;;26362:30;-1:-1:-1;;;26408:18:1;;;26401:45;26463:18;;93815:45:0::2;26148:339:1::0;93815:45:0::2;93873:28;93904:37;93931:9:::0;93904:23;:37:::2;:::i;:::-;93873:68;;93999:28;;93976:20;:51;93954:149;;;::::0;-1:-1:-1;;;93954:149:0;;28340:2:1;93954:149:0::2;::::0;::::2;28322:21:1::0;28379:2;28359:18;;;28352:30;28418:34;28398:18;;;28391:62;-1:-1:-1;;;28469:18:1;;;28462:46;28525:19;;93954:149:0::2;28138:412:1::0;93954:149:0::2;94152:9;::::0;94124:25:::2;:20:::0;94147:2:::2;94124:25;:::i;:::-;:37;94116:80;;;::::0;-1:-1:-1;;;94116:80:0;;28757:2:1;94116:80:0::2;::::0;::::2;28739:21:1::0;28796:2;28776:18;;;28769:30;28835:31;28815:18;;;28808:59;28884:18;;94116:80:0::2;28555:353:1::0;94116:80:0::2;94238:19;::::0;94234:23:::2;::::0;:2:::2;:23;:::i;:::-;94221:37;::::0;:9;:37:::2;:::i;:::-;94209:49;;94271:16;94303:9;;94290;:23;;;;:::i;:::-;94271:42;;94358:7;;94346:8;:19;94342:72;;-1:-1:-1::0;94393:9:0;94342:72:::2;94448:3;::::0;:25:::2;::::0;-1:-1:-1;;;94448:25:0;;94462:10:::2;94448:25;::::0;::::2;738:51:1::0;94477:8:0;;-1:-1:-1;;;;;94448:3:0::2;::::0;:13:::2;::::0;711:18:1;;94448:25:0::2;;;;;;;;;;;;;;;;;::::0;::::2;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;:37;;94426:136;;;::::0;-1:-1:-1;;;94426:136:0;;29115:2:1;94426:136:0::2;::::0;::::2;29097:21:1::0;29154:2;29134:18;;;29127:30;29193:34;29173:18;;;29166:62;-1:-1:-1;;;29244:18:1;;;29237:47;29301:19;;94426:136:0::2;28913:413:1::0;94426:136:0::2;94608:8;94591:13;;:26;;;;:::i;:::-;94575:13;:42:::0;94630:20:::2;94653:21;94666:7:::0;94653:12:::2;:21::i;:::-;94630:44:::0;-1:-1:-1;94719:25:0::2;94735:8:::0;94719:12;:25:::2;:::i;:::-;94687:29;::::0;;;:20:::2;:29;::::0;;;;;;;:57;;;;94826:10:::2;::::0;94848:16;;;:8:::2;:16:::0;;;;;;;94687:29;;94813:52:::2;::::0;94838:8;;94813:12:::2;:52::i;:::-;94903:24;::::0;;;:15:::2;:24;::::0;;;;;94791:74;;-1:-1:-1;94903:40:0::2;::::0;94791:74;;94903:40:::2;:::i;:::-;94876:24;::::0;;;:15:::2;:24;::::0;;;;;:67;;;;94980:23;;;;;:39:::2;::::0;95007:11;;94980:39:::2;:::i;:::-;94954:23;::::0;;;:15:::2;:23;::::0;;;;;:65;;;;95127:24;;;;;:41:::2;::::0;95155:12;;95127:41:::2;:::i;:::-;95100:24;::::0;;;:15:::2;:24;::::0;;;;;;;:68;;;;95262:10:::2;95252:21:::0;;:9:::2;:21:::0;;;;:38:::2;::::0;95277:12;;95252:38:::2;:::i;:::-;95238:10;95228:21;::::0;;;:9:::2;:21;::::0;;;;:62;;;;95318:3:::2;::::0;:57:::2;::::0;-1:-1:-1;;;;;95318:3:0;;::::2;::::0;95359:4:::2;95366:8:::0;95318:20:::2;:57::i;:::-;95393:179;95422:7;95444:16;95452:7;95444;:16::i;:::-;95393:179;::::0;;29618:25:1;;;-1:-1:-1;;;;;29717:15:1;;;29712:2;29697:18;;29690:43;95475:10:0::2;29749:18:1::0;;;29742:43;29816:2;29801:18;;29794:34;;;29859:3;29844:19;;29837:35;;;29670:3;29888:19;;29881:35;;;29605:3;29590:19;95393:179:0::2;;;;;;;93370:2210;;;;;;;74230:1:::1;93231:2349:::0;;;:::o;48997:104::-;49053:13;49086:7;49079:14;;;;;:::i;84031:1365::-;84162:6;74067:16;74075:7;74067;:16::i;:::-;74059:59;;;;-1:-1:-1;;;74059:59:0;;;;;;;:::i;:::-;74137:17;;;;:8;:17;;;;;;70362:5;-1:-1:-1;74137:33:0;;;:58;;-1:-1:-1;74194:1:0;74174:17;;;:8;:17;;;;;;:21;;74137:58;74129:90;;;;-1:-1:-1;;;74129:90:0;;;;;;;:::i;:::-;84191:7:::1;73566:16;73574:7;73566;:16::i;:::-;73558:49;;;;-1:-1:-1::0;;;73558:49:0::1;;;;;;;:::i;:::-;73646:10;73626:16;73634:7:::0;73626::::1;:16::i;:::-;-1:-1:-1::0;;;;;73626:30:0::1;;73618:68;;;;-1:-1:-1::0;;;73618:68:0::1;;;;;;;:::i;:::-;34388:1:::2;34986:7;;:19;;34978:63;;;;-1:-1:-1::0;;;34978:63:0::2;;;;;;;:::i;:::-;34388:1;35119:7;:18:::0;84245:10;84237:50:::3;;;::::0;-1:-1:-1;;;84237:50:0;;30129:2:1;84237:50:0::3;::::0;::::3;30111:21:1::0;30168:2;30148:18;;;30141:30;30207:29;30187:18;;;30180:57;30254:18;;84237:50:0::3;29927:351:1::0;84237:50:0::3;84330:16;:14;:16::i;:::-;84320:6;:26;;84298:123;;;::::0;-1:-1:-1;;;84298:123:0;;30485:2:1;84298:123:0::3;::::0;::::3;30467:21:1::0;30524:2;30504:18;;;30497:30;30563:34;30543:18;;;30536:62;-1:-1:-1;;;30614:18:1;;;30607:45;30669:19;;84298:123:0::3;30283:411:1::0;84298:123:0::3;84434:15;84479:6;84452:24;84468:7;84452:15;:24::i;:::-;:33;;;;:::i;:::-;84434:51;;84515:7;;84506;:16;;84498:63;;;::::0;-1:-1:-1;;;84498:63:0;;30901:2:1;84498:63:0::3;::::0;::::3;30883:21:1::0;30940:2;30920:18;;;30913:30;30979:34;30959:18;;;30952:62;-1:-1:-1;;;31030:18:1;;;31023:32;31072:19;;84498:63:0::3;30699:398:1::0;84498:63:0::3;84592:18;84602:7;84592:9;:18::i;:::-;84582:7;:28;84574:37;;;::::0;::::3;;84666:24;::::0;;;:15:::3;:24;::::0;;;;;84648:52:::3;::::0;84692:7;84648:17:::3;:52::i;:::-;84626:160;;;::::0;-1:-1:-1;;;84626:160:0;;31304:2:1;84626:160:0::3;::::0;::::3;31286:21:1::0;31343:2;31323:18;;;31316:30;31382:34;31362:18;;;31355:62;31453:28;31433:18;;;31426:56;31499:19;;84626:160:0::3;31102:422:1::0;84626:160:0::3;84856:7;;84845:6;84823:18;84833:7;84823:9;:18::i;:::-;84822:29;;;;:::i;:::-;84821:42;;84799:125;;;;-1:-1:-1::0;;;84799:125:0::3;;;;;;;:::i;:::-;84937:29;::::0;;;:20:::3;:29;::::0;;;;;;;:39;;;85024:10:::3;::::0;85045:16;;;:8:::3;:16:::0;;;;;;85011:51:::3;::::0;85024:10;84969:7;;85011:12:::3;:51::i;:::-;85102:24;::::0;;;:15:::3;:24;::::0;;;;;84989:73;;-1:-1:-1;85102:40:0::3;::::0;84989:73;;85102:40:::3;:::i;:::-;85075:24;::::0;;;:15:::3;:24;::::0;;;;;:67;;;;85179:23;;;;;:39:::3;::::0;85206:11;;85179:39:::3;:::i;:::-;85153:23;::::0;;;:15:::3;:23;::::0;;;;:65;85255:3:::3;::::0;:36:::3;::::0;-1:-1:-1;;;;;85255:3:0::3;85272:10;85284:6:::0;85255:16:::3;:36::i;:::-;85335:6;85318:13;;:24;;;;:::i;:::-;85302:13;:40:::0;;;85360:28:::3;::::0;;12410:25:1;;;12451:18;;;12444:34;;;85360:28:0::3;::::0;12383:18:1;85360:28:0::3;;;;;;;-1:-1:-1::0;;34344:1:0::2;35298:7;:22:::0;-1:-1:-1;;;;;84031:1365:0:o;75970:114::-;76047:14;;:29;;;-1:-1:-1;;;76047:29:0;;;;76020:7;;-1:-1:-1;;;;;76047:14:0;;:27;;:29;;;;;;;;;;;;;;:14;:29;;;;;;;;;;;;;;102306:231;2100:6;;-1:-1:-1;;;;;2100:6:0;827:10;2247:23;2239:68;;;;-1:-1:-1;;;2239:68:0;;;;;;;:::i;:::-;-1:-1:-1;;;;;102385:19:0;::::1;102377:69;;;::::0;-1:-1:-1;;;102377:69:0;;31731:2:1;102377:69:0::1;::::0;::::1;31713:21:1::0;31770:2;31750:18;;;31743:30;31809:34;31789:18;;;31782:62;-1:-1:-1;;;31860:18:1;;;31853:34;31904:19;;102377:69:0::1;31529:400:1::0;102377:69:0::1;102457:13;:21:::0;;-1:-1:-1;;;;;;102457:21:0::1;-1:-1:-1::0;;;;;102457:21:0;::::1;::::0;;::::1;::::0;;;102494:35:::1;::::0;738:51:1;;;102494:35:0::1;::::0;726:2:1;711:18;102494:35:0::1;592:203:1::0;50681:155:0;50776:52;827:10;50809:8;50819;50776:18;:52::i;:::-;50681:155;;:::o;100492:149::-;2100:6;;-1:-1:-1;;;;;2100:6:0;827:10;2247:23;2239:68;;;;-1:-1:-1;;;2239:68:0;;;;;;;:::i;:::-;100571:20;;::::1;::::0;:10:::1;::::0;:20:::1;::::0;::::1;::::0;::::1;:::i;:::-;;100607:26;100625:7;100607:26;;;;;;:::i;75057:252::-:0;75193:10;;:35;;-1:-1:-1;;;75193:35:0;;75222:4;75193:35;;;738:51:1;75111:7:0;;-1:-1:-1;;;;;75193:10:0;;:20;;711:18:1;;75193:35:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;75162:28;;75140:19;:17;:19::i;:::-;:50;;;;:::i;:::-;:88;;;;:::i;92130:702::-;92214:4;92196:7;73941:16;73949:7;73941;:16::i;:::-;73933:49;;;;-1:-1:-1;;;73933:49:0;;;;;;;:::i;:::-;92233:20:::1;92256:18;92266:7;92256:9;:18::i;:::-;92291:24;::::0;;;:15:::1;:24;::::0;;;;;92233:41;;-1:-1:-1;92291:29:0;;:50:::1;;-1:-1:-1::0;92324:17:0;;92291:50:::1;92287:95;;;92365:5;92358:12;;;;;92287:95;92409:31;92534:24:::0;;;:15:::1;:24;::::0;;;;;92409:31;;92486:118:::1;::::0;92577:12;92486:29:::1;:118::i;:::-;92394:210:::0;;-1:-1:-1;92394:210:0;-1:-1:-1;92617:28:0::1;92648:37;92394:210:::0;;92648:37:::1;:::i;:::-;92731:9;::::0;92617:68;;-1:-1:-1;92703:23:0::1;92617:68:::0;92724:2:::1;92703:23;:::i;:::-;92702:38;92698:127;;92764:4;92757:11;;;;;;;;92698:127;92808:5;92801:12;;;;;;;;91178:753:::0;91299:4;91272:7;73941:16;73949:7;73941;:16::i;:::-;73933:49;;;;-1:-1:-1;;;73933:49:0;;;;;;;:::i;:::-;91321:20:::1;91344:18;91354:7;91344:9;:18::i;:::-;91379:24;::::0;;;:15:::1;:24;::::0;;;;;91321:41;;-1:-1:-1;91379:29:0;;:50:::1;;-1:-1:-1::0;91412:17:0;;91379:50:::1;91375:95;;;91453:5;91446:12;;;;;91375:95;91497:31;91622:24:::0;;;:15:::1;:24;::::0;;;;;91497:31;;91574:118:::1;::::0;91665:12;91574:29:::1;:118::i;:::-;91482:210:::0;;-1:-1:-1;91482:210:0;-1:-1:-1;91705:28:0::1;91736:37;91482:210:::0;;91736:37:::1;:::i;:::-;91705:68;;91811:28;;91788:20;:51;91784:140;;;91863:4;91856:11;;;;;;;;51804:328:::0;51979:41;827:10;52012:7;51979:18;:41::i;:::-;51971:103;;;;-1:-1:-1;;;51971:103:0;;;;;;;:::i;:::-;52085:39;52099:4;52105:2;52109:7;52118:5;52085:13;:39::i;:::-;51804:328;;;;:::o;108968:88::-;2100:6;;-1:-1:-1;;;;;2100:6:0;827:10;2247:23;2239:68;;;;-1:-1:-1;;;2239:68:0;;;;;;;:::i;:::-;109034:6:::1;:14:::0;;-1:-1:-1;;;;;;109034:14:0::1;-1:-1:-1::0;;;;;109034:14:0;;;::::1;::::0;;;::::1;::::0;;108968:88::o;69943:147::-;70008:13;70042:16;70050:7;70042;:16::i;:::-;70034:25;;;;;;70079:3;70072:10;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;69943:147;;;:::o;106782:311::-;106864:9;74067:16;74075:7;74067;:16::i;:::-;74059:59;;;;-1:-1:-1;;;74059:59:0;;;;;;;:::i;:::-;74137:17;;;;:8;:17;;;;;;70362:5;-1:-1:-1;74137:33:0;;;:58;;-1:-1:-1;74194:1:0;74174:17;;;:8;:17;;;;;;:21;;74137:58;74129:90;;;;-1:-1:-1;;;74129:90:0;;;;;;;:::i;:::-;106890:9:::1;73566:16;73574:7;73566;:16::i;:::-;73558:49;;;;-1:-1:-1::0;;;73558:49:0::1;;;;;;;:::i;:::-;73646:10;73626:16;73634:7:::0;73626::::1;:16::i;:::-;-1:-1:-1::0;;;;;73626:30:0::1;;73618:68;;;;-1:-1:-1::0;;;73618:68:0::1;;;;;;;:::i;:::-;106931:1:::2;106920:8;:12;:40;;;;;70362:5;106936:8;:24;;106920:40;106912:80;;;::::0;-1:-1:-1;;;106912:80:0;;32136:2:1;106912:80:0::2;::::0;::::2;32118:21:1::0;32175:2;32155:18;;;32148:30;32214:29;32194:18;;;32187:57;32261:18;;106912:80:0::2;31934:351:1::0;106912:80:0::2;107003:19;::::0;;;:8:::2;:19;::::0;;;;;;;;:30;;;107049:36;;12410:25:1;;;12451:18;;;12444:34;;;107049:36:0::2;::::0;12383:18:1;107049:36:0::2;;;;;;;;74230:1:::1;106782:311:::0;;;:::o;87415:266::-;34388:1;34986:7;;:19;;34978:63;;;;-1:-1:-1;;;34978:63:0;;;;;;;:::i;:::-;34388:1;35119:7;:18;;;87485:10:::1;87475:21:::0;;:9:::1;:21;::::0;;;;;87467:67:::1;;;::::0;-1:-1:-1;;;87467:67:0;;22195:2:1;87467:67:0::1;::::0;::::1;22177:21:1::0;22234:2;22214:18;;;22207:30;22273;22253:18;;;22246:58;22321:18;;87467:67:0::1;21993:352:1::0;87467:67:0::1;87572:10;87545:14;87562:21:::0;;;:9:::1;:21;::::0;;;;;;87594:25;;;87630:10:::1;::::0;87562:21;;87630:43:::1;::::0;-1:-1:-1;;;;;87630:10:0::1;::::0;87562:21;87630:23:::1;:43::i;:::-;-1:-1:-1::0;34344:1:0;35298:7;:22;87415:266::o;85404:405::-;85535:6;74067:16;74075:7;74067;:16::i;:::-;74059:59;;;;-1:-1:-1;;;74059:59:0;;;;;;;:::i;:::-;74137:17;;;;:8;:17;;;;;;70362:5;-1:-1:-1;74137:33:0;;;:58;;-1:-1:-1;74194:1:0;74174:17;;;:8;:17;;;;;;:21;;74137:58;74129:90;;;;-1:-1:-1;;;74129:90:0;;;;;;;:::i;:::-;85555:7:::1;73941:16;73949:7;73941;:16::i;:::-;73933:49;;;;-1:-1:-1::0;;;73933:49:0::1;;;;;;;:::i;:::-;73769:6:::2;::::0;-1:-1:-1;;;;;73769:6:0::2;:20:::0;;:44:::2;;-1:-1:-1::0;73807:6:0::2;::::0;-1:-1:-1;;;;;73807:6:0::2;73793:10;:20;73769:44;73747:109;;;;-1:-1:-1::0;;;73747:109:0::2;;;;;;;:::i;:::-;85620:15:::3;85608:8;:27;;85586:111;;;::::0;-1:-1:-1;;;85586:111:0;;32492:2:1;85586:111:0::3;::::0;::::3;32474:21:1::0;32531:2;32511:18;;;32504:30;32570:34;32550:18;;;32543:62;-1:-1:-1;;;32621:18:1;;;32614:32;32663:19;;85586:111:0::3;32290:398:1::0;85586:111:0::3;85710:15;85728:24;85744:7;85728:15;:24::i;:::-;85710:42;;85763:38;85776:7;85785;85794:6;85763:12;:38::i;:::-;85575:234;74230:1:::1;85404:405:::0;;;;:::o;77195:151::-;77252:7;77275:12;77291:25;77308:7;77291:16;:25::i;90398:585::-;90528:7;90501;73941:16;73949:7;73941;:16::i;:::-;73933:49;;;;-1:-1:-1;;;73933:49:0;;;;;;;:::i;:::-;90553:20:::1;90576:18;90586:7;90576:9;:18::i;:::-;90611:24;::::0;;;:15:::1;:24;::::0;;;;;90553:41;;-1:-1:-1;90611:29:0;;:50:::1;;-1:-1:-1::0;90644:17:0;;90611:50:::1;90607:91;;;90685:1;90678:8;;;;;90607:91;90723:31;90848:24:::0;;;:15:::1;:24;::::0;;;;;90723:31;;90800:118:::1;::::0;90891:12;90800:29:::1;:118::i;:::-;90708:210:::0;;-1:-1:-1;90708:210:0;-1:-1:-1;90938:37:0::1;90708:210:::0;;90938:37:::1;:::i;:::-;90931:44:::0;90398:585;-1:-1:-1;;;;;;90398:585:0:o;108833:127::-;2100:6;;-1:-1:-1;;;;;2100:6:0;827:10;2247:23;2239:68;;;;-1:-1:-1;;;2239:68:0;;;;;;;:::i;:::-;108906:10:::1;:3;108912:4:::0;;108906:10:::1;:::i;:::-;;108932:20;108948:3;108932:20;;;;;;:::i;69403:17::-:0;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;101263:206::-;2100:6;;-1:-1:-1;;;;;2100:6:0;827:10;2247:23;2239:68;;;;-1:-1:-1;;;2239:68:0;;;;;;;:::i;:::-;101343:15;101335:50:::1;;;::::0;-1:-1:-1;;;101335:50:0;;34212:2:1;101335:50:0::1;::::0;::::1;34194:21:1::0;34251:2;34231:18;;;34224:30;-1:-1:-1;;;34270:18:1;;;34263:52;34332:18;;101335:50:0::1;34010:346:1::0;101335:50:0::1;101396:9;:22:::0;;;101434:27:::1;::::0;2918:25:1;;;101434:27:0::1;::::0;2906:2:1;2891:18;101434:27:0::1;2772:177:1::0;82147:454:0;82246:7;73941:16;73949:7;73941;:16::i;:::-;73933:49;;;;-1:-1:-1;;;73933:49:0;;;;;;;:::i;:::-;73769:6:::1;::::0;-1:-1:-1;;;;;73769:6:0::1;:20:::0;;:44:::1;;-1:-1:-1::0;73807:6:0::1;::::0;-1:-1:-1;;;;;73807:6:0::1;73793:10;:20;73769:44;73747:109;;;;-1:-1:-1::0;;;73747:109:0::1;;;;;;;:::i;:::-;82291:21:::2;82315:24:::0;;;:15:::2;:24;::::0;;;;;:35:::2;::::0;82343:6;;82315:35:::2;:::i;:::-;82388:24;::::0;;;:15:::2;:24;::::0;;;;;82291:59;;-1:-1:-1;82371:41:0;::::2;;82363:50;;;::::0;::::2;;82426:24;::::0;;;:15:::2;:24;::::0;;;;:40;;;82479:10:::2;::::0;:62:::2;::::0;-1:-1:-1;;;;;82479:10:0::2;82507;82527:4;82534:6:::0;82479:27:::2;:62::i;:::-;82559:34;::::0;;12410:25:1;;;12466:2;12451:18;;12444:34;;;82559::0::2;::::0;12383:18:1;82559:34:0::2;12236:248:1::0;2936:201:0;2100:6;;-1:-1:-1;;;;;2100:6:0;827:10;2247:23;2239:68;;;;-1:-1:-1;;;2239:68:0;;;;;;;:::i;:::-;-1:-1:-1;;;;;3025:22:0;::::1;3017:73;;;::::0;-1:-1:-1;;;3017:73:0;;34563:2:1;3017:73:0::1;::::0;::::1;34545:21:1::0;34602:2;34582:18;;;34575:30;34641:34;34621:18;;;34614:62;-1:-1:-1;;;34692:18:1;;;34685:36;34738:19;;3017:73:0::1;34361:402:1::0;3017:73:0::1;3101:28;3120:8;3101:18;:28::i;:::-;2936:201:::0;:::o;100838:233::-;2100:6;;-1:-1:-1;;;;;2100:6:0;827:10;2247:23;2239:68;;;;-1:-1:-1;;;2239:68:0;;;;;;;:::i;:::-;100932:4:::1;100918:10;:18;;100910:77;;;::::0;-1:-1:-1;;;100910:77:0;;34970:2:1;100910:77:0::1;::::0;::::1;34952:21:1::0;35009:2;34989:18;;;34982:30;35048:34;35028:18;;;35021:62;-1:-1:-1;;;35099:18:1;;;35092:44;35153:19;;100910:77:0::1;34768:410:1::0;100910:77:0::1;100998:9;:22:::0;;;101036:27:::1;::::0;2918:25:1;;;101036:27:0::1;::::0;2906:2:1;2891:18;101036:27:0::1;2772:177:1::0;64773:589:0;-1:-1:-1;;;;;64979:18:0;;64975:187;;65014:40;65046:7;66189:10;:17;;66162:24;;;;:15;:24;;;;;:44;;;66217:24;;;;;;;;;;;;66085:164;65014:40;64975:187;;;65084:2;-1:-1:-1;;;;;65076:10:0;:4;-1:-1:-1;;;;;65076:10:0;;65072:90;;65103:47;65136:4;65142:7;65103:32;:47::i;:::-;-1:-1:-1;;;;;65176:16:0;;65172:183;;65209:45;65246:7;65209:36;:45::i;65172:183::-;65282:4;-1:-1:-1;;;;;65276:10:0;:2;-1:-1:-1;;;;;65276:10:0;;65272:83;;65303:40;65331:2;65335:7;65303:27;:40::i;63097:224::-;63199:4;-1:-1:-1;;;;;;63223:50:0;;-1:-1:-1;;;63223:50:0;;:90;;;63277:36;63301:11;63277:23;:36::i;53642:127::-;53707:4;53731:16;;;:7;:16;;;;;;-1:-1:-1;;;;;53731:16:0;:30;;;53642:127::o;57788:174::-;57863:24;;;;:15;:24;;;;;:29;;-1:-1:-1;;;;;;57863:29:0;-1:-1:-1;;;;;57863:29:0;;;;;;;;:24;;57917:23;57863:24;57917:14;:23::i;:::-;-1:-1:-1;;;;;57908:46:0;;;;;;;;;;;57788:174;;:::o;78369:713::-;78493:7;78502;78535:19;:17;:19::i;:::-;78527:33;;;;;;78619:23;78707:28;;78672:19;:17;:19::i;:::-;78645:46;;:11;:46;:::i;:::-;:90;;;;:::i;:::-;78619:116;;78775:11;78756:15;:30;;78748:39;;;;;;78800:17;78820:29;70752:3;78820:5;:29;:::i;:::-;78800:49;;78883:5;78870:9;:18;;78862:27;;;;;;78902:31;78936:21;:15;78954:3;78936:21;:::i;:::-;78902:55;;79002:15;78976:23;:41;78968:50;;;;;;79039:23;79064:9;;-1:-1:-1;78369:713:0;-1:-1:-1;;;;78369:713:0:o;53936:348::-;54029:4;54054:16;54062:7;54054;:16::i;:::-;54046:73;;;;-1:-1:-1;;;54046:73:0;;35385:2:1;54046:73:0;;;35367:21:1;35424:2;35404:18;;;35397:30;35463:34;35443:18;;;35436:62;-1:-1:-1;;;35514:18:1;;;35507:42;35566:19;;54046:73:0;35183:408:1;54046:73:0;54130:13;54146:23;54161:7;54146:14;:23::i;:::-;54130:39;;54199:5;-1:-1:-1;;;;;54188:16:0;:7;-1:-1:-1;;;;;54188:16:0;;:52;;;-1:-1:-1;;;;;;51028:25:0;;;51004:4;51028:25;;;:18;:25;;;;;;;;:35;;;;;;;;;;;;54208:32;54188:87;;;;54268:7;-1:-1:-1;;;;;54244:31:0;:20;54256:7;54244:11;:20::i;:::-;-1:-1:-1;;;;;54244:31:0;;54180:96;53936:348;-1:-1:-1;;;;53936:348:0:o;57045:625::-;57204:4;-1:-1:-1;;;;;57177:31:0;:23;57192:7;57177:14;:23::i;:::-;-1:-1:-1;;;;;57177:31:0;;57169:81;;;;-1:-1:-1;;;57169:81:0;;35798:2:1;57169:81:0;;;35780:21:1;35837:2;35817:18;;;35810:30;35876:34;35856:18;;;35849:62;-1:-1:-1;;;35927:18:1;;;35920:35;35972:19;;57169:81:0;35596:401:1;57169:81:0;-1:-1:-1;;;;;57269:16:0;;57261:65;;;;-1:-1:-1;;;57261:65:0;;36204:2:1;57261:65:0;;;36186:21:1;36243:2;36223:18;;;36216:30;36282:34;36262:18;;;36255:62;-1:-1:-1;;;36333:18:1;;;36326:34;36377:19;;57261:65:0;36002:400:1;57261:65:0;57339:39;57360:4;57366:2;57370:7;57339:20;:39::i;:::-;57443:29;57460:1;57464:7;57443:8;:29::i;:::-;-1:-1:-1;;;;;57485:15:0;;;;;;:9;:15;;;;;:20;;57504:1;;57485:15;:20;;57504:1;;57485:20;:::i;:::-;;;;-1:-1:-1;;;;;;;57516:13:0;;;;;;:9;:13;;;;;:18;;57533:1;;57516:13;:18;;57533:1;;57516:18;:::i;:::-;;;;-1:-1:-1;;57545:16:0;;;;:7;:16;;;;;;:21;;-1:-1:-1;;;;;;57545:21:0;-1:-1:-1;;;;;57545:21:0;;;;;;;;;57584:27;;57545:16;;57584:27;;;;;;;49981:341;49911:411;;:::o;15809:248::-;15980:68;;-1:-1:-1;;;;;36665:15:1;;;15980:68:0;;;36647:34:1;36717:15;;36697:18;;;36690:43;36749:18;;;36742:34;;;15953:96:0;;15973:5;;-1:-1:-1;;;16003:27:0;36582:18:1;;15980:68:0;;;;-1:-1:-1;;15980:68:0;;;;;;;;;;;;;;-1:-1:-1;;;;;15980:68:0;-1:-1:-1;;;;;;15980:68:0;;;;;;;;;;15953:19;:96::i;55620:439::-;-1:-1:-1;;;;;55700:16:0;;55692:61;;;;-1:-1:-1;;;55692:61:0;;36989:2:1;55692:61:0;;;36971:21:1;;;37008:18;;;37001:30;37067:34;37047:18;;;37040:62;37119:18;;55692:61:0;36787:356:1;55692:61:0;55773:16;55781:7;55773;:16::i;:::-;55772:17;55764:58;;;;-1:-1:-1;;;55764:58:0;;37350:2:1;55764:58:0;;;37332:21:1;37389:2;37369:18;;;37362:30;37428;37408:18;;;37401:58;37476:18;;55764:58:0;37148:352:1;55764:58:0;55835:45;55864:1;55868:2;55872:7;55835:20;:45::i;:::-;-1:-1:-1;;;;;55893:13:0;;;;;;:9;:13;;;;;:18;;55910:1;;55893:13;:18;;55910:1;;55893:18;:::i;:::-;;;;-1:-1:-1;;55922:16:0;;;;:7;:16;;;;;;:21;;-1:-1:-1;;;;;;55922:21:0;-1:-1:-1;;;;;55922:21:0;;;;;;;;55961:33;;55922:16;;;55961:33;;55922:16;;55961:33;50681:155;;:::o;15590:211::-;15734:58;;-1:-1:-1;;;;;9019:32:1;;15734:58:0;;;9001:51:1;9068:18;;;9061:34;;;15707:86:0;;15727:5;;-1:-1:-1;;;15757:23:0;8974:18:1;;15734:58:0;8827:274:1;3297:191:0;3390:6;;;-1:-1:-1;;;;;3407:17:0;;;-1:-1:-1;;;;;;3407:17:0;;;;;;;3440:40;;3390:6;;;3407:17;3390:6;;3440:40;;3371:16;;3440:40;3360:128;3297:191;:::o;56288:420::-;56348:13;56364:23;56379:7;56364:14;:23::i;:::-;56348:39;;56400:48;56421:5;56436:1;56440:7;56400:20;:48::i;:::-;56489:29;56506:1;56510:7;56489:8;:29::i;:::-;-1:-1:-1;;;;;56531:16:0;;;;;;:9;:16;;;;;:21;;56551:1;;56531:16;:21;;56551:1;;56531:21;:::i;:::-;;;;-1:-1:-1;;56570:16:0;;;;:7;:16;;;;;;56563:23;;-1:-1:-1;;;;;;56563:23:0;;;56604:36;56578:7;;56570:16;-1:-1:-1;;;;;56604:36:0;;;;;56570:16;;56604:36;50681:155;;:::o;76386:577::-;76479:7;76576:29;;;:20;:29;;;;;;;;;76646:12;:21;;;;;;76479:7;;76535:15;;76479:7;;76646:26;;;;:36;;;76681:1;76676:2;;:6;76646:36;76642:285;;;76699:17;76733:21;;;:12;:21;;;;;;76719:35;;:11;:35;:::i;:::-;76699:55;;76771:18;70362:5;70402:8;76808:9;76800:4;76795:2;;:9;;;;:::i;:::-;76794:23;;;;:::i;:::-;76793:36;;;;:::i;:::-;76792:53;;;;:::i;:::-;76771:74;-1:-1:-1;76771:74:0;;-1:-1:-1;76898:17:0;76911:4;76771:74;76898:17;:::i;:::-;76891:24;;76684:243;;76642:285;76945:3;76950:4;;-1:-1:-1;76386:577:0;-1:-1:-1;;;76386:577:0:o;58104:315::-;58259:8;-1:-1:-1;;;;;58250:17:0;:5;-1:-1:-1;;;;;58250:17:0;;;58242:55;;;;-1:-1:-1;;;58242:55:0;;37707:2:1;58242:55:0;;;37689:21:1;37746:2;37726:18;;;37719:30;37785:27;37765:18;;;37758:55;37830:18;;58242:55:0;37505:349:1;58242:55:0;-1:-1:-1;;;;;58308:25:0;;;;;;;:18;:25;;;;;;;;:35;;;;;;;;;;;;;:46;;-1:-1:-1;;58308:46:0;;;;;;;;;;58370:41;;540::1;;;58370::0;;513:18:1;58370:41:0;;;;;;;58104:315;;;:::o;53014:::-;53171:28;53181:4;53187:2;53191:7;53171:9;:28::i;:::-;53218:48;53241:4;53247:2;53251:7;53260:5;53218:22;:48::i;:::-;53210:111;;;;-1:-1:-1;;;53210:111:0;;;;;;;:::i;66876:988::-;67142:22;67192:1;67167:22;67184:4;67167:16;:22::i;:::-;:26;;;;:::i;:::-;67204:18;67225:26;;;:17;:26;;;;;;67142:51;;-1:-1:-1;67358:28:0;;;67354:328;;-1:-1:-1;;;;;67425:18:0;;67403:19;67425:18;;;:12;:18;;;;;;;;:34;;;;;;;;;67476:30;;;;;;:44;;;67593:30;;:17;:30;;;;;:43;;;67354:328;-1:-1:-1;67778:26:0;;;;:17;:26;;;;;;;;67771:33;;;-1:-1:-1;;;;;67822:18:0;;;;;:12;:18;;;;;:34;;;;;;;67815:41;66876:988::o;68159:1079::-;68437:10;:17;68412:22;;68437:21;;68457:1;;68437:21;:::i;:::-;68469:18;68490:24;;;:15;:24;;;;;;68863:10;:26;;68412:46;;-1:-1:-1;68490:24:0;;68412:46;;68863:26;;;;;;:::i;:::-;;;;;;;;;68841:48;;68927:11;68902:10;68913;68902:22;;;;;;;;:::i;:::-;;;;;;;;;;;;:36;;;;69007:28;;;:15;:28;;;;;;;:41;;;69179:24;;;;;69172:31;69214:10;:16;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;68230:1008;;;68159:1079;:::o;65663:221::-;65748:14;65765:20;65782:2;65765:16;:20::i;:::-;-1:-1:-1;;;;;65796:16:0;;;;;;;:12;:16;;;;;;;;:24;;;;;;;;:34;;;65841:26;;;:17;:26;;;;;;:35;;;;-1:-1:-1;65663:221:0:o;47883:305::-;47985:4;-1:-1:-1;;;;;;48022:40:0;;-1:-1:-1;;;48022:40:0;;:105;;-1:-1:-1;;;;;;;48079:48:0;;-1:-1:-1;;;48079:48:0;48022:105;:158;;;-1:-1:-1;;;;;;;;;;46417:40:0;;;48144:36;46308:157;69429:181;69557:45;69584:4;69590:2;69594:7;69557:26;:45::i;18163:716::-;18587:23;18613:69;18641:4;18613:69;;;;;;;;;;;;;;;;;18621:5;-1:-1:-1;;;;;18613:27:0;;;:69;;;;;:::i;:::-;18697:17;;18587:95;;-1:-1:-1;18697:21:0;18693:179;;18794:10;18783:30;;;;;;;;;;;;:::i;:::-;18775:85;;;;-1:-1:-1;;;18775:85:0;;38612:2:1;18775:85:0;;;38594:21:1;38651:2;38631:18;;;38624:30;38690:34;38670:18;;;38663:62;-1:-1:-1;;;38741:18:1;;;38734:40;38791:19;;18775:85:0;38410:406:1;58984:799:0;59139:4;-1:-1:-1;;;;;59160:13:0;;7914:19;:23;59156:620;;59196:72;;-1:-1:-1;;;59196:72:0;;-1:-1:-1;;;;;59196:36:0;;;;;:72;;827:10;;59247:4;;59253:7;;59262:5;;59196:72;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;-1:-1:-1;59196:72:0;;;;;;;;-1:-1:-1;;59196:72:0;;;;;;;;;;;;:::i;:::-;;;59192:529;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;59438:13:0;;59434:272;;59481:60;;-1:-1:-1;;;59481:60:0;;;;;;;:::i;59434:272::-;59656:6;59650:13;59641:6;59637:2;59633:15;59626:38;59192:529;-1:-1:-1;;;;;;59319:51:0;-1:-1:-1;;;59319:51:0;;-1:-1:-1;59312:58:0;;59156:620;-1:-1:-1;59760:4:0;58984:799;;;;;;:::o;10364:229::-;10501:12;10533:52;10555:6;10563:4;10569:1;10572:12;10501;-1:-1:-1;;;;;7914:19:0;;;11771:60;;;;-1:-1:-1;;;11771:60:0;;40178:2:1;11771:60:0;;;40160:21:1;40217:2;40197:18;;;40190:30;40256:31;40236:18;;;40229:59;40305:18;;11771:60:0;39976:353:1;11771:60:0;11845:12;11859:23;11886:6;-1:-1:-1;;;;;11886:11:0;11905:5;11912:4;11886:31;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;11844:73;;;;11935:51;11952:7;11961:10;11973:12;11935:16;:51::i;:::-;11928:58;11484:510;-1:-1:-1;;;;;;;11484:510:0:o;14170:712::-;14320:12;14349:7;14345:530;;;-1:-1:-1;14380:10:0;14373:17;;14345:530;14494:17;;:21;14490:374;;14692:10;14686:17;14753:15;14740:10;14736:2;14732:19;14725:44;14490:374;14835:12;14828:20;;-1:-1:-1;;;14828:20:0;;;;;;;;:::i;-1:-1:-1:-;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;:::o;:::-;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;14:131:1;-1:-1:-1;;;;;;88:32:1;;78:43;;68:71;;135:1;132;125:12;150:245;208:6;261:2;249:9;240:7;236:23;232:32;229:52;;;277:1;274;267:12;229:52;316:9;303:23;335:30;359:5;335:30;:::i;955:258::-;1027:1;1037:113;1051:6;1048:1;1045:13;1037:113;;;1127:11;;;1121:18;1108:11;;;1101:39;1073:2;1066:10;1037:113;;;1168:6;1165:1;1162:13;1159:48;;;-1:-1:-1;;1203:1:1;1185:16;;1178:27;955:258::o;1218:::-;1260:3;1298:5;1292:12;1325:6;1320:3;1313:19;1341:63;1397:6;1390:4;1385:3;1381:14;1374:4;1367:5;1363:16;1341:63;:::i;:::-;1458:2;1437:15;-1:-1:-1;;1433:29:1;1424:39;;;;1465:4;1420:50;;1218:258;-1:-1:-1;;1218:258:1:o;1481:220::-;1630:2;1619:9;1612:21;1593:4;1650:45;1691:2;1680:9;1676:18;1668:6;1650:45;:::i;1706:173::-;1774:20;;-1:-1:-1;;;;;1823:31:1;;1813:42;;1803:70;;1869:1;1866;1859:12;1803:70;1706:173;;;:::o;1884:186::-;1943:6;1996:2;1984:9;1975:7;1971:23;1967:32;1964:52;;;2012:1;2009;2002:12;1964:52;2035:29;2054:9;2035:29;:::i;2075:180::-;2134:6;2187:2;2175:9;2166:7;2162:23;2158:32;2155:52;;;2203:1;2200;2193:12;2155:52;-1:-1:-1;2226:23:1;;2075:180;-1:-1:-1;2075:180:1:o;2260:254::-;2328:6;2336;2389:2;2377:9;2368:7;2364:23;2360:32;2357:52;;;2405:1;2402;2395:12;2357:52;2428:29;2447:9;2428:29;:::i;:::-;2418:39;2504:2;2489:18;;;;2476:32;;-1:-1:-1;;;2260:254:1:o;2519:248::-;2587:6;2595;2648:2;2636:9;2627:7;2623:23;2619:32;2616:52;;;2664:1;2661;2654:12;2616:52;-1:-1:-1;;2687:23:1;;;2757:2;2742:18;;;2729:32;;-1:-1:-1;2519:248:1:o;2954:328::-;3031:6;3039;3047;3100:2;3088:9;3079:7;3075:23;3071:32;3068:52;;;3116:1;3113;3106:12;3068:52;3139:29;3158:9;3139:29;:::i;:::-;3129:39;;3187:38;3221:2;3210:9;3206:18;3187:38;:::i;:::-;3177:48;;3272:2;3261:9;3257:18;3244:32;3234:42;;2954:328;;;;;:::o;3287:316::-;3364:6;3372;3380;3433:2;3421:9;3412:7;3408:23;3404:32;3401:52;;;3449:1;3446;3439:12;3401:52;-1:-1:-1;;3472:23:1;;;3542:2;3527:18;;3514:32;;-1:-1:-1;3593:2:1;3578:18;;;3565:32;;3287:316;-1:-1:-1;3287:316:1:o;4248:118::-;4334:5;4327:13;4320:21;4313:5;4310:32;4300:60;;4356:1;4353;4346:12;4371:315;4436:6;4444;4497:2;4485:9;4476:7;4472:23;4468:32;4465:52;;;4513:1;4510;4503:12;4465:52;4536:29;4555:9;4536:29;:::i;:::-;4526:39;;4615:2;4604:9;4600:18;4587:32;4628:28;4650:5;4628:28;:::i;:::-;4675:5;4665:15;;;4371:315;;;;;:::o;4691:127::-;4752:10;4747:3;4743:20;4740:1;4733:31;4783:4;4780:1;4773:15;4807:4;4804:1;4797:15;4823:632;4888:5;4918:18;4959:2;4951:6;4948:14;4945:40;;;4965:18;;:::i;:::-;5040:2;5034:9;5008:2;5094:15;;-1:-1:-1;;5090:24:1;;;5116:2;5086:33;5082:42;5070:55;;;5140:18;;;5160:22;;;5137:46;5134:72;;;5186:18;;:::i;:::-;5226:10;5222:2;5215:22;5255:6;5246:15;;5285:6;5277;5270:22;5325:3;5316:6;5311:3;5307:16;5304:25;5301:45;;;5342:1;5339;5332:12;5301:45;5392:6;5387:3;5380:4;5372:6;5368:17;5355:44;5447:1;5440:4;5431:6;5423;5419:19;5415:30;5408:41;;;;4823:632;;;;;:::o;5460:451::-;5529:6;5582:2;5570:9;5561:7;5557:23;5553:32;5550:52;;;5598:1;5595;5588:12;5550:52;5638:9;5625:23;5671:18;5663:6;5660:30;5657:50;;;5703:1;5700;5693:12;5657:50;5726:22;;5779:4;5771:13;;5767:27;-1:-1:-1;5757:55:1;;5808:1;5805;5798:12;5757:55;5831:74;5897:7;5892:2;5879:16;5874:2;5870;5866:11;5831:74;:::i;5916:667::-;6011:6;6019;6027;6035;6088:3;6076:9;6067:7;6063:23;6059:33;6056:53;;;6105:1;6102;6095:12;6056:53;6128:29;6147:9;6128:29;:::i;:::-;6118:39;;6176:38;6210:2;6199:9;6195:18;6176:38;:::i;:::-;6166:48;;6261:2;6250:9;6246:18;6233:32;6223:42;;6316:2;6305:9;6301:18;6288:32;6343:18;6335:6;6332:30;6329:50;;;6375:1;6372;6365:12;6329:50;6398:22;;6451:4;6443:13;;6439:27;-1:-1:-1;6429:55:1;;6480:1;6477;6470:12;6429:55;6503:74;6569:7;6564:2;6551:16;6546:2;6542;6538:11;6503:74;:::i;:::-;6493:84;;;5916:667;;;;;;;:::o;6588:592::-;6659:6;6667;6720:2;6708:9;6699:7;6695:23;6691:32;6688:52;;;6736:1;6733;6726:12;6688:52;6776:9;6763:23;6805:18;6846:2;6838:6;6835:14;6832:34;;;6862:1;6859;6852:12;6832:34;6900:6;6889:9;6885:22;6875:32;;6945:7;6938:4;6934:2;6930:13;6926:27;6916:55;;6967:1;6964;6957:12;6916:55;7007:2;6994:16;7033:2;7025:6;7022:14;7019:34;;;7049:1;7046;7039:12;7019:34;7094:7;7089:2;7080:6;7076:2;7072:15;7068:24;7065:37;7062:57;;;7115:1;7112;7105:12;7062:57;7146:2;7138:11;;;;;7168:6;;-1:-1:-1;6588:592:1;;-1:-1:-1;;;;6588:592:1:o;7185:260::-;7253:6;7261;7314:2;7302:9;7293:7;7289:23;7285:32;7282:52;;;7330:1;7327;7320:12;7282:52;7353:29;7372:9;7353:29;:::i;:::-;7343:39;;7401:38;7435:2;7424:9;7420:18;7401:38;:::i;:::-;7391:48;;7185:260;;;;;:::o;7810:355::-;8012:2;7994:21;;;8051:2;8031:18;;;8024:30;8090:33;8085:2;8070:18;;8063:61;8156:2;8141:18;;7810:355::o;8170:127::-;8231:10;8226:3;8222:20;8219:1;8212:31;8262:4;8259:1;8252:15;8286:4;8283:1;8276:15;8302:168;8342:7;8408:1;8404;8400:6;8396:14;8393:1;8390:21;8385:1;8378:9;8371:17;8367:45;8364:71;;;8415:18;;:::i;:::-;-1:-1:-1;8455:9:1;;8302:168::o;8475:217::-;8515:1;8541;8531:132;;8585:10;8580:3;8576:20;8573:1;8566:31;8620:4;8617:1;8610:15;8648:4;8645:1;8638:15;8531:132;-1:-1:-1;8677:9:1;;8475:217::o;8697:125::-;8737:4;8765:1;8762;8759:8;8756:34;;;8770:18;;:::i;:::-;-1:-1:-1;8807:9:1;;8697:125::o;9106:245::-;9173:6;9226:2;9214:9;9205:7;9201:23;9197:32;9194:52;;;9242:1;9239;9232:12;9194:52;9274:9;9268:16;9293:28;9315:5;9293:28;:::i;9356:380::-;9435:1;9431:12;;;;9478;;;9499:61;;9553:4;9545:6;9541:17;9531:27;;9499:61;9606:2;9598:6;9595:14;9575:18;9572:38;9569:161;;;9652:10;9647:3;9643:20;9640:1;9633:31;9687:4;9684:1;9677:15;9715:4;9712:1;9705:15;9741:356;9943:2;9925:21;;;9962:18;;;9955:30;10021:34;10016:2;10001:18;;9994:62;10088:2;10073:18;;9741:356::o;11748:128::-;11788:3;11819:1;11815:6;11812:1;11809:13;11806:39;;;11825:18;;:::i;:::-;-1:-1:-1;11861:9:1;;11748:128::o;12489:422::-;12578:1;12621:5;12578:1;12635:270;12656:7;12646:8;12643:21;12635:270;;;12715:4;12711:1;12707:6;12703:17;12697:4;12694:27;12691:53;;;12724:18;;:::i;:::-;12774:7;12764:8;12760:22;12757:55;;;12794:16;;;;12757:55;12873:22;;;;12833:15;;;;12635:270;;;12639:3;12489:422;;;;;:::o;12916:806::-;12965:5;12995:8;12985:80;;-1:-1:-1;13036:1:1;13050:5;;12985:80;13084:4;13074:76;;-1:-1:-1;13121:1:1;13135:5;;13074:76;13166:4;13184:1;13179:59;;;;13252:1;13247:130;;;;13159:218;;13179:59;13209:1;13200:10;;13223:5;;;13247:130;13284:3;13274:8;13271:17;13268:43;;;13291:18;;:::i;:::-;-1:-1:-1;;13347:1:1;13333:16;;13362:5;;13159:218;;13461:2;13451:8;13448:16;13442:3;13436:4;13433:13;13429:36;13423:2;13413:8;13410:16;13405:2;13399:4;13396:12;13392:35;13389:77;13386:159;;;-1:-1:-1;13498:19:1;;;13530:5;;13386:159;13577:34;13602:8;13596:4;13577:34;:::i;:::-;13647:6;13643:1;13639:6;13635:19;13626:7;13623:32;13620:58;;;13658:18;;:::i;:::-;13696:20;;12916:806;-1:-1:-1;;;12916:806:1:o;13727:131::-;13787:5;13816:36;13843:8;13837:4;13816:36;:::i;13863:413::-;14065:2;14047:21;;;14104:2;14084:18;;;14077:30;14143:34;14138:2;14123:18;;14116:62;-1:-1:-1;;;14209:2:1;14194:18;;14187:47;14266:3;14251:19;;13863:413::o;14693:354::-;14895:2;14877:21;;;14934:2;14914:18;;;14907:30;14973:32;14968:2;14953:18;;14946:60;15038:2;15023:18;;14693:354::o;15052:343::-;15254:2;15236:21;;;15293:2;15273:18;;;15266:30;-1:-1:-1;;;15327:2:1;15312:18;;15305:49;15386:2;15371:18;;15052:343::o;15400:344::-;15602:2;15584:21;;;15641:2;15621:18;;;15614:30;-1:-1:-1;;;15675:2:1;15660:18;;15653:50;15735:2;15720:18;;15400:344::o;15749:339::-;15951:2;15933:21;;;15990:2;15970:18;;;15963:30;-1:-1:-1;;;16024:2:1;16009:18;;16002:45;16079:2;16064:18;;15749:339::o;16093:184::-;16163:6;16216:2;16204:9;16195:7;16191:23;16187:32;16184:52;;;16232:1;16229;16222:12;16184:52;-1:-1:-1;16255:16:1;;16093:184;-1:-1:-1;16093:184:1:o;17040:397::-;17242:2;17224:21;;;17281:2;17261:18;;;17254:30;17320:34;17315:2;17300:18;;17293:62;-1:-1:-1;;;17386:2:1;17371:18;;17364:31;17427:3;17412:19;;17040:397::o;20051:127::-;20112:10;20107:3;20103:20;20100:1;20093:31;20143:4;20140:1;20133:15;20167:4;20164:1;20157:15;23835:349;24037:2;24019:21;;;24076:2;24056:18;;;24049:30;24115:27;24110:2;24095:18;;24088:55;24175:2;24160:18;;23835:349::o;32819:1186::-;32928:4;32957:2;32986;32975:9;32968:21;33009:1;33042:6;33036:13;33072:3;33094:1;33122:9;33118:2;33114:18;33104:28;;33182:2;33171:9;33167:18;33204;33194:61;;33248:4;33240:6;33236:17;33226:27;;33194:61;33301:2;33293:6;33290:14;33270:18;33267:38;33264:165;;;-1:-1:-1;;;33328:33:1;;33384:4;33381:1;33374:15;33414:4;33335:3;33402:17;33264:165;33485:18;;;887:19;;;939:4;930:14;33528:18;33555:100;;;;33669:1;33664:315;;;;33521:458;;33555:100;-1:-1:-1;;33588:24:1;;33576:37;;33633:12;;;;-1:-1:-1;33555:100:1;;33664:315;32766:1;32759:14;;;32803:4;32790:18;;33759:1;33773:165;33787:6;33784:1;33781:13;33773:165;;;33865:14;;33852:11;;;33845:35;33908:16;;;;33802:10;;33773:165;;;33958:11;;;-1:-1:-1;;33521:458:1;-1:-1:-1;33996:3:1;;32819:1186;-1:-1:-1;;;;;;;;;32819:1186:1:o;37859:414::-;38061:2;38043:21;;;38100:2;38080:18;;;38073:30;38139:34;38134:2;38119:18;;38112:62;-1:-1:-1;;;38205:2:1;38190:18;;38183:48;38263:3;38248:19;;37859:414::o;38278:127::-;38339:10;38334:3;38330:20;38327:1;38320:31;38370:4;38367:1;38360:15;38394:4;38391:1;38384:15;38821:489;-1:-1:-1;;;;;39090:15:1;;;39072:34;;39142:15;;39137:2;39122:18;;39115:43;39189:2;39174:18;;39167:34;;;39237:3;39232:2;39217:18;;39210:31;;;39015:4;;39258:46;;39284:19;;39276:6;39258:46;:::i;39315:249::-;39384:6;39437:2;39425:9;39416:7;39412:23;39408:32;39405:52;;;39453:1;39450;39443:12;39405:52;39485:9;39479:16;39504:30;39528:5;39504:30;:::i;40334:274::-;40463:3;40501:6;40495:13;40517:53;40563:6;40558:3;40551:4;40543:6;40539:17;40517:53;:::i;:::-;40586:16;;;;;40334:274;-1:-1:-1;;40334:274:1:o

Swarm Source

ipfs://ceb74a3747289d33a4e1a9a3a1463b20fe2088bf04aa8ce456e1191057a3865b

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

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

Validator Index Block Amount
View All Withdrawals

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

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