Skip to content
Lattice

IApi3Proxy

Git Source

Title: IApi3Proxy

Author: Vendored minimal subset of API3 (https://github.com/api3dao/contracts).

Upstream license: MIT.

Minimal interface for an API3 dAPI reader proxy.

Vendored subset — do not add an api3 contracts dependency. A dAPI is read through a per-feed proxy contract; value is reported with 18 decimals (WAD) and timestamp is the off-chain update time the consumer validates for staleness.

Functions

read

Reads the current dAPI value and its update timestamp.

function read() external view returns (int224 value, uint32 timestamp);

Returns

NameTypeDescription
valueint224The dAPI value, scaled to 1e18 (18 decimals).
timestampuint32The timestamp the value was last updated off-chain.