Contract 0x9aca557590f5020bda4ba63065fc3a1253bf8000

Txn Hash Method
Block
From
To
Value [Txn Fee]
0xacb2d9d2b5e32be5bd756b97f0b7739217584d631d84461176fbe544bf8a2150Post State List258698912023-02-05 15:10:001 min ago0x491e59c255c790d4e3a53cec2632524088f1aaa4 IN  0x9aca557590f5020bda4ba63065fc3a1253bf80000 AVAX0.001627907583 36.421773386
0x6316c718c05c7bef32c9a4037c5afeda9c2725249366995d3d8a2953ff4eee14Post State List258698902023-02-05 15:09:581 min ago0x491e59c255c790d4e3a53cec2632524088f1aaa4 IN  0x9aca557590f5020bda4ba63065fc3a1253bf80000 AVAX0.001627907583 36.421773386
0x41fc2f3677315a00abf0886c69ed4651dba8bb82f0092834f2cb5e72316c7849Post State258698662023-02-05 15:09:101 min ago0x491e59c255c790d4e3a53cec2632524088f1aaa4 IN  0x9aca557590f5020bda4ba63065fc3a1253bf80000 AVAX0.000954496333 27.318154951
0xdf513c9956a08e420e79bca0e1a7230201fda3fb535800b0c846908be683c47dPost State List258698172023-02-05 15:07:323 mins ago0x491e59c255c790d4e3a53cec2632524088f1aaa4 IN  0x9aca557590f5020bda4ba63065fc3a1253bf80000 AVAX0.001484735082 25.280692703
0xdded92f58056823fe41173362994d6b5d6ea107483a526a815cdc2fdc7b72019Post State258698132023-02-05 15:07:243 mins ago0x491e59c255c790d4e3a53cec2632524088f1aaa4 IN  0x9aca557590f5020bda4ba63065fc3a1253bf80000 AVAX0.000917209134 26.250976943
0x47b7a655e744c383edabe7dd6c5ca64269ea83734618eed4710f2be5df85b15dPost State258697892023-02-05 15:06:354 mins ago0x491e59c255c790d4e3a53cec2632524088f1aaa4 IN  0x9aca557590f5020bda4ba63065fc3a1253bf80000 AVAX0.000877928987 25.126759796
0x02084cf65ab6adb10537b108edb9a4e4844a78cd83b57c9e1433c83e835c5764Post State258697772023-02-05 15:06:114 mins ago0x491e59c255c790d4e3a53cec2632524088f1aaa4 IN  0x9aca557590f5020bda4ba63065fc3a1253bf80000 AVAX0.000873543117 25.001234049
0x7c11c152c783a07a806af5940e410b4cd0cb5cde628613b8bde4b57c3cb8bcb2Post State258697172023-02-05 15:04:096 mins ago0x491e59c255c790d4e3a53cec2632524088f1aaa4 IN  0x9aca557590f5020bda4ba63065fc3a1253bf80000 AVAX0.001956639999 55.999999998
0xd6a5cfa9a358f3294a026c56b1f58ce4f87c10bbea7d7c92d68864b7e975eddbPost State List258697162023-02-05 15:04:066 mins ago0x491e59c255c790d4e3a53cec2632524088f1aaa4 IN  0x9aca557590f5020bda4ba63065fc3a1253bf80000 AVAX0.00251415 56.25
0xcdc60f7f6d772401e376d8e9fff2e16aac808977eb7f339b09fb87f074b4798bPost State List258697152023-02-05 15:04:047 mins ago0x491e59c255c790d4e3a53cec2632524088f1aaa4 IN  0x9aca557590f5020bda4ba63065fc3a1253bf80000 AVAX0.0022348 50
0xb1eb80c70b8166ad8ec48971583e3c5f269336eb5fc506e292b24690267aad94Post State258697142023-02-05 15:04:027 mins ago0x491e59c255c790d4e3a53cec2632524088f1aaa4 IN  0x9aca557590f5020bda4ba63065fc3a1253bf80000 AVAX0.001662811248 47.574137338
0x2af8750ef114770928197ee24c7264b930680b309375f9f64ef5bdfd9adf6a2dPost State List258697072023-02-05 15:03:507 mins ago0x491e59c255c790d4e3a53cec2632524088f1aaa4 IN  0x9aca557590f5020bda4ba63065fc3a1253bf80000 AVAX0.00111857844 25.026365689
0xbce07530f4e648b540a8a41699eda2f4fe380ab185d4b48e9a4abfe534194e47Post State List258697022023-02-05 15:03:407 mins ago0x491e59c255c790d4e3a53cec2632524088f1aaa4 IN  0x9aca557590f5020bda4ba63065fc3a1253bf80000 AVAX0.00136608738 26.422842504
0x219fe3776480be84f3c1739bfda6bf12bed3be06d96614c3a8f22764afc18b94Post Price List258696982023-02-05 15:03:317 mins ago0x491e59c255c790d4e3a53cec2632524088f1aaa4 IN  0x9aca557590f5020bda4ba63065fc3a1253bf80000 AVAX0.001058052788 25.27115669
0x6248be2fbf814788ca223d09cba306fc8b0f97c438293694e6d889748280dbe2Post State List258696832023-02-05 15:03:018 mins ago0x491e59c255c790d4e3a53cec2632524088f1aaa4 IN  0x9aca557590f5020bda4ba63065fc3a1253bf80000 AVAX0.001124994723 25.169919543
0xd5216a01041b8836077d16d14e60ecc5d072023f466da9fa91eda01edeaa8d76Post State258696672023-02-05 15:02:298 mins ago0x491e59c255c790d4e3a53cec2632524088f1aaa4 IN  0x9aca557590f5020bda4ba63065fc3a1253bf80000 AVAX0.000951367761 27.228613657
0x4b83375cd490465d29a61d0a967192b66009ac71a40a3df79d5a6ec2f4f04e0ePost Price List258696562023-02-05 15:02:068 mins ago0x491e59c255c790d4e3a53cec2632524088f1aaa4 IN  0x9aca557590f5020bda4ba63065fc3a1253bf80000 AVAX0.001282955836 26.736044605
0xcc53e232af1040898141352fe8c2694ba459fc831758c5955e5a2307111d41ccPost State258696492023-02-05 15:01:529 mins ago0x491e59c255c790d4e3a53cec2632524088f1aaa4 IN  0x9aca557590f5020bda4ba63065fc3a1253bf80000 AVAX0.000881346412 25.233234427
0x88f1ebd16f22d64e0770f59a510385e8825d6686e7a0be2861398600cf8293d1Post Price List258696372023-02-05 15:01:289 mins ago0x491e59c255c790d4e3a53cec2632524088f1aaa4 IN  0x9aca557590f5020bda4ba63065fc3a1253bf80000 AVAX0.00112949564 26.985274297
0x5d7684fd7484c607f6cea09e4149c946011a236f124ce5e0b1c08c281662b067Post State List258696112023-02-05 15:00:3610 mins ago0x491e59c255c790d4e3a53cec2632524088f1aaa4 IN  0x9aca557590f5020bda4ba63065fc3a1253bf80000 AVAX0.001356073568 26.235244793
0x2b9c582f251f90a44e0d98685406ed113be06755ec370efd6edd8dc256789b93Post State List258695862023-02-05 14:59:4611 mins ago0x491e59c255c790d4e3a53cec2632524088f1aaa4 IN  0x9aca557590f5020bda4ba63065fc3a1253bf80000 AVAX0.001127114779 25.224124497
0x539ab1cb544359e82cce48b3f2953676e4c29467029010325da1d2d4a193a744Post State List258695582023-02-05 14:58:5012 mins ago0x491e59c255c790d4e3a53cec2632524088f1aaa4 IN  0x9aca557590f5020bda4ba63065fc3a1253bf80000 AVAX0.001125587185 25.18317491
0xcac963f65e3cb03bf4d7eb3dc3585ecd2ec75ebe403105b42387a3f32c15cf86Post State List258695472023-02-05 14:58:2712 mins ago0x491e59c255c790d4e3a53cec2632524088f1aaa4 IN  0x9aca557590f5020bda4ba63065fc3a1253bf80000 AVAX0.001263710323 28.281047444
0xec8e0784c86f79ae1bedda381c927fcf2e3f61205c7d54fe4e4a97fc3ce96920Post Price List258695412023-02-05 14:58:1612 mins ago0x491e59c255c790d4e3a53cec2632524088f1aaa4 IN  0x9aca557590f5020bda4ba63065fc3a1253bf80000 AVAX0.001106487435 26.420425882
0xe81704e4300690ddba400ce132a1de3fb3b3a6f9f7e92fecd03f24cad88697f9Post State258695202023-02-05 14:57:3113 mins ago0x491e59c255c790d4e3a53cec2632524088f1aaa4 IN  0x9aca557590f5020bda4ba63065fc3a1253bf80000 AVAX0.001338720615 38.328006614
[ Download CSV Export 
Parent Txn Hash Block From To Value
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
WooracleV2

Compiler Version
v0.8.14+commit.80d49f37

Optimization Enabled:
Yes with 20000 runs

Other Settings:
default evmVersion

Contract Source Code (Solidity Standard Json-Input format)

File 1 of 10 : WooracleV2.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.
*/

import "./interfaces/IWooracleV2.sol";
import "./interfaces/AggregatorV3Interface.sol";

// OpenZeppelin contracts
import {Ownable} from "@openzeppelin/contracts/access/Ownable.sol";
import {ReentrancyGuard} from "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import {IERC20, SafeERC20} from "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";

/// @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; // k: decimal = 18.    18.4 * 1e18
        uint64 spread; // s: decimal = 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;
    }

    function setCloPreferred(address token, bool _cloPreferred) external onlyAdmin {
        CLOracle storage cloRef = clOracles[token];
        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

        woFeasible is, price > 0 and price timestamp NOT stale

        when woFeasible && priceWithinBound     -> woPrice, feasible
        when woFeasible && !priceWithinBound    -> woPrice, infeasible
        when !woFeasible && clo_preferred       -> cloPrice, feasible
        when !woFeasible && !clo_preferred      -> cloPrice, infeasible
    */
    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) {
            priceOut = woPrice_;
            feasible = woPriceInBound;
        } else {
            priceOut = clOracles[base].cloPreferred ? cloPrice_ : 0;
            feasible = priceOut != 0;
        }
    }

    /// @notice the price decimal for the specified base token
    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 refPrice, uint256 refTimestamp) {
        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;
    }
}

