{
    "Function": "countVotes",
    "File": "contracts/Dao.sol",
    "Parent Contracts": [],
    "High-Level Calls": [
        "iDAOVAULT",
        "iBONDVAULT"
    ],
    "Internal Calls": [],
    "Library Calls": [],
    "Low-Level Calls": [],
    "Code": "function countVotes() internal returns (uint voteWeight){\n        mapPID_votes[currentProposal] -= mapPIDMember_votes[currentProposal][msg.sender]; // Remove user's current votes from the open proposal\n        voteWeight = _DAOVAULT.getMemberWeight(msg.sender) + _BONDVAULT.getMemberWeight(msg.sender); // Get user's combined total weights\n        mapPID_votes[currentProposal] += voteWeight; // Add user's total weight to the current open proposal (scope: proposal)\n        mapPIDMember_votes[currentProposal][msg.sender] = voteWeight; // Add user's total weight to the current open proposal (scope: member)\n        return voteWeight;\n    }"
}