> For the complete documentation index, see [llms.txt](https://polypup-farm.gitbook.io/polypup-layer-3-ball-token/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://polypup-farm.gitbook.io/polypup-layer-3-ball-token/security/emergency-withdraw.md).

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

**Rugdoc has created an Emergency withdraw tool found** [**here**](https://rugdoc.io/emergency/)**. Using this tool is the easiest method to emergency withdraw.**

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

![](https://987638882-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MftanunN4FM4H0h9szm%2F-MftarsRsPvyMBpnFN2W%2F-MftkweSDVZQ5_ropmom%2Fwrite.png?alt=media\&token=571a702b-ccc2-49d3-896c-17c8718a841f)

3\. Scroll down to emergencyWithdraw function

![](https://987638882-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MftanunN4FM4H0h9szm%2F-MftarsRsPvyMBpnFN2W%2F-Mftl2hgp35kN_KasR11%2Fpid.png?alt=media\&token=308785a5-9f0e-4ad0-bcef-df964342906c)

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