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