Skip to content

WstETHInvertCenterPrice ​

Git Source

Inherits:FluidCenterPrice, WstETHInvertOracleImpl

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

Functions ​

constructor ​

constructor sets the wstETH wstETH_ token address.

solidity
constructor(string memory infoName_, IWstETH wstETH_) WstETHInvertOracleImpl(wstETH_) FluidCenterPrice(infoName_);

centerPrice ​

solidity
function centerPrice() external view override returns (uint256 price_);