Skip to content

WeETHsWstETHOracle ​

constructor ​

solidity
constructor(string infoName_, contract IWstETH wstETH_, contract IWeETHsAccountant weETHsAccountant_, address weETHs_) public

Parameters ​

NameTypeDescription
infoName_stringOracle identify helper name.
wstETH_contract IWstETHaddress of the wstETH contract
weETHsAccountant_contract IWeETHsAccountantaddress of the weETHs accountant contract
weETHs_addressaddress of the weETHs token vault contract

getExchangeRateOperate ​

solidity
function getExchangeRateOperate() public view returns (uint256 exchangeRate_)

Get the exchangeRate_ between the underlying asset and the peg asset in 1e27 for operates

getExchangeRateLiquidate ​

solidity
function getExchangeRateLiquidate() external view returns (uint256 exchangeRate_)

Get the exchangeRate_ between the underlying asset and the peg asset in 1e27 for liquidations

getExchangeRate ​

solidity
function getExchangeRate() external view returns (uint256 exchangeRate_)

Deprecated. Use getExchangeRateOperate() and getExchangeRateLiquidate() instead. Only implemented for backwards compatibility.