```\\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    // make the swap\\n    uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(\\n        tokenAmount,\\n        0, // accept any amount of ETH\\n        path,\\n        address(this),\\n        block.timestamp\\n    );\\n}\\n```\\n