Skip to content

Commit

Permalink
fix[oval-audit-l-07]: input validation in coinbase oracle constructor
Browse files Browse the repository at this point in the history
Signed-off-by: Reinis Martinsons <[email protected]>
  • Loading branch information
Reinis-FRP committed Jun 17, 2024
1 parent 297ab25 commit 5bc2f8d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/oracles/CoinbaseOracle.sol
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 5bc2f8d

Please sign in to comment.