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
solidity
uint256 internal immutable _WEETH_PRICE_SCALER_MULTIPLIER;
_WEETH ​
WEETH contract, e.g. on mainnet 0xCd5fE23C85820F7B72D0926FC9b05b43E359b7ee
solidity
IWeETH internal immutable _WEETH;
Functions ​
constructor ​
constructor sets the weETH (Etherfi's wrapped eETH) weETH_
token address.
solidity
constructor(IWeETH weETH_);
_getWeETHExchangeRate ​
Get the exchange rate from weETH contract
solidity
function _getWeETHExchangeRate() internal view returns (uint256 rate_);
Returns
Name | Type | Description |
---|---|---|
rate_ | uint256 | The exchange rate in OracleUtils.RATE_OUTPUT_DECIMALS |
weETHOracleData ​
returns all weETH oracle related data as utility for easy off-chain use / block explorer in a single view method
solidity
function weETHOracleData() public view returns (uint256 weETHExchangeRate_, IWeETH weETH_);