Skip to content
Verified contractPartialGPL-3.0

ChainlinkOracleFeed

Address0x7c19b0cf11b396dfd4b9e8a7274e22b8948a6fa4
Balance

0 ETH

 

Transactions

0

 

Compiler

solc 0.8.30

 

Same code

6 more contracts

 

Details

Compiler
solc 0.8.30+commit.73712a01
Language
solidity
Optimization
Yes, 1,500 runs
EVM version
osaka
Via IR
yes
License
GPL-3.0
Match
Partialcreation code: yes, runtime code: yes
Verified on Sourcify
Created in block
26,297,114
Creation transaction
0x1a3a6fe7ca…8df16fe880

Read2

  • oracle() → (address)
  • oracleStalenessThreshold() → (uint256)

Write1

  • getPrice() → (uint256,uint256)

Events1

  • OraclePrice(uint256)

Errors2

  • InvalidOracleAddress()
  • InvalidOraclePrice()

ABI as JSON

[
  {
    "type": "constructor",
    "inputs": [
      {
        "name": "_oracle",
        "type": "address",
        "internalType": "address"
      },
      {
        "name": "_oracleStalenessThreshold",
        "type": "uint256",
        "internalType": "uint256"
      }
    ],
    "stateMutability": "nonpayable"
  },
  {
    "name": "InvalidOracleAddress",
    "type": "error",
    "inputs": []
  },
  {
    "name": "InvalidOraclePrice",
    "type": "error",
    "inputs": []
  },
  {
    "name": "OraclePrice",
    "type": "event",
    "inputs": [
      {
        "name": "price",
        "type": "uint256",
        "indexed": false,
        "internalType": "uint256"
      }
    ],
    "anonymous": false
  },
  {
    "name": "getPrice",
    "type": "function",
    "inputs": [],
    "outputs": [
      {
        "name": "",
        "type": "uint256",
        "internalType": "uint256"
      },
      {
        "name": "",
        "type": "uint256",
        "internalType": "uint256"
      }
    ],
    "stateMutability": "nonpayable"
  },
  {
    "name": "oracle",
    "type": "function",
    "inputs": [],
    "outputs": [
      {
        "name": "",
        "type": "address",
        "internalType": "contract AggregatorV3Interface"
      }
    ],
    "stateMutability": "view"
  },
  {
    "name": "oracleStalenessThreshold",
    "type": "function",
    "inputs": [],
    "outputs": [
      {
        "name": "",
        "type": "uint256",
        "internalType": "uint256"
      }
    ],
    "stateMutability": "view"
  }
]

Source code and metadata: Sourcify.

The source code belongs to the authors of the contract.