FTM Price: $0.40 (-0.42%)
Gas: 35 Gwei

Contract

0xeD85325119cCFc6aCB16FA931bAC6378B76e4615
 

Overview

FTM Balance

Fantom LogoFantom LogoFantom Logo0 FTM

FTM Value

$0.00

Sponsored

Transaction Hash
Method
Block
From
To
Value
Pause498128182022-10-23 5:23:45487 days 22 hrs ago1666502625IN
0xeD8532...B76e4615
0 FTM0.000048621.037162
Initialize498121762022-10-23 5:12:48487 days 22 hrs ago1666501968IN
0xeD8532...B76e4615
0 FTM0.000097791.34764057
0x60806040169790472021-09-13 2:54:16893 days 40 mins ago1631501656IN
 Create: OpenOceanExchange
0 FTM0.1606887100

Latest 25 internal transactions (View All)

Parent Txn Hash Block From To Value
761431602024-02-23 2:07:011 hr 27 mins ago1708654021
0xeD8532...B76e4615
0.3 FTM
761418492024-02-23 0:58:482 hrs 35 mins ago1708649928
0xeD8532...B76e4615
42 FTM
761417912024-02-23 0:55:472 hrs 38 mins ago1708649747
0xeD8532...B76e4615
2,932.70911 FTM
761415442024-02-23 0:42:502 hrs 51 mins ago1708648970
0xeD8532...B76e4615
2,932.80415 FTM
761390762024-02-22 22:32:145 hrs 2 mins ago1708641134
0xeD8532...B76e4615
41.1 FTM
761385262024-02-22 22:03:035 hrs 31 mins ago1708639383
0xeD8532...B76e4615
0.91674461 FTM
761370172024-02-22 21:08:526 hrs 25 mins ago1708636132
0xeD8532...B76e4615
340 FTM
761367202024-02-22 21:03:386 hrs 31 mins ago1708635818
0xeD8532...B76e4615
1.90648566 FTM
761362772024-02-22 20:55:206 hrs 39 mins ago1708635320
0xeD8532...B76e4615
1.97782011 FTM
761359672024-02-22 20:49:156 hrs 45 mins ago1708634955
0xeD8532...B76e4615
502.23441362 FTM
761338392024-02-22 20:01:457 hrs 32 mins ago1708632105
0xeD8532...B76e4615
18.89818764 FTM
761334622024-02-22 19:53:007 hrs 41 mins ago1708631580
0xeD8532...B76e4615
20 FTM
761321362024-02-22 19:22:328 hrs 12 mins ago1708629752
0xeD8532...B76e4615
1,920 FTM
761321182024-02-22 19:22:128 hrs 12 mins ago1708629732
0xeD8532...B76e4615
480 FTM
761320642024-02-22 19:21:098 hrs 13 mins ago1708629669
0xeD8532...B76e4615
5,417.15401303 FTM
761316452024-02-22 19:12:128 hrs 22 mins ago1708629132
0xeD8532...B76e4615
1,800.29547603 FTM
761313852024-02-22 19:07:058 hrs 27 mins ago1708628825
0xeD8532...B76e4615
0.001 FTM
761313272024-02-22 19:05:448 hrs 28 mins ago1708628744
0xeD8532...B76e4615
1,167.80282633 FTM
761275572024-02-22 17:45:309 hrs 49 mins ago1708623930
0xeD8532...B76e4615
80.19370281 FTM
761250642024-02-22 16:54:1110 hrs 40 mins ago1708620851
0xeD8532...B76e4615
2,450 FTM
761240982024-02-22 16:32:5311 hrs 1 min ago1708619573
0xeD8532...B76e4615
5 FTM
761229042024-02-22 16:07:1311 hrs 27 mins ago1708618033
0xeD8532...B76e4615
12.4 FTM
761189092024-02-22 14:51:0012 hrs 43 mins ago1708613460
0xeD8532...B76e4615
2,210 FTM
761153032024-02-22 13:44:1413 hrs 50 mins ago1708609454
0xeD8532...B76e4615
85 FTM
761152472024-02-22 13:43:2113 hrs 51 mins ago1708609401
0xeD8532...B76e4615
85 FTM
View All Internal Transactions
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 ftmscan.com on 2021-09-18
*/

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

// SPDX-License-Identifier: MIT

pragma solidity >=0.6.2 <0.8.0;
pragma experimental ABIEncoderV2;

