WeETHUniV3CheckCLRSOracle ​
Inherits:FluidOracle, WeETHOracleImpl, UniV3CheckCLRSOracle
Gets the exchange rate between the underlying asset and the peg asset by using:
- weETH Oracle price for weETH -> eETH = ETH (pegged)
- result from 1. combined with a uniV3CheckCLRSOracle to get someToken (e.g. ETH) -> someToken2. e.g. when going from weETH to USDC:
- weETH -> eETH = ETH via weETH Oracle
- ETH -> USDC via UniV3 ETH <> USDC pool checked against ETH -> USDC Chainlink feed.
Functions ​
constructor ​
constructs a WeETHUniV3CheckCLRSOracle with all inherited contracts
solidity
constructor(string memory infoName_, IWeETH weETH_, UniV3CheckCLRSConstructorParams memory uniV3CheckCLRSParams_)
WeETHOracleImpl(weETH_)
UniV3CheckCLRSOracle(infoName_, uniV3CheckCLRSParams_);
Parameters
Name | Type | Description |
---|---|---|
infoName_ | string | Oracle identify helper name. |
weETH_ | IWeETH | address of the weETH contract |
uniV3CheckCLRSParams_ | UniV3CheckCLRSConstructorParams | UniV3CheckCLRSOracle constructor params |
getExchangeRateOperate ​
solidity
function getExchangeRateOperate()
public
view
override(FluidOracle, UniV3CheckCLRSOracle)
returns (uint256 exchangeRate_);
getExchangeRateLiquidate ​
solidity
function getExchangeRateLiquidate()
public
view
override(FluidOracle, UniV3CheckCLRSOracle)
returns (uint256 exchangeRate_);
getExchangeRate ​
solidity
function getExchangeRate() public view override(FluidOracle, UniV3CheckCLRSOracle) returns (uint256 exchangeRate_);