WstETHOracle

WstETHOracle

Depending on the equivalence flag price is either based on assumption that 1 stETH = 1 ETH or the price of stETH/USD (secondary market price) is obtained from the oracle.

Solidity API

ASSUME_STETH_ETH_EQUIVALENCE

A flag assuming 1:1 price equivalence between stETH/ETH

bool ASSUME_STETH_ETH_EQUIVALENCE

STETH

Address of stETH

contract IStETH STETH

WSTETH_ADDRESS

Address of wstETH

address WSTETH_ADDRESS

WETH_ADDRESS

Address of WETH


RESILIENT_ORACLE

Address of Resilient Oracle


constructor

Constructor for the implementation contract.


getPrice

Gets the USD price of wstETH asset

Parameters

Name
Type
Description

asset

address

Address of wstETH

Return Values

Name
Type
Description

[0]

uint256

wstETH Price in USD scaled by 1e18


Last updated