# 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 polygonscan.com.

1. Navigate to the MasterChef contract [here](https://bscscan.com/address/0x09Bfd9BEA89db8a0Cc1bFB5b3e0c39c84E7F38B5)
2. Connect your Web3 Wallet to the website

![](https://2112529785-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MepR4dxJiHlbX7uXuiB%2F-Mf1dqtwMsuuxyAqXgfU%2F-Mf1eB-Wi0lLL1Xef7Se%2Fimage.png?alt=media\&token=fa50b89a-e313-4709-8f8a-c2fb8944cd55)

3\. Scroll down to 3. emergencyWithdraw function

![](https://2112529785-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MepR4dxJiHlbX7uXuiB%2F-Mfql7Ca8nIOyzhAV07U%2F-MfqlIGBhQk0Xd7bD6cr%2Fimage.png?alt=media\&token=285dc00d-7a74-4024-bb69-f0673d52540f)

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