Skip to content

WstETHOracle ​

Git Source

Inherits:FluidOracle, WstETHOracleImpl

Gets the exchange rate between wstETH and stETH directly from the wstETH contract.

Functions ​

constructor ​

constructor sets the wstETH wstETH_ token address.

solidity
constructor(string memory infoName_, IWstETH wstETH_) WstETHOracleImpl(wstETH_) FluidOracle(infoName_);

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_);