File 2 of 10 : 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;
    }

    /// @notice Wooracle spread value
    function woSpread(address base) external view returns (uint64);

    /// @notice Wooracle coeff value
    function woCoeff(address base) external view returns (uint64);

    /// @notice Wooracle state for the specified base token
    function woState(address base) external view returns (State memory);

    /// @notice Chainlink oracle address for the specified base token
    function cloAddress(address base) external view returns (address clo);

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

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

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

    /// @notice Updates the Wooracle price for the specified base token
    function postPrice(address base, uint128 newPrice) external;

    /// @notice State of the specified base token.
    function state(address base) external view returns (State memory);

    /// @notice The price decimal for the specified base token (e.g. 8)
    function decimals(address base) external view returns (uint8);

    /// @notice The quote token for calculating WooPP query price
    function quoteToken() external view returns (address);

    /// @notice last updated timestamp
    function timestamp() external view returns (uint256);

    /// @notice Flag for Wooracle price feasible
    function isWoFeasible(address base) external view returns (bool);
}

File 3 of 10 : AggregatorV3Interface.sol
// SPDX-License-Identifier: MIT
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 4 of 10 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol)

pragma solidity ^0.8.0;

import "../utils/Context.sol";

/**
 * @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 5 of 10 : SafeERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (token/ERC20/utils/SafeERC20.sol)

pragma solidity ^0.8.0;

import "../IERC20.sol";
import "../extensions/draft-IERC20Permit.sol";
import "../../../utils/Address.sol";

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

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

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

    /**
     * @dev Deprecated. This function has issues similar to the ones found in
     * {IERC20-approve}, and its usage is discouraged.
     *
     * Whenever possible, use {safeIncreaseAllowance} and
     * {safeDecreaseAllowance} instead.
     */
    function safeApprove(
        IERC20 token,
        address spender,
        uint256 value
    ) internal {
        // safeApprove should only be called when setting an initial allowance,
        // or when resetting it to zero. To increase and decrease it, use
        // 'safeIncreaseAllowance' and 'safeDecreaseAllowance'
        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 6 of 10 : ReentrancyGuard.sol
// SPDX-License-Identifier: MIT
// 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 7 of 10 : Context.sol
// SPDX-License-Identifier: MIT
// 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 8 of 10 : Address.sol
// SPDX-License-Identifier: MIT
// 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 9 of 10 : IERC20.sol
// SPDX-License-Identifier: MIT
// 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 10 of 10 : draft-IERC20Permit.sol
// SPDX-License-Identifier: MIT
// 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);
}

