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

# Emergency Withdrawal

If something happens to MagmaCake Finance frontends 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.

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

​
