ETH Price: $3,447.08 (+0.03%)
Gas: 2 Gwei

Token

vUNI Pool (vUNI)
 

Overview

Max Total Supply

0.601001211508755559 vUNI

Holders

2

Market

Onchain Market Cap

$0.00

Circulating Supply Market Cap

-

Other Info

Token Contract (WITH 18 Decimals)

Balance
0.6 vUNI

Value
$0.00
0x223809e09ec28c28219769c3ff05c790c213152c
Loading...
Loading
Loading...
Loading
Loading...
Loading

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

Contract Source Code Verified (Exact Match)

Contract Name:
VUNI

Compiler Version
v0.8.3+commit.8d00100c

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, MIT license
File 1 of 20 : ReentrancyGuard.sol
// SPDX-License-Identifier: MIT

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

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

        _;

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

File 2 of 20 : ERC20.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "./IERC20.sol";
import "./extensions/IERC20Metadata.sol";
import "../../utils/Context.sol";

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

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

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

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

        uint256 currentAllowance = _allowances[sender][_msgSender()];
        require(currentAllowance >= amount, "ERC20: transfer amount exceeds allowance");
        _approve(sender, _msgSender(), currentAllowance - 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) {
        _approve(_msgSender(), spender, _allowances[_msgSender()][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) {
        uint256 currentAllowance = _allowances[_msgSender()][spender];
        require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero");
        _approve(_msgSender(), spender, currentAllowance - subtractedValue);

        return true;
    }

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

        _beforeTokenTransfer(sender, recipient, amount);

        uint256 senderBalance = _balances[sender];
        require(senderBalance >= amount, "ERC20: transfer amount exceeds balance");
        _balances[sender] = senderBalance - amount;
        _balances[recipient] += amount;

        emit Transfer(sender, recipient, amount);
    }

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

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

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

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

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

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

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

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

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

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

File 3 of 20 : IERC20.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @dev Returns the amount of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

    /**
     * @dev Returns the amount of tokens owned by `account`.
     */
    function balanceOf(address account) external view returns (uint256);

    /**
     * @dev Moves `amount` tokens from the caller's account to `recipient`.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transfer(address recipient, uint256 amount) external returns (bool);

    /**
     * @dev Returns the remaining number of tokens that `spender` will be
     * allowed to spend on behalf of `owner` through {transferFrom}. This is
     * zero by default.
     *
     * This value changes when {approve} or {transferFrom} are called.
     */
    function allowance(address owner, address spender) external view returns (uint256);

    /**
     * @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * IMPORTANT: Beware that changing an allowance with this method brings the risk
     * that someone may use both the old and the new allowance by unfortunate
     * transaction ordering. One possible solution to mitigate this race
     * condition is to first reduce the spender's allowance to 0 and set the
     * desired value afterwards:
     * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
     *
     * Emits an {Approval} event.
     */
    function approve(address spender, uint256 amount) external returns (bool);

    /**
     * @dev Moves `amount` tokens from `sender` to `recipient` using the
     * allowance mechanism. `amount` is then deducted from the caller's
     * allowance.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(address sender, address recipient, uint256 amount) external returns (bool);

    /**
     * @dev Emitted when `value` tokens are moved from one account (`from`) to
     * another (`to`).
     *
     * Note that `value` may be zero.
     */
    event Transfer(address indexed from, address indexed to, uint256 value);

    /**
     * @dev Emitted when the allowance of a `spender` for an `owner` is set by
     * a call to {approve}. `value` is the new allowance.
     */
    event Approval(address indexed owner, address indexed spender, uint256 value);
}

File 4 of 20 : IERC20Metadata.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../IERC20.sol";

/**
 * @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 5 of 20 : draft-ERC20Permit.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "./draft-IERC20Permit.sol";
import "../ERC20.sol";
import "../../../utils/cryptography/draft-EIP712.sol";
import "../../../utils/cryptography/ECDSA.sol";
import "../../../utils/Counters.sol";

/**
 * @dev Implementation of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in
 * https://eips.ethereum.org/EIPS/eip-2612[EIP-2612].
 *
 * Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by
 * presenting a message signed by the account. By not relying on `{IERC20-approve}`, the token holder account doesn't
 * need to send a transaction, and thus is not required to hold Ether at all.
 *
 * _Available since v3.4._
 */
abstract contract ERC20Permit is ERC20, IERC20Permit, EIP712 {
    using Counters for Counters.Counter;

    mapping (address => Counters.Counter) private _nonces;

    // solhint-disable-next-line var-name-mixedcase
    bytes32 private immutable _PERMIT_TYPEHASH = keccak256("Permit(address owner,address spender,uint256 value,uint256 nonce,uint256 deadline)");

    /**
     * @dev Initializes the {EIP712} domain separator using the `name` parameter, and setting `version` to `"1"`.
     *
     * It's a good idea to use the same `name` that is defined as the ERC20 token name.
     */
    constructor(string memory name) EIP712(name, "1") {
    }

    /**
     * @dev See {IERC20Permit-permit}.
     */
    function permit(address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s) public virtual override {
        // solhint-disable-next-line not-rely-on-time
        require(block.timestamp <= deadline, "ERC20Permit: expired deadline");

        bytes32 structHash = keccak256(
            abi.encode(
                _PERMIT_TYPEHASH,
                owner,
                spender,
                value,
                _useNonce(owner),
                deadline
            )
        );

        bytes32 hash = _hashTypedDataV4(structHash);

        address signer = ECDSA.recover(hash, v, r, s);
        require(signer == owner, "ERC20Permit: invalid signature");

        _approve(owner, spender, value);
    }

    /**
     * @dev See {IERC20Permit-nonces}.
     */
    function nonces(address owner) public view virtual override returns (uint256) {
        return _nonces[owner].current();
    }

    /**
     * @dev See {IERC20Permit-DOMAIN_SEPARATOR}.
     */
    // solhint-disable-next-line func-name-mixedcase
    function DOMAIN_SEPARATOR() external view override returns (bytes32) {
        return _domainSeparatorV4();
    }

    /**
     * @dev "Consume a nonce": return the current value and increment.
     *
     * _Available since v4.1._
     */
    function _useNonce(address owner) internal virtual returns (uint256 current) {
        Counters.Counter storage nonce = _nonces[owner];
        current = nonce.current();
        nonce.increment();
    }
}

File 6 of 20 : draft-IERC20Permit.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in
 * https://eips.ethereum.org/EIPS/eip-2612[EIP-2612].
 *
 * Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by
 * presenting a message signed by the account. By not relying on {IERC20-approve}, the token holder account doesn't
 * need to send a transaction, and thus is not required to hold Ether at all.
 */
interface IERC20Permit {
    /**
     * @dev Sets `value` as the allowance of `spender` over ``owner``'s tokens,
     * given ``owner``'s signed approval.
     *
     * IMPORTANT: The same issues {IERC20-approve} has related to transaction
     * ordering also apply here.
     *
     * Emits an {Approval} event.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     * - `deadline` must be a timestamp in the future.
     * - `v`, `r` and `s` must be a valid `secp256k1` signature from `owner`
     * over the EIP712-formatted function arguments.
     * - the signature must use ``owner``'s current nonce (see {nonces}).
     *
     * For more information on the signature format, see the
     * https://eips.ethereum.org/EIPS/eip-2612#specification[relevant EIP
     * section].
     */
    function permit(address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s) external;

    /**
     * @dev Returns the current nonce for `owner`. This value must be
     * included whenever a signature is generated for {permit}.
     *
     * Every successful call to {permit} increases ``owner``'s nonce by one. This
     * prevents a signature from being used multiple times.
     */
    function nonces(address owner) external view returns (uint256);

    /**
     * @dev Returns the domain separator used in the encoding of the signature for {permit}, as defined by {EIP712}.
     */
    // solhint-disable-next-line func-name-mixedcase
    function DOMAIN_SEPARATOR() external view returns (bytes32);
}

File 7 of 20 : SafeERC20.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../IERC20.sol";
import "../../../utils/Address.sol";

/**
 * @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'
        // solhint-disable-next-line max-line-length
        require((value == 0) || (token.allowance(address(this), spender) == 0),
            "SafeERC20: approve from non-zero to non-zero allowance"
        );
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value));
    }

    function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {
        uint256 newAllowance = token.allowance(address(this), spender) + 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
            // solhint-disable-next-line max-line-length
            require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed");
        }
    }
}

File 8 of 20 : Address.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

File 9 of 20 : Context.sol
// SPDX-License-Identifier: MIT

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) {
        this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691
        return msg.data;
    }
}

File 10 of 20 : Counters.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @title Counters
 * @author Matt Condon (@shrugs)
 * @dev Provides counters that can only be incremented or decremented by one. This can be used e.g. to track the number
 * of elements in a mapping, issuing ERC721 ids, or counting request ids.
 *
 * Include with `using Counters for Counters.Counter;`
 */
library Counters {
    struct Counter {
        // This variable should never be directly accessed by users of the library: interactions must be restricted to
        // the library's function. As of Solidity v0.5.2, this cannot be enforced, though there is a proposal to add
        // this feature: see https://github.com/ethereum/solidity/issues/4637
        uint256 _value; // default: 0
    }

    function current(Counter storage counter) internal view returns (uint256) {
        return counter._value;
    }

    function increment(Counter storage counter) internal {
        unchecked {
            counter._value += 1;
        }
    }

    function decrement(Counter storage counter) internal {
        uint256 value = counter._value;
        require(value > 0, "Counter: decrement overflow");
        unchecked {
            counter._value = value - 1;
        }
    }
}

File 11 of 20 : ECDSA.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @dev Elliptic Curve Digital Signature Algorithm (ECDSA) operations.
 *
 * These functions can be used to verify that a message was signed by the holder
 * of the private keys of a given address.
 */
library ECDSA {
    /**
     * @dev Returns the address that signed a hashed message (`hash`) with
     * `signature`. This address can then be used for verification purposes.
     *
     * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures:
     * this function rejects them by requiring the `s` value to be in the lower
     * half order, and the `v` value to be either 27 or 28.
     *
     * IMPORTANT: `hash` _must_ be the result of a hash operation for the
     * verification to be secure: it is possible to craft signatures that
     * recover to arbitrary addresses for non-hashed data. A safe way to ensure
     * this is by receiving a hash of the original message (which may otherwise
     * be too long), and then calling {toEthSignedMessageHash} on it.
     */
    function recover(bytes32 hash, bytes memory signature) internal pure returns (address) {
        // Divide the signature in r, s and v variables
        bytes32 r;
        bytes32 s;
        uint8 v;

        // Check the signature length
        // - case 65: r,s,v signature (standard)
        // - case 64: r,vs signature (cf https://eips.ethereum.org/EIPS/eip-2098) _Available since v4.1._
        if (signature.length == 65) {
            // ecrecover takes the signature parameters, and the only way to get them
            // currently is to use assembly.
            // solhint-disable-next-line no-inline-assembly
            assembly {
                r := mload(add(signature, 0x20))
                s := mload(add(signature, 0x40))
                v := byte(0, mload(add(signature, 0x60)))
            }
        } else if (signature.length == 64) {
            // ecrecover takes the signature parameters, and the only way to get them
            // currently is to use assembly.
            // solhint-disable-next-line no-inline-assembly
            assembly {
                let vs := mload(add(signature, 0x40))
                r := mload(add(signature, 0x20))
                s := and(vs, 0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff)
                v := add(shr(255, vs), 27)
            }
        } else {
            revert("ECDSA: invalid signature length");
        }

        return recover(hash, v, r, s);
    }

    /**
     * @dev Overload of {ECDSA-recover} that receives the `v`,
     * `r` and `s` signature fields separately.
     */
    function recover(bytes32 hash, uint8 v, bytes32 r, bytes32 s) internal pure returns (address) {
        // EIP-2 still allows signature malleability for ecrecover(). Remove this possibility and make the signature
        // unique. Appendix F in the Ethereum Yellow paper (https://ethereum.github.io/yellowpaper/paper.pdf), defines
        // the valid range for s in (281): 0 < s < secp256k1n ÷ 2 + 1, and for v in (282): v ∈ {27, 28}. Most
        // signatures from current libraries generate a unique signature with an s-value in the lower half order.
        //
        // If your library generates malleable signatures, such as s-values in the upper range, calculate a new s-value
        // with 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141 - s1 and flip v from 27 to 28 or
        // vice versa. If your library also generates signatures with 0/1 for v instead 27/28, add 27 to v to accept
        // these malleable signatures as well.
        require(uint256(s) <= 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0, "ECDSA: invalid signature 's' value");
        require(v == 27 || v == 28, "ECDSA: invalid signature 'v' value");

        // If the signature is valid (and not malleable), return the signer address
        address signer = ecrecover(hash, v, r, s);
        require(signer != address(0), "ECDSA: invalid signature");

        return signer;
    }

    /**
     * @dev Returns an Ethereum Signed Message, created from a `hash`. This
     * produces hash corresponding to the one signed with the
     * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`]
     * JSON-RPC method as part of EIP-191.
     *
     * See {recover}.
     */
    function toEthSignedMessageHash(bytes32 hash) internal pure returns (bytes32) {
        // 32 is the length in bytes of hash,
        // enforced by the type signature above
        return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n32", hash));
    }

    /**
     * @dev Returns an Ethereum Signed Typed Data, created from a
     * `domainSeparator` and a `structHash`. This produces hash corresponding
     * to the one signed with the
     * https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`]
     * JSON-RPC method as part of EIP-712.
     *
     * See {recover}.
     */
    function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32) {
        return keccak256(abi.encodePacked("\x19\x01", domainSeparator, structHash));
    }
}

File 12 of 20 : draft-EIP712.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "./ECDSA.sol";

/**
 * @dev https://eips.ethereum.org/EIPS/eip-712[EIP 712] is a standard for hashing and signing of typed structured data.
 *
 * The encoding specified in the EIP is very generic, and such a generic implementation in Solidity is not feasible,
 * thus this contract does not implement the encoding itself. Protocols need to implement the type-specific encoding
 * they need in their contracts using a combination of `abi.encode` and `keccak256`.
 *
 * This contract implements the EIP 712 domain separator ({_domainSeparatorV4}) that is used as part of the encoding
 * scheme, and the final step of the encoding to obtain the message digest that is then signed via ECDSA
 * ({_hashTypedDataV4}).
 *
 * The implementation of the domain separator was designed to be as efficient as possible while still properly updating
 * the chain id to protect against replay attacks on an eventual fork of the chain.
 *
 * NOTE: This contract implements the version of the encoding known as "v4", as implemented by the JSON RPC method
 * https://docs.metamask.io/guide/signing-data.html[`eth_signTypedDataV4` in MetaMask].
 *
 * _Available since v3.4._
 */
abstract contract EIP712 {
    /* solhint-disable var-name-mixedcase */
    // Cache the domain separator as an immutable value, but also store the chain id that it corresponds to, in order to
    // invalidate the cached domain separator if the chain id changes.
    bytes32 private immutable _CACHED_DOMAIN_SEPARATOR;
    uint256 private immutable _CACHED_CHAIN_ID;

    bytes32 private immutable _HASHED_NAME;
    bytes32 private immutable _HASHED_VERSION;
    bytes32 private immutable _TYPE_HASH;
    /* solhint-enable var-name-mixedcase */

    /**
     * @dev Initializes the domain separator and parameter caches.
     *
     * The meaning of `name` and `version` is specified in
     * https://eips.ethereum.org/EIPS/eip-712#definition-of-domainseparator[EIP 712]:
     *
     * - `name`: the user readable name of the signing domain, i.e. the name of the DApp or the protocol.
     * - `version`: the current major version of the signing domain.
     *
     * NOTE: These parameters cannot be changed except through a xref:learn::upgrading-smart-contracts.adoc[smart
     * contract upgrade].
     */
    constructor(string memory name, string memory version) {
        bytes32 hashedName = keccak256(bytes(name));
        bytes32 hashedVersion = keccak256(bytes(version));
        bytes32 typeHash = keccak256("EIP712Domain(string name,string version,uint256 chainId,address verifyingContract)");
        _HASHED_NAME = hashedName;
        _HASHED_VERSION = hashedVersion;
        _CACHED_CHAIN_ID = block.chainid;
        _CACHED_DOMAIN_SEPARATOR = _buildDomainSeparator(typeHash, hashedName, hashedVersion);
        _TYPE_HASH = typeHash;
    }

    /**
     * @dev Returns the domain separator for the current chain.
     */
    function _domainSeparatorV4() internal view returns (bytes32) {
        if (block.chainid == _CACHED_CHAIN_ID) {
            return _CACHED_DOMAIN_SEPARATOR;
        } else {
            return _buildDomainSeparator(_TYPE_HASH, _HASHED_NAME, _HASHED_VERSION);
        }
    }

    function _buildDomainSeparator(bytes32 typeHash, bytes32 name, bytes32 version) private view returns (bytes32) {
        return keccak256(
            abi.encode(
                typeHash,
                name,
                version,
                block.chainid,
                address(this)
            )
        );
    }

    /**
     * @dev Given an already https://eips.ethereum.org/EIPS/eip-712#definition-of-hashstruct[hashed struct], this
     * function returns the hash of the fully encoded EIP712 message for this domain.
     *
     * This hash can be used together with {ECDSA-recover} to obtain the signer of a message. For example:
     *
     * ```solidity
     * bytes32 digest = _hashTypedDataV4(keccak256(abi.encode(
     *     keccak256("Mail(address to,string contents)"),
     *     mailTo,
     *     keccak256(bytes(mailContents))
     * )));
     * address signer = ECDSA.recover(digest, signature);
     * ```
     */
    function _hashTypedDataV4(bytes32 structHash) internal view virtual returns (bytes32) {
        return ECDSA.toTypedDataHash(_domainSeparatorV4(), structHash);
    }
}

