Skip to content

Commit

Permalink
fix: add missing natspec
Browse files Browse the repository at this point in the history
Signed-off-by: Reinis Martinsons <reinis@umaproject.org>
  • Loading branch information
Reinis-FRP committed May 20, 2024
1 parent 5130d06 commit 6806790
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/adapters/source-adapters/CoinbaseSourceAdapter.sol
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ abstract contract CoinbaseSourceAdapter is DiamondRootOval {
* @param maxTraversal The maximum number of rounds to traverse when looking for historical data.
* @return answer The answer as of the requested timestamp, or the earliest available data if not available, in 18 decimals.
* @return updatedAt The timestamp of the answer.
* @return roundId The roundId of the answer (hardcoded to 1 for Coinbase).
*/
function tryLatestDataAt(uint256 timestamp, uint256 maxTraversal)
public
Expand Down Expand Up @@ -59,6 +60,12 @@ abstract contract CoinbaseSourceAdapter is DiamondRootOval {
return (DecimalLib.convertDecimals(sourceAnswer, SOURCE_DECIMALS, 18), updatedAt);
}

/**
* @notice Returns the requested round data from the source.
* @dev Round data not exposed for Coinbase, so this returns uninitialized data.
* @return answer Round answer in 18 decimals.
* @return updatedAt The timestamp of the answer.
*/
function getSourceDataAtRound(uint256 /* roundId */ ) public view virtual override returns (int256, uint256) {
return (0, 0);
}
Expand Down

0 comments on commit 6806790

Please sign in to comment.