{
    "Function": "_unpublishProject",
    "File": "contracts/Community.sol",
    "Parent Contracts": [
        "node_modules/@openzeppelin/contracts-upgradeable/metatx/ERC2771ContextUpgradeable.sol",
        "node_modules/@openzeppelin/contracts-upgradeable/security/ReentrancyGuardUpgradeable.sol",
        "node_modules/@openzeppelin/contracts-upgradeable/security/PausableUpgradeable.sol",
        "node_modules/@openzeppelin/contracts-upgradeable/utils/ContextUpgradeable.sol",
        "node_modules/@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol",
        "contracts/interfaces/ICommunity.sol"
    ],
    "High-Level Calls": [],
    "Internal Calls": [],
    "Library Calls": [],
    "Low-Level Calls": [],
    "Code": "function _unpublishProject(address _project) internal {\n        // Locally store old community of published project\n        uint256 formerCommunityId = projectPublished[_project];\n\n        // Local instance of variable. For saving gas.\n        ProjectDetails storage _communityProject = _communities[\n            formerCommunityId\n        ].projectDetails[_project];\n\n        // Reduce lending needed to total lent. So no more investment can be made to this project.\n        _communityProject.lendingNeeded = _communityProject.totalLent;\n\n        // Mark project as unpublished.\n        delete projectPublished[_project];\n\n        // Set public fee paid to false.\n        // So if this project is published again to this community,\n        // then this fee will be required to be paid again.\n        _communityProject.publishFeePaid = false;\n\n        emit ProjectUnpublished(formerCommunityId, _project);\n    }"
}