{
    "Function": "_isBalanceEnough",
    "File": "src/Drips.sol",
    "Parent Contracts": [],
    "High-Level Calls": [],
    "Internal Calls": [
        "_getConfig",
        "_drippedAmt"
    ],
    "Library Calls": [],
    "Low-Level Calls": [],
    "Code": "function _isBalanceEnough(\n        uint256 balance,\n        uint256[] memory configs,\n        uint256 configsLen,\n        uint256 maxEnd\n    ) private view returns (bool isEnough) {\n        unchecked {\n            uint256 spent = 0;\n            for (uint256 i = 0; i < configsLen; i++) {\n                (uint256 amtPerSec, uint256 start, uint256 end) = _getConfig(configs, i);\n                // slither-disable-next-line timestamp\n                if (maxEnd <= start) {\n                    continue;\n                }\n                // slither-disable-next-line timestamp\n                if (end > maxEnd) {\n                    end = maxEnd;\n                }\n                spent += _drippedAmt(amtPerSec, start, end);\n                if (spent > balance) {\n                    return false;\n                }\n            }\n            return true;\n        }\n    }"
}