Skip to content

Commit

Permalink
refactor: rename to answer
Browse files Browse the repository at this point in the history
  • Loading branch information
MerlinEgalite committed Jan 25, 2024
1 parent 7e5a972 commit 53cfbcc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/adapters/WstEthOracle.sol
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ contract WstEthOracle is AggregatorV3Interface {
}

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

0 comments on commit 53cfbcc

Please sign in to comment.