Skip to content

Commit b667bbe

Browse files
committed
feat: silence warnings
1 parent 56832e2 commit b667bbe

File tree

1 file changed

+5
-12
lines changed

1 file changed

+5
-12
lines changed

src/adapters/WstEthOracle.sol

Lines changed: 5 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -20,25 +20,18 @@ contract WstEthOracle is AggregatorV3Interface {
2020
ST_ETH = IStETH(stEth);
2121
}
2222

23-
function decimals() external view returns (uint8) {
23+
function decimals() external pure returns (uint8) {
2424
return DECIMALS;
2525
}
2626

27-
function getRoundData(uint80)
28-
external
29-
view
30-
returns (uint80 roundId, int256 answer, uint256 startedAt, uint256 updatedAt, uint80 answeredInRound)
31-
{
27+
function getRoundData(uint80) external view returns (uint80, int256, uint256, uint256, uint80) {
3228
return latestRoundData();
3329
}
3430

35-
function latestRoundData()
36-
public
37-
view
38-
returns (uint80 roundId, int256 answer, uint256 startedAt, uint256 updatedAt, uint80 answeredInRound)
39-
{
31+
function latestRoundData() public view returns (uint80, int256, uint256, uint256, uint80) {
4032
uint256 ethByShares = ST_ETH.getPooledEthByShares(10 ** DECIMALS);
4133
require(ethByShares < type(uint256).max, "WstEthOracle: OVERFLOW");
42-
answer = int256(ethByShares);
34+
int256 answer = int256(ethByShares);
35+
return (0, answer, 0, 0, 0);
4336
}
4437
}

0 commit comments

Comments
 (0)