ETH Price: $2,522.50 (-0.07%)

Contract

0xA9f983a0D33a6Fa782ddD29C93649F7D65dF4DD9
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Initialize162374882022-12-22 3:15:23618 days ago1671678923IN
0xA9f983a0...D65dF4DD9
0 ETH0.0007750810.71610574
0x60806040145888872022-04-15 8:33:47869 days ago1650011627IN
 Create: OpenOceanExchange
0 ETH0.0760735229.24507975

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
OpenOceanExchange

Compiler Version
v0.6.12+commit.27d51765

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, MIT license

Contract Source Code (Solidity)

/**
 *Submitted for verification at Etherscan.io on 2022-04-15
*/

// File: @openzeppelin/contracts-upgradeable/utils/AddressUpgradeable.sol

// SPDX-License-Identifier: MIT

pragma solidity >=0.6.2 <0.8.0;

/**
 * @dev Collection of functions related to the address type
 */
library AddressUpgradeable {
    /**
     * @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);
    }

    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: @openzeppelin/contracts-upgradeable/proxy/Initializable.sol



// solhint-disable-next-line compiler-version
pragma solidity >=0.4.24 <0.8.0;


/**
 * @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed
 * behind a proxy. Since a proxied contract can't have a constructor, it's common to move constructor logic to an
 * external initializer function, usually called `initialize`. It then becomes necessary to protect this initializer
 * function so it can only be called once. The {initializer} modifier provided by this contract will have this effect.
 *
 * TIP: To avoid leaving the proxy in an uninitialized state, the initializer function should be called as early as
 * possible by providing the encoded function call as the `_data` argument to {UpgradeableProxy-constructor}.
 *
 * CAUTION: When used with inheritance, manual care must be taken to not invoke a parent initializer twice, or to ensure
 * that all initializers are idempotent. This is not verified automatically as constructors are by Solidity.
 */
abstract contract Initializable {

    /**
     * @dev Indicates that the contract has been initialized.
     */
    bool private _initialized;

    /**
     * @dev Indicates that the contract is in the process of being initialized.
     */
    bool private _initializing;

    /**
     * @dev Modifier to protect an initializer function from being invoked twice.
     */
    modifier initializer() {
        require(_initializing || _isConstructor() || !_initialized, "Initializable: contract is already initialized");

        bool isTopLevelCall = !_initializing;
        if (isTopLevelCall) {
            _initializing = true;
            _initialized = true;
        }

        _;

        if (isTopLevelCall) {
            _initializing = false;
        }
    }

    /// @dev Returns true if and only if the function is running in the constructor
    function _isConstructor() private view returns (bool) {
        return !AddressUpgradeable.isContract(address(this));
    }
}

// File: @openzeppelin/contracts-upgradeable/utils/ContextUpgradeable.sol



pragma solidity >=0.6.0 <0.8.0;


/*
 * @dev Provides information about the current execution context, including the
 * sender of the transaction and its data. While these are generally available
 * via msg.sender and msg.data, they should not be accessed in such a direct
 * manner, since when dealing with GSN meta-transactions the account sending and
 * paying for execution may not be the actual sender (as far as an application
 * is concerned).
 *
 * This contract is only required for intermediate, library-like contracts.
 */
abstract contract ContextUpgradeable is Initializable {
    function __Context_init() internal initializer {
        __Context_init_unchained();
    }

    function __Context_init_unchained() internal initializer {
    }
    function _msgSender() internal view virtual returns (address payable) {
        return msg.sender;
    }

    function _msgData() internal view virtual returns (bytes memory) {
        this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691
        return msg.data;
    }
    uint256[50] private __gap;
}

// File: @openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol



pragma solidity >=0.6.0 <0.8.0;


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

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

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    function __Ownable_init() internal initializer {
        __Context_init_unchained();
        __Ownable_init_unchained();
    }

    function __Ownable_init_unchained() internal initializer {
        address msgSender = _msgSender();
        _owner = msgSender;
        emit OwnershipTransferred(address(0), msgSender);
    }

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

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

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

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

// File: @openzeppelin/contracts/token/ERC20/IERC20.sol



pragma solidity >=0.6.0 <0.8.0;

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

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

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

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

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

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

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

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

// File: @openzeppelin/contracts/math/SafeMath.sol



pragma solidity >=0.6.0 <0.8.0;

/**
 * @dev Wrappers over Solidity's arithmetic operations with added overflow
 * checks.
 *
 * Arithmetic operations in Solidity wrap on overflow. This can easily result
 * in bugs, because programmers usually assume that an overflow raises an
 * error, which is the standard behavior in high level programming languages.
 * `SafeMath` restores this intuition by reverting the transaction when an
 * operation overflows.
 *
 * Using this library instead of the unchecked operations eliminates an entire
 * class of bugs, so it's recommended to use it always.
 */
library SafeMath {
    /**
     * @dev Returns the addition of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        uint256 c = a + b;
        if (c < a) return (false, 0);
        return (true, c);
    }

    /**
     * @dev Returns the substraction of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        if (b > a) return (false, 0);
        return (true, a - b);
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        // Gas optimization: this is cheaper than requiring 'a' not being zero, but the
        // benefit is lost if 'b' is also tested.
        // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
        if (a == 0) return (true, 0);
        uint256 c = a * b;
        if (c / a != b) return (false, 0);
        return (true, c);
    }

    /**
     * @dev Returns the division of two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        if (b == 0) return (false, 0);
        return (true, a / b);
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        if (b == 0) return (false, 0);
        return (true, a % b);
    }

    /**
     * @dev Returns the addition of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `+` operator.
     *
     * Requirements:
     *
     * - Addition cannot overflow.
     */
    function add(uint256 a, uint256 b) internal pure returns (uint256) {
        uint256 c = a + b;
        require(c >= a, "SafeMath: addition overflow");
        return c;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting on
     * overflow (when the result is negative).
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(uint256 a, uint256 b) internal pure returns (uint256) {
        require(b <= a, "SafeMath: subtraction overflow");
        return a - b;
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `*` operator.
     *
     * Requirements:
     *
     * - Multiplication cannot overflow.
     */
    function mul(uint256 a, uint256 b) internal pure returns (uint256) {
        if (a == 0) return 0;
        uint256 c = a * b;
        require(c / a == b, "SafeMath: multiplication overflow");
        return c;
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator. Note: this function uses a
     * `revert` opcode (which leaves remaining gas untouched) while Solidity
     * uses an invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b) internal pure returns (uint256) {
        require(b > 0, "SafeMath: division by zero");
        return a / b;
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting when dividing by zero.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(uint256 a, uint256 b) internal pure returns (uint256) {
        require(b > 0, "SafeMath: modulo by zero");
        return a % b;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting with custom message on
     * overflow (when the result is negative).
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {trySub}.
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b <= a, errorMessage);
        return a - b;
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting with custom message on
     * division by zero. The result is rounded towards zero.
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {tryDiv}.
     *
     * Counterpart to Solidity's `/` operator. Note: this function uses a
     * `revert` opcode (which leaves remaining gas untouched) while Solidity
     * uses an invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b > 0, errorMessage);
        return a / b;
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting with custom message when dividing by zero.
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {tryMod}.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b > 0, errorMessage);
        return a % b;
    }
}

// File: @openzeppelin/contracts/utils/Address.sol



pragma solidity >=0.6.2 <0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

// File: @openzeppelin/contracts/token/ERC20/SafeERC20.sol



pragma solidity >=0.6.0 <0.8.0;




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

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

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

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

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

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

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

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

// File: @openzeppelin/contracts-upgradeable/utils/PausableUpgradeable.sol



pragma solidity >=0.6.0 <0.8.0;



/**
 * @dev Contract module which allows children to implement an emergency stop
 * mechanism that can be triggered by an authorized account.
 *
 * This module is used through inheritance. It will make available the
 * modifiers `whenNotPaused` and `whenPaused`, which can be applied to
 * the functions of your contract. Note that they will not be pausable by
 * simply including this module, only once the modifiers are put in place.
 */
abstract contract PausableUpgradeable is Initializable, ContextUpgradeable {
    /**
     * @dev Emitted when the pause is triggered by `account`.
     */
    event Paused(address account);

    /**
     * @dev Emitted when the pause is lifted by `account`.
     */
    event Unpaused(address account);

    bool private _paused;

    /**
     * @dev Initializes the contract in unpaused state.
     */
    function __Pausable_init() internal initializer {
        __Context_init_unchained();
        __Pausable_init_unchained();
    }

    function __Pausable_init_unchained() internal initializer {
        _paused = false;
    }

    /**
     * @dev Returns true if the contract is paused, and false otherwise.
     */
    function paused() public view virtual returns (bool) {
        return _paused;
    }

    /**
     * @dev Modifier to make a function callable only when the contract is not paused.
     *
     * Requirements:
     *
     * - The contract must not be paused.
     */
    modifier whenNotPaused() {
        require(!paused(), "Pausable: paused");
        _;
    }

    /**
     * @dev Modifier to make a function callable only when the contract is paused.
     *
     * Requirements:
     *
     * - The contract must be paused.
     */
    modifier whenPaused() {
        require(paused(), "Pausable: not paused");
        _;
    }

    /**
     * @dev Triggers stopped state.
     *
     * Requirements:
     *
     * - The contract must not be paused.
     */
    function _pause() internal virtual whenNotPaused {
        _paused = true;
        emit Paused(_msgSender());
    }

    /**
     * @dev Returns to normal state.
     *
     * Requirements:
     *
     * - The contract must be paused.
     */
    function _unpause() internal virtual whenPaused {
        _paused = false;
        emit Unpaused(_msgSender());
    }
    uint256[49] private __gap;
}

// File: contracts/interfaces/IOpenOceanCaller.sol


pragma solidity ^0.6.12;


interface IOpenOceanCaller {
    struct CallDescription {
        uint256 target;
        uint256 gasLimit;
        uint256 value;
        bytes data;
    }

    function makeCall(CallDescription memory desc) external;

    function makeCalls(CallDescription[] memory desc) external payable;
}

// File: contracts/libraries/RevertReasonParser.sol


pragma solidity ^0.6.0;

library RevertReasonParser {
    function parse(bytes memory data, string memory prefix) internal pure returns (string memory) {
        // https://solidity.readthedocs.io/en/latest/control-structures.html#revert
        // We assume that revert reason is abi-encoded as Error(string)

        // 68 = 4-byte selector 0x08c379a0 + 32 bytes offset + 32 bytes length
        if (data.length >= 68 && data[0] == "\x08" && data[1] == "\xc3" && data[2] == "\x79" && data[3] == "\xa0") {
            string memory reason;
            // solhint-disable no-inline-assembly
            assembly {
                // 68 = 32 bytes data length + 4-byte selector + 32 bytes offset
                reason := add(data, 68)
            }
            /*
                revert reason is padded up to 32 bytes with ABI encoder: Error(string)
                also sometimes there is extra 32 bytes of zeros padded in the end:
                https://github.com/ethereum/solidity/issues/10170
                because of that we can't check for equality and instead check
                that string length + extra 68 bytes is less than overall data length
            */
            require(data.length >= 68 + bytes(reason).length, "Invalid revert reason");
            return string(abi.encodePacked(prefix, "Error(", reason, ")"));
        }
        // 36 = 4-byte selector 0x4e487b71 + 32 bytes integer
        else if (data.length == 36 && data[0] == "\x4e" && data[1] == "\x48" && data[2] == "\x7b" && data[3] == "\x71") {
            uint256 code;
            // solhint-disable no-inline-assembly
            assembly {
                // 36 = 32 bytes data length + 4-byte selector
                code := mload(add(data, 36))
            }
            return string(abi.encodePacked(prefix, "Panic(", _toHex(code), ")"));
        }

        return string(abi.encodePacked(prefix, "Unknown()"));
    }

    function _toHex(uint256 value) private pure returns(string memory) {
        return _toHex(abi.encodePacked(value));
    }

    function _toHex(bytes memory data) private pure returns(string memory) {
        bytes memory alphabet = "0123456789abcdef";
        bytes memory str = new bytes(2 + data.length * 2);
        str[0] = "0";
        str[1] = "x";
        for (uint256 i = 0; i < data.length; i++) {
            str[2 * i + 2] = alphabet[uint8(data[i] >> 4)];
            str[2 * i + 3] = alphabet[uint8(data[i] & 0x0f)];
        }
        return string(str);
    }
}

// File: contracts/libraries/UniversalERC20.sol


pragma solidity ^0.6.0;




library UniversalERC20 {
    using SafeMath for uint256;
    using SafeERC20 for IERC20;

    IERC20 internal constant ZERO_ADDRESS = IERC20(0x0000000000000000000000000000000000000000);
    IERC20 internal constant ETH_ADDRESS = IERC20(0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE);
    IERC20 internal constant MATIC_ADDRESS = IERC20(0x0000000000000000000000000000000000001010);

    function universalTransfer(
        IERC20 token,
        address payable to,
        uint256 amount
    ) internal {
        if (amount > 0) {
            if (isETH(token)) {
                to.transfer(amount);
            } else {
                token.safeTransfer(to, amount);
            }
        }
    }

    function universalApprove(
        IERC20 token,
        address to,
        uint256 amount
    ) internal {
        require(!isETH(token), "Approve called on ETH");

        if (amount == 0) {
            token.safeApprove(to, 0);
        } else {
            uint256 allowance = token.allowance(address(this), to);
            if (allowance < amount) {
                if (allowance > 0) {
                    token.safeApprove(to, 0);
                }
                token.safeApprove(to, amount);
            }
        }
    }

    function universalBalanceOf(IERC20 token, address account) internal view returns (uint256) {
        if (isETH(token)) {
            return account.balance;
        } else {
            return token.balanceOf(account);
        }
    }

    function isETH(IERC20 token) internal pure returns (bool) {
        return
            address(token) == address(ETH_ADDRESS) ||
            address(token) == address(MATIC_ADDRESS) ||
            address(token) == address(ZERO_ADDRESS);
    }
}

// File: contracts/libraries/EthRejector.sol


pragma solidity ^0.6.12;

abstract contract EthRejector {
    receive() external payable {
        require(msg.sender != tx.origin, "ETH deposit rejected");
    }
}

// File: @openzeppelin/contracts/drafts/IERC20Permit.sol



pragma solidity >=0.6.0 <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: contracts/libraries/Permitable.sol


pragma solidity ^0.6.12;



/// @title Interface for DAI-style permits
interface IDaiLikePermit {
    function permit(
        address holder,
        address spender,
        uint256 nonce,
        uint256 expiry,
        bool allowed,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) external;
}

/// @title Base contract with common permit handling logics
contract Permitable {
    function _permit(address token, bytes calldata permit) internal {
        if (permit.length > 0) {
            bool success;
            bytes memory result;
            if (permit.length == 32 * 7) {
                // solhint-disable-next-line avoid-low-level-calls
                (success, result) = token.call(abi.encodePacked(IERC20Permit.permit.selector, permit));
            } else if (permit.length == 32 * 8) {
                // solhint-disable-next-line avoid-low-level-calls
                (success, result) = token.call(abi.encodePacked(IDaiLikePermit.permit.selector, permit));
            } else {
                revert("Wrong permit length");
            }
            if (!success) {
                revert(RevertReasonParser.parse(result, "Permit failed: "));
            }
        }
    }
}

// File: contracts/UniswapV2Exchange.sol



pragma solidity ^0.6.12;




contract UniswapV2Exchange is EthRejector, Permitable {
    uint256 private constant TRANSFER_FROM_CALL_SELECTOR_32 = 0x23b872dd00000000000000000000000000000000000000000000000000000000;
    uint256 private constant WETH_DEPOSIT_CALL_SELECTOR_32 = 0xd0e30db000000000000000000000000000000000000000000000000000000000;
    uint256 private constant WETH_WITHDRAW_CALL_SELECTOR_32 = 0x2e1a7d4d00000000000000000000000000000000000000000000000000000000;
    uint256 private constant ERC20_TRANSFER_CALL_SELECTOR_32 = 0xa9059cbb00000000000000000000000000000000000000000000000000000000;
    uint256 private constant ADDRESS_MASK = 0x000000000000000000000000ffffffffffffffffffffffffffffffffffffffff;
    uint256 private constant REVERSE_MASK = 0x8000000000000000000000000000000000000000000000000000000000000000;
    uint256 private constant WETH_MASK = 0x4000000000000000000000000000000000000000000000000000000000000000;
    uint256 private constant NUMERATOR_MASK = 0x0000000000000000ffffffff0000000000000000000000000000000000000000;
    uint256 private constant WETH = 0x000000000000000000000000C02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2;
    uint256 private constant UNISWAP_PAIR_RESERVES_CALL_SELECTOR_32 =
        0x0902f1ac00000000000000000000000000000000000000000000000000000000;
    uint256 private constant UNISWAP_PAIR_SWAP_CALL_SELECTOR_32 =
        0x022c0d9f00000000000000000000000000000000000000000000000000000000;
    uint256 private constant DENOMINATOR = 1000000000;
    uint256 private constant NUMERATOR_OFFSET = 160;

    function callUniswapWithPermit(
        IERC20 srcToken,
        uint256 amount,
        uint256 minReturn,
        bytes32[] calldata pools,
        bytes calldata permit
    ) external returns (uint256 returnAmount) {
        _permit(address(srcToken), permit);
        return callUniswap(srcToken, amount, minReturn, pools);
    }

    function callUniswap(
        IERC20 srcToken,
        uint256 amount,
        uint256 minReturn,
        bytes32[] calldata /* pools */
    ) public payable returns (uint256 returnAmount) {
        assembly {
            // solhint-disable-line no-inline-assembly
            function reRevert() {
                returndatacopy(0, 0, returndatasize())
                revert(0, returndatasize())
            }

            function revertWithReason(m, len) {
                mstore(0, 0x08c379a000000000000000000000000000000000000000000000000000000000)
                mstore(0x20, 0x0000002000000000000000000000000000000000000000000000000000000000)
                mstore(0x40, m)
                revert(0, len)
            }

            function swap(emptyPtr, swapAmount, pair, reversed, numerator, dst) -> ret {
                mstore(emptyPtr, UNISWAP_PAIR_RESERVES_CALL_SELECTOR_32)
                if iszero(staticcall(gas(), pair, emptyPtr, 0x4, emptyPtr, 0x40)) {
                    reRevert()
                }

                let reserve0 := mload(emptyPtr)
                let reserve1 := mload(add(emptyPtr, 0x20))
                if reversed {
                    let tmp := reserve0
                    reserve0 := reserve1
                    reserve1 := tmp
                }
                ret := mul(swapAmount, numerator)
                ret := div(mul(ret, reserve1), add(ret, mul(reserve0, DENOMINATOR)))

                mstore(emptyPtr, UNISWAP_PAIR_SWAP_CALL_SELECTOR_32)
                switch reversed
                case 0 {
                    mstore(add(emptyPtr, 0x04), 0)
                    mstore(add(emptyPtr, 0x24), ret)
                }
                default {
                    mstore(add(emptyPtr, 0x04), ret)
                    mstore(add(emptyPtr, 0x24), 0)
                }
                mstore(add(emptyPtr, 0x44), dst)
                mstore(add(emptyPtr, 0x64), 0x80)
                mstore(add(emptyPtr, 0x84), 0)
                if iszero(call(gas(), pair, 0, emptyPtr, 0xa4, 0, 0)) {
                    reRevert()
                }
            }

            let emptyPtr := mload(0x40)
            mstore(0x40, add(emptyPtr, 0xc0))

            let poolsOffset := add(calldataload(0x64), 0x4)
            let poolsEndOffset := calldataload(poolsOffset)
            poolsOffset := add(poolsOffset, 0x20)
            poolsEndOffset := add(poolsOffset, mul(0x20, poolsEndOffset))
            let rawPair := calldataload(poolsOffset)
            switch srcToken
            case 0 {
                if iszero(eq(amount, callvalue())) {
                    revertWithReason(0x00000011696e76616c6964206d73672e76616c75650000000000000000000000, 0x55) // "invalid msg.value"
                }

                mstore(emptyPtr, WETH_DEPOSIT_CALL_SELECTOR_32)
                if iszero(call(gas(), WETH, amount, emptyPtr, 0x4, 0, 0)) {
                    reRevert()
                }

                mstore(emptyPtr, ERC20_TRANSFER_CALL_SELECTOR_32)
                mstore(add(emptyPtr, 0x4), and(rawPair, ADDRESS_MASK))
                mstore(add(emptyPtr, 0x24), amount)
                if iszero(call(gas(), WETH, 0, emptyPtr, 0x44, 0, 0)) {
                    reRevert()
                }
            }
            default {
                if callvalue() {
                    revertWithReason(0x00000011696e76616c6964206d73672e76616c75650000000000000000000000, 0x55) // "invalid msg.value"
                }

                mstore(emptyPtr, TRANSFER_FROM_CALL_SELECTOR_32)
                mstore(add(emptyPtr, 0x4), caller())
                mstore(add(emptyPtr, 0x24), and(rawPair, ADDRESS_MASK))
                mstore(add(emptyPtr, 0x44), amount)
                if iszero(call(gas(), srcToken, 0, emptyPtr, 0x64, 0, 0)) {
                    reRevert()
                }
            }

            returnAmount := amount

            for {
                let i := add(poolsOffset, 0x20)
            } lt(i, poolsEndOffset) {
                i := add(i, 0x20)
            } {
                let nextRawPair := calldataload(i)

                returnAmount := swap(
                    emptyPtr,
                    returnAmount,
                    and(rawPair, ADDRESS_MASK),
                    and(rawPair, REVERSE_MASK),
                    shr(NUMERATOR_OFFSET, and(rawPair, NUMERATOR_MASK)),
                    and(nextRawPair, ADDRESS_MASK)
                )

                rawPair := nextRawPair
            }

            switch and(rawPair, WETH_MASK)
            case 0 {
                returnAmount := swap(
                    emptyPtr,
                    returnAmount,
                    and(rawPair, ADDRESS_MASK),
                    and(rawPair, REVERSE_MASK),
                    shr(NUMERATOR_OFFSET, and(rawPair, NUMERATOR_MASK)),
                    caller()
                )
            }
            default {
                returnAmount := swap(
                    emptyPtr,
                    returnAmount,
                    and(rawPair, ADDRESS_MASK),
                    and(rawPair, REVERSE_MASK),
                    shr(NUMERATOR_OFFSET, and(rawPair, NUMERATOR_MASK)),
                    address()
                )

                mstore(emptyPtr, WETH_WITHDRAW_CALL_SELECTOR_32)
                mstore(add(emptyPtr, 0x04), returnAmount)
                if iszero(call(gas(), WETH, 0, emptyPtr, 0x24, 0, 0)) {
                    reRevert()
                }

                if iszero(call(gas(), caller(), returnAmount, 0, 0, 0, 0)) {
                    reRevert()
                }
            }

            if lt(returnAmount, minReturn) {
                revertWithReason(0x000000164d696e2072657475726e206e6f742072656163686564000000000000, 0x5a) // "Min return not reached"
            }
        }
    }
}

// File: @openzeppelin/contracts/utils/SafeCast.sol



pragma solidity >=0.6.0 <0.8.0;


/**
 * @dev Wrappers over Solidity's uintXX/intXX casting operators with added overflow
 * checks.
 *
 * Downcasting from uint256/int256 in Solidity does not revert on overflow. This can
 * easily result in undesired exploitation or bugs, since developers usually
 * assume that overflows raise errors. `SafeCast` restores this intuition by
 * reverting the transaction when such an operation overflows.
 *
 * Using this library instead of the unchecked operations eliminates an entire
 * class of bugs, so it's recommended to use it always.
 *
 * Can be combined with {SafeMath} and {SignedSafeMath} to extend it to smaller types, by performing
 * all math on `uint256` and `int256` and then downcasting.
 */
library SafeCast {

    /**
     * @dev Returns the downcasted uint128 from uint256, reverting on
     * overflow (when the input is greater than largest uint128).
     *
     * Counterpart to Solidity's `uint128` operator.
     *
     * Requirements:
     *
     * - input must fit into 128 bits
     */
    function toUint128(uint256 value) internal pure returns (uint128) {
        require(value < 2**128, "SafeCast: value doesn\'t fit in 128 bits");
        return uint128(value);
    }

    /**
     * @dev Returns the downcasted uint64 from uint256, reverting on
     * overflow (when the input is greater than largest uint64).
     *
     * Counterpart to Solidity's `uint64` operator.
     *
     * Requirements:
     *
     * - input must fit into 64 bits
     */
    function toUint64(uint256 value) internal pure returns (uint64) {
        require(value < 2**64, "SafeCast: value doesn\'t fit in 64 bits");
        return uint64(value);
    }

    /**
     * @dev Returns the downcasted uint32 from uint256, reverting on
     * overflow (when the input is greater than largest uint32).
     *
     * Counterpart to Solidity's `uint32` operator.
     *
     * Requirements:
     *
     * - input must fit into 32 bits
     */
    function toUint32(uint256 value) internal pure returns (uint32) {
        require(value < 2**32, "SafeCast: value doesn\'t fit in 32 bits");
        return uint32(value);
    }

    /**
     * @dev Returns the downcasted uint16 from uint256, reverting on
     * overflow (when the input is greater than largest uint16).
     *
     * Counterpart to Solidity's `uint16` operator.
     *
     * Requirements:
     *
     * - input must fit into 16 bits
     */
    function toUint16(uint256 value) internal pure returns (uint16) {
        require(value < 2**16, "SafeCast: value doesn\'t fit in 16 bits");
        return uint16(value);
    }

    /**
     * @dev Returns the downcasted uint8 from uint256, reverting on
     * overflow (when the input is greater than largest uint8).
     *
     * Counterpart to Solidity's `uint8` operator.
     *
     * Requirements:
     *
     * - input must fit into 8 bits.
     */
    function toUint8(uint256 value) internal pure returns (uint8) {
        require(value < 2**8, "SafeCast: value doesn\'t fit in 8 bits");
        return uint8(value);
    }

    /**
     * @dev Converts a signed int256 into an unsigned uint256.
     *
     * Requirements:
     *
     * - input must be greater than or equal to 0.
     */
    function toUint256(int256 value) internal pure returns (uint256) {
        require(value >= 0, "SafeCast: value must be positive");
        return uint256(value);
    }

    /**
     * @dev Returns the downcasted int128 from int256, reverting on
     * overflow (when the input is less than smallest int128 or
     * greater than largest int128).
     *
     * Counterpart to Solidity's `int128` operator.
     *
     * Requirements:
     *
     * - input must fit into 128 bits
     *
     * _Available since v3.1._
     */
    function toInt128(int256 value) internal pure returns (int128) {
        require(value >= -2**127 && value < 2**127, "SafeCast: value doesn\'t fit in 128 bits");
        return int128(value);
    }

    /**
     * @dev Returns the downcasted int64 from int256, reverting on
     * overflow (when the input is less than smallest int64 or
     * greater than largest int64).
     *
     * Counterpart to Solidity's `int64` operator.
     *
     * Requirements:
     *
     * - input must fit into 64 bits
     *
     * _Available since v3.1._
     */
    function toInt64(int256 value) internal pure returns (int64) {
        require(value >= -2**63 && value < 2**63, "SafeCast: value doesn\'t fit in 64 bits");
        return int64(value);
    }

    /**
     * @dev Returns the downcasted int32 from int256, reverting on
     * overflow (when the input is less than smallest int32 or
     * greater than largest int32).
     *
     * Counterpart to Solidity's `int32` operator.
     *
     * Requirements:
     *
     * - input must fit into 32 bits
     *
     * _Available since v3.1._
     */
    function toInt32(int256 value) internal pure returns (int32) {
        require(value >= -2**31 && value < 2**31, "SafeCast: value doesn\'t fit in 32 bits");
        return int32(value);
    }

    /**
     * @dev Returns the downcasted int16 from int256, reverting on
     * overflow (when the input is less than smallest int16 or
     * greater than largest int16).
     *
     * Counterpart to Solidity's `int16` operator.
     *
     * Requirements:
     *
     * - input must fit into 16 bits
     *
     * _Available since v3.1._
     */
    function toInt16(int256 value) internal pure returns (int16) {
        require(value >= -2**15 && value < 2**15, "SafeCast: value doesn\'t fit in 16 bits");
        return int16(value);
    }

    /**
     * @dev Returns the downcasted int8 from int256, reverting on
     * overflow (when the input is less than smallest int8 or
     * greater than largest int8).
     *
     * Counterpart to Solidity's `int8` operator.
     *
     * Requirements:
     *
     * - input must fit into 8 bits.
     *
     * _Available since v3.1._
     */
    function toInt8(int256 value) internal pure returns (int8) {
        require(value >= -2**7 && value < 2**7, "SafeCast: value doesn\'t fit in 8 bits");
        return int8(value);
    }

    /**
     * @dev Converts an unsigned uint256 into a signed int256.
     *
     * Requirements:
     *
     * - input must be less than or equal to maxInt256.
     */
    function toInt256(uint256 value) internal pure returns (int256) {
        require(value < 2**255, "SafeCast: value doesn't fit in an int256");
        return int256(value);
    }
}

// File: contracts/interfaces/IUniswapV3.sol


pragma solidity ^0.6.12;

interface IUniswapV3Pool {
    /// @notice Swap token0 for token1, or token1 for token0
    /// @dev The caller of this method receives a callback in the form of IUniswapV3SwapCallback#uniswapV3SwapCallback
    /// @param recipient The address to receive the output of the swap
    /// @param zeroForOne The direction of the swap, true for token0 to token1, false for token1 to token0
    /// @param amountSpecified The amount of the swap, which implicitly configures the swap as exact input (positive), or exact output (negative)
    /// @param sqrtPriceLimitX96 The Q64.96 sqrt price limit. If zero for one, the price cannot be less than this
    /// value after the swap. If one for zero, the price cannot be greater than this value after the swap
    /// @param data Any data to be passed through to the callback
    /// @return amount0 The delta of the balance of token0 of the pool, exact when negative, minimum when positive
    /// @return amount1 The delta of the balance of token1 of the pool, exact when negative, minimum when positive
    function swap(
        address recipient,
        bool zeroForOne,
        int256 amountSpecified,
        uint160 sqrtPriceLimitX96,
        bytes calldata data
    ) external returns (int256 amount0, int256 amount1);

    /// @notice The first of the two tokens of the pool, sorted by address
    /// @return The token contract address
    function token0() external view returns (address);

    /// @notice The second of the two tokens of the pool, sorted by address
    /// @return The token contract address
    function token1() external view returns (address);

    /// @notice The pool's fee in hundredths of a bip, i.e. 1e-6
    /// @return The fee
    function fee() external view returns (uint24);
}

/// @title Callback for IUniswapV3PoolActions#swap
/// @notice Any contract that calls IUniswapV3PoolActions#swap must implement this interface
interface IUniswapV3SwapCallback {
    /// @notice Called to `msg.sender` after executing a swap via IUniswapV3Pool#swap.
    /// @dev In the implementation you must pay the pool tokens owed for the swap.
    /// The caller of this method must be checked to be a UniswapV3Pool deployed by the canonical UniswapV3Factory.
    /// amount0Delta and amount1Delta can both be 0 if no tokens were swapped.
    /// @param amount0Delta The amount of token0 that was sent (negative) or must be received (positive) by the pool by
    /// the end of the swap. If positive, the callback must send that amount of token0 to the pool.
    /// @param amount1Delta The amount of token1 that was sent (negative) or must be received (positive) by the pool by
    /// the end of the swap. If positive, the callback must send that amount of token1 to the pool.
    /// @param data Any data passed through by the caller via the IUniswapV3PoolActions#swap call
    function uniswapV3SwapCallback(
        int256 amount0Delta,
        int256 amount1Delta,
        bytes calldata data
    ) external;
}

// File: contracts/interfaces/IWETH.sol


pragma solidity ^0.6.12;


/// @title Interface for WETH tokens
interface IWETH is IERC20 {
    function deposit() external payable;

    function withdraw(uint256 amount) external;
}

// File: contracts/UniswapV3Exchange.sol


pragma solidity ^0.6.12;







contract UniswapV3Exchange is EthRejector, Permitable, IUniswapV3SwapCallback {
    using Address for address payable;
    using SafeERC20 for IERC20;
    using SafeMath for uint256;

    uint256 private constant _ONE_FOR_ZERO_MASK = 1 << 255;
    uint256 private constant _WETH_WRAP_MASK = 1 << 254;
    uint256 private constant _WETH_UNWRAP_MASK = 1 << 253;
    bytes32 private constant _POOL_INIT_CODE_HASH = 0xe34f199b19b2b4f47f68442619d555527d244f78a3297ea89325f843f87b8b54;
    bytes32 private constant _FF_FACTORY = 0xff1F98431c8aD98523631AE4a59f267346ea31F9840000000000000000000000;
    bytes32 private constant _SELECTORS = 0x0dfe1681d21220a7ddca3f430000000000000000000000000000000000000000;
    uint256 private constant _ADDRESS_MASK = 0x000000000000000000000000ffffffffffffffffffffffffffffffffffffffff;
    /// @dev The minimum value that can be returned from #getSqrtRatioAtTick. Equivalent to getSqrtRatioAtTick(MIN_TICK)
    uint160 private constant _MIN_SQRT_RATIO = 4295128739 + 1;
    /// @dev The maximum value that can be returned from #getSqrtRatioAtTick. Equivalent to getSqrtRatioAtTick(MAX_TICK)
    uint160 private constant _MAX_SQRT_RATIO = 1461446703485210103287273052203988822378723970342 - 1;
    /// @dev Change for different chains
    address private constant _WETH = 0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2;

    /// @notice Same as `uniswapV3SwapTo` but calls permit first,
    /// allowing to approve token spending and make a swap in one transaction.
    /// @param recipient Address that will receive swap funds
    /// @param srcToken Source token
    /// @param amount Amount of source tokens to swap
    /// @param minReturn Minimal allowed returnAmount to make transaction commit
    /// @param pools Pools chain used for swaps. Pools src and dst tokens should match to make swap happen
    /// @param permit Should contain valid permit that can be used in `IERC20Permit.permit` calls.
    /// See tests for examples
    function uniswapV3SwapToWithPermit(
        address payable recipient,
        IERC20 srcToken,
        uint256 amount,
        uint256 minReturn,
        uint256[] calldata pools,
        bytes calldata permit
    ) external returns (uint256 returnAmount) {
        _permit(address(srcToken), permit);
        return uniswapV3SwapTo(recipient, amount, minReturn, pools);
    }

    /// @notice Same as `uniswapV3SwapTo` but uses `msg.sender` as recipient
    /// @param amount Amount of source tokens to swap
    /// @param minReturn Minimal allowed returnAmount to make transaction commit
    /// @param pools Pools chain used for swaps. Pools src and dst tokens should match to make swap happen
    function uniswapV3Swap(
        uint256 amount,
        uint256 minReturn,
        uint256[] calldata pools
    ) external payable returns (uint256 returnAmount) {
        return uniswapV3SwapTo(msg.sender, amount, minReturn, pools);
    }

    /// @notice Performs swap using Uniswap V3 exchange. Wraps and unwraps ETH if required.
    /// Sending non-zero `msg.value` for anything but ETH swaps is prohibited
    /// @param recipient Address that will receive swap funds
    /// @param amount Amount of source tokens to swap
    /// @param minReturn Minimal allowed returnAmount to make transaction commit
    /// @param pools Pools chain used for swaps. Pools src and dst tokens should match to make swap happen
    function uniswapV3SwapTo(
        address payable recipient,
        uint256 amount,
        uint256 minReturn,
        uint256[] calldata pools
    ) public payable returns (uint256 returnAmount) {
        uint256 len = pools.length;
        require(len > 0, "UniswapV3: empty pools");
        uint256 lastIndex = len - 1;
        returnAmount = amount;
        bool wrapWeth = pools[0] & _WETH_WRAP_MASK > 0;
        bool unwrapWeth = pools[lastIndex] & _WETH_UNWRAP_MASK > 0;
        if (wrapWeth) {
            require(msg.value == amount, "UniswapV3: wrong msg.value");
            IWETH(_WETH).deposit{value: amount}();
        } else {
            require(msg.value == 0, "UniswapV3: msg.value should be 0");
        }
        if (len > 1) {
            returnAmount = _makeSwap(address(this), wrapWeth ? address(this) : msg.sender, pools[0], returnAmount);

            for (uint256 i = 1; i < lastIndex; i++) {
                returnAmount = _makeSwap(address(this), address(this), pools[i], returnAmount);
            }
            returnAmount = _makeSwap(unwrapWeth ? address(this) : recipient, address(this), pools[lastIndex], returnAmount);
        } else {
            returnAmount = _makeSwap(
                unwrapWeth ? address(this) : recipient,
                wrapWeth ? address(this) : msg.sender,
                pools[0],
                returnAmount
            );
        }

        require(returnAmount >= minReturn, "UniswapV3: min return");

        if (unwrapWeth) {
            IWETH(_WETH).withdraw(returnAmount);
            recipient.sendValue(returnAmount);
        }
    }

    /// @inheritdoc IUniswapV3SwapCallback
    function uniswapV3SwapCallback(
        int256 amount0Delta,
        int256 amount1Delta,
        bytes calldata /* data */
    ) external override {
        IERC20 token0;
        IERC20 token1;
        bytes32 ffFactoryAddress = _FF_FACTORY;
        bytes32 poolInitCodeHash = _POOL_INIT_CODE_HASH;
        address payer;

        assembly {
            // solhint-disable-line no-inline-assembly
            function reRevert() {
                returndatacopy(0, 0, returndatasize())
                revert(0, returndatasize())
            }

            function revertWithReason(m, len) {
                mstore(0x00, 0x08c379a000000000000000000000000000000000000000000000000000000000)
                mstore(0x20, 0x0000002000000000000000000000000000000000000000000000000000000000)
                mstore(0x40, m)
                revert(0, len)
            }

            let emptyPtr := mload(0x40)
            let resultPtr := add(emptyPtr, 0x20)
            mstore(emptyPtr, _SELECTORS)

            if iszero(staticcall(gas(), caller(), emptyPtr, 0x4, resultPtr, 0x20)) {
                reRevert()
            }
            token0 := mload(resultPtr)
            if iszero(staticcall(gas(), caller(), add(emptyPtr, 0x4), 0x4, resultPtr, 0x20)) {
                reRevert()
            }
            token1 := mload(resultPtr)
            if iszero(staticcall(gas(), caller(), add(emptyPtr, 0x8), 0x4, resultPtr, 0x20)) {
                reRevert()
            }
            let fee := mload(resultPtr)

            let p := emptyPtr
            mstore(p, ffFactoryAddress)
            p := add(p, 21)
            // Compute the inner hash in-place
            mstore(p, token0)
            mstore(add(p, 32), token1)
            mstore(add(p, 64), fee)
            mstore(p, keccak256(p, 96))
            p := add(p, 32)
            mstore(p, poolInitCodeHash)
            let pool := and(keccak256(emptyPtr, 85), _ADDRESS_MASK)

            if iszero(eq(pool, caller())) {
                revertWithReason(0x00000010554e495633523a2062616420706f6f6c000000000000000000000000, 0x54) // UniswapV3: bad pool
            }

            calldatacopy(emptyPtr, 0x84, 0x20)
            payer := mload(emptyPtr)
        }

        if (amount0Delta > 0) {
            if (payer == address(this)) {
                token0.safeTransfer(msg.sender, uint256(amount0Delta));
            } else {
                token0.safeTransferFrom(payer, msg.sender, uint256(amount0Delta));
            }
        }
        if (amount1Delta > 0) {
            if (payer == address(this)) {
                token1.safeTransfer(msg.sender, uint256(amount1Delta));
            } else {
                token1.safeTransferFrom(payer, msg.sender, uint256(amount1Delta));
            }
        }
    }

    function _makeSwap(
        address recipient,
        address payer,
        uint256 pool,
        uint256 amount
    ) private returns (uint256) {
        bool zeroForOne = pool & _ONE_FOR_ZERO_MASK == 0;
        if (zeroForOne) {
            (, int256 amount1) = IUniswapV3Pool(pool).swap(
                recipient,
                zeroForOne,
                SafeCast.toInt256(amount),
                _MIN_SQRT_RATIO,
                abi.encode(payer)
            );
            return SafeCast.toUint256(-amount1);
        } else {
            (int256 amount0, ) = IUniswapV3Pool(pool).swap(
                recipient,
                zeroForOne,
                SafeCast.toInt256(amount),
                _MAX_SQRT_RATIO,
                abi.encode(payer)
            );
            return SafeCast.toUint256(-amount0);
        }
    }
}

// File: contracts/OpenOceanExchange.sol



pragma solidity ^0.6.12;
pragma experimental ABIEncoderV2;









contract OpenOceanExchange is OwnableUpgradeable, PausableUpgradeable, UniswapV2Exchange, UniswapV3Exchange {
    using SafeMath for uint256;
    using SafeERC20 for IERC20;
    using UniversalERC20 for IERC20;

    uint256 private constant _PARTIAL_FILL = 0x01;
    uint256 private constant _SHOULD_CLAIM = 0x02;

    struct SwapDescription {
        IERC20 srcToken;
        IERC20 dstToken;
        address srcReceiver;
        address dstReceiver;
        uint256 amount;
        uint256 minReturnAmount;
        uint256 guaranteedAmount;
        uint256 flags;
        address referrer;
        bytes permit;
    }

    event Swapped(
        address indexed sender,
        IERC20 indexed srcToken,
        IERC20 indexed dstToken,
        address dstReceiver,
        uint256 amount,
        uint256 spentAmount,
        uint256 returnAmount,
        uint256 minReturnAmount,
        uint256 guaranteedAmount,
        address referrer
    );

    function initialize() public initializer {
        OwnableUpgradeable.__Ownable_init();
        PausableUpgradeable.__Pausable_init();
    }

    function swap(
        IOpenOceanCaller caller,
        SwapDescription calldata desc,
        IOpenOceanCaller.CallDescription[] calldata calls
    ) external payable whenNotPaused returns (uint256 returnAmount) {
        require(desc.minReturnAmount > 0, "Min return should not be 0");
        require(calls.length > 0, "Call data should exist");

        uint256 flags = desc.flags;
        IERC20 srcToken = desc.srcToken;
        IERC20 dstToken = desc.dstToken;

        require(msg.value == (srcToken.isETH() ? desc.amount : 0), "Invalid msg.value");

        if (flags & _SHOULD_CLAIM != 0) {
            require(!srcToken.isETH(), "Claim token is ETH");
            _claim(srcToken, desc.srcReceiver, desc.amount, desc.permit);
        }

        address dstReceiver = (desc.dstReceiver == address(0)) ? msg.sender : desc.dstReceiver;
        uint256 initialSrcBalance = (flags & _PARTIAL_FILL != 0) ? srcToken.universalBalanceOf(msg.sender) : 0;
        uint256 initialDstBalance = dstToken.universalBalanceOf(dstReceiver);

        caller.makeCalls{value: msg.value}(calls);

        uint256 spentAmount = desc.amount;
        returnAmount = dstToken.universalBalanceOf(dstReceiver).sub(initialDstBalance);

        if (flags & _PARTIAL_FILL != 0) {
            spentAmount = initialSrcBalance.add(desc.amount).sub(srcToken.universalBalanceOf(msg.sender));
            require(returnAmount.mul(desc.amount) >= desc.minReturnAmount.mul(spentAmount), "Return amount is not enough");
        } else {
            require(returnAmount >= desc.minReturnAmount, "Return amount is not enough");
        }

        _emitSwapped(desc, srcToken, dstToken, dstReceiver, spentAmount, returnAmount);
    }

    function _emitSwapped(
        SwapDescription calldata desc,
        IERC20 srcToken,
        IERC20 dstToken,
        address dstReceiver,
        uint256 spentAmount,
        uint256 returnAmount
    ) private {
        emit Swapped(
            msg.sender,
            srcToken,
            dstToken,
            dstReceiver,
            desc.amount,
            spentAmount,
            returnAmount,
            desc.minReturnAmount,
            desc.guaranteedAmount,
            desc.referrer
        );
    }

    function _claim(
        IERC20 token,
        address dst,
        uint256 amount,
        bytes calldata permit
    ) private {
        // TODO: Is it safe to call permit on tokens without implemented permit? Fallback will be called. Is it bad for proxies?

        if (permit.length == 32 * 7) {
            // solhint-disable-next-line avoid-low-level-calls
            (bool success, bytes memory result) = address(token).call(abi.encodeWithSelector(IERC20Permit.permit.selector, permit));
            if (!success) {
                revert(RevertReasonParser.parse(result, "Permit call failed: "));
            }
        }

        token.safeTransferFrom(msg.sender, dst, amount);
    }

    function rescueFunds(IERC20 token, uint256 amount) external onlyOwner {
        token.universalTransfer(msg.sender, amount);
    }

    function pause() external onlyOwner {
        _pause();
    }
}

Contract Security Audit

Contract ABI

[{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"sender","type":"address"},{"indexed":true,"internalType":"contract IERC20","name":"srcToken","type":"address"},{"indexed":true,"internalType":"contract IERC20","name":"dstToken","type":"address"},{"indexed":false,"internalType":"address","name":"dstReceiver","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"spentAmount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"returnAmount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"minReturnAmount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"guaranteedAmount","type":"uint256"},{"indexed":false,"internalType":"address","name":"referrer","type":"address"}],"name":"Swapped","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[{"internalType":"contract IERC20","name":"srcToken","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"minReturn","type":"uint256"},{"internalType":"bytes32[]","name":"","type":"bytes32[]"}],"name":"callUniswap","outputs":[{"internalType":"uint256","name":"returnAmount","type":"uint256"}],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"srcToken","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"minReturn","type":"uint256"},{"internalType":"bytes32[]","name":"pools","type":"bytes32[]"},{"internalType":"bytes","name":"permit","type":"bytes"}],"name":"callUniswapWithPermit","outputs":[{"internalType":"uint256","name":"returnAmount","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"initialize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"token","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"rescueFunds","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IOpenOceanCaller","name":"caller","type":"address"},{"components":[{"internalType":"contract IERC20","name":"srcToken","type":"address"},{"internalType":"contract IERC20","name":"dstToken","type":"address"},{"internalType":"address","name":"srcReceiver","type":"address"},{"internalType":"address","name":"dstReceiver","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"minReturnAmount","type":"uint256"},{"internalType":"uint256","name":"guaranteedAmount","type":"uint256"},{"internalType":"uint256","name":"flags","type":"uint256"},{"internalType":"address","name":"referrer","type":"address"},{"internalType":"bytes","name":"permit","type":"bytes"}],"internalType":"struct OpenOceanExchange.SwapDescription","name":"desc","type":"tuple"},{"components":[{"internalType":"uint256","name":"target","type":"uint256"},{"internalType":"uint256","name":"gasLimit","type":"uint256"},{"internalType":"uint256","name":"value","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"internalType":"struct IOpenOceanCaller.CallDescription[]","name":"calls","type":"tuple[]"}],"name":"swap","outputs":[{"internalType":"uint256","name":"returnAmount","type":"uint256"}],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"minReturn","type":"uint256"},{"internalType":"uint256[]","name":"pools","type":"uint256[]"}],"name":"uniswapV3Swap","outputs":[{"internalType":"uint256","name":"returnAmount","type":"uint256"}],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"int256","name":"amount0Delta","type":"int256"},{"internalType":"int256","name":"amount1Delta","type":"int256"},{"internalType":"bytes","name":"","type":"bytes"}],"name":"uniswapV3SwapCallback","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address payable","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"minReturn","type":"uint256"},{"internalType":"uint256[]","name":"pools","type":"uint256[]"}],"name":"uniswapV3SwapTo","outputs":[{"internalType":"uint256","name":"returnAmount","type":"uint256"}],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address payable","name":"recipient","type":"address"},{"internalType":"contract IERC20","name":"srcToken","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"minReturn","type":"uint256"},{"internalType":"uint256[]","name":"pools","type":"uint256[]"},{"internalType":"bytes","name":"permit","type":"bytes"}],"name":"uniswapV3SwapToWithPermit","outputs":[{"internalType":"uint256","name":"returnAmount","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]

