{
    "Function": "_getUncollectedFees",
    "File": "src/V3Oracle.sol",
    "Parent Contracts": [
        "src/interfaces/IErrors.sol",
        "lib/openzeppelin-contracts/contracts/access/Ownable.sol",
        "lib/openzeppelin-contracts/contracts/utils/Context.sol",
        "src/interfaces/IV3Oracle.sol"
    ],
    "High-Level Calls": [
        "IUniswapV3Pool",
        "FullMath",
        "FullMath",
        "IUniswapV3Pool"
    ],
    "Internal Calls": [
        "_getFeeGrowthInside"
    ],
    "Library Calls": [
        "mulDiv",
        "mulDiv"
    ],
    "Low-Level Calls": [],
    "Code": "function _getUncollectedFees(PositionState memory position, int24 tick)\n        internal\n        view\n        returns (uint128 fees0, uint128 fees1)\n    {\n        (uint256 feeGrowthInside0LastX128, uint256 feeGrowthInside1LastX128) = _getFeeGrowthInside(\n            position.pool,\n            position.tickLower,\n            position.tickUpper,\n            tick,\n            position.pool.feeGrowthGlobal0X128(),\n            position.pool.feeGrowthGlobal1X128()\n        );\n\n        // allow overflow - this is as designed by uniswap - see PositionValue library (for solidity < 0.8)\n        uint256 feeGrowth0;\n        uint256 feeGrowth1;\n        unchecked {\n            feeGrowth0 = feeGrowthInside0LastX128 - position.feeGrowthInside0LastX128;\n            feeGrowth1 = feeGrowthInside1LastX128 - position.feeGrowthInside1LastX128;\n        }\n\n        fees0 = uint128(FullMath.mulDiv(feeGrowth0, position.liquidity, Q128));\n        fees1 = uint128(FullMath.mulDiv(feeGrowth1, position.liquidity, Q128));\n    }"
}