{
    "Function": "calculateAddress",
    "File": "src/RecoverySpellFactory.sol",
    "Parent Contracts": [],
    "High-Level Calls": [],
    "Internal Calls": [
        "abi.encode()",
        "require(bool,string)",
        "calculateCreate2Address",
        "_paramChecks",
        "type()"
    ],
    "Library Calls": [],
    "Low-Level Calls": [],
    "Code": "function calculateAddress(\n        bytes32 salt,\n        address[] memory owners,\n        address safe,\n        uint256 threshold,\n        uint256 recoveryThreshold,\n        uint256 delay\n    ) external view returns (address predictedAddress) {\n        _paramChecks(owners, threshold, recoveryThreshold, delay);\n\n        /// duplicate owner check\n        for (uint256 i = 0; i < owners.length; i++) {\n            for (uint256 j = i + 1; j < owners.length; j++) {\n                require(\n                    owners[i] != owners[j], \"RecoverySpell: Duplicate owner\"\n                );\n            }\n        }\n\n        predictedAddress = calculateCreate2Address(\n            address(this),\n            type(RecoverySpell).creationCode,\n            abi.encode(owners, safe, threshold, recoveryThreshold, delay),\n            salt\n        );\n    }"
}