Skip to content

WeETHsOracleImpl ​

This contract is used to get the exchange rate between weETHs and ETH

_WEETHS_PRICE_SCALER_MULTIPLIER ​

solidity
uint256 _WEETHS_PRICE_SCALER_MULTIPLIER

constant value for price scaling to reduce gas usage

_WEETHS_ACCOUNTANT ​

solidity
contract IWeETHsAccountant _WEETHS_ACCOUNTANT

WEETHS contract accountant, e.g. on mainnet 0xbe16605B22a7faCEf247363312121670DFe5afBE

constructor ​

solidity
constructor(contract IWeETHsAccountant weETHsAccountant_, address pricedAsset_) internal

constructor sets the weETHs (Symbiotic Etherfi's wrapped eETH) weETHs_ token address.

_getWeETHsExchangeRateOperate ​

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

Get the exchange rate for operate() for the weETHs contract. reverts if the accountant contract is paused.

Return Values ​

NameTypeDescription
rate_uint256The exchange rate in OracleUtils.RATE_OUTPUT_DECIMALS

_getWeETHsExchangeRateLiquidate ​

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

Get the exchange rate for liquidate() for the weETHs contract

Return Values ​

NameTypeDescription
rate_uint256The exchange rate in OracleUtils.RATE_OUTPUT_DECIMALS

weETHsOracleData ​

solidity
function weETHsOracleData() public view returns (uint256 weETHsExchangeRateOperate_, bool operateRateReverts_, uint256 weETHsExchangeRateLiquidate_, contract IWeETHsAccountant weETHsAccountant_)

returns all weETHs oracle related data as utility for easy off-chain use / block explorer in a single view method