{"constructor_args":"0x000000000000000000000000594c5ee5a326295ff6212c31bb3311747d3bd562000000000000000000000000e10a7d39e4ed00351dfe17378b5896e5f8ab422f","is_partially_verified":false,"is_changed_bytecode":false,"abi":[{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"_oracle","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":false,"internalType":"address","name":"oldOracle","type":"address"},{"indexed":false,"internalType":"address","name":"newOracle","type":"address"}],"name":"OracleChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferStarted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"inputs":[],"name":"acceptOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"oracle","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pendingOwner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"price","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOracle","type":"address"}],"name":"setOracle","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"}],"conflicting_implementations":null,"certified":false,"additional_sources":[{"file_path":"node_modules/@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":"node_modules/@openzeppelin/contracts/access/Ownable2Step.sol","source_code":"// SPDX-License-Identifier: MIT\n// OpenZeppelin Contracts (last updated v5.1.0) (access/Ownable2Step.sol)\n\npragma solidity ^0.8.20;\n\nimport {Ownable} from \"./Ownable.sol\";\n\n/**\n * @dev Contract module which provides access control mechanism, where\n * there is an account (an owner) that can be granted exclusive access to\n * specific functions.\n *\n * This extension of the {Ownable} contract includes a two-step mechanism to transfer\n * ownership, where the new owner must call {acceptOwnership} in order to replace the\n * old one. This can help prevent common mistakes, such as transfers of ownership to\n * incorrect accounts, or to contracts that are unable to interact with the\n * permission system.\n *\n * The initial owner is specified at deployment time in the constructor for `Ownable`. This\n * can later be changed with {transferOwnership} and {acceptOwnership}.\n *\n * This module is used through inheritance. It will make available all functions\n * from parent (Ownable).\n */\nabstract contract Ownable2Step is Ownable {\n    address private _pendingOwner;\n\n    event OwnershipTransferStarted(address indexed previousOwner, address indexed newOwner);\n\n    /**\n     * @dev Returns the address of the pending owner.\n     */\n    function pendingOwner() public view virtual returns (address) {\n        return _pendingOwner;\n    }\n\n    /**\n     * @dev Starts the ownership transfer of the contract to a new account. Replaces the pending transfer if there is one.\n     * Can only be called by the current owner.\n     *\n     * Setting `newOwner` to the zero address is allowed; this can be used to cancel an initiated ownership transfer.\n     */\n    function transferOwnership(address newOwner) public virtual override onlyOwner {\n        _pendingOwner = newOwner;\n        emit OwnershipTransferStarted(owner(), newOwner);\n    }\n\n    /**\n     * @dev Transfers ownership of the contract to a new account (`newOwner`) and deletes any pending owner.\n     * Internal function without access restriction.\n     */\n    function _transferOwnership(address newOwner) internal virtual override {\n        delete _pendingOwner;\n        super._transferOwnership(newOwner);\n    }\n\n    /**\n     * @dev The new owner accepts the ownership transfer.\n     */\n    function acceptOwnership() public virtual {\n        address sender = _msgSender();\n        if (pendingOwner() != sender) {\n            revert OwnableUnauthorizedAccount(sender);\n        }\n        _transferOwnership(sender);\n    }\n}\n"},{"file_path":"node_modules/@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":"prague","language":"solidity","is_verified_via_eth_bytecode_db":false,"is_fully_verified":true,"license_type":"none","is_blueprint":false,"name":"OracleRouter","creation_bytecode":"0x608060405234801561000f575f5ffd5b50604051610a21380380610a218339818101604052810190610031919061024e565b815f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036100a2575f6040517f1e4fbdf7000000000000000000000000000000000000000000000000000000008152600401610099919061029b565b60405180910390fd5b6100b1816100f960201b60201c565b508060025f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050506102b4565b60015f6101000a81549073ffffffffffffffffffffffffffffffffffffffff021916905561012c8161012f60201b60201c565b50565b5f5f5f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050815f5f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b5f5ffd5b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f61021d826101f4565b9050919050565b61022d81610213565b8114610237575f5ffd5b50565b5f8151905061024881610224565b92915050565b5f5f60408385031215610264576102636101f0565b5b5f6102718582860161023a565b92505060206102828582860161023a565b9150509250929050565b61029581610213565b82525050565b5f6020820190506102ae5f83018461028c565b92915050565b610760806102c15f395ff3fe608060405234801561000f575f5ffd5b5060043610610086575f3560e01c80638da5cb5b116100595780638da5cb5b146100d8578063a035b1fe146100f6578063e30c397814610114578063f2fde38b1461013257610086565b8063715018a61461008a57806379ba5097146100945780637adbf9731461009e5780637dc0d1d0146100ba575b5f5ffd5b61009261014e565b005b61009c610161565b005b6100b860048036038101906100b3919061062a565b6101ef565b005b6100c2610299565b6040516100cf9190610664565b60405180910390f35b6100e06102be565b6040516100ed9190610664565b60405180910390f35b6100fe6102e5565b60405161010b9190610695565b60405180910390f35b61011c610379565b6040516101299190610664565b60405180910390f35b61014c6004803603810190610147919061062a565b6103a1565b005b61015661044d565b61015f5f6104d4565b565b5f61016a610504565b90508073ffffffffffffffffffffffffffffffffffffffff1661018b610379565b73ffffffffffffffffffffffffffffffffffffffff16146101e357806040517f118cdaa70000000000000000000000000000000000000000000000000000000081526004016101da9190610664565b60405180910390fd5b6101ec816104d4565b50565b6101f761044d565b5f60025f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690508160025f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055507f05cd89403c6bdeac21c2ff33de395121a31fa1bc2bf3adf4825f1f86e79969dd818360405161028d9291906106ae565b60405180910390a15050565b60025f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b5f5f5f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b5f60025f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a035b1fe6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610350573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061037491906106ff565b905090565b5f60015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6103a961044d565b8060015f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508073ffffffffffffffffffffffffffffffffffffffff166104086102be565b73ffffffffffffffffffffffffffffffffffffffff167f38d16b8cac22d99fc7c124b9cd0de2d3fa1faef420bfe791d8c362d765e2270060405160405180910390a350565b610455610504565b73ffffffffffffffffffffffffffffffffffffffff166104736102be565b73ffffffffffffffffffffffffffffffffffffffff16146104d257610496610504565b6040517f118cdaa70000000000000000000000000000000000000000000000000000000081526004016104c99190610664565b60405180910390fd5b565b60015f6101000a81549073ffffffffffffffffffffffffffffffffffffffff02191690556105018161050b565b50565b5f33905090565b5f5f5f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050815f5f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b5f5ffd5b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f6105f9826105d0565b9050919050565b610609816105ef565b8114610613575f5ffd5b50565b5f8135905061062481610600565b92915050565b5f6020828403121561063f5761063e6105cc565b5b5f61064c84828501610616565b91505092915050565b61065e816105ef565b82525050565b5f6020820190506106775f830184610655565b92915050565b5f819050919050565b61068f8161067d565b82525050565b5f6020820190506106a85f830184610686565b92915050565b5f6040820190506106c15f830185610655565b6106ce6020830184610655565b9392505050565b6106de8161067d565b81146106e8575f5ffd5b50565b5f815190506106f9816106d5565b92915050565b5f60208284031215610714576107136105cc565b5b5f610721848285016106eb565b9150509291505056fea26469706673582212201c8ca40925702bc484a9c57eccaabb6f24a7e1df9f0736b04633c24a025ac5d164736f6c634300081b0033000000000000000000000000594c5ee5a326295ff6212c31bb3311747d3bd562000000000000000000000000e10a7d39e4ed00351dfe17378b5896e5f8ab422f","external_libraries":[],"proxy_type":null,"implementations":[],"verified_at":"2026-02-12T09:26:34.762084Z","is_verified_via_verifier_alliance":false,"compiler_version":"v0.8.27+commit.40a35a09","decoded_constructor_args":[["0x594c5eE5a326295FF6212C31BB3311747D3bD562",{"internalType":"address","name":"owner","type":"address"}],["0xE10a7D39E4eD00351DFe17378b5896e5f8aB422f",{"internalType":"address","name":"_oracle","type":"address"}]],"sourcify_repo_url":null,"optimization_runs":null,"compiler_settings":{"evmVersion":"prague","libraries":{},"metadata":{"bytecodeHash":"ipfs"},"optimizer":{"enabled":false,"runs":200},"outputSelection":{"*":{"":["*"],"*":["*"]}},"remappings":["@openzeppelin/=node_modules/@openzeppelin/","forge-std/=node_modules/forge-std/src/","openzeppelin-contracts-upgradeable/=node_modules/@openzeppelin/contracts-upgradeable/","openzeppelin-contracts/=node_modules/@openzeppelin/contracts/","openzeppelin-foundry-upgrades/=node_modules/@openzeppelin/foundry-upgrades/src/"]},"is_verified":true,"verified_twin_address_hash":null,"optimization_enabled":false,"deployed_bytecode":"0x608060405234801561000f575f5ffd5b5060043610610086575f3560e01c80638da5cb5b116100595780638da5cb5b146100d8578063a035b1fe146100f6578063e30c397814610114578063f2fde38b1461013257610086565b8063715018a61461008a57806379ba5097146100945780637adbf9731461009e5780637dc0d1d0146100ba575b5f5ffd5b61009261014e565b005b61009c610161565b005b6100b860048036038101906100b3919061062a565b6101ef565b005b6100c2610299565b6040516100cf9190610664565b60405180910390f35b6100e06102be565b6040516100ed9190610664565b60405180910390f35b6100fe6102e5565b60405161010b9190610695565b60405180910390f35b61011c610379565b6040516101299190610664565b60405180910390f35b61014c6004803603810190610147919061062a565b6103a1565b005b61015661044d565b61015f5f6104d4565b565b5f61016a610504565b90508073ffffffffffffffffffffffffffffffffffffffff1661018b610379565b73ffffffffffffffffffffffffffffffffffffffff16146101e357806040517f118cdaa70000000000000000000000000000000000000000000000000000000081526004016101da9190610664565b60405180910390fd5b6101ec816104d4565b50565b6101f761044d565b5f60025f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690508160025f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055507f05cd89403c6bdeac21c2ff33de395121a31fa1bc2bf3adf4825f1f86e79969dd818360405161028d9291906106ae565b60405180910390a15050565b60025f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b5f5f5f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b5f60025f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a035b1fe6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610350573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061037491906106ff565b905090565b5f60015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6103a961044d565b8060015f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508073ffffffffffffffffffffffffffffffffffffffff166104086102be565b73ffffffffffffffffffffffffffffffffffffffff167f38d16b8cac22d99fc7c124b9cd0de2d3fa1faef420bfe791d8c362d765e2270060405160405180910390a350565b610455610504565b73ffffffffffffffffffffffffffffffffffffffff166104736102be565b73ffffffffffffffffffffffffffffffffffffffff16146104d257610496610504565b6040517f118cdaa70000000000000000000000000000000000000000000000000000000081526004016104c99190610664565b60405180910390fd5b565b60015f6101000a81549073ffffffffffffffffffffffffffffffffffffffff02191690556105018161050b565b50565b5f33905090565b5f5f5f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050815f5f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b5f5ffd5b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f6105f9826105d0565b9050919050565b610609816105ef565b8114610613575f5ffd5b50565b5f8135905061062481610600565b92915050565b5f6020828403121561063f5761063e6105cc565b5b5f61064c84828501610616565b91505092915050565b61065e816105ef565b82525050565b5f6020820190506106775f830184610655565b92915050565b5f819050919050565b61068f8161067d565b82525050565b5f6020820190506106a85f830184610686565b92915050565b5f6040820190506106c15f830185610655565b6106ce6020830184610655565b9392505050565b6106de8161067d565b81146106e8575f5ffd5b50565b5f815190506106f9816106d5565b92915050565b5f60208284031215610714576107136105cc565b5b5f610721848285016106eb565b9150509291505056fea26469706673582212201c8ca40925702bc484a9c57eccaabb6f24a7e1df9f0736b04633c24a025ac5d164736f6c634300081b0033","source_code":"// SPDX-License-Identifier: UNLICENSED\npragma solidity ^0.8.13;\n\nimport {Ownable, Ownable2Step} from \"openzeppelin-contracts/access/Ownable2Step.sol\";\n\ninterface IOracle {\n    function price() external view returns (uint256);\n}\n\ncontract OracleRouter is Ownable2Step, IOracle {\n    event OracleChanged(address oldOracle, address newOracle);\n\n    address public oracle;\n\n    constructor(address owner, address _oracle) Ownable(owner) {\n        oracle = _oracle;\n    }\n\n    function price() external view returns (uint256) {\n        return IOracle(oracle).price();\n    }\n\n    function setOracle(address newOracle) public onlyOwner {\n        address oldOracle = oracle;\n        oracle = newOracle;\n        emit OracleChanged(oldOracle, newOracle);\n    }\n}\n","creation_status":"success","file_path":"src/OracleRouter.sol"}