{
    "Function": "_mintFee",
    "File": "contracts/external/UniswapV2Pair.sol",
    "Parent Contracts": [
        "contracts/external/UniswapV2ERC20.sol",
        "contracts/interfaces/external/uniswap/IUniswapV2Pair.sol",
        "contracts/interfaces/external/uniswap/IUniswapV2ERC20.sol"
    ],
    "High-Level Calls": [
        "UniswapMath",
        "UniswapMath",
        "IUniswapV2Factory"
    ],
    "Internal Calls": [
        "_mint"
    ],
    "Library Calls": [
        "sqrt",
        "sqrt"
    ],
    "Low-Level Calls": [],
    "Code": "function _mintFee(uint112 _reserve0, uint112 _reserve1)\n        private\n        returns (bool feeOn)\n    {\n        address feeTo = IUniswapV2Factory(factory).feeTo();\n        feeOn = feeTo != address(0);\n        uint256 _kLast = kLast; // gas savings\n        if (feeOn) {\n            if (_kLast != 0) {\n                uint256 rootK = UniswapMath.sqrt(\n                    uint256(_reserve0) * _reserve1\n                );\n                uint256 rootKLast = UniswapMath.sqrt(_kLast);\n                if (rootK > rootKLast) {\n                    uint256 numerator = totalSupply * (rootK - rootKLast);\n                    uint256 denominator = (rootK * 5) + rootKLast;\n                    uint256 liquidity = numerator / denominator;\n                    if (liquidity > 0) _mint(feeTo, liquidity);\n                }\n            }\n        } else if (_kLast != 0) {\n            kLast = 0;\n        }\n    }"
}