# Emergency Withdraw

If something happens to BackToTheDefi'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.

## How To Do It

Go to Masterchef :

*Do an emergency withdrawal (Connect to Web3)*

![](https://1196964646-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MdI4f1gYYeIarfOhee3%2F-MdKrG-GPPCkX35SECnQ%2F-MdKrwaM2G_nSgmnJ72q%2Fimage%201.png?alt=media\&token=f19821a1-1d1a-46b3-a0c6-c86b326eeab0)

*Goto 4. emergencyWithdraw -> enter the pool ID that you want to withdraw*[ ](https://bscscan.com/address/0xf1530E2826920847Ba3Eaf9f60101Bf557332E67)*and click on the **Write** button*

![](https://1196964646-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MdI4f1gYYeIarfOhee3%2F-MdKrG-GPPCkX35SECnQ%2F-MdKsLIMXE4bCHDd3Jgp%2Fimage%202.png?alt=media\&token=bb4763ac-143d-446e-92d4-65a8000c02fa)

{% hint style="danger" %}
Withdraw without caring about rewards. EMERGENCY ONLY. \
\
You will lose the rewards if you make an emergency withdrawal. So, you shouldn't try this function.**List Farms/Pools ID**
{% endhint %}

| Farm / Pool ID | Token Name                |
| -------------- | ------------------------- |
| 0              | FLUX-BUSD LP (CAKE-LP v2) |
| 1              | FLUX-BNB LP (CAKE-LP v2)  |
| 2              | BNB-BUSD LP (CAKE-LP v2)  |
| 3              | CAKE-BNB LP (CAKE-LP v2)  |
| 4              | USDT-BUSD LP (CAKE-LP v2) |
| 5              | ETH-BNB LP (CAKE-LP v2)   |
| 6              | BTCB-BNB LP (CAKE-LP v2)  |
| 7              | USDC-BUSD LP (CAKE-LP v2) |
| 8              | DAI-BUSD LP (CAKE-LP v2)  |
| 9              | CAKE-BUSD LP (CAKE-LP V2) |
| 10             | DOGE-BNB LP (CAKE-LP V2)  |
| 11             | FLUX                      |
| 12             | WBNB                      |
| 13             | BUSD                      |
| 14             | ETH                       |
| 15             | BTCB                      |
| 16             | CAKE                      |
| 17             | USDT                      |
| 18             | DAI                       |
| 19             | DOGE                      |
