Skip to content

Commit

Permalink
feat: remove max int check
Browse files Browse the repository at this point in the history
Signed-off-by: Pablo Maldonado <pablo@umaproject.org>
  • Loading branch information
md0x committed May 17, 2024
1 parent b59d1ad commit fb2f5d0
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/oracles/CoinbaseOracle.sol
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,6 @@ contract CoinbaseOracle is IAggregatorV3SourceCoinbase {
) = abi.decode(priceData, (string, uint256, string, uint256));

require(keccak256(abi.encodePacked(kind)) == keccak256(abi.encodePacked("price")), "Invalid kind.");
require(price < uint256(type(int256).max), "Price exceeds max value.");

PriceData storage priceDataStruct = prices[ticker];
uint256 latestTimestamp = priceDataStruct.roundTimestamps[priceDataStruct.lastRoundId];
Expand Down

0 comments on commit fb2f5d0

Please sign in to comment.