File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 22pragma solidity ^ 0.8.27 ;
33
44import "@api3/contracts/interfaces/IApi3ReaderProxy.sol " ;
5- import "./IWstETH.sol " ;
5+ import "./interfaces/ IWstETH.sol " ;
66
77/// @title An immutable proxy contract that reads the price of wstETH/stETH
88/// directly from the WstETH contract on Ethereum.
@@ -11,11 +11,10 @@ import "./IWstETH.sol";
1111/// user of this contract needs to be aware of this and only use this contract
1212/// where the IApi3ReaderProxy interface is expected.
1313contract WstETHApi3ReaderProxyV1 is IApi3ReaderProxy {
14+ /// @notice The address of the wstETH contract on Ethereum mainnet.
1415 address public constant WST_ETH =
1516 0x7f39C581F595B53c5cb19bD0b3f8dA6c935E2Ca0 ;
1617
17- constructor () {}
18-
1918 /// @inheritdoc IApi3ReaderProxy
2019 /// @dev The value returned by this function is the stETH value scaled to 18
2120 /// decimals. The timestamp returned is the current block timestamp.
Original file line number Diff line number Diff line change @@ -3,7 +3,8 @@ pragma solidity ^0.8.27;
33
44/// @title A minimal interface for the wstETH contract on Ethereum, used to read
55/// the stETH value per token value of 1 unit of wstETH.
6+ /// @dev The returned value is scaled to 18 decimals.
67interface IWstETH {
7- /// @notice Returns the stETH value per token value of 1 unit of wstETH.
8+ /// @return The stETH value per token value of 1 unit of wstETH, scaled to 18 decimals .
89 function stEthPerToken () external view returns (uint256 );
910}
You can’t perform that action at this time.
0 commit comments