Contract 0x2b89dac3b31fd50b1f45682fd3d3473283a15c76

Contract Overview

Balance:
0 tCRO
Txn Hash Method
Block
From
To
Value [Txn Fee]
0xd3d4aa697b1409da27c6160ac84c3526eb2b26db0b4a71307fa0e157ea16060aUpdate Price62759692022-11-26 9:10:1812 days 46 mins ago0xd185f3f348f5b21ca26310b5e68229452a273044 IN  0x2b89dac3b31fd50b1f45682fd3d3473283a15c760 tCRO0.156880035036 1,936.384154399
0x16181d704ab1faf70ebb2ecce0748af15e0e611da652a2c41a650b21fd4c36eeUpdate Price62753092022-11-26 8:10:1412 days 1 hr ago0xd185f3f348f5b21ca26310b5e68229452a273044 IN  0x2b89dac3b31fd50b1f45682fd3d3473283a15c760 tCRO0.156881067792 1,936.396901788
0x0170dc65ad78693862c8e4a60e49162b8a94e312be79a44f9574667e9fca3d96Update Price62746492022-11-26 7:10:1012 days 2 hrs ago0xd185f3f348f5b21ca26310b5e68229452a273044 IN  0x2b89dac3b31fd50b1f45682fd3d3473283a15c760 tCRO0.156882100294 1,936.40964606
0x174900e273f9e7396fa716dec7278f1715b65bab1b11cdc640916ea51f5b7db8Update Price62739902022-11-26 6:10:1312 days 3 hrs ago0xd185f3f348f5b21ca26310b5e68229452a273044 IN  0x2b89dac3b31fd50b1f45682fd3d3473283a15c760 tCRO0.156883131738 1,936.422377258
0xcd486549bac484a051b677b9353aea24fef223bebe009acf8269dc1b2e7ac06dUpdate Price62733292022-11-26 5:10:0412 days 4 hrs ago0xd185f3f348f5b21ca26310b5e68229452a273044 IN  0x2b89dac3b31fd50b1f45682fd3d3473283a15c760 tCRO0.156884158951 1,936.435056247
0x788f91c988ae0aaea1c74c7c14d1f31b494c88e727c5cd65aa9b8eaddc8bdb01Update Price62726692022-11-26 4:10:0212 days 5 hrs ago0xd185f3f348f5b21ca26310b5e68229452a273044 IN  0x2b89dac3b31fd50b1f45682fd3d3473283a15c760 tCRO0.156885192431 1,936.447812581
0x836318a62384f98822433ba4be0fa7c66ba004f651dd04d7b881b54aac9e5135Update Price62720092022-11-26 3:09:5912 days 6 hrs ago0xd185f3f348f5b21ca26310b5e68229452a273044 IN  0x2b89dac3b31fd50b1f45682fd3d3473283a15c760 tCRO0.156886225634 1,936.460565498
0x918304946da1251b5d6e2a3d0de592e8720f59a13a720e7df6d7babf4231ca63Update Price62713502022-11-26 2:10:0212 days 7 hrs ago0xd185f3f348f5b21ca26310b5e68229452a273044 IN  0x2b89dac3b31fd50b1f45682fd3d3473283a15c760 tCRO0.156887257531 1,936.473302289
0x0b0155266813ee63fa9a4b983023107cc68448a905056404bdbb69b175ed4c81Update Price62706882022-11-26 1:09:5012 days 8 hrs ago0xd185f3f348f5b21ca26310b5e68229452a273044 IN  0x2b89dac3b31fd50b1f45682fd3d3473283a15c760 tCRO0.156888294463 1,936.486101233
0x3d7148f97c13d366914a34b3dcd422446760e367aaa02cadb2a049a57acb4d7dUpdate Price62700292022-11-26 0:09:5212 days 9 hrs ago0xd185f3f348f5b21ca26310b5e68229452a273044 IN  0x2b89dac3b31fd50b1f45682fd3d3473283a15c760 tCRO0.156889326705 1,936.498842283
0x058e17f672da3fff43c3573b9920ae85e00bf7109cf828237a330af6ec9067caUpdate Price62693702022-11-25 23:09:5212 days 10 hrs ago0xd185f3f348f5b21ca26310b5e68229452a273044 IN  0x2b89dac3b31fd50b1f45682fd3d3473283a15c760 tCRO0.156890358993 1,936.511583905
0x8082c4818516f125bb0009fd235ee22edbee31c2af99b3d44e64dfa08c4e6f6bUpdate Price62687102022-11-25 22:09:4912 days 11 hrs ago0xd185f3f348f5b21ca26310b5e68229452a273044 IN  0x2b89dac3b31fd50b1f45682fd3d3473283a15c760 tCRO0.156891392663 1,936.52434259
0x73b11d4b87bbf99a6c8702f2ecacd110f8dd3e3426cba714f654951501f096d4Update Price62680512022-11-25 21:09:5212 days 12 hrs ago0xd185f3f348f5b21ca26310b5e68229452a273044 IN  0x2b89dac3b31fd50b1f45682fd3d3473283a15c760 tCRO0.156892424173 1,936.537074613
0x1546ccc0ad3b2d94cc143d57d8c338162d42c7a4f1c73f895f5676c9f77daf50Update Price62673882022-11-25 20:09:3312 days 13 hrs ago0xd185f3f348f5b21ca26310b5e68229452a273044 IN  0x2b89dac3b31fd50b1f45682fd3d3473283a15c760 tCRO0.156893462784 1,936.549894273
0x6a19b7c1544eb3990839923d4fc4fc9aa3c20faf34e5b09d64450961540e2d98Update Price62673362022-11-25 20:04:4812 days 13 hrs ago0xd185f3f348f5b21ca26310b5e68229452a273044 IN  0x2b89dac3b31fd50b1f45682fd3d3473283a15c760 tCRO0.156893544244 1,936.550899748
0x660a4b055d4c6c5d93e4447a3c19eaaac5b63f94b129b69407d271bf6ace4445Update Price62666772022-11-25 19:04:5012 days 14 hrs ago0xd185f3f348f5b21ca26310b5e68229452a273044 IN  0x2b89dac3b31fd50b1f45682fd3d3473283a15c760 tCRO0.156894576347 1,936.56363908
0xc866f045e8b3d203cdefe849d75e1e6a29f1f5d1d4b1cde3325ec971b9daa96cUpdate Price62664242022-11-25 18:41:4812 days 15 hrs ago0xd185f3f348f5b21ca26310b5e68229452a273044 IN  0x2b89dac3b31fd50b1f45682fd3d3473283a15c760 tCRO0.156894972504 1,936.568528879
0xfa88f5e55c887c6e7d78876da002cceb5258a4d092689b489d262a8cac1de672Update Price62657642022-11-25 17:41:4612 days 16 hrs ago0xd185f3f348f5b21ca26310b5e68229452a273044 IN  0x2b89dac3b31fd50b1f45682fd3d3473283a15c760 tCRO0.156896005346 1,936.581277342
0x82d03ca1b4c73f3b18533ca60c888f4f251a81087a0812ed4f5b7f9db816de6eUpdate Price62651052022-11-25 16:41:4812 days 17 hrs ago0xd185f3f348f5b21ca26310b5e68229452a273044 IN  0x2b89dac3b31fd50b1f45682fd3d3473283a15c760 tCRO0.156897036899 1,936.594009887
0xb3fd67098d27c276cf6e30e503d5ecb2cc5229ceb1a5ec804186fc9b21756bb9Update Price62644442022-11-25 15:41:3812 days 18 hrs ago0xd185f3f348f5b21ca26310b5e68229452a273044 IN  0x2b89dac3b31fd50b1f45682fd3d3473283a15c760 tCRO0.156898070864 1,936.606772219
0x09390552356c2a11e35f27b86a239bdb486e3f3d75f8b4049055c4f9aab7aadfUpdate Price62643362022-11-25 15:31:4812 days 18 hrs ago0xd185f3f348f5b21ca26310b5e68229452a273044 IN  0x2b89dac3b31fd50b1f45682fd3d3473283a15c760 tCRO0.156898240034 1,936.608860289
0x61fc547ff9d574750b88a2a459fe47d0701e8561bf0a636b9413a732557e936cUpdate Price62639142022-11-25 14:53:2312 days 19 hrs ago0xd185f3f348f5b21ca26310b5e68229452a273044 IN  0x2b89dac3b31fd50b1f45682fd3d3473283a15c760 tCRO0.156898900411 1,936.617011388
0x7c081ac8bed10ed58ae3f799828ae53a89879d2a76b2132d45760aa5ee51437cUpdate Price62632552022-11-25 13:53:2412 days 20 hrs ago0xd185f3f348f5b21ca26310b5e68229452a273044 IN  0x2b89dac3b31fd50b1f45682fd3d3473283a15c760 tCRO0.156899931248 1,936.629735102
0xf672596d327f6ec559c1d69cf689f618151a2e70cb80ba8f283140da2c730fafUpdate Price62625962022-11-25 12:53:2512 days 21 hrs ago0xd185f3f348f5b21ca26310b5e68229452a273044 IN  0x2b89dac3b31fd50b1f45682fd3d3473283a15c760 tCRO0.156900961744 1,936.6424546
0xf35b35e9a0893579bd4d94256f4167d3a0b2a325f786542f9f9121553d26e797Update Price62619332022-11-25 11:53:0112 days 22 hrs ago0xd185f3f348f5b21ca26310b5e68229452a273044 IN  0x2b89dac3b31fd50b1f45682fd3d3473283a15c760 tCRO0.156901997979 1,936.655244945
[ Download CSV Export 
Parent Txn Hash Block From To Value
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
CronosOracle

Compiler Version
v0.8.4+commit.c7e474f2

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion

Contract Source Code (Solidity Standard Json-Input format)

File 1 of 10 : Ownable.sol
// SPDX-License-Identifier: MIT

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() {
        _setOwner(_msgSender());
    }

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

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

    /**
     * @dev Leaves the contract without owner. It will not be possible to call
     * `onlyOwner` functions anymore. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby removing any functionality that is only available to the owner.
     */
    function renounceOwnership() public virtual onlyOwner {
        _setOwner(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");
        _setOwner(newOwner);
    }

    function _setOwner(address newOwner) private {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}

File 2 of 10 : Context.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

File 3 of 10 : CronosOracle.sol
//SPDX-License-Identifier: Unlicense
pragma solidity ^0.8.0;

import "./CronosOracleBase.sol";
import "./CronosOracleReader.sol";
import "./CronosOracleUpdater.sol";
import "./CronosOracleStorage.sol";

contract CronosOracle is 
  AggregatorV2V3Interface,
  CronosOracleBase,
  CronosOracleUpdater,
  CronosOracleReader {

  constructor(
    uint8 __decimals,
    string memory __description
  ) {
    _decimals = __decimals;
    _description = __description;
  }


}

File 4 of 10 : CronosOracleBase.sol
//SPDX-License-Identifier: Unlicense
pragma solidity ^0.8.0;

import "@openzeppelin/contracts/access/Ownable.sol";
import "./interface/chainlink/AggregatorV2V3Interface.sol";

abstract contract CronosOracleBase is Ownable {}

File 5 of 10 : CronosOracleReader.sol
//SPDX-License-Identifier: Unlicense
pragma solidity ^0.8.0;

import "./CronosOracleStorage.sol";
import "./interface/chainlink/AggregatorV2V3Interface.sol";

contract CronosOracleReader is CronosOracleStorage, AggregatorV2V3Interface {

  string constant private V3_NO_DATA_ERROR = "No data present";

  function latestAnswer()
    override
    external
    view
    returns (
      int256
    )
  {
    return prices[lastCompletedRoundId];
  }
  
  function latestTimestamp()
    override
    external
    view
    returns (
      uint256
    ) {
    return updatedTimestamps[lastCompletedRoundId];
  }

  function latestRound()
    override
    external
    view
    returns (
      uint256
    ) {
    return lastCompletedRoundId;
  }

  function getAnswer(
    uint256 _roundId
  )
    override
    external
    view
    returns (
      int256
    ) {
    return prices[_roundId];
  }

  function getTimestamp(
    uint256 _roundId
  )
    override
    external
    view
    returns (
      uint256
    ) {
    return updatedTimestamps[_roundId];
  }

  function decimals()
    override
    external
    view
    returns (
      uint8
    ) {
    return _decimals;
  }

  function description()
    override
    external
    view
    returns (
      string memory
    ) {
    return _description;
  }

  function version()
    override
    external
    view
    returns (
      uint256
    ) {
    return _version;
  }

  // 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
  )
    override
    external
    view
    returns (
      uint80 roundId,
      int256 answer,
      uint256 startedAt,
      uint256 updatedAt,
      uint80 answeredInRound
    )
  {
    return _getRoundData(_roundId);
  }

  function latestRoundData()
    override
    external
    view
    returns (
      uint80 roundId,
      int256 answer,
      uint256 startedAt,
      uint256 updatedAt,
      uint80 answeredInRound
    ) {
    return _getRoundData(uint80(lastCompletedRoundId));
    }

  /*
   * Internal
   */

  function _getRoundData(uint80 _roundId)
    internal
    view
    returns (
      uint80 roundId,
      int256 answer,
      uint256 startedAt,
      uint256 updatedAt,
      uint80 answeredInRound
    )
  {
    answer = prices[_roundId];
    uint64 timestamp = uint64(updatedTimestamps[_roundId]);

    require(timestamp > 0, V3_NO_DATA_ERROR);

    return (_roundId, answer, timestamp, timestamp, _roundId);
  }


}

File 6 of 10 : CronosOracleStorage.sol
//SPDX-License-Identifier: Unlicense
pragma solidity ^0.8.0;

import "@openzeppelin/contracts/access/Ownable.sol";

contract CronosOracleStorage {

  uint8 public _decimals;
  string public _description;
  uint256 constant public _version = 2;

  uint256 internal lastCompletedRoundId;
  uint256 internal lastUpdatedTimestamp;

  mapping(uint256 => int256) internal prices;               // roundId to price
  mapping(uint256 => uint256) internal updatedTimestamps;   // roundId to timestamp

  mapping(address => bool) internal authorizedUpdaters;
}

File 7 of 10 : CronosOracleUpdater.sol
//SPDX-License-Identifier: Unlicense
pragma solidity ^0.8.0;

import "@openzeppelin/contracts/access/Ownable.sol";
import "./CronosOracleStorage.sol";
import "./CronosOracleBase.sol";

contract CronosOracleUpdater is CronosOracleStorage, CronosOracleBase {

  event PriceUpdated(
    uint256 indexed roundId,
    uint256 indexed timestamp,
    int256 indexed price
  );

  function updatePrice(
    uint256 _roundId,
    uint256 _timestamp,
    int256 _newPrice
  ) public onlyAuthorizedUpdaters {
    lastCompletedRoundId = _roundId;
    lastUpdatedTimestamp = _timestamp;
    prices[_roundId] = _newPrice;
    updatedTimestamps[_roundId] = _timestamp;

    emit PriceUpdated(_roundId, _timestamp, _newPrice);
  }

  // gas savings when we don't send the timestamp in calldata
  function updatePriceNoTimestamp(
    uint256 _roundId,
    int256 _newPrice
  ) external onlyAuthorizedUpdaters {
    updatePrice((_roundId), block.timestamp, _newPrice);
  }

  modifier onlyAuthorizedUpdaters() {
    if (_msgSender() != owner()) {
      require(authorizedUpdaters[_msgSender()], "Caller not authorized");
    }
    _;
  }

  function addAuthorizedUpdater(address signer) public onlyOwner returns (bool) {
    bool wasAuthorized = authorizedUpdaters[signer];
    if (wasAuthorized) {
      return false;
    } else {
      authorizedUpdaters[signer] = true;
      return true;
    }
  }

  function removeAuthorizedUpdater(address signer) public onlyOwner returns (bool) {
    bool wasAuthorized = authorizedUpdaters[signer];
    delete authorizedUpdaters[signer];
    return wasAuthorized;
  }
}

File 8 of 10 : AggregatorInterface.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

interface AggregatorInterface {
  function latestAnswer()
    external
    view
    returns (
      int256
    );
  
  function latestTimestamp()
    external
    view
    returns (
      uint256
    );

  function latestRound()
    external
    view
    returns (
      uint256
    );

  function getAnswer(
    uint256 roundId
  )
    external
    view
    returns (
      int256
    );

  function getTimestamp(
    uint256 roundId
  )
    external
    view
    returns (
      uint256
    );

  event AnswerUpdated(
    int256 indexed current,
    uint256 indexed roundId,
    uint256 updatedAt
  );

  event NewRound(
    uint256 indexed roundId,
    address indexed startedBy,
    uint256 startedAt
  );
}

File 9 of 10 : AggregatorV2V3Interface.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

import "./AggregatorInterface.sol";
import "./AggregatorV3Interface.sol";

interface AggregatorV2V3Interface is AggregatorInterface, AggregatorV3Interface
{
}

File 10 of 10 : AggregatorV3Interface.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

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
    );

}

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

