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
Name | Type | Description |
---|---|---|
chainlinkParams_ | struct ChainlinkStructs.ChainlinkConstructorParams | ChainlinkOracle constructor params struct. |
uniV3Params_ | struct UniV3OracleImpl.UniV3ConstructorParams | UniV3Oracle constructor params struct. |
getExchangeRate
function getExchangeRate() external view returns (uint256 exchangeRate_)
Get the exchangeRate_
between the underlying asset and the peg asset in 1e27