ETH Price: $1,989.07 (+1.06%)

Contract

0x962d37Fb9d75fE1aF9aAb323727183e4eaE1322D

Overview

ETH Balance

0 ETH

ETH Value

$0.00

More Info

Private Name Tags

Multichain Info

No addresses found
Transaction Hash
Block
From
To
Post State344106252022-11-01 9:34:241204 days ago1667295264IN
0x962d37Fb...4eaE1322D
0 ETH0.000019140.1
Post State344105012022-11-01 9:33:491204 days ago1667295229IN
0x962d37Fb...4eaE1322D
0 ETH0.000019140.1
Post State344104692022-11-01 9:33:401204 days ago1667295220IN
0x962d37Fb...4eaE1322D
0 ETH0.000019140.1
Post State344102362022-11-01 9:32:491204 days ago1667295169IN
0x962d37Fb...4eaE1322D
0 ETH0.000018050.1
Post State344099512022-11-01 9:31:331204 days ago1667295093IN
0x962d37Fb...4eaE1322D
0 ETH0.000018050.1
Post State List344098992022-11-01 9:31:191204 days ago1667295079IN
0x962d37Fb...4eaE1322D
0 ETH0.000028450.1
Post State List344096342022-11-01 9:30:071204 days ago1667295007IN
0x962d37Fb...4eaE1322D
0 ETH0.000028510.1
Post State List344088772022-11-01 9:26:491204 days ago1667294809IN
0x962d37Fb...4eaE1322D
0 ETH0.00002840.1
Post State List344087502022-11-01 9:26:151204 days ago1667294775IN
0x962d37Fb...4eaE1322D
0 ETH0.000028230.1
Post State344086062022-11-01 9:25:351204 days ago1667294735IN
0x962d37Fb...4eaE1322D
0 ETH0.000017880.1
Post State List344079932022-11-01 9:22:481204 days ago1667294568IN
0x962d37Fb...4eaE1322D
0 ETH0.000028180.1
Post State344077342022-11-01 9:21:361204 days ago1667294496IN
0x962d37Fb...4eaE1322D
0 ETH0.000017880.1
Post State344076342022-11-01 9:21:091204 days ago1667294469IN
0x962d37Fb...4eaE1322D
0 ETH0.000017880.1
Post Price344073292022-11-01 9:19:531204 days ago1667294393IN
0x962d37Fb...4eaE1322D
0 ETH0.000013820.1
Post State344063102022-11-01 9:15:231204 days ago1667294123IN
0x962d37Fb...4eaE1322D
0 ETH0.000017360.1
Post State344058942022-11-01 9:13:431204 days ago1667294023IN
0x962d37Fb...4eaE1322D
0 ETH0.000017310.1
Post State List344056662022-11-01 9:12:401204 days ago1667293960IN
0x962d37Fb...4eaE1322D
0 ETH0.000027490.1
Post Price344055052022-11-01 9:11:571204 days ago1667293917IN
0x962d37Fb...4eaE1322D
0 ETH0.000013780.1
Post State List344044782022-11-01 9:07:271204 days ago1667293647IN
0x962d37Fb...4eaE1322D
0 ETH0.000028130.1
Post Price List344042052022-11-01 9:06:131204 days ago1667293573IN
0x962d37Fb...4eaE1322D
0 ETH0.000024030.1
Post State344037722022-11-01 9:04:161204 days ago1667293456IN
0x962d37Fb...4eaE1322D
0 ETH0.000017620.1
Post Price List344034262022-11-01 9:02:451204 days ago1667293365IN
0x962d37Fb...4eaE1322D
0 ETH0.000024080.1
Post Price344023682022-11-01 8:58:141204 days ago1667293094IN
0x962d37Fb...4eaE1322D
0 ETH0.000014190.1
Post Price344013012022-11-01 8:53:431204 days ago1667292823IN
0x962d37Fb...4eaE1322D
0 ETH0.000014510.1
Post State344003022022-11-01 8:49:121204 days ago1667292552IN
0x962d37Fb...4eaE1322D
0 ETH0.000018280.1
View all transactions

Latest 25 internal transactions (View All)

Parent Transaction Hash Block From To
343819642022-11-01 7:27:021204 days ago1667287622
0x962d37Fb...4eaE1322D
0 ETH
343817142022-11-01 7:25:551204 days ago1667287555
0x962d37Fb...4eaE1322D
0 ETH
341566652022-10-31 11:35:241205 days ago1667216124
0x962d37Fb...4eaE1322D
0 ETH
341566652022-10-31 11:35:241205 days ago1667216124
0x962d37Fb...4eaE1322D
0 ETH
341566652022-10-31 11:35:241205 days ago1667216124
0x962d37Fb...4eaE1322D
0 ETH
341566652022-10-31 11:35:241205 days ago1667216124
0x962d37Fb...4eaE1322D
0 ETH
341566652022-10-31 11:35:241205 days ago1667216124
0x962d37Fb...4eaE1322D
0 ETH
341561862022-10-31 11:33:011205 days ago1667215981
0x962d37Fb...4eaE1322D
0 ETH
341561862022-10-31 11:33:011205 days ago1667215981
0x962d37Fb...4eaE1322D
0 ETH
341561862022-10-31 11:33:011205 days ago1667215981
0x962d37Fb...4eaE1322D
0 ETH
341561862022-10-31 11:33:011205 days ago1667215981
0x962d37Fb...4eaE1322D
0 ETH
341561862022-10-31 11:33:011205 days ago1667215981
0x962d37Fb...4eaE1322D
0 ETH
341561862022-10-31 11:33:011205 days ago1667215981
0x962d37Fb...4eaE1322D
0 ETH
341561862022-10-31 11:33:011205 days ago1667215981
0x962d37Fb...4eaE1322D
0 ETH
341561862022-10-31 11:33:011205 days ago1667215981
0x962d37Fb...4eaE1322D
0 ETH
341561382022-10-31 11:32:421205 days ago1667215962
0x962d37Fb...4eaE1322D
0 ETH
341561382022-10-31 11:32:421205 days ago1667215962
0x962d37Fb...4eaE1322D
0 ETH
341561382022-10-31 11:32:421205 days ago1667215962
0x962d37Fb...4eaE1322D
0 ETH
341558432022-10-31 11:31:131205 days ago1667215873
0x962d37Fb...4eaE1322D
0 ETH
341558432022-10-31 11:31:131205 days ago1667215873
0x962d37Fb...4eaE1322D
0 ETH
341558432022-10-31 11:31:131205 days ago1667215873
0x962d37Fb...4eaE1322D
0 ETH
341558432022-10-31 11:31:131205 days ago1667215873
0x962d37Fb...4eaE1322D
0 ETH
341558432022-10-31 11:31:131205 days ago1667215873
0x962d37Fb...4eaE1322D
0 ETH
341345302022-10-31 9:50:001205 days ago1667209800
0x962d37Fb...4eaE1322D
0 ETH
341345302022-10-31 9:50:001205 days ago1667209800
0x962d37Fb...4eaE1322D
0 ETH
View All Internal Transactions

Cross-Chain Transactions
Loading...
Loading

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

Contract Name:
WooracleV2

Compiler Version
v0.8.14+commit.80d49f37

Optimization Enabled:
Yes with 888888 runs

Other Settings:
default evmVersion, MIT license

Contract Source Code (Solidity)

/**
 *Submitted for verification at Arbiscan.io on 2022-09-20
*/

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

// File contracts/interfaces/IWooracleV2.sol

// SPDX-License-Identifier: MIT
pragma solidity =0.8.14;

/*

░██╗░░░░░░░██╗░█████╗░░█████╗░░░░░░░███████╗██╗
░██║░░██╗░░██║██╔══██╗██╔══██╗░░░░░░██╔════╝██║
░╚██╗████╗██╔╝██║░░██║██║░░██║█████╗█████╗░░██║
░░████╔═████║░██║░░██║██║░░██║╚════╝██╔══╝░░██║
░░╚██╔╝░╚██╔╝░╚█████╔╝╚█████╔╝░░░░░░██║░░░░░██║
░░░╚═╝░░░╚═╝░░░╚════╝░░╚════╝░░░░░░░╚═╝░░░░░╚═╝

*
* MIT License
* ===========
*
* Copyright (c) 2020 WooTrade
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/

/// @title The oracle V2 interface by Woo.Network.
/// @notice update and posted the latest price info by Woo.
interface IWooracleV2 {
    struct State {
        uint128 price;
        uint64 spread;
        uint64 coeff;
        bool woFeasible;
    }

    function woSpread(address base) external view returns (uint64);

    function woCoeff(address base) external view returns (uint64);

    function woState(address base) external view returns (State memory);

    function cloAddress(address base) external view returns (address clo);

    // ChainLink price of the base token / quote token
    function cloPrice(address base) external view returns (uint256 price, uint256 timestamp);

    // Wooracle price of the base token
    function woPrice(address base) external view returns (uint128 price, uint256 timestamp);

    // Returns Woooracle price if available, otherwise fallback to ChainLink
    function price(address base) external view returns (uint256 priceNow, bool feasible);

    function postPrice(address base, uint128 newPrice) external;

    // post state

    function state(address base) external view returns (State memory);

    function decimals(address base) external view returns (uint8);

    function quoteToken() external view returns (address);

    function timestamp() external view returns (uint256);

    function isWoFeasible(address base) external view returns (bool);
}


// File contracts/interfaces/AggregatorV3Interface.sol


pragma solidity =0.8.14;

interface AggregatorV3Interface {
    function decimals() external view returns (uint8);

    function description() external view returns (string memory);

    function version() external view returns (uint256);

    /// getRoundData and latestRoundData should both raise "No data present"
    /// if they do not have data to report, instead of returning unset values
    /// which could be misinterpreted as actual reported values.
    function getRoundData(uint80 _roundId)
        external
        view
        returns (
            uint80 roundId,
            int256 answer,
            uint256 startedAt,
            uint256 updatedAt,
            uint80 answeredInRound
        );

    function latestRoundData()
        external
        view
        returns (
            uint80 roundId,
            int256 answer,
            uint256 startedAt,
            uint256 updatedAt,
            uint80 answeredInRound
        );
}


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


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

pragma solidity ^0.8.0;

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

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


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


// OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol)

pragma solidity ^0.8.0;

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

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

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    constructor() {
        _transferOwnership(_msgSender());
    }

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        _checkOwner();
        _;
    }

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

    /**
     * @dev Throws if the sender is not the owner.
     */
    function _checkOwner() internal view virtual {
        require(owner() == _msgSender(), "Ownable: caller is not the owner");
    }

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

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

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


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


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

pragma solidity ^0.8.0;

/**
 * @dev Contract module that helps prevent reentrant calls to a function.
 *
 * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier
 * available, which can be applied to functions to make sure there are no nested
 * (reentrant) calls to them.
 *
 * Note that because there is a single `nonReentrant` guard, functions marked as
 * `nonReentrant` may not call one another. This can be worked around by making
 * those functions `private`, and then adding `external` `nonReentrant` entry
 * points to them.
 *
 * TIP: If you would like to learn more about reentrancy and alternative ways
 * to protect against it, check out our blog post
 * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].
 */
