Skip to content
Lattice

DIAFeed

Git Source

Packed data for a single registered DIA price feed.

APPEND-ONLY. A registered feed has oracle != address(0) (the not-registered sentinel). string diaKey is placed last to avoid tight-packing complications with dynamic types.

struct DIAFeed {
    /// @notice The DIA OracleV2 contract address.
    address oracle;
    /// @notice Maximum age in seconds before a value is considered stale.
    uint48 maxStaleness;
    /// @notice The DIA price key string (e.g. "ETH/USD").
    string diaKey;
}

Properties

NameTypeDescription
oracleaddress
maxStalenessuint48
diaKeystring