# Emergency Whitdraw

MasterChef provides a method named *emergencyWithdraw* that you can use in case of any technical issue with our dApp (like a failure, a cyber attack -eg. DDOS- or a prolonged downtime).\
In order to perform an emergency withdrawal, follow these steps:

1\. Find the ID of the farm or pool you want to withdraw all your funds from\
(Look for [PIDS ](https://caramelswap.gitbook.io/caramelswap/farm-and-pool/farm)on tab [FARM ](https://caramelswap.gitbook.io/caramelswap/farm-and-pool/farm)AND [POOL](https://caramelswap.gitbook.io/caramelswap/farm-and-pool/pool))

2\. Go to the Masterchef contract on Bscscan

3\. Connect to Web3 (Eg. using your MetaMask wallet plugin)

![](https://4192172718-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MXLAp304BhRAVZneGbJ%2F-MXLT1Lq0vlGj8QpVz4T%2F-MXLTKbFy2fO-njwpxRN%2Fimage.png?alt=media\&token=9c303863-3c9a-4d21-9960-abac4474464e)

4\. Scroll the page down to the emergencyWithdraw method

![](https://4192172718-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MXLAp304BhRAVZneGbJ%2F-MXLT1Lq0vlGj8QpVz4T%2F-MXLTNdZn0KymaFuGm0U%2Fimage.png?alt=media\&token=b31a0b16-a735-4f50-9b5b-fd7355333bf8)