608060405234801561001057600080fd5b50612e18806100206000396000f3fe6080604052600436106100e15760003560e01c80638da5cb5b1161007f578063d57360fc11610059578063d57360fc14610228578063e449022e14610248578063f2fde38b1461025b578063fa461e331461027b57610111565b80638da5cb5b146101e057806390411a3214610202578063bc80f1a81461021557610111565b806378e3214f116100bb57806378e3214f146101835780638129fc1c146101a35780638456cb59146101b85780638980041a146101cd57610111565b80632521b930146101165780635c975abb1461014c578063715018a61461016e57610111565b36610111573332141561010f5760405162461bcd60e51b815260040161010690612863565b60405180910390fd5b005b600080fd5b34801561012257600080fd5b50610136610131366004612137565b61029b565b60405161014391906125af565b60405180910390f35b34801561015857600080fd5b506101616102c2565b6040516101439190612721565b34801561017a57600080fd5b5061010f6102cb565b34801561018f57600080fd5b5061010f61019e366004612264565b610354565b3480156101af57600080fd5b5061010f6103ab565b3480156101c457600080fd5b5061010f61043e565b6101366101db3660046121dc565b610487565b3480156101ec57600080fd5b506101f56107de565b60405161014391906125b8565b610136610210366004612322565b6107ed565b6101366102233660046121dc565b610ad0565b34801561023457600080fd5b5061013661024336600461228f565b610d40565b610136610256366004612420565b610d66565b34801561026757600080fd5b5061010f61027636600461211b565b610d80565b34801561028757600080fd5b5061010f6102963660046123c3565b610e41565b60006102a8888484610fe7565b6102b58988888888610ad0565b9998505050505050505050565b60655460ff1690565b6102d3611128565b6001600160a01b03166102e46107de565b6001600160a01b03161461030a5760405162461bcd60e51b815260040161010690612b58565b6033546040516000916001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3603380546001600160a01b0319169055565b61035c611128565b6001600160a01b031661036d6107de565b6001600160a01b0316146103935760405162461bcd60e51b815260040161010690612b58565b6103a76001600160a01b038316338361112c565b5050565b600054610100900460ff16806103c457506103c4611190565b806103d2575060005460ff16155b6103ee5760405162461bcd60e51b815260040161010690612a5b565b600054610100900460ff16158015610419576000805460ff1961ff0019909116610100171660011790555b6104216111a1565b61042961121f565b801561043b576000805461ff00191690555b50565b610446611128565b6001600160a01b03166104576107de565b6001600160a01b03161461047d5760405162461bcd60e51b815260040161010690612b58565b61048561129d565b565b600061055d565b3d6000803e3d6000fd5b62461bcd60e51b600052600160e51b60205280604052816000fd5b6000630240bc6b60e21b8252604082600484875afa6104d4576104d461048e565b8151602083015186156104e357905b63022c0d9f60e01b8452878502633b9aca0092909202820191020490508480156105195781600484015260006024840152610527565b600060048401528160248401525b50866044830152608060648301526000608483015260008060a4846000885af16105535761055361048e565b9695505050505050565b60405160c0810160405260046064350180356020820191508060200282019050813589600081146105ef5734156105ae576105ae60557111696e76616c6964206d73672e76616c756560581b610498565b6323b872dd60e01b85523360048601526001600160a01b038216602486015289604486015260008060648760008f5af16105ea576105ea61048e565b610694565b348a146106165761061660557111696e76616c6964206d73672e76616c756560581b610498565b630d0e30db60e41b85526000806004878d73c02aaa39b223fe8d0a0e5c4f27ead9083c756cc25af161064a5761064a61048e565b63a9059cbb60e01b85526001600160a01b0382166004860152896024860152600080604487600073c02aaa39b223fe8d0a0e5c4f27ead9083c756cc25af16106945761069461048e565b50889450602083015b828110156106e55780356106d96001600160a01b03821663ffffffff60a01b851660a01c600160ff1b86166001600160a01b0387168b8b6104b3565b9650915060200161069d565b50600160fe1b811680156107745761071c3063ffffffff60a01b841660a01c600160ff1b85166001600160a01b0386168a8a6104b3565b9550632e1a7d4d60e01b8552856004860152600080602487600073c02aaa39b223fe8d0a0e5c4f27ead9083c756cc25af16107595761075961048e565b60008060008089335af161076f5761076f61048e565b6107a0565b61079d3363ffffffff60a01b841660a01c600160ff1b85166001600160a01b0386168a8a6104b3565b95505b5050505050838110156107d5576107d5605a7c164d696e2072657475726e206e6f742072656163686564000000000000610498565b95945050505050565b6033546001600160a01b031690565b60006107f76102c2565b156108145760405162461bcd60e51b8152600401610106906129cd565b60008460a00135116108385760405162461bcd60e51b815260040161010690612ae0565b816108555760405162461bcd60e51b815260040161010690612ce7565b60e08401356000610869602087018761211b565b9050600061087d604088016020890161211b565b9050610891826001600160a01b031661130f565b61089c5760006108a2565b86608001355b34146108c05760405162461bcd60e51b815260040161010690612891565b6002831615610924576108db826001600160a01b031661130f565b156108f85760405162461bcd60e51b815260040161010690612753565b6109248261090c60608a0160408b0161211b565b60808a013561091f6101208c018c612d17565b61135e565b60008061093760808a0160608b0161211b565b6001600160a01b03161461095a576109556080890160608a0161211b565b61095c565b335b905060006001851661096f576000610982565b6109826001600160a01b03851633611468565b905060006109996001600160a01b03851684611468565b90508a6001600160a01b031663a8920d2b348b8b6040518463ffffffff1660e01b81526004016109ca929190612681565b6000604051808303818588803b1580156109e357600080fd5b505af11580156109f7573d6000803e3d6000fd5b5050505060808b01359050610a1f82610a196001600160a01b03881687611468565b9061150c565b97506001871615610a8f57610a4e610a406001600160a01b03881633611468565b610a198560808f0135611534565b9050610a5e60a08c013582611559565b610a6c8960808e0135611559565b1015610a8a5760405162461bcd60e51b815260040161010690612aa9565b610ab3565b8a60a00135881015610ab35760405162461bcd60e51b815260040161010690612aa9565b610ac18b878787858d611593565b50505050505050949350505050565b60008180610af05760405162461bcd60e51b815260040161010690612833565b8591506000198101600080600160fe1b87878381610b0a57fe5b9050602002013516119050600080600160fd1b888886818110610b2957fe5b90506020020135161190508115610bc657883414610b595760405162461bcd60e51b8152600401610106906127fc565b73c02aaa39b223fe8d0a0e5c4f27ead9083c756cc26001600160a01b031663d0e30db08a6040518263ffffffff1660e01b81526004016000604051808303818588803b158015610ba857600080fd5b505af1158015610bbc573d6000803e3d6000fd5b5050505050610be4565b3415610be45760405162461bcd60e51b815260040161010690612c68565b6001841115610c7257610c183083610bfc5733610bfe565b305b89896000818110610c0b57fe5b905060200201358861161b565b945060015b83811015610c4d57610c4330308a8a85818110610c3657fe5b905060200201358961161b565b9550600101610c1d565b50610c6b81610c5c578a610c5e565b305b30898987818110610c0b57fe5b9450610c90565b610c8d81610c80578a610c82565b305b83610bfc5733610bfe565b94505b87851015610cb05760405162461bcd60e51b8152600401610106906129f7565b8015610d3357604051632e1a7d4d60e01b815273c02aaa39b223fe8d0a0e5c4f27ead9083c756cc290632e1a7d4d90610ced9088906004016125af565b600060405180830381600087803b158015610d0757600080fd5b505af1158015610d1b573d6000803e3d6000fd5b50610d33925050506001600160a01b038b16866117c7565b5050505095945050505050565b6000610d4d888484610fe7565b610d5a8888888888610487565b98975050505050505050565b6000610d753386868686610ad0565b90505b949350505050565b610d88611128565b6001600160a01b0316610d996107de565b6001600160a01b031614610dbf5760405162461bcd60e51b815260040161010690612b58565b6001600160a01b038116610de55760405162461bcd60e51b81526004016101069061277f565b6033546040516001600160a01b038084169216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3603380546001600160a01b0319166001600160a01b0392909216919091179055565b6000807fff1f98431c8ad98523631ae4a59f267346ea31f98400000000000000000000007fe34f199b19b2b4f47f68442619d555527d244f78a3297ea89325f843f87b8b5482604051602081016b0dfe1681d21220a7ddca3f4360a01b8252602081600484335afa610eb557610eb561048e565b805196506020816004808501335afa610ed057610ed061048e565b80519550602081600460088501335afa610eec57610eec61048e565b5184825260158201878152603583018781526055808501939093526060822090915284905281206001600160a01b0316338114610f4257610f4260547004155392558cd48e88189859081c1bdbdb60621b610498565b506020608482375190506000891315610f94576001600160a01b038116301415610f7f57610f7a6001600160a01b038616338b611863565b610f94565b610f946001600160a01b03861682338c6118b9565b6000881315610fdc576001600160a01b038116301415610fc757610fc26001600160a01b038516338a611863565b610fdc565b610fdc6001600160a01b03851682338b6118b9565b505050505050505050565b8015611123576000606060e0831415611088576040516001600160a01b038616906110219063d505accf60e01b90879087906020016124bb565b60408051601f198184030181529082905261103b916124df565b6000604051808303816000865af19150503d8060008114611078576040519150601f19603f3d011682016040523d82523d6000602084013e61107d565b606091505b5090925090506110d1565b6101008314156110b9576040516001600160a01b03861690611021906323f2ebc360e21b90879087906020016124bb565b60405162461bcd60e51b815260040161010690612b8d565b8161112057611107816040518060400160405280600f81526020016e02832b936b4ba103330b4b632b21d1608d1b8152506118e0565b60405162461bcd60e51b81526004016101069190612740565b50505b505050565b3390565b80156111235761113b8361130f565b1561117c576040516001600160a01b0383169082156108fc029083906000818181858888f19350505050158015611176573d6000803e3d6000fd5b50611123565b6111236001600160a01b0384168383611863565b600061119b30611aee565b15905090565b600054610100900460ff16806111ba57506111ba611190565b806111c8575060005460ff16155b6111e45760405162461bcd60e51b815260040161010690612a5b565b600054610100900460ff1615801561120f576000805460ff1961ff0019909116610100171660011790555b611217611af4565b610429611b75565b600054610100900460ff16806112385750611238611190565b80611246575060005460ff16155b6112625760405162461bcd60e51b815260040161010690612a5b565b600054610100900460ff1615801561128d576000805460ff1961ff0019909116610100171660011790555b611295611af4565b610429611c4f565b6112a56102c2565b156112c25760405162461bcd60e51b8152600401610106906129cd565b6065805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586112f8611128565b60405161130591906125b8565b60405180910390a1565b60006001600160a01b03821673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee148061134657506001600160a01b038216611010145b8061135857506001600160a01b038216155b92915050565b60e08114156114535760006060866001600160a01b031663d505accf60e01b858560405160240161139092919061272c565b60408051601f198184030181529181526020820180516001600160e01b03166001600160e01b03199094169390931790925290516113ce91906124df565b6000604051808303816000865af19150503d806000811461140b576040519150601f19603f3d011682016040523d82523d6000602084013e611410565b606091505b50915091508161145057611107816040518060400160405280601481526020017302832b936b4ba1031b0b636103330b4b632b21d160651b8152506118e0565b50505b6111206001600160a01b0386163386866118b9565b60006114738361130f565b1561148957506001600160a01b03811631611358565b6040516370a0823160e01b81526001600160a01b038416906370a08231906114b59085906004016125b8565b60206040518083038186803b1580156114cd57600080fd5b505afa1580156114e1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115059190612408565b9392505050565b60008282111561152e5760405162461bcd60e51b8152600401610106906128bc565b50900390565b6000828201838110156115055760405162461bcd60e51b8152600401610106906127c5565b60008261156857506000611358565b8282028284828161157557fe5b04146115055760405162461bcd60e51b815260040161010690612b17565b836001600160a01b0316856001600160a01b0316336001600160a01b03167f76af224a143865a50b41496e1a73622698692c565c1214bc862f18e22d829c5e868a6080013587878d60a001358e60c001358f6101000160208101906115f8919061211b565b60405161160b9796959493929190612644565b60405180910390a4505050505050565b6000600160ff1b83161580156116f6576000846001600160a01b031663128acb08888461164788611cdb565b6401000276a48b60405160200161165e91906125b8565b6040516020818303038152906040526040518663ffffffff1660e01b815260040161168d9594939291906125f0565b6040805180830381600087803b1580156116a657600080fd5b505af11580156116ba573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116de91906123a0565b9150506116ed81600003611d04565b92505050610d78565b6000846001600160a01b031663128acb08888461171288611cdb565b73fffd8963efd1fc6a506488495d951d5263988d258b60405160200161173891906125b8565b6040516020818303038152906040526040518663ffffffff1660e01b81526004016117679594939291906125f0565b6040805180830381600087803b15801561178057600080fd5b505af1158015611794573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906117b891906123a0565b5090506116ed81600003611d04565b804710156117e75760405162461bcd60e51b815260040161010690612950565b6000826001600160a01b031682604051611800906125ac565b60006040518083038185875af1925050503d806000811461183d576040519150601f19603f3d011682016040523d82523d6000602084013e611842565b606091505b50509050806111235760405162461bcd60e51b8152600401610106906128f3565b6111238363a9059cbb60e01b848460405160240161188292919061262b565b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152611d26565b6118da846323b872dd60e01b858585604051602401611882939291906125cc565b50505050565b606060448351101580156119135750826000815181106118fc57fe5b6020910101516001600160f81b031916600160fb1b145b801561193e57508260018151811061192757fe5b6020910101516001600160f81b03191660c360f81b145b801561196957508260028151811061195257fe5b6020910101516001600160f81b031916607960f81b145b801561199457508260038151811061197d57fe5b6020910101516001600160f81b031916600560fd1b145b156119f05760606044840190508051604401845110156119c65760405162461bcd60e51b815260040161010690612bba565b82816040516020016119d9929190612577565b604051602081830303815290604052915050611358565b82516024148015611a20575082600081518110611a0957fe5b6020910101516001600160f81b031916602760f91b145b8015611a4b575082600181518110611a3457fe5b6020910101516001600160f81b031916600960fb1b145b8015611a76575082600281518110611a5f57fe5b6020910101516001600160f81b031916607b60f81b145b8015611aa1575082600381518110611a8a57fe5b6020910101516001600160f81b031916607160f81b145b15611ac657602483015182611ab582611db5565b6040516020016119d9929190612528565b81604051602001611ad791906124fb565b604051602081830303815290604052905092915050565b3b151590565b600054610100900460ff1680611b0d5750611b0d611190565b80611b1b575060005460ff16155b611b375760405162461bcd60e51b815260040161010690612a5b565b600054610100900460ff16158015610429576000805460ff1961ff001990911661010017166001179055801561043b576000805461ff001916905550565b600054610100900460ff1680611b8e5750611b8e611190565b80611b9c575060005460ff16155b611bb85760405162461bcd60e51b815260040161010690612a5b565b600054610100900460ff16158015611be3576000805460ff1961ff0019909116610100171660011790555b6000611bed611128565b603380546001600160a01b0319166001600160a01b038316908117909155604051919250906000907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a350801561043b576000805461ff001916905550565b600054610100900460ff1680611c685750611c68611190565b80611c76575060005460ff16155b611c925760405162461bcd60e51b815260040161010690612a5b565b600054610100900460ff16158015611cbd576000805460ff1961ff0019909116610100171660011790555b6065805460ff19169055801561043b576000805461ff001916905550565b6000600160ff1b8210611d005760405162461bcd60e51b815260040161010690612c20565b5090565b600080821215611d005760405162461bcd60e51b815260040161010690612a26565b6060611d7b826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316611ddf9092919063ffffffff16565b8051909150156111235780806020019051810190611d999190612244565b6111235760405162461bcd60e51b815260040161010690612c9d565b606061135882604051602001611dcb91906125af565b604051602081830303815290604052611dee565b6060610d788484600085611f98565b6060806040518060400160405280601081526020016f181899199a1a9b1b9c1cb0b131b232b360811b81525090506060835160020260020167ffffffffffffffff81118015611e3c57600080fd5b506040519080825280601f01601f191660200182016040528015611e67576020820181803683370190505b509050600360fc1b81600081518110611e7c57fe5b60200101906001600160f81b031916908160001a905350600f60fb1b81600181518110611ea557fe5b60200101906001600160f81b031916908160001a90535060005b8451811015611f9057826004868381518110611ed757fe5b016020015182516001600160f81b031990911690911c60f81c908110611ef957fe5b602001015160f81c60f81b828260020260020181518110611f1657fe5b60200101906001600160f81b031916908160001a90535082858281518110611f3a57fe5b602091010151815160f89190911c600f16908110611f5457fe5b602001015160f81c60f81b828260020260030181518110611f7157fe5b60200101906001600160f81b031916908160001a905350600101611ebf565b509392505050565b606082471015611fba5760405162461bcd60e51b815260040161010690612987565b611fc385611aee565b611fdf5760405162461bcd60e51b815260040161010690612be9565b60006060866001600160a01b03168587604051611ffc91906124df565b60006040518083038185875af1925050503d8060008114612039576040519150601f19603f3d011682016040523d82523d6000602084013e61203e565b606091505b509150915061204e828286612059565b979650505050505050565b60608315612068575081611505565b8251156120785782518084602001fd5b8160405162461bcd60e51b81526004016101069190612740565b60008083601f8401126120a3578182fd5b50813567ffffffffffffffff8111156120ba578182fd5b60208301915083602080830285010111156120d457600080fd5b9250929050565b60008083601f8401126120ec578182fd5b50813567ffffffffffffffff811115612103578182fd5b6020830191508360208285010111156120d457600080fd5b60006020828403121561212c578081fd5b813561150581612dcd565b60008060008060008060008060c0898b031215612152578384fd5b883561215d81612dcd565b9750602089013561216d81612dcd565b96506040890135955060608901359450608089013567ffffffffffffffff80821115612197578586fd5b6121a38c838d01612092565b909650945060a08b01359150808211156121bb578384fd5b506121c88b828c016120db565b999c989b5096995094979396929594505050565b6000806000806000608086880312156121f3578081fd5b85356121fe81612dcd565b94506020860135935060408601359250606086013567ffffffffffffffff811115612227578182fd5b61223388828901612092565b969995985093965092949392505050565b600060208284031215612255578081fd5b81518015158114611505578182fd5b60008060408385031215612276578182fd5b823561228181612dcd565b946020939093013593505050565b600080600080600080600060a0888a0312156122a9578283fd5b87356122b481612dcd565b96506020880135955060408801359450606088013567ffffffffffffffff808211156122de578485fd5b6122ea8b838c01612092565b909650945060808a0135915080821115612302578384fd5b5061230f8a828b016120db565b989b979a50959850939692959293505050565b60008060008060608587031215612337578182fd5b843561234281612dcd565b9350602085013567ffffffffffffffff8082111561235e578384fd5b908601906101408289031215612372578384fd5b90935060408601359080821115612387578384fd5b5061239487828801612092565b95989497509550505050565b600080604083850312156123b2578182fd5b505080516020909101519092909150565b600080600080606085870312156123d8578182fd5b8435935060208501359250604085013567ffffffffffffffff8111156123fc578283fd5b612394878288016120db565b600060208284031215612419578081fd5b5051919050565b60008060008060608587031215612435578182fd5b8435935060208501359250604085013567ffffffffffffffff811115612459578283fd5b61239487828801612092565b60008284528282602086013780602084860101526020601f19601f85011685010190509392505050565b600081518084526124a7816020860160208601612da1565b601f01601f19169290920160200192915050565b6001600160e01b031984168152600082846004840137910160040190815292915050565b600082516124f1818460208701612da1565b9190910192915050565b6000825161250d818460208701612da1565b68556e6b6e6f776e282960b81b920191825250600901919050565b6000835161253a818460208801612da1565b650a0c2dcd2c6560d31b908301908152835161255d816006840160208801612da1565b602960f81b60069290910191820152600701949350505050565b60008351612589818460208801612da1565b6508ae4e4dee4560d31b908301908152835161255d816006840160208801612da1565b90565b90815260200190565b6001600160a01b0391909116815260200190565b6001600160a01b039384168152919092166020820152604081019190915260600190565b6001600160a01b0386811682528515156020830152604082018590528316606082015260a06080820181905260009061204e9083018461248f565b6001600160a01b03929092168252602082015260400190565b6001600160a01b039788168152602081019690965260408601949094526060850192909252608084015260a083015290911660c082015260e00190565b602080825281810183905260009060408084018583028501820187855b8881101561271357878303603f190184528135368b9003607e190181126126c3578788fd5b8a018035845286810135878501528581013586850152608060606126e981840184612d5c565b935082828801526126fd8388018583612465565b978a01979650505092870192505060010161269e565b509098975050505050505050565b901515815260200190565b600060208252610d78602083018486612465565b600060208252611505602083018461248f565b602080825260129082015271086d8c2d2da40e8ded6cadc40d2e6408aa8960731b604082015260600190565b60208082526026908201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160408201526564647265737360d01b606082015260800190565b6020808252601b908201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604082015260600190565b6020808252601a908201527f556e697377617056333a2077726f6e67206d73672e76616c7565000000000000604082015260600190565b602080825260169082015275556e697377617056333a20656d70747920706f6f6c7360501b604082015260600190565b6020808252601490820152731155120819195c1bdcda5d081c995a9958dd195960621b604082015260600190565b602080825260119082015270496e76616c6964206d73672e76616c756560781b604082015260600190565b6020808252601e908201527f536166654d6174683a207375627472616374696f6e206f766572666c6f770000604082015260600190565b6020808252603a908201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260408201527f6563697069656e74206d61792068617665207265766572746564000000000000606082015260800190565b6020808252601d908201527f416464726573733a20696e73756666696369656e742062616c616e6365000000604082015260600190565b60208082526026908201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6040820152651c8818d85b1b60d21b606082015260800190565b60208082526010908201526f14185d5cd8589b194e881c185d5cd95960821b604082015260600190565b6020808252601590820152742ab734b9bbb0b82b199d1036b4b7103932ba3ab93760591b604082015260600190565b6020808252818101527f53616665436173743a2076616c7565206d75737420626520706f736974697665604082015260600190565b6020808252602e908201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160408201526d191e481a5b9a5d1a585b1a5e995960921b606082015260800190565b6020808252601b908201527f52657475726e20616d6f756e74206973206e6f7420656e6f7567680000000000604082015260600190565b6020808252601a908201527f4d696e2072657475726e2073686f756c64206e6f742062652030000000000000604082015260600190565b60208082526021908201527f536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f6040820152607760f81b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b6020808252601390820152720aee4dedcce40e0cae4dad2e840d8cadccee8d606b1b604082015260600190565b60208082526015908201527424b73b30b634b2103932bb32b93a103932b0b9b7b760591b604082015260600190565b6020808252601d908201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604082015260600190565b60208082526028908201527f53616665436173743a2076616c756520646f65736e27742066697420696e2061604082015267371034b73a191a9b60c11b606082015260800190565b6020808252818101527f556e697377617056333a206d73672e76616c75652073686f756c642062652030604082015260600190565b6020808252602a908201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6040820152691bdd081cdd58d8d9595960b21b606082015260800190565b60208082526016908201527510d85b1b0819185d18481cda1bdd5b1908195e1a5cdd60521b604082015260600190565b6000808335601e19843603018112612d2d578283fd5b83018035915067ffffffffffffffff821115612d47578283fd5b6020019150368190038213156120d457600080fd5b6000808335601e19843603018112612d72578283fd5b830160208101925035905067ffffffffffffffff811115612d9257600080fd5b8036038313156120d457600080fd5b60005b83811015612dbc578181015183820152602001612da4565b838111156118da5750506000910152565b6001600160a01b038116811461043b57600080fdfea26469706673582212209871538ef2d6c68d6e0a9721d86829bcb79b3906de81edbbfbae5dda88fd95b164736f6c634300060c0033

