Skip to content

Commit 7e5a972

Browse files
committed
fix: typo
1 parent a9e37df commit 7e5a972

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

src/adapters/WstEthOracle.sol

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// SPDX-License-Identifier: GPL-2.0-or-later
22
pragma solidity 0.8.21;
33

4-
import {IStETH} from "../interfaces/IStETH.sol";
4+
import {IStEth} from "../interfaces/IStEth.sol";
55
import {AggregatorV3Interface} from "../interfaces/AggregatorV3Interface.sol";
66

77
/// @title WstEthOracle
@@ -14,19 +14,19 @@ contract WstEthOracle is AggregatorV3Interface {
1414
string public constant description = "wstETH/ETH exchange rate price";
1515
uint256 public constant version = 1;
1616

17-
IStETH public immutable ST_ETH;
17+
IStEth public immutable ST_ETH;
1818

1919
constructor(address stEth) {
2020
require(stEth != address(0), "WstEthOracle: ZERO_ADDRESS");
21-
ST_ETH = IStETH(stEth);
21+
ST_ETH = IStEth(stEth);
2222
}
2323

2424
function getRoundData(uint80) external view returns (uint80, int256, uint256, uint256, uint80) {
2525
return latestRoundData();
2626
}
2727

2828
function latestRoundData() public view returns (uint80, int256, uint256, uint256, uint80) {
29-
uint256 ethByShares = ST_ETH.getPooledEthByShares(10 ** decimals());
29+
uint256 ethByShares = ST_ETH.getPooledEthByShares(10 ** decimals);
3030
require(ethByShares < type(uint256).max, "WstEthOracle: OVERFLOW");
3131
return (0, int256(ethByShares), 0, 0, 0);
3232
}

src/interfaces/IStEth.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// SPDX-License-Identifier: GPL-2.0-or-later
22
pragma solidity >=0.5.0;
33

4-
interface IStETH {
4+
interface IStEth {
55
function getPooledEthByShares(uint256) external view returns (uint256);
66
}

test/WstEthOracle.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import "../lib/forge-std/src/Test.sol";
55
import "../src/adapters/WstEthOracle.sol";
66

77
contract ChainlinkOracleTest is Test {
8-
IStETH internal constant ST_ETH = IStETH(0xae7ab96520DE3A18E5e111B5EaAb095312D7fE84);
8+
IStEth internal constant ST_ETH = IStEth(0xae7ab96520DE3A18E5e111B5EaAb095312D7fE84);
99

1010
WstEthOracle internal oracle;
1111

0 commit comments

Comments
 (0)