abstract contract ReentrancyGuard {
    // Booleans are more expensive than uint256 or any type that takes up a full
    // word because each write operation emits an extra SLOAD to first read the
    // slot's contents, replace the bits taken up by the boolean, and then write
    // back. This is the compiler's defense against contract upgrades and
    // pointer aliasing, and it cannot be disabled.

    // The values being non-zero value makes deployment a bit more expensive,
    // but in exchange the refund on every call to nonReentrant will be lower in
    // amount. Since refunds are capped to a percentage of the total
    // transaction's gas, it is best to keep them low in cases like this one, to
    // increase the likelihood of the full refund coming into effect.
    uint256 private constant _NOT_ENTERED = 1;
    uint256 private constant _ENTERED = 2;

    uint256 private _status;

    constructor() {
        _status = _NOT_ENTERED;
    }

    /**
     * @dev Prevents a contract from calling itself, directly or indirectly.
     * Calling a `nonReentrant` function from another `nonReentrant`
     * function is not supported. It is possible to prevent this from happening
     * by making the `nonReentrant` function external, and making it call a
     * `private` function that does the actual work.
     */
    modifier nonReentrant() {
        // On the first call to nonReentrant, _notEntered will be true
        require(_status != _ENTERED, "ReentrancyGuard: reentrant call");

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

        _;

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


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


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

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @dev Emitted when `value` tokens are moved from one account (`from`) to
     * another (`to`).
     *
     * Note that `value` may be zero.
     */
    event Transfer(address indexed from, address indexed to, uint256 value);

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

    /**
     * @dev Returns the amount of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

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

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

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

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

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


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


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

pragma solidity ^0.8.1;

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     * ====
     *
     * [IMPORTANT]
     * ====
     * You shouldn't rely on `isContract` to protect against flash loan attacks!
     *
     * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets
     * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract
     * constructor.
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize/address.code.length, which returns 0
        // for contracts in construction, since the code is only stored at the end
        // of the constructor execution.

        return account.code.length > 0;
    }

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

        (bool success, ) = recipient.call{value: amount}("");
        require(success, "Address: unable to send value, recipient may have reverted");
    }

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

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

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

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

        (bool success, bytes memory returndata) = target.call{value: value}(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

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

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

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

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

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

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

    /**
     * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the
     * revert reason using the provided one.
     *
     * _Available since v4.3._
     */
    function verifyCallResult(
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal pure returns (bytes memory) {
        if (success) {
            return returndata;
        } else {
            // Look for revert reason and bubble it up if present
            if (returndata.length > 0) {
                // The easiest way to bubble the revert reason is using memory via assembly
                /// @solidity memory-safe-assembly
                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}


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


// OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/draft-IERC20Permit.sol)

pragma solidity ^0.8.0;

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

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

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


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


// OpenZeppelin Contracts (last updated v4.7.0) (token/ERC20/utils/SafeERC20.sol)

pragma solidity ^0.8.0;



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

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

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

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

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

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

    function safePermit(
        IERC20Permit token,
        address owner,
        address spender,
        uint256 value,
        uint256 deadline,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) internal {
        uint256 nonceBefore = token.nonces(owner);
        token.permit(owner, spender, value, deadline, v, r, s);
        uint256 nonceAfter = token.nonces(owner);
        require(nonceAfter == nonceBefore + 1, "SafeERC20: permit did not succeed");
    }

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

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


// File contracts/WooracleV2.sol


pragma solidity =0.8.14;

/*

░██╗░░░░░░░██╗░█████╗░░█████╗░░░░░░░███████╗██╗
░██║░░██╗░░██║██╔══██╗██╔══██╗░░░░░░██╔════╝██║
░╚██╗████╗██╔╝██║░░██║██║░░██║█████╗█████╗░░██║
░░████╔═████║░██║░░██║██║░░██║╚════╝██╔══╝░░██║
░░╚██╔╝░╚██╔╝░╚█████╔╝╚█████╔╝░░░░░░██║░░░░░██║
░░░╚═╝░░░╚═╝░░░╚════╝░░╚════╝░░░░░░░╚═╝░░░░░╚═╝

*
* MIT License
* ===========
*
* Copyright (c) 2020 WooTrade
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/


// OpenZeppelin contracts



/// @title Wooracle V2 contract
contract WooracleV2 is Ownable, IWooracleV2 {
    /* ----- State variables ----- */

    // 128 + 64 + 64 = 256 bits (slot size)
    struct TokenInfo {
        uint128 price; // as chainlink oracle (e.g. decimal = 8)
        uint64 coeff; // 18.    18.4 * 1e18
        uint64 spread; // 18.   spread <= 2e18   18.4 * 1e18
    }

    struct CLOracle {
        address oracle;
        uint8 decimal;
        bool cloPreferred;
    }

    mapping(address => TokenInfo) public infos;

    mapping(address => CLOracle) public clOracles;

    address public override quoteToken;
    uint256 public override timestamp;

    uint256 public staleDuration;
    uint64 public bound;

    mapping(address => bool) public isAdmin;

    constructor() {
        staleDuration = uint256(300);
        bound = uint64(1e16); // 1%
    }

    modifier onlyAdmin() {
        require(owner() == msg.sender || isAdmin[msg.sender], "Wooracle: !Admin");
        _;
    }

    /* ----- External Functions ----- */

    function setAdmin(address addr, bool flag) external onlyOwner {
        isAdmin[addr] = flag;
    }

    /// @dev Set the quote token address.
    /// @param _oracle the token address
    function setQuoteToken(address _quote, address _oracle) external onlyAdmin {
        quoteToken = _quote;
        CLOracle storage cloRef = clOracles[_quote];
        cloRef.oracle = _oracle;
        cloRef.decimal = AggregatorV3Interface(_oracle).decimals();
    }

    function setBound(uint64 _bound) external onlyOwner {
        bound = _bound;
    }

    function setCLOracle(
        address token,
        address _oracle,
        bool _cloPreferred
    ) external onlyAdmin {
        CLOracle storage cloRef = clOracles[token];
        cloRef.oracle = _oracle;
        cloRef.decimal = AggregatorV3Interface(_oracle).decimals();
        cloRef.cloPreferred = _cloPreferred;
    }

    /// @dev Set the staleDuration.
    /// @param newStaleDuration the new stale duration
    function setStaleDuration(uint256 newStaleDuration) external onlyAdmin {
        staleDuration = newStaleDuration;
    }

    /// @dev Update the base token prices.
    /// @param base the baseToken address
    /// @param newPrice the new prices for the base token
    function postPrice(address base, uint128 newPrice) external override onlyAdmin {
        infos[base].price = newPrice;
        timestamp = block.timestamp;
    }

    /// @dev batch update baseTokens prices
    /// @param bases list of baseToken address
    /// @param newPrices the updated prices list
    function postPriceList(address[] calldata bases, uint128[] calldata newPrices) external onlyAdmin {
        uint256 length = bases.length;
        require(length == newPrices.length, "Wooracle: length_INVALID");

        // TODO: gas optimization:
        // https://ethereum.stackexchange.com/questions/113221/what-is-the-purpose-of-unchecked-in-solidity
        // https://forum.openzeppelin.com/t/a-collection-of-gas-optimisation-tricks/19966
        unchecked {
            for (uint256 i = 0; i < length; i++) {
                infos[bases[i]].price = newPrices[i];
            }
        }

        timestamp = block.timestamp;
    }

    /// @dev update the spreads info.
    /// @param base baseToken address
    /// @param newSpread the new spreads
    function postSpread(address base, uint64 newSpread) external onlyAdmin {
        infos[base].spread = newSpread;
        timestamp = block.timestamp;
    }

    /// @dev batch update the spreads info.
    /// @param bases list of baseToken address
    /// @param newSpreads list of spreads info
    function postSpreadList(address[] calldata bases, uint64[] calldata newSpreads) external onlyAdmin {
        uint256 length = bases.length;
        require(length == newSpreads.length, "Wooracle: length_INVALID");

        unchecked {
            for (uint256 i = 0; i < length; i++) {
                infos[bases[i]].spread = newSpreads[i];
            }
        }

        timestamp = block.timestamp;
    }

    /// @dev update the state of the given base token.
    /// @param base baseToken address
    /// @param newPrice the new prices
    /// @param newSpread the new spreads
    /// @param newCoeff the new slippage coefficent
    function postState(
        address base,
        uint128 newPrice,
        uint64 newSpread,
        uint64 newCoeff
    ) external onlyAdmin {
        _setState(base, newPrice, newSpread, newCoeff);
        timestamp = block.timestamp;
    }

    /// @dev batch update the prices, spreads and slipagge coeffs info.
    /// @param bases list of baseToken address
    /// @param newPrices the prices list
    /// @param newSpreads the spreads list
    /// @param newCoeffs the slippage coefficent list
    function postStateList(
        address[] calldata bases,
        uint128[] calldata newPrices,
        uint64[] calldata newSpreads,
        uint64[] calldata newCoeffs
    ) external onlyAdmin {
        uint256 length = bases.length;
        unchecked {
            for (uint256 i = 0; i < length; i++) {
                _setState(bases[i], newPrices[i], newSpreads[i], newCoeffs[i]);
            }
        }
        timestamp = block.timestamp;
    }

    /*
        Price logic:
        - woPrice: wooracle price
        - cloPrice: chainlink price

        if woFeasible (!=0 && !stale) && withinBound -> woPrice
        else if clo_preferred -> cloPrice
        else -> !feasible
    */
    function price(address base) public view override returns (uint256 priceOut, bool feasible) {
        uint256 woPrice_ = uint256(infos[base].price);
        uint256 woPriceTimestamp = timestamp;

        (uint256 cloPrice_, ) = _cloPriceInQuote(base, quoteToken);

        bool woFeasible = woPrice_ != 0 && block.timestamp <= (woPriceTimestamp + staleDuration);
        bool woPriceInBound = cloPrice_ == 0 ||
            (((cloPrice_ * (1e18 - bound)) / 1e18) <= woPrice_ && woPrice_ <= (cloPrice_ * (1e18 + bound)) / 1e18);

        if (woFeasible && woPriceInBound) {
            priceOut = woPrice_;
            feasible = true;
        } else {
            if (clOracles[base].cloPreferred) {
                priceOut = cloPrice_;
                feasible = cloPrice_ != 0;
            } else {
                priceOut = 0;
                feasible = false;
            }
        }
    }

    function decimals(address base) external view override returns (uint8) {
        uint8 d = clOracles[base].decimal;
        return d != 0 ? d : 8;
    }

    function cloPrice(address base) external view override returns (uint256, uint256) {
        return _cloPriceInQuote(base, quoteToken);
    }

    function isWoFeasible(address base) external view override returns (bool) {
        return infos[base].price != 0 && block.timestamp <= (timestamp + staleDuration);
    }

    function woSpread(address base) external view override returns (uint64) {
        return infos[base].spread;
    }

    function woCoeff(address base) external view override returns (uint64) {
        return infos[base].coeff;
    }

    // Wooracle price of the base token
    function woPrice(address base) external view override returns (uint128 priceOut, uint256 priceTimestampOut) {
        priceOut = infos[base].price;
        priceTimestampOut = timestamp;
    }

    function woState(address base) external view override returns (State memory) {
        TokenInfo memory info = infos[base];
        return
            State({
                price: info.price,
                spread: info.spread,
                coeff: info.coeff,
                woFeasible: (info.price != 0 && block.timestamp <= (timestamp + staleDuration))
            });
    }

    function state(address base) external view override returns (State memory) {
        TokenInfo memory info = infos[base];
        (uint256 basePrice, bool feasible) = price(base);
        return State({price: uint128(basePrice), spread: info.spread, coeff: info.coeff, woFeasible: feasible});
    }

    function cloAddress(address base) external view override returns (address clo) {
        clo = clOracles[base].oracle;
    }

    /* ----- Private Functions ----- */
    function _setState(
        address base,
        uint128 newPrice,
        uint64 newSpread,
        uint64 newCoeff
    ) private {
        TokenInfo storage info = infos[base];
        info.price = newPrice;
        info.spread = newSpread;
        info.coeff = newCoeff;
    }

    function _cloPriceInQuote(address fromToken, address toToken)
        private
        view
        returns (uint256 refPrice, uint256 refTimestamp)
    {
        address baseOracle = clOracles[fromToken].oracle;
        if (baseOracle == address(0)) {
            return (0, 0);
        }
        address quoteOracle = clOracles[toToken].oracle;
        uint8 quoteDecimal = clOracles[toToken].decimal;

        (, int256 rawBaseRefPrice, , uint256 baseUpdatedAt, ) = AggregatorV3Interface(baseOracle).latestRoundData();
        (, int256 rawQuoteRefPrice, , uint256 quoteUpdatedAt, ) = AggregatorV3Interface(quoteOracle).latestRoundData();
        uint256 baseRefPrice = uint256(rawBaseRefPrice);
        uint256 quoteRefPrice = uint256(rawQuoteRefPrice);

        // NOTE: Assume wooracle token decimal is same as chainlink token decimal.
        uint256 ceoff = uint256(10)**quoteDecimal;
        refPrice = (baseRefPrice * ceoff) / quoteRefPrice;
        refTimestamp = baseUpdatedAt >= quoteUpdatedAt ? quoteUpdatedAt : baseUpdatedAt;
    }
}

Contract Security Audit

Contract ABI

API
[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"inputs":[],"name":"bound","outputs":[{"internalType":"uint64","name":"","type":"uint64"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"clOracles","outputs":[{"internalType":"address","name":"oracle","type":"address"},{"internalType":"uint8","name":"decimal","type":"uint8"},{"internalType":"bool","name":"cloPreferred","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"base","type":"address"}],"name":"cloAddress","outputs":[{"internalType":"address","name":"clo","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"base","type":"address"}],"name":"cloPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"base","type":"address"}],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"infos","outputs":[{"internalType":"uint128","name":"price","type":"uint128"},{"internalType":"uint64","name":"coeff","type":"uint64"},{"internalType":"uint64","name":"spread","type":"uint64"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"isAdmin","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"base","type":"address"}],"name":"isWoFeasible","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"base","type":"address"},{"internalType":"uint128","name":"newPrice","type":"uint128"}],"name":"postPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"bases","type":"address[]"},{"internalType":"uint128[]","name":"newPrices","type":"uint128[]"}],"name":"postPriceList","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"base","type":"address"},{"internalType":"uint64","name":"newSpread","type":"uint64"}],"name":"postSpread","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"bases","type":"address[]"},{"internalType":"uint64[]","name":"newSpreads","type":"uint64[]"}],"name":"postSpreadList","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"base","type":"address"},{"internalType":"uint128","name":"newPrice","type":"uint128"},{"internalType":"uint64","name":"newSpread","type":"uint64"},{"internalType":"uint64","name":"newCoeff","type":"uint64"}],"name":"postState","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"bases","type":"address[]"},{"internalType":"uint128[]","name":"newPrices","type":"uint128[]"},{"internalType":"uint64[]","name":"newSpreads","type":"uint64[]"},{"internalType":"uint64[]","name":"newCoeffs","type":"uint64[]"}],"name":"postStateList","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"base","type":"address"}],"name":"price","outputs":[{"internalType":"uint256","name":"priceOut","type":"uint256"},{"internalType":"bool","name":"feasible","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"quoteToken","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"addr","type":"address"},{"internalType":"bool","name":"flag","type":"bool"}],"name":"setAdmin","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint64","name":"_bound","type":"uint64"}],"name":"setBound","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"address","name":"_oracle","type":"address"},{"internalType":"bool","name":"_cloPreferred","type":"bool"}],"name":"setCLOracle","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_quote","type":"address"},{"internalType":"address","name":"_oracle","type":"address"}],"name":"setQuoteToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newStaleDuration","type":"uint256"}],"name":"setStaleDuration","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"staleDuration","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"base","type":"address"}],"name":"state","outputs":[{"components":[{"internalType":"uint128","name":"price","type":"uint128"},{"internalType":"uint64","name":"spread","type":"uint64"},{"internalType":"uint64","name":"coeff","type":"uint64"},{"internalType":"bool","name":"woFeasible","type":"bool"}],"internalType":"struct IWooracleV2.State","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"timestamp","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"base","type":"address"}],"name":"woCoeff","outputs":[{"internalType":"uint64","name":"","type":"uint64"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"base","type":"address"}],"name":"woPrice","outputs":[{"internalType":"uint128","name":"priceOut","type":"uint128"},{"internalType":"uint256","name":"priceTimestampOut","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"base","type":"address"}],"name":"woSpread","outputs":[{"internalType":"uint64","name":"","type":"uint64"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"base","type":"address"}],"name":"woState","outputs":[{"components":[{"internalType":"uint128","name":"price","type":"uint128"},{"internalType":"uint64","name":"spread","type":"uint64"},{"internalType":"uint64","name":"coeff","type":"uint64"},{"internalType":"bool","name":"woFeasible","type":"bool"}],"internalType":"struct IWooracleV2.State","name":"","type":"tuple"}],"stateMutability":"view","type":"function"}]

0x608060405234801561001057600080fd5b5061001a3361003e565b61012c600555600680546001600160401b031916662386f26fc1000017905561008e565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6125b98061009d6000396000f3fe608060405234801561001057600080fd5b50600436106101e55760003560e01c806399235fd41161010f578063c3c0993b116100a2578063d449a83211610071578063d449a83214610681578063d5bade07146106a6578063f2030e73146106b9578063f2fde38b1461075e57600080fd5b8063c3c0993b1461051e578063c6ddb64214610572578063cc6864b11461061c578063d09a568d1461062557600080fd5b8063b80777ea116100de578063b80777ea146104b4578063ba1eba68146104cb578063be4df7d6146104de578063c16116d41461050b57600080fd5b806399235fd4146103f1578063a2c5d01a14610404578063a4a2a8c514610479578063aea910781461048c57600080fd5b806349230eab1161018757806371ea92051161015657806371ea9205146103745780637967d37e146103875780638da5cb5b1461039a57806396bb520f146103b857600080fd5b806349230eab146103335780634b0bddd2146103465780636e27fcd614610359578063715018a61461036c57600080fd5b8063217a4b70116101c3578063217a4b701461023f57806324d7806c1461028457806331e658a5146102b757806337e257fd1461032057600080fd5b80630b7841f5146101ea5780631142e7531461021757806318e072211461022c575b600080fd5b6101fd6101f8366004611f15565b610771565b604080519283526020830191909152015b60405180910390f35b61022a610225366004611f48565b6107a3565b005b61022a61023a366004611fa8565b6107e6565b60035461025f9073ffffffffffffffffffffffffffffffffffffffff1681565b60405173ffffffffffffffffffffffffffffffffffffffff909116815260200161020e565b6102a7610292366004611f15565b60076020526000908152604090205460ff1681565b604051901515815260200161020e565b6102ca6102c5366004611f15565b6109ef565b6040805182516fffffffffffffffffffffffffffffffff16815260208084015167ffffffffffffffff9081169183019190915283830151169181019190915260609182015115159181019190915260800161020e565b6102a761032e366004611f15565b610b0d565b61022a610341366004611fa8565b610b68565b61022a610354366004612024565b610d53565b61022a610367366004612057565b610db1565b61022a610f8c565b61022a6103823660046120a1565b610fa0565b61022a6103953660046120f5565b61111e565b60005473ffffffffffffffffffffffffffffffffffffffff1661025f565b61025f6103c6366004611f15565b73ffffffffffffffffffffffffffffffffffffffff9081166000908152600260205260409020541690565b61022a6103ff3660046121b9565b61135f565b610451610412366004611f15565b73ffffffffffffffffffffffffffffffffffffffff166000908152600160205260409020546004546fffffffffffffffffffffffffffffffff90911691565b604080516fffffffffffffffffffffffffffffffff909316835260208301919091520161020e565b61022a6104873660046121d2565b61141b565b61049f61049a366004611f15565b61162c565b6040805192835290151560208301520161020e565b6104bd60045481565b60405190815260200161020e565b61022a6104d9366004612215565b6117bf565b6006546104f29067ffffffffffffffff1681565b60405167ffffffffffffffff909116815260200161020e565b6102ca610519366004611f15565b6118ed565b6104f261052c366004611f15565b73ffffffffffffffffffffffffffffffffffffffff16600090815260016020526040902054700100000000000000000000000000000000900467ffffffffffffffff1690565b6105e3610580366004611f15565b6001602052600090815260409020546fffffffffffffffffffffffffffffffff81169067ffffffffffffffff7001000000000000000000000000000000008204811691780100000000000000000000000000000000000000000000000090041683565b604080516fffffffffffffffffffffffffffffffff909416845267ffffffffffffffff928316602085015291169082015260600161020e565b6104bd60055481565b6104f2610633366004611f15565b73ffffffffffffffffffffffffffffffffffffffff166000908152600160205260409020547801000000000000000000000000000000000000000000000000900467ffffffffffffffff1690565b61069461068f366004611f15565b6119f2565b60405160ff909116815260200161020e565b61022a6106b436600461223f565b611a4a565b6107286106c7366004611f15565b60026020526000908152604090205473ffffffffffffffffffffffffffffffffffffffff81169060ff740100000000000000000000000000000000000000008204811691750100000000000000000000000000000000000000000090041683565b6040805173ffffffffffffffffffffffffffffffffffffffff909416845260ff909216602084015215159082015260600161020e565b61022a61076c366004611f15565b611b6c565b600354600090819061079a90849073ffffffffffffffffffffffffffffffffffffffff16611c23565b91509150915091565b6107ab611df6565b600680547fffffffffffffffffffffffffffffffffffffffffffffffff00000000000000001667ffffffffffffffff92909216919091179055565b3361080660005473ffffffffffffffffffffffffffffffffffffffff1690565b73ffffffffffffffffffffffffffffffffffffffff16148061083757503360009081526007602052604090205460ff165b6108a2576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601060248201527f576f6f7261636c653a202141646d696e0000000000000000000000000000000060448201526064015b60405180910390fd5b8281811461090c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601860248201527f576f6f7261636c653a206c656e6774685f494e56414c494400000000000000006044820152606401610899565b60005b818110156109e35783838281811061092957610929612269565b905060200201602081019061093e9190611f48565b6001600088888581811061095457610954612269565b90506020020160208101906109699190611f15565b73ffffffffffffffffffffffffffffffffffffffff1681526020810191909152604001600020805467ffffffffffffffff9290921678010000000000000000000000000000000000000000000000000277ffffffffffffffffffffffffffffffffffffffffffffffff90921691909117905560010161090f565b50504260045550505050565b60408051608081018252600080825260208201819052918101829052606081019190915273ffffffffffffffffffffffffffffffffffffffff82166000908152600160209081526040808320815160608101835290546fffffffffffffffffffffffffffffffff8116825267ffffffffffffffff700100000000000000000000000000000000820481169483019490945278010000000000000000000000000000000000000000000000009004909216908201529080610aae8561162c565b915091506040518060800160405280836fffffffffffffffffffffffffffffffff168152602001846040015167ffffffffffffffff168152602001846020015167ffffffffffffffff1681526020018215158152509350505050919050565b73ffffffffffffffffffffffffffffffffffffffff81166000908152600160205260408120546fffffffffffffffffffffffffffffffff1615801590610b625750600554600454610b5e91906122c7565b4211155b92915050565b33610b8860005473ffffffffffffffffffffffffffffffffffffffff1690565b73ffffffffffffffffffffffffffffffffffffffff161480610bb957503360009081526007602052604090205460ff165b610c1f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601060248201527f576f6f7261636c653a202141646d696e000000000000000000000000000000006044820152606401610899565b82818114610c89576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601860248201527f576f6f7261636c653a206c656e6774685f494e56414c494400000000000000006044820152606401610899565b60005b818110156109e357838382818110610ca657610ca6612269565b9050602002016020810190610cbb91906122df565b60016000888885818110610cd157610cd1612269565b9050602002016020810190610ce69190611f15565b73ffffffffffffffffffffffffffffffffffffffff168152602081019190915260400160002080547fffffffffffffffffffffffffffffffff00000000000000000000000000000000166fffffffffffffffffffffffffffffffff92909216919091179055600101610c8c565b610d5b611df6565b73ffffffffffffffffffffffffffffffffffffffff91909116600090815260076020526040902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016911515919091179055565b33610dd160005473ffffffffffffffffffffffffffffffffffffffff1690565b73ffffffffffffffffffffffffffffffffffffffff161480610e0257503360009081526007602052604090205460ff165b610e68576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601060248201527f576f6f7261636c653a202141646d696e000000000000000000000000000000006044820152606401610899565b6003805473ffffffffffffffffffffffffffffffffffffffff8085167fffffffffffffffffffffffff000000000000000000000000000000000000000092831681179093556000928352600260209081526040938490208054928616929093168217835583517f313ce56700000000000000000000000000000000000000000000000000000000815293519293919263313ce5679260048082019392918290030181865afa158015610f1e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f4291906122fa565b815460ff9190911674010000000000000000000000000000000000000000027fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff9091161790555050565b610f94611df6565b610f9e6000611e77565b565b33610fc060005473ffffffffffffffffffffffffffffffffffffffff1690565b73ffffffffffffffffffffffffffffffffffffffff161480610ff157503360009081526007602052604090205460ff165b611057576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601060248201527f576f6f7261636c653a202141646d696e000000000000000000000000000000006044820152606401610899565b73ffffffffffffffffffffffffffffffffffffffff84166000908152600160205260409020805467ffffffffffffffff838116700100000000000000000000000000000000027fffffffffffffffff0000000000000000ffffffffffffffffffffffffffffffff91861678010000000000000000000000000000000000000000000000000277ffffffffffffffff000000000000000000000000000000009093166fffffffffffffffffffffffffffffffff88161792909217161790555050426004555050565b3361113e60005473ffffffffffffffffffffffffffffffffffffffff1690565b73ffffffffffffffffffffffffffffffffffffffff16148061116f57503360009081526007602052604090205460ff165b6111d5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601060248201527f576f6f7261636c653a202141646d696e000000000000000000000000000000006044820152606401610899565b8660005b8181101561134f576113478a8a838181106111f6576111f6612269565b905060200201602081019061120b9190611f15565b89898481811061121d5761121d612269565b905060200201602081019061123291906122df565b88888581811061124457611244612269565b90506020020160208101906112599190611f48565b87878681811061126b5761126b612269565b90506020020160208101906112809190611f48565b73ffffffffffffffffffffffffffffffffffffffff93909316600090815260016020526040902080546fffffffffffffffffffffffffffffffff9390931677ffffffffffffffff0000000000000000000000000000000090931692909217780100000000000000000000000000000000000000000000000067ffffffffffffffff92831602177fffffffffffffffff0000000000000000ffffffffffffffffffffffffffffffff167001000000000000000000000000000000009190931602919091179055565b6001016111d9565b5050426004555050505050505050565b3361137f60005473ffffffffffffffffffffffffffffffffffffffff1690565b73ffffffffffffffffffffffffffffffffffffffff1614806113b057503360009081526007602052604090205460ff165b611416576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601060248201527f576f6f7261636c653a202141646d696e000000000000000000000000000000006044820152606401610899565b600555565b3361143b60005473ffffffffffffffffffffffffffffffffffffffff1690565b73ffffffffffffffffffffffffffffffffffffffff16148061146c57503360009081526007602052604090205460ff165b6114d2576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601060248201527f576f6f7261636c653a202141646d696e000000000000000000000000000000006044820152606401610899565b73ffffffffffffffffffffffffffffffffffffffff83811660009081526002602090815260409182902080547fffffffffffffffffffffffff000000000000000000000000000000000000000016938616938417815582517f313ce567000000000000000000000000000000000000000000000000000000008152925190939263313ce5679260048083019391928290030181865afa158015611579573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061159d91906122fa565b81547fffffffffffffffffffff0000ffffffffffffffffffffffffffffffffffffffff167401000000000000000000000000000000000000000060ff92909216919091027fffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffffff16177501000000000000000000000000000000000000000000921515929092029190911790555050565b73ffffffffffffffffffffffffffffffffffffffff808216600090815260016020526040812054600454600354929384936fffffffffffffffffffffffffffffffff90931692849161168091889116611c23565b509050600083158015906116a0575060055461169c90846122c7565b4211155b9050600082158061173957506006548590670de0b6b3a7640000906116cf9067ffffffffffffffff168261231d565b6116e39067ffffffffffffffff1686612346565b6116ed9190612383565b111580156117395750600654670de0b6b3a7640000906117179067ffffffffffffffff16826123be565b61172b9067ffffffffffffffff1685612346565b6117359190612383565b8511155b90508180156117455750805b1561175657849650600195506117b5565b73ffffffffffffffffffffffffffffffffffffffff88166000908152600260205260409020547501000000000000000000000000000000000000000000900460ff16156117ac57829650826000141595506117b5565b60009650600095505b5050505050915091565b336117df60005473ffffffffffffffffffffffffffffffffffffffff1690565b73ffffffffffffffffffffffffffffffffffffffff16148061181057503360009081526007602052604090205460ff165b611876576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601060248201527f576f6f7261636c653a202141646d696e000000000000000000000000000000006044820152606401610899565b73ffffffffffffffffffffffffffffffffffffffff9091166000908152600160205260409020805467ffffffffffffffff90921678010000000000000000000000000000000000000000000000000277ffffffffffffffffffffffffffffffffffffffffffffffff90921691909117905542600455565b604080516080808201835260008083526020808401829052838501829052606080850183905273ffffffffffffffffffffffffffffffffffffffff8716835260018252918590208551808401875290546fffffffffffffffffffffffffffffffff808216835267ffffffffffffffff7001000000000000000000000000000000008304811684860190815278010000000000000000000000000000000000000000000000009093048116848a0190815289519788018a528451831688525181169487019490945290519092169584019590955284519394939183019116158015906119e757506005546004546119e391906122c7565b4211155b151590529392505050565b73ffffffffffffffffffffffffffffffffffffffff811660009081526002602052604081205474010000000000000000000000000000000000000000900460ff16808203611a41576008611a43565b805b9392505050565b33611a6a60005473ffffffffffffffffffffffffffffffffffffffff1690565b73ffffffffffffffffffffffffffffffffffffffff161480611a9b57503360009081526007602052604090205460ff165b611b01576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601060248201527f576f6f7261636c653a202141646d696e000000000000000000000000000000006044820152606401610899565b73ffffffffffffffffffffffffffffffffffffffff91909116600090815260016020526040902080547fffffffffffffffffffffffffffffffff00000000000000000000000000000000166fffffffffffffffffffffffffffffffff90921691909117905542600455565b611b74611df6565b73ffffffffffffffffffffffffffffffffffffffff8116611c17576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610899565b611c2081611e77565b50565b73ffffffffffffffffffffffffffffffffffffffff808316600090815260026020526040812054909182911680611c61576000809250925050611def565b73ffffffffffffffffffffffffffffffffffffffff8481166000908152600260205260408082205481517ffeaf968c0000000000000000000000000000000000000000000000000000000081529151818516947401000000000000000000000000000000000000000090920460ff169392839287169163feaf968c9160048082019260a0929091908290030181865afa158015611d02573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611d269190612404565b509350509250506000808573ffffffffffffffffffffffffffffffffffffffff1663feaf968c6040518163ffffffff1660e01b815260040160a060405180830381865afa158015611d7b573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611d9f9190612404565b509194509092508591508390506000611db988600a612574565b905081611dc68285612346565b611dd09190612383565b9b5083861015611de05785611de2565b835b9a50505050505050505050505b9250929050565b60005473ffffffffffffffffffffffffffffffffffffffff163314610f9e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610899565b6000805473ffffffffffffffffffffffffffffffffffffffff8381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b803573ffffffffffffffffffffffffffffffffffffffff81168114611f1057600080fd5b919050565b600060208284031215611f2757600080fd5b611a4382611eec565b803567ffffffffffffffff81168114611f1057600080fd5b600060208284031215611f5a57600080fd5b611a4382611f30565b60008083601f840112611f7557600080fd5b50813567ffffffffffffffff811115611f8d57600080fd5b6020830191508360208260051b8501011115611def57600080fd5b60008060008060408587031215611fbe57600080fd5b843567ffffffffffffffff80821115611fd657600080fd5b611fe288838901611f63565b90965094506020870135915080821115611ffb57600080fd5b5061200887828801611f63565b95989497509550505050565b80358015158114611f1057600080fd5b6000806040838503121561203757600080fd5b61204083611eec565b915061204e60208401612014565b90509250929050565b6000806040838503121561206a57600080fd5b61207383611eec565b915061204e60208401611eec565b80356fffffffffffffffffffffffffffffffff81168114611f1057600080fd5b600080600080608085870312156120b757600080fd5b6120c085611eec565b93506120ce60208601612081565b92506120dc60408601611f30565b91506120ea60608601611f30565b905092959194509250565b6000806000806000806000806080898b03121561211157600080fd5b883567ffffffffffffffff8082111561212957600080fd5b6121358c838d01611f63565b909a50985060208b013591508082111561214e57600080fd5b61215a8c838d01611f63565b909850965060408b013591508082111561217357600080fd5b61217f8c838d01611f63565b909650945060608b013591508082111561219857600080fd5b506121a58b828c01611f63565b999c989b5096995094979396929594505050565b6000602082840312156121cb57600080fd5b5035919050565b6000806000606084860312156121e757600080fd5b6121f084611eec565b92506121fe60208501611eec565b915061220c60408501612014565b90509250925092565b6000806040838503121561222857600080fd5b61223183611eec565b915061204e60208401611f30565b6000806040838503121561225257600080fd5b61225b83611eec565b915061204e60208401612081565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600082198211156122da576122da612298565b500190565b6000602082840312156122f157600080fd5b611a4382612081565b60006020828403121561230c57600080fd5b815160ff81168114611a4357600080fd5b600067ffffffffffffffff8381169083168181101561233e5761233e612298565b039392505050565b6000817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048311821515161561237e5761237e612298565b500290565b6000826123b9577f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b500490565b600067ffffffffffffffff8083168185168083038211156123e1576123e1612298565b01949350505050565b805169ffffffffffffffffffff81168114611f1057600080fd5b600080600080600060a0868803121561241c57600080fd5b612425866123ea565b9450602086015193506040860151925060608601519150612448608087016123ea565b90509295509295909350565b600181815b808511156124ad57817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0482111561249357612493612298565b808516156124a057918102915b93841c9390800290612459565b509250929050565b6000826124c457506001610b62565b816124d157506000610b62565b81600181146124e757600281146124f15761250d565b6001915050610b62565b60ff84111561250257612502612298565b50506001821b610b62565b5060208310610133831016604e8410600b8410161715612530575081810a610b62565b61253a8383612454565b807fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0482111561256c5761256c612298565b029392505050565b6000611a4360ff8416836124b556fea264697066735822122082154ac5fa95a702d455351543a02b0471faa1f0830c19e0c150e01fb9099c4964736f6c634300080e0033

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106101e55760003560e01c806399235fd41161010f578063c3c0993b116100a2578063d449a83211610071578063d449a83214610681578063d5bade07146106a6578063f2030e73146106b9578063f2fde38b1461075e57600080fd5b8063c3c0993b1461051e578063c6ddb64214610572578063cc6864b11461061c578063d09a568d1461062557600080fd5b8063b80777ea116100de578063b80777ea146104b4578063ba1eba68146104cb578063be4df7d6146104de578063c16116d41461050b57600080fd5b806399235fd4146103f1578063a2c5d01a14610404578063a4a2a8c514610479578063aea910781461048c57600080fd5b806349230eab1161018757806371ea92051161015657806371ea9205146103745780637967d37e146103875780638da5cb5b1461039a57806396bb520f146103b857600080fd5b806349230eab146103335780634b0bddd2146103465780636e27fcd614610359578063715018a61461036c57600080fd5b8063217a4b70116101c3578063217a4b701461023f57806324d7806c1461028457806331e658a5146102b757806337e257fd1461032057600080fd5b80630b7841f5146101ea5780631142e7531461021757806318e072211461022c575b600080fd5b6101fd6101f8366004611f15565b610771565b604080519283526020830191909152015b60405180910390f35b61022a610225366004611f48565b6107a3565b005b61022a61023a366004611fa8565b6107e6565b60035461025f9073ffffffffffffffffffffffffffffffffffffffff1681565b60405173ffffffffffffffffffffffffffffffffffffffff909116815260200161020e565b6102a7610292366004611f15565b60076020526000908152604090205460ff1681565b604051901515815260200161020e565b6102ca6102c5366004611f15565b6109ef565b6040805182516fffffffffffffffffffffffffffffffff16815260208084015167ffffffffffffffff9081169183019190915283830151169181019190915260609182015115159181019190915260800161020e565b6102a761032e366004611f15565b610b0d565b61022a610341366004611fa8565b610b68565b61022a610354366004612024565b610d53565b61022a610367366004612057565b610db1565b61022a610f8c565b61022a6103823660046120a1565b610fa0565b61022a6103953660046120f5565b61111e565b60005473ffffffffffffffffffffffffffffffffffffffff1661025f565b61025f6103c6366004611f15565b73ffffffffffffffffffffffffffffffffffffffff9081166000908152600260205260409020541690565b61022a6103ff3660046121b9565b61135f565b610451610412366004611f15565b73ffffffffffffffffffffffffffffffffffffffff166000908152600160205260409020546004546fffffffffffffffffffffffffffffffff90911691565b604080516fffffffffffffffffffffffffffffffff909316835260208301919091520161020e565b61022a6104873660046121d2565b61141b565b61049f61049a366004611f15565b61162c565b6040805192835290151560208301520161020e565b6104bd60045481565b60405190815260200161020e565b61022a6104d9366004612215565b6117bf565b6006546104f29067ffffffffffffffff1681565b60405167ffffffffffffffff909116815260200161020e565b6102ca610519366004611f15565b6118ed565b6104f261052c366004611f15565b73ffffffffffffffffffffffffffffffffffffffff16600090815260016020526040902054700100000000000000000000000000000000900467ffffffffffffffff1690565b6105e3610580366004611f15565b6001602052600090815260409020546fffffffffffffffffffffffffffffffff81169067ffffffffffffffff7001000000000000000000000000000000008204811691780100000000000000000000000000000000000000000000000090041683565b604080516fffffffffffffffffffffffffffffffff909416845267ffffffffffffffff928316602085015291169082015260600161020e565b6104bd60055481565b6104f2610633366004611f15565b73ffffffffffffffffffffffffffffffffffffffff166000908152600160205260409020547801000000000000000000000000000000000000000000000000900467ffffffffffffffff1690565b61069461068f366004611f15565b6119f2565b60405160ff909116815260200161020e565b61022a6106b436600461223f565b611a4a565b6107286106c7366004611f15565b60026020526000908152604090205473ffffffffffffffffffffffffffffffffffffffff81169060ff740100000000000000000000000000000000000000008204811691750100000000000000000000000000000000000000000090041683565b6040805173ffffffffffffffffffffffffffffffffffffffff909416845260ff909216602084015215159082015260600161020e565b61022a61076c366004611f15565b611b6c565b600354600090819061079a90849073ffffffffffffffffffffffffffffffffffffffff16611c23565b91509150915091565b6107ab611df6565b600680547fffffffffffffffffffffffffffffffffffffffffffffffff00000000000000001667ffffffffffffffff92909216919091179055565b3361080660005473ffffffffffffffffffffffffffffffffffffffff1690565b73ffffffffffffffffffffffffffffffffffffffff16148061083757503360009081526007602052604090205460ff165b6108a2576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601060248201527f576f6f7261636c653a202141646d696e0000000000000000000000000000000060448201526064015b60405180910390fd5b8281811461090c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601860248201527f576f6f7261636c653a206c656e6774685f494e56414c494400000000000000006044820152606401610899565b60005b818110156109e35783838281811061092957610929612269565b905060200201602081019061093e9190611f48565b6001600088888581811061095457610954612269565b90506020020160208101906109699190611f15565b73ffffffffffffffffffffffffffffffffffffffff1681526020810191909152604001600020805467ffffffffffffffff9290921678010000000000000000000000000000000000000000000000000277ffffffffffffffffffffffffffffffffffffffffffffffff90921691909117905560010161090f565b50504260045550505050565b60408051608081018252600080825260208201819052918101829052606081019190915273ffffffffffffffffffffffffffffffffffffffff82166000908152600160209081526040808320815160608101835290546fffffffffffffffffffffffffffffffff8116825267ffffffffffffffff700100000000000000000000000000000000820481169483019490945278010000000000000000000000000000000000000000000000009004909216908201529080610aae8561162c565b915091506040518060800160405280836fffffffffffffffffffffffffffffffff168152602001846040015167ffffffffffffffff168152602001846020015167ffffffffffffffff1681526020018215158152509350505050919050565b73ffffffffffffffffffffffffffffffffffffffff81166000908152600160205260408120546fffffffffffffffffffffffffffffffff1615801590610b625750600554600454610b5e91906122c7565b4211155b92915050565b33610b8860005473ffffffffffffffffffffffffffffffffffffffff1690565b73ffffffffffffffffffffffffffffffffffffffff161480610bb957503360009081526007602052604090205460ff165b610c1f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601060248201527f576f6f7261636c653a202141646d696e000000000000000000000000000000006044820152606401610899565b82818114610c89576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601860248201527f576f6f7261636c653a206c656e6774685f494e56414c494400000000000000006044820152606401610899565b60005b818110156109e357838382818110610ca657610ca6612269565b9050602002016020810190610cbb91906122df565b60016000888885818110610cd157610cd1612269565b9050602002016020810190610ce69190611f15565b73ffffffffffffffffffffffffffffffffffffffff168152602081019190915260400160002080547fffffffffffffffffffffffffffffffff00000000000000000000000000000000166fffffffffffffffffffffffffffffffff92909216919091179055600101610c8c565b610d5b611df6565b73ffffffffffffffffffffffffffffffffffffffff91909116600090815260076020526040902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016911515919091179055565b33610dd160005473ffffffffffffffffffffffffffffffffffffffff1690565b73ffffffffffffffffffffffffffffffffffffffff161480610e0257503360009081526007602052604090205460ff165b610e68576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601060248201527f576f6f7261636c653a202141646d696e000000000000000000000000000000006044820152606401610899565b6003805473ffffffffffffffffffffffffffffffffffffffff8085167fffffffffffffffffffffffff000000000000000000000000000000000000000092831681179093556000928352600260209081526040938490208054928616929093168217835583517f313ce56700000000000000000000000000000000000000000000000000000000815293519293919263313ce5679260048082019392918290030181865afa158015610f1e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f4291906122fa565b815460ff9190911674010000000000000000000000000000000000000000027fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff9091161790555050565b610f94611df6565b610f9e6000611e77565b565b33610fc060005473ffffffffffffffffffffffffffffffffffffffff1690565b73ffffffffffffffffffffffffffffffffffffffff161480610ff157503360009081526007602052604090205460ff165b611057576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601060248201527f576f6f7261636c653a202141646d696e000000000000000000000000000000006044820152606401610899565b73ffffffffffffffffffffffffffffffffffffffff84166000908152600160205260409020805467ffffffffffffffff838116700100000000000000000000000000000000027fffffffffffffffff0000000000000000ffffffffffffffffffffffffffffffff91861678010000000000000000000000000000000000000000000000000277ffffffffffffffff000000000000000000000000000000009093166fffffffffffffffffffffffffffffffff88161792909217161790555050426004555050565b3361113e60005473ffffffffffffffffffffffffffffffffffffffff1690565b73ffffffffffffffffffffffffffffffffffffffff16148061116f57503360009081526007602052604090205460ff165b6111d5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601060248201527f576f6f7261636c653a202141646d696e000000000000000000000000000000006044820152606401610899565b8660005b8181101561134f576113478a8a838181106111f6576111f6612269565b905060200201602081019061120b9190611f15565b89898481811061121d5761121d612269565b905060200201602081019061123291906122df565b88888581811061124457611244612269565b90506020020160208101906112599190611f48565b87878681811061126b5761126b612269565b90506020020160208101906112809190611f48565b73ffffffffffffffffffffffffffffffffffffffff93909316600090815260016020526040902080546fffffffffffffffffffffffffffffffff9390931677ffffffffffffffff0000000000000000000000000000000090931692909217780100000000000000000000000000000000000000000000000067ffffffffffffffff92831602177fffffffffffffffff0000000000000000ffffffffffffffffffffffffffffffff167001000000000000000000000000000000009190931602919091179055565b6001016111d9565b5050426004555050505050505050565b3361137f60005473ffffffffffffffffffffffffffffffffffffffff1690565b73ffffffffffffffffffffffffffffffffffffffff1614806113b057503360009081526007602052604090205460ff165b611416576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601060248201527f576f6f7261636c653a202141646d696e000000000000000000000000000000006044820152606401610899565b600555565b3361143b60005473ffffffffffffffffffffffffffffffffffffffff1690565b73ffffffffffffffffffffffffffffffffffffffff16148061146c57503360009081526007602052604090205460ff165b6114d2576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601060248201527f576f6f7261636c653a202141646d696e000000000000000000000000000000006044820152606401610899565b73ffffffffffffffffffffffffffffffffffffffff83811660009081526002602090815260409182902080547fffffffffffffffffffffffff000000000000000000000000000000000000000016938616938417815582517f313ce567000000000000000000000000000000000000000000000000000000008152925190939263313ce5679260048083019391928290030181865afa158015611579573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061159d91906122fa565b81547fffffffffffffffffffff0000ffffffffffffffffffffffffffffffffffffffff167401000000000000000000000000000000000000000060ff92909216919091027fffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffffff16177501000000000000000000000000000000000000000000921515929092029190911790555050565b73ffffffffffffffffffffffffffffffffffffffff808216600090815260016020526040812054600454600354929384936fffffffffffffffffffffffffffffffff90931692849161168091889116611c23565b509050600083158015906116a0575060055461169c90846122c7565b4211155b9050600082158061173957506006548590670de0b6b3a7640000906116cf9067ffffffffffffffff168261231d565b6116e39067ffffffffffffffff1686612346565b6116ed9190612383565b111580156117395750600654670de0b6b3a7640000906117179067ffffffffffffffff16826123be565b61172b9067ffffffffffffffff1685612346565b6117359190612383565b8511155b90508180156117455750805b1561175657849650600195506117b5565b73ffffffffffffffffffffffffffffffffffffffff88166000908152600260205260409020547501000000000000000000000000000000000000000000900460ff16156117ac57829650826000141595506117b5565b60009650600095505b5050505050915091565b336117df60005473ffffffffffffffffffffffffffffffffffffffff1690565b73ffffffffffffffffffffffffffffffffffffffff16148061181057503360009081526007602052604090205460ff165b611876576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601060248201527f576f6f7261636c653a202141646d696e000000000000000000000000000000006044820152606401610899565b73ffffffffffffffffffffffffffffffffffffffff9091166000908152600160205260409020805467ffffffffffffffff90921678010000000000000000000000000000000000000000000000000277ffffffffffffffffffffffffffffffffffffffffffffffff90921691909117905542600455565b604080516080808201835260008083526020808401829052838501829052606080850183905273ffffffffffffffffffffffffffffffffffffffff8716835260018252918590208551808401875290546fffffffffffffffffffffffffffffffff808216835267ffffffffffffffff7001000000000000000000000000000000008304811684860190815278010000000000000000000000000000000000000000000000009093048116848a0190815289519788018a528451831688525181169487019490945290519092169584019590955284519394939183019116158015906119e757506005546004546119e391906122c7565b4211155b151590529392505050565b73ffffffffffffffffffffffffffffffffffffffff811660009081526002602052604081205474010000000000000000000000000000000000000000900460ff16808203611a41576008611a43565b805b9392505050565b33611a6a60005473ffffffffffffffffffffffffffffffffffffffff1690565b73ffffffffffffffffffffffffffffffffffffffff161480611a9b57503360009081526007602052604090205460ff165b611b01576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601060248201527f576f6f7261636c653a202141646d696e000000000000000000000000000000006044820152606401610899565b73ffffffffffffffffffffffffffffffffffffffff91909116600090815260016020526040902080547fffffffffffffffffffffffffffffffff00000000000000000000000000000000166fffffffffffffffffffffffffffffffff90921691909117905542600455565b611b74611df6565b73ffffffffffffffffffffffffffffffffffffffff8116611c17576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610899565b611c2081611e77565b50565b73ffffffffffffffffffffffffffffffffffffffff808316600090815260026020526040812054909182911680611c61576000809250925050611def565b73ffffffffffffffffffffffffffffffffffffffff8481166000908152600260205260408082205481517ffeaf968c0000000000000000000000000000000000000000000000000000000081529151818516947401000000000000000000000000000000000000000090920460ff169392839287169163feaf968c9160048082019260a0929091908290030181865afa158015611d02573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611d269190612404565b509350509250506000808573ffffffffffffffffffffffffffffffffffffffff1663feaf968c6040518163ffffffff1660e01b815260040160a060405180830381865afa158015611d7b573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611d9f9190612404565b509194509092508591508390506000611db988600a612574565b905081611dc68285612346565b611dd09190612383565b9b5083861015611de05785611de2565b835b9a50505050505050505050505b9250929050565b60005473ffffffffffffffffffffffffffffffffffffffff163314610f9e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610899565b6000805473ffffffffffffffffffffffffffffffffffffffff8381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b803573ffffffffffffffffffffffffffffffffffffffff81168114611f1057600080fd5b919050565b600060208284031215611f2757600080fd5b611a4382611eec565b803567ffffffffffffffff81168114611f1057600080fd5b600060208284031215611f5a57600080fd5b611a4382611f30565b60008083601f840112611f7557600080fd5b50813567ffffffffffffffff811115611f8d57600080fd5b6020830191508360208260051b8501011115611def57600080fd5b60008060008060408587031215611fbe57600080fd5b843567ffffffffffffffff80821115611fd657600080fd5b611fe288838901611f63565b90965094506020870135915080821115611ffb57600080fd5b5061200887828801611f63565b95989497509550505050565b80358015158114611f1057600080fd5b6000806040838503121561203757600080fd5b61204083611eec565b915061204e60208401612014565b90509250929050565b6000806040838503121561206a57600080fd5b61207383611eec565b915061204e60208401611eec565b80356fffffffffffffffffffffffffffffffff81168114611f1057600080fd5b600080600080608085870312156120b757600080fd5b6120c085611eec565b93506120ce60208601612081565b92506120dc60408601611f30565b91506120ea60608601611f30565b905092959194509250565b6000806000806000806000806080898b03121561211157600080fd5b883567ffffffffffffffff8082111561212957600080fd5b6121358c838d01611f63565b909a50985060208b013591508082111561214e57600080fd5b61215a8c838d01611f63565b909850965060408b013591508082111561217357600080fd5b61217f8c838d01611f63565b909650945060608b013591508082111561219857600080fd5b506121a58b828c01611f63565b999c989b5096995094979396929594505050565b6000602082840312156121cb57600080fd5b5035919050565b6000806000606084860312156121e757600080fd5b6121f084611eec565b92506121fe60208501611eec565b915061220c60408501612014565b90509250925092565b6000806040838503121561222857600080fd5b61223183611eec565b915061204e60208401611f30565b6000806040838503121561225257600080fd5b61225b83611eec565b915061204e60208401612081565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600082198211156122da576122da612298565b500190565b6000602082840312156122f157600080fd5b611a4382612081565b60006020828403121561230c57600080fd5b815160ff81168114611a4357600080fd5b600067ffffffffffffffff8381169083168181101561233e5761233e612298565b039392505050565b6000817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048311821515161561237e5761237e612298565b500290565b6000826123b9577f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b500490565b600067ffffffffffffffff8083168185168083038211156123e1576123e1612298565b01949350505050565b805169ffffffffffffffffffff81168114611f1057600080fd5b600080600080600060a0868803121561241c57600080fd5b612425866123ea565b9450602086015193506040860151925060608601519150612448608087016123ea565b90509295509295909350565b600181815b808511156124ad57817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0482111561249357612493612298565b808516156124a057918102915b93841c9390800290612459565b509250929050565b6000826124c457506001610b62565b816124d157506000610b62565b81600181146124e757600281146124f15761250d565b6001915050610b62565b60ff84111561250257612502612298565b50506001821b610b62565b5060208310610133831016604e8410600b8410161715612530575081810a610b62565b61253a8383612454565b807fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0482111561256c5761256c612298565b029392505050565b6000611a4360ff8416836124b556fea264697066735822122082154ac5fa95a702d455351543a02b0471faa1f0830c19e0c150e01fb9099c4964736f6c634300080e0033

Deployed Bytecode Sourcemap

31546:9773:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;38247:142;;;;;;:::i;:::-;;:::i;:::-;;;;580:25:1;;;636:2;621:18;;614:34;;;;553:18;38247:142:0;;;;;;;;33052:85;;;;;;:::i;:::-;;:::i;:::-;;35260:420;;;;;;:::i;:::-;;:::i;32103:34::-;;;;;;;;;;;;2349:42:1;2337:55;;;2319:74;;2307:2;2292:18;32103:34:0;2173:226:1;32249:39:0;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;2569:14:1;;2562:22;2544:41;;2532:2;2517:18;32249:39:0;2404:187:1;39467:302:0;;;;;;:::i;:::-;;:::i;:::-;;;;2807:13:1;;2822:34;2803:54;2785:73;;2905:4;2893:17;;;2887:24;2930:18;2986:21;;;2964:20;;;2957:51;;;;3056:17;;;3050:24;3046:33;3024:20;;;3017:63;;;;3150:4;3138:17;;;3132:24;3125:32;3118:40;3096:20;;;3089:70;;;;2772:3;2757:19;39467:302:0;2596:569:1;38397:172:0;;;;;;:::i;:::-;;:::i;34173:652::-;;;;;;:::i;:::-;;:::i;32580:101::-;;;;;;:::i;:::-;;:::i;32774:270::-;;;;;;:::i;:::-;;:::i;7484:103::-;;;:::i;35918:251::-;;;;;;:::i;:::-;;:::i;36439:466::-;;;;;;:::i;:::-;;:::i;6836:87::-;6882:7;6909:6;;;6836:87;;39777:126;;;;;;:::i;:::-;39873:15;;;;39843:11;39873:15;;;:9;:15;;;;;:22;;;39777:126;33582:122;;;;;;:::i;:::-;;:::i;38864:195::-;;;;;;:::i;:::-;38994:11;;38927:16;38994:11;;;:5;:11;;;;;:17;39042:9;;38994:17;;;;;38864:195;;;;;7036:34:1;7024:47;;;7006:66;;7103:2;7088:18;;7081:34;;;;6979:18;38864:195:0;6832:289:1;33145:336:0;;;;;;:::i;:::-;;:::i;37160:916::-;;;;;;:::i;:::-;;:::i;:::-;;;;7627:25:1;;;7695:14;;7688:22;7683:2;7668:18;;7661:50;7600:18;37160:916:0;7459:258:1;32144:33:0;;;;;;;;;7868:25:1;;;7856:2;7841:18;32144:33:0;7722:177:1;34953:158:0;;;;;;:::i;:::-;;:::i;32221:19::-;;;;;;;;;;;;8341:18:1;8329:31;;;8311:50;;8299:2;8284:18;32221:19:0;8167:200:1;39067:392:0;;;;;;:::i;:::-;;:::i;38701:114::-;;;;;;:::i;:::-;38790:11;;38764:6;38790:11;;;:5;:11;;;;;:17;;;;;;;38701:114;31998:42;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8600:34:1;8588:47;;;8570:66;;8655:18;8709:15;;;8704:2;8689:18;;8682:43;8761:15;;8741:18;;;8734:43;8558:2;8543:18;31998:42:0;8372:411:1;32186:28:0;;;;;;38577:116;;;;;;:::i;:::-;38667:11;;38641:6;38667:11;;;:5;:11;;;;;:18;;;;;;;38577:116;38084:155;;;;;;:::i;:::-;;:::i;:::-;;;8960:4:1;8948:17;;;8930:36;;8918:2;8903:18;38084:155:0;8788:184:1;33858:164:0;;;;;;:::i;:::-;;:::i;32049:45::-;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;9464:42:1;9452:55;;;9434:74;;9556:4;9544:17;;;9539:2;9524:18;;9517:45;9605:14;9598:22;9578:18;;;9571:50;9422:2;9407:18;32049:45:0;9242:385:1;7742:201:0;;;;;;:::i;:::-;;:::i;38247:142::-;38370:10;;38311:7;;;;38347:34;;38364:4;;38370:10;;38347:16;:34::i;:::-;38340:41;;;;38247:142;;;:::o;33052:85::-;6722:13;:11;:13::i;:::-;33115:5:::1;:14:::0;;;::::1;;::::0;;;::::1;::::0;;;::::1;::::0;;33052:85::o;35260:420::-;32454:10;32443:7;6882;6909:6;;;;6836:87;32443:7;:21;;;:44;;;-1:-1:-1;32476:10:0;32468:19;;;;:7;:19;;;;;;;;32443:44;32435:73;;;;;;;9834:2:1;32435:73:0;;;9816:21:1;9873:2;9853:18;;;9846:30;9912:18;9892;;;9885:46;9948:18;;32435:73:0;;;;;;;;;35387:5;35418:27;;::::1;35410:64;;;::::0;::::1;::::0;;10179:2:1;35410:64:0::1;::::0;::::1;10161:21:1::0;10218:2;10198:18;;;10191:30;10257:26;10237:18;;;10230:54;10301:18;;35410:64:0::1;9977:348:1::0;35410:64:0::1;35517:9;35512:110;35536:6;35532:1;:10;35512:110;;;35593:10;;35604:1;35593:13;;;;;;;:::i;:::-;;;;;;;;;;;;;;:::i;:::-;35568:5;:15;35574:5;;35580:1;35574:8;;;;;;;:::i;:::-;;;;;;;;;;;;;;:::i;:::-;35568:15;;::::0;;::::1;::::0;::::1;::::0;;;;;;-1:-1:-1;35568:15:0;:38;;::::1;::::0;;;::::1;::::0;::::1;::::0;;;::::1;::::0;;;::::1;::::0;;-1:-1:-1;35544:3:0::1;35512:110;;;-1:-1:-1::0;;35657:15:0::1;35645:9;:27:::0;-1:-1:-1;;;;35260:420:0:o;39467:302::-;-1:-1:-1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;39577:11:0;;;39553:21;39577:11;;;:5;:11;;;;;;;;39553:35;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:21;39636:11;39583:4;39636:5;:11::i;:::-;39599:48;;;;39665:96;;;;;;;;39687:9;39665:96;;;;;;39707:4;:11;;;39665:96;;;;;;39727:4;:10;;;39665:96;;;;;;39751:8;39665:96;;;;;39658:103;;;;;39467:302;;;:::o;38397:172::-;38489:11;;;38465:4;38489:11;;;:5;:11;;;;;:17;;;:22;;;;:72;;;38547:13;;38535:9;;:25;;;;:::i;:::-;38515:15;:46;;38489:72;38482:79;38397:172;-1:-1:-1;;38397:172:0:o;34173:652::-;32454:10;32443:7;6882;6909:6;;;;6836:87;32443:7;:21;;;:44;;;-1:-1:-1;32476:10:0;32468:19;;;;:7;:19;;;;;;;;32443:44;32435:73;;;;;;;9834:2:1;32435:73:0;;;9816:21:1;9873:2;9853:18;;;9846:30;9912:18;9892;;;9885:46;9948:18;;32435:73:0;9632:340:1;32435:73:0;34299:5;34330:26;;::::1;34322:63;;;::::0;::::1;::::0;;10179:2:1;34322:63:0::1;::::0;::::1;10161:21:1::0;10218:2;10198:18;;;10191:30;10257:26;10237:18;;;10230:54;10301:18;;34322:63:0::1;9977:348:1::0;34322:63:0::1;34664:9;34659:108;34683:6;34679:1;:10;34659:108;;;34739:9;;34749:1;34739:12;;;;;;;:::i;:::-;;;;;;;;;;;;;;:::i;:::-;34715:5;:15;34721:5;;34727:1;34721:8;;;;;;;:::i;:::-;;;;;;;;;;;;;;:::i;:::-;34715:15;;::::0;;::::1;::::0;::::1;::::0;;;;;;-1:-1:-1;34715:15:0;:36;;;::::1;;::::0;;;::::1;::::0;;;::::1;::::0;;-1:-1:-1;34691:3:0::1;34659:108;;32580:101:::0;6722:13;:11;:13::i;:::-;32653::::1;::::0;;;::::1;;::::0;;;:7:::1;:13;::::0;;;;:20;;;::::1;::::0;::::1;;::::0;;;::::1;::::0;;32580:101::o;32774:270::-;32454:10;32443:7;6882;6909:6;;;;6836:87;32443:7;:21;;;:44;;;-1:-1:-1;32476:10:0;32468:19;;;;:7;:19;;;;;;;;32443:44;32435:73;;;;;;;9834:2:1;32435:73:0;;;9816:21:1;9873:2;9853:18;;;9846:30;9912:18;9892;;;9885:46;9948:18;;32435:73:0;9632:340:1;32435:73:0;32860:10:::1;:19:::0;;::::1;::::0;;::::1;::::0;;;::::1;::::0;::::1;::::0;;;:10:::1;32916:17:::0;;;:9:::1;:17;::::0;;;;;;;;32944:23;;;;::::1;::::0;;;::::1;::::0;::::1;::::0;;32995:41;;;;;;;32916:17;;32944:23;;32995:39:::1;::::0;:41:::1;::::0;;::::1;::::0;32916:17;32995:41;;;;;;32944:23;32995:41:::1;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;32978:58:::0;;::::1;::::0;;;::::1;::::0;::::1;::::0;;;::::1;;::::0;;-1:-1:-1;;32774:270:0:o;7484:103::-;6722:13;:11;:13::i;:::-;7549:30:::1;7576:1;7549:18;:30::i;:::-;7484:103::o:0;35918:251::-;32454:10;32443:7;6882;6909:6;;;;6836:87;32443:7;:21;;;:44;;;-1:-1:-1;32476:10:0;32468:19;;;;:7;:19;;;;;;;;32443:44;32435:73;;;;;;;9834:2:1;32435:73:0;;;9816:21:1;9873:2;9853:18;;;9846:30;9912:18;9892;;;9885:46;9948:18;;32435:73:0;9632:340:1;32435:73:0;40125:11;;;40100:22;40125:11;;;:5;:11;;;;;40147:21;;40179:23;40213:21;;;;;;40179:23;;;;;;;;;40147:21;;;40179:23;;;;;40213:21;;;;-1:-1:-1;;36146:15:0::1;36134:9;:27:::0;-1:-1:-1;;35918:251:0:o;36439:466::-;32454:10;32443:7;6882;6909:6;;;;6836:87;32443:7;:21;;;:44;;;-1:-1:-1;32476:10:0;32468:19;;;;:7;:19;;;;;;;;32443:44;32435:73;;;;;;;9834:2:1;32435:73:0;;;9816:21:1;9873:2;9853:18;;;9846:30;9912:18;9892;;;9885:46;9948:18;;32435:73:0;9632:340:1;32435:73:0;36667:5;36650:14:::1;36715:134;36739:6;36735:1;:10;36715:134;;;36771:62;36781:5;;36787:1;36781:8;;;;;;;:::i;:::-;;;;;;;;;;;;;;:::i;:::-;36791:9;;36801:1;36791:12;;;;;;;:::i;:::-;;;;;;;;;;;;;;:::i;:::-;36805:10;;36816:1;36805:13;;;;;;;:::i;:::-;;;;;;;;;;;;;;:::i;:::-;36820:9;;36830:1;36820:12;;;;;;;:::i;:::-;;;;;;;;;;;;;;:::i;:::-;40125:11:::0;;;;;40100:22;40125:11;;;:5;:11;;;;;40147:21;;;;;;;40179:23;;;;;;;;;;;;;;;40213:21;;;;;;;;;;;;;;39952:290;36771:62:::1;36747:3;;36715:134;;;-1:-1:-1::0;;36882:15:0::1;36870:9;:27:::0;-1:-1:-1;;;;;;;;36439:466:0:o;33582:122::-;32454:10;32443:7;6882;6909:6;;;;6836:87;32443:7;:21;;;:44;;;-1:-1:-1;32476:10:0;32468:19;;;;:7;:19;;;;;;;;32443:44;32435:73;;;;;;;9834:2:1;32435:73:0;;;9816:21:1;9873:2;9853:18;;;9846:30;9912:18;9892;;;9885:46;9948:18;;32435:73:0;9632:340:1;32435:73:0;33664:13:::1;:32:::0;33582:122::o;33145:336::-;32454:10;32443:7;6882;6909:6;;;;6836:87;32443:7;:21;;;:44;;;-1:-1:-1;32476:10:0;32468:19;;;;:7;:19;;;;;;;;32443:44;32435:73;;;;;;;9834:2:1;32435:73:0;;;9816:21:1;9873:2;9853:18;;;9846:30;9912:18;9892;;;9885:46;9948:18;;32435:73:0;9632:340:1;32435:73:0;33308:16:::1;::::0;;::::1;33282:23;33308:16:::0;;;:9:::1;:16;::::0;;;;;;;;33335:23;;;::::1;::::0;;::::1;::::0;;::::1;::::0;;33386:41;;;;;;;33308:16;;33335:23;33386:39:::1;::::0;:41:::1;::::0;;::::1;::::0;33308:16;;33386:41;;;;;33335:23;33386:41:::1;;;;;;;;;::::0;::::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;33369:58:::0;;33438:35;;33369:58;::::1;::::0;;;::::1;::::0;;;::::1;33438:35:::0;;;;;::::1;;::::0;;;::::1;::::0;;;::::1;::::0;;-1:-1:-1;;33145:336:0:o;37160:916::-;37290:11;;;;37219:16;37290:11;;;:5;:11;;;;;:17;37346:9;;37415:10;;37219:16;;;;37290:17;;;;;37219:16;;37392:34;;37296:4;;37415:10;37392:16;:34::i;:::-;-1:-1:-1;37368:58:0;-1:-1:-1;37439:15:0;37457:13;;;;;:70;;-1:-1:-1;37513:13:0;;37494:32;;:16;:32;:::i;:::-;37474:15;:53;;37457:70;37439:88;-1:-1:-1;37538:19:0;37560:14;;;:133;;-1:-1:-1;37614:5:0;;37633:8;;37624:4;;37607:12;;37614:5;;37624:4;37607:12;:::i;:::-;37594:26;;;;:9;:26;:::i;:::-;37593:35;;;;:::i;:::-;37592:49;;:100;;;;-1:-1:-1;37678:5:0;;37688:4;;37671:12;;37678:5;;37688:4;37671:12;:::i;:::-;37658:26;;;;:9;:26;:::i;:::-;37657:35;;;;:::i;:::-;37645:8;:47;;37592:100;37538:155;;37710:10;:28;;;;;37724:14;37710:28;37706:363;;;37766:8;37755:19;;37800:4;37789:15;;37706:363;;;37841:15;;;;;;;:9;:15;;;;;:28;;;;;;37837:221;;;37901:9;37890:20;;37940:9;37953:1;37940:14;;37929:25;;37837:221;;;38006:1;37995:12;;38037:5;38026:16;;37837:221;37252:824;;;;;37160:916;;;:::o;34953:158::-;32454:10;32443:7;6882;6909:6;;;;6836:87;32443:7;:21;;;:44;;;-1:-1:-1;32476:10:0;32468:19;;;;:7;:19;;;;;;;;32443:44;32435:73;;;;;;;9834:2:1;32435:73:0;;;9816:21:1;9873:2;9853:18;;;9846:30;9912:18;9892;;;9885:46;9948:18;;32435:73:0;9632:340:1;32435:73:0;35035:11:::1;::::0;;::::1;;::::0;;;:5:::1;:11;::::0;;;;:30;;::::1;::::0;;::::1;::::0;::::1;::::0;;;::::1;::::0;;;::::1;::::0;;35088:15:::1;35076:9;:27:::0;34953:158::o;39067:392::-;-1:-1:-1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;39179:11:0;;;;;:5;:11;;;;;;39155:35;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;39221:230;;;;;;;39253:10;;39221:230;;;;39290:11;39221:230;;;;;;;;;39327:10;;39221:230;;;;;;;;;;39369:10;;-1:-1:-1;;39155:35:0;39221:230;;;;39369:15;;;;;:65;;;39420:13;;39408:9;;:25;;;;:::i;:::-;39388:15;:46;;39369:65;39221:230;;;;39201:250;39067:392;-1:-1:-1;;;39067:392:0:o;38084:155::-;38176:15;;;38148:5;38176:15;;;:9;:15;;;;;:23;;;;;;38217:6;;;:14;;38230:1;38217:14;;;38226:1;38217:14;38210:21;38084:155;-1:-1:-1;;;38084:155:0:o;33858:164::-;32454:10;32443:7;6882;6909:6;;;;6836:87;32443:7;:21;;;:44;;;-1:-1:-1;32476:10:0;32468:19;;;;:7;:19;;;;;;;;32443:44;32435:73;;;;;;;9834:2:1;32435:73:0;;;9816:21:1;9873:2;9853:18;;;9846:30;9912:18;9892;;;9885:46;9948:18;;32435:73:0;9632:340:1;32435:73:0;33948:11:::1;::::0;;;::::1;;::::0;;;:5:::1;:11;::::0;;;;:28;;;::::1;;::::0;;::::1;::::0;;;::::1;::::0;;33999:15:::1;33987:9;:27:::0;33858:164::o;7742:201::-;6722:13;:11;:13::i;:::-;7831:22:::1;::::0;::::1;7823:73;;;::::0;::::1;::::0;;12499:2:1;7823:73:0::1;::::0;::::1;12481:21:1::0;12538:2;12518:18;;;12511:30;12577:34;12557:18;;;12550:62;12648:8;12628:18;;;12621:36;12674:19;;7823:73:0::1;12297:402:1::0;7823:73:0::1;7907:28;7926:8;7907:18;:28::i;:::-;7742:201:::0;:::o;40250:1066::-;40438:20;;;;40361:16;40438:20;;;:9;:20;;;;;:27;40361:16;;;;40438:27;;40476:70;;40529:1;40532;40521:13;;;;;;;40476:70;40578:18;;;;40556:19;40578:18;;;:9;:18;;;;;;:25;40730:51;;;;;;;40578:25;;;;40635:26;;;;;;;40556:19;;;40730:49;;;;;:51;;;;;;;;;;;;;;;:49;:51;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;40674:107;;;;;;;40795:23;40822:22;40872:11;40850:50;;;:52;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1;40792:110:0;;-1:-1:-1;40792:110:0;;-1:-1:-1;40944:15:0;;-1:-1:-1;40792:110:0;;-1:-1:-1;40913:20:0;41133:25;41146:12;41141:2;41133:25;:::i;:::-;41117:41;-1:-1:-1;41205:13:0;41181:20;41117:41;41181:12;:20;:::i;:::-;41180:38;;;;:::i;:::-;41169:49;;41261:14;41244:13;:31;;:64;;41295:13;41244:64;;;41278:14;41244:64;41229:79;;40406:910;;;;;;;;;;40250:1066;;;;;;:::o;7001:132::-;6882:7;6909:6;7065:23;6909:6;5461:10;7065:23;7057:68;;;;;;;15071:2:1;7057:68:0;;;15053:21:1;;;15090:18;;;15083:30;15149:34;15129:18;;;15122:62;15201:18;;7057:68:0;14869:356:1;8103:191:0;8177:16;8196:6;;;8213:17;;;;;;;;;;8246:40;;8196:6;;;;;;;8246:40;;8177:16;8246:40;8166:128;8103:191;:::o;14:196:1:-;82:20;;142:42;131:54;;121:65;;111:93;;200:1;197;190:12;111:93;14:196;;;:::o;215:186::-;274:6;327:2;315:9;306:7;302:23;298:32;295:52;;;343:1;340;333:12;295:52;366:29;385:9;366:29;:::i;659:171::-;726:20;;786:18;775:30;;765:41;;755:69;;820:1;817;810:12;835:184;893:6;946:2;934:9;925:7;921:23;917:32;914:52;;;962:1;959;952:12;914:52;985:28;1003:9;985:28;:::i;1024:367::-;1087:8;1097:6;1151:3;1144:4;1136:6;1132:17;1128:27;1118:55;;1169:1;1166;1159:12;1118:55;-1:-1:-1;1192:20:1;;1235:18;1224:30;;1221:50;;;1267:1;1264;1257:12;1221:50;1304:4;1296:6;1292:17;1280:29;;1364:3;1357:4;1347:6;1344:1;1340:14;1332:6;1328:27;1324:38;1321:47;1318:67;;;1381:1;1378;1371:12;1396:772;1517:6;1525;1533;1541;1594:2;1582:9;1573:7;1569:23;1565:32;1562:52;;;1610:1;1607;1600:12;1562:52;1650:9;1637:23;1679:18;1720:2;1712:6;1709:14;1706:34;;;1736:1;1733;1726:12;1706:34;1775:70;1837:7;1828:6;1817:9;1813:22;1775:70;:::i;:::-;1864:8;;-1:-1:-1;1749:96:1;-1:-1:-1;1952:2:1;1937:18;;1924:32;;-1:-1:-1;1968:16:1;;;1965:36;;;1997:1;1994;1987:12;1965:36;;2036:72;2100:7;2089:8;2078:9;2074:24;2036:72;:::i;:::-;1396:772;;;;-1:-1:-1;2127:8:1;-1:-1:-1;;;;1396:772:1:o;3948:160::-;4013:20;;4069:13;;4062:21;4052:32;;4042:60;;4098:1;4095;4088:12;4113:254;4178:6;4186;4239:2;4227:9;4218:7;4214:23;4210:32;4207:52;;;4255:1;4252;4245:12;4207:52;4278:29;4297:9;4278:29;:::i;:::-;4268:39;;4326:35;4357:2;4346:9;4342:18;4326:35;:::i;:::-;4316:45;;4113:254;;;;;:::o;4372:260::-;4440:6;4448;4501:2;4489:9;4480:7;4476:23;4472:32;4469:52;;;4517:1;4514;4507:12;4469:52;4540:29;4559:9;4540:29;:::i;:::-;4530:39;;4588:38;4622:2;4611:9;4607:18;4588:38;:::i;4637:188::-;4705:20;;4765:34;4754:46;;4744:57;;4734:85;;4815:1;4812;4805:12;4830:405;4914:6;4922;4930;4938;4991:3;4979:9;4970:7;4966:23;4962:33;4959:53;;;5008:1;5005;4998:12;4959:53;5031:29;5050:9;5031:29;:::i;:::-;5021:39;;5079:38;5113:2;5102:9;5098:18;5079:38;:::i;:::-;5069:48;;5136:37;5169:2;5158:9;5154:18;5136:37;:::i;:::-;5126:47;;5192:37;5225:2;5214:9;5210:18;5192:37;:::i;:::-;5182:47;;4830:405;;;;;;;:::o;5240:1402::-;5432:6;5440;5448;5456;5464;5472;5480;5488;5541:3;5529:9;5520:7;5516:23;5512:33;5509:53;;;5558:1;5555;5548:12;5509:53;5598:9;5585:23;5627:18;5668:2;5660:6;5657:14;5654:34;;;5684:1;5681;5674:12;5654:34;5723:70;5785:7;5776:6;5765:9;5761:22;5723:70;:::i;:::-;5812:8;;-1:-1:-1;5697:96:1;-1:-1:-1;5900:2:1;5885:18;;5872:32;;-1:-1:-1;5916:16:1;;;5913:36;;;5945:1;5942;5935:12;5913:36;5984:72;6048:7;6037:8;6026:9;6022:24;5984:72;:::i;:::-;6075:8;;-1:-1:-1;5958:98:1;-1:-1:-1;6163:2:1;6148:18;;6135:32;;-1:-1:-1;6179:16:1;;;6176:36;;;6208:1;6205;6198:12;6176:36;6247:72;6311:7;6300:8;6289:9;6285:24;6247:72;:::i;:::-;6338:8;;-1:-1:-1;6221:98:1;-1:-1:-1;6426:2:1;6411:18;;6398:32;;-1:-1:-1;6442:16:1;;;6439:36;;;6471:1;6468;6461:12;6439:36;;6510:72;6574:7;6563:8;6552:9;6548:24;6510:72;:::i;:::-;5240:1402;;;;-1:-1:-1;5240:1402:1;;-1:-1:-1;5240:1402:1;;;;;;6601:8;-1:-1:-1;;;5240:1402:1:o;6647:180::-;6706:6;6759:2;6747:9;6738:7;6734:23;6730:32;6727:52;;;6775:1;6772;6765:12;6727:52;-1:-1:-1;6798:23:1;;6647:180;-1:-1:-1;6647:180:1:o;7126:328::-;7200:6;7208;7216;7269:2;7257:9;7248:7;7244:23;7240:32;7237:52;;;7285:1;7282;7275:12;7237:52;7308:29;7327:9;7308:29;:::i;:::-;7298:39;;7356:38;7390:2;7379:9;7375:18;7356:38;:::i;:::-;7346:48;;7413:35;7444:2;7433:9;7429:18;7413:35;:::i;:::-;7403:45;;7126:328;;;;;:::o;7904:258::-;7971:6;7979;8032:2;8020:9;8011:7;8007:23;8003:32;8000:52;;;8048:1;8045;8038:12;8000:52;8071:29;8090:9;8071:29;:::i;:::-;8061:39;;8119:37;8152:2;8141:9;8137:18;8119:37;:::i;8977:260::-;9045:6;9053;9106:2;9094:9;9085:7;9081:23;9077:32;9074:52;;;9122:1;9119;9112:12;9074:52;9145:29;9164:9;9145:29;:::i;:::-;9135:39;;9193:38;9227:2;9216:9;9212:18;9193:38;:::i;10330:184::-;10382:77;10379:1;10372:88;10479:4;10476:1;10469:15;10503:4;10500:1;10493:15;10519:184;10571:77;10568:1;10561:88;10668:4;10665:1;10658:15;10692:4;10689:1;10682:15;10708:128;10748:3;10779:1;10775:6;10772:1;10769:13;10766:39;;;10785:18;;:::i;:::-;-1:-1:-1;10821:9:1;;10708:128::o;10841:186::-;10900:6;10953:2;10941:9;10932:7;10928:23;10924:32;10921:52;;;10969:1;10966;10959:12;10921:52;10992:29;11011:9;10992:29;:::i;11032:273::-;11100:6;11153:2;11141:9;11132:7;11128:23;11124:32;11121:52;;;11169:1;11166;11159:12;11121:52;11201:9;11195:16;11251:4;11244:5;11240:16;11233:5;11230:27;11220:55;;11271:1;11268;11261:12;11310:229;11349:4;11378:18;11446:10;;;;11416;;11468:12;;;11465:38;;;11483:18;;:::i;:::-;11520:13;;11310:229;-1:-1:-1;;;11310:229:1:o;11544:228::-;11584:7;11710:1;11642:66;11638:74;11635:1;11632:81;11627:1;11620:9;11613:17;11609:105;11606:131;;;11717:18;;:::i;:::-;-1:-1:-1;11757:9:1;;11544:228::o;11777:274::-;11817:1;11843;11833:189;;11878:77;11875:1;11868:88;11979:4;11976:1;11969:15;12007:4;12004:1;11997:15;11833:189;-1:-1:-1;12036:9:1;;11777:274::o;12056:236::-;12095:3;12123:18;12168:2;12165:1;12161:10;12198:2;12195:1;12191:10;12229:3;12225:2;12221:12;12216:3;12213:21;12210:47;;;12237:18;;:::i;:::-;12273:13;;12056:236;-1:-1:-1;;;;12056:236:1:o;12704:179::-;12782:13;;12835:22;12824:34;;12814:45;;12804:73;;12873:1;12870;12863:12;12888:473;12991:6;12999;13007;13015;13023;13076:3;13064:9;13055:7;13051:23;13047:33;13044:53;;;13093:1;13090;13083:12;13044:53;13116:39;13145:9;13116:39;:::i;:::-;13106:49;;13195:2;13184:9;13180:18;13174:25;13164:35;;13239:2;13228:9;13224:18;13218:25;13208:35;;13283:2;13272:9;13268:18;13262:25;13252:35;;13306:49;13350:3;13339:9;13335:19;13306:49;:::i;:::-;13296:59;;12888:473;;;;;;;;:::o;13366:482::-;13455:1;13498:5;13455:1;13512:330;13533:7;13523:8;13520:21;13512:330;;;13652:4;13584:66;13580:77;13574:4;13571:87;13568:113;;;13661:18;;:::i;:::-;13711:7;13701:8;13697:22;13694:55;;;13731:16;;;;13694:55;13810:22;;;;13770:15;;;;13512:330;;;13516:3;13366:482;;;;;:::o;13853:866::-;13902:5;13932:8;13922:80;;-1:-1:-1;13973:1:1;13987:5;;13922:80;14021:4;14011:76;;-1:-1:-1;14058:1:1;14072:5;;14011:76;14103:4;14121:1;14116:59;;;;14189:1;14184:130;;;;14096:218;;14116:59;14146:1;14137:10;;14160:5;;;14184:130;14221:3;14211:8;14208:17;14205:43;;;14228:18;;:::i;:::-;-1:-1:-1;;14284:1:1;14270:16;;14299:5;;14096:218;;14398:2;14388:8;14385:16;14379:3;14373:4;14370:13;14366:36;14360:2;14350:8;14347:16;14342:2;14336:4;14333:12;14329:35;14326:77;14323:159;;;-1:-1:-1;14435:19:1;;;14467:5;;14323:159;14514:34;14539:8;14533:4;14514:34;:::i;:::-;14644:6;14576:66;14572:79;14563:7;14560:92;14557:118;;;14655:18;;:::i;:::-;14693:20;;13853:866;-1:-1:-1;;;13853:866:1:o;14724:140::-;14782:5;14811:47;14852:4;14842:8;14838:19;14832:4;14811:47;:::i

Swarm Source

ipfs://82154ac5fa95a702d455351543a02b0471faa1f0830c19e0c150e01fb9099c49

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

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

Validator Index Block Amount
View All Withdrawals

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