File 13 of 20 : Governed.sol
// SPDX-License-Identifier: MIT

pragma solidity 0.8.3;

import "@openzeppelin/contracts/utils/Context.sol";

/**
 * @dev Contract module which provides a basic access control mechanism, where
 * there is an account (governor) that can be granted exclusive access to
 * specific functions.
 *
 * By default, the governor account will be the one that deploys the contract. This
 * can later be changed with {transferGovernorship}.
 *
 */
contract Governed is Context {
    address public governor;
    address private proposedGovernor;

    event UpdatedGovernor(address indexed previousGovernor, address indexed proposedGovernor);

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

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

    /**
     * @dev Transfers governorship of the contract to a new account (`proposedGovernor`).
     * Can only be called by the current owner.
     */
    function transferGovernorship(address _proposedGovernor) external onlyGovernor {
        //solhint-disable-next-line reason-string
        require(_proposedGovernor != address(0), "proposed-governor-is-zero-address");
        proposedGovernor = _proposedGovernor;
    }

    /**
     * @dev Allows new governor to accept governorship of the contract.
     */
    function acceptGovernorship() external {
        //solhint-disable-next-line reason-string
        require(proposedGovernor == _msgSender(), "caller-is-not-the-proposed-governor");
        emit UpdatedGovernor(governor, proposedGovernor);
        governor = proposedGovernor;
        proposedGovernor = address(0);
    }
}

File 14 of 20 : Pausable.sol
// SPDX-License-Identifier: MIT

pragma solidity 0.8.3;

import "@openzeppelin/contracts/utils/Context.sol";

/**
 * @dev Contract module which allows children to implement an emergency stop
 * mechanism that can be triggered by an authorized account.
 *
 */
contract Pausable is Context {
    event Paused(address account);
    event Shutdown(address account);
    event Unpaused(address account);
    event Open(address account);

    bool public paused;
    bool public stopEverything;

    modifier whenNotPaused() {
        require(!paused, "Pausable: paused");
        _;
    }
    modifier whenPaused() {
        require(paused, "Pausable: not paused");
        _;
    }

    modifier whenNotShutdown() {
        require(!stopEverything, "Pausable: shutdown");
        _;
    }

    modifier whenShutdown() {
        require(stopEverything, "Pausable: not shutdown");
        _;
    }

    /// @dev Pause contract operations, if contract is not paused.
    function _pause() internal virtual whenNotPaused {
        paused = true;
        emit Paused(_msgSender());
    }

    /// @dev Unpause contract operations, allow only if contract is paused and not shutdown.
    function _unpause() internal virtual whenPaused whenNotShutdown {
        paused = false;
        emit Unpaused(_msgSender());
    }

    /// @dev Shutdown contract operations, if not already shutdown.
    function _shutdown() internal virtual whenNotShutdown {
        stopEverything = true;
        paused = true;
        emit Shutdown(_msgSender());
    }

    /// @dev Open contract operations, if contract is in shutdown state
    function _open() internal virtual whenShutdown {
        stopEverything = false;
        emit Open(_msgSender());
    }
}

File 15 of 20 : IAddressList.sol
// SPDX-License-Identifier: MIT

pragma solidity 0.8.3;

interface IAddressList {
    function add(address a) external returns (bool);

    function remove(address a) external returns (bool);

    function get(address a) external view returns (uint256);

    function contains(address a) external view returns (bool);

    function length() external view returns (uint256);

    function grantRole(bytes32 role, address account) external;
}

File 16 of 20 : IAddressListFactory.sol
// SPDX-License-Identifier: MIT

pragma solidity 0.8.3;

interface IAddressListFactory {
    function ours(address a) external view returns (bool);

    function listCount() external view returns (uint256);

    function listAt(uint256 idx) external view returns (address);

    function createList() external returns (address listaddr);
}

File 17 of 20 : IStrategy.sol
// SPDX-License-Identifier: MIT

pragma solidity 0.8.3;

interface IStrategy {
    function rebalance() external;

    function sweepERC20(address _fromToken) external;

    function withdraw(uint256 _amount) external;

    function feeCollector() external view returns (address);

    function isReservedToken(address _token) external view returns (bool);

    function migrate(address _newStrategy) external;

    function token() external view returns (address);

    function totalValue() external view returns (uint256);

    function pool() external view returns (address);
}

File 18 of 20 : PoolShareToken.sol
// SPDX-License-Identifier: MIT

pragma solidity 0.8.3;

import "@openzeppelin/contracts/token/ERC20/extensions/draft-ERC20Permit.sol";
import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "../Governed.sol";
import "../Pausable.sol";
import "../interfaces/bloq/IAddressList.sol";
import "../interfaces/bloq/IAddressListFactory.sol";

/// @title Holding pool share token
// solhint-disable no-empty-blocks
abstract contract PoolShareToken is ERC20Permit, Pausable, ReentrancyGuard, Governed {
    using SafeERC20 for IERC20;
    IERC20 public immutable token;
    IAddressList public immutable feeWhitelist;
    uint256 public constant MAX_BPS = 10_000;
    address public feeCollector; // fee collector address
    uint256 public withdrawFee; // withdraw fee for this pool

    event Deposit(address indexed owner, uint256 shares, uint256 amount);
    event Withdraw(address indexed owner, uint256 shares, uint256 amount);
    event UpdatedFeeCollector(address indexed previousFeeCollector, address indexed newFeeCollector);
    event UpdatedWithdrawFee(uint256 previousWithdrawFee, uint256 newWithdrawFee);

    constructor(
        string memory _name,
        string memory _symbol,
        address _token
    ) ERC20Permit(_name) ERC20(_name, _symbol) {
        token = IERC20(_token);
        IAddressListFactory factory = IAddressListFactory(0xded8217De022706A191eE7Ee0Dc9df1185Fb5dA3);
        IAddressList _feeWhitelist = IAddressList(factory.createList());
        feeWhitelist = _feeWhitelist;
    }

    /**
     * @notice Update fee collector address for this pool
     * @param _newFeeCollector new fee collector address
     */
    function updateFeeCollector(address _newFeeCollector) external onlyGovernor {
        require(_newFeeCollector != address(0), "fee-collector-address-is-zero");
        require(feeCollector != _newFeeCollector, "same-fee-collector");
        emit UpdatedFeeCollector(feeCollector, _newFeeCollector);
        feeCollector = _newFeeCollector;
    }

    /**
     * @notice Update withdraw fee for this pool
     * @dev Format: 1500 = 15% fee, 100 = 1%
     * @param _newWithdrawFee new withdraw fee
     */
    function updateWithdrawFee(uint256 _newWithdrawFee) external onlyGovernor {
        require(feeCollector != address(0), "fee-collector-not-set");
        require(_newWithdrawFee <= 10000, "withdraw-fee-limit-reached");
        require(withdrawFee != _newWithdrawFee, "same-withdraw-fee");
        emit UpdatedWithdrawFee(withdrawFee, _newWithdrawFee);
        withdrawFee = _newWithdrawFee;
    }

    /**
     * @notice Deposit ERC20 tokens and receive pool shares depending on the current share price.
     * @param _amount ERC20 token amount.
     */
    function deposit(uint256 _amount) external virtual nonReentrant whenNotPaused {
        _deposit(_amount);
    }

    /**
     * @notice Deposit ERC20 tokens with permit aka gasless approval.
     * @param _amount ERC20 token amount.
     * @param _deadline The time at which signature will expire
     * @param _v The recovery byte of the signature
     * @param _r Half of the ECDSA signature pair
     * @param _s Half of the ECDSA signature pair
     */
    function depositWithPermit(
        uint256 _amount,
        uint256 _deadline,
        uint8 _v,
        bytes32 _r,
        bytes32 _s
    ) external virtual nonReentrant whenNotPaused {
        IERC20Permit(address(token)).permit(_msgSender(), address(this), _amount, _deadline, _v, _r, _s);
        _deposit(_amount);
    }

    /**
     * @notice Withdraw collateral based on given shares and the current share price.
     * Withdraw fee, if any, will be deduced from given shares and transferred to feeCollector.
     * Burn remaining shares and return collateral.
     * @param _shares Pool shares. It will be in 18 decimals.
     */
    function withdraw(uint256 _shares) external virtual nonReentrant whenNotShutdown {
        _withdraw(_shares);
    }

    /**
     * @notice Withdraw collateral based on given shares and the current share price.
     * @dev Burn shares and return collateral. No withdraw fee will be assessed
     * when this function is called. Only some white listed address can call this function.
     * @param _shares Pool shares. It will be in 18 decimals.
     */
    function whitelistedWithdraw(uint256 _shares) external virtual nonReentrant whenNotShutdown {
        require(feeWhitelist.contains(_msgSender()), "not-a-white-listed-address");
        _withdrawWithoutFee(_shares);
    }

    /**
     * @notice Transfer tokens to multiple recipient
     * @dev Address array and amount array are 1:1 and are in order.
     * @param _recipients array of recipient addresses
     * @param _amounts array of token amounts
     * @return true/false
     */
    function multiTransfer(address[] memory _recipients, uint256[] memory _amounts) external returns (bool) {
        require(_recipients.length == _amounts.length, "input-length-mismatch");
        for (uint256 i = 0; i < _recipients.length; i++) {
            require(transfer(_recipients[i], _amounts[i]), "multi-transfer-failed");
        }
        return true;
    }

    /**
     * @notice Get price per share
     * @dev Return value will be in token defined decimals.
     */
    function pricePerShare() public view returns (uint256) {
        if (totalSupply() == 0 || totalValue() == 0) {
            return convertFrom18(1e18);
        }
        return (totalValue() * 1e18) / totalSupply();
    }

    /// @dev Convert from 18 decimals to token defined decimals. Default no conversion.
    function convertFrom18(uint256 _amount) public view virtual returns (uint256) {
        return _amount;
    }

    /// @dev Returns the token stored in the pool. It will be in token defined decimals.
    function tokensHere() public view virtual returns (uint256) {
        return token.balanceOf(address(this));
    }

    /**
     * @dev Returns sum of token locked in other contracts and token stored in the pool.
     * Default tokensHere. It will be in token defined decimals.
     */
    function totalValue() public view virtual returns (uint256);

    /**
     * @dev Hook that is called just before burning tokens. This withdraw collateral from withdraw queue
     * @param _share Pool share in 18 decimals
     */
    function _beforeBurning(uint256 _share) internal virtual returns (uint256) {}

    /**
     * @dev Hook that is called just after burning tokens.
     * @param _amount Collateral amount in collateral token defined decimals.
     */
    function _afterBurning(uint256 _amount) internal virtual returns (uint256) {
        token.safeTransfer(_msgSender(), _amount);
        return _amount;
    }

    /**
     * @dev Hook that is called just before minting new tokens. To be used i.e.
     * if the deposited amount is to be transferred from user to this contract.
     * @param _amount Collateral amount in collateral token defined decimals.
     */
    function _beforeMinting(uint256 _amount) internal virtual {
        token.safeTransferFrom(_msgSender(), address(this), _amount);
    }

    /**
     * @dev Hook that is called just after minting new tokens. To be used i.e.
     * if the deposited amount is to be transferred to a different contract.
     * @param _amount Collateral amount in collateral token defined decimals.
     */
    function _afterMinting(uint256 _amount) internal virtual {}

    /**
     * @dev Calculate shares to mint based on the current share price and given amount.
     * @param _amount Collateral amount in collateral token defined decimals.
     * @return share amount in 18 decimal
     */
    function _calculateShares(uint256 _amount) internal view returns (uint256) {
        require(_amount != 0, "amount-is-0");
        uint256 _share = ((_amount * 1e18) / pricePerShare());
        return _amount > ((_share * pricePerShare()) / 1e18) ? _share + 1 : _share;
    }

    /// @dev Deposit incoming token and mint pool token i.e. shares.
    function _deposit(uint256 _amount) internal {
        uint256 _shares = _calculateShares(_amount);
        _beforeMinting(_amount);
        _mint(_msgSender(), _shares);
        _afterMinting(_amount);
        emit Deposit(_msgSender(), _shares, _amount);
    }

    /// @dev Burns shares and returns the collateral value, after fee, of those.
    function _withdraw(uint256 _shares) internal {
        if (withdrawFee == 0) {
            _withdrawWithoutFee(_shares);
        } else {
            require(_shares != 0, "share-is-0");
            uint256 _fee = (_shares * withdrawFee) / MAX_BPS;
            uint256 _sharesAfterFee = _shares - _fee;
            uint256 _amountWithdrawn = _beforeBurning(_sharesAfterFee);
            // Recalculate proportional share on actual amount withdrawn
            uint256 _proportionalShares = _calculateShares(_amountWithdrawn);

            // Using convertFrom18() to avoid dust.
            // Pool share token is in 18 decimal and collatoral token decimal is <=18.
            // Anything less than 10**(18-collortalTokenDecimal) is dust.
            if (convertFrom18(_proportionalShares) < convertFrom18(_sharesAfterFee)) {
                // Recalculate shares to withdraw, fee and shareAfterFee
                _shares = (_proportionalShares * MAX_BPS) / (MAX_BPS - withdrawFee);
                _fee = _shares - _proportionalShares;
                _sharesAfterFee = _proportionalShares;
            }
            _burn(_msgSender(), _sharesAfterFee);
            _transfer(_msgSender(), feeCollector, _fee);
            _afterBurning(_amountWithdrawn);
            emit Withdraw(_msgSender(), _shares, _amountWithdrawn);
        }
    }

    /// @dev Burns shares and returns the collateral value of those.
    function _withdrawWithoutFee(uint256 _shares) internal {
        require(_shares != 0, "share-is-0");
        uint256 _amountWithdrawn = _beforeBurning(_shares);
        uint256 _proportionalShares = _calculateShares(_amountWithdrawn);
        if (convertFrom18(_proportionalShares) < convertFrom18(_shares)) {
            _shares = _proportionalShares;
        }
        _burn(_msgSender(), _shares);
        _afterBurning(_amountWithdrawn);
        emit Withdraw(_msgSender(), _shares, _amountWithdrawn);
    }
}

File 19 of 20 : VTokenBase.sol
// SPDX-License-Identifier: MIT

pragma solidity 0.8.3;

import "./PoolShareToken.sol";
import "../interfaces/vesper/IStrategy.sol";

