From 5bc2f8db63bc945eacc53084c6e0c20dcd12cb31 Mon Sep 17 00:00:00 2001 From: Reinis Martinsons Date: Mon, 17 Jun 2024 14:01:27 +0000 Subject: [PATCH] fix[oval-audit-l-07]: input validation in coinbase oracle constructor Signed-off-by: Reinis Martinsons --- src/oracles/CoinbaseOracle.sol | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/oracles/CoinbaseOracle.sol b/src/oracles/CoinbaseOracle.sol index 9517a58..d879b27 100644 --- a/src/oracles/CoinbaseOracle.sol +++ b/src/oracles/CoinbaseOracle.sol @@ -28,6 +28,8 @@ contract CoinbaseOracle is IAggregatorV3SourceCoinbase { * @param _reporter The address of the reporter allowed to push price data. */ constructor(uint8 _decimals, address _reporter) { + require(_reporter != address(0), "Invalid reporter address"); + decimals = _decimals; reporter = _reporter; }