Contract ABI

[{"inputs":[{"internalType":"uint8","name":"__decimals","type":"uint8"},{"internalType":"string","name":"__description","type":"string"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"int256","name":"current","type":"int256"},{"indexed":true,"internalType":"uint256","name":"roundId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"updatedAt","type":"uint256"}],"name":"AnswerUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"roundId","type":"uint256"},{"indexed":true,"internalType":"address","name":"startedBy","type":"address"},{"indexed":false,"internalType":"uint256","name":"startedAt","type":"uint256"}],"name":"NewRound","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"roundId","type":"uint256"},{"indexed":true,"internalType":"uint256","name":"timestamp","type":"uint256"},{"indexed":true,"internalType":"int256","name":"price","type":"int256"}],"name":"PriceUpdated","type":"event"},{"inputs":[],"name":"_decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_description","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_version","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"signer","type":"address"}],"name":"addAuthorizedUpdater","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"description","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_roundId","type":"uint256"}],"name":"getAnswer","outputs":[{"internalType":"int256","name":"","type":"int256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint80","name":"_roundId","type":"uint80"}],"name":"getRoundData","outputs":[{"internalType":"uint80","name":"roundId","type":"uint80"},{"internalType":"int256","name":"answer","type":"int256"},{"internalType":"uint256","name":"startedAt","type":"uint256"},{"internalType":"uint256","name":"updatedAt","type":"uint256"},{"internalType":"uint80","name":"answeredInRound","type":"uint80"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_roundId","type":"uint256"}],"name":"getTimestamp","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"latestAnswer","outputs":[{"internalType":"int256","name":"","type":"int256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"latestRound","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"latestRoundData","outputs":[{"internalType":"uint80","name":"roundId","type":"uint80"},{"internalType":"int256","name":"answer","type":"int256"},{"internalType":"uint256","name":"startedAt","type":"uint256"},{"internalType":"uint256","name":"updatedAt","type":"uint256"},{"internalType":"uint80","name":"answeredInRound","type":"uint80"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"latestTimestamp","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"signer","type":"address"}],"name":"removeAuthorizedUpdater","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_roundId","type":"uint256"},{"internalType":"uint256","name":"_timestamp","type":"uint256"},{"internalType":"int256","name":"_newPrice","type":"int256"}],"name":"updatePrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_roundId","type":"uint256"},{"internalType":"int256","name":"_newPrice","type":"int256"}],"name":"updatePriceNoTimestamp","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"version","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"}]

