> For the complete documentation index, see [llms.txt](https://stormswapfinance.gitbook.io/stormswap-finance-cronos/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-cronos/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. <mark style="color:red;">Click the below link - CHANGE LINK</mark>

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

<mark style="color:red;">2. Enter the pool ID on option 3. EmergencyWithdraw as shown below. You can find pool id's for here for</mark> [<mark style="color:red;">lagoons</mark> ](https://stormswapfinance.gitbook.io/stormswap-finance/products/lagoons)<mark style="color:red;">and here for</mark> [<mark style="color:red;">fields</mark>](https://stormswapfinance.gitbook.io/stormswap-finance/products/fields)<mark style="color:red;">.</mark>

![](https://2160529048-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)

<mark style="color:red;">3. Once you have entered the pool ID, click "write" and connect your wallet and sign the transaction.</mark>
