File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Expand file tree Collapse file tree 2 files changed +6
-6
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 WstEthOracle
9
+ /// @title WstEthChainlinkAdapter
10
10
/// @author Morpho Labs
11
11
/// @custom:contact [email protected]
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 WstEthOracle is AggregatorV3Interface {
14
+ contract WstEthChainlinkAdapter is AggregatorV3Interface {
15
15
uint8 public constant decimals = uint8 (18 );
16
16
string public constant description = "wstETH/ETH exchange rate price " ;
17
17
uint256 public constant version = 1 ;
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/WstEthOracle .sol " ;
7
+ import "../src/adapters/WstEthChainlinkAdapter .sol " ;
8
8
9
9
contract ChainlinkOracleTest is Test {
10
10
IStEth internal constant ST_ETH = IStEth (0xae7ab96520DE3A18E5e111B5EaAb095312D7fE84 );
11
11
12
- WstEthOracle internal oracle;
12
+ WstEthChainlinkAdapter internal oracle;
13
13
14
14
function setUp () public {
15
15
vm.createSelectFork (vm.envString ("ETH_RPC_URL " ));
16
- oracle = new WstEthOracle (address (ST_ETH));
16
+ oracle = new WstEthChainlinkAdapter (address (ST_ETH));
17
17
}
18
18
19
19
function testLastRoundDataUintMax () public {
@@ -42,7 +42,7 @@ contract ChainlinkOracleTest is Test {
42
42
43
43
function testDeployZeroAddress () public {
44
44
vm.expectRevert (bytes (ErrorsLib.ZERO_ADDRESS));
45
- new WstEthOracle (address (0 ));
45
+ new WstEthChainlinkAdapter (address (0 ));
46
46
}
47
47
48
48
function testConfig () public {
You can’t perform that action at this time.
0 commit comments