IAggregatorV3
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
| Name | Type | Description |
|---|---|---|
| <none> | uint8 |
description
Returns a human-readable description of the feed (e.g. "ETH / USD").
function description() external view returns (string memory);Returns
| Name | Type | Description |
|---|---|---|
| <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
| Name | Type | Description |
|---|---|---|
| roundId | uint80 | The round ID. |
| answer | int256 | The price answer. |
| startedAt | uint256 | Timestamp when the round started. |
| updatedAt | uint256 | Timestamp when the round was last updated. |
| answeredInRound | uint80 | The round ID in which the answer was computed. |