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_EQUIVALENCESTETH
Address of stETH
contract IStETH STETHWSTETH_ADDRESS
Address of wstETH
address WSTETH_ADDRESSWETH_ADDRESS
Address of WETH
address WETH_ADDRESSRESILIENT_ORACLE
Address of Resilient Oracle
contract OracleInterface RESILIENT_ORACLEconstructor
Constructor for the implementation contract.
constructor(address wstETHAddress, address wETHAddress, address stETHAddress, address resilientOracleAddress, bool assumeEquivalence) publicgetPrice
Gets the USD price of wstETH asset
function getPrice(address asset) public view returns (uint256)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

