API3Facade

API3Facade

Git Source

A facade for the integrators expecting the interfaces of an API3 data feed.

State Variables

dataFeed

Interface / Address of a deployed Warlock DataFeed.

IDataFeed public immutable dataFeed;

base

The base asset address.

address public immutable base;

asset

The asset address.

address public immutable asset;

Functions

constructor

constructor(address _dataFeed, address _base, address _asset);

read

Returns the latest price data.

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

Returns

NameTypeDescription

value

int224

The latest price data

timestamp

uint32

The latest price data timestamp

Last updated