Deployed Bytecode

0x6080604052600436106100e15760003560e01c80638da5cb5b1161007f578063d57360fc11610059578063d57360fc14610228578063e449022e14610248578063f2fde38b1461025b578063fa461e331461027b57610111565b80638da5cb5b146101e057806390411a3214610202578063bc80f1a81461021557610111565b806378e3214f116100bb57806378e3214f146101835780638129fc1c146101a35780638456cb59146101b85780638980041a146101cd57610111565b80632521b930146101165780635c975abb1461014c578063715018a61461016e57610111565b36610111573332141561010f5760405162461bcd60e51b815260040161010690612863565b60405180910390fd5b005b600080fd5b34801561012257600080fd5b50610136610131366004612137565b61029b565b60405161014391906125af565b60405180910390f35b34801561015857600080fd5b506101616102c2565b6040516101439190612721565b34801561017a57600080fd5b5061010f6102cb565b34801561018f57600080fd5b5061010f61019e366004612264565b610354565b3480156101af57600080fd5b5061010f6103ab565b3480156101c457600080fd5b5061010f61043e565b6101366101db3660046121dc565b610487565b3480156101ec57600080fd5b506101f56107de565b60405161014391906125b8565b610136610210366004612322565b6107ed565b6101366102233660046121dc565b610ad0565b34801561023457600080fd5b5061013661024336600461228f565b610d40565b610136610256366004612420565b610d66565b34801561026757600080fd5b5061010f61027636600461211b565b610d80565b34801561028757600080fd5b5061010f6102963660046123c3565b610e41565b60006102a8888484610fe7565b6102b58988888888610ad0565b9998505050505050505050565b60655460ff1690565b6102d3611128565b6001600160a01b03166102e46107de565b6001600160a01b03161461030a5760405162461bcd60e51b815260040161010690612b58565b6033546040516000916001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3603380546001600160a01b0319169055565b61035c611128565b6001600160a01b031661036d6107de565b6001600160a01b0316146103935760405162461bcd60e51b815260040161010690612b58565b6103a76001600160a01b038316338361112c565b5050565b600054610100900460ff16806103c457506103c4611190565b806103d2575060005460ff16155b6103ee5760405162461bcd60e51b815260040161010690612a5b565b600054610100900460ff16158015610419576000805460ff1961ff0019909116610100171660011790555b6104216111a1565b61042961121f565b801561043b576000805461ff00191690555b50565b610446611128565b6001600160a01b03166104576107de565b6001600160a01b03161461047d5760405162461bcd60e51b815260040161010690612b58565b61048561129d565b565b600061055d565b3d6000803e3d6000fd5b62461bcd60e51b600052600160e51b60205280604052816000fd5b6000630240bc6b60e21b8252604082600484875afa6104d4576104d461048e565b8151602083015186156104e357905b63022c0d9f60e01b8452878502633b9aca0092909202820191020490508480156105195781600484015260006024840152610527565b600060048401528160248401525b50866044830152608060648301526000608483015260008060a4846000885af16105535761055361048e565b9695505050505050565b60405160c0810160405260046064350180356020820191508060200282019050813589600081146105ef5734156105ae576105ae60557111696e76616c6964206d73672e76616c756560581b610498565b6323b872dd60e01b85523360048601526001600160a01b038216602486015289604486015260008060648760008f5af16105ea576105ea61048e565b610694565b348a146106165761061660557111696e76616c6964206d73672e76616c756560581b610498565b630d0e30db60e41b85526000806004878d73c02aaa39b223fe8d0a0e5c4f27ead9083c756cc25af161064a5761064a61048e565b63a9059cbb60e01b85526001600160a01b0382166004860152896024860152600080604487600073c02aaa39b223fe8d0a0e5c4f27ead9083c756cc25af16106945761069461048e565b50889450602083015b828110156106e55780356106d96001600160a01b03821663ffffffff60a01b851660a01c600160ff1b86166001600160a01b0387168b8b6104b3565b9650915060200161069d565b50600160fe1b811680156107745761071c3063ffffffff60a01b841660a01c600160ff1b85166001600160a01b0386168a8a6104b3565b9550632e1a7d4d60e01b8552856004860152600080602487600073c02aaa39b223fe8d0a0e5c4f27ead9083c756cc25af16107595761075961048e565b60008060008089335af161076f5761076f61048e565b6107a0565b61079d3363ffffffff60a01b841660a01c600160ff1b85166001600160a01b0386168a8a6104b3565b95505b5050505050838110156107d5576107d5605a7c164d696e2072657475726e206e6f742072656163686564000000000000610498565b95945050505050565b6033546001600160a01b031690565b60006107f76102c2565b156108145760405162461bcd60e51b8152600401610106906129cd565b60008460a00135116108385760405162461bcd60e51b815260040161010690612ae0565b816108555760405162461bcd60e51b815260040161010690612ce7565b60e08401356000610869602087018761211b565b9050600061087d604088016020890161211b565b9050610891826001600160a01b031661130f565b61089c5760006108a2565b86608001355b34146108c05760405162461bcd60e51b815260040161010690612891565b6002831615610924576108db826001600160a01b031661130f565b156108f85760405162461bcd60e51b815260040161010690612753565b6109248261090c60608a0160408b0161211b565b60808a013561091f6101208c018c612d17565b61135e565b60008061093760808a0160608b0161211b565b6001600160a01b03161461095a576109556080890160608a0161211b565b61095c565b335b905060006001851661096f576000610982565b6109826001600160a01b03851633611468565b905060006109996001600160a01b03851684611468565b90508a6001600160a01b031663a8920d2b348b8b6040518463ffffffff1660e01b81526004016109ca929190612681565b6000604051808303818588803b1580156109e357600080fd5b505af11580156109f7573d6000803e3d6000fd5b5050505060808b01359050610a1f82610a196001600160a01b03881687611468565b9061150c565b97506001871615610a8f57610a4e610a406001600160a01b03881633611468565b610a198560808f0135611534565b9050610a5e60a08c013582611559565b610a6c8960808e0135611559565b1015610a8a5760405162461bcd60e51b815260040161010690612aa9565b610ab3565b8a60a00135881015610ab35760405162461bcd60e51b815260040161010690612aa9565b610ac18b878787858d611593565b50505050505050949350505050565b60008180610af05760405162461bcd60e51b815260040161010690612833565b8591506000198101600080600160fe1b87878381610b0a57fe5b9050602002013516119050600080600160fd1b888886818110610b2957fe5b90506020020135161190508115610bc657883414610b595760405162461bcd60e51b8152600401610106906127fc565b73c02aaa39b223fe8d0a0e5c4f27ead9083c756cc26001600160a01b031663d0e30db08a6040518263ffffffff1660e01b81526004016000604051808303818588803b158015610ba857600080fd5b505af1158015610bbc573d6000803e3d6000fd5b5050505050610be4565b3415610be45760405162461bcd60e51b815260040161010690612c68565b6001841115610c7257610c183083610bfc5733610bfe565b305b89896000818110610c0b57fe5b905060200201358861161b565b945060015b83811015610c4d57610c4330308a8a85818110610c3657fe5b905060200201358961161b565b9550600101610c1d565b50610c6b81610c5c578a610c5e565b305b30898987818110610c0b57fe5b9450610c90565b610c8d81610c80578a610c82565b305b83610bfc5733610bfe565b94505b87851015610cb05760405162461bcd60e51b8152600401610106906129f7565b8015610d3357604051632e1a7d4d60e01b815273c02aaa39b223fe8d0a0e5c4f27ead9083c756cc290632e1a7d4d90610ced9088906004016125af565b600060405180830381600087803b158015610d0757600080fd5b505af1158015610d1b573d6000803e3d6000fd5b50610d33925050506001600160a01b038b16866117c7565b5050505095945050505050565b6000610d4d888484610fe7565b610d5a8888888888610487565b98975050505050505050565b6000610d753386868686610ad0565b90505b949350505050565b610d88611128565b6001600160a01b0316610d996107de565b6001600160a01b031614610dbf5760405162461bcd60e51b815260040161010690612b58565b6001600160a01b038116610de55760405162461bcd60e51b81526004016101069061277f565b6033546040516001600160a01b038084169216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3603380546001600160a01b0319166001600160a01b0392909216919091179055565b6000807fff1f98431c8ad98523631ae4a59f267346ea31f98400000000000000000000007fe34f199b19b2b4f47f68442619d555527d244f78a3297ea89325f843f87b8b5482604051602081016b0dfe1681d21220a7ddca3f4360a01b8252602081600484335afa610eb557610eb561048e565b805196506020816004808501335afa610ed057610ed061048e565b80519550602081600460088501335afa610eec57610eec61048e565b5184825260158201878152603583018781526055808501939093526060822090915284905281206001600160a01b0316338114610f4257610f4260547004155392558cd48e88189859081c1bdbdb60621b610498565b506020608482375190506000891315610f94576001600160a01b038116301415610f7f57610f7a6001600160a01b038616338b611863565b610f94565b610f946001600160a01b03861682338c6118b9565b6000881315610fdc576001600160a01b038116301415610fc757610fc26001600160a01b038516338a611863565b610fdc565b610fdc6001600160a01b03851682338b6118b9565b505050505050505050565b8015611123576000606060e0831415611088576040516001600160a01b038616906110219063d505accf60e01b90879087906020016124bb565b60408051601f198184030181529082905261103b916124df565b6000604051808303816000865af19150503d8060008114611078576040519150601f19603f3d011682016040523d82523d6000602084013e61107d565b606091505b5090925090506110d1565b6101008314156110b9576040516001600160a01b03861690611021906323f2ebc360e21b90879087906020016124bb565b60405162461bcd60e51b815260040161010690612b8d565b8161112057611107816040518060400160405280600f81526020016e02832b936b4ba103330b4b632b21d1608d1b8152506118e0565b60405162461bcd60e51b81526004016101069190612740565b50505b505050565b3390565b80156111235761113b8361130f565b1561117c576040516001600160a01b0383169082156108fc029083906000818181858888f19350505050158015611176573d6000803e3d6000fd5b50611123565b6111236001600160a01b0384168383611863565b600061119b30611aee565b15905090565b600054610100900460ff16806111ba57506111ba611190565b806111c8575060005460ff16155b6111e45760405162461bcd60e51b815260040161010690612a5b565b600054610100900460ff1615801561120f576000805460ff1961ff0019909116610100171660011790555b611217611af4565b610429611b75565b600054610100900460ff16806112385750611238611190565b80611246575060005460ff16155b6112625760405162461bcd60e51b815260040161010690612a5b565b600054610100900460ff1615801561128d576000805460ff1961ff0019909116610100171660011790555b611295611af4565b610429611c4f565b6112a56102c2565b156112c25760405162461bcd60e51b8152600401610106906129cd565b6065805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586112f8611128565b60405161130591906125b8565b60405180910390a1565b60006001600160a01b03821673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee148061134657506001600160a01b038216611010145b8061135857506001600160a01b038216155b92915050565b60e08114156114535760006060866001600160a01b031663d505accf60e01b858560405160240161139092919061272c565b60408051601f198184030181529181526020820180516001600160e01b03166001600160e01b03199094169390931790925290516113ce91906124df565b6000604051808303816000865af19150503d806000811461140b576040519150601f19603f3d011682016040523d82523d6000602084013e611410565b606091505b50915091508161145057611107816040518060400160405280601481526020017302832b936b4ba1031b0b636103330b4b632b21d160651b8152506118e0565b50505b6111206001600160a01b0386163386866118b9565b60006114738361130f565b1561148957506001600160a01b03811631611358565b6040516370a0823160e01b81526001600160a01b038416906370a08231906114b59085906004016125b8565b60206040518083038186803b1580156114cd57600080fd5b505afa1580156114e1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115059190612408565b9392505050565b60008282111561152e5760405162461bcd60e51b8152600401610106906128bc565b50900390565b6000828201838110156115055760405162461bcd60e51b8152600401610106906127c5565b60008261156857506000611358565b8282028284828161157557fe5b04146115055760405162461bcd60e51b815260040161010690612b17565b836001600160a01b0316856001600160a01b0316336001600160a01b03167f76af224a143865a50b41496e1a73622698692c565c1214bc862f18e22d829c5e868a6080013587878d60a001358e60c001358f6101000160208101906115f8919061211b565b60405161160b9796959493929190612644565b60405180910390a4505050505050565b6000600160ff1b83161580156116f6576000846001600160a01b031663128acb08888461164788611cdb565b6401000276a48b60405160200161165e91906125b8565b6040516020818303038152906040526040518663ffffffff1660e01b815260040161168d9594939291906125f0565b6040805180830381600087803b1580156116a657600080fd5b505af11580156116ba573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116de91906123a0565b9150506116ed81600003611d04565b92505050610d78565b6000846001600160a01b031663128acb08888461171288611cdb565b73fffd8963efd1fc6a506488495d951d5263988d258b60405160200161173891906125b8565b6040516020818303038152906040526040518663ffffffff1660e01b81526004016117679594939291906125f0565b6040805180830381600087803b15801561178057600080fd5b505af1158015611794573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906117b891906123a0565b5090506116ed81600003611d04565b804710156117e75760405162461bcd60e51b815260040161010690612950565b6000826001600160a01b031682604051611800906125ac565b60006040518083038185875af1925050503d806000811461183d576040519150601f19603f3d011682016040523d82523d6000602084013e611842565b606091505b50509050806111235760405162461bcd60e51b8152600401610106906128f3565b6111238363a9059cbb60e01b848460405160240161188292919061262b565b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152611d26565b6118da846323b872dd60e01b858585604051602401611882939291906125cc565b50505050565b606060448351101580156119135750826000815181106118fc57fe5b6020910101516001600160f81b031916600160fb1b145b801561193e57508260018151811061192757fe5b6020910101516001600160f81b03191660c360f81b145b801561196957508260028151811061195257fe5b6020910101516001600160f81b031916607960f81b145b801561199457508260038151811061197d57fe5b6020910101516001600160f81b031916600560fd1b145b156119f05760606044840190508051604401845110156119c65760405162461bcd60e51b815260040161010690612bba565b82816040516020016119d9929190612577565b604051602081830303815290604052915050611358565b82516024148015611a20575082600081518110611a0957fe5b6020910101516001600160f81b031916602760f91b145b8015611a4b575082600181518110611a3457fe5b6020910101516001600160f81b031916600960fb1b145b8015611a76575082600281518110611a5f57fe5b6020910101516001600160f81b031916607b60f81b145b8015611aa1575082600381518110611a8a57fe5b6020910101516001600160f81b031916607160f81b145b15611ac657602483015182611ab582611db5565b6040516020016119d9929190612528565b81604051602001611ad791906124fb565b604051602081830303815290604052905092915050565b3b151590565b600054610100900460ff1680611b0d5750611b0d611190565b80611b1b575060005460ff16155b611b375760405162461bcd60e51b815260040161010690612a5b565b600054610100900460ff16158015610429576000805460ff1961ff001990911661010017166001179055801561043b576000805461ff001916905550565b600054610100900460ff1680611b8e5750611b8e611190565b80611b9c575060005460ff16155b611bb85760405162461bcd60e51b815260040161010690612a5b565b600054610100900460ff16158015611be3576000805460ff1961ff0019909116610100171660011790555b6000611bed611128565b603380546001600160a01b0319166001600160a01b038316908117909155604051919250906000907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a350801561043b576000805461ff001916905550565b600054610100900460ff1680611c685750611c68611190565b80611c76575060005460ff16155b611c925760405162461bcd60e51b815260040161010690612a5b565b600054610100900460ff16158015611cbd576000805460ff1961ff0019909116610100171660011790555b6065805460ff19169055801561043b576000805461ff001916905550565b6000600160ff1b8210611d005760405162461bcd60e51b815260040161010690612c20565b5090565b600080821215611d005760405162461bcd60e51b815260040161010690612a26565b6060611d7b826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316611ddf9092919063ffffffff16565b8051909150156111235780806020019051810190611d999190612244565b6111235760405162461bcd60e51b815260040161010690612c9d565b606061135882604051602001611dcb91906125af565b604051602081830303815290604052611dee565b6060610d788484600085611f98565b6060806040518060400160405280601081526020016f181899199a1a9b1b9c1cb0b131b232b360811b81525090506060835160020260020167ffffffffffffffff81118015611e3c57600080fd5b506040519080825280601f01601f191660200182016040528015611e67576020820181803683370190505b509050600360fc1b81600081518110611e7c57fe5b60200101906001600160f81b031916908160001a905350600f60fb1b81600181518110611ea557fe5b60200101906001600160f81b031916908160001a90535060005b8451811015611f9057826004868381518110611ed757fe5b016020015182516001600160f81b031990911690911c60f81c908110611ef957fe5b602001015160f81c60f81b828260020260020181518110611f1657fe5b60200101906001600160f81b031916908160001a90535082858281518110611f3a57fe5b602091010151815160f89190911c600f16908110611f5457fe5b602001015160f81c60f81b828260020260030181518110611f7157fe5b60200101906001600160f81b031916908160001a905350600101611ebf565b509392505050565b606082471015611fba5760405162461bcd60e51b815260040161010690612987565b611fc385611aee565b611fdf5760405162461bcd60e51b815260040161010690612be9565b60006060866001600160a01b03168587604051611ffc91906124df565b60006040518083038185875af1925050503d8060008114612039576040519150601f19603f3d011682016040523d82523d6000602084013e61203e565b606091505b509150915061204e828286612059565b979650505050505050565b60608315612068575081611505565b8251156120785782518084602001fd5b8160405162461bcd60e51b81526004016101069190612740565b60008083601f8401126120a3578182fd5b50813567ffffffffffffffff8111156120ba578182fd5b60208301915083602080830285010111156120d457600080fd5b9250929050565b60008083601f8401126120ec578182fd5b50813567ffffffffffffffff811115612103578182fd5b6020830191508360208285010111156120d457600080fd5b60006020828403121561212c578081fd5b813561150581612dcd565b60008060008060008060008060c0898b031215612152578384fd5b883561215d81612dcd565b9750602089013561216d81612dcd565b96506040890135955060608901359450608089013567ffffffffffffffff80821115612197578586fd5b6121a38c838d01612092565b909650945060a08b01359150808211156121bb578384fd5b506121c88b828c016120db565b999c989b5096995094979396929594505050565b6000806000806000608086880312156121f3578081fd5b85356121fe81612dcd565b94506020860135935060408601359250606086013567ffffffffffffffff811115612227578182fd5b61223388828901612092565b969995985093965092949392505050565b600060208284031215612255578081fd5b81518015158114611505578182fd5b60008060408385031215612276578182fd5b823561228181612dcd565b946020939093013593505050565b600080600080600080600060a0888a0312156122a9578283fd5b87356122b481612dcd565b96506020880135955060408801359450606088013567ffffffffffffffff808211156122de578485fd5b6122ea8b838c01612092565b909650945060808a0135915080821115612302578384fd5b5061230f8a828b016120db565b989b979a50959850939692959293505050565b60008060008060608587031215612337578182fd5b843561234281612dcd565b9350602085013567ffffffffffffffff8082111561235e578384fd5b908601906101408289031215612372578384fd5b90935060408601359080821115612387578384fd5b5061239487828801612092565b95989497509550505050565b600080604083850312156123b2578182fd5b505080516020909101519092909150565b600080600080606085870312156123d8578182fd5b8435935060208501359250604085013567ffffffffffffffff8111156123fc578283fd5b612394878288016120db565b600060208284031215612419578081fd5b5051919050565b60008060008060608587031215612435578182fd5b8435935060208501359250604085013567ffffffffffffffff811115612459578283fd5b61239487828801612092565b60008284528282602086013780602084860101526020601f19601f85011685010190509392505050565b600081518084526124a7816020860160208601612da1565b601f01601f19169290920160200192915050565b6001600160e01b031984168152600082846004840137910160040190815292915050565b600082516124f1818460208701612da1565b9190910192915050565b6000825161250d818460208701612da1565b68556e6b6e6f776e282960b81b920191825250600901919050565b6000835161253a818460208801612da1565b650a0c2dcd2c6560d31b908301908152835161255d816006840160208801612da1565b602960f81b60069290910191820152600701949350505050565b60008351612589818460208801612da1565b6508ae4e4dee4560d31b908301908152835161255d816006840160208801612da1565b90565b90815260200190565b6001600160a01b0391909116815260200190565b6001600160a01b039384168152919092166020820152604081019190915260600190565b6001600160a01b0386811682528515156020830152604082018590528316606082015260a06080820181905260009061204e9083018461248f565b6001600160a01b03929092168252602082015260400190565b6001600160a01b039788168152602081019690965260408601949094526060850192909252608084015260a083015290911660c082015260e00190565b602080825281810183905260009060408084018583028501820187855b8881101561271357878303603f190184528135368b9003607e190181126126c3578788fd5b8a018035845286810135878501528581013586850152608060606126e981840184612d5c565b935082828801526126fd8388018583612465565b978a01979650505092870192505060010161269e565b509098975050505050505050565b901515815260200190565b600060208252610d78602083018486612465565b600060208252611505602083018461248f565b602080825260129082015271086d8c2d2da40e8ded6cadc40d2e6408aa8960731b604082015260600190565b60208082526026908201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160408201526564647265737360d01b606082015260800190565b6020808252601b908201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604082015260600190565b6020808252601a908201527f556e697377617056333a2077726f6e67206d73672e76616c7565000000000000604082015260600190565b602080825260169082015275556e697377617056333a20656d70747920706f6f6c7360501b604082015260600190565b6020808252601490820152731155120819195c1bdcda5d081c995a9958dd195960621b604082015260600190565b602080825260119082015270496e76616c6964206d73672e76616c756560781b604082015260600190565b6020808252601e908201527f536166654d6174683a207375627472616374696f6e206f766572666c6f770000604082015260600190565b6020808252603a908201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260408201527f6563697069656e74206d61792068617665207265766572746564000000000000606082015260800190565b6020808252601d908201527f416464726573733a20696e73756666696369656e742062616c616e6365000000604082015260600190565b60208082526026908201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6040820152651c8818d85b1b60d21b606082015260800190565b60208082526010908201526f14185d5cd8589b194e881c185d5cd95960821b604082015260600190565b6020808252601590820152742ab734b9bbb0b82b199d1036b4b7103932ba3ab93760591b604082015260600190565b6020808252818101527f53616665436173743a2076616c7565206d75737420626520706f736974697665604082015260600190565b6020808252602e908201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160408201526d191e481a5b9a5d1a585b1a5e995960921b606082015260800190565b6020808252601b908201527f52657475726e20616d6f756e74206973206e6f7420656e6f7567680000000000604082015260600190565b6020808252601a908201527f4d696e2072657475726e2073686f756c64206e6f742062652030000000000000604082015260600190565b60208082526021908201527f536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f6040820152607760f81b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b6020808252601390820152720aee4dedcce40e0cae4dad2e840d8cadccee8d606b1b604082015260600190565b60208082526015908201527424b73b30b634b2103932bb32b93a103932b0b9b7b760591b604082015260600190565b6020808252601d908201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604082015260600190565b60208082526028908201527f53616665436173743a2076616c756520646f65736e27742066697420696e2061604082015267371034b73a191a9b60c11b606082015260800190565b6020808252818101527f556e697377617056333a206d73672e76616c75652073686f756c642062652030604082015260600190565b6020808252602a908201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6040820152691bdd081cdd58d8d9595960b21b606082015260800190565b60208082526016908201527510d85b1b0819185d18481cda1bdd5b1908195e1a5cdd60521b604082015260600190565b6000808335601e19843603018112612d2d578283fd5b83018035915067ffffffffffffffff821115612d47578283fd5b6020019150368190038213156120d457600080fd5b6000808335601e19843603018112612d72578283fd5b830160208101925035905067ffffffffffffffff811115612d9257600080fd5b8036038313156120d457600080fd5b60005b83811015612dbc578181015183820152602001612da4565b838111156118da5750506000910152565b6001600160a01b038116811461043b57600080fdfea26469706673582212209871538ef2d6c68d6e0a9721d86829bcb79b3906de81edbbfbae5dda88fd95b164736f6c634300060c0033

