WeETHOracleImpl
Inherits: OracleError
This contract is used to get the exchange rate between weETH and eETH
State Variables
_WEETH_PRICE_SCALER_MULTIPLIER
constant value for price scaling to reduce gas usage
uint256 internal immutable _WEETH_PRICE_SCALER_MULTIPLIER;
_WEETH
WEETH contract, e.g. on mainnet 0xCd5fE23C85820F7B72D0926FC9b05b43E359b7ee
IWeETH internal immutable _WEETH;
Functions
constructor
constructor sets the weETH (Etherfi's wrapped eETH) weETH_
token address.
constructor(IWeETH weETH_);
_getWeETHExchangeRate
Get the exchange rate from weETH contract
function _getWeETHExchangeRate() internal view returns (uint256 rate_);
Returns
Name | Type | Description |
---|---|---|
rate_ | uint256 | The exchange rate in WEETH_OUTPUT_DECIMALS |
weETHOracleData
returns all wWtETH oracle related data as utility for easy off-chain use / block explorer in a single view method
function weETHOracleData() public view returns (uint256 weETHExchangeRate_, IWeETH weETH_);