CLFallbackUniV3Oracle
Inherits:FluidOracle, ChainlinkOracleImpl, UniV3OracleImpl
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.
Functions
constructor
sets the Chainlink and UniV3 Oracle configs.
constructor(ChainlinkConstructorParams memory chainlinkParams_, UniV3ConstructorParams memory uniV3Params_)
ChainlinkOracleImpl(chainlinkParams_)
UniV3OracleImpl(uniV3Params_);
Parameters
Name | Type | Description |
---|---|---|
chainlinkParams_ | ChainlinkConstructorParams | ChainlinkOracle constructor params struct. |
uniV3Params_ | UniV3ConstructorParams | UniV3Oracle constructor params struct. |
getExchangeRate
function getExchangeRate() external view override returns (uint256 exchangeRate_);