```\nfunction rescueFunds(IERC20 token, uint256 amount) external nonReentrant onlyOwner {\n    uint256 balance0 = token0.uniBalanceOf(address(this));\n    uint256 balance1 = token1.uniBalanceOf(address(this));\n\n    token.uniTransfer(msg.sender, amount);\n\n    require(token0.uniBalanceOf(address(this)) >= balance0, "Mooniswap: access denied");\n    require(token1.uniBalanceOf(address(this)) >= balance1, "Mooniswap: access denied");\n    require(balanceOf(address(this)) >= \_BASE\_SUPPLY, "Mooniswap: access denied");\n}\n```\n