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

# Emergency Withdraw

If something happens to Buffaloswap 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 <a href="#how-to-do-it" id="how-to-do-it"></a>

*Go to MasterChef:* *​*

*Do an emergency withdrawal (Connect to Web3)*

**List Farms/Pools ID**

| Pool/ Farms | Token / LP tokens |
| ----------- | ----------------- |
| 0           | BUFF-BUSD         |
| 1           | BUFF              |
| 2           | BUSD-BNB          |
| 3           | BUFF-BNB          |
| 4           | ETH-BNB           |
| 5           | USDT-BUSD         |
| 6           | ADA-BNB           |
| 7           | BTCB/BNB          |
| 8           | ADA               |
| 9           | ETH               |
| 10          | BTCB              |
| 11          | REEF-BNB          |
| 12          | REEF              |
| 13          | REEF-BUFF         |
| 14          | BABY-BNB          |
| 15          | BABY-BUFF         |

​[<br>](https://pantsuswap.gitbook.io/pantsuswap/safu/no-migrator-code)
