{"constructor_args":"0x0000000000000000000000002598fc49d387e857b7a67de87267ddd4468c4ce6","is_partially_verified":false,"is_changed_bytecode":false,"abi":[{"inputs":[{"internalType":"address","name":"initialOwner","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"OwnableInvalidOwner","type":"error"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"OwnableUnauthorizedAccount","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint80","name":"roundId","type":"uint80"},{"indexed":false,"internalType":"int256","name":"newReserve","type":"int256"}],"name":"ReserveSet","type":"event"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"description","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint80","name":"_roundId","type":"uint80"}],"name":"getRoundData","outputs":[{"internalType":"uint80","name":"roundId_","type":"uint80"},{"internalType":"int256","name":"answer","type":"int256"},{"internalType":"uint256","name":"startedAt","type":"uint256"},{"internalType":"uint256","name":"updatedAt_","type":"uint256"},{"internalType":"uint80","name":"answeredInRound","type":"uint80"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"latestRoundData","outputs":[{"internalType":"uint80","name":"","type":"uint80"},{"internalType":"int256","name":"","type":"int256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint80","name":"","type":"uint80"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"reserve","outputs":[{"internalType":"int256","name":"","type":"int256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"roundId","outputs":[{"internalType":"uint80","name":"","type":"uint80"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"int256","name":"_reserve","type":"int256"}],"name":"setReserve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"updatedAt","outputs":[{"internalType":"uint64","name":"","type":"uint64"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"version","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"pure","type":"function"}],"conflicting_implementations":null,"certified":false,"additional_sources":[{"file_path":"@chainlink/contracts/src/v0.8/shared/interfaces/AggregatorV3Interface.sol","source_code":"// SPDX-License-Identifier: MIT\npragma solidity ^0.8.0;\n\n// solhint-disable-next-line interface-starts-with-i\ninterface AggregatorV3Interface {\n  function decimals() external view returns (uint8);\n\n  function description() external view returns (string memory);\n\n  function version() external view returns (uint256);\n\n  function getRoundData(\n    uint80 _roundId\n  ) external view returns (uint80 roundId, int256 answer, uint256 startedAt, uint256 updatedAt, uint80 answeredInRound);\n\n  function latestRoundData()\n    external\n    view\n    returns (uint80 roundId, int256 answer, uint256 startedAt, uint256 updatedAt, uint80 answeredInRound);\n}\n"},{"file_path":"@openzeppelin/contracts/access/Ownable.sol","source_code":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)\n\npragma solidity ^0.8.20;\n\nimport {Context} from \"../utils/Context.sol\";\n\n/**\n * @dev Contract module which provides a basic access control mechanism, where\n * there is an account (an owner) that can be granted exclusive access to\n * specific functions.\n *\n * The initial owner is set to the address provided by the deployer. This can\n * later be changed with {transferOwnership}.\n *\n * This module is used through inheritance. It will make available the modifier\n * `onlyOwner`, which can be applied to your functions to restrict their use to\n * the owner.\n */\nabstract contract Ownable is Context {\n    address private _owner;\n\n    /**\n     * @dev The caller account is not authorized to perform an operation.\n     */\n    error OwnableUnauthorizedAccount(address account);\n\n    /**\n     * @dev The owner is not a valid owner account. (eg. `address(0)`)\n     */\n    error OwnableInvalidOwner(address owner);\n\n    event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);\n\n    /**\n     * @dev Initializes the contract setting the address provided by the deployer as the initial owner.\n     */\n    constructor(address initialOwner) {\n        if (initialOwner == address(0)) {\n            revert OwnableInvalidOwner(address(0));\n        }\n        _transferOwnership(initialOwner);\n    }\n\n    /**\n     * @dev Throws if called by any account other than the owner.\n     */\n    modifier onlyOwner() {\n        _checkOwner();\n        _;\n    }\n\n    /**\n     * @dev Returns the address of the current owner.\n     */\n    function owner() public view virtual returns (address) {\n        return _owner;\n    }\n\n    /**\n     * @dev Throws if the sender is not the owner.\n     */\n    function _checkOwner() internal view virtual {\n        if (owner() != _msgSender()) {\n            revert OwnableUnauthorizedAccount(_msgSender());\n        }\n    }\n\n    /**\n     * @dev Leaves the contract without owner. It will not be possible to call\n     * `onlyOwner` functions. Can only be called by the current owner.\n     *\n     * NOTE: Renouncing ownership will leave the contract without an owner,\n     * thereby disabling any functionality that is only available to the owner.\n     */\n    function renounceOwnership() public virtual onlyOwner {\n        _transferOwnership(address(0));\n    }\n\n    /**\n     * @dev Transfers ownership of the contract to a new account (`newOwner`).\n     * Can only be called by the current owner.\n     */\n    function transferOwnership(address newOwner) public virtual onlyOwner {\n        if (newOwner == address(0)) {\n            revert OwnableInvalidOwner(address(0));\n        }\n        _transferOwnership(newOwner);\n    }\n\n    /**\n     * @dev Transfers ownership of the contract to a new account (`newOwner`).\n     * Internal function without access restriction.\n     */\n    function _transferOwnership(address newOwner) internal virtual {\n        address oldOwner = _owner;\n        _owner = newOwner;\n        emit OwnershipTransferred(oldOwner, newOwner);\n    }\n}\n"},{"file_path":"@openzeppelin/contracts/utils/Context.sol","source_code":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)\n\npragma solidity ^0.8.20;\n\n/**\n * @dev Provides information about the current execution context, including the\n * sender of the transaction and its data. While these are generally available\n * via msg.sender and msg.data, they should not be accessed in such a direct\n * manner, since when dealing with meta-transactions the account sending and\n * paying for execution may not be the actual sender (as far as an application\n * is concerned).\n *\n * This contract is only required for intermediate, library-like contracts.\n */\nabstract contract Context {\n    function _msgSender() internal view virtual returns (address) {\n        return msg.sender;\n    }\n\n    function _msgData() internal view virtual returns (bytes calldata) {\n        return msg.data;\n    }\n\n    function _contextSuffixLength() internal view virtual returns (uint256) {\n        return 0;\n    }\n}\n"}],"is_verified_via_sourcify":false,"can_be_visualized_via_sol2uml":true,"evm_version":"paris","language":"solidity","is_verified_via_eth_bytecode_db":true,"is_fully_verified":true,"license_type":"none","is_blueprint":false,"name":"FallbackReserveFeed","creation_bytecode":"0x608060405234801561001057600080fd5b5060405161078938038061078983398101604081905261002f916100be565b806001600160a01b03811661005e57604051631e4fbdf760e01b81526000600482015260240160405180910390fd5b6100678161006e565b50506100ee565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6000602082840312156100d057600080fd5b81516001600160a01b03811681146100e757600080fd5b9392505050565b61068c806100fd6000396000f3fe608060405234801561001057600080fd5b50600436106100d45760003560e01c80638cd221c911610081578063cd3293de1161005b578063cd3293de14610229578063f2fde38b14610232578063feaf968c1461024557600080fd5b80638cd221c9146101875780638da5cb5b146101c45780639a6fc8f5146101df57600080fd5b8063715018a6116100b2578063715018a6146101135780637284e4161461011b5780637519ab501461015a57600080fd5b8063302d1c94146100d9578063313ce567146100ee57806354fd4d5014610102575b600080fd5b6100ec6100e7366004610541565b610275565b005b604051601281526020015b60405180910390f35b60015b6040519081526020016100f9565b6100ec610348565b604080518082018252601a81527f4d6174726978446f636b2042756c6c696f6e2052657365727665000000000000602082015290516100f9919061055a565b60025461016e9067ffffffffffffffff1681565b60405167ffffffffffffffff90911681526020016100f9565b6002546101a99068010000000000000000900469ffffffffffffffffffff1681565b60405169ffffffffffffffffffff90911681526020016100f9565b6000546040516001600160a01b0390911681526020016100f9565b6101f26101ed3660046105a9565b61035c565b6040805169ffffffffffffffffffff968716815260208101959095528401929092526060830152909116608082015260a0016100f9565b61010560015481565b6100ec6102403660046105dc565b61043c565b60025460015468010000000000000000820469ffffffffffffffffffff169167ffffffffffffffff1680836101f2565b61027d610493565b60018181556002805467ffffffffffffffff19164267ffffffffffffffff1617908190556102c4916801000000000000000090910469ffffffffffffffffffff1690610605565b600280547fffffffffffffffffffffffffffff00000000000000000000ffffffffffffffff166801000000000000000069ffffffffffffffffffff938416810291909117918290556040518481529104909116907f9a896f77a6f912d07d268e936d8ba2e84c6235b3342638496fb918de79a7f9829060200160405180910390a250565b610350610493565b61035a60006104d9565b565b6000806000806000600260089054906101000a900469ffffffffffffffffffff1669ffffffffffffffffffff168669ffffffffffffffffffff1614610402576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600760248201527f4e4f5f444154410000000000000000000000000000000000000000000000000060448201526064015b60405180910390fd5b505060025460015469ffffffffffffffffffff680100000000000000008304169690955067ffffffffffffffff9091169350839250859150565b610444610493565b6001600160a01b038116610487576040517f1e4fbdf7000000000000000000000000000000000000000000000000000000008152600060048201526024016103f9565b610490816104d9565b50565b6000546001600160a01b0316331461035a576040517f118cdaa70000000000000000000000000000000000000000000000000000000081523360048201526024016103f9565b600080546001600160a01b038381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b60006020828403121561055357600080fd5b5035919050565b60006020808352835180602085015260005b818110156105885785810183015185820160400152820161056c565b506000604082860101526040601f19601f8301168501019250505092915050565b6000602082840312156105bb57600080fd5b813569ffffffffffffffffffff811681146105d557600080fd5b9392505050565b6000602082840312156105ee57600080fd5b81356001600160a01b03811681146105d557600080fd5b69ffffffffffffffffffff81811683821601908082111561064f577f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b509291505056fea2646970667358221220e14b4abf4963cc64d13028f163d13a08e6a9284ba1cba3fa6cb5787acb86c98b64736f6c634300081800330000000000000000000000002598fc49d387e857b7a67de87267ddd4468c4ce6","external_libraries":[],"proxy_type":null,"implementations":[],"verified_at":"2025-08-27T09:33:01.320505Z","is_verified_via_verifier_alliance":true,"compiler_version":"0.8.24+commit.e11b9ed9","decoded_constructor_args":[["0x2598FC49d387E857B7A67dE87267DdD4468c4CE6",{"internalType":"address","name":"initialOwner","type":"address"}]],"sourcify_repo_url":null,"optimization_runs":1000,"compiler_settings":{"evmVersion":"paris","libraries":{},"metadata":{"bytecodeHash":"ipfs"},"optimizer":{"enabled":true,"runs":1000},"remappings":[]},"is_verified":true,"verified_twin_address_hash":null,"optimization_enabled":true,"deployed_bytecode":"0x608060405234801561001057600080fd5b50600436106100d45760003560e01c80638cd221c911610081578063cd3293de1161005b578063cd3293de14610229578063f2fde38b14610232578063feaf968c1461024557600080fd5b80638cd221c9146101875780638da5cb5b146101c45780639a6fc8f5146101df57600080fd5b8063715018a6116100b2578063715018a6146101135780637284e4161461011b5780637519ab501461015a57600080fd5b8063302d1c94146100d9578063313ce567146100ee57806354fd4d5014610102575b600080fd5b6100ec6100e7366004610541565b610275565b005b604051601281526020015b60405180910390f35b60015b6040519081526020016100f9565b6100ec610348565b604080518082018252601a81527f4d6174726978446f636b2042756c6c696f6e2052657365727665000000000000602082015290516100f9919061055a565b60025461016e9067ffffffffffffffff1681565b60405167ffffffffffffffff90911681526020016100f9565b6002546101a99068010000000000000000900469ffffffffffffffffffff1681565b60405169ffffffffffffffffffff90911681526020016100f9565b6000546040516001600160a01b0390911681526020016100f9565b6101f26101ed3660046105a9565b61035c565b6040805169ffffffffffffffffffff968716815260208101959095528401929092526060830152909116608082015260a0016100f9565b61010560015481565b6100ec6102403660046105dc565b61043c565b60025460015468010000000000000000820469ffffffffffffffffffff169167ffffffffffffffff1680836101f2565b61027d610493565b60018181556002805467ffffffffffffffff19164267ffffffffffffffff1617908190556102c4916801000000000000000090910469ffffffffffffffffffff1690610605565b600280547fffffffffffffffffffffffffffff00000000000000000000ffffffffffffffff166801000000000000000069ffffffffffffffffffff938416810291909117918290556040518481529104909116907f9a896f77a6f912d07d268e936d8ba2e84c6235b3342638496fb918de79a7f9829060200160405180910390a250565b610350610493565b61035a60006104d9565b565b6000806000806000600260089054906101000a900469ffffffffffffffffffff1669ffffffffffffffffffff168669ffffffffffffffffffff1614610402576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600760248201527f4e4f5f444154410000000000000000000000000000000000000000000000000060448201526064015b60405180910390fd5b505060025460015469ffffffffffffffffffff680100000000000000008304169690955067ffffffffffffffff9091169350839250859150565b610444610493565b6001600160a01b038116610487576040517f1e4fbdf7000000000000000000000000000000000000000000000000000000008152600060048201526024016103f9565b610490816104d9565b50565b6000546001600160a01b0316331461035a576040517f118cdaa70000000000000000000000000000000000000000000000000000000081523360048201526024016103f9565b600080546001600160a01b038381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b60006020828403121561055357600080fd5b5035919050565b60006020808352835180602085015260005b818110156105885785810183015185820160400152820161056c565b506000604082860101526040601f19601f8301168501019250505092915050565b6000602082840312156105bb57600080fd5b813569ffffffffffffffffffff811681146105d557600080fd5b9392505050565b6000602082840312156105ee57600080fd5b81356001600160a01b03811681146105d557600080fd5b69ffffffffffffffffffff81811683821601908082111561064f577f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b509291505056fea2646970667358221220e14b4abf4963cc64d13028f163d13a08e6a9284ba1cba3fa6cb5787acb86c98b64736f6c63430008180033","source_code":"// SPDX-License-Identifier: GPL-3.0\npragma solidity ^0.8.24;\n\nimport \"@chainlink/contracts/src/v0.8/shared/interfaces/AggregatorV3Interface.sol\";\nimport \"@openzeppelin/contracts/access/Ownable.sol\";\n\ncontract FallbackReserveFeed is Ownable, AggregatorV3Interface {\n    int256 public reserve;\n    uint64 public updatedAt;\n    uint80 public roundId;\n\n    event ReserveSet(uint80 indexed roundId, int256 newReserve);\n\n    constructor(address initialOwner) Ownable(initialOwner) {}\n\n    function decimals() external pure returns (uint8) {\n        return 18;\n    }\n\n    function description() external pure returns (string memory) {\n        return \"MatrixDock Bullion Reserve\";\n    }\n\n    function version() external pure returns (uint256) {\n        return 1;\n    }\n\n    function setReserve(int256 _reserve) public onlyOwner {\n        reserve = _reserve;\n        updatedAt = uint64(block.timestamp);\n        roundId = roundId + 1;\n        emit ReserveSet(roundId, _reserve);\n    }\n\n    function getRoundData(\n        uint80 _roundId\n    )\n        external\n        view\n        returns (\n            uint80 roundId_,\n            int256 answer,\n            uint256 startedAt,\n            uint256 updatedAt_,\n            uint80 answeredInRound\n        )\n    {\n        require(_roundId == roundId, \"NO_DATA\");\n        return latestRoundData();\n    }\n\n    function latestRoundData()\n        public\n        view\n        returns (\n            uint80 /*roundId*/,\n            int256 /*answer*/,\n            uint256 /*startedAt*/,\n            uint256 /*updatedAt*/,\n            uint80 /*answeredInRound*/\n        )\n    {\n        return (roundId, reserve, uint(updatedAt), uint(updatedAt), roundId);\n    }\n}\n","creation_status":"success","file_path":"contracts/FallbackReserveFeed.sol"}