Skip to content

Commit a5e9b02

Browse files
refactor: apply suggestions
Co-authored-by: Quentin Garchery <QGarchery@users.noreply.github.com> Signed-off-by: Merlin Egalite <44097430+MerlinEgalite@users.noreply.github.com>
1 parent 2a02855 commit a5e9b02

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/adapters/WstEthChainlinkAdapter.sol

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ contract WstEthChainlinkAdapter is AggregatorV3Interface {
2323
}
2424

2525
/// @notice Reverts as no Chainlink aggregator is used.
26-
function version() external pure override returns (uint256) {
26+
function version() external pure returns (uint256) {
2727
revert();
2828
}
2929

@@ -32,7 +32,7 @@ contract WstEthChainlinkAdapter is AggregatorV3Interface {
3232
revert();
3333
}
3434

35-
function latestRoundData() public view returns (uint80, int256, uint256, uint256, uint80) {
35+
function latestRoundData() external view returns (uint80, int256, uint256, uint256, uint80) {
3636
uint256 answer = ST_ETH.getPooledEthByShares(10 ** decimals);
3737
require(answer <= uint256(type(int256).max), ErrorsLib.OVERFLOW);
3838
return (0, int256(answer), 0, 0, 0);

0 commit comments

Comments
 (0)