/ contracts / src / AggregatorV3Interface.sol
AggregatorV3Interface.sol
 1  // SPDX-License-Identifier: MIT
 2  pragma solidity ^0.8.13;
 3  
 4  // solhint-disable-next-line interface-starts-with-i
 5  interface AggregatorV3Interface {
 6    function decimals() external view returns (uint8);
 7  
 8    function description() external view returns (string memory);
 9  
10    function version() external view returns (uint256);
11  
12    function getRoundData(
13      uint80 _roundId
14    ) external view returns (uint80 roundId, int256 answer, uint256 startedAt, uint256 updatedAt, uint80 answeredInRound);
15  
16    function latestRoundData()
17      external
18      view
19      returns (uint80 roundId, int256 answer, uint256 startedAt, uint256 updatedAt, uint80 answeredInRound);
20  }