Skip to content

WeETHsWstETHOracle ​

Git Source

Inherits:FluidOracle, WstETHOracleImpl, WeETHsOracleImpl

Functions ​

constructor ​

solidity
constructor(string memory infoName_, IWstETH wstETH_, IWeETHsAccountant weETHsAccountant_, address weETHs_)
    WstETHOracleImpl(wstETH_)
    WeETHsOracleImpl(weETHsAccountant_, weETHs_)
    FluidOracle(infoName_);

Parameters

NameTypeDescription
infoName_stringOracle identify helper name.
wstETH_IWstETHaddress of the wstETH contract
weETHsAccountant_IWeETHsAccountantaddress of the weETHs accountant contract
weETHs_addressaddress of the weETHs token vault contract

getExchangeRateOperate ​

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

getExchangeRateLiquidate ​

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

getExchangeRate ​

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