Skip to content
Lattice

PythFeed

Git Source

Packed data for a single registered Pyth feed.

APPEND-ONLY. A registered feed has maxStaleness != 0 (the not-registered sentinel).

struct PythFeed {
    /// @notice The Pyth price-feed id.
    bytes32 priceId;
    /// @notice Maximum age in seconds before a price is considered stale.
    uint48 maxStaleness;
    /// @notice Maximum confidence ratio in basis points (`conf/price`); 0 disables the check.
    uint64 maxConfBps;
}

Properties

NameTypeDescription
priceIdbytes32
maxStalenessuint48
maxConfBpsuint64