{
    "Function": "_isValidPreviousOwner",
    "File": "src/AxelarGatewaySinglesig.sol",
    "Parent Contracts": [
        "src/AxelarGateway.sol",
        "src/AdminMultisigBase.sol",
        "src/EternalStorage.sol",
        "src/interfaces/IAxelarGatewaySinglesig.sol",
        "src/interfaces/IAxelarGateway.sol"
    ],
    "High-Level Calls": [],
    "Internal Calls": [
        "_getOwner",
        "_ownerEpoch"
    ],
    "Library Calls": [],
    "Low-Level Calls": [],
    "Code": "function _isValidPreviousOwner(address account) internal view returns (bool) {\n        uint256 ownerEpoch = _ownerEpoch();\n        uint256 recentEpochs = OLD_KEY_RETENTION + uint256(1);\n        uint256 lowerBoundOwnerEpoch = ownerEpoch > recentEpochs ? ownerEpoch - recentEpochs : uint256(0);\n\n        --ownerEpoch;\n        while (ownerEpoch > lowerBoundOwnerEpoch) {\n            if (account == _getOwner(ownerEpoch--)) return true;\n        }\n\n        return false;\n    }"
}