@@ -4,20 +4,20 @@ pragma solidity ^0.8.27;
4
4
import "@api3/contracts/interfaces/IApi3ReaderProxy.sol " ;
5
5
import "./interfaces/IWstETH.sol " ;
6
6
7
- /// @title An immutable proxy contract that reads the price of wstETH/stETH
7
+ /// @title An immutable proxy contract that reads the stETH per wstETH ratio
8
8
/// directly from the WstETH contract on Ethereum.
9
- /// @dev This contract implements only the IApi3ReaderProxy and not the
10
- /// AggregatorV2V3Interface which is usually implemented with Api3 proxies. The
11
- /// user of this contract needs to be aware of this and only use this contract
12
- /// where the IApi3ReaderProxy interface is expected.
9
+ /// @dev This contract implements only the IApi3ReaderProxy interface and not the
10
+ /// AggregatorV2V3Interface which is usually implemented by Api3 proxies. The
11
+ /// user of this contract needs to be aware of this limitation and only use this
12
+ /// contract where the IApi3ReaderProxy interface is expected.
13
13
contract WstETHApi3ReaderProxyV1 is IApi3ReaderProxy {
14
14
/// @notice The address of the wstETH contract on Ethereum mainnet.
15
15
address public constant WST_ETH =
16
16
0x7f39C581F595B53c5cb19bD0b3f8dA6c935E2Ca0 ;
17
17
18
18
/// @inheritdoc IApi3ReaderProxy
19
- /// @dev The value returned by this function is the stETH value scaled to 18
20
- /// decimals. The timestamp returned is the current block timestamp.
19
+ /// @dev Returns the stETH/wstETH exchange rate with 18 decimals precision.
20
+ /// The timestamp returned is the current block timestamp.
21
21
function read ()
22
22
public
23
23
view
0 commit comments