```\n/// @dev Set read-only mode (state cannot be changed).\nfunction setReadOnlyMode(bool shouldSetReadOnlyMode)\n    external\n    onlyAuthorized\n{\n    // solhint-disable-next-line not-rely-on-time\n    uint96 timestamp = block.timestamp.downcastToUint96();\n    if (shouldSetReadOnlyMode) {\n        stakingContract = readOnlyProxy;\n        readOnlyState = IStructs.ReadOnlyState({\n            isReadOnlyModeSet: true,\n            lastSetTimestamp: timestamp\n        });\n```\n