Skip to content

Commit a87343c

Browse files
committed
refactor: rename file
1 parent d71392b commit a87343c

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/adapters/WstEthOracle.sol renamed to src/adapters/WstEthChainlinkAdapter.sol

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@ import {AggregatorV3Interface} from "../interfaces/AggregatorV3Interface.sol";
66

77
import {ErrorsLib} from "../libraries/ErrorsLib.sol";
88

9-
/// @title WstEthOracle
9+
/// @title WstEthChainlinkAdapter
1010
/// @author Morpho Labs
1111
/// @custom:contact [email protected]
1212
/// @notice wstETH/ETH exchange rate price feed.
1313
/// @dev This contract should only be used as price feed for `ChainlinkOracle`.
14-
contract WstEthOracle is AggregatorV3Interface {
14+
contract WstEthChainlinkAdapter is AggregatorV3Interface {
1515
uint8 public constant decimals = uint8(18);
1616
string public constant description = "wstETH/ETH exchange rate price";
1717
uint256 public constant version = 1;

test/WstEthOracle.sol

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,16 @@ pragma solidity ^0.8.0;
44
import "../src/libraries/ErrorsLib.sol";
55

66
import "../lib/forge-std/src/Test.sol";
7-
import "../src/adapters/WstEthOracle.sol";
7+
import "../src/adapters/WstEthChainlinkAdapter.sol";
88

99
contract ChainlinkOracleTest is Test {
1010
IStEth internal constant ST_ETH = IStEth(0xae7ab96520DE3A18E5e111B5EaAb095312D7fE84);
1111

12-
WstEthOracle internal oracle;
12+
WstEthChainlinkAdapter internal oracle;
1313

1414
function setUp() public {
1515
vm.createSelectFork(vm.envString("ETH_RPC_URL"));
16-
oracle = new WstEthOracle(address(ST_ETH));
16+
oracle = new WstEthChainlinkAdapter(address(ST_ETH));
1717
}
1818

1919
function testLastRoundDataUintMax() public {
@@ -42,7 +42,7 @@ contract ChainlinkOracleTest is Test {
4242

4343
function testDeployZeroAddress() public {
4444
vm.expectRevert(bytes(ErrorsLib.ZERO_ADDRESS));
45-
new WstEthOracle(address(0));
45+
new WstEthChainlinkAdapter(address(0));
4646
}
4747

4848
function testConfig() public {

0 commit comments

Comments
 (0)