CLFallbackUniV3Oracle

Gets the exchange rate between the underlying asset and the peg asset by using: the price from a Chainlink price feed or, if that feed fails, the price from a UniV3 TWAP delta checked Oracle.

constructor

constructor(struct ChainlinkStructs.ChainlinkConstructorParams chainlinkParams_, struct UniV3OracleImpl.UniV3ConstructorParams uniV3Params_) public

sets the Chainlink and UniV3 Oracle configs.

Parameters

NameTypeDescription
chainlinkParams_struct ChainlinkStructs.ChainlinkConstructorParamsChainlinkOracle constructor params struct.
uniV3Params_struct UniV3OracleImpl.UniV3ConstructorParamsUniV3Oracle constructor params struct.

getExchangeRate

function getExchangeRate() external view returns (uint256 exchangeRate_)

Get the exchangeRate_ between the underlying asset and the peg asset in 1e27