> For the complete documentation index, see [llms.txt](https://greenteaswapv2.gitbook.io/greenteaswapv2/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://greenteaswapv2.gitbook.io/greenteaswapv2/technical-1/emergency-withdraw.md).

# 🧰.     Emergency Withdraw

If something happens to GreenTea's frontend such as a DDOS attack or a temporary outage, farmers can still withdraw their tokens by direct interaction with the MasterChef contract.

Call the emergencyWithdraw function with the farm or pool id listed below to withdraw your staked tokens.

Withdraw without caring about rewards. EMERGENCY ONLY.

You can use tools [SafeBSC](https://bscproject.org/#/project/663) or [JDIYIELD](https://www.jdiyield.com/) for emergency withdrawing

![](https://gblobscdn.gitbook.com/assets%2F-MiB5SdnHOnJmrsoRG42%2F-MiB9ZlpEME6suIQTBGH%2F-MiBCHHh_O7wuJgABURk%2Fimage.png?alt=media\&token=3e28a210-55fd-497d-a1cd-036c7ef3e285)

![](https://gblobscdn.gitbook.com/assets%2F-MiB5SdnHOnJmrsoRG42%2F-MiB9ZlpEME6suIQTBGH%2F-MiBCIr0MvuI3VOm-3gU%2Fimage.png?alt=media\&token=91204358-6c72-4bdd-a7a2-2e770a0c3687)

​

{% hint style="success" %}
Can find ID on this [link PID](https://greenteaswapv2.gitbook.io/greenteaswapv2/technical-1/find-a-pool-id)
{% endhint %}
