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.

constructor(IWstETH wstETH_) WstETHOracleImpl(wstETH_);

getExchangeRate

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