Skip to content
Lattice

IAggregatorV3

Git Source

Title: IAggregatorV3

Author: Vendored minimal subset of Chainlink (https://github.com/smartcontractkit/chainlink-evm/blob/develop/contracts/src/v0.8/shared/interfaces/AggregatorV3Interface.sol).

Upstream license: MIT.

Minimal interface for Chainlink AggregatorV3 price feeds.

Vendored subset — do not add a chainlink-brownie-contracts dependency.

Functions

decimals

Returns the number of decimals in the feed's answer.

function decimals() external view returns (uint8);

Returns

NameTypeDescription
<none>uint8

description

Returns a human-readable description of the feed (e.g. "ETH / USD").

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

Returns

NameTypeDescription
<none>string

latestRoundData

Returns the latest round data from the feed.

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

Returns

NameTypeDescription
roundIduint80The round ID.
answerint256The price answer.
startedAtuint256Timestamp when the round started.
updatedAtuint256Timestamp when the round was last updated.
answeredInRounduint80The round ID in which the answer was computed.