File tree Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -6,12 +6,12 @@ import {AggregatorV3Interface} from "../interfaces/AggregatorV3Interface.sol";
6
6
7
7
import {ErrorsLib} from "../libraries/ErrorsLib.sol " ;
8
8
9
- /// @title WstEthChainlinkAdapter
9
+ /// @title WstEthEthExchangeRateChainlinkAdapter
10
10
/// @author Morpho Labs
11
11
/// @custom:contact security@morpho.org
12
12
/// @notice wstETH/ETH exchange rate price feed.
13
13
/// @dev This contract should only be used as price feed for `ChainlinkOracle`.
14
- contract WstEthChainlinkAdapter is AggregatorV3Interface {
14
+ contract WstEthEthExchangeRateChainlinkAdapter is AggregatorV3Interface {
15
15
uint8 public constant decimals = 18 ;
16
16
string public constant description = "wstETH/ETH exchange rate " ;
17
17
Original file line number Diff line number Diff line change @@ -4,16 +4,16 @@ pragma solidity ^0.8.0;
4
4
import "../src/libraries/ErrorsLib.sol " ;
5
5
6
6
import "../lib/forge-std/src/Test.sol " ;
7
- import "../src/adapters/WstEthChainlinkAdapter .sol " ;
7
+ import "../src/adapters/WstEthEthExchangeRateChainlinkAdapter .sol " ;
8
8
9
- contract WstEthChainlinkAdapterTest is Test {
9
+ contract WstEthEthExchangeRateChainlinkAdapterTest is Test {
10
10
IStEth internal constant ST_ETH = IStEth (0xae7ab96520DE3A18E5e111B5EaAb095312D7fE84 );
11
11
12
- WstEthChainlinkAdapter internal oracle;
12
+ WstEthEthExchangeRateChainlinkAdapter internal oracle;
13
13
14
14
function setUp () public {
15
15
vm.createSelectFork (vm.envString ("ETH_RPC_URL " ));
16
- oracle = new WstEthChainlinkAdapter (address (ST_ETH));
16
+ oracle = new WstEthEthExchangeRateChainlinkAdapter (address (ST_ETH));
17
17
}
18
18
19
19
function testDecimals () public {
@@ -27,7 +27,7 @@ contract WstEthChainlinkAdapterTest is Test {
27
27
28
28
function testDeployZeroAddress () public {
29
29
vm.expectRevert (bytes (ErrorsLib.ZERO_ADDRESS));
30
- new WstEthChainlinkAdapter (address (0 ));
30
+ new WstEthEthExchangeRateChainlinkAdapter (address (0 ));
31
31
}
32
32
33
33
function testReverts () public {
You can’t perform that action at this time.
0 commit comments