Skip to main content

IChainlinkV3Aggregator

Git Source

Author: Chainlink

Interface for Chainlink V3 aggregator contract

Copied from https://github.com/smartcontractkit/chainlink/blob/master/contracts/src/v0.8/interfaces/AggregatorV3Interface.sol

Functions

decimals

The number of decimals the price is formatted with

function decimals() external view returns (uint8);

description

The description of the aggregator

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

version

The version number of the aggregator

function version() external view returns (uint256);

latestRoundData

Get the data from the latest round

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

Returns

NameTypeDescription
roundIduint80The round ID
answerint256The current price
startedAtuint256The timestamp of when the round started
updatedAtuint256The timestamp of when the round was updated
answeredInRounduint80(Deprecated) Previously used when answers could take multiple rounds to be computed