Skip to content

Commit 6d4bf33

Browse files
Siegriftacenolaza
authored andcommitted
Address review comments
1 parent ba2eac8 commit 6d4bf33

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

contracts/WstETHApi3ReaderProxyV1.sol

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
pragma solidity ^0.8.27;
33

44
import "@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.
1313
contract 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.

contracts/IWstETH.sol renamed to contracts/interfaces/IWstETH.sol

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff 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.
67
interface 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
}

0 commit comments

Comments
 (0)