WeETHWstETHOracle
constructor
constructor(string infoName_, contract IWstETH wstETH, contract IWeETH weETH) public
Parameters
Name | Type | Description |
---|---|---|
infoName_ | string | Oracle identify helper name. |
wstETH | contract IWstETH | address of the wstETH contract |
weETH | contract IWeETH | address of the weETH contract |
getExchangeRateOperate
function getExchangeRateOperate() public view returns (uint256 exchangeRate_)
Get the exchangeRate_
between the underlying asset and the peg asset in 1e27 for operates
getExchangeRateLiquidate
function getExchangeRateLiquidate() external view returns (uint256 exchangeRate_)
Get the exchangeRate_
between the underlying asset and the peg asset in 1e27 for liquidations
getExchangeRate
function getExchangeRate() external view returns (uint256 exchangeRate_)
Deprecated. Use getExchangeRateOperate()
and getExchangeRateLiquidate()
instead. Only implemented for
backwards compatibility.