Deployed Bytecode Sourcemap

73430:4354:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;42679:10;42693:9;42679:23;;42671:56;;;;-1:-1:-1;;;42671:56:0;;;;;;;:::i;:::-;;;;;;;;;73430:4354;;;;;66412:387;;;;;;;;;;-1:-1:-1;66412:387:0;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;36424:86;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;12467:148::-;;;;;;;;;;;;;:::i;77578:132::-;;;;;;;;;;-1:-1:-1;77578:132:0;;;;;:::i;:::-;;:::i;74418:143::-;;;;;;;;;;;;;:::i;77718:63::-;;;;;;;;;;;;;:::i;48216:5976::-;;;;;;:::i;:::-;;:::i;11816:87::-;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;74569:1739::-;;;;;;:::i;:::-;;:::i;67863:1649::-;;;;;;:::i;:::-;;:::i;47866:342::-;;;;;;;;;;-1:-1:-1;47866:342:0;;;;;:::i;:::-;;:::i;67130:245::-;;;;;;:::i;:::-;;:::i;12770:244::-;;;;;;;;;;-1:-1:-1;12770:244:0;;;;;:::i;:::-;;:::i;69564:2855::-;;;;;;;;;;-1:-1:-1;69564:2855:0;;;;;:::i;:::-;;:::i;66412:387::-;66654:20;66687:34;66703:8;66714:6;;66687:7;:34::i;:::-;66739:52;66755:9;66766:6;66774:9;66785:5;;66739:15;:52::i;:::-;66732:59;66412:387;-1:-1:-1;;;;;;;;;66412:387:0:o;36424:86::-;36495:7;;;;36424:86;:::o;12467:148::-;12047:12;:10;:12::i;:::-;-1:-1:-1;;;;;12036:23:0;:7;:5;:7::i;:::-;-1:-1:-1;;;;;12036:23:0;;12028:68;;;;-1:-1:-1;;;12028:68:0;;;;;;;:::i;:::-;12558:6:::1;::::0;12537:40:::1;::::0;12574:1:::1;::::0;-1:-1:-1;;;;;12558:6:0::1;::::0;12537:40:::1;::::0;12574:1;;12537:40:::1;12588:6;:19:::0;;-1:-1:-1;;;;;;12588:19:0::1;::::0;;12467:148::o;77578:132::-;12047:12;:10;:12::i;:::-;-1:-1:-1;;;;;12036:23:0;:7;:5;:7::i;:::-;-1:-1:-1;;;;;12036:23:0;;12028:68;;;;-1:-1:-1;;;12028:68:0;;;;;;;:::i;:::-;77659:43:::1;-1:-1:-1::0;;;;;77659:23:0;::::1;77683:10;77695:6:::0;77659:23:::1;:43::i;:::-;77578:132:::0;;:::o;74418:143::-;8639:13;;;;;;;;:33;;;8656:16;:14;:16::i;:::-;8639:50;;;-1:-1:-1;8677:12:0;;;;8676:13;8639:50;8631:109;;;;-1:-1:-1;;;8631:109:0;;;;;;;:::i;:::-;8753:19;8776:13;;;;;;8775:14;8800:101;;;;8835:13;:20;;-1:-1:-1;;;;8835:20:0;;;;;8870:19;8851:4;8870:19;;;8800:101;74470:35:::1;:33;:35::i;:::-;74516:37;:35;:37::i;:::-;8931:14:::0;8927:68;;;8978:5;8962:21;;-1:-1:-1;;8962:21:0;;;8927:68;74418:143;:::o;77718:63::-;12047:12;:10;:12::i;:::-;-1:-1:-1;;;;;12036:23:0;:7;:5;:7::i;:::-;-1:-1:-1;;;;;12036:23:0;;12028:68;;;;-1:-1:-1;;;12028:68:0;;;;;;;:::i;:::-;77765:8:::1;:6;:8::i;:::-;77718:63::o:0;48216:5976::-;48388:20;48501:137;;;48561:16;48558:1;48555;48540:38;48606:16;48603:1;48596:27;48654:308;-1:-1:-1;;;48714:1:0;48707:77;-1:-1:-1;;;48809:4:0;48802:80;48913:1;48907:4;48900:15;48943:3;48940:1;48933:14;48978:1400;;-1:-1:-1;;;49079:8:0;49072:56;49205:4;49195:8;49190:3;49180:8;49174:4;49167:5;49156:54;49146:2;;49235:10;;:::i;:::-;49306:8;49300:15;49369:4;49359:8;49355:19;49349:26;49396:8;49393:2;;;49481:8;49393:2;-1:-1:-1;;;49702:52:0;;49570:26;;;49668:11;49654:26;;;;49645:36;;49625:18;;49621:61;;-1:-1:-1;49779:8:0;49805:133;;;;50015:3;50008:4;49998:8;49994:19;49987:32;50069:1;50062:4;50052:8;50048:19;50041:30;49772:318;;49805:133;49863:1;49856:4;49846:8;49842:19;49835:30;49915:3;49908:4;49898:8;49894:19;49887:32;49772:318;;50136:3;50129:4;50119:8;50115:19;50108:32;50186:4;50179;50169:8;50165:19;50158:33;50237:1;50230:4;50220:8;50216:19;50209:30;50307:1;50304;50298:4;50288:8;50285:1;50279:4;50272:5;50267:42;50257:2;;50334:10;;:::i;:::-;49053:1325;;;;;;;;:::o;:::-;50416:4;50410:11;50462:4;50452:8;50448:19;50442:4;50435:33;50527:3;50520:4;50507:18;50503:28;50580:11;50567:25;50638:4;50625:11;50621:22;50606:37;;50702:14;50696:4;50692:25;50679:11;50675:43;50657:61;;50760:11;50747:25;50793:8;50820:1;50815:744;;;;51603:11;51600:2;;;51638:90;51723:4;-1:-1:-1;;;51638:90:0;:::i;:::-;-1:-1:-1;;;51797:8:0;51790:48;51883:8;51877:3;51867:8;51863:18;51856:36;-1:-1:-1;;;;;51942:7:0;51938:26;51931:4;51921:8;51917:19;51910:55;52011:6;52004:4;51994:8;51990:19;51983:35;52090:1;52087;52081:4;52071:8;52068:1;52058:8;52051:5;52046:46;52036:2;;52117:10;;:::i;:::-;50786:1375;;50815:744;50862:11;50854:6;50851:23;50841:2;;50899:90;50984:4;-1:-1:-1;;;50899:90:0;:::i;:::-;-1:-1:-1;;;51058:8:0;51051:47;51170:1;51167;51162:3;51152:8;51144:6;51138:4;51131:5;51126:46;51116:2;;51197:10;;:::i;:::-;-1:-1:-1;;;51253:8:0;51246:49;-1:-1:-1;;;;;51344:7:0;51340:26;51334:3;51324:8;51320:18;51313:54;51413:6;51406:4;51396:8;51392:19;51385:35;51488:1;51485;51479:4;51469:8;51466:1;51460:4;51453:5;51448:42;51438:2;;51515:10;;:::i;:::-;50786:1375;52193:6;52177:22;;52264:4;52251:11;52247:22;52215:604;52291:14;52288:1;52285:21;52215:604;;;52410:1;52397:15;52448:314;-1:-1:-1;;;;;52717:11:0;52713:30;-1:-1:-1;;;52665:7:0;52661:28;52643:16;52639:51;-1:-1:-1;;;52594:7:0;52590:26;-1:-1:-1;;;;;52545:7:0;52541:26;52506:12;52475:8;52448:314;:::i;:::-;52432:330;-1:-1:-1;52793:11:0;-1:-1:-1;52338:4:0;52331:12;52215:604;;;-1:-1:-1;;;;52842:23:0;;52879:349;;;;53285:293;53550:9;-1:-1:-1;;;53502:7:0;53498:28;53480:16;53476:51;-1:-1:-1;;;53431:7:0;53427:26;-1:-1:-1;;;;;53382:7:0;53378:26;53343:12;53312:8;53285:293;:::i;:::-;53269:309;;-1:-1:-1;;;53605:8:0;53598:48;53692:12;53685:4;53675:8;53671:19;53664:41;53773:1;53770;53764:4;53754:8;53751:1;53745:4;53738:5;53733:42;53723:2;;53800:10;;:::i;:::-;53904:1;53901;53898;53895;53881:12;53871:8;53864:5;53859:47;53849:2;;53931:10;;:::i;:::-;52835:1140;;52879:349;52921:292;53186:8;-1:-1:-1;;;53138:7:0;53134:28;53116:16;53112:51;-1:-1:-1;;;53067:7:0;53063:26;-1:-1:-1;;;;;53018:7:0;53014:26;52979:12;52948:8;52921:292;:::i;:::-;52905:308;;52835:1140;;;;;;54011:9;53997:12;53994:27;53991:2;;;54041:90;54126:4;54058:66;54041:90;:::i;:::-;48430:5755;;;;;;;:::o;11816:87::-;11889:6;;-1:-1:-1;;;;;11889:6:0;11816:87;:::o;74569:1739::-;74764:20;36750:8;:6;:8::i;:::-;36749:9;36741:38;;;;-1:-1:-1;;;36741:38:0;;;;;;;:::i;:::-;74828:1:::1;74805:4;:20;;;:24;74797:63;;;;-1:-1:-1::0;;;74797:63:0::1;;;;;;;:::i;:::-;74879:16:::0;74871:51:::1;;;;-1:-1:-1::0;;;74871:51:0::1;;;;;;;:::i;:::-;74951:10;::::0;::::1;;74935:13;74990;;::::0;::::1;74951:4:::0;74990:13:::1;:::i;:::-;74972:31:::0;-1:-1:-1;75014:15:0::1;75032:13;::::0;;;::::1;::::0;::::1;;:::i;:::-;75014:31;;75080:16;:8;-1:-1:-1::0;;;;;75080:14:0::1;;:16::i;:::-;:34;;75113:1;75080:34;;;75099:4;:11;;;75080:34;75066:9;:49;75058:79;;;;-1:-1:-1::0;;;75058:79:0::1;;;;;;;:::i;:::-;73744:4;75154:21:::0;::::1;:26:::0;75150:182:::1;;75206:16;:8;-1:-1:-1::0;;;;;75206:14:0::1;;:16::i;:::-;75205:17;75197:48;;;;-1:-1:-1::0;;;75197:48:0::1;;;;;;;:::i;:::-;75260:60;75267:8:::0;75277:16:::1;::::0;;;::::1;::::0;::::1;;:::i;:::-;75295:11;::::0;::::1;;75308;;::::0;::::1;75295:4:::0;75308:11:::1;:::i;:::-;75260:6;:60::i;:::-;75344:19;::::0;75367:16:::1;::::0;;;::::1;::::0;::::1;;:::i;:::-;-1:-1:-1::0;;;;;75367:30:0::1;;75366:64;;75414:16;::::0;;;::::1;::::0;::::1;;:::i;:::-;75366:64;;;75401:10;75366:64;75344:86:::0;-1:-1:-1;75441:25:0::1;73692:4;75470:21:::0;::::1;75469:74;;75542:1;75469:74;;;75500:39;-1:-1:-1::0;;;;;75500:27:0;::::1;75528:10;75500:27;:39::i;:::-;75441:102:::0;-1:-1:-1;75554:25:0::1;75582:40;-1:-1:-1::0;;;;;75582:27:0;::::1;75610:11:::0;75582:27:::1;:40::i;:::-;75554:68;;75635:6;-1:-1:-1::0;;;;;75635:16:0::1;;75659:9;75670:5;;75635:41;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;-1:-1:-1::0;;;;75711:11:0::1;::::0;::::1;;::::0;-1:-1:-1;75748:63:0::1;75793:17:::0;75748:40:::1;-1:-1:-1::0;;;;;75748:27:0;::::1;75776:11:::0;75748:27:::1;:40::i;:::-;:44:::0;::::1;:63::i;:::-;75733:78:::0;-1:-1:-1;73692:4:0::1;75828:21:::0;::::1;:26:::0;75824:386:::1;;75885:79;75924:39;-1:-1:-1::0;;;;;75924:27:0;::::1;75952:10;75924:27;:39::i;:::-;75885:34;:17:::0;75907:11:::1;::::0;::::1;;75885:21;:34::i;:79::-;75871:93:::0;-1:-1:-1;76020:37:0::1;:20;::::0;::::1;;75871:93:::0;76020:24:::1;:37::i;:::-;75987:29;:12:::0;76004:11:::1;::::0;::::1;;75987:16;:29::i;:::-;:70;;75979:110;;;;-1:-1:-1::0;;;75979:110:0::1;;;;;;;:::i;:::-;75824:386;;;76146:4;:20;;;76130:12;:36;;76122:76;;;;-1:-1:-1::0;;;76122:76:0::1;;;;;;;:::i;:::-;76222:78;76235:4;76241:8;76251;76261:11;76274;76287:12;76222;:78::i;:::-;36790:1;;;;;;;74569:1739:::0;;;;;;:::o;67863:1649::-;68043:20;68090:5;68121:7;68113:42;;;;-1:-1:-1;;;68113:42:0;;;;;;;:::i;:::-;68219:6;;-1:-1:-1;;;68186:7:0;;68166:17;;-1:-1:-1;;;68252:5:0;;68166:17;68252:8;;;;;;;;;;;:26;:30;68236:46;;68293:15;68350:1;-1:-1:-1;;;68311:5:0;;68317:9;68311:16;;;;;;;;;;;;;:36;:40;68293:58;;68366:8;68362:243;;;68412:6;68399:9;:19;68391:58;;;;-1:-1:-1;;;68391:58:0;;;;;;;:::i;:::-;65736:42;-1:-1:-1;;;;;68464:20:0;;68492:6;68464:37;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;68362:243;;;68542:9;:14;68534:59;;;;-1:-1:-1;;;68534:59:0;;;;;;;:::i;:::-;68625:1;68619:3;:7;68615:680;;;68658:87;68676:4;68683:8;:37;;68710:10;68683:37;;;68702:4;68683:37;68722:5;;68728:1;68722:8;;;;;;;;;;;;;68732:12;68658:9;:87::i;:::-;68643:102;-1:-1:-1;68779:1:0;68762:153;68786:9;68782:1;:13;68762:153;;;68836:63;68854:4;68869;68876:5;;68882:1;68876:8;;;;;;;;;;;;;68886:12;68836:9;:63::i;:::-;68821:78;-1:-1:-1;68797:3:0;;68762:153;;;;68944:96;68954:10;:38;;68983:9;68954:38;;;68975:4;68954:38;69002:4;69009:5;;69015:9;69009:16;;;;;;68944:96;68929:111;;68615:680;;;69088:195;69116:10;:38;;69145:9;69116:38;;;69137:4;69116:38;69173:8;:37;;69200:10;69173:37;;69088:195;69073:210;;68615:680;69331:9;69315:12;:25;;69307:59;;;;-1:-1:-1;;;69307:59:0;;;;;;;:::i;:::-;69383:10;69379:126;;;69410:35;;-1:-1:-1;;;69410:35:0;;65736:42;;69410:21;;:35;;69432:12;;69410:35;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;69460:33:0;;-1:-1:-1;;;;;;;;69460:19:0;;69480:12;69460:19;:33::i;:::-;67863:1649;;;;;;;;;;;:::o;47866:342::-;48068:20;48101:34;48117:8;48128:6;;48101:7;:34::i;:::-;48153:47;48165:8;48175:6;48183:9;48194:5;;48153:11;:47::i;:::-;48146:54;47866:342;-1:-1:-1;;;;;;;;47866:342:0:o;67130:245::-;67274:20;67314:53;67330:10;67342:6;67350:9;67361:5;;67314:15;:53::i;:::-;67307:60;;67130:245;;;;;;;:::o;12770:244::-;12047:12;:10;:12::i;:::-;-1:-1:-1;;;;;12036:23:0;:7;:5;:7::i;:::-;-1:-1:-1;;;;;12036:23:0;;12028:68;;;;-1:-1:-1;;;12028:68:0;;;;;;;:::i;:::-;-1:-1:-1;;;;;12859:22:0;::::1;12851:73;;;;-1:-1:-1::0;;;12851:73:0::1;;;;;;;:::i;:::-;12961:6;::::0;12940:38:::1;::::0;-1:-1:-1;;;;;12940:38:0;;::::1;::::0;12961:6:::1;::::0;12940:38:::1;::::0;12961:6:::1;::::0;12940:38:::1;12989:6;:17:::0;;-1:-1:-1;;;;;;12989:17:0::1;-1:-1:-1::0;;;;;12989:17:0;;;::::1;::::0;;;::::1;::::0;;12770:244::o;69564:2855::-;69727:13;;64952:66;64840;69727:13;70490:4;70484:11;70540:4;70530:8;70526:19;-1:-1:-1;;;70566:8:0;70559:28;70667:4;70656:9;70651:3;70641:8;70631;70624:5;70613:59;70603:2;;70693:10;;:::i;:::-;70748:9;70742:16;70732:26;;70846:4;70835:9;70830:3;70824;70814:8;70810:18;70800:8;70793:5;70782:69;70772:2;;70872:10;;:::i;:::-;70927:9;70921:16;70911:26;;71025:4;71014:9;71009:3;71003;70993:8;70989:18;70979:8;70972:5;70961:69;70951:2;;71051:10;;:::i;:::-;71101:16;71164:27;;;71217:2;71210:10;;71282:17;;;71320:10;;;71313:26;;;71360:10;;;;71353:23;;;;71413:2;71400:16;;71390:27;;;71460;;;71517:23;;-1:-1:-1;;;;;71513:43:0;71591:8;71582:18;;71572:2;;71621:90;71706:4;-1:-1:-1;;;71621:90:0;:::i;:::-;71572:2;71794:4;71788;71778:8;71765:34;71822:15;;-1:-1:-1;71879:1:0;71864:16;;71860:271;;;-1:-1:-1;;;;;71901:22:0;;71918:4;71901:22;71897:223;;;71944:54;-1:-1:-1;;;;;71944:19:0;;71964:10;71984:12;71944:19;:54::i;:::-;71897:223;;;72039:65;-1:-1:-1;;;;;72039:23:0;;72063:5;72070:10;72090:12;72039:23;:65::i;:::-;72160:1;72145:12;:16;72141:271;;;-1:-1:-1;;;;;72182:22:0;;72199:4;72182:22;72178:223;;;72225:54;-1:-1:-1;;;;;72225:19:0;;72245:10;72265:12;72225:19;:54::i;:::-;72178:223;;;72320:65;-1:-1:-1;;;;;72320:23:0;;72344:5;72351:10;72371:12;72320:23;:65::i;:::-;69564:2855;;;;;;;;;:::o;45404:828::-;45483:17;;45479:746;;45517:12;45544:19;45599:6;45582:23;;45578:514;;;45725:54;;-1:-1:-1;;;;;45714:10:0;;;45725:54;;-1:-1:-1;;;45742:28:0;45772:6;;;;45725:54;;;:::i;:::-;;;;-1:-1:-1;;45725:54:0;;;;;;;;;;45714:66;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;45694:86:0;;-1:-1:-1;45694:86:0;-1:-1:-1;45578:514:0;;;45823:6;45806:23;;45802:290;;;45949:56;;-1:-1:-1;;;;;45938:10:0;;;45949:56;;-1:-1:-1;;;45966:30:0;45998:6;;;;45949:56;;;:::i;45802:290::-;46047:29;;-1:-1:-1;;;46047:29:0;;;;;;;:::i;45802:290::-;46111:7;46106:108;;46146:51;46171:6;46146:51;;;;;;;;;;;;;-1:-1:-1;;;46146:51:0;;;:24;:51::i;:::-;46139:59;;-1:-1:-1;;;46139:59:0;;;;;;;;:::i;46106:108::-;45479:746;;;45404:828;;;:::o;10087:106::-;10175:10;10087:106;:::o;41126:323::-;41261:10;;41257:185;;41292:12;41298:5;41292;:12::i;:::-;41288:143;;;41325:19;;-1:-1:-1;;;;;41325:11:0;;;:19;;;;;41337:6;;41325:19;;;;41337:6;41325:11;:19;;;;;;;;;;;;;;;;;;;;;41288:143;;;41385:30;-1:-1:-1;;;;;41385:18:0;;41404:2;41408:6;41385:18;:30::i;9095:125::-;9143:4;9168:44;9206:4;9168:29;:44::i;:::-;9167:45;9160:52;;9095:125;:::o;11402:129::-;8639:13;;;;;;;;:33;;;8656:16;:14;:16::i;:::-;8639:50;;;-1:-1:-1;8677:12:0;;;;8676:13;8639:50;8631:109;;;;-1:-1:-1;;;8631:109:0;;;;;;;:::i;:::-;8753:19;8776:13;;;;;;8775:14;8800:101;;;;8835:13;:20;;-1:-1:-1;;;;8835:20:0;;;;;8870:19;8851:4;8870:19;;;8800:101;11460:26:::1;:24;:26::i;:::-;11497;:24;:26::i;36093:131::-:0;8639:13;;;;;;;;:33;;;8656:16;:14;:16::i;:::-;8639:50;;;-1:-1:-1;8677:12:0;;;;8676:13;8639:50;8631:109;;;;-1:-1:-1;;;8631:109:0;;;;;;;:::i;:::-;8753:19;8776:13;;;;;;8775:14;8800:101;;;;8835:13;:20;;-1:-1:-1;;;;8835:20:0;;;;;8870:19;8851:4;8870:19;;;8800:101;36152:26:::1;:24;:26::i;:::-;36189:27;:25;:27::i;37224:118::-:0;36750:8;:6;:8::i;:::-;36749:9;36741:38;;;;-1:-1:-1;;;36741:38:0;;;;;;;:::i;:::-;37284:7:::1;:14:::0;;-1:-1:-1;;37284:14:0::1;37294:4;37284:14;::::0;;37314:20:::1;37321:12;:10;:12::i;:::-;37314:20;;;;;;:::i;:::-;;;;;;;;37224:118::o:0;42263:248::-;42315:4;-1:-1:-1;;;;;42352:38:0;;40976:42;42352:38;;:95;;-1:-1:-1;;;;;;42407:40:0;;41074:42;42407:40;42352:95;:151;;;-1:-1:-1;;;;;;42464:39:0;;;42352:151;42332:171;42263:248;-1:-1:-1;;42263:248:0:o;76861:709::-;77158:6;77141:23;;77137:366;;;77246:12;77260:19;77291:5;-1:-1:-1;;;;;77283:19:0;77326:28;;;77356:6;;77303:60;;;;;;;;;:::i;:::-;;;;-1:-1:-1;;77303:60:0;;;;;;;;;;;;;;-1:-1:-1;;;;;77303:60:0;-1:-1:-1;;;;;;77303:60:0;;;;;;;;;;77283:81;;;;77303:60;77283:81;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;77245:119;;;;77384:7;77379:113;;77419:56;77444:6;77419:56;;;;;;;;;;;;;-1:-1:-1;;;77419:56:0;;;:24;:56::i;77379:113::-;77137:366;;;77515:47;-1:-1:-1;;;;;77515:22:0;;77538:10;77550:3;77555:6;77515:22;:47::i;42015:240::-;42097:7;42121:12;42127:5;42121;:12::i;:::-;42117:131;;;-1:-1:-1;;;;;;42157:15:0;;;42150:22;;42117:131;42212:24;;-1:-1:-1;;;42212:24:0;;-1:-1:-1;;;;;42212:15:0;;;;;:24;;42228:7;;42212:24;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;42205:31;42015:240;-1:-1:-1;;;42015:240:0:o;19123:158::-;19181:7;19214:1;19209;:6;;19201:49;;;;-1:-1:-1;;;19201:49:0;;;;;;;:::i;:::-;-1:-1:-1;19268:5:0;;;19123:158::o;18661:179::-;18719:7;18751:5;;;18775:6;;;;18767:46;;;;-1:-1:-1;;;18767:46:0;;;;;;;:::i;19540:220::-;19598:7;19622:6;19618:20;;-1:-1:-1;19637:1:0;19630:8;;19618:20;19661:5;;;19665:1;19661;:5;:1;19685:5;;;;;:10;19677:56;;;;-1:-1:-1;;;19677:56:0;;;;;;;:::i;76316:537::-;76622:8;-1:-1:-1;;;;;76552:293:0;76599:8;-1:-1:-1;;;;;76552:293:0;76574:10;-1:-1:-1;;;;;76552:293:0;;76645:11;76671:4;:11;;;76697;76723:12;76750:4;:20;;;76785:4;:21;;;76821:4;:13;;;;;;;;;;:::i;:::-;76552:293;;;;;;;;;;;;:::i;:::-;;;;;;;;76316:537;;;;;;:::o;72427:869::-;72570:7;-1:-1:-1;;;72608:25:0;;:30;72649:640;;;;72683:14;72716:4;-1:-1:-1;;;;;72701:25:0;;72745:9;72773:10;72802:25;72820:6;72802:17;:25::i;:::-;65415:14;72891:5;72880:17;;;;;;;;:::i;:::-;;;;;;;;;;;;;72701:211;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;72680:232;;;72934:28;72954:7;72953:8;;72934:18;:28::i;:::-;72927:35;;;;;;72649:640;72996:14;73031:4;-1:-1:-1;;;;;73016:25:0;;73060:9;73088:10;73117:25;73135:6;73117:17;:25::i;:::-;65601:53;73206:5;73195:17;;;;;;;;:::i;:::-;;;;;;;;;;;;;73016:211;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;72995:232;;;73249:28;73269:7;73268:8;;73249:18;:28::i;25459:397::-;25574:6;25549:21;:31;;25541:73;;;;-1:-1:-1;;;25541:73:0;;;;;;;:::i;:::-;25706:12;25724:9;-1:-1:-1;;;;;25724:14:0;25747:6;25724:35;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;25705:54;;;25778:7;25770:78;;;;-1:-1:-1;;;25770:78:0;;;;;;;:::i;32027:177::-;32110:86;32130:5;32160:23;;;32185:2;32189:5;32137:58;;;;;;;;;:::i;:::-;;;;-1:-1:-1;;32137:58:0;;;;;;;;;;;;;;-1:-1:-1;;;;;32137:58:0;-1:-1:-1;;;;;;32137:58:0;;;;;;;;;;32110:19;:86::i;32212:205::-;32313:96;32333:5;32363:27;;;32392:4;32398:2;32402:5;32340:68;;;;;;;;;;:::i;32313:96::-;32212:205;;;;:::o;38154:1893::-;38233:13;38518:2;38503:4;:11;:17;;:38;;;;;38524:4;38529:1;38524:7;;;;;;;;;;;;;-1:-1:-1;;;;;;38524:7:0;-1:-1:-1;;;38524:17:0;38503:38;:59;;;;;38545:4;38550:1;38545:7;;;;;;;;;;;;;-1:-1:-1;;;;;;38545:7:0;-1:-1:-1;;;38545:17:0;38503:59;:80;;;;;38566:4;38571:1;38566:7;;;;;;;;;;;;;-1:-1:-1;;;;;;38566:7:0;-1:-1:-1;;;38566:17:0;38503:80;:101;;;;;38587:4;38592:1;38587:7;;;;;;;;;;;;;-1:-1:-1;;;;;;38587:7:0;-1:-1:-1;;;38587:17:0;38503:101;38499:1476;;;38621:20;38837:2;38831:4;38827:13;38817:23;;39339:6;39333:20;39328:2;:25;39313:4;:11;:40;;39305:74;;;;-1:-1:-1;;;39305:74:0;;;;;;;:::i;:::-;39425:6;39443;39408:47;;;;;;;;;:::i;:::-;;;;;;;;;;;;;39394:62;;;;;38499:1476;39550:4;:11;39565:2;39550:17;:38;;;;;39571:4;39576:1;39571:7;;;;;;;;;;;;;-1:-1:-1;;;;;;39571:7:0;-1:-1:-1;;;39571:17:0;39550:38;:59;;;;;39592:4;39597:1;39592:7;;;;;;;;;;;;;-1:-1:-1;;;;;;39592:7:0;-1:-1:-1;;;39592:17:0;39550:59;:80;;;;;39613:4;39618:1;39613:7;;;;;;;;;;;;;-1:-1:-1;;;;;;39613:7:0;-1:-1:-1;;;39613:17:0;39550:80;:101;;;;;39634:4;39639:1;39634:7;;;;;;;;;;;;;-1:-1:-1;;;;;;39634:7:0;-1:-1:-1;;;39634:17:0;39550:101;39546:429;;;39862:2;39852:13;;39846:20;39926:6;39944:12;39846:20;39944:6;:12::i;:::-;39909:53;;;;;;;;;:::i;39546:429::-;40018:6;40001:37;;;;;;;;:::i;:::-;;;;;;;;;;;;;39987:52;;38154:1893;;;;:::o;839:422::-;1206:20;1245:8;;;839:422::o;10016:65::-;8639:13;;;;;;;;:33;;;8656:16;:14;:16::i;:::-;8639:50;;;-1:-1:-1;8677:12:0;;;;8676:13;8639:50;8631:109;;;;-1:-1:-1;;;8631:109:0;;;;;;;:::i;:::-;8753:19;8776:13;;;;;;8775:14;8800:101;;;;8835:13;:20;;-1:-1:-1;;;;8835:20:0;;;;;8870:19;8851:4;8870:19;;;8931:14;8927:68;;;8978:5;8962:21;;-1:-1:-1;;8962:21:0;;;10016:65;:::o;11539:196::-;8639:13;;;;;;;;:33;;;8656:16;:14;:16::i;:::-;8639:50;;;-1:-1:-1;8677:12:0;;;;8676:13;8639:50;8631:109;;;;-1:-1:-1;;;8631:109:0;;;;;;;:::i;:::-;8753:19;8776:13;;;;;;8775:14;8800:101;;;;8835:13;:20;;-1:-1:-1;;;;8835:20:0;;;;;8870:19;8851:4;8870:19;;;8800:101;11607:17:::1;11627:12;:10;:12::i;:::-;11650:6;:18:::0;;-1:-1:-1;;;;;;11650:18:0::1;-1:-1:-1::0;;;;;11650:18:0;::::1;::::0;;::::1;::::0;;;11684:43:::1;::::0;11650:18;;-1:-1:-1;11650:18:0;-1:-1:-1;;11684:43:0::1;::::0;-1:-1:-1;;11684:43:0::1;8913:1;8931:14:::0;8927:68;;;8978:5;8962:21;;-1:-1:-1;;8962:21:0;;;11539:196;:::o;36232:92::-;8639:13;;;;;;;;:33;;;8656:16;:14;:16::i;:::-;8639:50;;;-1:-1:-1;8677:12:0;;;;8676:13;8639:50;8631:109;;;;-1:-1:-1;;;8631:109:0;;;;;;;:::i;:::-;8753:19;8776:13;;;;;;8775:14;8800:101;;;;8835:13;:20;;-1:-1:-1;;;;8835:20:0;;;;;8870:19;8851:4;8870:19;;;8800:101;36301:7:::1;:15:::0;;-1:-1:-1;;36301:15:0::1;::::0;;8927:68;;;;8978:5;8962:21;;-1:-1:-1;;8962:21:0;;;36232:92;:::o;60791:181::-;60847:6;-1:-1:-1;;;60874:5:0;:14;60866:67;;;;-1:-1:-1;;;60866:67:0;;;;;;;:::i;:::-;-1:-1:-1;60958:5:0;60791:181::o;57609:171::-;57665:7;57702:1;57693:5;:10;;57685:55;;;;-1:-1:-1;;;57685:55:0;;;;;;;:::i;34332:761::-;34756:23;34782:69;34810:4;34782:69;;;;;;;;;;;;;;;;;34790:5;-1:-1:-1;;;;;34782:27:0;;;:69;;;;;:::i;:::-;34866:17;;34756:95;;-1:-1:-1;34866:21:0;34862:224;;35008:10;34997:30;;;;;;;;;;;;:::i;:::-;34989:85;;;;-1:-1:-1;;;34989:85:0;;;;;;;:::i;40055:124::-;40107:13;40140:31;40164:5;40147:23;;;;;;;;:::i;:::-;;;;;;;;;;;;;40140:6;:31::i;27020:195::-;27123:12;27155:52;27177:6;27185:4;27191:1;27194:12;27155:21;:52::i;40187:455::-;40243:13;40269:21;:42;;;;;;;;;;;;;-1:-1:-1;;;40269:42:0;;;;;40322:16;40355:4;:11;40369:1;40355:15;40351:1;:19;40341:30;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;40341:30:0;;40322:49;;-1:-1:-1;;;40382:3:0;40386:1;40382:6;;;;;;;;;;;:12;-1:-1:-1;;;;;40382:12:0;;;;;;;;;-1:-1:-1;;;40405:3:0;40409:1;40405:6;;;;;;;;;;;:12;-1:-1:-1;;;;;40405:12:0;;;;;;;;;40433:9;40428:178;40452:4;:11;40448:1;:15;40428:178;;;40502:8;40528:1;40517:4;40522:1;40517:7;;;;;;;;;;;;40502:29;;-1:-1:-1;;;;;;40517:7:0;;;:12;;;:7;40511:19;;40502:29;;;;;;;;;;;;;;40485:3;40493:1;40489;:5;40497:1;40489:9;40485:14;;;;;;;;;;;:46;-1:-1:-1;;;;;40485:46:0;;;;;;;;;40563:8;40578:4;40583:1;40578:7;;;;;;;;;;;;;40563:31;;40578:7;;;;;40588:4;40572:21;;40563:31;;;;;;;;;;;;;;40546:3;40554:1;40550;:5;40558:1;40550:9;40546:14;;;;;;;;;;;:48;-1:-1:-1;;;;;40546:48:0;;;;;;;;-1:-1:-1;40465:3:0;;40428:178;;;-1:-1:-1;40630:3:0;40187:455;-1:-1:-1;;;40187:455:0:o;28072:530::-;28199:12;28257:5;28232:21;:30;;28224:81;;;;-1:-1:-1;;;28224:81:0;;;;;;;:::i;:::-;28324:18;28335:6;28324:10;:18::i;:::-;28316:60;;;;-1:-1:-1;;;28316:60:0;;;;;;;:::i;:::-;28450:12;28464:23;28491:6;-1:-1:-1;;;;;28491:11:0;28511:5;28519:4;28491:33;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;28449:75;;;;28542:52;28560:7;28569:10;28581:12;28542:17;:52::i;:::-;28535:59;28072:530;-1:-1:-1;;;;;;;28072:530:0:o;30612:742::-;30727:12;30756:7;30752:595;;;-1:-1:-1;30787:10:0;30780:17;;30752:595;30901:17;;:21;30897:439;;31164:10;31158:17;31225:15;31212:10;31208:2;31204:19;31197:44;31112:148;31307:12;31300:20;;-1:-1:-1;;;31300:20:0;;;;;;;;:::i;313:352:-1:-;;;443:3;436:4;428:6;424:17;420:27;410:2;;-1:-1;;451:12;410:2;-1:-1;481:20;;521:18;510:30;;507:2;;;-1:-1;;543:12;507:2;587:4;579:6;575:17;563:29;;638:3;587:4;;622:6;618:17;579:6;604:32;;601:41;598:2;;;655:1;;645:12;598:2;403:262;;;;;:::o;1645:336::-;;;1759:3;1752:4;1744:6;1740:17;1736:27;1726:2;;-1:-1;;1767:12;1726:2;-1:-1;1797:20;;1837:18;1826:30;;1823:2;;;-1:-1;;1859:12;1823:2;1903:4;1895:6;1891:17;1879:29;;1954:3;1903:4;1934:17;1895:6;1920:32;;1917:41;1914:2;;;1971:1;;1961:12;3116:241;;3220:2;3208:9;3199:7;3195:23;3191:32;3188:2;;;-1:-1;;3226:12;3188:2;85:6;72:20;97:33;124:5;97:33;:::i;3364:1193::-;;;;;;;;;3629:3;3617:9;3608:7;3604:23;3600:33;3597:2;;;-1:-1;;3636:12;3597:2;230:6;217:20;242:41;277:5;242:41;:::i;:::-;3688:71;-1:-1;3796:2;3849:22;;2070:20;2095:47;2070:20;2095:47;:::i;:::-;3804:77;-1:-1;3918:2;3957:22;;2905:20;;-1:-1;4026:2;4065:22;;2905:20;;-1:-1;4162:3;4147:19;;4134:33;4187:18;4176:30;;;4173:2;;;-1:-1;;4209:12;4173:2;4247:80;4319:7;4310:6;4299:9;4295:22;4247:80;:::i;:::-;4229:98;;-1:-1;4229:98;-1:-1;4392:3;4377:19;;4364:33;;-1:-1;4406:30;;;4403:2;;;-1:-1;;4439:12;4403:2;;4477:64;4533:7;4524:6;4513:9;4509:22;4477:64;:::i;:::-;3591:966;;;;-1:-1;3591:966;;-1:-1;3591:966;;;;;;4459:82;-1:-1;;;3591:966::o;4564:789::-;;;;;;4762:3;4750:9;4741:7;4737:23;4733:33;4730:2;;;-1:-1;;4769:12;4730:2;230:6;217:20;242:41;277:5;242:41;:::i;:::-;4821:71;-1:-1;4929:2;4968:22;;2905:20;;-1:-1;5037:2;5076:22;;2905:20;;-1:-1;5173:2;5158:18;;5145:32;5197:18;5186:30;;5183:2;;;-1:-1;;5219:12;5183:2;5257:80;5329:7;5320:6;5309:9;5305:22;5257:80;:::i;:::-;4724:629;;;;-1:-1;4724:629;;-1:-1;5239:98;;;4724:629;-1:-1;;;4724:629::o;5360:257::-;;5472:2;5460:9;5451:7;5447:23;5443:32;5440:2;;;-1:-1;;5478:12;5440:2;1577:6;1571:13;52853:5;50735:13;50728:21;52831:5;52828:32;52818:2;;-1:-1;;52864:12;5900:394;;;6035:2;6023:9;6014:7;6010:23;6006:32;6003:2;;;-1:-1;;6041:12;6003:2;2083:6;2070:20;2095:47;2136:5;2095:47;:::i;:::-;6093:77;6207:2;6246:22;;;;2905:20;;-1:-1;;;5997:297::o;7109:1051::-;;;;;;;;7349:3;7337:9;7328:7;7324:23;7320:33;7317:2;;;-1:-1;;7356:12;7317:2;2083:6;2070:20;2095:47;2136:5;2095:47;:::i;:::-;7408:77;-1:-1;7522:2;7561:22;;2905:20;;-1:-1;7630:2;7669:22;;2905:20;;-1:-1;7766:2;7751:18;;7738:32;7790:18;7779:30;;;7776:2;;;-1:-1;;7812:12;7776:2;7850:80;7922:7;7913:6;7902:9;7898:22;7850:80;:::i;:::-;7832:98;;-1:-1;7832:98;-1:-1;7995:3;7980:19;;7967:33;;-1:-1;8009:30;;;8006:2;;;-1:-1;;8042:12;8006:2;;8080:64;8136:7;8127:6;8116:9;8112:22;8080:64;:::i;:::-;7311:849;;;;-1:-1;7311:849;;-1:-1;7311:849;;;;8062:82;;-1:-1;;;7311:849::o;8167:923::-;;;;;8435:2;8423:9;8414:7;8410:23;8406:32;8403:2;;;-1:-1;;8441:12;8403:2;2259:6;2246:20;2271:58;2323:5;2271:58;:::i;:::-;8493:88;-1:-1;8646:2;8631:18;;8618:32;8670:18;8659:30;;;8656:2;;;-1:-1;;8692:12;8656:2;8778:22;;;;2783:3;2765:16;;;2761:26;2758:2;;;-1:-1;;2790:12;2758:2;8712:98;;-1:-1;8875:2;8860:18;;8847:32;;8888:30;;;8885:2;;;-1:-1;;8921:12;8885:2;;8959:115;9066:7;9057:6;9046:9;9042:22;8959:115;:::i;:::-;8397:693;;;;-1:-1;8941:133;-1:-1;;;;8397:693::o;9097:395::-;;;9227:2;9215:9;9206:7;9202:23;9198:32;9195:2;;;-1:-1;;9233:12;9195:2;-1:-1;;2553:13;;9395:2;9444:22;;;2553:13;;;;;-1:-1;9189:303::o;9499:611::-;;;;;9654:2;9642:9;9633:7;9629:23;9625:32;9622:2;;;-1:-1;;9660:12;9622:2;2420:6;2407:20;9712:62;;9811:2;9853:9;9849:22;2407:20;9819:62;;9946:2;9935:9;9931:18;9918:32;9970:18;9962:6;9959:30;9956:2;;;-1:-1;;9992:12;9956:2;10030:64;10086:7;10077:6;10066:9;10062:22;10030:64;:::i;10117:263::-;;10232:2;10220:9;10211:7;10207:23;10203:32;10200:2;;;-1:-1;;10238:12;10200:2;-1:-1;3053:13;;10194:186;-1:-1;10194:186::o;10387:647::-;;;;;10560:2;10548:9;10539:7;10535:23;10531:32;10528:2;;;-1:-1;;10566:12;10528:2;2918:6;2905:20;10618:63;;10718:2;10761:9;10757:22;2905:20;10726:63;;10854:2;10843:9;10839:18;10826:32;10878:18;10870:6;10867:30;10864:2;;;-1:-1;;10900:12;10864:2;10938:80;11010:7;11001:6;10990:9;10986:22;10938:80;:::i;13097:277::-;;48640:6;48635:3;48628:19;51893:6;51888:3;48677:4;48672:3;48668:14;51870:30;-1:-1;48677:4;51940:6;48672:3;51931:16;;51924:27;48677:4;52487:7;;52491:2;13360:6;52471:14;52467:28;48672:3;13329:39;;13322:46;;13187:187;;;;;:::o;14051:343::-;;14193:5;48154:12;48640:6;48635:3;48628:19;14286:52;14331:6;48677:4;48672:3;48668:14;48677:4;14312:5;14308:16;14286:52;:::i;:::-;52487:7;52471:14;-1:-1;;52467:28;14350:39;;;;48677:4;14350:39;;14141:253;-1:-1;;14141:253::o;28001:425::-;-1:-1;;;;;;50822:78;;13006:56;;28001:425;51893:6;51888:3;28278:1;28269:11;;51870:30;51931:16;;28278:1;51931:16;51924:27;;;51931:16;28171:255;-1:-1;;28171:255::o;28433:271::-;;14561:5;48154:12;14672:52;14717:6;14712:3;14705:4;14698:5;14694:16;14672:52;:::i;:::-;14736:16;;;;;28567:137;-1:-1;;28567:137::o;28711:542::-;;14561:5;48154:12;14672:52;14717:6;14712:3;14705:4;14698:5;14694:16;14672:52;:::i;:::-;-1:-1;;;14736:16;;16205:32;;;-1:-1;16190:1;16256:11;;28948:305;-1:-1;28948:305::o;29260:970::-;;14561:5;48154:12;14672:52;14717:6;14712:3;14705:4;14698:5;14694:16;14672:52;:::i;:::-;-1:-1;;;14736:16;;;20732:29;;;48154:12;;14672:52;48154:12;20717:1;20780:11;;14705:4;14694:16;;14672:52;:::i;:::-;-1:-1;;;20717:1;14736:16;;;;;;;20063:24;20106:11;;;29646:584;-1:-1;;;;29646:584::o;30237:970::-;;14561:5;48154:12;14672:52;14717:6;14712:3;14705:4;14698:5;14694:16;14672:52;:::i;:::-;-1:-1;;;14736:16;;;26282:29;;;48154:12;;14672:52;48154:12;26267:1;26330:11;;14705:4;14694:16;;14672:52;:::i;31214:379::-;31578:10;31402:191::o;31600:253::-;14833:36;;;31825:2;31816:12;;31716:137::o;31860:222::-;-1:-1;;;;;51287:54;;;;11559:37;;31987:2;31972:18;;31958:124::o;32334:444::-;-1:-1;;;;;51287:54;;;11559:37;;51287:54;;;;32681:2;32666:18;;11559:37;32764:2;32749:18;;14833:36;;;;32517:2;32502:18;;32488:290::o;32785:736::-;-1:-1;;;;;51287:54;;;11559:37;;50735:13;;50728:21;33193:2;33178:18;;12873:34;33274:2;33259:18;;14833:36;;;51287:54;;33357:2;33342:18;;27563:37;51298:42;33394:3;33379:19;;33372:49;;;32785:736;;33435:76;;33019:19;;33497:6;33435:76;:::i;33528:333::-;-1:-1;;;;;51287:54;;;;11559:37;;33847:2;33832:18;;14833:36;33683:2;33668:18;;33654:207::o;33868:892::-;-1:-1;;;;;51287:54;;;11559:37;;34328:2;34313:18;;14833:36;;;;34411:2;34396:18;;14833:36;;;;34494:2;34479:18;;14833:36;;;;34577:3;34562:19;;14833:36;51298:42;34646:19;;14833:36;51287:54;;;34745:3;34730:19;;11559:37;34163:3;34148:19;;34134:626::o;34767:526::-;35022:2;35036:47;;;35007:18;;;48628:19;;;34767:526;;48668:14;;;;12097:17;;;12088:27;;;;12235:21;34767:526;12262:499;12287:6;12284:1;12281:13;12262:499;;;12339:20;;;-1:-1;;12339:20;12327:33;;50145:17;;50210:14;50206:29;;;-1:-1;;50202:48;50178:73;;50168:2;;-1:-1;;50255:12;50168:2;50284:33;;2905:20;;14833:36;;50438:12;;;2905:20;26960:14;;;14833:36;27071:16;;;2905:20;27142:14;;;14833:36;26603:4;27288;27233:61;27277:16;;;50284:33;27233:61;:::i;:::-;27199:95;;26603:4;27288;27318:3;27314:14;27307:38;27360:87;26603:4;26598:3;26594:14;27428:12;27414;27360:87;:::i;:::-;12740:14;;;;12472:140;-1:-1;;;48450:14;;;;-1:-1;;12309:1;12302:9;12262:499;;;-1:-1;35089:194;;34993:300;-1:-1;;;;;;;;34993:300::o;35300:210::-;50735:13;;50728:21;12873:34;;35421:2;35406:18;;35392:118::o;35517:326::-;;35672:2;35693:17;35686:47;35747:86;35672:2;35661:9;35657:18;35819:6;35811;35747:86;:::i;35850:310::-;;35997:2;36018:17;36011:47;36072:78;35997:2;35986:9;35982:18;36136:6;36072:78;:::i;36167:416::-;36367:2;36381:47;;;15827:2;36352:18;;;48628:19;-1:-1;;;48668:14;;;15843:41;15903:12;;;36338:245::o;36590:416::-;36790:2;36804:47;;;16506:2;36775:18;;;48628:19;16542:34;48668:14;;;16522:55;-1:-1;;;16597:12;;;16590:30;16639:12;;;36761:245::o;37013:416::-;37213:2;37227:47;;;16890:2;37198:18;;;48628:19;16926:29;48668:14;;;16906:50;16975:12;;;37184:245::o;37436:416::-;37636:2;37650:47;;;17226:2;37621:18;;;48628:19;17262:28;48668:14;;;17242:49;17310:12;;;37607:245::o;37859:416::-;38059:2;38073:47;;;17561:2;38044:18;;;48628:19;-1:-1;;;48668:14;;;17577:45;17641:12;;;38030:245::o;38282:416::-;38482:2;38496:47;;;17892:2;38467:18;;;48628:19;-1:-1;;;48668:14;;;17908:43;17970:12;;;38453:245::o;38705:416::-;38905:2;38919:47;;;18221:2;38890:18;;;48628:19;-1:-1;;;48668:14;;;18237:40;18296:12;;;38876:245::o;39128:416::-;39328:2;39342:47;;;18547:2;39313:18;;;48628:19;18583:32;48668:14;;;18563:53;18635:12;;;39299:245::o;39551:416::-;39751:2;39765:47;;;18886:2;39736:18;;;48628:19;18922:34;48668:14;;;18902:55;18991:28;18977:12;;;18970:50;19039:12;;;39722:245::o;39974:416::-;40174:2;40188:47;;;19290:2;40159:18;;;48628:19;19326:31;48668:14;;;19306:52;19377:12;;;40145:245::o;40397:416::-;40597:2;40611:47;;;19628:2;40582:18;;;48628:19;19664:34;48668:14;;;19644:55;-1:-1;;;19719:12;;;19712:30;19761:12;;;40568:245::o;40820:416::-;41020:2;41034:47;;;20356:2;41005:18;;;48628:19;-1:-1;;;48668:14;;;20372:39;20430:12;;;40991:245::o;41243:416::-;41443:2;41457:47;;;21030:2;41428:18;;;48628:19;-1:-1;;;48668:14;;;21046:44;21109:12;;;41414:245::o;41666:416::-;41866:2;41880:47;;;41851:18;;;48628:19;21396:34;48668:14;;;21376:55;21450:12;;;41837:245::o;42089:416::-;42289:2;42303:47;;;21701:2;42274:18;;;48628:19;21737:34;48668:14;;;21717:55;-1:-1;;;21792:12;;;21785:38;21842:12;;;42260:245::o;42512:416::-;42712:2;42726:47;;;22093:2;42697:18;;;48628:19;22129:29;48668:14;;;22109:50;22178:12;;;42683:245::o;42935:416::-;43135:2;43149:47;;;22429:2;43120:18;;;48628:19;22465:28;48668:14;;;22445:49;22513:12;;;43106:245::o;43358:416::-;43558:2;43572:47;;;22764:2;43543:18;;;48628:19;22800:34;48668:14;;;22780:55;-1:-1;;;22855:12;;;22848:25;22892:12;;;43529:245::o;43781:416::-;43981:2;43995:47;;;43966:18;;;48628:19;23179:34;48668:14;;;23159:55;23233:12;;;43952:245::o;44204:416::-;44404:2;44418:47;;;23484:2;44389:18;;;48628:19;-1:-1;;;48668:14;;;23500:42;23561:12;;;44375:245::o;44627:416::-;44827:2;44841:47;;;23812:2;44812:18;;;48628:19;-1:-1;;;48668:14;;;23828:44;23891:12;;;44798:245::o;45050:416::-;45250:2;45264:47;;;24447:2;45235:18;;;48628:19;24483:31;48668:14;;;24463:52;24534:12;;;45221:245::o;45473:416::-;45673:2;45687:47;;;24785:2;45658:18;;;48628:19;24821:34;48668:14;;;24801:55;-1:-1;;;24876:12;;;24869:32;24920:12;;;45644:245::o;45896:416::-;46096:2;46110:47;;;46081:18;;;48628:19;25207:34;48668:14;;;25187:55;25261:12;;;46067:245::o;46319:416::-;46519:2;46533:47;;;25512:2;46504:18;;;48628:19;25548:34;48668:14;;;25528:55;-1:-1;;;25603:12;;;25596:34;25649:12;;;46490:245::o;46742:416::-;46942:2;46956:47;;;25900:2;46927:18;;;48628:19;-1:-1;;;48668:14;;;25916:45;25980:12;;;46913:245::o;47394:506::-;;;47529:11;47516:25;47580:48;;47604:8;47588:14;47584:29;47580:48;47560:18;47556:73;47546:2;;-1:-1;;47633:12;47546:2;47660:33;;47714:18;;;-1:-1;47752:18;47741:30;;47738:2;;;-1:-1;;47774:12;47738:2;47619:4;47802:13;;-1:-1;47588:14;47834:38;;;47824:49;;47821:2;;;47886:1;;47876:12;49508:501;;;49632:3;49619:17;47580:48;;49700:8;49684:14;49680:29;49676:48;49656:18;49652:73;49642:2;;-1:-1;;49729:12;49642:2;49758:33;;49715:4;49847:16;;;-1:-1;49813:19;;-1:-1;49883:18;49872:30;;49869:2;;;49915:1;;49905:12;49869:2;49962:17;49684:14;49942:38;49932:8;49928:53;49925:2;;;49994:1;;49984:12;51966:268;52031:1;52038:101;52052:6;52049:1;52046:13;52038:101;;;52119:11;;;52113:18;52100:11;;;52093:39;52074:2;52067:10;52038:101;;;52154:6;52151:1;52148:13;52145:2;;;-1:-1;;52031:1;52201:16;;52194:27;52015:219::o;52508:117::-;-1:-1;;;;;51287:54;;52567:35;;52557:2;;52616:1;;52606:12

Swarm Source

ipfs://9871538ef2d6c68d6e0a9721d86829bcb79b3906de81edbbfbae5dda88fd95b1

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

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

Validator Index Block Amount
View All Withdrawals

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

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