Skip to content

WeETHOracleImpl ​

This contract is used to get the exchange rate between weETH and eETH

_WEETH_PRICE_SCALER_MULTIPLIER ​

solidity
uint256 _WEETH_PRICE_SCALER_MULTIPLIER

constant value for price scaling to reduce gas usage

_WEETH ​

solidity
contract IWeETH _WEETH

WEETH contract, e.g. on mainnet 0xCd5fE23C85820F7B72D0926FC9b05b43E359b7ee

constructor ​

solidity
constructor(contract IWeETH weETH_) internal

constructor sets the weETH (Etherfi's wrapped eETH) weETH_ token address.

_getWeETHExchangeRate ​

solidity
function _getWeETHExchangeRate() internal view returns (uint256 rate_)

Get the exchange rate from weETH contract

Return Values ​

NameTypeDescription
rate_uint256The exchange rate in OracleUtils.RATE_OUTPUT_DECIMALS

weETHOracleData ​

solidity
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