{
    "Function": "harvest",
    "File": "contracts/Dao.sol",
    "Parent Contracts": [],
    "High-Level Calls": [
        "iRESERVE",
        "iRESERVE",
        "iBEP20"
    ],
    "Internal Calls": [
        "require(bool,string)",
        "calcCurrentReward"
    ],
    "Library Calls": [],
    "Low-Level Calls": [],
    "Code": "function harvest() public {\n        require(_RESERVE.emissions(), \"!emissions\"); // Reserve must have emissions turned on\n        uint reward = calcCurrentReward(msg.sender); // Calculate the user's claimable incentive\n        mapMember_lastTime[msg.sender] = block.timestamp; // Reset user's last harvest time\n        uint reserve = iBEP20(BASE).balanceOf(address(_RESERVE)); // Get total BASE balance of RESERVE\n        uint daoReward = (reserve * daoClaim) / 10000; // Get DAO's share of BASE balance of RESERVE (max user claim amount)\n        if(reward > daoReward){\n            reward = daoReward; // User cannot claim more than the daoReward limit\n        }\n        _RESERVE.grantFunds(reward, msg.sender); // Send the claim to the user\n    }"
}