{
    "Function": "_receiveDripsResult",
    "File": "src/Drips.sol",
    "Parent Contracts": [],
    "High-Level Calls": [],
    "Internal Calls": [
        "_receivableDripsCyclesRange",
        "_dripsStorage"
    ],
    "Library Calls": [],
    "Low-Level Calls": [],
    "Code": "function _receiveDripsResult(uint256 userId, uint256 assetId, uint32 maxCycles)\n        internal\n        view\n        returns (\n            uint128 receivedAmt,\n            uint32 receivableCycles,\n            uint32 fromCycle,\n            uint32 toCycle,\n            int128 amtPerCycle\n        )\n    {\n        (fromCycle, toCycle) = _receivableDripsCyclesRange(userId, assetId);\n        if (toCycle - fromCycle > maxCycles) {\n            receivableCycles = toCycle - fromCycle - maxCycles;\n            toCycle -= receivableCycles;\n        }\n        DripsState storage state = _dripsStorage().states[assetId][userId];\n        for (uint32 cycle = fromCycle; cycle < toCycle; cycle++) {\n            amtPerCycle += state.amtDeltas[cycle].thisCycle;\n            receivedAmt += uint128(amtPerCycle);\n            amtPerCycle += state.amtDeltas[cycle].nextCycle;\n        }\n    }"
}