Skip to content

Commit

Permalink
refactor: move up reporter function
Browse files Browse the repository at this point in the history
Signed-off-by: Pablo Maldonado <pablo@umaproject.org>
  • Loading branch information
md0x committed Jun 17, 2024
1 parent 6fc7258 commit c2580bf
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/oracles/CoinbaseOracle.sol
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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;
}
}

0 comments on commit c2580bf

Please sign in to comment.