MultiHopOracle

Git Sourcearrow-up-right

Inherits: OracleWrapper

For tokens where no direct oracle / price feeds exists, multiple oracle wrappers can be combined to one.

State Variables

oracles

configuration for the oracles

HopConfig[] public oracles;

Functions

constructor

constructor(HopConfig[] memory _oracles);

_getData

Returns the latest data from one oracle hopping across n oracles

function _getData() internal view override returns (int216 data, uint40 timestamp);

Returns

Name
Type
Description

data

int216

the latest data from the oracle in the QuantAMM format

timestamp

uint40

the timestamp of the data retrieval

Structs

HopConfig

Configuration for one hop

Fits in one storage slot

Last updated