Contract Source Code:
File 1 of 1 : MockAggregator.sol
// SPDX-License-Identifier: BUSL-1.1 pragma solidity ^0.8.0; contract MockAggregator { int256 private _latestAnswer; event AnswerUpdated(int256 indexed current, uint256 indexed roundId, uint256 updatedAt); constructor(int256 initialAnswer) { _latestAnswer = initialAnswer; emit AnswerUpdated(initialAnswer, 0, block.timestamp); } function latestAnswer() external view returns (int256) { return _latestAnswer; } function getTokenType() external pure returns (uint256) { return 1; } function decimals() external pure returns (uint8) { return 8; } }
Please enter a contract address above to load the contract details and source code.
Please DO NOT store any passwords or private keys here. A private note (up to 100 characters) can be saved and is useful for transaction tracking.
This website uses cookies to improve your experience. By continuing to use this website, you agree to its Terms and Privacy Policy.