Settings
{
  "optimizer": {
    "enabled": true,
    "runs": 20000
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  },
  "libraries": {}
}

Contract ABI

[{"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":"refPrice","type":"uint256"},{"internalType":"uint256","name":"refTimestamp","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":"token","type":"address"},{"internalType":"bool","name":"_cloPreferred","type":"bool"}],"name":"setCloPreferred","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"}]

608060405234801561001057600080fd5b5061001a3361003e565b61012c600555600680546001600160401b031916662386f26fc1000017905561008e565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6126eb8061009d6000396000f3fe608060405234801561001057600080fd5b50600436106101f05760003560e01c806399235fd41161010f578063c3c0993b116100a2578063d449a83211610071578063d449a8321461069f578063d5bade07146106c4578063f2030e73146106d7578063f2fde38b1461077c57600080fd5b8063c3c0993b1461053c578063c6ddb64214610590578063cc6864b11461063a578063d09a568d1461064357600080fd5b8063b80777ea116100de578063b80777ea146104d2578063ba1eba68146104e9578063be4df7d6146104fc578063c16116d41461052957600080fd5b806399235fd41461040f578063a2c5d01a14610422578063a4a2a8c514610497578063aea91078146104aa57600080fd5b806349230eab1161018757806371ea92051161015657806371ea9205146103925780637967d37e146103a55780638da5cb5b146103b857806396bb520f146103d657600080fd5b806349230eab146103515780634b0bddd2146103645780636e27fcd614610377578063715018a61461038a57600080fd5b8063217a4b70116101c3578063217a4b701461025d57806324d7806c146102a257806331e658a5146102d557806337e257fd1461033e57600080fd5b80630b7841f5146101f55780631142e7531461022257806318e07221146102375780631ffabeb81461024a575b600080fd5b610208610203366004612047565b61078f565b604080519283526020830191909152015b60405180910390f35b61023561023036600461207a565b6107c1565b005b6102356102453660046120da565b610804565b610235610258366004612156565b610a0d565b60035461027d9073ffffffffffffffffffffffffffffffffffffffff1681565b60405173ffffffffffffffffffffffffffffffffffffffff9091168152602001610219565b6102c56102b0366004612047565b60076020526000908152604090205460ff1681565b6040519015158152602001610219565b6102e86102e3366004612047565b610b33565b6040805182516fffffffffffffffffffffffffffffffff16815260208084015167ffffffffffffffff90811691830191909152838301511691810191909152606091820151151591810191909152608001610219565b6102c561034c366004612047565b610c51565b61023561035f3660046120da565b610cac565b610235610372366004612156565b610e97565b610235610385366004612189565b610ef5565b6102356110d0565b6102356103a03660046121d3565b6110e4565b6102356103b3366004612227565b611262565b60005473ffffffffffffffffffffffffffffffffffffffff1661027d565b61027d6103e4366004612047565b73ffffffffffffffffffffffffffffffffffffffff9081166000908152600260205260409020541690565b61023561041d3660046122eb565b6114a3565b61046f610430366004612047565b73ffffffffffffffffffffffffffffffffffffffff166000908152600160205260409020546004546fffffffffffffffffffffffffffffffff90911691565b604080516fffffffffffffffffffffffffffffffff9093168352602083019190915201610219565b6102356104a5366004612304565b61155f565b6104bd6104b8366004612047565b611770565b60408051928352901515602083015201610219565b6104db60045481565b604051908152602001610219565b6102356104f7366004612347565b6118f1565b6006546105109067ffffffffffffffff1681565b60405167ffffffffffffffff9091168152602001610219565b6102e8610537366004612047565b611a1f565b61051061054a366004612047565b73ffffffffffffffffffffffffffffffffffffffff16600090815260016020526040902054700100000000000000000000000000000000900467ffffffffffffffff1690565b61060161059e366004612047565b6001602052600090815260409020546fffffffffffffffffffffffffffffffff81169067ffffffffffffffff7001000000000000000000000000000000008204811691780100000000000000000000000000000000000000000000000090041683565b604080516fffffffffffffffffffffffffffffffff909416845267ffffffffffffffff9283166020850152911690820152606001610219565b6104db60055481565b610510610651366004612047565b73ffffffffffffffffffffffffffffffffffffffff166000908152600160205260409020547801000000000000000000000000000000000000000000000000900467ffffffffffffffff1690565b6106b26106ad366004612047565b611b24565b60405160ff9091168152602001610219565b6102356106d2366004612371565b611b7c565b6107466106e5366004612047565b60026020526000908152604090205473ffffffffffffffffffffffffffffffffffffffff81169060ff740100000000000000000000000000000000000000008204811691750100000000000000000000000000000000000000000090041683565b6040805173ffffffffffffffffffffffffffffffffffffffff909416845260ff9092166020840152151590820152606001610219565b61023561078a366004612047565b611c9e565b60035460009081906107b890849073ffffffffffffffffffffffffffffffffffffffff16611d55565b91509150915091565b6107c9611f28565b600680547fffffffffffffffffffffffffffffffffffffffffffffffff00000000000000001667ffffffffffffffff92909216919091179055565b3361082460005473ffffffffffffffffffffffffffffffffffffffff1690565b73ffffffffffffffffffffffffffffffffffffffff16148061085557503360009081526007602052604090205460ff165b6108c0576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601060248201527f576f6f7261636c653a202141646d696e0000000000000000000000000000000060448201526064015b60405180910390fd5b8281811461092a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601860248201527f576f6f7261636c653a206c656e6774685f494e56414c4944000000000000000060448201526064016108b7565b60005b81811015610a01578383828181106109475761094761239b565b905060200201602081019061095c919061207a565b600160008888858181106109725761097261239b565b90506020020160208101906109879190612047565b73ffffffffffffffffffffffffffffffffffffffff1681526020810191909152604001600020805467ffffffffffffffff9290921678010000000000000000000000000000000000000000000000000277ffffffffffffffffffffffffffffffffffffffffffffffff90921691909117905560010161092d565b50504260045550505050565b33610a2d60005473ffffffffffffffffffffffffffffffffffffffff1690565b73ffffffffffffffffffffffffffffffffffffffff161480610a5e57503360009081526007602052604090205460ff165b610ac4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601060248201527f576f6f7261636c653a202141646d696e0000000000000000000000000000000060448201526064016108b7565b73ffffffffffffffffffffffffffffffffffffffff909116600090815260026020526040902080549115157501000000000000000000000000000000000000000000027fffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffffff909216919091179055565b60408051608081018252600080825260208201819052918101829052606081019190915273ffffffffffffffffffffffffffffffffffffffff82166000908152600160209081526040808320815160608101835290546fffffffffffffffffffffffffffffffff8116825267ffffffffffffffff700100000000000000000000000000000000820481169483019490945278010000000000000000000000000000000000000000000000009004909216908201529080610bf285611770565b915091506040518060800160405280836fffffffffffffffffffffffffffffffff168152602001846040015167ffffffffffffffff168152602001846020015167ffffffffffffffff1681526020018215158152509350505050919050565b73ffffffffffffffffffffffffffffffffffffffff81166000908152600160205260408120546fffffffffffffffffffffffffffffffff1615801590610ca65750600554600454610ca291906123f9565b4211155b92915050565b33610ccc60005473ffffffffffffffffffffffffffffffffffffffff1690565b73ffffffffffffffffffffffffffffffffffffffff161480610cfd57503360009081526007602052604090205460ff165b610d63576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601060248201527f576f6f7261636c653a202141646d696e0000000000000000000000000000000060448201526064016108b7565b82818114610dcd576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601860248201527f576f6f7261636c653a206c656e6774685f494e56414c4944000000000000000060448201526064016108b7565b60005b81811015610a0157838382818110610dea57610dea61239b565b9050602002016020810190610dff9190612411565b60016000888885818110610e1557610e1561239b565b9050602002016020810190610e2a9190612047565b73ffffffffffffffffffffffffffffffffffffffff168152602081019190915260400160002080547fffffffffffffffffffffffffffffffff00000000000000000000000000000000166fffffffffffffffffffffffffffffffff92909216919091179055600101610dd0565b610e9f611f28565b73ffffffffffffffffffffffffffffffffffffffff91909116600090815260076020526040902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016911515919091179055565b33610f1560005473ffffffffffffffffffffffffffffffffffffffff1690565b73ffffffffffffffffffffffffffffffffffffffff161480610f4657503360009081526007602052604090205460ff165b610fac576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601060248201527f576f6f7261636c653a202141646d696e0000000000000000000000000000000060448201526064016108b7565b6003805473ffffffffffffffffffffffffffffffffffffffff8085167fffffffffffffffffffffffff000000000000000000000000000000000000000092831681179093556000928352600260209081526040938490208054928616929093168217835583517f313ce56700000000000000000000000000000000000000000000000000000000815293519293919263313ce5679260048082019392918290030181865afa158015611062573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611086919061242c565b815460ff9190911674010000000000000000000000000000000000000000027fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff9091161790555050565b6110d8611f28565b6110e26000611fa9565b565b3361110460005473ffffffffffffffffffffffffffffffffffffffff1690565b73ffffffffffffffffffffffffffffffffffffffff16148061113557503360009081526007602052604090205460ff165b61119b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601060248201527f576f6f7261636c653a202141646d696e0000000000000000000000000000000060448201526064016108b7565b73ffffffffffffffffffffffffffffffffffffffff84166000908152600160205260409020805467ffffffffffffffff838116700100000000000000000000000000000000027fffffffffffffffff0000000000000000ffffffffffffffffffffffffffffffff91861678010000000000000000000000000000000000000000000000000277ffffffffffffffff000000000000000000000000000000009093166fffffffffffffffffffffffffffffffff88161792909217161790555050426004555050565b3361128260005473ffffffffffffffffffffffffffffffffffffffff1690565b73ffffffffffffffffffffffffffffffffffffffff1614806112b357503360009081526007602052604090205460ff165b611319576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601060248201527f576f6f7261636c653a202141646d696e0000000000000000000000000000000060448201526064016108b7565b8660005b818110156114935761148b8a8a8381811061133a5761133a61239b565b905060200201602081019061134f9190612047565b8989848181106113615761136161239b565b90506020020160208101906113769190612411565b8888858181106113885761138861239b565b905060200201602081019061139d919061207a565b8787868181106113af576113af61239b565b90506020020160208101906113c4919061207a565b73ffffffffffffffffffffffffffffffffffffffff93909316600090815260016020526040902080546fffffffffffffffffffffffffffffffff9390931677ffffffffffffffff0000000000000000000000000000000090931692909217780100000000000000000000000000000000000000000000000067ffffffffffffffff92831602177fffffffffffffffff0000000000000000ffffffffffffffffffffffffffffffff167001000000000000000000000000000000009190931602919091179055565b60010161131d565b5050426004555050505050505050565b336114c360005473ffffffffffffffffffffffffffffffffffffffff1690565b73ffffffffffffffffffffffffffffffffffffffff1614806114f457503360009081526007602052604090205460ff165b61155a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601060248201527f576f6f7261636c653a202141646d696e0000000000000000000000000000000060448201526064016108b7565b600555565b3361157f60005473ffffffffffffffffffffffffffffffffffffffff1690565b73ffffffffffffffffffffffffffffffffffffffff1614806115b057503360009081526007602052604090205460ff165b611616576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601060248201527f576f6f7261636c653a202141646d696e0000000000000000000000000000000060448201526064016108b7565b73ffffffffffffffffffffffffffffffffffffffff83811660009081526002602090815260409182902080547fffffffffffffffffffffffff000000000000000000000000000000000000000016938616938417815582517f313ce567000000000000000000000000000000000000000000000000000000008152925190939263313ce5679260048083019391928290030181865afa1580156116bd573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116e1919061242c565b81547fffffffffffffffffffff0000ffffffffffffffffffffffffffffffffffffffff167401000000000000000000000000000000000000000060ff92909216919091027fffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffffff16177501000000000000000000000000000000000000000000921515929092029190911790555050565b73ffffffffffffffffffffffffffffffffffffffff808216600090815260016020526040812054600454600354929384936fffffffffffffffffffffffffffffffff9093169284916117c491889116611d55565b509050600083158015906117e457506005546117e090846123f9565b4211155b9050600082158061187d57506006548590670de0b6b3a7640000906118139067ffffffffffffffff168261244f565b6118279067ffffffffffffffff1686612478565b61183191906124b5565b1115801561187d5750600654670de0b6b3a76400009061185b9067ffffffffffffffff16826124f0565b61186f9067ffffffffffffffff1685612478565b61187991906124b5565b8511155b90508115611890578496508095506118e7565b73ffffffffffffffffffffffffffffffffffffffff88166000908152600260205260409020547501000000000000000000000000000000000000000000900460ff166118dd5760006118df565b825b965086151595505b5050505050915091565b3361191160005473ffffffffffffffffffffffffffffffffffffffff1690565b73ffffffffffffffffffffffffffffffffffffffff16148061194257503360009081526007602052604090205460ff165b6119a8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601060248201527f576f6f7261636c653a202141646d696e0000000000000000000000000000000060448201526064016108b7565b73ffffffffffffffffffffffffffffffffffffffff9091166000908152600160205260409020805467ffffffffffffffff90921678010000000000000000000000000000000000000000000000000277ffffffffffffffffffffffffffffffffffffffffffffffff90921691909117905542600455565b604080516080808201835260008083526020808401829052838501829052606080850183905273ffffffffffffffffffffffffffffffffffffffff8716835260018252918590208551808401875290546fffffffffffffffffffffffffffffffff808216835267ffffffffffffffff7001000000000000000000000000000000008304811684860190815278010000000000000000000000000000000000000000000000009093048116848a0190815289519788018a52845183168852518116948701949094529051909216958401959095528451939493918301911615801590611b195750600554600454611b1591906123f9565b4211155b151590529392505050565b73ffffffffffffffffffffffffffffffffffffffff811660009081526002602052604081205474010000000000000000000000000000000000000000900460ff16808203611b73576008611b75565b805b9392505050565b33611b9c60005473ffffffffffffffffffffffffffffffffffffffff1690565b73ffffffffffffffffffffffffffffffffffffffff161480611bcd57503360009081526007602052604090205460ff165b611c33576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601060248201527f576f6f7261636c653a202141646d696e0000000000000000000000000000000060448201526064016108b7565b73ffffffffffffffffffffffffffffffffffffffff91909116600090815260016020526040902080547fffffffffffffffffffffffffffffffff00000000000000000000000000000000166fffffffffffffffffffffffffffffffff90921691909117905542600455565b611ca6611f28565b73ffffffffffffffffffffffffffffffffffffffff8116611d49576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f646472657373000000000000000000000000000000000000000000000000000060648201526084016108b7565b611d5281611fa9565b50565b73ffffffffffffffffffffffffffffffffffffffff808316600090815260026020526040812054909182911680611d93576000809250925050611f21565b73ffffffffffffffffffffffffffffffffffffffff8481166000908152600260205260408082205481517ffeaf968c0000000000000000000000000000000000000000000000000000000081529151818516947401000000000000000000000000000000000000000090920460ff169392839287169163feaf968c9160048082019260a0929091908290030181865afa158015611e34573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611e589190612536565b509350509250506000808573ffffffffffffffffffffffffffffffffffffffff1663feaf968c6040518163ffffffff1660e01b815260040160a060405180830381865afa158015611ead573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611ed19190612536565b509194509092508591508390506000611eeb88600a6126a6565b905081611ef88285612478565b611f0291906124b5565b9b5083861015611f125785611f14565b835b9a50505050505050505050505b9250929050565b60005473ffffffffffffffffffffffffffffffffffffffff1633146110e2576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016108b7565b6000805473ffffffffffffffffffffffffffffffffffffffff8381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b803573ffffffffffffffffffffffffffffffffffffffff8116811461204257600080fd5b919050565b60006020828403121561205957600080fd5b611b758261201e565b803567ffffffffffffffff8116811461204257600080fd5b60006020828403121561208c57600080fd5b611b7582612062565b60008083601f8401126120a757600080fd5b50813567ffffffffffffffff8111156120bf57600080fd5b6020830191508360208260051b8501011115611f2157600080fd5b600080600080604085870312156120f057600080fd5b843567ffffffffffffffff8082111561210857600080fd5b61211488838901612095565b9096509450602087013591508082111561212d57600080fd5b5061213a87828801612095565b95989497509550505050565b8035801515811461204257600080fd5b6000806040838503121561216957600080fd5b6121728361201e565b915061218060208401612146565b90509250929050565b6000806040838503121561219c57600080fd5b6121a58361201e565b91506121806020840161201e565b80356fffffffffffffffffffffffffffffffff8116811461204257600080fd5b600080600080608085870312156121e957600080fd5b6121f28561201e565b9350612200602086016121b3565b925061220e60408601612062565b915061221c60608601612062565b905092959194509250565b6000806000806000806000806080898b03121561224357600080fd5b883567ffffffffffffffff8082111561225b57600080fd5b6122678c838d01612095565b909a50985060208b013591508082111561228057600080fd5b61228c8c838d01612095565b909850965060408b01359150808211156122a557600080fd5b6122b18c838d01612095565b909650945060608b01359150808211156122ca57600080fd5b506122d78b828c01612095565b999c989b5096995094979396929594505050565b6000602082840312156122fd57600080fd5b5035919050565b60008060006060848603121561231957600080fd5b6123228461201e565b92506123306020850161201e565b915061233e60408501612146565b90509250925092565b6000806040838503121561235a57600080fd5b6123638361201e565b915061218060208401612062565b6000806040838503121561238457600080fd5b61238d8361201e565b9150612180602084016121b3565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000821982111561240c5761240c6123ca565b500190565b60006020828403121561242357600080fd5b611b75826121b3565b60006020828403121561243e57600080fd5b815160ff81168114611b7557600080fd5b600067ffffffffffffffff83811690831681811015612470576124706123ca565b039392505050565b6000817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04831182151516156124b0576124b06123ca565b500290565b6000826124eb577f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b500490565b600067ffffffffffffffff808316818516808303821115612513576125136123ca565b01949350505050565b805169ffffffffffffffffffff8116811461204257600080fd5b600080600080600060a0868803121561254e57600080fd5b6125578661251c565b945060208601519350604086015192506060860151915061257a6080870161251c565b90509295509295909350565b600181815b808511156125df57817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048211156125c5576125c56123ca565b808516156125d257918102915b93841c939080029061258b565b509250929050565b6000826125f657506001610ca6565b8161260357506000610ca6565b816001811461261957600281146126235761263f565b6001915050610ca6565b60ff841115612634576126346123ca565b50506001821b610ca6565b5060208310610133831016604e8410600b8410161715612662575081810a610ca6565b61266c8383612586565b807fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0482111561269e5761269e6123ca565b029392505050565b6000611b7560ff8416836125e756fea264697066735822122077ab84a1d2a9b79eb40973cff8b1f7d7ef9046c1baf289f6f0a4d47e2614bb3964736f6c634300080e0033

Block Transaction Gas Used Reward
Age Block Fee Address BC Fee Address Voting Power Jailed Incoming
Block Uncle Number Difficulty Gas Used Reward
Loading
Make sure to use the "Vote Down" button for any spammy posts, and the "Vote Up" for interesting conversations.