# Emergency Withdraw

In case **something happens to BloodySwap's frontend** such as a DDoS attack or a temporary outage, farmers **can still withdraw their tokens by directly interacting with the MasterChef contract**.

Call the **emergencyWithdraw** function with the pool ID listed below to **withdraw your staked tokens**.

| Token / LP      | Pool ID |
| --------------- | ------- |
| WMATIC          | 0       |
| AAVE            | 1       |
| WETH            | 2       |
| WBTC            | 3       |
| QUICK           | 4       |
| USDT            | 5       |
| DAI             | 6       |
| PolyDoge        | 7       |
| WMATIC-USDC LP  | 8       |
| WETH-USDC LP    | 9       |
| BLOOD           | 10      |
| BLOOD-USDC LP   | 11      |
| BLOOD-WMATIC LP | 12      |
| BLOOD-WETH LP   | 13      |

## Guide to Emergency Withdraw <a href="#guide-to-emergency-withdraw" id="guide-to-emergency-withdraw"></a>

This guide will help you **emergency withdraw** your funds from **any yield farm**. When the UI is down on a Yield Farm, due to a technical issue, you can still withdraw your funds by **interacting directly** with the **MasterChef** **contract** on [**PolygonScan**](https://polygonscan.com).

1. Navigate to the **MasterChef** contract [**here**](https://polygonscan.com/address/0xb0faE26e5C3282A5c919bBA32d168aAcD83B8194)**​**;
2. **Connect your** Web3 **Wallet** to the website;

![](https://gblobscdn.gitbook.com/assets%2F-MdDgxdD1fk5ZNY-qJg_%2F-MdDt7fctIG4tvqwoHbt%2F-MdDuxaJMe8CfUhK7Tc6%2FEW%20guide%201.png?alt=media\&token=34885825-ca68-4c79-a489-a141bb5ba6a4)

3\. Click on **Write Contract**;\
4\. Scroll down to **emergencyWithdraw** function;

![](https://gblobscdn.gitbook.com/assets%2F-MdDgxdD1fk5ZNY-qJg_%2F-MdDt7fctIG4tvqwoHbt%2F-MdDvc71mgxvIlPOHhen%2FEW%20guide%202.png?alt=media\&token=652d860e-2592-4e53-bf67-289200fb3a4a)

5\. **Enter the PID of the pool** you were in. You can determine your Pool ID based on the **list in the beginning of this article**. Once you find your pool **submit the transaction**.[<br>](https://platinum-finance.gitbook.io/platinum-finance/security/contracts)
