From c2580bf25b81cd3ac6cb6e9291164210d35e686f Mon Sep 17 00:00:00 2001 From: Pablo Maldonado Date: Mon, 17 Jun 2024 19:58:04 +0100 Subject: [PATCH] refactor: move up reporter function Signed-off-by: Pablo Maldonado --- src/oracles/CoinbaseOracle.sol | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/oracles/CoinbaseOracle.sol b/src/oracles/CoinbaseOracle.sol index a0b25d2..27db30e 100644 --- a/src/oracles/CoinbaseOracle.sol +++ b/src/oracles/CoinbaseOracle.sol @@ -24,6 +24,14 @@ contract CoinbaseOracle is IAggregatorV3SourceCoinbase { event PricePushed(string indexed ticker, uint80 indexed roundId, int256 price, uint256 timestamp); + /** + * @notice Returns the address of the reporter. + * @return The address of the reporter. + */ + function reporter() public view virtual returns (address) { + return 0xfCEAdAFab14d46e20144F48824d0C09B1a03F2BC; + } + /** * @notice Returns the latest round data for a given ticker. * @param ticker The ticker symbol to retrieve the data for. @@ -103,12 +111,4 @@ contract CoinbaseOracle is IAggregatorV3SourceCoinbase { bytes32 hash = keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n32", keccak256(message))); return ecrecover(hash, v, r, s); } - - /** - * @notice Returns the address of the reporter. - * @return The address of the reporter. - */ - function reporter() public view virtual returns (address) { - return 0xfCEAdAFab14d46e20144F48824d0C09B1a03F2BC; - } }