# 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

```solidity
bool ASSUME_STETH_ETH_EQUIVALENCE
```

***

#### STETH

Address of stETH

```solidity
contract IStETH STETH
```

***

#### WSTETH\_ADDRESS

Address of wstETH

```solidity
address WSTETH_ADDRESS
```

***

#### WETH\_ADDRESS

Address of WETH

```solidity
address WETH_ADDRESS
```

***

#### RESILIENT\_ORACLE

Address of Resilient Oracle

```solidity
contract OracleInterface RESILIENT_ORACLE
```

***

#### constructor

Constructor for the implementation contract.

```solidity
constructor(address wstETHAddress, address wETHAddress, address stETHAddress, address resilientOracleAddress, bool assumeEquivalence) public
```

***

#### getPrice

Gets the USD price of wstETH asset

```solidity
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 |

***


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs-v4.venus.io/technical-reference/reference-oracle/correlated-token-oracles/wst-eth-oracle.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
