{
    "Function": "hasMajority",
    "File": "contracts/Dao.sol",
    "Parent Contracts": [],
    "High-Level Calls": [
        "iBONDVAULT",
        "iDAOVAULT"
    ],
    "Internal Calls": [],
    "Library Calls": [],
    "Low-Level Calls": [],
    "Code": "function hasMajority(uint _proposalID) public view returns(bool){\n        uint votes = mapPID_votes[_proposalID]; // Get the proposal's total voting weight\n        uint _totalWeight = _DAOVAULT.totalWeight() + _BONDVAULT.totalWeight(); // Get combined total vault weights\n        uint consensus = _totalWeight * majorityFactor / 10000; // Majority > 66.6%\n        if(votes > consensus){\n            return true;\n        } else {\n            return false;\n        }\n    }"
}