WeETHsOracleImpl ​
Inherits: OracleError
This contract is used to get the exchange rate between weETHs and ETH
State Variables ​
_WEETHS_PRICE_SCALER_MULTIPLIER ​
constant value for price scaling to reduce gas usage
solidity
uint256 internal immutable _WEETHS_PRICE_SCALER_MULTIPLIER;
_WEETHS_ACCOUNTANT ​
WEETHS contract accountant, e.g. on mainnet 0xbe16605B22a7faCEf247363312121670DFe5afBE
solidity
IWeETHsAccountant internal immutable _WEETHS_ACCOUNTANT;
Functions ​
constructor ​
constructor sets the weETHs (Symbiotic Etherfi's wrapped eETH) weETHs_
token address.
solidity
constructor(IWeETHsAccountant weETHsAccountant_, address pricedAsset_);
_getWeETHsExchangeRateOperate ​
Get the exchange rate for operate() for the weETHs contract. reverts if the accountant contract is paused.
solidity
function _getWeETHsExchangeRateOperate() internal view returns (uint256 rate_);
Returns
Name | Type | Description |
---|---|---|
rate_ | uint256 | The exchange rate in OracleUtils.RATE_OUTPUT_DECIMALS |
_getWeETHsExchangeRateLiquidate ​
Get the exchange rate for liquidate() for the weETHs contract
solidity
function _getWeETHsExchangeRateLiquidate() internal view returns (uint256 rate_);
Returns
Name | Type | Description |
---|---|---|
rate_ | uint256 | The exchange rate in OracleUtils.RATE_OUTPUT_DECIMALS |
weETHsOracleData ​
returns all weETHs oracle related data as utility for easy off-chain use / block explorer in a single view method
solidity
function weETHsOracleData()
public
view
returns (
uint256 weETHsExchangeRateOperate_,
bool operateRateReverts_,
uint256 weETHsExchangeRateLiquidate_,
IWeETHsAccountant weETHsAccountant_
);