Last updated 8 months ago
A facade for the integrators expecting the interfaces of a Pyth data feed.
Interface / Address of a deployed Warlock DataFeed.
The address of the approved pair registrar admin.
IDataFeed public immutable dataFeed;
address public admin;
mapping(bytes32 => Pair) public pairs;
constructor(address _dataFeed);
function chainId() external view returns (uint256);
function registerPair(bytes32 id, address base, address asset) external;
function priceFeedExists(bytes32 id) external view returns (bool);
function getPrice(bytes32 id) external view returns (PythPrice memory);
function getPriceUnsafe(bytes32 id) external view returns (PythPrice memory);
function getPriceNoOlderThan(bytes32 id, uint256 maxAge) external view returns (PythPrice memory);
function latestPriceInfoPublishTime(bytes32 id) external view returns (uint256);
modifier Authorized(address a);
struct Pair { address asset; address base; }
struct PythPrice { int64 price; uint64 conf; int32 expo; uint256 publishTime; }