Skip to content

Commit 53cfbcc

Browse files
committed
refactor: rename to answer
1 parent 7e5a972 commit 53cfbcc

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/adapters/WstEthOracle.sol

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ contract WstEthOracle is AggregatorV3Interface {
2626
}
2727

2828
function latestRoundData() public view returns (uint80, int256, uint256, uint256, uint80) {
29-
uint256 ethByShares = ST_ETH.getPooledEthByShares(10 ** decimals);
30-
require(ethByShares < type(uint256).max, "WstEthOracle: OVERFLOW");
31-
return (0, int256(ethByShares), 0, 0, 0);
29+
uint256 answer = ST_ETH.getPooledEthByShares(10 ** decimals);
30+
require(answer < type(uint256).max, "WstEthOracle: OVERFLOW");
31+
return (0, int256(answer), 0, 0, 0);
3232
}
3333
}

0 commit comments

Comments
 (0)