{
    "Function": "_drippedAmt",
    "File": "src/Drips.sol",
    "Parent Contracts": [],
    "High-Level Calls": [],
    "Internal Calls": [],
    "Library Calls": [],
    "Low-Level Calls": [],
    "Code": "function _drippedAmt(uint256 amtPerSec, uint256 start, uint256 end)\n        private\n        view\n        returns (uint256 amt)\n    {\n        // This function is written in Yul because it can be called thousands of times\n        // per transaction and it needs to be optimized as much as possible.\n        // As of Solidity 0.8.13, rewriting it in unchecked Solidity triples its gas cost.\n        uint256 cycleSecs = _cycleSecs;\n        // slither-disable-next-line assembly\n        assembly {\n            let endedCycles := sub(div(end, cycleSecs), div(start, cycleSecs))\n            // slither-disable-next-line divide-before-multiply\n            let amtPerCycle := div(mul(cycleSecs, amtPerSec), _AMT_PER_SEC_MULTIPLIER)\n            amt := mul(endedCycles, amtPerCycle)\n            // slither-disable-next-line weak-prng\n            let amtEnd := div(mul(mod(end, cycleSecs), amtPerSec), _AMT_PER_SEC_MULTIPLIER)\n            amt := add(amt, amtEnd)\n            // slither-disable-next-line weak-prng\n            let amtStart := div(mul(mod(start, cycleSecs), amtPerSec), _AMT_PER_SEC_MULTIPLIER)\n            amt := sub(amt, amtStart)\n        }\n    }"
}