// SPDX-License-Identifier: FSL-1.1-MIT pragma solidity ^0.8.24; import "./library/AggregatorV3Interface.sol"; contract MockAggregatorV3 is AggregatorV3Interface { int256 public answer; uint80 public roundId; uint256 public startedAt; uint256 public updatedAt; uint80 public answeredInRound; function setLatestRoundData( uint80 _roundId, int256 _answer, uint256 _startedAt, uint256 _updatedAt, uint80 _answeredInRound ) public { roundId = _roundId; answer = _answer; startedAt = _startedAt; updatedAt = _updatedAt; answeredInRound = _answeredInRound; } function latestRoundData() external view override returns (uint80, int256, uint256, uint256, uint80) { return (roundId, answer, startedAt, updatedAt, answeredInRound); } function getRoundData(uint80 _roundId) external view override returns (uint80, int256, uint256, uint256, uint80) { return (_roundId, answer, startedAt, updatedAt, answeredInRound); } function decimals() external pure override returns (uint8) { return 8; } function description() external pure override returns (string memory) { return "Mock Aggregator"; } function version() external pure override returns (uint256) { return 1; } }