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