/**
 * @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/IERC20Permit.sol

pragma solidity ^0.6.12;

interface IERC20Permit {
    function permit(
        address owner,
        address spender,
        uint256 amount,
        uint256 deadline,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) external;
}

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

pragma solidity ^0.6.12;

contract OpenOceanExchange is OwnableUpgradeable, PausableUpgradeable {
    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":[],"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"}]

608060405234801561001057600080fd5b50611c1b806100206000396000f3fe60806040526004361061007b5760003560e01c80638456cb591161004e5780638456cb59146100f75780638da5cb5b1461010c57806390411a321461012e578063f2fde38b1461014e5761007b565b80635c975abb14610080578063715018a6146100ab57806378e3214f146100c25780638129fc1c146100e2575b600080fd5b34801561008c57600080fd5b5061009561016e565b6040516100a29190611779565b60405180910390f35b3480156100b757600080fd5b506100c0610177565b005b3480156100ce57600080fd5b506100c06100dd36600461142f565b610209565b3480156100ee57600080fd5b506100c0610260565b34801561010357600080fd5b506100c06102f3565b34801561011857600080fd5b5061012161033c565b6040516100a2919061161a565b61014161013c36600461145a565b61034b565b6040516100a29190611611565b34801561015a57600080fd5b506100c06101693660046113f3565b61062e565b60655460ff1690565b61017f6106ef565b6001600160a01b031661019061033c565b6001600160a01b0316146101bf5760405162461bcd60e51b81526004016101b690611a43565b60405180910390fd5b6033546040516000916001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3603380546001600160a01b0319169055565b6102116106ef565b6001600160a01b031661022261033c565b6001600160a01b0316146102485760405162461bcd60e51b81526004016101b690611a43565b61025c6001600160a01b03831633836106f3565b5050565b600054610100900460ff1680610279575061027961075c565b80610287575060005460ff16155b6102a35760405162461bcd60e51b81526004016101b690611946565b600054610100900460ff161580156102ce576000805460ff1961ff0019909116610100171660011790555b6102d661076d565b6102de6107eb565b80156102f0576000805461ff00191690555b50565b6102fb6106ef565b6001600160a01b031661030c61033c565b6001600160a01b0316146103325760405162461bcd60e51b81526004016101b690611a43565b61033a610869565b565b6033546001600160a01b031690565b600061035561016e565b156103725760405162461bcd60e51b81526004016101b69061191c565b60008460a00135116103965760405162461bcd60e51b81526004016101b6906119cb565b816103b35760405162461bcd60e51b81526004016101b690611b28565b60e084013560006103c760208701876113f3565b905060006103db60408801602089016113f3565b90506103ef826001600160a01b03166108db565b6103fa576000610400565b86608001355b341461041e5760405162461bcd60e51b81526004016101b690611874565b600283161561048257610439826001600160a01b03166108db565b156104565760405162461bcd60e51b81526004016101b6906117cb565b6104828261046a60608a0160408b016113f3565b60808a013561047d6101208c018c611b58565b61092a565b60008061049560808a0160608b016113f3565b6001600160a01b0316146104b8576104b36080890160608a016113f3565b6104ba565b335b90506000600185166104cd5760006104e0565b6104e06001600160a01b03851633610a54565b905060006104f76001600160a01b03851684610a54565b90508a6001600160a01b031663a8920d2b348b8b6040518463ffffffff1660e01b81526004016105289291906116a8565b6000604051808303818588803b15801561054157600080fd5b505af1158015610555573d6000803e3d6000fd5b5050505060808b0135905061057d826105776001600160a01b03881687610a54565b90610af8565b975060018716156105ed576105ac61059e6001600160a01b03881633610a54565b6105778560808f0135610b20565b90506105bc60a08c013582610b45565b6105ca8960808e0135610b45565b10156105e85760405162461bcd60e51b81526004016101b690611994565b610611565b8a60a001358810156106115760405162461bcd60e51b81526004016101b690611994565b61061f8b878787858d610b7f565b50505050505050949350505050565b6106366106ef565b6001600160a01b031661064761033c565b6001600160a01b03161461066d5760405162461bcd60e51b81526004016101b690611a43565b6001600160a01b0381166106935760405162461bcd60e51b81526004016101b6906117f7565b6033546040516001600160a01b038084169216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3603380546001600160a01b0319166001600160a01b0392909216919091179055565b3390565b801561075757610702836108db565b15610743576040516001600160a01b0383169082156108fc029083906000818181858888f1935050505015801561073d573d6000803e3d6000fd5b50610757565b6107576001600160a01b0384168383610c07565b505050565b600061076730610c5d565b15905090565b600054610100900460ff1680610786575061078661075c565b80610794575060005460ff16155b6107b05760405162461bcd60e51b81526004016101b690611946565b600054610100900460ff161580156107db576000805460ff1961ff0019909116610100171660011790555b6107e3610c63565b6102de610ce4565b600054610100900460ff1680610804575061080461075c565b80610812575060005460ff16155b61082e5760405162461bcd60e51b81526004016101b690611946565b600054610100900460ff16158015610859576000805460ff1961ff0019909116610100171660011790555b610861610c63565b6102de610dbe565b61087161016e565b1561088e5760405162461bcd60e51b81526004016101b69061191c565b6065805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586108c46106ef565b6040516108d1919061161a565b60405180910390a1565b60006001600160a01b03821673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee148061091257506001600160a01b038216611010145b8061092457506001600160a01b038216155b92915050565b60e0811415610a385760006060866001600160a01b031663d505accf60e01b858560405160240161095c929190611784565b60408051601f198184030181529181526020820180516001600160e01b03166001600160e01b031990941693909317909252905161099a9190611544565b6000604051808303816000865af19150503d80600081146109d7576040519150601f19603f3d011682016040523d82523d6000602084013e6109dc565b606091505b509150915081610a3557610a1c816040518060400160405280601481526020017302832b936b4ba1031b0b636103330b4b632b21d160651b815250610e4a565b60405162461bcd60e51b81526004016101b69190611798565b50505b610a4d6001600160a01b038616338686611058565b5050505050565b6000610a5f836108db565b15610a7557506001600160a01b03811631610924565b6040516370a0823160e01b81526001600160a01b038416906370a0823190610aa190859060040161161a565b60206040518083038186803b158015610ab957600080fd5b505afa158015610acd573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610af19190611502565b9392505050565b600082821115610b1a5760405162461bcd60e51b81526004016101b69061189f565b50900390565b600082820183811015610af15760405162461bcd60e51b81526004016101b69061183d565b600082610b5457506000610924565b82820282848281610b6157fe5b0414610af15760405162461bcd60e51b81526004016101b690611a02565b836001600160a01b0316856001600160a01b0316336001600160a01b03167f76af224a143865a50b41496e1a73622698692c565c1214bc862f18e22d829c5e868a6080013587878d60a001358e60c001358f610100016020810190610be491906113f3565b604051610bf7979695949392919061166b565b60405180910390a4505050505050565b6107578363a9059cbb60e01b8484604051602401610c26929190611652565b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b03199093169290921790915261107f565b3b151590565b600054610100900460ff1680610c7c5750610c7c61075c565b80610c8a575060005460ff16155b610ca65760405162461bcd60e51b81526004016101b690611946565b600054610100900460ff161580156102de576000805460ff1961ff00199091166101001716600117905580156102f0576000805461ff001916905550565b600054610100900460ff1680610cfd5750610cfd61075c565b80610d0b575060005460ff16155b610d275760405162461bcd60e51b81526004016101b690611946565b600054610100900460ff16158015610d52576000805460ff1961ff0019909116610100171660011790555b6000610d5c6106ef565b603380546001600160a01b0319166001600160a01b038316908117909155604051919250906000907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a35080156102f0576000805461ff001916905550565b600054610100900460ff1680610dd75750610dd761075c565b80610de5575060005460ff16155b610e015760405162461bcd60e51b81526004016101b690611946565b600054610100900460ff16158015610e2c576000805460ff1961ff0019909116610100171660011790555b6065805460ff1916905580156102f0576000805461ff001916905550565b60606044835110158015610e7d575082600081518110610e6657fe5b6020910101516001600160f81b031916600160fb1b145b8015610ea8575082600181518110610e9157fe5b6020910101516001600160f81b03191660c360f81b145b8015610ed3575082600281518110610ebc57fe5b6020910101516001600160f81b031916607960f81b145b8015610efe575082600381518110610ee757fe5b6020910101516001600160f81b031916600560fd1b145b15610f5a576060604484019050805160440184511015610f305760405162461bcd60e51b81526004016101b690611a78565b8281604051602001610f439291906115dc565b604051602081830303815290604052915050610924565b82516024148015610f8a575082600081518110610f7357fe5b6020910101516001600160f81b031916602760f91b145b8015610fb5575082600181518110610f9e57fe5b6020910101516001600160f81b031916600960fb1b145b8015610fe0575082600281518110610fc957fe5b6020910101516001600160f81b031916607b60f81b145b801561100b575082600381518110610ff457fe5b6020910101516001600160f81b031916607160f81b145b156110305760248301518261101f8261110e565b604051602001610f4392919061158d565b816040516020016110419190611560565b604051602081830303815290604052905092915050565b611079846323b872dd60e01b858585604051602401610c269392919061162e565b50505050565b60606110d4826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166111389092919063ffffffff16565b80519091501561075757808060200190518101906110f2919061140f565b6107575760405162461bcd60e51b81526004016101b690611ade565b6060610924826040516020016111249190611611565b60405160208183030381529060405261114f565b606061114784846000856112f9565b949350505050565b6060806040518060400160405280601081526020016f181899199a1a9b1b9c1cb0b131b232b360811b81525090506060835160020260020167ffffffffffffffff8111801561119d57600080fd5b506040519080825280601f01601f1916602001820160405280156111c8576020820181803683370190505b509050600360fc1b816000815181106111dd57fe5b60200101906001600160f81b031916908160001a905350600f60fb1b8160018151811061120657fe5b60200101906001600160f81b031916908160001a90535060005b84518110156112f15782600486838151811061123857fe5b016020015182516001600160f81b031990911690911c60f81c90811061125a57fe5b602001015160f81c60f81b82826002026002018151811061127757fe5b60200101906001600160f81b031916908160001a9053508285828151811061129b57fe5b602091010151815160f89190911c600f169081106112b557fe5b602001015160f81c60f81b8282600202600301815181106112d257fe5b60200101906001600160f81b031916908160001a905350600101611220565b509392505050565b60608247101561131b5760405162461bcd60e51b81526004016101b6906118d6565b61132485610c5d565b6113405760405162461bcd60e51b81526004016101b690611aa7565b60006060866001600160a01b0316858760405161135d9190611544565b60006040518083038185875af1925050503d806000811461139a576040519150601f19603f3d011682016040523d82523d6000602084013e61139f565b606091505b50915091506113af8282866113ba565b979650505050505050565b606083156113c9575081610af1565b8251156113d95782518084602001fd5b8160405162461bcd60e51b81526004016101b69190611798565b600060208284031215611404578081fd5b8135610af181611bd0565b600060208284031215611420578081fd5b81518015158114610af1578182fd5b60008060408385031215611441578081fd5b823561144c81611bd0565b946020939093013593505050565b6000806000806060858703121561146f578182fd5b843561147a81611bd0565b9350602085013567ffffffffffffffff80821115611496578384fd5b9086019061014082890312156114aa578384fd5b909350604086013590808211156114bf578384fd5b818701915087601f8301126114d2578384fd5b8135818111156114e0578485fd5b88602080830285010111156114f3578485fd5b95989497505060200194505050565b600060208284031215611513578081fd5b5051919050565b60008284528282602086013780602084860101526020601f19601f85011685010190509392505050565b60008251611556818460208701611ba4565b9190910192915050565b60008251611572818460208701611ba4565b68556e6b6e6f776e282960b81b920191825250600901919050565b6000835161159f818460208801611ba4565b650a0c2dcd2c6560d31b90830190815283516115c2816006840160208801611ba4565b602960f81b60069290910191820152600701949350505050565b600083516115ee818460208801611ba4565b6508ae4e4dee4560d31b90830190815283516115c2816006840160208801611ba4565b90815260200190565b6001600160a01b0391909116815260200190565b6001600160a01b039384168152919092166020820152604081019190915260600190565b6001600160a01b03929092168252602082015260400190565b6001600160a01b039788168152602081019690965260408601949094526060850192909252608084015260a083015290911660c082015260e00190565b602080825281810183905260009060408084018583028501820187855b8881101561176b57878303603f190184528135368b9003607e190181126116ea578788fd5b8a018035845286810135878501528581013586850152608060608083013536849003601e1901811261171a578a8bfd5b8301803567ffffffffffffffff811115611732578b8cfd5b803603851315611740578b8cfd5b8383890152611754848901828d850161151a565b988b019897505050938801935050506001016116c5565b509098975050505050505050565b901515815260200190565b60006020825261114760208301848661151a565b60006020825282518060208401526117b7816040850160208701611ba4565b601f01601f19169190910160400192915050565b602080825260129082015271086d8c2d2da40e8ded6cadc40d2e6408aa8960731b604082015260600190565b60208082526026908201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160408201526564647265737360d01b606082015260800190565b6020808252601b908201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604082015260600190565b602080825260119082015270496e76616c6964206d73672e76616c756560781b604082015260600190565b6020808252601e908201527f536166654d6174683a207375627472616374696f6e206f766572666c6f770000604082015260600190565b60208082526026908201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6040820152651c8818d85b1b60d21b606082015260800190565b60208082526010908201526f14185d5cd8589b194e881c185d5cd95960821b604082015260600190565b6020808252602e908201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160408201526d191e481a5b9a5d1a585b1a5e995960921b606082015260800190565b6020808252601b908201527f52657475726e20616d6f756e74206973206e6f7420656e6f7567680000000000604082015260600190565b6020808252601a908201527f4d696e2072657475726e2073686f756c64206e6f742062652030000000000000604082015260600190565b60208082526021908201527f536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f6040820152607760f81b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526015908201527424b73b30b634b2103932bb32b93a103932b0b9b7b760591b604082015260600190565b6020808252601d908201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604082015260600190565b6020808252602a908201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6040820152691bdd081cdd58d8d9595960b21b606082015260800190565b60208082526016908201527510d85b1b0819185d18481cda1bdd5b1908195e1a5cdd60521b604082015260600190565b6000808335601e19843603018112611b6e578283fd5b83018035915067ffffffffffffffff821115611b88578283fd5b602001915036819003821315611b9d57600080fd5b9250929050565b60005b83811015611bbf578181015183820152602001611ba7565b838111156110795750506000910152565b6001600160a01b03811681146102f057600080fdfea264697066735822122062db60ae4d08f8315c60a20f1a9c105bd4a5e3a2fab9aef76b0b971baee15cee64736f6c634300060c0033

Deployed Bytecode

0x60806040526004361061007b5760003560e01c80638456cb591161004e5780638456cb59146100f75780638da5cb5b1461010c57806390411a321461012e578063f2fde38b1461014e5761007b565b80635c975abb14610080578063715018a6146100ab57806378e3214f146100c25780638129fc1c146100e2575b600080fd5b34801561008c57600080fd5b5061009561016e565b6040516100a29190611779565b60405180910390f35b3480156100b757600080fd5b506100c0610177565b005b3480156100ce57600080fd5b506100c06100dd36600461142f565b610209565b3480156100ee57600080fd5b506100c0610260565b34801561010357600080fd5b506100c06102f3565b34801561011857600080fd5b5061012161033c565b6040516100a2919061161a565b61014161013c36600461145a565b61034b565b6040516100a29190611611565b34801561015a57600080fd5b506100c06101693660046113f3565b61062e565b60655460ff1690565b61017f6106ef565b6001600160a01b031661019061033c565b6001600160a01b0316146101bf5760405162461bcd60e51b81526004016101b690611a43565b60405180910390fd5b6033546040516000916001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3603380546001600160a01b0319169055565b6102116106ef565b6001600160a01b031661022261033c565b6001600160a01b0316146102485760405162461bcd60e51b81526004016101b690611a43565b61025c6001600160a01b03831633836106f3565b5050565b600054610100900460ff1680610279575061027961075c565b80610287575060005460ff16155b6102a35760405162461bcd60e51b81526004016101b690611946565b600054610100900460ff161580156102ce576000805460ff1961ff0019909116610100171660011790555b6102d661076d565b6102de6107eb565b80156102f0576000805461ff00191690555b50565b6102fb6106ef565b6001600160a01b031661030c61033c565b6001600160a01b0316146103325760405162461bcd60e51b81526004016101b690611a43565b61033a610869565b565b6033546001600160a01b031690565b600061035561016e565b156103725760405162461bcd60e51b81526004016101b69061191c565b60008460a00135116103965760405162461bcd60e51b81526004016101b6906119cb565b816103b35760405162461bcd60e51b81526004016101b690611b28565b60e084013560006103c760208701876113f3565b905060006103db60408801602089016113f3565b90506103ef826001600160a01b03166108db565b6103fa576000610400565b86608001355b341461041e5760405162461bcd60e51b81526004016101b690611874565b600283161561048257610439826001600160a01b03166108db565b156104565760405162461bcd60e51b81526004016101b6906117cb565b6104828261046a60608a0160408b016113f3565b60808a013561047d6101208c018c611b58565b61092a565b60008061049560808a0160608b016113f3565b6001600160a01b0316146104b8576104b36080890160608a016113f3565b6104ba565b335b90506000600185166104cd5760006104e0565b6104e06001600160a01b03851633610a54565b905060006104f76001600160a01b03851684610a54565b90508a6001600160a01b031663a8920d2b348b8b6040518463ffffffff1660e01b81526004016105289291906116a8565b6000604051808303818588803b15801561054157600080fd5b505af1158015610555573d6000803e3d6000fd5b5050505060808b0135905061057d826105776001600160a01b03881687610a54565b90610af8565b975060018716156105ed576105ac61059e6001600160a01b03881633610a54565b6105778560808f0135610b20565b90506105bc60a08c013582610b45565b6105ca8960808e0135610b45565b10156105e85760405162461bcd60e51b81526004016101b690611994565b610611565b8a60a001358810156106115760405162461bcd60e51b81526004016101b690611994565b61061f8b878787858d610b7f565b50505050505050949350505050565b6106366106ef565b6001600160a01b031661064761033c565b6001600160a01b03161461066d5760405162461bcd60e51b81526004016101b690611a43565b6001600160a01b0381166106935760405162461bcd60e51b81526004016101b6906117f7565b6033546040516001600160a01b038084169216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3603380546001600160a01b0319166001600160a01b0392909216919091179055565b3390565b801561075757610702836108db565b15610743576040516001600160a01b0383169082156108fc029083906000818181858888f1935050505015801561073d573d6000803e3d6000fd5b50610757565b6107576001600160a01b0384168383610c07565b505050565b600061076730610c5d565b15905090565b600054610100900460ff1680610786575061078661075c565b80610794575060005460ff16155b6107b05760405162461bcd60e51b81526004016101b690611946565b600054610100900460ff161580156107db576000805460ff1961ff0019909116610100171660011790555b6107e3610c63565b6102de610ce4565b600054610100900460ff1680610804575061080461075c565b80610812575060005460ff16155b61082e5760405162461bcd60e51b81526004016101b690611946565b600054610100900460ff16158015610859576000805460ff1961ff0019909116610100171660011790555b610861610c63565b6102de610dbe565b61087161016e565b1561088e5760405162461bcd60e51b81526004016101b69061191c565b6065805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586108c46106ef565b6040516108d1919061161a565b60405180910390a1565b60006001600160a01b03821673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee148061091257506001600160a01b038216611010145b8061092457506001600160a01b038216155b92915050565b60e0811415610a385760006060866001600160a01b031663d505accf60e01b858560405160240161095c929190611784565b60408051601f198184030181529181526020820180516001600160e01b03166001600160e01b031990941693909317909252905161099a9190611544565b6000604051808303816000865af19150503d80600081146109d7576040519150601f19603f3d011682016040523d82523d6000602084013e6109dc565b606091505b509150915081610a3557610a1c816040518060400160405280601481526020017302832b936b4ba1031b0b636103330b4b632b21d160651b815250610e4a565b60405162461bcd60e51b81526004016101b69190611798565b50505b610a4d6001600160a01b038616338686611058565b5050505050565b6000610a5f836108db565b15610a7557506001600160a01b03811631610924565b6040516370a0823160e01b81526001600160a01b038416906370a0823190610aa190859060040161161a565b60206040518083038186803b158015610ab957600080fd5b505afa158015610acd573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610af19190611502565b9392505050565b600082821115610b1a5760405162461bcd60e51b81526004016101b69061189f565b50900390565b600082820183811015610af15760405162461bcd60e51b81526004016101b69061183d565b600082610b5457506000610924565b82820282848281610b6157fe5b0414610af15760405162461bcd60e51b81526004016101b690611a02565b836001600160a01b0316856001600160a01b0316336001600160a01b03167f76af224a143865a50b41496e1a73622698692c565c1214bc862f18e22d829c5e868a6080013587878d60a001358e60c001358f610100016020810190610be491906113f3565b604051610bf7979695949392919061166b565b60405180910390a4505050505050565b6107578363a9059cbb60e01b8484604051602401610c26929190611652565b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b03199093169290921790915261107f565b3b151590565b600054610100900460ff1680610c7c5750610c7c61075c565b80610c8a575060005460ff16155b610ca65760405162461bcd60e51b81526004016101b690611946565b600054610100900460ff161580156102de576000805460ff1961ff00199091166101001716600117905580156102f0576000805461ff001916905550565b600054610100900460ff1680610cfd5750610cfd61075c565b80610d0b575060005460ff16155b610d275760405162461bcd60e51b81526004016101b690611946565b600054610100900460ff16158015610d52576000805460ff1961ff0019909116610100171660011790555b6000610d5c6106ef565b603380546001600160a01b0319166001600160a01b038316908117909155604051919250906000907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a35080156102f0576000805461ff001916905550565b600054610100900460ff1680610dd75750610dd761075c565b80610de5575060005460ff16155b610e015760405162461bcd60e51b81526004016101b690611946565b600054610100900460ff16158015610e2c576000805460ff1961ff0019909116610100171660011790555b6065805460ff1916905580156102f0576000805461ff001916905550565b60606044835110158015610e7d575082600081518110610e6657fe5b6020910101516001600160f81b031916600160fb1b145b8015610ea8575082600181518110610e9157fe5b6020910101516001600160f81b03191660c360f81b145b8015610ed3575082600281518110610ebc57fe5b6020910101516001600160f81b031916607960f81b145b8015610efe575082600381518110610ee757fe5b6020910101516001600160f81b031916600560fd1b145b15610f5a576060604484019050805160440184511015610f305760405162461bcd60e51b81526004016101b690611a78565b8281604051602001610f439291906115dc565b604051602081830303815290604052915050610924565b82516024148015610f8a575082600081518110610f7357fe5b6020910101516001600160f81b031916602760f91b145b8015610fb5575082600181518110610f9e57fe5b6020910101516001600160f81b031916600960fb1b145b8015610fe0575082600281518110610fc957fe5b6020910101516001600160f81b031916607b60f81b145b801561100b575082600381518110610ff457fe5b6020910101516001600160f81b031916607160f81b145b156110305760248301518261101f8261110e565b604051602001610f4392919061158d565b816040516020016110419190611560565b604051602081830303815290604052905092915050565b611079846323b872dd60e01b858585604051602401610c269392919061162e565b50505050565b60606110d4826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166111389092919063ffffffff16565b80519091501561075757808060200190518101906110f2919061140f565b6107575760405162461bcd60e51b81526004016101b690611ade565b6060610924826040516020016111249190611611565b60405160208183030381529060405261114f565b606061114784846000856112f9565b949350505050565b6060806040518060400160405280601081526020016f181899199a1a9b1b9c1cb0b131b232b360811b81525090506060835160020260020167ffffffffffffffff8111801561119d57600080fd5b506040519080825280601f01601f1916602001820160405280156111c8576020820181803683370190505b509050600360fc1b816000815181106111dd57fe5b60200101906001600160f81b031916908160001a905350600f60fb1b8160018151811061120657fe5b60200101906001600160f81b031916908160001a90535060005b84518110156112f15782600486838151811061123857fe5b016020015182516001600160f81b031990911690911c60f81c90811061125a57fe5b602001015160f81c60f81b82826002026002018151811061127757fe5b60200101906001600160f81b031916908160001a9053508285828151811061129b57fe5b602091010151815160f89190911c600f169081106112b557fe5b602001015160f81c60f81b8282600202600301815181106112d257fe5b60200101906001600160f81b031916908160001a905350600101611220565b509392505050565b60608247101561131b5760405162461bcd60e51b81526004016101b6906118d6565b61132485610c5d565b6113405760405162461bcd60e51b81526004016101b690611aa7565b60006060866001600160a01b0316858760405161135d9190611544565b60006040518083038185875af1925050503d806000811461139a576040519150601f19603f3d011682016040523d82523d6000602084013e61139f565b606091505b50915091506113af8282866113ba565b979650505050505050565b606083156113c9575081610af1565b8251156113d95782518084602001fd5b8160405162461bcd60e51b81526004016101b69190611798565b600060208284031215611404578081fd5b8135610af181611bd0565b600060208284031215611420578081fd5b81518015158114610af1578182fd5b60008060408385031215611441578081fd5b823561144c81611bd0565b946020939093013593505050565b6000806000806060858703121561146f578182fd5b843561147a81611bd0565b9350602085013567ffffffffffffffff80821115611496578384fd5b9086019061014082890312156114aa578384fd5b909350604086013590808211156114bf578384fd5b818701915087601f8301126114d2578384fd5b8135818111156114e0578485fd5b88602080830285010111156114f3578485fd5b95989497505060200194505050565b600060208284031215611513578081fd5b5051919050565b60008284528282602086013780602084860101526020601f19601f85011685010190509392505050565b60008251611556818460208701611ba4565b9190910192915050565b60008251611572818460208701611ba4565b68556e6b6e6f776e282960b81b920191825250600901919050565b6000835161159f818460208801611ba4565b650a0c2dcd2c6560d31b90830190815283516115c2816006840160208801611ba4565b602960f81b60069290910191820152600701949350505050565b600083516115ee818460208801611ba4565b6508ae4e4dee4560d31b90830190815283516115c2816006840160208801611ba4565b90815260200190565b6001600160a01b0391909116815260200190565b6001600160a01b039384168152919092166020820152604081019190915260600190565b6001600160a01b03929092168252602082015260400190565b6001600160a01b039788168152602081019690965260408601949094526060850192909252608084015260a083015290911660c082015260e00190565b602080825281810183905260009060408084018583028501820187855b8881101561176b57878303603f190184528135368b9003607e190181126116ea578788fd5b8a018035845286810135878501528581013586850152608060608083013536849003601e1901811261171a578a8bfd5b8301803567ffffffffffffffff811115611732578b8cfd5b803603851315611740578b8cfd5b8383890152611754848901828d850161151a565b988b019897505050938801935050506001016116c5565b509098975050505050505050565b901515815260200190565b60006020825261114760208301848661151a565b60006020825282518060208401526117b7816040850160208701611ba4565b601f01601f19169190910160400192915050565b602080825260129082015271086d8c2d2da40e8ded6cadc40d2e6408aa8960731b604082015260600190565b60208082526026908201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160408201526564647265737360d01b606082015260800190565b6020808252601b908201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604082015260600190565b602080825260119082015270496e76616c6964206d73672e76616c756560781b604082015260600190565b6020808252601e908201527f536166654d6174683a207375627472616374696f6e206f766572666c6f770000604082015260600190565b60208082526026908201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6040820152651c8818d85b1b60d21b606082015260800190565b60208082526010908201526f14185d5cd8589b194e881c185d5cd95960821b604082015260600190565b6020808252602e908201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160408201526d191e481a5b9a5d1a585b1a5e995960921b606082015260800190565b6020808252601b908201527f52657475726e20616d6f756e74206973206e6f7420656e6f7567680000000000604082015260600190565b6020808252601a908201527f4d696e2072657475726e2073686f756c64206e6f742062652030000000000000604082015260600190565b60208082526021908201527f536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f6040820152607760f81b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526015908201527424b73b30b634b2103932bb32b93a103932b0b9b7b760591b604082015260600190565b6020808252601d908201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604082015260600190565b6020808252602a908201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6040820152691bdd081cdd58d8d9595960b21b606082015260800190565b60208082526016908201527510d85b1b0819185d18481cda1bdd5b1908195e1a5cdd60521b604082015260600190565b6000808335601e19843603018112611b6e578283fd5b83018035915067ffffffffffffffff821115611b88578283fd5b602001915036819003821315611b9d57600080fd5b9250929050565b60005b83811015611bbf578181015183820152602001611ba7565b838111156110795750506000910152565b6001600160a01b03811681146102f057600080fdfea264697066735822122062db60ae4d08f8315c60a20f1a9c105bd4a5e3a2fab9aef76b0b971baee15cee64736f6c634300060c0033

Deployed Bytecode Sourcemap

43648:4316:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;37185:86;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;12680:148;;;;;;;;;;;;;:::i;:::-;;47758:132;;;;;;;;;;-1:-1:-1;47758:132:0;;;;;:::i;:::-;;:::i;44598:143::-;;;;;;;;;;;;;:::i;47898:63::-;;;;;;;;;;;;;:::i;12029:87::-;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;44749:1739::-;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;12983:244::-;;;;;;;;;;-1:-1:-1;12983:244:0;;;;;:::i;:::-;;:::i;37185:86::-;37256:7;;;;37185:86;:::o;12680:148::-;12260:12;:10;:12::i;:::-;-1:-1:-1;;;;;12249:23:0;:7;:5;:7::i;:::-;-1:-1:-1;;;;;12249:23:0;;12241:68;;;;-1:-1:-1;;;12241:68:0;;;;;;;:::i;:::-;;;;;;;;;12771:6:::1;::::0;12750:40:::1;::::0;12787:1:::1;::::0;-1:-1:-1;;;;;12771:6:0::1;::::0;12750:40:::1;::::0;12787:1;;12750:40:::1;12801:6;:19:::0;;-1:-1:-1;;;;;;12801:19:0::1;::::0;;12680:148::o;47758:132::-;12260:12;:10;:12::i;:::-;-1:-1:-1;;;;;12249:23:0;:7;:5;:7::i;:::-;-1:-1:-1;;;;;12249:23:0;;12241:68;;;;-1:-1:-1;;;12241:68:0;;;;;;;:::i;:::-;47839:43:::1;-1:-1:-1::0;;;;;47839:23:0;::::1;47863:10;47875:6:::0;47839:23:::1;:43::i;:::-;47758:132:::0;;:::o;44598:143::-;8866:13;;;;;;;;:33;;;8883:16;:14;:16::i;:::-;8866:50;;;-1:-1:-1;8904:12:0;;;;8903:13;8866:50;8858:109;;;;-1:-1:-1;;;8858:109:0;;;;;;;:::i;:::-;8980:19;9003:13;;;;;;9002:14;9027:101;;;;9062:13;:20;;-1:-1:-1;;;;9062:20:0;;;;;9097:19;9078:4;9097:19;;;9027:101;44650:35:::1;:33;:35::i;:::-;44696:37;:35;:37::i;:::-;9158:14:::0;9154:68;;;9205:5;9189:21;;-1:-1:-1;;9189:21:0;;;9154:68;44598:143;:::o;47898:63::-;12260:12;:10;:12::i;:::-;-1:-1:-1;;;;;12249:23:0;:7;:5;:7::i;:::-;-1:-1:-1;;;;;12249:23:0;;12241:68;;;;-1:-1:-1;;;12241:68:0;;;;;;;:::i;:::-;47945:8:::1;:6;:8::i;:::-;47898:63::o:0;12029:87::-;12102:6;;-1:-1:-1;;;;;12102:6:0;12029:87;:::o;44749:1739::-;44944:20;37511:8;:6;:8::i;:::-;37510:9;37502:38;;;;-1:-1:-1;;;37502:38:0;;;;;;;:::i;:::-;45008:1:::1;44985:4;:20;;;:24;44977:63;;;;-1:-1:-1::0;;;44977:63:0::1;;;;;;;:::i;:::-;45059:16:::0;45051:51:::1;;;;-1:-1:-1::0;;;45051:51:0::1;;;;;;;:::i;:::-;45131:10;::::0;::::1;;45115:13;45170;;::::0;::::1;45131:4:::0;45170:13:::1;:::i;:::-;45152:31:::0;-1:-1:-1;45194:15:0::1;45212:13;::::0;;;::::1;::::0;::::1;;:::i;:::-;45194:31;;45260:16;:8;-1:-1:-1::0;;;;;45260:14:0::1;;:16::i;:::-;:34;;45293:1;45260:34;;;45279:4;:11;;;45260:34;45246:9;:49;45238:79;;;;-1:-1:-1::0;;;45238:79:0::1;;;;;;;:::i;:::-;43924:4;45334:21:::0;::::1;:26:::0;45330:182:::1;;45386:16;:8;-1:-1:-1::0;;;;;45386:14:0::1;;:16::i;:::-;45385:17;45377:48;;;;-1:-1:-1::0;;;45377:48:0::1;;;;;;;:::i;:::-;45440:60;45447:8:::0;45457:16:::1;::::0;;;::::1;::::0;::::1;;:::i;:::-;45475:11;::::0;::::1;;45488;;::::0;::::1;45475:4:::0;45488:11:::1;:::i;:::-;45440:6;:60::i;:::-;45524:19;::::0;45547:16:::1;::::0;;;::::1;::::0;::::1;;:::i;:::-;-1:-1:-1::0;;;;;45547:30:0::1;;45546:64;;45594:16;::::0;;;::::1;::::0;::::1;;:::i;:::-;45546:64;;;45581:10;45546:64;45524:86:::0;-1:-1:-1;45621:25:0::1;43872:4;45650:21:::0;::::1;45649:74;;45722:1;45649:74;;;45680:39;-1:-1:-1::0;;;;;45680:27:0;::::1;45708:10;45680:27;:39::i;:::-;45621:102:::0;-1:-1:-1;45734:25:0::1;45762:40;-1:-1:-1::0;;;;;45762:27:0;::::1;45790:11:::0;45762:27:::1;:40::i;:::-;45734:68;;45815:6;-1:-1:-1::0;;;;;45815:16:0::1;;45839:9;45850:5;;45815:41;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;-1:-1:-1::0;;;;45891:11:0::1;::::0;::::1;;::::0;-1:-1:-1;45928:63:0::1;45973:17:::0;45928:40:::1;-1:-1:-1::0;;;;;45928:27:0;::::1;45956:11:::0;45928:27:::1;:40::i;:::-;:44:::0;::::1;:63::i;:::-;45913:78:::0;-1:-1:-1;43872:4:0::1;46008:21:::0;::::1;:26:::0;46004:386:::1;;46065:79;46104:39;-1:-1:-1::0;;;;;46104:27:0;::::1;46132:10;46104:27;:39::i;:::-;46065:34;:17:::0;46087:11:::1;::::0;::::1;;46065:21;:34::i;:79::-;46051:93:::0;-1:-1:-1;46200:37:0::1;:20;::::0;::::1;;46051:93:::0;46200:24:::1;:37::i;:::-;46167:29;:12:::0;46184:11:::1;::::0;::::1;;46167:16;:29::i;:::-;:70;;46159:110;;;;-1:-1:-1::0;;;46159:110:0::1;;;;;;;:::i;:::-;46004:386;;;46326:4;:20;;;46310:12;:36;;46302:76;;;;-1:-1:-1::0;;;46302:76:0::1;;;;;;;:::i;:::-;46402:78;46415:4;46421:8;46431;46441:11;46454;46467:12;46402;:78::i;:::-;37551:1;;;;;;;44749:1739:::0;;;;;;:::o;12983:244::-;12260:12;:10;:12::i;:::-;-1:-1:-1;;;;;12249:23:0;:7;:5;:7::i;:::-;-1:-1:-1;;;;;12249:23:0;;12241:68;;;;-1:-1:-1;;;12241:68:0;;;;;;;:::i;:::-;-1:-1:-1;;;;;13072:22:0;::::1;13064:73;;;;-1:-1:-1::0;;;13064:73:0::1;;;;;;;:::i;:::-;13174:6;::::0;13153:38:::1;::::0;-1:-1:-1;;;;;13153:38:0;;::::1;::::0;13174:6:::1;::::0;13153:38:::1;::::0;13174:6:::1;::::0;13153:38:::1;13202:6;:17:::0;;-1:-1:-1;;;;;;13202:17:0::1;-1:-1:-1::0;;;;;13202:17:0;;;::::1;::::0;;;::::1;::::0;;12983:244::o;10304:106::-;10392:10;10304:106;:::o;42184:323::-;42319:10;;42315:185;;42350:12;42356:5;42350;:12::i;:::-;42346:143;;;42383:19;;-1:-1:-1;;;;;42383:11:0;;;:19;;;;;42395:6;;42383:19;;;;42395:6;42383:11;:19;;;;;;;;;;;;;;;;;;;;;42346:143;;;42443:30;-1:-1:-1;;;;;42443:18:0;;42462:2;42466:6;42443:18;:30::i;:::-;42184:323;;;:::o;9322:125::-;9370:4;9395:44;9433:4;9395:29;:44::i;:::-;9394:45;9387:52;;9322:125;:::o;11615:129::-;8866:13;;;;;;;;:33;;;8883:16;:14;:16::i;:::-;8866:50;;;-1:-1:-1;8904:12:0;;;;8903:13;8866:50;8858:109;;;;-1:-1:-1;;;8858:109:0;;;;;;;:::i;:::-;8980:19;9003:13;;;;;;9002:14;9027:101;;;;9062:13;:20;;-1:-1:-1;;;;9062:20:0;;;;;9097:19;9078:4;9097:19;;;9027:101;11673:26:::1;:24;:26::i;:::-;11710;:24;:26::i;36854:131::-:0;8866:13;;;;;;;;:33;;;8883:16;:14;:16::i;:::-;8866:50;;;-1:-1:-1;8904:12:0;;;;8903:13;8866:50;8858:109;;;;-1:-1:-1;;;8858:109:0;;;;;;;:::i;:::-;8980:19;9003:13;;;;;;9002:14;9027:101;;;;9062:13;:20;;-1:-1:-1;;;;9062:20:0;;;;;9097:19;9078:4;9097:19;;;9027:101;36913:26:::1;:24;:26::i;:::-;36950:27;:25;:27::i;37985:118::-:0;37511:8;:6;:8::i;:::-;37510:9;37502:38;;;;-1:-1:-1;;;37502:38:0;;;;;;;:::i;:::-;38045:7:::1;:14:::0;;-1:-1:-1;;38045:14:0::1;38055:4;38045:14;::::0;;38075:20:::1;38082:12;:10;:12::i;:::-;38075:20;;;;;;:::i;:::-;;;;;;;;37985:118::o:0;43321:248::-;43373:4;-1:-1:-1;;;;;43410:38:0;;42034:42;43410:38;;:95;;-1:-1:-1;;;;;;43465:40:0;;42132:42;43465:40;43410:95;:151;;;-1:-1:-1;;;;;;43522:39:0;;;43410:151;43390:171;43321:248;-1:-1:-1;;43321:248:0:o;47041:709::-;47338:6;47321:23;;47317:366;;;47426:12;47440:19;47471:5;-1:-1:-1;;;;;47463:19:0;47506:28;;;47536:6;;47483:60;;;;;;;;;:::i;:::-;;;;-1:-1:-1;;47483:60:0;;;;;;;;;;;;;;-1:-1:-1;;;;;47483:60:0;-1:-1:-1;;;;;;47483:60:0;;;;;;;;;;47463:81;;;;47483:60;47463:81;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;47425:119;;;;47564:7;47559:113;;47599:56;47624:6;47599:56;;;;;;;;;;;;;-1:-1:-1;;;47599:56:0;;;:24;:56::i;:::-;47592:64;;-1:-1:-1;;;47592:64:0;;;;;;;;:::i;47559:113::-;47317:366;;;47695:47;-1:-1:-1;;;;;47695:22:0;;47718:10;47730:3;47735:6;47695:22;:47::i;:::-;47041:709;;;;;:::o;43073:240::-;43155:7;43179:12;43185:5;43179;:12::i;:::-;43175:131;;;-1:-1:-1;;;;;;43215:15:0;;;43208:22;;43175:131;43270:24;;-1:-1:-1;;;43270:24:0;;-1:-1:-1;;;;;43270:15:0;;;;;:24;;43286:7;;43270:24;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;43263:31;43073:240;-1:-1:-1;;;43073:240:0:o;19364:158::-;19422:7;19455:1;19450;:6;;19442:49;;;;-1:-1:-1;;;19442:49:0;;;;;;;:::i;:::-;-1:-1:-1;19509:5:0;;;19364:158::o;18902:179::-;18960:7;18992:5;;;19016:6;;;;19008:46;;;;-1:-1:-1;;;19008:46:0;;;;;;;:::i;19781:220::-;19839:7;19863:6;19859:20;;-1:-1:-1;19878:1:0;19871:8;;19859:20;19902:5;;;19906:1;19902;:5;:1;19926:5;;;;;:10;19918:56;;;;-1:-1:-1;;;19918:56:0;;;;;;;:::i;46496:537::-;46802:8;-1:-1:-1;;;;;46732:293:0;46779:8;-1:-1:-1;;;;;46732:293:0;46754:10;-1:-1:-1;;;;;46732:293:0;;46825:11;46851:4;:11;;;46877;46903:12;46930:4;:20;;;46965:4;:21;;;47001:4;:13;;;;;;;;;;:::i;:::-;46732:293;;;;;;;;;;;;:::i;:::-;;;;;;;;46496:537;;;;;;:::o;32590:211::-;32707:86;32727:5;32757:23;;;32782:2;32786:5;32734:58;;;;;;;;;:::i;:::-;;;;-1:-1:-1;;32734:58:0;;;;;;;;;;;;;;-1:-1:-1;;;;;32734:58:0;-1:-1:-1;;;;;;32734:58:0;;;;;;;;;;32707:19;:86::i;874:444::-;1254:20;1302:8;;;874:444::o;10237:59::-;8866:13;;;;;;;;:33;;;8883:16;:14;:16::i;:::-;8866:50;;;-1:-1:-1;8904:12:0;;;;8903:13;8866:50;8858:109;;;;-1:-1:-1;;;8858:109:0;;;;;;;:::i;:::-;8980:19;9003:13;;;;;;9002:14;9027:101;;;;9062:13;:20;;-1:-1:-1;;;;9062:20:0;;;;;9097:19;9078:4;9097:19;;;9158:14;9154:68;;;9205:5;9189:21;;-1:-1:-1;;9189:21:0;;;10237:59;:::o;11752:196::-;8866:13;;;;;;;;:33;;;8883:16;:14;:16::i;:::-;8866:50;;;-1:-1:-1;8904:12:0;;;;8903:13;8866:50;8858:109;;;;-1:-1:-1;;;8858:109:0;;;;;;;:::i;:::-;8980:19;9003:13;;;;;;9002:14;9027:101;;;;9062:13;:20;;-1:-1:-1;;;;9062:20:0;;;;;9097:19;9078:4;9097:19;;;9027:101;11820:17:::1;11840:12;:10;:12::i;:::-;11863:6;:18:::0;;-1:-1:-1;;;;;;11863:18:0::1;-1:-1:-1::0;;;;;11863:18:0;::::1;::::0;;::::1;::::0;;;11897:43:::1;::::0;11863:18;;-1:-1:-1;11863:18:0;-1:-1:-1;;11897:43:0::1;::::0;-1:-1:-1;;11897:43:0::1;9140:1;9158:14:::0;9154:68;;;9205:5;9189:21;;-1:-1:-1;;9189:21:0;;;11752:196;:::o;36993:92::-;8866:13;;;;;;;;:33;;;8883:16;:14;:16::i;:::-;8866:50;;;-1:-1:-1;8904:12:0;;;;8903:13;8866:50;8858:109;;;;-1:-1:-1;;;8858:109:0;;;;;;;:::i;:::-;8980:19;9003:13;;;;;;9002:14;9027:101;;;;9062:13;:20;;-1:-1:-1;;;;9062:20:0;;;;;9097:19;9078:4;9097:19;;;9027:101;37062:7:::1;:15:::0;;-1:-1:-1;;37062:15:0::1;::::0;;9154:68;;;;9205:5;9189:21;;-1:-1:-1;;9189:21:0;;;36993:92;:::o;39218:1893::-;39297:13;39582:2;39567:4;:11;:17;;:38;;;;;39588:4;39593:1;39588:7;;;;;;;;;;;;;-1:-1:-1;;;;;;39588:7:0;-1:-1:-1;;;39588:17:0;39567:38;:59;;;;;39609:4;39614:1;39609:7;;;;;;;;;;;;;-1:-1:-1;;;;;;39609:7:0;-1:-1:-1;;;39609:17:0;39567:59;:80;;;;;39630:4;39635:1;39630:7;;;;;;;;;;;;;-1:-1:-1;;;;;;39630:7:0;-1:-1:-1;;;39630:17:0;39567:80;:101;;;;;39651:4;39656:1;39651:7;;;;;;;;;;;;;-1:-1:-1;;;;;;39651:7:0;-1:-1:-1;;;39651:17:0;39567:101;39563:1476;;;39685:20;39901:2;39895:4;39891:13;39881:23;;40403:6;40397:20;40392:2;:25;40377:4;:11;:40;;40369:74;;;;-1:-1:-1;;;40369:74:0;;;;;;;:::i;:::-;40489:6;40507;40472:47;;;;;;;;;:::i;:::-;;;;;;;;;;;;;40458:62;;;;;39563:1476;40614:4;:11;40629:2;40614:17;:38;;;;;40635:4;40640:1;40635:7;;;;;;;;;;;;;-1:-1:-1;;;;;;40635:7:0;-1:-1:-1;;;40635:17:0;40614:38;:59;;;;;40656:4;40661:1;40656:7;;;;;;;;;;;;;-1:-1:-1;;;;;;40656:7:0;-1:-1:-1;;;40656:17:0;40614:59;:80;;;;;40677:4;40682:1;40677:7;;;;;;;;;;;;;-1:-1:-1;;;;;;40677:7:0;-1:-1:-1;;;40677:17:0;40614:80;:101;;;;;40698:4;40703:1;40698:7;;;;;;;;;;;;;-1:-1:-1;;;;;;40698:7:0;-1:-1:-1;;;40698:17:0;40614:101;40610:429;;;40926:2;40916:13;;40910:20;40990:6;41008:12;40910:20;41008:6;:12::i;:::-;40973:53;;;;;;;;;:::i;40610:429::-;41082:6;41065:37;;;;;;;;:::i;:::-;;;;;;;;;;;;;41051:52;;39218:1893;;;;:::o;32809:248::-;32953:96;32973:5;33003:27;;;33032:4;33038:2;33042:5;32980:68;;;;;;;;;;:::i;32953:96::-;32809:248;;;;:::o;35088:774::-;35512:23;35538:69;35566:4;35538:69;;;;;;;;;;;;;;;;;35546:5;-1:-1:-1;;;;;35538:27:0;;;:69;;;;;:::i;:::-;35622:17;;35512:95;;-1:-1:-1;35622:21:0;35618:237;;35777:10;35766:30;;;;;;;;;;;;:::i;:::-;35758:85;;;;-1:-1:-1;;;35758:85:0;;;;;;;:::i;41119:125::-;41172:13;41205:31;41229:5;41212:23;;;;;;;;:::i;:::-;;;;;;;;;;;;;41205:6;:31::i;27381:229::-;27518:12;27550:52;27572:6;27580:4;27586:1;27589:12;27550:21;:52::i;:::-;27543:59;27381:229;-1:-1:-1;;;;27381:229:0:o;41252:456::-;41309:13;41335:21;:42;;;;;;;;;;;;;-1:-1:-1;;;41335:42:0;;;;;41388:16;41421:4;:11;41435:1;41421:15;41417:1;:19;41407:30;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;41407:30:0;;41388:49;;-1:-1:-1;;;41448:3:0;41452:1;41448:6;;;;;;;;;;;:12;-1:-1:-1;;;;;41448:12:0;;;;;;;;;-1:-1:-1;;;41471:3:0;41475:1;41471:6;;;;;;;;;;;:12;-1:-1:-1;;;;;41471:12:0;;;;;;;;;41499:9;41494:178;41518:4;:11;41514:1;:15;41494:178;;;41568:8;41594:1;41583:4;41588:1;41583:7;;;;;;;;;;;;41568:29;;-1:-1:-1;;;;;;41583:7:0;;;:12;;;:7;41577:19;;41568:29;;;;;;;;;;;;;;41551:3;41559:1;41555;:5;41563:1;41555:9;41551:14;;;;;;;;;;;:46;-1:-1:-1;;;;;41551:46:0;;;;;;;;;41629:8;41644:4;41649:1;41644:7;;;;;;;;;;;;;41629:31;;41644:7;;;;;41654:4;41638:21;;41629:31;;;;;;;;;;;;;;41612:3;41620:1;41616;:5;41624:1;41616:9;41612:14;;;;;;;;;;;:48;-1:-1:-1;;;;;41612:48:0;;;;;;;;-1:-1:-1;41531:3:0;;41494:178;;;-1:-1:-1;41696:3:0;41252:456;-1:-1:-1;;;41252:456:0:o;28501:571::-;28671:12;28729:5;28704:21;:30;;28696:81;;;;-1:-1:-1;;;28696:81:0;;;;;;;:::i;:::-;28796:18;28807:6;28796:10;:18::i;:::-;28788:60;;;;-1:-1:-1;;;28788:60:0;;;;;;;:::i;:::-;28922:12;28936:23;28963:6;-1:-1:-1;;;;;28963:11:0;28982:5;28989:4;28963:31;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;28921:73;;;;29012:52;29030:7;29039:10;29051:12;29012:17;:52::i;:::-;29005:59;28501:571;-1:-1:-1;;;;;;;28501:571:0:o;31150:777::-;31300:12;31329:7;31325:595;;;-1:-1:-1;31360:10:0;31353:17;;31325:595;31474:17;;:21;31470:439;;31737:10;31731:17;31798:15;31785:10;31781:2;31777:19;31770:44;31685:148;31880:12;31873:20;;-1:-1:-1;;;31873:20:0;;;;;;;;:::i;1575:241:-1:-;;1679:2;1667:9;1658:7;1654:23;1650:32;1647:2;;;-1:-1;;1685:12;1647:2;85:6;72:20;97:33;124:5;97:33;:::i;1823:257::-;;1935:2;1923:9;1914:7;1910:23;1906:32;1903:2;;;-1:-1;;1941:12;1903:2;668:6;662:13;34579:5;32910:13;32903:21;34557:5;34554:32;34544:2;;-1:-1;;34590:12;2363:394;;;2498:2;2486:9;2477:7;2473:23;2469:32;2466:2;;;-1:-1;;2504:12;2466:2;816:6;803:20;828:47;869:5;828:47;:::i;:::-;2556:77;2670:2;2709:22;;;;1364:20;;-1:-1;;;2460:297::o;2764:923::-;;;;;3032:2;3020:9;3011:7;3007:23;3003:32;3000:2;;;-1:-1;;3038:12;3000:2;992:6;979:20;1004:58;1056:5;1004:58;:::i;:::-;3090:88;-1:-1;3243:2;3228:18;;3215:32;3267:18;3256:30;;;3253:2;;;-1:-1;;3289:12;3253:2;3375:22;;;;1242:3;1224:16;;;1220:26;1217:2;;;-1:-1;;1249:12;1217:2;3309:98;;-1:-1;3472:2;3457:18;;3444:32;;3485:30;;;3482:2;;;-1:-1;;3518:12;3482:2;3654:6;3643:9;3639:22;;;357:3;350:4;342:6;338:17;334:27;324:2;;-1:-1;;365:12;324:2;408:6;395:20;3267:18;427:6;424:30;421:2;;;-1:-1;;457:12;421:2;552:3;3243:2;;536:6;532:17;493:6;518:32;;515:41;512:2;;;-1:-1;;559:12;512:2;2994:693;;;;-1:-1;;3243:2;489:17;;-1:-1;;;2994:693::o;3694:263::-;;3809:2;3797:9;3788:7;3784:23;3780:32;3777:2;;;-1:-1;;3815:12;3777:2;-1:-1;1512:13;;3771:186;-1:-1;3771:186::o;5865:277::-;;30921:6;30916:3;30909:19;33839:6;33834:3;30958:4;30953:3;30949:14;33816:30;-1:-1;30958:4;33886:6;30953:3;33877:16;;33870:27;30958:4;34353:7;;34357:2;6128:6;34337:14;34333:28;30953:3;6097:39;;6090:46;;5955:187;;;;;:::o;16073:271::-;;6638:5;30435:12;6749:52;6794:6;6789:3;6782:4;6775:5;6771:16;6749:52;:::i;:::-;6813:16;;;;;16207:137;-1:-1;;16207:137::o;16351:542::-;;6638:5;30435:12;6749:52;6794:6;6789:3;6782:4;6775:5;6771:16;6749:52;:::i;:::-;-1:-1;;;6813:16;;8165:32;;;-1:-1;8150:1;8216:11;;16588:305;-1:-1;16588:305::o;16900:970::-;;6638:5;30435:12;6749:52;6794:6;6789:3;6782:4;6775:5;6771:16;6749:52;:::i;:::-;-1:-1;;;6813:16;;;10955:29;;;30435:12;;6749:52;30435:12;10940:1;11003:11;;6782:4;6771:16;;6749:52;:::i;:::-;-1:-1;;;10940:1;6813:16;;;;;;;10286:24;10329:11;;;17286:584;-1:-1;;;;17286:584::o;17877:970::-;;6638:5;30435:12;6749:52;6794:6;6789:3;6782:4;6775:5;6771:16;6749:52;:::i;:::-;-1:-1;;;6813:16;;;14474:29;;;30435:12;;6749:52;30435:12;14459:1;14522:11;;6782:4;6771:16;;6749:52;:::i;18854:253::-;15745:37;;;19079:2;19070:12;;18970:137::o;19114:222::-;-1:-1;;;;;33233:54;;;;4482:37;;19241:2;19226:18;;19212:124::o;19588:444::-;-1:-1;;;;;33233:54;;;4482:37;;33233:54;;;;19935:2;19920:18;;4482:37;20018:2;20003:18;;15745:37;;;;19771:2;19756:18;;19742:290::o;20039:333::-;-1:-1;;;;;33233:54;;;;4482:37;;20358:2;20343:18;;15745:37;20194:2;20179:18;;20165:207::o;20379:892::-;-1:-1;;;;;33233:54;;;4482:37;;20839:2;20824:18;;15745:37;;;;20922:2;20907:18;;15745:37;;;;21005:2;20990:18;;15745:37;;;;21088:3;21073:19;;15745:37;33244:42;21157:19;;15745:37;33233:54;;;21256:3;21241:19;;4482:37;20674:3;20659:19;;20645:626::o;21278:526::-;21533:2;21547:47;;;21518:18;;;30909:19;;;21278:526;;30949:14;;;;5020:17;;;5011:27;;;;5158:21;21278:526;5185:499;5210:6;5207:1;5204:13;5185:499;;;5262:20;;;-1:-1;;5262:20;5250:33;;32426:17;;32491:14;32487:29;;;-1:-1;;32483:48;32459:73;;32449:2;;-1:-1;;32536:12;32449:2;32565:33;;1364:20;;15745:37;;32719:12;;;1364:20;15152:14;;;15745:37;15263:16;;;1364:20;15334:14;;;15745:37;14795:4;15480;15469:16;;;31900:17;32491:14;31961:29;;;-1:-1;;31957:48;31933:73;;31923:2;;-1:-1;;32010:12;31923:2;32039:33;;32094:19;;32164:18;32153:30;;32150:2;;;-1:-1;;32186:12;32150:2;32243:17;32491:14;32223:38;32213:8;32209:53;32206:2;;;-1:-1;;32265:12;32206:2;14795:4;15480;15510:3;15506:14;15499:38;15552:87;14795:4;14790:3;14786:14;15620:12;21533:2;32132:5;32128:16;15552:87;:::i;:::-;5663:14;;;;5395:140;-1:-1;;;30731:14;;;;-1:-1;;;5232:1;5225:9;5185:499;;;-1:-1;21600:194;;21504:300;-1:-1;;;;;;;;21504:300::o;21811:210::-;32910:13;;32903:21;5796:34;;21932:2;21917:18;;21903:118::o;22028:326::-;;22183:2;22204:17;22197:47;22258:86;22183:2;22172:9;22168:18;22330:6;22322;22258:86;:::i;22361:310::-;;22508:2;22529:17;22522:47;6986:5;30435:12;30921:6;22508:2;22497:9;22493:18;30909:19;7080:52;7125:6;30949:14;22497:9;30949:14;22508:2;7106:5;7102:16;7080:52;:::i;:::-;34353:7;34337:14;-1:-1;;34333:28;7144:39;;;;30949:14;7144:39;;22479:192;-1:-1;;22479:192::o;22678:416::-;22878:2;22892:47;;;7787:2;22863:18;;;30909:19;-1:-1;;;30949:14;;;7803:41;7863:12;;;22849:245::o;23101:416::-;23301:2;23315:47;;;8466:2;23286:18;;;30909:19;8502:34;30949:14;;;8482:55;-1:-1;;;8557:12;;;8550:30;8599:12;;;23272:245::o;23524:416::-;23724:2;23738:47;;;8850:2;23709:18;;;30909:19;8886:29;30949:14;;;8866:50;8935:12;;;23695:245::o;23947:416::-;24147:2;24161:47;;;9186:2;24132:18;;;30909:19;-1:-1;;;30949:14;;;9202:40;9261:12;;;24118:245::o;24370:416::-;24570:2;24584:47;;;9512:2;24555:18;;;30909:19;9548:32;30949:14;;;9528:53;9600:12;;;24541:245::o;24793:416::-;24993:2;25007:47;;;9851:2;24978:18;;;30909:19;9887:34;30949:14;;;9867:55;-1:-1;;;9942:12;;;9935:30;9984:12;;;24964:245::o;25216:416::-;25416:2;25430:47;;;10579:2;25401:18;;;30909:19;-1:-1;;;30949:14;;;10595:39;10653:12;;;25387:245::o;25639:416::-;25839:2;25853:47;;;11253:2;25824:18;;;30909:19;11289:34;30949:14;;;11269:55;-1:-1;;;11344:12;;;11337:38;11394:12;;;25810:245::o;26062:416::-;26262:2;26276:47;;;11645:2;26247:18;;;30909:19;11681:29;30949:14;;;11661:50;11730:12;;;26233:245::o;26485:416::-;26685:2;26699:47;;;11981:2;26670:18;;;30909:19;12017:28;30949:14;;;11997:49;12065:12;;;26656:245::o;26908:416::-;27108:2;27122:47;;;12316:2;27093:18;;;30909:19;12352:34;30949:14;;;12332:55;-1:-1;;;12407:12;;;12400:25;12444:12;;;27079:245::o;27331:416::-;27531:2;27545:47;;;27516:18;;;30909:19;12731:34;30949:14;;;12711:55;12785:12;;;27502:245::o;27754:416::-;27954:2;27968:47;;;13036:2;27939:18;;;30909:19;-1:-1;;;30949:14;;;13052:44;13115:12;;;27925:245::o;28177:416::-;28377:2;28391:47;;;13366:2;28362:18;;;30909:19;13402:31;30949:14;;;13382:52;13453:12;;;28348:245::o;28600:416::-;28800:2;28814:47;;;13704:2;28785:18;;;30909:19;13740:34;30949:14;;;13720:55;-1:-1;;;13795:12;;;13788:34;13841:12;;;28771:245::o;29023:416::-;29223:2;29237:47;;;14092:2;29208:18;;;30909:19;-1:-1;;;30949:14;;;14108:45;14172:12;;;29194:245::o;29675:506::-;;;29810:11;29797:25;31957:48;;29885:8;29869:14;29865:29;29861:48;29841:18;29837:73;29827:2;;-1:-1;;29914:12;29827:2;29941:33;;29995:18;;;-1:-1;30033:18;30022:30;;30019:2;;;-1:-1;;30055:12;30019:2;29900:4;30083:13;;-1:-1;29869:14;30115:38;;;30105:49;;30102:2;;;30167:1;;30157:12;30102:2;29765:416;;;;;:::o;33912:268::-;33977:1;33984:101;33998:6;33995:1;33992:13;33984:101;;;34065:11;;;34059:18;34046:11;;;34039:39;34020:2;34013:10;33984:101;;;34100:6;34097:1;34094:13;34091:2;;;-1:-1;;33977:1;34147:16;;34140:27;33961:219::o;34374:117::-;-1:-1;;;;;33233:54;;34433:35;;34423:2;;34482:1;;34472:12

Swarm Source

ipfs://62db60ae4d08f8315c60a20f1a9c105bd4a5e3a2fab9aef76b0b971baee15cee

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

Txn Hash Block Value Eth2 PubKey Valid
View All Deposits
[ Download: CSV Export  ]
[ 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.