Skip to content

Commit

Permalink
add back price check
Browse files Browse the repository at this point in the history
Signed-off-by: Matt Rice <[email protected]>
  • Loading branch information
mrice32 committed May 20, 2024
1 parent fb2f5d0 commit 1289f2f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/oracles/CoinbaseOracle.sol
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +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");

priceDataStruct.lastRoundId++;
priceDataStruct.roundAnswers[priceDataStruct.lastRoundId] = int256(price);
Expand Down

0 comments on commit 1289f2f

Please sign in to comment.