```\nfunction swapTokensForEth(uint256 tokenAmount) private {\n    // generate the uniswap pair path of token -> weth\n    address[] memory path = new address[](2);\n    path[0] = address(this);\n    path[1] = uniswapV2Router.WETH();\n\n    _approve(address(this), address(uniswapV2Router), tokenAmount);\n\n    uint[] memory amountOutMins = uniswapV2Router.getAmountsOut(tokenAmount, path);\n    uint256 minEth = (amountOutMins[1] * _slipPercent) / 100;\n\n    // make the swap\n    uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(\n        tokenAmount,\n        minEth,\n        path,\n        address(this),\n        block.timestamp\n    );\n}\n```\n