```\nif (swapQuantity != 0) {\n    pool.swap(\n        address(this),\n        swapQuantity > 0,\n        swapQuantity > 0 ? swapQuantity : -swapQuantity,\n        swapQuantity > 0 ? TickMath.MIN\_SQRT\_RATIO + 1 : TickMath.MAX\_SQRT\_RATIO - 1,\n        abi.encode(address(this))\n    );\n}\n```\n