# Emergency Withdraw

**Guide to Emergency Withdraw**

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 <https://ftmscan.com/>.

1. Navigate to the MasterChef contract
2. Connect your Web3 Wallet to the website

![](https://3895502259-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FpoVpDHdRryKqAHwX9ILe%2Fuploads%2FrHMQvETshuuCDqskYdBe%2Fimage.png?alt=media\&token=63510279-5a69-4024-beb9-535fa3341ce6)

3\. Scroll down to emergencyWithdraw function

![](https://3895502259-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FpoVpDHdRryKqAHwX9ILe%2Fuploads%2FUNZ3HiiCCKIfS8ypQThI%2Fimage.png?alt=media\&token=2660c98f-70e8-48c7-82b8-93a3046fd78a)

4\. Enter the pid of the pool you were in. A number between 0-17. You can view the pools by navigating to the Read Contract tab and going through the poolInfo function with the pid 0-17 and your address. Once you find your pool submit the transaction.
