{
    "Function": "calcReward",
    "File": "contracts/Dao.sol",
    "Parent Contracts": [],
    "High-Level Calls": [
        "iBONDVAULT",
        "iDAOVAULT",
        "iBONDVAULT",
        "iBEP20",
        "iUTILS",
        "iDAOVAULT"
    ],
    "Internal Calls": [],
    "Library Calls": [],
    "Low-Level Calls": [],
    "Code": "function calcReward(address member) public view returns(uint){\n        uint weight = _DAOVAULT.getMemberWeight(member) + _BONDVAULT.getMemberWeight(member); // Get combined total weights (scope: user)\n        uint _totalWeight = _DAOVAULT.totalWeight() + _BONDVAULT.totalWeight(); // Get combined total weights (scope: vaults)\n        uint reserve = iBEP20(BASE).balanceOf(address(_RESERVE)) / erasToEarn; // Aim to deplete reserve over a number of days\n        uint daoReward = (reserve * daoClaim) / 10000; // Get the DAO's share of that\n        return _UTILS.calcShare(weight, _totalWeight, daoReward); // Get users's share of that (1 era worth)\n    }"
}