From 98894e14c993d040631a86e1c60c20bcf81c9518 Mon Sep 17 00:00:00 2001 From: Reinis Martinsons Date: Mon, 20 May 2024 06:54:25 +0000 Subject: [PATCH] fix: max int check Signed-off-by: Reinis Martinsons --- src/oracles/CoinbaseOracle.sol | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/oracles/CoinbaseOracle.sol b/src/oracles/CoinbaseOracle.sol index d459dd2..9517a58 100644 --- a/src/oracles/CoinbaseOracle.sol +++ b/src/oracles/CoinbaseOracle.sol @@ -93,7 +93,7 @@ contract CoinbaseOracle is IAggregatorV3SourceCoinbase { require(timestamp > latestTimestamp, "Invalid timestamp."); require(recoverSigner(priceData, signature) == reporter, "Invalid signature."); - require(price < type(int256).max, "price too large"); + require(price < uint256(type(int256).max), "Price exceeds max value."); priceDataStruct.lastRoundId++; priceDataStruct.roundAnswers[priceDataStruct.lastRoundId] = int256(price);