Skip to content

Commit

Permalink
update comments
Browse files Browse the repository at this point in the history
  • Loading branch information
vinta committed Jun 2, 2022
1 parent 39ff20b commit ea7e94b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion contracts/test/TestAggregatorV3.sol
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ contract TestAggregatorV3 is AggregatorV3Interface {
);
}

// for debug only
// won't use in production, just for knowing how roundId works
// https://docs.chain.link/docs/historical-price-data/#roundid-in-proxy
function computeRoundId(uint16 phaseId, uint64 aggregatorRoundId) external pure returns (uint80) {
return uint80((uint256(phaseId) << 64) | aggregatorRoundId);
Expand Down

0 comments on commit ea7e94b

Please sign in to comment.