// SPDX-License-Identifier: MIT pragma solidity 0.8.23; contract MockAggregator { int256 public answer; uint256 public updatedAt; constructor(int256 a) { answer = a; updatedAt = block.timestamp; } function set(int256 a) external { answer = a; updatedAt = block.timestamp; } function setStale(int256 a, uint256 t) external { answer = a; updatedAt = t; } function latestRoundData() external view returns (uint80, int256, uint256, uint256, uint80) { return (1, answer, updatedAt, updatedAt, 1); } }