60806040523480156200001157600080fd5b50604051620018b4380380620018b4833981810160405281019062000037919062000299565b620000576200004b6200009260201b60201c565b6200009a60201b60201c565b816000806101000a81548160ff021916908360ff16021790555080600190805190602001906200008992919062000160565b5050506200048a565b600033905090565b6000600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600760006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b8280546200016e9062000395565b90600052602060002090601f016020900481019282620001925760008555620001de565b82601f10620001ad57805160ff1916838001178555620001de565b82800160010185558215620001de579182015b82811115620001dd578251825591602001919060010190620001c0565b5b509050620001ed9190620001f1565b5090565b5b808211156200020c576000816000905550600101620001f2565b5090565b60006200022762000221846200031c565b620002f3565b9050828152602081018484840111156200024057600080fd5b6200024d8482856200035f565b509392505050565b600082601f8301126200026757600080fd5b81516200027984826020860162000210565b91505092915050565b600081519050620002938162000470565b92915050565b60008060408385031215620002ad57600080fd5b6000620002bd8582860162000282565b925050602083015167ffffffffffffffff811115620002db57600080fd5b620002e98582860162000255565b9150509250929050565b6000620002ff62000312565b90506200030d8282620003cb565b919050565b6000604051905090565b600067ffffffffffffffff8211156200033a576200033962000430565b5b62000345826200045f565b9050602081019050919050565b600060ff82169050919050565b60005b838110156200037f57808201518184015260208101905062000362565b838111156200038f576000848401525b50505050565b60006002820490506001821680620003ae57607f821691505b60208210811415620003c557620003c462000401565b5b50919050565b620003d6826200045f565b810181811067ffffffffffffffff82111715620003f857620003f762000430565b5b80604052505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6000601f19601f8301169050919050565b6200047b8162000352565b81146200048757600080fd5b50565b61141a806200049a6000396000f3fe608060405234801561001057600080fd5b506004361061012c5760003560e01c80638205bf6a116100ad578063b5ab58dc11610071578063b5ab58dc14610315578063b633620c14610345578063cfa84dfe14610375578063f2fde38b14610393578063feaf968c146103af5761012c565b80638205bf6a146102595780638c9b9fdc146102775780638da5cb5b146102a7578063938608c2146102c55780639a6fc8f5146102e15761012c565b806354fd4d50116100f457806354fd4d50146101c5578063603cda09146101e3578063668a0f0214610213578063715018a6146102315780637284e4161461023b5761012c565b80631b3edf4e14610131578063313ce5671461014d57806332424aa31461016b5780633e118dbe1461018957806350d25bcd146101a7575b600080fd5b61014b60048036038101906101469190610ea5565b6103d1565b005b6101556104b5565b6040516101629190611196565b60405180910390f35b6101736104cb565b6040516101809190611196565b60405180910390f35b6101916104dc565b60405161019e9190611128565b60405180910390f35b6101af6104e1565b6040516101bc919061108b565b60405180910390f35b6101cd6104fe565b6040516101da9190611128565b60405180910390f35b6101fd60048036038101906101f89190610e53565b610507565b60405161020a9190611070565b60405180910390f35b61021b61062e565b6040516102289190611128565b60405180910390f35b610239610638565b005b6102436106c0565b60405161025091906110a6565b60405180910390f35b610261610752565b60405161026e9190611128565b60405180910390f35b610291600480360381019061028c9190610e53565b61076f565b60405161029e9190611070565b60405180910390f35b6102af6108b1565b6040516102bc9190611055565b60405180910390f35b6102df60048036038101906102da9190610ee1565b6108db565b005b6102fb60048036038101906102f69190610f30565b610a22565b60405161030c959493929190611143565b60405180910390f35b61032f600480360381019061032a9190610e7c565b610a46565b60405161033c919061108b565b60405180910390f35b61035f600480360381019061035a9190610e7c565b610a63565b60405161036c9190611128565b60405180910390f35b61037d610a80565b60405161038a91906110a6565b60405180910390f35b6103ad60048036038101906103a89190610e53565b610b0e565b005b6103b7610c06565b6040516103c8959493929190611143565b60405180910390f35b6103d96108b1565b73ffffffffffffffffffffffffffffffffffffffff166103f7610c2a565b73ffffffffffffffffffffffffffffffffffffffff16146104a6576006600061041e610c2a565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff166104a5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161049c90611108565b60405180910390fd5b5b6104b18242836108db565b5050565b60008060009054906101000a900460ff16905090565b60008054906101000a900460ff1681565b600281565b600060046000600254815260200190815260200160002054905090565b60006002905090565b6000610511610c2a565b73ffffffffffffffffffffffffffffffffffffffff1661052f6108b1565b73ffffffffffffffffffffffffffffffffffffffff1614610585576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161057c906110e8565b60405180910390fd5b6000600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff169050600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81549060ff021916905580915050919050565b6000600254905090565b610640610c2a565b73ffffffffffffffffffffffffffffffffffffffff1661065e6108b1565b73ffffffffffffffffffffffffffffffffffffffff16146106b4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016106ab906110e8565b60405180910390fd5b6106be6000610c32565b565b6060600180546106cf90611275565b80601f01602080910402602001604051908101604052809291908181526020018280546106fb90611275565b80156107485780601f1061071d57610100808354040283529160200191610748565b820191906000526020600020905b81548152906001019060200180831161072b57829003601f168201915b5050505050905090565b600060056000600254815260200190815260200160002054905090565b6000610779610c2a565b73ffffffffffffffffffffffffffffffffffffffff166107976108b1565b73ffffffffffffffffffffffffffffffffffffffff16146107ed576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016107e4906110e8565b60405180910390fd5b6000600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff169050801561084e5760009150506108ac565b6001600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff02191690831515021790555060019150505b919050565b6000600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6108e36108b1565b73ffffffffffffffffffffffffffffffffffffffff16610901610c2a565b73ffffffffffffffffffffffffffffffffffffffff16146109b05760066000610928610c2a565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff166109af576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109a690611108565b60405180910390fd5b5b82600281905550816003819055508060046000858152602001908152602001600020819055508160056000858152602001908152602001600020819055508082847fd98bb4fece24c1eb306f81d8fffd2124de98694e552ec1b1b106b3fc69d5e51a60405160405180910390a4505050565b6000806000806000610a3386610cf8565b9450945094509450945091939590929450565b600060046000838152602001908152602001600020549050919050565b600060056000838152602001908152602001600020549050919050565b60018054610a8d90611275565b80601f0160208091040260200160405190810160405280929190818152602001828054610ab990611275565b8015610b065780601f10610adb57610100808354040283529160200191610b06565b820191906000526020600020905b815481529060010190602001808311610ae957829003601f168201915b505050505081565b610b16610c2a565b73ffffffffffffffffffffffffffffffffffffffff16610b346108b1565b73ffffffffffffffffffffffffffffffffffffffff1614610b8a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b81906110e8565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415610bfa576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610bf1906110c8565b60405180910390fd5b610c0381610c32565b50565b6000806000806000610c19600254610cf8565b945094509450945094509091929394565b600033905090565b6000600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600760006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b6000806000806000600460008769ffffffffffffffffffff1681526020019081526020016000205493506000600560008869ffffffffffffffffffff16815260200190815260200160002054905060008167ffffffffffffffff16116040518060400160405280600f81526020017f4e6f20646174612070726573656e74000000000000000000000000000000000081525090610dcb576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610dc291906110a6565b60405180910390fd5b50868582838a8267ffffffffffffffff1692508167ffffffffffffffff169150955095509550955095505091939590929450565b600081359050610e0e81611388565b92915050565b600081359050610e238161139f565b92915050565b600081359050610e38816113b6565b92915050565b600081359050610e4d816113cd565b92915050565b600060208284031215610e6557600080fd5b6000610e7384828501610dff565b91505092915050565b600060208284031215610e8e57600080fd5b6000610e9c84828501610e29565b91505092915050565b60008060408385031215610eb857600080fd5b6000610ec685828601610e29565b9250506020610ed785828601610e14565b9150509250929050565b600080600060608486031215610ef657600080fd5b6000610f0486828701610e29565b9350506020610f1586828701610e29565b9250506040610f2686828701610e14565b9150509250925092565b600060208284031215610f4257600080fd5b6000610f5084828501610e3e565b91505092915050565b610f62816111cd565b82525050565b610f71816111df565b82525050565b610f80816111eb565b82525050565b6000610f91826111b1565b610f9b81856111bc565b9350610fab818560208601611242565b610fb4816112d6565b840191505092915050565b6000610fcc6026836111bc565b9150610fd7826112e7565b604082019050919050565b6000610fef6020836111bc565b9150610ffa82611336565b602082019050919050565b60006110126015836111bc565b915061101d8261135f565b602082019050919050565b61103181611215565b82525050565b6110408161122c565b82525050565b61104f8161121f565b82525050565b600060208201905061106a6000830184610f59565b92915050565b60006020820190506110856000830184610f68565b92915050565b60006020820190506110a06000830184610f77565b92915050565b600060208201905081810360008301526110c08184610f86565b905092915050565b600060208201905081810360008301526110e181610fbf565b9050919050565b6000602082019050818103600083015261110181610fe2565b9050919050565b6000602082019050818103600083015261112181611005565b9050919050565b600060208201905061113d6000830184611028565b92915050565b600060a0820190506111586000830188611037565b6111656020830187610f77565b6111726040830186611028565b61117f6060830185611028565b61118c6080830184611037565b9695505050505050565b60006020820190506111ab6000830184611046565b92915050565b600081519050919050565b600082825260208201905092915050565b60006111d8826111f5565b9050919050565b60008115159050919050565b6000819050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600060ff82169050919050565b600069ffffffffffffffffffff82169050919050565b60005b83811015611260578082015181840152602081019050611245565b8381111561126f576000848401525b50505050565b6000600282049050600182168061128d57607f821691505b602082108114156112a1576112a06112a7565b5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000601f19601f8301169050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b7f43616c6c6572206e6f7420617574686f72697a65640000000000000000000000600082015250565b611391816111cd565b811461139c57600080fd5b50565b6113a8816111eb565b81146113b357600080fd5b50565b6113bf81611215565b81146113ca57600080fd5b50565b6113d68161122c565b81146113e157600080fd5b5056fea264697066735822122074d81a3021bf7539dccc93477786049484477d386c112c8c7725615efe9611a464736f6c6343000804003300000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000001043524f49442f555344204f5241434c4500000000000000000000000000000000

Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)

00000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000001043524f49442f555344204f5241434c4500000000000000000000000000000000

-----Decoded View---------------
Arg [0] : __decimals (uint8): 8
Arg [1] : __description (string): CROID/USD ORACLE

-----Encoded View---------------
4 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000008
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000040
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000010
Arg [3] : 43524f49442f555344204f5241434c4500000000000000000000000000000000


Block Transaction Gas Used Reward
Age Block Fee Address BC Fee Address Voting Power Jailed Incoming
Block Uncle Number Difficulty Gas Used Reward
Loading