> For the complete documentation index, see [llms.txt](https://stormswapfinance.gitbook.io/stormswap-finance/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://stormswapfinance.gitbook.io/stormswap-finance/security/emergency-withdraw/guide-to-emergency-withdraw-interacting-directly-with-the-masterchef-contract.md).

# Guide to Emergency Withdraw interacting directly with the MasterChef Contract

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.

1. Click the below link

{% embed url="<https://cchain.explorer.avax.network/address/0xc1A97bCbaCf0566fc8C40291FFE7e634964b0446/write-contract>" %}

2\. Enter the pool ID on option 3. EmergencyWithdraw as shown below. You can find pool id's for here for [lagoons ](https://stormswapfinance.gitbook.io/stormswap-finance/products/lagoons)and here for [fields](https://stormswapfinance.gitbook.io/stormswap-finance/products/fields).

![](https://4147982690-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-Mi7T0KHVAGfAmaCa4Bk%2F-MjOWp_l1aMK7i-Ei-KK%2F-MjOXp4NbvLWP7PrcZo8%2Fimage.png?alt=media\&token=2788f63a-a01c-44b8-8874-5bfb942bade9)

3\. Once you have entered the pool ID, click "write" and connect your wallet and sign the transaction.
