Skip to content

Commit 589468f

Browse files
committed
feat: add description
1 parent e57e0fb commit 589468f

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

src/adapters/WstEthEthExchangeRateChainlinkAdapter.sol

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ import {ErrorsLib} from "../libraries/ErrorsLib.sol";
1313
/// @dev This contract should only be used as price feed for `ChainlinkOracle`.
1414
contract WstEthEthExchangeRateChainlinkAdapter is MinimalAggregatorV3Interface {
1515
uint8 public constant decimals = 18;
16+
string public constant description = "wstETH/ETH exchange rate";
1617

1718
IStEth public immutable ST_ETH;
1819

test/WstEthEthExchangeRateChainlinkAdapterTest.sol

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,10 @@ contract WstEthEthExchangeRateChainlinkAdapterTest is Test {
2424
assertEq(oracle.decimals(), uint8(18));
2525
}
2626

27+
function testDescription() public {
28+
assertEq(oracle.description(), "wstETH/ETH exchange rate");
29+
}
30+
2731
function testDeployZeroAddress() public {
2832
vm.expectRevert(bytes(ErrorsLib.ZERO_ADDRESS));
2933
new WstEthEthExchangeRateChainlinkAdapter(address(0));

0 commit comments

Comments
 (0)