contract VTokenBase is PoolShareToken {
    using SafeERC20 for IERC20;

    struct StrategyConfig {
        bool active;
        uint256 interestFee; // Strategy fee
        uint256 debtRate; //strategy can not borrow large amount in short durations. Can set big limit for trusted strategy
        uint256 lastRebalance;
        uint256 totalDebt; // Total outstanding debt strategy has
        uint256 totalLoss; // Total loss that strategy has realized
        uint256 totalProfit; // Total gain that strategy has realized
        uint256 debtRatio; // % of asset allocation
    }

    mapping(address => StrategyConfig) public strategy;
    uint256 public totalDebtRatio; // this will keep some buffer amount in pool
    uint256 public totalDebt;
    address[] public strategies;
    address[] public withdrawQueue;

    IAddressList public keepers;
    IAddressList public maintainers;
    address internal constant WETH = 0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2;
    event StrategyAdded(address indexed strategy, uint256 interestFee, uint256 debtRatio, uint256 debtRate);
    event StrategyMigrated(
        address indexed oldStrategy,
        address indexed newStrategy,
        uint256 interestFee,
        uint256 debtRatio,
        uint256 debtRate
    );
    event UpdatedInterestFee(address indexed strategy, uint256 interestFee);
    event UpdatedStrategyDebtParams(address indexed strategy, uint256 debtRatio, uint256 debtRate);
    event EarningReported(
        address indexed strategy,
        uint256 profit,
        uint256 loss,
        uint256 payback,
        uint256 strategyDebt,
        uint256 poolDebt,
        uint256 creditLine
    );

    constructor(
        string memory name,
        string memory symbol,
        address _token // solhint-disable-next-line no-empty-blocks
    ) PoolShareToken(name, symbol, _token) {}

    modifier onlyKeeper() {
        require(keepers.contains(_msgSender()), "caller-is-not-a-keeper");
        _;
    }

    modifier onlyMaintainer() {
        require(maintainers.contains(_msgSender()), "caller-is-not-maintainer");
        _;
    }

    modifier onlyStrategy() {
        require(strategy[_msgSender()].active, "caller-is-not-active-strategy");
        _;
    }

    ///////////////////////////// Only Keeper ///////////////////////////////
    function pause() external onlyKeeper {
        _pause();
    }

    function unpause() external onlyKeeper {
        _unpause();
    }

    function shutdown() external onlyKeeper {
        _shutdown();
    }

    function open() external onlyKeeper {
        _open();
    }

    ///////////////////////////////////////////////////////////////////////////

    ////////////////////////////// Only Governor //////////////////////////////

    /**
     * @notice Create keeper and maintainer list
     * @dev Create lists and add governor into the list.
     * NOTE: Any function with onlyKeeper and onlyMaintainer modifier will not work until this function is called.
     * NOTE: Due to gas constraint this function cannot be called in constructor.
     */
    function init() external onlyGovernor {
        require(address(keepers) == address(0), "list-already-created");
        IAddressListFactory _factory = IAddressListFactory(0xded8217De022706A191eE7Ee0Dc9df1185Fb5dA3);
        keepers = IAddressList(_factory.createList());
        maintainers = IAddressList(_factory.createList());
        // List creator i.e. governor can do job of keeper and maintainer.
        keepers.add(governor);
        maintainers.add(governor);
    }

    /**
     * @notice Add given address in provided address list.
     * @dev Use it to add keeper in keepers list and to add address in feeWhitelist
     * @param _listToUpdate address of AddressList contract.
     * @param _addressToAdd address which we want to add in AddressList.
     */
    function addInList(address _listToUpdate, address _addressToAdd) external onlyKeeper {
        require(IAddressList(_listToUpdate).add(_addressToAdd), "add-in-list-failed");
    }

    /**
     * @notice Remove given address from provided address list.
     * @dev Use it to remove keeper from keepers list and to remove address from feeWhitelist
     * @param _listToUpdate address of AddressList contract.
     * @param _addressToRemove address which we want to remove from AddressList.
     */
    function removeFromList(address _listToUpdate, address _addressToRemove) external onlyKeeper {
        require(IAddressList(_listToUpdate).remove(_addressToRemove), "remove-from-list-failed");
    }

    /// @dev Add strategy
    function addStrategy(
        address _strategy,
        uint256 _interestFee,
        uint256 _debtRatio,
        uint256 _debtRate
    ) public onlyGovernor {
        require(_strategy != address(0), "strategy-address-is-zero");
        require(!strategy[_strategy].active, "strategy-already-added");
        totalDebtRatio = totalDebtRatio + _debtRatio;
        require(totalDebtRatio <= MAX_BPS, "totalDebtRatio-above-max_bps");
        require(_interestFee <= MAX_BPS, "interest-fee-above-max_bps");
        StrategyConfig memory newStrategy =
            StrategyConfig({
                active: true,
                interestFee: _interestFee,
                debtRatio: _debtRatio,
                totalDebt: 0,
                totalProfit: 0,
                totalLoss: 0,
                debtRate: _debtRate,
                lastRebalance: block.number
            });
        strategy[_strategy] = newStrategy;
        strategies.push(_strategy);
        withdrawQueue.push(_strategy);
        emit StrategyAdded(_strategy, _interestFee, _debtRatio, _debtRate);
    }

    function migrateStrategy(address _old, address _new) external onlyGovernor {
        require(_new != address(0), "new-address-is-zero");
        require(_old != address(0), "old-address-is-zero");
        require(IStrategy(_new).pool() == address(this), "not-valid-new-strategy");
        require(IStrategy(_old).pool() == address(this), "not-valid-old-strategy");
        require(strategy[_old].active, "strategy-already-migrated");
        require(!strategy[_new].active, "strategy-already-added");
        StrategyConfig memory _newStrategy =
            StrategyConfig({
                active: true,
                interestFee: strategy[_old].interestFee,
                debtRatio: strategy[_old].debtRatio,
                totalDebt: strategy[_old].totalDebt,
                totalProfit: 0,
                totalLoss: 0,
                debtRate: strategy[_old].debtRate,
                lastRebalance: strategy[_old].lastRebalance
            });
        strategy[_old].debtRatio = 0;
        strategy[_old].totalDebt = 0;
        strategy[_old].debtRate = 0;
        strategy[_old].active = false;
        strategy[_new] = _newStrategy;

        IStrategy(_old).migrate(_new);

        // Strategies and withdrawQueue has same length but we still want
        // to iterate over them in different loop.
        for (uint256 i = 0; i < strategies.length; i++) {
            if (strategies[i] == _old) {
                strategies[i] = _new;
                break;
            }
        }
        for (uint256 i = 0; i < withdrawQueue.length; i++) {
            if (withdrawQueue[i] == _old) {
                withdrawQueue[i] = _new;
                break;
            }
        }
        emit StrategyMigrated(
            _old,
            _new,
            strategy[_new].interestFee,
            strategy[_new].debtRatio,
            strategy[_new].debtRate
        );
    }

    /**
     * @dev Revoke and remove strategy from array. Update withdraw queue.
     * Withdraw queue order should not change after remove.
     * Strategy can be removed only after it has paid all debt.
     * Use migrate strategy if debt is not paid and want to upgrade strat.
     */
    function removeStrategy(uint256 _index) external onlyGovernor {
        address _strategy = strategies[_index];
        require(strategy[_strategy].active, "strategy-not-active");
        require(strategy[_strategy].totalDebt == 0, "strategy-has-debt");
        delete strategy[_strategy];
        strategies[_index] = strategies[strategies.length - 1];
        strategies.pop();
        address[] memory _withdrawQueue = new address[](strategies.length);
        uint256 j;
        // After above update, withdrawQueue.length > strategies.length
        for (uint256 i = 0; i < withdrawQueue.length; i++) {
            if (withdrawQueue[i] != _strategy) {
                _withdrawQueue[j] = withdrawQueue[i];
                j++;
            }
        }
        withdrawQueue = _withdrawQueue;
    }

    function updateInterestFee(address _strategy, uint256 _interestFee) external onlyGovernor {
        require(_strategy != address(0), "strategy-address-is-zero");
        require(strategy[_strategy].active, "strategy-not-active");
        require(_interestFee <= MAX_BPS, "interest-fee-above-max_bps");
        strategy[_strategy].interestFee = _interestFee;
        emit UpdatedInterestFee(_strategy, _interestFee);
    }

    /**
     * @dev Update debt ratio.  A strategy is retired when debtRatio is 0
     */
    function updateDebtRatio(address _strategy, uint256 _debtRatio) external onlyMaintainer {
        require(strategy[_strategy].active, "strategy-not-active");
        totalDebtRatio = totalDebtRatio - strategy[_strategy].debtRatio + _debtRatio;
        require(totalDebtRatio <= MAX_BPS, "totalDebtRatio-above-max_bps");
        strategy[_strategy].debtRatio = _debtRatio;
        emit UpdatedStrategyDebtParams(_strategy, _debtRatio, strategy[_strategy].debtRate);
    }

    /**
     * @dev Update debtRate per block.
     */
    function updateDebtRate(address _strategy, uint256 _debtRate) external onlyKeeper {
        require(strategy[_strategy].active, "strategy-not-active");
        strategy[_strategy].debtRate = _debtRate;
        emit UpdatedStrategyDebtParams(_strategy, strategy[_strategy].debtRatio, _debtRate);
    }

    /// @dev update withdrawal queue
    function updateWithdrawQueue(address[] memory _withdrawQueue) external onlyMaintainer {
        uint256 _length = _withdrawQueue.length;
        require(_length > 0, "withdrawal-queue-blank");
        require(_length == withdrawQueue.length && _length == strategies.length, "incorrect-withdraw-queue-length");
        for (uint256 i = 0; i < _length; i++) {
            require(strategy[_withdrawQueue[i]].active, "invalid-strategy");
        }
        withdrawQueue = _withdrawQueue;
    }

    ///////////////////////////////////////////////////////////////////////////

    /**
     @dev Strategy call this in regular interval.
     @param _profit yield generated by strategy. Strategy get performance fee on this amount
     @param _loss  Reduce debt ,also reduce debtRatio, increase loss in record.
     @param _payback strategy willing to payback outstanding above debtLimit. no performance fee on this amount. 
      when governance has reduced debtRatio of strategy, strategy will report profit and payback amount separately. 
     */
    function reportEarning(
        uint256 _profit,
        uint256 _loss,
        uint256 _payback
    ) external onlyStrategy {
        require(token.balanceOf(_msgSender()) >= (_profit + _payback), "insufficient-balance-in-strategy");
        if (_loss != 0) {
            _reportLoss(_msgSender(), _loss);
        }

        uint256 _overLimitDebt = _excessDebt(_msgSender());
        uint256 _actualPayback = _min(_overLimitDebt, _payback);
        if (_actualPayback != 0) {
            strategy[_msgSender()].totalDebt -= _actualPayback;
            totalDebt -= _actualPayback;
        }
        uint256 _creditLine = _availableCreditLimit(_msgSender());
        if (_creditLine != 0) {
            strategy[_msgSender()].totalDebt += _creditLine;
            totalDebt += _creditLine;
        }
        uint256 _totalPayback = _profit + _actualPayback;
        if (_totalPayback < _creditLine) {
            token.safeTransfer(_msgSender(), _creditLine - _totalPayback);
        } else if (_totalPayback > _creditLine) {
            token.safeTransferFrom(_msgSender(), address(this), _totalPayback - _creditLine);
        }
        if (_profit != 0) {
            strategy[_msgSender()].totalProfit += _profit;
            _transferInterestFee(_profit);
        }
        emit EarningReported(
            _msgSender(),
            _profit,
            _loss,
            _actualPayback,
            strategy[_msgSender()].totalDebt,
            totalDebt,
            _creditLine
        );
    }

    /**
     * @dev Transfer given ERC20 token to feeCollector
     * @param _fromToken Token address to sweep
     */
    function sweepERC20(address _fromToken) external virtual onlyKeeper {
        require(_fromToken != address(token), "not-allowed-to-sweep");
        require(feeCollector != address(0), "fee-collector-not-set");
        IERC20(_fromToken).safeTransfer(feeCollector, IERC20(_fromToken).balanceOf(address(this)));
    }

    /**
    @dev debt above current debt limit
    */
    function excessDebt(address _strategy) external view returns (uint256) {
        return _excessDebt(_strategy);
    }

    /**
    @dev available credit limit is calculated based on current debt of pool and strategy, current debt limit of pool and strategy. 
    // credit available = min(pool's debt limit, strategy's debt limit, max debt per rebalance)
    // when some strategy do not pay back outstanding debt, this impact credit line of other strategy if totalDebt of pool >= debtLimit of pool
    */
    function availableCreditLimit(address _strategy) external view returns (uint256) {
        return _availableCreditLimit(_strategy);
    }

    /**
     * @notice Get total debt of given strategy
     */
    function totalDebtOf(address _strategy) external view returns (uint256) {
        return strategy[_strategy].totalDebt;
    }

    /// @dev Returns total value of vesper pool, in terms of collateral token
    function totalValue() public view override returns (uint256) {
        return totalDebt + tokensHere();
    }

    function _withdrawCollateral(uint256 _amount) internal virtual {
        // Withdraw amount from queue
        uint256 _debt;
        uint256 _balanceAfter;
        uint256 _balanceBefore;
        uint256 _amountWithdrawn;
        uint256 _amountNeeded = _amount;
        uint256 _totalAmountWithdrawn;
        for (uint256 i; i < withdrawQueue.length; i++) {
            _debt = strategy[withdrawQueue[i]].totalDebt;
            if (_debt == 0) {
                continue;
            }
            if (_amountNeeded > _debt) {
                // Should not withdraw more than current debt of strategy.
                _amountNeeded = _debt;
            }
            _balanceBefore = tokensHere();
            //solhint-disable no-empty-blocks
            try IStrategy(withdrawQueue[i]).withdraw(_amountNeeded) {} catch {
                continue;
            }
            _balanceAfter = tokensHere();
            _amountWithdrawn = _balanceAfter - _balanceBefore;
            // Adjusting totalDebt. Assuming that during next reportEarning(), strategy will report loss if amountWithdrawn < _amountNeeded
            strategy[withdrawQueue[i]].totalDebt -= _amountWithdrawn;
            totalDebt -= _amountWithdrawn;
            _totalAmountWithdrawn += _amountWithdrawn;
            if (_totalAmountWithdrawn >= _amount) {
                // withdraw done
                break;
            }
            _amountNeeded = _amount - _totalAmountWithdrawn;
        }
    }

    /**
     * @dev Before burning hook.
     * withdraw amount from strategies
     */
    function _beforeBurning(uint256 _share) internal override returns (uint256 actualWithdrawn) {
        uint256 _amount = (_share * pricePerShare()) / 1e18;
        uint256 _balanceNow = tokensHere();
        if (_amount > _balanceNow) {
            _withdrawCollateral(_amount - _balanceNow);
            _balanceNow = tokensHere();
        }
        actualWithdrawn = _balanceNow < _amount ? _balanceNow : _amount;
    }

    /**
    @dev when a strategy report loss, its debtRatio decrease to get fund back quickly.
    */
    function _reportLoss(address _strategy, uint256 _loss) internal {
        uint256 _currentDebt = strategy[_strategy].totalDebt;
        require(_currentDebt >= _loss, "loss-too-high");
        strategy[_strategy].totalLoss += _loss;
        strategy[_strategy].totalDebt -= _loss;
        totalDebt -= _loss;
        uint256 _deltaDebtRatio = _min((_loss * MAX_BPS) / totalValue(), strategy[_strategy].debtRatio);
        strategy[_strategy].debtRatio -= _deltaDebtRatio;
        totalDebtRatio -= _deltaDebtRatio;
    }

    function _excessDebt(address _strategy) internal view returns (uint256) {
        uint256 _currentDebt = strategy[_strategy].totalDebt;
        if (stopEverything) {
            return _currentDebt;
        }
        uint256 _maxDebt = (strategy[_strategy].debtRatio * totalValue()) / MAX_BPS;
        return _currentDebt > _maxDebt ? (_currentDebt - _maxDebt) : 0;
    }

    function _availableCreditLimit(address _strategy) internal view returns (uint256) {
        if (stopEverything) {
            return 0;
        }
        uint256 _totalValue = totalValue();
        uint256 _maxDebt = (strategy[_strategy].debtRatio * _totalValue) / MAX_BPS;
        uint256 _currentDebt = strategy[_strategy].totalDebt;
        if (_currentDebt >= _maxDebt) {
            return 0;
        }
        uint256 _poolDebtLimit = (totalDebtRatio * _totalValue) / MAX_BPS;
        if (totalDebt >= _poolDebtLimit) {
            return 0;
        }
        uint256 _available = _maxDebt - _currentDebt;
        _available = _min(_min(tokensHere(), _available), _poolDebtLimit - totalDebt);
        _available = _min(
            (block.number - strategy[_strategy].lastRebalance) * strategy[_strategy].debtRate,
            _available
        );
        return _available;
    }

    /**
    @dev strategy get interest fee in pool share token
    */
    function _transferInterestFee(uint256 _profit) internal {
        uint256 _fee = (_profit * strategy[_msgSender()].interestFee) / MAX_BPS;
        if (_fee != 0) {
            _fee = _calculateShares(_fee);
            _mint(_msgSender(), _fee);
        }
    }

    function _min(uint256 a, uint256 b) internal pure returns (uint256) {
        return a < b ? a : b;
    }
}

File 20 of 20 : VUNI.sol
// SPDX-License-Identifier: MIT

pragma solidity 0.8.3;

import "./VTokenBase.sol";

//solhint-disable no-empty-blocks
contract VUNI is VTokenBase {
    string public constant VERSION = "3.0.2";

    // UNI = 0x1f9840a85d5aF5bf1D1762F925BDADdC4201F984
    constructor() VTokenBase("vUNI Pool", "vUNI", 0x1f9840a85d5aF5bf1D1762F925BDADdC4201F984) {}
}

Settings
{
  "evmVersion": "istanbul",
  "libraries": {},
  "metadata": {
    "bytecodeHash": "ipfs",
    "useLiteralContent": true
  },
  "optimizer": {
    "enabled": true,
    "runs": 200
  },
  "remappings": [],
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "abi"
      ]
    }
  }
}

Contract Security Audit

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":false,"internalType":"uint256","name":"shares","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Deposit","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"strategy","type":"address"},{"indexed":false,"internalType":"uint256","name":"profit","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"loss","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"payback","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"strategyDebt","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"poolDebt","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"creditLine","type":"uint256"}],"name":"EarningReported","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Open","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Shutdown","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"strategy","type":"address"},{"indexed":false,"internalType":"uint256","name":"interestFee","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"debtRatio","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"debtRate","type":"uint256"}],"name":"StrategyAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"oldStrategy","type":"address"},{"indexed":true,"internalType":"address","name":"newStrategy","type":"address"},{"indexed":false,"internalType":"uint256","name":"interestFee","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"debtRatio","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"debtRate","type":"uint256"}],"name":"StrategyMigrated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousFeeCollector","type":"address"},{"indexed":true,"internalType":"address","name":"newFeeCollector","type":"address"}],"name":"UpdatedFeeCollector","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousGovernor","type":"address"},{"indexed":true,"internalType":"address","name":"proposedGovernor","type":"address"}],"name":"UpdatedGovernor","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"strategy","type":"address"},{"indexed":false,"internalType":"uint256","name":"interestFee","type":"uint256"}],"name":"UpdatedInterestFee","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"strategy","type":"address"},{"indexed":false,"internalType":"uint256","name":"debtRatio","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"debtRate","type":"uint256"}],"name":"UpdatedStrategyDebtParams","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"previousWithdrawFee","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"newWithdrawFee","type":"uint256"}],"name":"UpdatedWithdrawFee","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":false,"internalType":"uint256","name":"shares","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Withdraw","type":"event"},{"inputs":[],"name":"DOMAIN_SEPARATOR","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_BPS","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"VERSION","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"acceptGovernorship","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_listToUpdate","type":"address"},{"internalType":"address","name":"_addressToAdd","type":"address"}],"name":"addInList","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_strategy","type":"address"},{"internalType":"uint256","name":"_interestFee","type":"uint256"},{"internalType":"uint256","name":"_debtRatio","type":"uint256"},{"internalType":"uint256","name":"_debtRate","type":"uint256"}],"name":"addStrategy","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_strategy","type":"address"}],"name":"availableCreditLimit","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"convertFrom18","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"subtractedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"deposit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"uint256","name":"_deadline","type":"uint256"},{"internalType":"uint8","name":"_v","type":"uint8"},{"internalType":"bytes32","name":"_r","type":"bytes32"},{"internalType":"bytes32","name":"_s","type":"bytes32"}],"name":"depositWithPermit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_strategy","type":"address"}],"name":"excessDebt","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"feeCollector","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"feeWhitelist","outputs":[{"internalType":"contract IAddressList","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"governor","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"init","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"keepers","outputs":[{"internalType":"contract IAddressList","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maintainers","outputs":[{"internalType":"contract IAddressList","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_old","type":"address"},{"internalType":"address","name":"_new","type":"address"}],"name":"migrateStrategy","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"_recipients","type":"address[]"},{"internalType":"uint256[]","name":"_amounts","type":"uint256[]"}],"name":"multiTransfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"nonces","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"open","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"},{"internalType":"uint256","name":"deadline","type":"uint256"},{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"}],"name":"permit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"pricePerShare","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_listToUpdate","type":"address"},{"internalType":"address","name":"_addressToRemove","type":"address"}],"name":"removeFromList","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_index","type":"uint256"}],"name":"removeStrategy","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_profit","type":"uint256"},{"internalType":"uint256","name":"_loss","type":"uint256"},{"internalType":"uint256","name":"_payback","type":"uint256"}],"name":"reportEarning","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"shutdown","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"stopEverything","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"strategies","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"strategy","outputs":[{"internalType":"bool","name":"active","type":"bool"},{"internalType":"uint256","name":"interestFee","type":"uint256"},{"internalType":"uint256","name":"debtRate","type":"uint256"},{"internalType":"uint256","name":"lastRebalance","type":"uint256"},{"internalType":"uint256","name":"totalDebt","type":"uint256"},{"internalType":"uint256","name":"totalLoss","type":"uint256"},{"internalType":"uint256","name":"totalProfit","type":"uint256"},{"internalType":"uint256","name":"debtRatio","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_fromToken","type":"address"}],"name":"sweepERC20","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"token","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tokensHere","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalDebt","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_strategy","type":"address"}],"name":"totalDebtOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalDebtRatio","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalValue","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_proposedGovernor","type":"address"}],"name":"transferGovernorship","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_strategy","type":"address"},{"internalType":"uint256","name":"_debtRate","type":"uint256"}],"name":"updateDebtRate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_strategy","type":"address"},{"internalType":"uint256","name":"_debtRatio","type":"uint256"}],"name":"updateDebtRatio","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_newFeeCollector","type":"address"}],"name":"updateFeeCollector","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_strategy","type":"address"},{"internalType":"uint256","name":"_interestFee","type":"uint256"}],"name":"updateInterestFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newWithdrawFee","type":"uint256"}],"name":"updateWithdrawFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"_withdrawQueue","type":"address[]"}],"name":"updateWithdrawQueue","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_shares","type":"uint256"}],"name":"whitelistedWithdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_shares","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"withdrawQueue","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"}]

