Skip to content

Commit bddff40

Browse files
committed
refactor: renaming
1 parent d59d62b commit bddff40

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

src/adapters/WstEthChainlinkAdapter.sol renamed to src/adapters/WstEthEthExchangeRateChainlinkAdapter.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 WstEthChainlinkAdapter
9+
/// @title WstEthEthExchangeRateChainlinkAdapter
1010
/// @author Morpho Labs
1111
/// @custom:contact security@morpho.org
1212
/// @notice wstETH/ETH exchange rate price feed.
1313
/// @dev This contract should only be used as price feed for `ChainlinkOracle`.
14-
contract WstEthChainlinkAdapter is AggregatorV3Interface {
14+
contract WstEthEthExchangeRateChainlinkAdapter is AggregatorV3Interface {
1515
uint8 public constant decimals = 18;
1616
string public constant description = "wstETH/ETH exchange rate";
1717

test/WstEthChainlinkAdapterTest.sol renamed to test/WstEthEthExchangeRateChainlinkAdapterTest.sol

Lines changed: 5 additions & 5 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/WstEthChainlinkAdapter.sol";
7+
import "../src/adapters/WstEthEthExchangeRateChainlinkAdapter.sol";
88

9-
contract WstEthChainlinkAdapterTest is Test {
9+
contract WstEthEthExchangeRateChainlinkAdapterTest is Test {
1010
IStEth internal constant ST_ETH = IStEth(0xae7ab96520DE3A18E5e111B5EaAb095312D7fE84);
1111

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

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

1919
function testDecimals() public {
@@ -27,7 +27,7 @@ contract WstEthChainlinkAdapterTest is Test {
2727

2828
function testDeployZeroAddress() public {
2929
vm.expectRevert(bytes(ErrorsLib.ZERO_ADDRESS));
30-
new WstEthChainlinkAdapter(address(0));
30+
new WstEthEthExchangeRateChainlinkAdapter(address(0));
3131
}
3232

3333
function testReverts() public {

0 commit comments

Comments
 (0)