Skip to content

WstETHCenterPrice ​

Git Source

Inherits:FluidCenterPrice, WstETHOracleImpl

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_) WstETHOracleImpl(wstETH_) FluidCenterPrice(infoName_);

centerPrice ​

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