6101806040527f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c9610120523480156200003757600080fd5b50604051806040016040528060098152602001681d95539248141bdbdb60ba1b8152506040518060400160405280600481526020016376554e4960e01b815250731f9840a85d5af5bf1d1762f925bdaddc4201f9848282828280604051806040016040528060018152602001603160f81b81525085858160039080519060200190620000c59291906200026e565b508051620000db9060049060208401906200026e565b5050825160209384012082519284019290922060c083815260e08290524660a0818152604080517f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f818a0181905281830198909852606081019590955260808086019390935230858301528051808603909201825293909201928390528151919095012090935250610100526001600755600880546001600160a01b03191633908117909155915081906000907fd4459d5b8b913cab0244230fd9b1c08b6ceace7fe9230e60d0f74cbffdf849d0908290a3506001600160601b0319606082901b166101405260408051630fab4d2560e01b8152905173ded8217de022706a191ee7ee0dc9df1185fb5da3916000918391630fab4d2591600480830192602092919082900301818787803b1580156200021357600080fd5b505af115801562000228573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906200024e919062000314565b60601b6001600160601b0319166101605250620003819650505050505050565b8280546200027c9062000344565b90600052602060002090601f016020900481019282620002a05760008555620002eb565b82601f10620002bb57805160ff1916838001178555620002eb565b82800160010185558215620002eb579182015b82811115620002eb578251825591602001919060010190620002ce565b50620002f9929150620002fd565b5090565b5b80821115620002f95760008155600101620002fe565b60006020828403121562000326578081fd5b81516001600160a01b03811681146200033d578182fd5b9392505050565b600181811c908216806200035957607f821691505b602082108114156200037b57634e487b7160e01b600052602260045260246000fd5b50919050565b60805160a05160c05160e05161010051610120516101405160601c6101605160601c6156ea6200042c6000396000818161086301526138680152600081816108340152818161094e01528181610b2d01528181610b7a0152818161151c015281816127e4015281816131d401528181614bf10152614c2901526000612eaf01526000614225015260006142740152600061424f015260006141d2015260006141fb01526156ea6000f3fe608060405234801561001057600080fd5b50600436106103ba5760003560e01c806399530b06116101f4578063d574ea3d1161011a578063fc0c546a116100ad578063fcfff16f1161007c578063fcfff16f1461088e578063fd967f4714610896578063ff643a7c1461089f578063ffa1ad74146108b2576103ba565b8063fc0c546a1461082f578063fc0e74d114610856578063fc7678101461085e578063fc7b9c1814610885576103ba565b8063e1c7392a116100e9578063e1c7392a14610805578063e941fa781461080d578063f3b27bc314610816578063fb589de21461081e576103ba565b8063d574ea3d14610793578063daf635de146107a6578063dd62ed3e146107b9578063e00af4a7146107f2576103ba565b8063b8cb343d11610192578063d2c35ce811610161578063d2c35ce814610752578063d4c3eea014610765578063d505accf1461076d578063d53ddc2614610780576103ba565b8063b8cb343d14610711578063c0cbbca614610719578063c415b95c1461072c578063d20ed3ef1461073f576103ba565b8063a9059cbb116101ce578063a9059cbb146106c5578063b64321ec146106d8578063b6aa515b146106eb578063b6b55f25146106fe576103ba565b806399530b061461067e5780639f2b283314610686578063a457c2d7146106b2576103ba565b80633f4ba83a116102e457806370a0823111610277578063854f4d8011610246578063854f4d801461063d5780638f88d18c14610650578063951dc22c1461066357806395d89b4114610676576103ba565b806370a08231146105fc5780637b62f0701461060f5780637ecebe00146106225780638456cb5914610635576103ba565b80635c975abb116102b35780635c975abb146105b657806362518ddf146105c357806367187d3d146105d65780636cb56d19146105e9576103ba565b80633f4ba83a146105765780634938649a1461057e57806349eeb860146105905780634a970be7146105a3576103ba565b80631e89d5451161035c5780632e1a7d4d1161032b5780632e1a7d4d14610539578063313ce5671461054c5780633644e5151461055b5780633950935114610563576103ba565b80631e89d54514610478578063228bfd9f1461048b57806323b872dd1461051d5780632df9eab914610530576103ba565b80630c340a24116103985780630c340a24146104155780630dd21b6c1461044057806318160ddd146104535780631e751ac114610465576103ba565b806305bed046146103bf57806306fdde03146103d4578063095ea7b3146103f2575b600080fd5b6103d26103cd366004615353565b6108d6565b005b6103dc610c4d565b6040516103e991906153e0565b60405180910390f35b6104056104003660046151af565b610cdf565b60405190151581526020016103e9565b600854610428906001600160a01b031681565b6040516001600160a01b0390911681526020016103e9565b6103d261044e3660046151da565b610cf5565b6002545b6040519081526020016103e9565b6103d26104733660046150ca565b61104a565b610405610486366004615247565b6111af565b6104e0610499366004615092565b600c602052600090815260409020805460018201546002830154600384015460048501546005860154600687015460079097015460ff909616969495939492939192909188565b6040805198151589526020890197909752958701949094526060860192909252608085015260a084015260c083015260e0820152610100016103e9565b61040561052b366004615102565b6112be565b610457600d5481565b6103d2610547366004615323565b611371565b604051601281526020016103e9565b6104576113d2565b6104056105713660046151af565b6113e1565b6103d2611418565b60065461040590610100900460ff1681565b601254610428906001600160a01b031681565b6103d26105b136600461537e565b6114c7565b6006546104059060ff1681565b6104286105d1366004615323565b6115db565b6103d26105e43660046150ca565b611605565b6103d26105f73660046150ca565b611771565b61045761060a366004615092565b611f4e565b6103d261061d3660046151af565b611f6d565b610457610630366004615092565b6120ce565b6103d26120ee565b6103d261064b366004615214565b61219b565b6103d261065e3660046151af565b6123d1565b601154610428906001600160a01b031681565b6103dc6125bb565b6104576125ca565b610457610694366004615092565b6001600160a01b03166000908152600c602052604090206004015490565b6104056106c03660046151af565b612623565b6104056106d33660046151af565b6126b4565b6104576106e6366004615092565b6126c1565b6103d26106f9366004615092565b6126cc565b6103d261070c366004615323565b612778565b6104576127cc565b6103d2610727366004615323565b612866565b600a54610428906001600160a01b031681565b6103d261074d3660046151af565b612bde565b6103d2610760366004615092565b612d15565b610457612e44565b6103d261077b366004615142565b612e5b565b61045761078e366004615092565b612fbf565b6104286107a1366004615323565b612fca565b6103d26107b4366004615323565b612fda565b6104576107c73660046150ca565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b6103d2610800366004615092565b61312d565b6103d2613332565b610457600b5481565b6103d26135e8565b61045761082c366004615323565b90565b6104287f000000000000000000000000000000000000000000000000000000000000000081565b6103d26136b4565b6104287f000000000000000000000000000000000000000000000000000000000000000081565b610457600e5481565b6103d2613761565b61045761271081565b6103d26108ad366004615323565b61380e565b6103dc60405180604001604052806005815260200164199718171960d91b81525081565b336000908152600c602052604090205460ff1661093a5760405162461bcd60e51b815260206004820152601d60248201527f63616c6c65722d69732d6e6f742d6163746976652d737472617465677900000060448201526064015b60405180910390fd5b6109448184615589565b6001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000166370a08231336040516001600160e01b031960e084901b1681526001600160a01b03909116600482015260240160206040518083038186803b1580156109b357600080fd5b505afa1580156109c7573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109eb919061533b565b1015610a395760405162461bcd60e51b815260206004820181905260248201527f696e73756666696369656e742d62616c616e63652d696e2d73747261746567796044820152606401610931565b8115610a4957610a49338361395a565b6000610a5433613ac8565b90506000610a628284613b5a565b90508015610aab57336000908152600c602052604081206004018054839290610a8c9084906155e0565b9250508190555080600e6000828254610aa591906155e0565b90915550505b6000610ab633613b70565b90508015610aff57336000908152600c602052604081206004018054839290610ae0908490615589565b9250508190555080600e6000828254610af99190615589565b90915550505b6000610b0b8388615589565b905081811015610b5957610b5433610b2383856155e0565b6001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169190613cb8565b610ba2565b81811115610ba257610ba23330610b7085856155e0565b6001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016929190613d1b565b8615610bd957336000908152600c602052604081206006018054899290610bca908490615589565b90915550610bd9905087613d59565b336000818152600c602090815260409182902060040154600e5483518c81529283018b90528284018890526060830191909152608082015260a0810185905290517f29c6c60e040fcd722949346bda66341e8859b20b9a2124a625326ad10373391b9181900360c00190a250505050505050565b606060038054610c5c90615623565b80601f0160208091040260200160405190810160405280929190818152602001828054610c8890615623565b8015610cd55780601f10610caa57610100808354040283529160200191610cd5565b820191906000526020600020905b815481529060010190602001808311610cb857829003601f168201915b5050505050905090565b6000610cec338484613da2565b50600192915050565b6008546001600160a01b03163314610d1f5760405162461bcd60e51b815260040161093190615443565b6001600160a01b038416610d705760405162461bcd60e51b815260206004820152601860248201527773747261746567792d616464726573732d69732d7a65726f60401b6044820152606401610931565b6001600160a01b0384166000908152600c602052604090205460ff1615610dd25760405162461bcd60e51b81526020600482015260166024820152751cdd1c985d1959de4b585b1c9958591e4b585919195960521b6044820152606401610931565b81600d54610de09190615589565b600d8190556127101015610e365760405162461bcd60e51b815260206004820152601c60248201527f746f74616c44656274526174696f2d61626f76652d6d61785f627073000000006044820152606401610931565b612710831115610e885760405162461bcd60e51b815260206004820152601a60248201527f696e7465726573742d6665652d61626f76652d6d61785f6270730000000000006044820152606401610931565b600060405180610100016040528060011515815260200185815260200183815260200143815260200160008152602001600081526020016000815260200184815250905080600c6000876001600160a01b03166001600160a01b0316815260200190815260200160002060008201518160000160006101000a81548160ff0219169083151502179055506020820151816001015560408201518160020155606082015181600301556080820151816004015560a0820151816005015560c0820151816006015560e08201518160070155905050600f859080600181540180825580915050600190039060005260206000200160009091909190916101000a8154816001600160a01b0302191690836001600160a01b031602179055506010859080600181540180825580915050600190039060005260206000200160009091909190916101000a8154816001600160a01b0302191690836001600160a01b03160217905550846001600160a01b03167f5ec27a4fa537fc86d0d17d84e0ee3172c9d253c78cc4ab5c69ee99c5f7084f5185858560405161103b939291909283526020830191909152604082015260600190565b60405180910390a25050505050565b6011546001600160a01b0316635dbe47e8336040516001600160e01b031960e084901b1681526001600160a01b03909116600482015260240160206040518083038186803b15801561109b57600080fd5b505afa1580156110af573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110d39190615303565b6110ef5760405162461bcd60e51b815260040161093190615413565b604051630a3b0a4f60e01b81526001600160a01b038281166004830152831690630a3b0a4f90602401602060405180830381600087803b15801561113257600080fd5b505af1158015611146573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061116a9190615303565b6111ab5760405162461bcd60e51b81526020600482015260126024820152711859190b5a5b8b5b1a5cdd0b59985a5b195960721b6044820152606401610931565b5050565b600081518351146111fa5760405162461bcd60e51b81526020600482015260156024820152740d2dce0eae85ad8cadccee8d05adad2e6dac2e8c6d605b1b6044820152606401610931565b60005b83518110156112b45761125e84828151811061122957634e487b7160e01b600052603260045260246000fd5b602002602001015184838151811061125157634e487b7160e01b600052603260045260246000fd5b60200260200101516126b4565b6112a25760405162461bcd60e51b81526020600482015260156024820152741b5d5b1d1a4b5d1c985b9cd9995c8b59985a5b1959605a1b6044820152606401610931565b806112ac81615658565b9150506111fd565b5060019392505050565b60006112cb848484613ebe565b6001600160a01b0384166000908152600160209081526040808320338452909152902054828110156113505760405162461bcd60e51b815260206004820152602860248201527f45524332303a207472616e7366657220616d6f756e74206578636565647320616044820152676c6c6f77616e636560c01b6064820152608401610931565b611364853361135f86856155e0565b613da2565b60019150505b9392505050565b600260075414156113945760405162461bcd60e51b8152600401610931906154fd565b6002600755600654610100900460ff16156113c15760405162461bcd60e51b81526004016109319061547a565b6113ca81614096565b506001600755565b60006113dc6141ce565b905090565b3360008181526001602090815260408083206001600160a01b03871684529091528120549091610cec91859061135f908690615589565b6011546001600160a01b0316635dbe47e8336040516001600160e01b031960e084901b1681526001600160a01b03909116600482015260240160206040518083038186803b15801561146957600080fd5b505afa15801561147d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114a19190615303565b6114bd5760405162461bcd60e51b815260040161093190615413565b6114c56142c4565b565b600260075414156114ea5760405162461bcd60e51b8152600401610931906154fd565b600260075560065460ff16156115125760405162461bcd60e51b8152600401610931906154a6565b6001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001663d505accf336040516001600160e01b031960e084901b1681526001600160a01b039091166004820152306024820152604481018890526064810187905260ff8616608482015260a4810185905260c4810184905260e401600060405180830381600087803b1580156115ae57600080fd5b505af11580156115c2573d6000803e3d6000fd5b505050506115cf8561437f565b50506001600755505050565b601081815481106115eb57600080fd5b6000918252602090912001546001600160a01b0316905081565b6011546001600160a01b0316635dbe47e8336040516001600160e01b031960e084901b1681526001600160a01b03909116600482015260240160206040518083038186803b15801561165657600080fd5b505afa15801561166a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061168e9190615303565b6116aa5760405162461bcd60e51b815260040161093190615413565b604051631484968760e11b81526001600160a01b0382811660048301528316906329092d0e90602401602060405180830381600087803b1580156116ed57600080fd5b505af1158015611701573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906117259190615303565b6111ab5760405162461bcd60e51b815260206004820152601760248201527f72656d6f76652d66726f6d2d6c6973742d6661696c65640000000000000000006044820152606401610931565b6008546001600160a01b0316331461179b5760405162461bcd60e51b815260040161093190615443565b6001600160a01b0381166117e75760405162461bcd60e51b81526020600482015260136024820152726e65772d616464726573732d69732d7a65726f60681b6044820152606401610931565b6001600160a01b0382166118335760405162461bcd60e51b81526020600482015260136024820152726f6c642d616464726573732d69732d7a65726f60681b6044820152606401610931565b306001600160a01b0316816001600160a01b03166316f0115b6040518163ffffffff1660e01b815260040160206040518083038186803b15801561187657600080fd5b505afa15801561188a573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906118ae91906150ae565b6001600160a01b0316146118fd5760405162461bcd60e51b81526020600482015260166024820152756e6f742d76616c69642d6e65772d737472617465677960501b6044820152606401610931565b306001600160a01b0316826001600160a01b03166316f0115b6040518163ffffffff1660e01b815260040160206040518083038186803b15801561194057600080fd5b505afa158015611954573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061197891906150ae565b6001600160a01b0316146119c75760405162461bcd60e51b81526020600482015260166024820152756e6f742d76616c69642d6f6c642d737472617465677960501b6044820152606401610931565b6001600160a01b0382166000908152600c602052604090205460ff16611a2f5760405162461bcd60e51b815260206004820152601960248201527f73747261746567792d616c72656164792d6d69677261746564000000000000006044820152606401610931565b6001600160a01b0381166000908152600c602052604090205460ff1615611a915760405162461bcd60e51b81526020600482015260166024820152751cdd1c985d1959de4b585b1c9958591e4b585919195960521b6044820152606401610931565b6000604051806101000160405280600115158152602001600c6000866001600160a01b03166001600160a01b03168152602001908152602001600020600101548152602001600c6000866001600160a01b03166001600160a01b03168152602001908152602001600020600201548152602001600c6000866001600160a01b03166001600160a01b03168152602001908152602001600020600301548152602001600c6000866001600160a01b03166001600160a01b031681526020019081526020016000206004015481526020016000815260200160008152602001600c6000866001600160a01b03166001600160a01b031681526020019081526020016000206007015481525090506000600c6000856001600160a01b03166001600160a01b03168152602001908152602001600020600701819055506000600c6000856001600160a01b03166001600160a01b03168152602001908152602001600020600401819055506000600c6000856001600160a01b03166001600160a01b03168152602001908152602001600020600201819055506000600c6000856001600160a01b03166001600160a01b0316815260200190815260200160002060000160006101000a81548160ff02191690831515021790555080600c6000846001600160a01b03166001600160a01b0316815260200190815260200160002060008201518160000160006101000a81548160ff0219169083151502179055506020820151816001015560408201518160020155606082015181600301556080820151816004015560a0820151816005015560c0820151816006015560e08201518160070155905050826001600160a01b031663ce5494bb836040518263ffffffff1660e01b8152600401611d3191906001600160a01b0391909116815260200190565b600060405180830381600087803b158015611d4b57600080fd5b505af1158015611d5f573d6000803e3d6000fd5b5050505060005b600f54811015611e1d57836001600160a01b0316600f8281548110611d9b57634e487b7160e01b600052603260045260246000fd5b6000918252602090912001546001600160a01b03161415611e0b5782600f8281548110611dd857634e487b7160e01b600052603260045260246000fd5b9060005260206000200160006101000a8154816001600160a01b0302191690836001600160a01b03160217905550611e1d565b80611e1581615658565b915050611d66565b5060005b601054811015611ed857836001600160a01b031660108281548110611e5657634e487b7160e01b600052603260045260246000fd5b6000918252602090912001546001600160a01b03161415611ec6578260108281548110611e9357634e487b7160e01b600052603260045260246000fd5b9060005260206000200160006101000a8154816001600160a01b0302191690836001600160a01b03160217905550611ed8565b80611ed081615658565b915050611e21565b506001600160a01b038281166000818152600c6020908152604091829020600181015460078201546002909201548451918252928101919091529182015290918516907f35df46f62e188dd7abf424c0f449d857c487aa70360ca1bc904871a61617c20e906060015b60405180910390a3505050565b6001600160a01b0381166000908152602081905260409020545b919050565b6008546001600160a01b03163314611f975760405162461bcd60e51b815260040161093190615443565b6001600160a01b038216611fe85760405162461bcd60e51b815260206004820152601860248201527773747261746567792d616464726573732d69732d7a65726f60401b6044820152606401610931565b6001600160a01b0382166000908152600c602052604090205460ff166120205760405162461bcd60e51b8152600401610931906154d0565b6127108111156120725760405162461bcd60e51b815260206004820152601a60248201527f696e7465726573742d6665652d61626f76652d6d61785f6270730000000000006044820152606401610931565b6001600160a01b0382166000818152600c602052604090819020600101839055517f683b8ed6de444177ebfaa1bac367068d61bd9dfef1f4c309b35e05dd709e73e1906120c29084815260200190565b60405180910390a25050565b6001600160a01b0381166000908152600560205260408120545b92915050565b6011546001600160a01b0316635dbe47e8336040516001600160e01b031960e084901b1681526001600160a01b03909116600482015260240160206040518083038186803b15801561213f57600080fd5b505afa158015612153573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906121779190615303565b6121935760405162461bcd60e51b815260040161093190615413565b6114c56143d6565b6012546001600160a01b0316635dbe47e8336040516001600160e01b031960e084901b1681526001600160a01b03909116600482015260240160206040518083038186803b1580156121ec57600080fd5b505afa158015612200573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906122249190615303565b61226b5760405162461bcd60e51b815260206004820152601860248201527731b0b63632b916b4b996b737ba16b6b0b4b73a30b4b732b960411b6044820152606401610931565b8051806122b35760405162461bcd60e51b81526020600482015260166024820152757769746864726177616c2d71756575652d626c616e6b60501b6044820152606401610931565b601054811480156122c55750600f5481145b6123115760405162461bcd60e51b815260206004820152601f60248201527f696e636f72726563742d77697468647261772d71756575652d6c656e677468006044820152606401610931565b60005b818110156123b857600c600084838151811061234057634e487b7160e01b600052603260045260246000fd5b6020908102919091018101516001600160a01b031682528101919091526040016000205460ff166123a65760405162461bcd60e51b815260206004820152601060248201526f696e76616c69642d737472617465677960801b6044820152606401610931565b806123b081615658565b915050612314565b5081516123cc906010906020850190614f98565b505050565b6012546001600160a01b0316635dbe47e8336040516001600160e01b031960e084901b1681526001600160a01b03909116600482015260240160206040518083038186803b15801561242257600080fd5b505afa158015612436573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061245a9190615303565b6124a15760405162461bcd60e51b815260206004820152601860248201527731b0b63632b916b4b996b737ba16b6b0b4b73a30b4b732b960411b6044820152606401610931565b6001600160a01b0382166000908152600c602052604090205460ff166124d95760405162461bcd60e51b8152600401610931906154d0565b6001600160a01b0382166000908152600c6020526040902060070154600d548291612503916155e0565b61250d9190615589565b600d81905561271010156125635760405162461bcd60e51b815260206004820152601c60248201527f746f74616c44656274526174696f2d61626f76652d6d61785f627073000000006044820152606401610931565b6001600160a01b0382166000818152600c602090815260409182902060078101859055600201548251858152918201527f3819805ced44aeebe5cbf4f81a253424557ef66c0a682cf3b54501e3fb935ba191016120c2565b606060048054610c5c90615623565b60006125d560025490565b15806125e657506125e4612e44565b155b156125fc57670de0b6b3a76400005b905061082c565b600254612607612e44565b61261990670de0b6b3a76400006155c1565b6113dc91906155a1565b3360009081526001602090815260408083206001600160a01b0386168452909152812054828110156126a55760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b6064820152608401610931565b6112b4338561135f86856155e0565b6000610cec338484613ebe565b60006120e882613b70565b6008546001600160a01b031633146126f65760405162461bcd60e51b815260040161093190615443565b6001600160a01b0381166127565760405162461bcd60e51b815260206004820152602160248201527f70726f706f7365642d676f7665726e6f722d69732d7a65726f2d6164647265736044820152607360f81b6064820152608401610931565b600980546001600160a01b0319166001600160a01b0392909216919091179055565b6002600754141561279b5760405162461bcd60e51b8152600401610931906154fd565b600260075560065460ff16156127c35760405162461bcd60e51b8152600401610931906154a6565b6113ca8161437f565b6040516370a0823160e01b81523060048201526000907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906370a082319060240160206040518083038186803b15801561282e57600080fd5b505afa158015612842573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113dc919061533b565b6008546001600160a01b031633146128905760405162461bcd60e51b815260040161093190615443565b6000600f82815481106128b357634e487b7160e01b600052603260045260246000fd5b60009182526020808320909101546001600160a01b0316808352600c90915260409091205490915060ff166128fa5760405162461bcd60e51b8152600401610931906154d0565b6001600160a01b0381166000908152600c6020526040902060040154156129575760405162461bcd60e51b81526020600482015260116024820152701cdd1c985d1959de4b5a185ccb5919589d607a1b6044820152606401610931565b6001600160a01b0381166000908152600c60205260408120805460ff1916815560018082018390556002820183905560038201839055600482018390556005820183905560068201839055600790910191909155600f805490916129ba916155e0565b815481106129d857634e487b7160e01b600052603260045260246000fd5b600091825260209091200154600f80546001600160a01b039092169184908110612a1257634e487b7160e01b600052603260045260246000fd5b9060005260206000200160006101000a8154816001600160a01b0302191690836001600160a01b03160217905550600f805480612a5f57634e487b7160e01b600052603160045260246000fd5b600082815260208120820160001990810180546001600160a01b0319169055909101909155600f5467ffffffffffffffff811115612aad57634e487b7160e01b600052604160045260246000fd5b604051908082528060200260200182016040528015612ad6578160200160208202803683370190505b5090506000805b601054811015612bc357836001600160a01b031660108281548110612b1257634e487b7160e01b600052603260045260246000fd5b6000918252602090912001546001600160a01b031614612bb15760108181548110612b4d57634e487b7160e01b600052603260045260246000fd5b9060005260206000200160009054906101000a90046001600160a01b0316838381518110612b8b57634e487b7160e01b600052603260045260246000fd5b6001600160a01b039092166020928302919091019091015281612bad81615658565b9250505b80612bbb81615658565b915050612add565b508151612bd7906010906020850190614f98565b5050505050565b6011546001600160a01b0316635dbe47e8336040516001600160e01b031960e084901b1681526001600160a01b03909116600482015260240160206040518083038186803b158015612c2f57600080fd5b505afa158015612c43573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612c679190615303565b612c835760405162461bcd60e51b815260040161093190615413565b6001600160a01b0382166000908152600c602052604090205460ff16612cbb5760405162461bcd60e51b8152600401610931906154d0565b6001600160a01b0382166000818152600c6020908152604091829020600281018590556007015482519081529081018490527f3819805ced44aeebe5cbf4f81a253424557ef66c0a682cf3b54501e3fb935ba191016120c2565b6008546001600160a01b03163314612d3f5760405162461bcd60e51b815260040161093190615443565b6001600160a01b038116612d955760405162461bcd60e51b815260206004820152601d60248201527f6665652d636f6c6c6563746f722d616464726573732d69732d7a65726f0000006044820152606401610931565b600a546001600160a01b0382811691161415612de85760405162461bcd60e51b815260206004820152601260248201527139b0b6b296b332b296b1b7b63632b1ba37b960711b6044820152606401610931565b600a546040516001600160a01b038084169216907f0f06062680f9bd68e786e9980d9bb03d73d5620fc3b345e417b6eacb310b970690600090a3600a80546001600160a01b0319166001600160a01b0392909216919091179055565b6000612e4e6127cc565b600e546113dc9190615589565b83421115612eab5760405162461bcd60e51b815260206004820152601d60248201527f45524332305065726d69743a206578706972656420646561646c696e650000006044820152606401610931565b60007f0000000000000000000000000000000000000000000000000000000000000000888888612eda8c61442e565b6040805160208101969096526001600160a01b0394851690860152929091166060840152608083015260a082015260c0810186905260e0016040516020818303038152906040528051906020012090506000612f3582614456565b90506000612f45828787876144a4565b9050896001600160a01b0316816001600160a01b031614612fa85760405162461bcd60e51b815260206004820152601e60248201527f45524332305065726d69743a20696e76616c6964207369676e617475726500006044820152606401610931565b612fb38a8a8a613da2565b50505050505050505050565b60006120e882613ac8565b600f81815481106115eb57600080fd5b6008546001600160a01b031633146130045760405162461bcd60e51b815260040161093190615443565b600a546001600160a01b03166130545760405162461bcd60e51b81526020600482015260156024820152741999594b58dbdb1b1958dd1bdc8b5b9bdd0b5cd95d605a1b6044820152606401610931565b6127108111156130a65760405162461bcd60e51b815260206004820152601a60248201527f77697468647261772d6665652d6c696d69742d726561636865640000000000006044820152606401610931565b80600b5414156130ec5760405162461bcd60e51b815260206004820152601160248201527073616d652d77697468647261772d66656560781b6044820152606401610931565b600b5460408051918252602082018390527f2bf847f5692332004b0f69e0d84a8f85ed020bcf8573b3ede68afc92009965bf910160405180910390a1600b55565b6011546001600160a01b0316635dbe47e8336040516001600160e01b031960e084901b1681526001600160a01b03909116600482015260240160206040518083038186803b15801561317e57600080fd5b505afa158015613192573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906131b69190615303565b6131d25760405162461bcd60e51b815260040161093190615413565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316816001600160a01b0316141561324b5760405162461bcd60e51b815260206004820152601460248201527306e6f742d616c6c6f7765642d746f2d73776565760641b6044820152606401610931565b600a546001600160a01b031661329b5760405162461bcd60e51b81526020600482015260156024820152741999594b58dbdb1b1958dd1bdc8b5b9bdd0b5cd95d605a1b6044820152606401610931565b600a546040516370a0823160e01b815230600482015261332f916001600160a01b0390811691908416906370a082319060240160206040518083038186803b1580156132e657600080fd5b505afa1580156132fa573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061331e919061533b565b6001600160a01b0384169190613cb8565b50565b6008546001600160a01b0316331461335c5760405162461bcd60e51b815260040161093190615443565b6011546001600160a01b0316156133ac5760405162461bcd60e51b81526020600482015260146024820152731b1a5cdd0b585b1c9958591e4b58dc99585d195960621b6044820152606401610931565b600073ded8217de022706a191ee7ee0dc9df1185fb5da39050806001600160a01b0316630fab4d256040518163ffffffff1660e01b8152600401602060405180830381600087803b15801561340057600080fd5b505af1158015613414573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061343891906150ae565b601160006101000a8154816001600160a01b0302191690836001600160a01b03160217905550806001600160a01b0316630fab4d256040518163ffffffff1660e01b8152600401602060405180830381600087803b15801561349957600080fd5b505af11580156134ad573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906134d191906150ae565b601280546001600160a01b0319166001600160a01b03928316179055601154600854604051630a3b0a4f60e01b81529083166004820152911690630a3b0a4f90602401602060405180830381600087803b15801561352e57600080fd5b505af1158015613542573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906135669190615303565b50601254600854604051630a3b0a4f60e01b81526001600160a01b039182166004820152911690630a3b0a4f90602401602060405180830381600087803b1580156135b057600080fd5b505af11580156135c4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111ab9190615303565b6009546001600160a01b0316331461364e5760405162461bcd60e51b815260206004820152602360248201527f63616c6c65722d69732d6e6f742d7468652d70726f706f7365642d676f7665726044820152623737b960e91b6064820152608401610931565b6009546008546040516001600160a01b0392831692909116907fd4459d5b8b913cab0244230fd9b1c08b6ceace7fe9230e60d0f74cbffdf849d090600090a360098054600880546001600160a01b03199081166001600160a01b03841617909155169055565b6011546001600160a01b0316635dbe47e8336040516001600160e01b031960e084901b1681526001600160a01b03909116600482015260240160206040518083038186803b15801561370557600080fd5b505afa158015613719573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061373d9190615303565b6137595760405162461bcd60e51b815260040161093190615413565b6114c561464d565b6011546001600160a01b0316635dbe47e8336040516001600160e01b031960e084901b1681526001600160a01b03909116600482015260240160206040518083038186803b1580156137b257600080fd5b505afa1580156137c6573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906137ea9190615303565b6138065760405162461bcd60e51b815260040161093190615413565b6114c56146ac565b600260075414156138315760405162461bcd60e51b8152600401610931906154fd565b6002600755600654610100900460ff161561385e5760405162461bcd60e51b81526004016109319061547a565b6001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016635dbe47e8336040516001600160e01b031960e084901b1681526001600160a01b03909116600482015260240160206040518083038186803b1580156138cd57600080fd5b505afa1580156138e1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906139059190615303565b6139515760405162461bcd60e51b815260206004820152601a60248201527f6e6f742d612d77686974652d6c69737465642d616464726573730000000000006044820152606401610931565b6113ca8161472e565b6001600160a01b0382166000908152600c6020526040902060040154818110156139b65760405162461bcd60e51b815260206004820152600d60248201526c0d8dee6e65ae8dede5ad0d2ced609b1b6044820152606401610931565b6001600160a01b0383166000908152600c6020526040812060050180548492906139e1908490615589565b90915550506001600160a01b0383166000908152600c602052604081206004018054849290613a119084906155e0565b9250508190555081600e6000828254613a2a91906155e0565b9091555060009050613a74613a3d612e44565b613a49612710866155c1565b613a5391906155a1565b6001600160a01b0386166000908152600c6020526040902060070154613b5a565b6001600160a01b0385166000908152600c6020526040812060070180549293508392909190613aa49084906155e0565b9250508190555080600d6000828254613abd91906155e0565b909155505050505050565b6001600160a01b0381166000908152600c6020526040812060040154600654610100900460ff1615613afb579050611f68565b6000612710613b08612e44565b6001600160a01b0386166000908152600c6020526040902060070154613b2e91906155c1565b613b3891906155a1565b9050808211613b48576000613b52565b613b5281836155e0565b949350505050565b6000818310613b69578161136a565b5090919050565b600654600090610100900460ff1615613b8b57506000611f68565b6000613b95612e44565b6001600160a01b0384166000908152600c60205260408120600701549192509061271090613bc49084906155c1565b613bce91906155a1565b6001600160a01b0385166000908152600c6020526040902060040154909150818110613c005760009350505050611f68565b600061271084600d54613c1391906155c1565b613c1d91906155a1565b905080600e5410613c35576000945050505050611f68565b6000613c4183856155e0565b9050613c69613c57613c516127cc565b83613b5a565b600e54613c6490856155e0565b613b5a565b6001600160a01b0388166000908152600c602052604090206002810154600390910154919250613cad91613c9d90436155e0565b613ca791906155c1565b82613b5a565b979650505050505050565b6040516001600160a01b0383166024820152604481018290526123cc90849063a9059cbb60e01b906064015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b0319909316929092179091526147e1565b6040516001600160a01b0380851660248301528316604482015260648101829052613d539085906323b872dd60e01b90608401613ce4565b50505050565b336000908152600c602052604081206001015461271090613d7a90846155c1565b613d8491906155a1565b905080156111ab57613d95816148b3565b90506111ab335b82614954565b6001600160a01b038316613e045760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608401610931565b6001600160a01b038216613e655760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401610931565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259101611f41565b6001600160a01b038316613f225760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b6064820152608401610931565b6001600160a01b038216613f845760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b6064820152608401610931565b6001600160a01b03831660009081526020819052604090205481811015613ffc5760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b6064820152608401610931565b61400682826155e0565b6001600160a01b03808616600090815260208190526040808220939093559085168152908120805484929061403c908490615589565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8460405161408891815260200190565b60405180910390a350505050565b600b546140ab576140a68161472e565b61332f565b806140e55760405162461bcd60e51b815260206004820152600a602482015269073686172652d69732d360b41b6044820152606401610931565b6000612710600b54836140f891906155c1565b61410291906155a1565b9050600061411082846155e0565b9050600061411d82614a33565b9050600061412a826148b3565b90508281101561416b57600b54614143906127106155e0565b61414f612710836155c1565b61415991906155a1565b945061416581866155e0565b93508092505b614176335b84614a9b565b61418c33600a546001600160a01b031686613ebe565b61419582614bea565b50604080518681526020810184905233917ff279e6a1f5e320cca91135676d9cb6e44ca8a08c0b88342bcdb1144f6511b568910161103b565b60007f000000000000000000000000000000000000000000000000000000000000000046141561421f57507f000000000000000000000000000000000000000000000000000000000000000061082c565b604080517f00000000000000000000000000000000000000000000000000000000000000006020808301919091527f0000000000000000000000000000000000000000000000000000000000000000828401527f000000000000000000000000000000000000000000000000000000000000000060608301524660808301523060a0808401919091528351808403909101815260c090920190925280519101206125f5565b60065460ff1661430d5760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b6044820152606401610931565b600654610100900460ff16156143355760405162461bcd60e51b81526004016109319061547a565b6006805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b600061438a826148b3565b905061439582614c24565b61439e33613d9c565b604080518281526020810184905233917f90890809c654f11d6e72a28fa60149770a0d11ec6c92319d6ceb2bb0a4ea1a1591016120c2565b60065460ff16156143f95760405162461bcd60e51b8152600401610931906154a6565b6006805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586143623390565b6001600160a01b03811660009081526005602052604090208054600181018255905b50919050565b60006120e86144636141ce565b8360405161190160f01b6020820152602281018390526042810182905260009060620160405160208183030381529060405280519060200120905092915050565b60007f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08211156145215760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b6064820152608401610931565b8360ff16601b148061453657508360ff16601c145b61458d5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b6064820152608401610931565b6040805160008082526020820180845288905260ff871692820192909252606081018590526080810184905260019060a0016020604051602081039080840390855afa1580156145e1573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b0381166146445760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152606401610931565b95945050505050565b600654610100900460ff16156146755760405162461bcd60e51b81526004016109319061547a565b6006805461ffff19166101011790557f28b4c24cb1012c094cd2f59f98e89d791973295f8fda6eaa118022d6d318960a6143623390565b600654610100900460ff166146fc5760405162461bcd60e51b81526020600482015260166024820152752830bab9b0b136329d103737ba1039b43aba3237bbb760511b6044820152606401610931565b6006805461ff00191690557fece7583a70a505ef0e36d4dec768f5ae597713e09c26011022599ee01abdabfc33614362565b806147685760405162461bcd60e51b815260206004820152600a602482015269073686172652d69732d360b41b6044820152606401610931565b600061477382614a33565b90506000614780826148b3565b90508281101561478e578092505b61479733614170565b6147a082614bea565b50604080518481526020810184905233917ff279e6a1f5e320cca91135676d9cb6e44ca8a08c0b88342bcdb1144f6511b568910160405180910390a2505050565b6000614836826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316614c599092919063ffffffff16565b8051909150156123cc57808060200190518101906148549190615303565b6123cc5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610931565b6000816148f05760405162461bcd60e51b815260206004820152600b60248201526a0616d6f756e742d69732d360ac1b6044820152606401610931565b60006148fa6125ca565b61490c84670de0b6b3a76400006155c1565b61491691906155a1565b9050670de0b6b3a76400006149296125ca565b61493390836155c1565b61493d91906155a1565b8311614949578061136a565b61136a816001615589565b6001600160a01b0382166149aa5760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f2061646472657373006044820152606401610931565b80600260008282546149bc9190615589565b90915550506001600160a01b038216600090815260208190526040812080548392906149e9908490615589565b90915550506040518181526001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a35050565b600080670de0b6b3a7640000614a476125ca565b614a5190856155c1565b614a5b91906155a1565b90506000614a676127cc565b905080821115614a8e57614a83614a7e82846155e0565b614c68565b614a8b6127cc565b90505b81811061136a5781613b52565b6001600160a01b038216614afb5760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b6064820152608401610931565b6001600160a01b03821660009081526020819052604090205481811015614b6f5760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b6064820152608401610931565b614b7982826155e0565b6001600160a01b03841660009081526020819052604081209190915560028054849290614ba79084906155e0565b90915550506040518281526000906001600160a01b038516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef90602001611f41565b6000614c207f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03163384613cb8565b5090565b61332f7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316333084613d1b565b6060613b528484600085614e47565b60008080808481805b601054811015614e3d57600c600060108381548110614ca057634e487b7160e01b600052603260045260246000fd5b60009182526020808320909101546001600160a01b03168352820192909252604001902060040154965086614cd457614e2b565b86831115614ce0578692505b614ce86127cc565b945060108181548110614d0b57634e487b7160e01b600052603260045260246000fd5b600091825260209091200154604051632e1a7d4d60e01b8152600481018590526001600160a01b0390911690632e1a7d4d90602401600060405180830381600087803b158015614d5a57600080fd5b505af1925050508015614d6b575060015b614d7457614e2b565b614d7c6127cc565b9550614d8885876155e0565b935083600c600060108481548110614db057634e487b7160e01b600052603260045260246000fd5b60009182526020808320909101546001600160a01b0316835282019290925260400181206004018054909190614de79084906155e0565b9250508190555083600e6000828254614e0091906155e0565b90915550614e1090508483615589565b9150878210614e1e57614e3d565b614e2882896155e0565b92505b80614e3581615658565b915050614c71565b5050505050505050565b606082471015614ea85760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b6064820152608401610931565b843b614ef65760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610931565b600080866001600160a01b03168587604051614f1291906153c4565b60006040518083038185875af1925050503d8060008114614f4f576040519150601f19603f3d011682016040523d82523d6000602084013e614f54565b606091505b5091509150613cad82828660608315614f6e57508161136a565b825115614f7e5782518084602001fd5b8160405162461bcd60e51b815260040161093191906153e0565b828054828255906000526020600020908101928215614fed579160200282015b82811115614fed57825182546001600160a01b0319166001600160a01b03909116178255602090920191600190910190614fb8565b50614c209291505b80821115614c205760008155600101614ff5565b600082601f830112615019578081fd5b8135602061502e61502983615565565b615534565b80838252828201915082860187848660051b890101111561504d578586fd5b855b858110156150745781356150628161569f565b8452928401929084019060010161504f565b5090979650505050505050565b803560ff81168114611f6857600080fd5b6000602082840312156150a3578081fd5b813561136a8161569f565b6000602082840312156150bf578081fd5b815161136a8161569f565b600080604083850312156150dc578081fd5b82356150e78161569f565b915060208301356150f78161569f565b809150509250929050565b600080600060608486031215615116578081fd5b83356151218161569f565b925060208401356151318161569f565b929592945050506040919091013590565b600080600080600080600060e0888a03121561515c578283fd5b87356151678161569f565b965060208801356151778161569f565b9550604088013594506060880135935061519360808901615081565b925060a0880135915060c0880135905092959891949750929550565b600080604083850312156151c1578182fd5b82356151cc8161569f565b946020939093013593505050565b600080600080608085870312156151ef578384fd5b84356151fa8161569f565b966020860135965060408601359560600135945092505050565b600060208284031215615225578081fd5b813567ffffffffffffffff81111561523b578182fd5b613b5284828501615009565b60008060408385031215615259578182fd5b823567ffffffffffffffff80821115615270578384fd5b61527c86838701615009565b9350602091508185013581811115615292578384fd5b85019050601f810186136152a4578283fd5b80356152b261502982615565565b80828252848201915084840189868560051b87010111156152d1578687fd5b8694505b838510156152f35780358352600194909401939185019185016152d5565b5080955050505050509250929050565b600060208284031215615314578081fd5b8151801515811461136a578182fd5b600060208284031215615334578081fd5b5035919050565b60006020828403121561534c578081fd5b5051919050565b600080600060608486031215615367578081fd5b505081359360208301359350604090920135919050565b600080600080600060a08688031215615395578283fd5b85359450602086013593506153ac60408701615081565b94979396509394606081013594506080013592915050565b600082516153d68184602087016155f7565b9190910192915050565b60006020825282518060208401526153ff8160408501602087016155f7565b601f01601f19169190910160400192915050565b60208082526016908201527531b0b63632b916b4b996b737ba16b096b5b2b2b832b960511b604082015260600190565b6020808252601a908201527f63616c6c65722d69732d6e6f742d7468652d676f7665726e6f72000000000000604082015260600190565b6020808252601290820152712830bab9b0b136329d1039b43aba3237bbb760711b604082015260600190565b60208082526010908201526f14185d5cd8589b194e881c185d5cd95960821b604082015260600190565b60208082526013908201527273747261746567792d6e6f742d61637469766560681b604082015260600190565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b604051601f8201601f1916810167ffffffffffffffff8111828210171561555d5761555d615689565b604052919050565b600067ffffffffffffffff82111561557f5761557f615689565b5060051b60200190565b6000821982111561559c5761559c615673565b500190565b6000826155bc57634e487b7160e01b81526012600452602481fd5b500490565b60008160001904831182151516156155db576155db615673565b500290565b6000828210156155f2576155f2615673565b500390565b60005b838110156156125781810151838201526020016155fa565b83811115613d535750506000910152565b600181811c9082168061563757607f821691505b6020821081141561445057634e487b7160e01b600052602260045260246000fd5b600060001982141561566c5761566c615673565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b038116811461332f57600080fdfea2646970667358221220acbc39fa70c20c6d0cb65f203323b1ebd46491dcd88e30246d74e2f886e4c8be64736f6c63430008030033

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106103ba5760003560e01c806399530b06116101f4578063d574ea3d1161011a578063fc0c546a116100ad578063fcfff16f1161007c578063fcfff16f1461088e578063fd967f4714610896578063ff643a7c1461089f578063ffa1ad74146108b2576103ba565b8063fc0c546a1461082f578063fc0e74d114610856578063fc7678101461085e578063fc7b9c1814610885576103ba565b8063e1c7392a116100e9578063e1c7392a14610805578063e941fa781461080d578063f3b27bc314610816578063fb589de21461081e576103ba565b8063d574ea3d14610793578063daf635de146107a6578063dd62ed3e146107b9578063e00af4a7146107f2576103ba565b8063b8cb343d11610192578063d2c35ce811610161578063d2c35ce814610752578063d4c3eea014610765578063d505accf1461076d578063d53ddc2614610780576103ba565b8063b8cb343d14610711578063c0cbbca614610719578063c415b95c1461072c578063d20ed3ef1461073f576103ba565b8063a9059cbb116101ce578063a9059cbb146106c5578063b64321ec146106d8578063b6aa515b146106eb578063b6b55f25146106fe576103ba565b806399530b061461067e5780639f2b283314610686578063a457c2d7146106b2576103ba565b80633f4ba83a116102e457806370a0823111610277578063854f4d8011610246578063854f4d801461063d5780638f88d18c14610650578063951dc22c1461066357806395d89b4114610676576103ba565b806370a08231146105fc5780637b62f0701461060f5780637ecebe00146106225780638456cb5914610635576103ba565b80635c975abb116102b35780635c975abb146105b657806362518ddf146105c357806367187d3d146105d65780636cb56d19146105e9576103ba565b80633f4ba83a146105765780634938649a1461057e57806349eeb860146105905780634a970be7146105a3576103ba565b80631e89d5451161035c5780632e1a7d4d1161032b5780632e1a7d4d14610539578063313ce5671461054c5780633644e5151461055b5780633950935114610563576103ba565b80631e89d54514610478578063228bfd9f1461048b57806323b872dd1461051d5780632df9eab914610530576103ba565b80630c340a24116103985780630c340a24146104155780630dd21b6c1461044057806318160ddd146104535780631e751ac114610465576103ba565b806305bed046146103bf57806306fdde03146103d4578063095ea7b3146103f2575b600080fd5b6103d26103cd366004615353565b6108d6565b005b6103dc610c4d565b6040516103e991906153e0565b60405180910390f35b6104056104003660046151af565b610cdf565b60405190151581526020016103e9565b600854610428906001600160a01b031681565b6040516001600160a01b0390911681526020016103e9565b6103d261044e3660046151da565b610cf5565b6002545b6040519081526020016103e9565b6103d26104733660046150ca565b61104a565b610405610486366004615247565b6111af565b6104e0610499366004615092565b600c602052600090815260409020805460018201546002830154600384015460048501546005860154600687015460079097015460ff909616969495939492939192909188565b6040805198151589526020890197909752958701949094526060860192909252608085015260a084015260c083015260e0820152610100016103e9565b61040561052b366004615102565b6112be565b610457600d5481565b6103d2610547366004615323565b611371565b604051601281526020016103e9565b6104576113d2565b6104056105713660046151af565b6113e1565b6103d2611418565b60065461040590610100900460ff1681565b601254610428906001600160a01b031681565b6103d26105b136600461537e565b6114c7565b6006546104059060ff1681565b6104286105d1366004615323565b6115db565b6103d26105e43660046150ca565b611605565b6103d26105f73660046150ca565b611771565b61045761060a366004615092565b611f4e565b6103d261061d3660046151af565b611f6d565b610457610630366004615092565b6120ce565b6103d26120ee565b6103d261064b366004615214565b61219b565b6103d261065e3660046151af565b6123d1565b601154610428906001600160a01b031681565b6103dc6125bb565b6104576125ca565b610457610694366004615092565b6001600160a01b03166000908152600c602052604090206004015490565b6104056106c03660046151af565b612623565b6104056106d33660046151af565b6126b4565b6104576106e6366004615092565b6126c1565b6103d26106f9366004615092565b6126cc565b6103d261070c366004615323565b612778565b6104576127cc565b6103d2610727366004615323565b612866565b600a54610428906001600160a01b031681565b6103d261074d3660046151af565b612bde565b6103d2610760366004615092565b612d15565b610457612e44565b6103d261077b366004615142565b612e5b565b61045761078e366004615092565b612fbf565b6104286107a1366004615323565b612fca565b6103d26107b4366004615323565b612fda565b6104576107c73660046150ca565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b6103d2610800366004615092565b61312d565b6103d2613332565b610457600b5481565b6103d26135e8565b61045761082c366004615323565b90565b6104287f0000000000000000000000001f9840a85d5af5bf1d1762f925bdaddc4201f98481565b6103d26136b4565b6104287f00000000000000000000000083e244b2e0cc3ce778e6dc7b8c33580c84f362de81565b610457600e5481565b6103d2613761565b61045761271081565b6103d26108ad366004615323565b61380e565b6103dc60405180604001604052806005815260200164199718171960d91b81525081565b336000908152600c602052604090205460ff1661093a5760405162461bcd60e51b815260206004820152601d60248201527f63616c6c65722d69732d6e6f742d6163746976652d737472617465677900000060448201526064015b60405180910390fd5b6109448184615589565b6001600160a01b037f0000000000000000000000001f9840a85d5af5bf1d1762f925bdaddc4201f984166370a08231336040516001600160e01b031960e084901b1681526001600160a01b03909116600482015260240160206040518083038186803b1580156109b357600080fd5b505afa1580156109c7573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109eb919061533b565b1015610a395760405162461bcd60e51b815260206004820181905260248201527f696e73756666696369656e742d62616c616e63652d696e2d73747261746567796044820152606401610931565b8115610a4957610a49338361395a565b6000610a5433613ac8565b90506000610a628284613b5a565b90508015610aab57336000908152600c602052604081206004018054839290610a8c9084906155e0565b9250508190555080600e6000828254610aa591906155e0565b90915550505b6000610ab633613b70565b90508015610aff57336000908152600c602052604081206004018054839290610ae0908490615589565b9250508190555080600e6000828254610af99190615589565b90915550505b6000610b0b8388615589565b905081811015610b5957610b5433610b2383856155e0565b6001600160a01b037f0000000000000000000000001f9840a85d5af5bf1d1762f925bdaddc4201f984169190613cb8565b610ba2565b81811115610ba257610ba23330610b7085856155e0565b6001600160a01b037f0000000000000000000000001f9840a85d5af5bf1d1762f925bdaddc4201f98416929190613d1b565b8615610bd957336000908152600c602052604081206006018054899290610bca908490615589565b90915550610bd9905087613d59565b336000818152600c602090815260409182902060040154600e5483518c81529283018b90528284018890526060830191909152608082015260a0810185905290517f29c6c60e040fcd722949346bda66341e8859b20b9a2124a625326ad10373391b9181900360c00190a250505050505050565b606060038054610c5c90615623565b80601f0160208091040260200160405190810160405280929190818152602001828054610c8890615623565b8015610cd55780601f10610caa57610100808354040283529160200191610cd5565b820191906000526020600020905b815481529060010190602001808311610cb857829003601f168201915b5050505050905090565b6000610cec338484613da2565b50600192915050565b6008546001600160a01b03163314610d1f5760405162461bcd60e51b815260040161093190615443565b6001600160a01b038416610d705760405162461bcd60e51b815260206004820152601860248201527773747261746567792d616464726573732d69732d7a65726f60401b6044820152606401610931565b6001600160a01b0384166000908152600c602052604090205460ff1615610dd25760405162461bcd60e51b81526020600482015260166024820152751cdd1c985d1959de4b585b1c9958591e4b585919195960521b6044820152606401610931565b81600d54610de09190615589565b600d8190556127101015610e365760405162461bcd60e51b815260206004820152601c60248201527f746f74616c44656274526174696f2d61626f76652d6d61785f627073000000006044820152606401610931565b612710831115610e885760405162461bcd60e51b815260206004820152601a60248201527f696e7465726573742d6665652d61626f76652d6d61785f6270730000000000006044820152606401610931565b600060405180610100016040528060011515815260200185815260200183815260200143815260200160008152602001600081526020016000815260200184815250905080600c6000876001600160a01b03166001600160a01b0316815260200190815260200160002060008201518160000160006101000a81548160ff0219169083151502179055506020820151816001015560408201518160020155606082015181600301556080820151816004015560a0820151816005015560c0820151816006015560e08201518160070155905050600f859080600181540180825580915050600190039060005260206000200160009091909190916101000a8154816001600160a01b0302191690836001600160a01b031602179055506010859080600181540180825580915050600190039060005260206000200160009091909190916101000a8154816001600160a01b0302191690836001600160a01b03160217905550846001600160a01b03167f5ec27a4fa537fc86d0d17d84e0ee3172c9d253c78cc4ab5c69ee99c5f7084f5185858560405161103b939291909283526020830191909152604082015260600190565b60405180910390a25050505050565b6011546001600160a01b0316635dbe47e8336040516001600160e01b031960e084901b1681526001600160a01b03909116600482015260240160206040518083038186803b15801561109b57600080fd5b505afa1580156110af573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110d39190615303565b6110ef5760405162461bcd60e51b815260040161093190615413565b604051630a3b0a4f60e01b81526001600160a01b038281166004830152831690630a3b0a4f90602401602060405180830381600087803b15801561113257600080fd5b505af1158015611146573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061116a9190615303565b6111ab5760405162461bcd60e51b81526020600482015260126024820152711859190b5a5b8b5b1a5cdd0b59985a5b195960721b6044820152606401610931565b5050565b600081518351146111fa5760405162461bcd60e51b81526020600482015260156024820152740d2dce0eae85ad8cadccee8d05adad2e6dac2e8c6d605b1b6044820152606401610931565b60005b83518110156112b45761125e84828151811061122957634e487b7160e01b600052603260045260246000fd5b602002602001015184838151811061125157634e487b7160e01b600052603260045260246000fd5b60200260200101516126b4565b6112a25760405162461bcd60e51b81526020600482015260156024820152741b5d5b1d1a4b5d1c985b9cd9995c8b59985a5b1959605a1b6044820152606401610931565b806112ac81615658565b9150506111fd565b5060019392505050565b60006112cb848484613ebe565b6001600160a01b0384166000908152600160209081526040808320338452909152902054828110156113505760405162461bcd60e51b815260206004820152602860248201527f45524332303a207472616e7366657220616d6f756e74206578636565647320616044820152676c6c6f77616e636560c01b6064820152608401610931565b611364853361135f86856155e0565b613da2565b60019150505b9392505050565b600260075414156113945760405162461bcd60e51b8152600401610931906154fd565b6002600755600654610100900460ff16156113c15760405162461bcd60e51b81526004016109319061547a565b6113ca81614096565b506001600755565b60006113dc6141ce565b905090565b3360008181526001602090815260408083206001600160a01b03871684529091528120549091610cec91859061135f908690615589565b6011546001600160a01b0316635dbe47e8336040516001600160e01b031960e084901b1681526001600160a01b03909116600482015260240160206040518083038186803b15801561146957600080fd5b505afa15801561147d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114a19190615303565b6114bd5760405162461bcd60e51b815260040161093190615413565b6114c56142c4565b565b600260075414156114ea5760405162461bcd60e51b8152600401610931906154fd565b600260075560065460ff16156115125760405162461bcd60e51b8152600401610931906154a6565b6001600160a01b037f0000000000000000000000001f9840a85d5af5bf1d1762f925bdaddc4201f9841663d505accf336040516001600160e01b031960e084901b1681526001600160a01b039091166004820152306024820152604481018890526064810187905260ff8616608482015260a4810185905260c4810184905260e401600060405180830381600087803b1580156115ae57600080fd5b505af11580156115c2573d6000803e3d6000fd5b505050506115cf8561437f565b50506001600755505050565b601081815481106115eb57600080fd5b6000918252602090912001546001600160a01b0316905081565b6011546001600160a01b0316635dbe47e8336040516001600160e01b031960e084901b1681526001600160a01b03909116600482015260240160206040518083038186803b15801561165657600080fd5b505afa15801561166a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061168e9190615303565b6116aa5760405162461bcd60e51b815260040161093190615413565b604051631484968760e11b81526001600160a01b0382811660048301528316906329092d0e90602401602060405180830381600087803b1580156116ed57600080fd5b505af1158015611701573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906117259190615303565b6111ab5760405162461bcd60e51b815260206004820152601760248201527f72656d6f76652d66726f6d2d6c6973742d6661696c65640000000000000000006044820152606401610931565b6008546001600160a01b0316331461179b5760405162461bcd60e51b815260040161093190615443565b6001600160a01b0381166117e75760405162461bcd60e51b81526020600482015260136024820152726e65772d616464726573732d69732d7a65726f60681b6044820152606401610931565b6001600160a01b0382166118335760405162461bcd60e51b81526020600482015260136024820152726f6c642d616464726573732d69732d7a65726f60681b6044820152606401610931565b306001600160a01b0316816001600160a01b03166316f0115b6040518163ffffffff1660e01b815260040160206040518083038186803b15801561187657600080fd5b505afa15801561188a573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906118ae91906150ae565b6001600160a01b0316146118fd5760405162461bcd60e51b81526020600482015260166024820152756e6f742d76616c69642d6e65772d737472617465677960501b6044820152606401610931565b306001600160a01b0316826001600160a01b03166316f0115b6040518163ffffffff1660e01b815260040160206040518083038186803b15801561194057600080fd5b505afa158015611954573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061197891906150ae565b6001600160a01b0316146119c75760405162461bcd60e51b81526020600482015260166024820152756e6f742d76616c69642d6f6c642d737472617465677960501b6044820152606401610931565b6001600160a01b0382166000908152600c602052604090205460ff16611a2f5760405162461bcd60e51b815260206004820152601960248201527f73747261746567792d616c72656164792d6d69677261746564000000000000006044820152606401610931565b6001600160a01b0381166000908152600c602052604090205460ff1615611a915760405162461bcd60e51b81526020600482015260166024820152751cdd1c985d1959de4b585b1c9958591e4b585919195960521b6044820152606401610931565b6000604051806101000160405280600115158152602001600c6000866001600160a01b03166001600160a01b03168152602001908152602001600020600101548152602001600c6000866001600160a01b03166001600160a01b03168152602001908152602001600020600201548152602001600c6000866001600160a01b03166001600160a01b03168152602001908152602001600020600301548152602001600c6000866001600160a01b03166001600160a01b031681526020019081526020016000206004015481526020016000815260200160008152602001600c6000866001600160a01b03166001600160a01b031681526020019081526020016000206007015481525090506000600c6000856001600160a01b03166001600160a01b03168152602001908152602001600020600701819055506000600c6000856001600160a01b03166001600160a01b03168152602001908152602001600020600401819055506000600c6000856001600160a01b03166001600160a01b03168152602001908152602001600020600201819055506000600c6000856001600160a01b03166001600160a01b0316815260200190815260200160002060000160006101000a81548160ff02191690831515021790555080600c6000846001600160a01b03166001600160a01b0316815260200190815260200160002060008201518160000160006101000a81548160ff0219169083151502179055506020820151816001015560408201518160020155606082015181600301556080820151816004015560a0820151816005015560c0820151816006015560e08201518160070155905050826001600160a01b031663ce5494bb836040518263ffffffff1660e01b8152600401611d3191906001600160a01b0391909116815260200190565b600060405180830381600087803b158015611d4b57600080fd5b505af1158015611d5f573d6000803e3d6000fd5b5050505060005b600f54811015611e1d57836001600160a01b0316600f8281548110611d9b57634e487b7160e01b600052603260045260246000fd5b6000918252602090912001546001600160a01b03161415611e0b5782600f8281548110611dd857634e487b7160e01b600052603260045260246000fd5b9060005260206000200160006101000a8154816001600160a01b0302191690836001600160a01b03160217905550611e1d565b80611e1581615658565b915050611d66565b5060005b601054811015611ed857836001600160a01b031660108281548110611e5657634e487b7160e01b600052603260045260246000fd5b6000918252602090912001546001600160a01b03161415611ec6578260108281548110611e9357634e487b7160e01b600052603260045260246000fd5b9060005260206000200160006101000a8154816001600160a01b0302191690836001600160a01b03160217905550611ed8565b80611ed081615658565b915050611e21565b506001600160a01b038281166000818152600c6020908152604091829020600181015460078201546002909201548451918252928101919091529182015290918516907f35df46f62e188dd7abf424c0f449d857c487aa70360ca1bc904871a61617c20e906060015b60405180910390a3505050565b6001600160a01b0381166000908152602081905260409020545b919050565b6008546001600160a01b03163314611f975760405162461bcd60e51b815260040161093190615443565b6001600160a01b038216611fe85760405162461bcd60e51b815260206004820152601860248201527773747261746567792d616464726573732d69732d7a65726f60401b6044820152606401610931565b6001600160a01b0382166000908152600c602052604090205460ff166120205760405162461bcd60e51b8152600401610931906154d0565b6127108111156120725760405162461bcd60e51b815260206004820152601a60248201527f696e7465726573742d6665652d61626f76652d6d61785f6270730000000000006044820152606401610931565b6001600160a01b0382166000818152600c602052604090819020600101839055517f683b8ed6de444177ebfaa1bac367068d61bd9dfef1f4c309b35e05dd709e73e1906120c29084815260200190565b60405180910390a25050565b6001600160a01b0381166000908152600560205260408120545b92915050565b6011546001600160a01b0316635dbe47e8336040516001600160e01b031960e084901b1681526001600160a01b03909116600482015260240160206040518083038186803b15801561213f57600080fd5b505afa158015612153573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906121779190615303565b6121935760405162461bcd60e51b815260040161093190615413565b6114c56143d6565b6012546001600160a01b0316635dbe47e8336040516001600160e01b031960e084901b1681526001600160a01b03909116600482015260240160206040518083038186803b1580156121ec57600080fd5b505afa158015612200573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906122249190615303565b61226b5760405162461bcd60e51b815260206004820152601860248201527731b0b63632b916b4b996b737ba16b6b0b4b73a30b4b732b960411b6044820152606401610931565b8051806122b35760405162461bcd60e51b81526020600482015260166024820152757769746864726177616c2d71756575652d626c616e6b60501b6044820152606401610931565b601054811480156122c55750600f5481145b6123115760405162461bcd60e51b815260206004820152601f60248201527f696e636f72726563742d77697468647261772d71756575652d6c656e677468006044820152606401610931565b60005b818110156123b857600c600084838151811061234057634e487b7160e01b600052603260045260246000fd5b6020908102919091018101516001600160a01b031682528101919091526040016000205460ff166123a65760405162461bcd60e51b815260206004820152601060248201526f696e76616c69642d737472617465677960801b6044820152606401610931565b806123b081615658565b915050612314565b5081516123cc906010906020850190614f98565b505050565b6012546001600160a01b0316635dbe47e8336040516001600160e01b031960e084901b1681526001600160a01b03909116600482015260240160206040518083038186803b15801561242257600080fd5b505afa158015612436573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061245a9190615303565b6124a15760405162461bcd60e51b815260206004820152601860248201527731b0b63632b916b4b996b737ba16b6b0b4b73a30b4b732b960411b6044820152606401610931565b6001600160a01b0382166000908152600c602052604090205460ff166124d95760405162461bcd60e51b8152600401610931906154d0565b6001600160a01b0382166000908152600c6020526040902060070154600d548291612503916155e0565b61250d9190615589565b600d81905561271010156125635760405162461bcd60e51b815260206004820152601c60248201527f746f74616c44656274526174696f2d61626f76652d6d61785f627073000000006044820152606401610931565b6001600160a01b0382166000818152600c602090815260409182902060078101859055600201548251858152918201527f3819805ced44aeebe5cbf4f81a253424557ef66c0a682cf3b54501e3fb935ba191016120c2565b606060048054610c5c90615623565b60006125d560025490565b15806125e657506125e4612e44565b155b156125fc57670de0b6b3a76400005b905061082c565b600254612607612e44565b61261990670de0b6b3a76400006155c1565b6113dc91906155a1565b3360009081526001602090815260408083206001600160a01b0386168452909152812054828110156126a55760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b6064820152608401610931565b6112b4338561135f86856155e0565b6000610cec338484613ebe565b60006120e882613b70565b6008546001600160a01b031633146126f65760405162461bcd60e51b815260040161093190615443565b6001600160a01b0381166127565760405162461bcd60e51b815260206004820152602160248201527f70726f706f7365642d676f7665726e6f722d69732d7a65726f2d6164647265736044820152607360f81b6064820152608401610931565b600980546001600160a01b0319166001600160a01b0392909216919091179055565b6002600754141561279b5760405162461bcd60e51b8152600401610931906154fd565b600260075560065460ff16156127c35760405162461bcd60e51b8152600401610931906154a6565b6113ca8161437f565b6040516370a0823160e01b81523060048201526000907f0000000000000000000000001f9840a85d5af5bf1d1762f925bdaddc4201f9846001600160a01b0316906370a082319060240160206040518083038186803b15801561282e57600080fd5b505afa158015612842573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113dc919061533b565b6008546001600160a01b031633146128905760405162461bcd60e51b815260040161093190615443565b6000600f82815481106128b357634e487b7160e01b600052603260045260246000fd5b60009182526020808320909101546001600160a01b0316808352600c90915260409091205490915060ff166128fa5760405162461bcd60e51b8152600401610931906154d0565b6001600160a01b0381166000908152600c6020526040902060040154156129575760405162461bcd60e51b81526020600482015260116024820152701cdd1c985d1959de4b5a185ccb5919589d607a1b6044820152606401610931565b6001600160a01b0381166000908152600c60205260408120805460ff1916815560018082018390556002820183905560038201839055600482018390556005820183905560068201839055600790910191909155600f805490916129ba916155e0565b815481106129d857634e487b7160e01b600052603260045260246000fd5b600091825260209091200154600f80546001600160a01b039092169184908110612a1257634e487b7160e01b600052603260045260246000fd5b9060005260206000200160006101000a8154816001600160a01b0302191690836001600160a01b03160217905550600f805480612a5f57634e487b7160e01b600052603160045260246000fd5b600082815260208120820160001990810180546001600160a01b0319169055909101909155600f5467ffffffffffffffff811115612aad57634e487b7160e01b600052604160045260246000fd5b604051908082528060200260200182016040528015612ad6578160200160208202803683370190505b5090506000805b601054811015612bc357836001600160a01b031660108281548110612b1257634e487b7160e01b600052603260045260246000fd5b6000918252602090912001546001600160a01b031614612bb15760108181548110612b4d57634e487b7160e01b600052603260045260246000fd5b9060005260206000200160009054906101000a90046001600160a01b0316838381518110612b8b57634e487b7160e01b600052603260045260246000fd5b6001600160a01b039092166020928302919091019091015281612bad81615658565b9250505b80612bbb81615658565b915050612add565b508151612bd7906010906020850190614f98565b5050505050565b6011546001600160a01b0316635dbe47e8336040516001600160e01b031960e084901b1681526001600160a01b03909116600482015260240160206040518083038186803b158015612c2f57600080fd5b505afa158015612c43573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612c679190615303565b612c835760405162461bcd60e51b815260040161093190615413565b6001600160a01b0382166000908152600c602052604090205460ff16612cbb5760405162461bcd60e51b8152600401610931906154d0565b6001600160a01b0382166000818152600c6020908152604091829020600281018590556007015482519081529081018490527f3819805ced44aeebe5cbf4f81a253424557ef66c0a682cf3b54501e3fb935ba191016120c2565b6008546001600160a01b03163314612d3f5760405162461bcd60e51b815260040161093190615443565b6001600160a01b038116612d955760405162461bcd60e51b815260206004820152601d60248201527f6665652d636f6c6c6563746f722d616464726573732d69732d7a65726f0000006044820152606401610931565b600a546001600160a01b0382811691161415612de85760405162461bcd60e51b815260206004820152601260248201527139b0b6b296b332b296b1b7b63632b1ba37b960711b6044820152606401610931565b600a546040516001600160a01b038084169216907f0f06062680f9bd68e786e9980d9bb03d73d5620fc3b345e417b6eacb310b970690600090a3600a80546001600160a01b0319166001600160a01b0392909216919091179055565b6000612e4e6127cc565b600e546113dc9190615589565b83421115612eab5760405162461bcd60e51b815260206004820152601d60248201527f45524332305065726d69743a206578706972656420646561646c696e650000006044820152606401610931565b60007f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c9888888612eda8c61442e565b6040805160208101969096526001600160a01b0394851690860152929091166060840152608083015260a082015260c0810186905260e0016040516020818303038152906040528051906020012090506000612f3582614456565b90506000612f45828787876144a4565b9050896001600160a01b0316816001600160a01b031614612fa85760405162461bcd60e51b815260206004820152601e60248201527f45524332305065726d69743a20696e76616c6964207369676e617475726500006044820152606401610931565b612fb38a8a8a613da2565b50505050505050505050565b60006120e882613ac8565b600f81815481106115eb57600080fd5b6008546001600160a01b031633146130045760405162461bcd60e51b815260040161093190615443565b600a546001600160a01b03166130545760405162461bcd60e51b81526020600482015260156024820152741999594b58dbdb1b1958dd1bdc8b5b9bdd0b5cd95d605a1b6044820152606401610931565b6127108111156130a65760405162461bcd60e51b815260206004820152601a60248201527f77697468647261772d6665652d6c696d69742d726561636865640000000000006044820152606401610931565b80600b5414156130ec5760405162461bcd60e51b815260206004820152601160248201527073616d652d77697468647261772d66656560781b6044820152606401610931565b600b5460408051918252602082018390527f2bf847f5692332004b0f69e0d84a8f85ed020bcf8573b3ede68afc92009965bf910160405180910390a1600b55565b6011546001600160a01b0316635dbe47e8336040516001600160e01b031960e084901b1681526001600160a01b03909116600482015260240160206040518083038186803b15801561317e57600080fd5b505afa158015613192573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906131b69190615303565b6131d25760405162461bcd60e51b815260040161093190615413565b7f0000000000000000000000001f9840a85d5af5bf1d1762f925bdaddc4201f9846001600160a01b0316816001600160a01b0316141561324b5760405162461bcd60e51b815260206004820152601460248201527306e6f742d616c6c6f7765642d746f2d73776565760641b6044820152606401610931565b600a546001600160a01b031661329b5760405162461bcd60e51b81526020600482015260156024820152741999594b58dbdb1b1958dd1bdc8b5b9bdd0b5cd95d605a1b6044820152606401610931565b600a546040516370a0823160e01b815230600482015261332f916001600160a01b0390811691908416906370a082319060240160206040518083038186803b1580156132e657600080fd5b505afa1580156132fa573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061331e919061533b565b6001600160a01b0384169190613cb8565b50565b6008546001600160a01b0316331461335c5760405162461bcd60e51b815260040161093190615443565b6011546001600160a01b0316156133ac5760405162461bcd60e51b81526020600482015260146024820152731b1a5cdd0b585b1c9958591e4b58dc99585d195960621b6044820152606401610931565b600073ded8217de022706a191ee7ee0dc9df1185fb5da39050806001600160a01b0316630fab4d256040518163ffffffff1660e01b8152600401602060405180830381600087803b15801561340057600080fd5b505af1158015613414573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061343891906150ae565b601160006101000a8154816001600160a01b0302191690836001600160a01b03160217905550806001600160a01b0316630fab4d256040518163ffffffff1660e01b8152600401602060405180830381600087803b15801561349957600080fd5b505af11580156134ad573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906134d191906150ae565b601280546001600160a01b0319166001600160a01b03928316179055601154600854604051630a3b0a4f60e01b81529083166004820152911690630a3b0a4f90602401602060405180830381600087803b15801561352e57600080fd5b505af1158015613542573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906135669190615303565b50601254600854604051630a3b0a4f60e01b81526001600160a01b039182166004820152911690630a3b0a4f90602401602060405180830381600087803b1580156135b057600080fd5b505af11580156135c4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111ab9190615303565b6009546001600160a01b0316331461364e5760405162461bcd60e51b815260206004820152602360248201527f63616c6c65722d69732d6e6f742d7468652d70726f706f7365642d676f7665726044820152623737b960e91b6064820152608401610931565b6009546008546040516001600160a01b0392831692909116907fd4459d5b8b913cab0244230fd9b1c08b6ceace7fe9230e60d0f74cbffdf849d090600090a360098054600880546001600160a01b03199081166001600160a01b03841617909155169055565b6011546001600160a01b0316635dbe47e8336040516001600160e01b031960e084901b1681526001600160a01b03909116600482015260240160206040518083038186803b15801561370557600080fd5b505afa158015613719573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061373d9190615303565b6137595760405162461bcd60e51b815260040161093190615413565b6114c561464d565b6011546001600160a01b0316635dbe47e8336040516001600160e01b031960e084901b1681526001600160a01b03909116600482015260240160206040518083038186803b1580156137b257600080fd5b505afa1580156137c6573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906137ea9190615303565b6138065760405162461bcd60e51b815260040161093190615413565b6114c56146ac565b600260075414156138315760405162461bcd60e51b8152600401610931906154fd565b6002600755600654610100900460ff161561385e5760405162461bcd60e51b81526004016109319061547a565b6001600160a01b037f00000000000000000000000083e244b2e0cc3ce778e6dc7b8c33580c84f362de16635dbe47e8336040516001600160e01b031960e084901b1681526001600160a01b03909116600482015260240160206040518083038186803b1580156138cd57600080fd5b505afa1580156138e1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906139059190615303565b6139515760405162461bcd60e51b815260206004820152601a60248201527f6e6f742d612d77686974652d6c69737465642d616464726573730000000000006044820152606401610931565b6113ca8161472e565b6001600160a01b0382166000908152600c6020526040902060040154818110156139b65760405162461bcd60e51b815260206004820152600d60248201526c0d8dee6e65ae8dede5ad0d2ced609b1b6044820152606401610931565b6001600160a01b0383166000908152600c6020526040812060050180548492906139e1908490615589565b90915550506001600160a01b0383166000908152600c602052604081206004018054849290613a119084906155e0565b9250508190555081600e6000828254613a2a91906155e0565b9091555060009050613a74613a3d612e44565b613a49612710866155c1565b613a5391906155a1565b6001600160a01b0386166000908152600c6020526040902060070154613b5a565b6001600160a01b0385166000908152600c6020526040812060070180549293508392909190613aa49084906155e0565b9250508190555080600d6000828254613abd91906155e0565b909155505050505050565b6001600160a01b0381166000908152600c6020526040812060040154600654610100900460ff1615613afb579050611f68565b6000612710613b08612e44565b6001600160a01b0386166000908152600c6020526040902060070154613b2e91906155c1565b613b3891906155a1565b9050808211613b48576000613b52565b613b5281836155e0565b949350505050565b6000818310613b69578161136a565b5090919050565b600654600090610100900460ff1615613b8b57506000611f68565b6000613b95612e44565b6001600160a01b0384166000908152600c60205260408120600701549192509061271090613bc49084906155c1565b613bce91906155a1565b6001600160a01b0385166000908152600c6020526040902060040154909150818110613c005760009350505050611f68565b600061271084600d54613c1391906155c1565b613c1d91906155a1565b905080600e5410613c35576000945050505050611f68565b6000613c4183856155e0565b9050613c69613c57613c516127cc565b83613b5a565b600e54613c6490856155e0565b613b5a565b6001600160a01b0388166000908152600c602052604090206002810154600390910154919250613cad91613c9d90436155e0565b613ca791906155c1565b82613b5a565b979650505050505050565b6040516001600160a01b0383166024820152604481018290526123cc90849063a9059cbb60e01b906064015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b0319909316929092179091526147e1565b6040516001600160a01b0380851660248301528316604482015260648101829052613d539085906323b872dd60e01b90608401613ce4565b50505050565b336000908152600c602052604081206001015461271090613d7a90846155c1565b613d8491906155a1565b905080156111ab57613d95816148b3565b90506111ab335b82614954565b6001600160a01b038316613e045760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608401610931565b6001600160a01b038216613e655760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401610931565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259101611f41565b6001600160a01b038316613f225760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b6064820152608401610931565b6001600160a01b038216613f845760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b6064820152608401610931565b6001600160a01b03831660009081526020819052604090205481811015613ffc5760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b6064820152608401610931565b61400682826155e0565b6001600160a01b03808616600090815260208190526040808220939093559085168152908120805484929061403c908490615589565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8460405161408891815260200190565b60405180910390a350505050565b600b546140ab576140a68161472e565b61332f565b806140e55760405162461bcd60e51b815260206004820152600a602482015269073686172652d69732d360b41b6044820152606401610931565b6000612710600b54836140f891906155c1565b61410291906155a1565b9050600061411082846155e0565b9050600061411d82614a33565b9050600061412a826148b3565b90508281101561416b57600b54614143906127106155e0565b61414f612710836155c1565b61415991906155a1565b945061416581866155e0565b93508092505b614176335b84614a9b565b61418c33600a546001600160a01b031686613ebe565b61419582614bea565b50604080518681526020810184905233917ff279e6a1f5e320cca91135676d9cb6e44ca8a08c0b88342bcdb1144f6511b568910161103b565b60007f000000000000000000000000000000000000000000000000000000000000000146141561421f57507f91c08ad524af2748972c65e3498ffd87f6e4d9fffa15905cee87bc7298fef45361082c565b604080517f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f6020808301919091527f025c2c1812830255bf6cf789b2ef38c41aabd1f6d9702200c3e19dde50acc11b828401527fc89efdaa54c0f20c7adf612882df0950f5a951637e0307cdcb4c672f298b8bc660608301524660808301523060a0808401919091528351808403909101815260c090920190925280519101206125f5565b60065460ff1661430d5760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b6044820152606401610931565b600654610100900460ff16156143355760405162461bcd60e51b81526004016109319061547a565b6006805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b600061438a826148b3565b905061439582614c24565b61439e33613d9c565b604080518281526020810184905233917f90890809c654f11d6e72a28fa60149770a0d11ec6c92319d6ceb2bb0a4ea1a1591016120c2565b60065460ff16156143f95760405162461bcd60e51b8152600401610931906154a6565b6006805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586143623390565b6001600160a01b03811660009081526005602052604090208054600181018255905b50919050565b60006120e86144636141ce565b8360405161190160f01b6020820152602281018390526042810182905260009060620160405160208183030381529060405280519060200120905092915050565b60007f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08211156145215760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b6064820152608401610931565b8360ff16601b148061453657508360ff16601c145b61458d5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b6064820152608401610931565b6040805160008082526020820180845288905260ff871692820192909252606081018590526080810184905260019060a0016020604051602081039080840390855afa1580156145e1573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b0381166146445760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152606401610931565b95945050505050565b600654610100900460ff16156146755760405162461bcd60e51b81526004016109319061547a565b6006805461ffff19166101011790557f28b4c24cb1012c094cd2f59f98e89d791973295f8fda6eaa118022d6d318960a6143623390565b600654610100900460ff166146fc5760405162461bcd60e51b81526020600482015260166024820152752830bab9b0b136329d103737ba1039b43aba3237bbb760511b6044820152606401610931565b6006805461ff00191690557fece7583a70a505ef0e36d4dec768f5ae597713e09c26011022599ee01abdabfc33614362565b806147685760405162461bcd60e51b815260206004820152600a602482015269073686172652d69732d360b41b6044820152606401610931565b600061477382614a33565b90506000614780826148b3565b90508281101561478e578092505b61479733614170565b6147a082614bea565b50604080518481526020810184905233917ff279e6a1f5e320cca91135676d9cb6e44ca8a08c0b88342bcdb1144f6511b568910160405180910390a2505050565b6000614836826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316614c599092919063ffffffff16565b8051909150156123cc57808060200190518101906148549190615303565b6123cc5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610931565b6000816148f05760405162461bcd60e51b815260206004820152600b60248201526a0616d6f756e742d69732d360ac1b6044820152606401610931565b60006148fa6125ca565b61490c84670de0b6b3a76400006155c1565b61491691906155a1565b9050670de0b6b3a76400006149296125ca565b61493390836155c1565b61493d91906155a1565b8311614949578061136a565b61136a816001615589565b6001600160a01b0382166149aa5760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f2061646472657373006044820152606401610931565b80600260008282546149bc9190615589565b90915550506001600160a01b038216600090815260208190526040812080548392906149e9908490615589565b90915550506040518181526001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a35050565b600080670de0b6b3a7640000614a476125ca565b614a5190856155c1565b614a5b91906155a1565b90506000614a676127cc565b905080821115614a8e57614a83614a7e82846155e0565b614c68565b614a8b6127cc565b90505b81811061136a5781613b52565b6001600160a01b038216614afb5760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b6064820152608401610931565b6001600160a01b03821660009081526020819052604090205481811015614b6f5760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b6064820152608401610931565b614b7982826155e0565b6001600160a01b03841660009081526020819052604081209190915560028054849290614ba79084906155e0565b90915550506040518281526000906001600160a01b038516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef90602001611f41565b6000614c207f0000000000000000000000001f9840a85d5af5bf1d1762f925bdaddc4201f9846001600160a01b03163384613cb8565b5090565b61332f7f0000000000000000000000001f9840a85d5af5bf1d1762f925bdaddc4201f9846001600160a01b0316333084613d1b565b6060613b528484600085614e47565b60008080808481805b601054811015614e3d57600c600060108381548110614ca057634e487b7160e01b600052603260045260246000fd5b60009182526020808320909101546001600160a01b03168352820192909252604001902060040154965086614cd457614e2b565b86831115614ce0578692505b614ce86127cc565b945060108181548110614d0b57634e487b7160e01b600052603260045260246000fd5b600091825260209091200154604051632e1a7d4d60e01b8152600481018590526001600160a01b0390911690632e1a7d4d90602401600060405180830381600087803b158015614d5a57600080fd5b505af1925050508015614d6b575060015b614d7457614e2b565b614d7c6127cc565b9550614d8885876155e0565b935083600c600060108481548110614db057634e487b7160e01b600052603260045260246000fd5b60009182526020808320909101546001600160a01b0316835282019290925260400181206004018054909190614de79084906155e0565b9250508190555083600e6000828254614e0091906155e0565b90915550614e1090508483615589565b9150878210614e1e57614e3d565b614e2882896155e0565b92505b80614e3581615658565b915050614c71565b5050505050505050565b606082471015614ea85760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b6064820152608401610931565b843b614ef65760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610931565b600080866001600160a01b03168587604051614f1291906153c4565b60006040518083038185875af1925050503d8060008114614f4f576040519150601f19603f3d011682016040523d82523d6000602084013e614f54565b606091505b5091509150613cad82828660608315614f6e57508161136a565b825115614f7e5782518084602001fd5b8160405162461bcd60e51b815260040161093191906153e0565b828054828255906000526020600020908101928215614fed579160200282015b82811115614fed57825182546001600160a01b0319166001600160a01b03909116178255602090920191600190910190614fb8565b50614c209291505b80821115614c205760008155600101614ff5565b600082601f830112615019578081fd5b8135602061502e61502983615565565b615534565b80838252828201915082860187848660051b890101111561504d578586fd5b855b858110156150745781356150628161569f565b8452928401929084019060010161504f565b5090979650505050505050565b803560ff81168114611f6857600080fd5b6000602082840312156150a3578081fd5b813561136a8161569f565b6000602082840312156150bf578081fd5b815161136a8161569f565b600080604083850312156150dc578081fd5b82356150e78161569f565b915060208301356150f78161569f565b809150509250929050565b600080600060608486031215615116578081fd5b83356151218161569f565b925060208401356151318161569f565b929592945050506040919091013590565b600080600080600080600060e0888a03121561515c578283fd5b87356151678161569f565b965060208801356151778161569f565b9550604088013594506060880135935061519360808901615081565b925060a0880135915060c0880135905092959891949750929550565b600080604083850312156151c1578182fd5b82356151cc8161569f565b946020939093013593505050565b600080600080608085870312156151ef578384fd5b84356151fa8161569f565b966020860135965060408601359560600135945092505050565b600060208284031215615225578081fd5b813567ffffffffffffffff81111561523b578182fd5b613b5284828501615009565b60008060408385031215615259578182fd5b823567ffffffffffffffff80821115615270578384fd5b61527c86838701615009565b9350602091508185013581811115615292578384fd5b85019050601f810186136152a4578283fd5b80356152b261502982615565565b80828252848201915084840189868560051b87010111156152d1578687fd5b8694505b838510156152f35780358352600194909401939185019185016152d5565b5080955050505050509250929050565b600060208284031215615314578081fd5b8151801515811461136a578182fd5b600060208284031215615334578081fd5b5035919050565b60006020828403121561534c578081fd5b5051919050565b600080600060608486031215615367578081fd5b505081359360208301359350604090920135919050565b600080600080600060a08688031215615395578283fd5b85359450602086013593506153ac60408701615081565b94979396509394606081013594506080013592915050565b600082516153d68184602087016155f7565b9190910192915050565b60006020825282518060208401526153ff8160408501602087016155f7565b601f01601f19169190910160400192915050565b60208082526016908201527531b0b63632b916b4b996b737ba16b096b5b2b2b832b960511b604082015260600190565b6020808252601a908201527f63616c6c65722d69732d6e6f742d7468652d676f7665726e6f72000000000000604082015260600190565b6020808252601290820152712830bab9b0b136329d1039b43aba3237bbb760711b604082015260600190565b60208082526010908201526f14185d5cd8589b194e881c185d5cd95960821b604082015260600190565b60208082526013908201527273747261746567792d6e6f742d61637469766560681b604082015260600190565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b604051601f8201601f1916810167ffffffffffffffff8111828210171561555d5761555d615689565b604052919050565b600067ffffffffffffffff82111561557f5761557f615689565b5060051b60200190565b6000821982111561559c5761559c615673565b500190565b6000826155bc57634e487b7160e01b81526012600452602481fd5b500490565b60008160001904831182151516156155db576155db615673565b500290565b6000828210156155f2576155f2615673565b500390565b60005b838110156156125781810151838201526020016155fa565b83811115613d535750506000910152565b600181811c9082168061563757607f821691505b6020821081141561445057634e487b7160e01b600052602260045260246000fd5b600060001982141561566c5761566c615673565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b038116811461332f57600080fdfea2646970667358221220acbc39fa70c20c6d0cb65f203323b1ebd46491dcd88e30246d74e2f886e4c8be64736f6c63430008030033

Loading...
Loading
Loading...
Loading
[ Download: CSV Export  ]
[ Download: CSV Export  ]

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