{
    "Function": "claimFees",
    "File": "src/V3FactoryOwner.sol",
    "Parent Contracts": [],
    "High-Level Calls": [
        "INotifiableRewardReceiver",
        "IUniswapV3PoolOwnerActions",
        "SafeERC20"
    ],
    "Internal Calls": [
        "revert V3FactoryOwner__InsufficientFeesCollected()"
    ],
    "Library Calls": [
        "safeTransferFrom"
    ],
    "Low-Level Calls": [],
    "Code": "function claimFees(\n    IUniswapV3PoolOwnerActions _pool,\n    address _recipient,\n    uint128 _amount0Requested,\n    uint128 _amount1Requested\n  ) external returns (uint128, uint128) {\n    PAYOUT_TOKEN.safeTransferFrom(msg.sender, address(REWARD_RECEIVER), payoutAmount);\n    REWARD_RECEIVER.notifyRewardAmount(payoutAmount);\n    (uint128 _amount0, uint128 _amount1) =\n      _pool.collectProtocol(_recipient, _amount0Requested, _amount1Requested);\n\n    // Protect the caller from receiving less than requested. See `collectProtocol` for context.\n    if (_amount0 < _amount0Requested || _amount1 < _amount1Requested) {\n      revert V3FactoryOwner__InsufficientFeesCollected();\n    }\n    emit FeesClaimed(address(_pool), msg.sender, _recipient, _amount0, _amount1);\n    return (_amount0, _amount1);\n  }"
}