# Emergency Withdrawal

## Why is Emergency Withdrawal Important?&#x20;

Our team is committed towards the long-term success of this project. Despite this, we believe that every farmer should at least understand and know about an Emergency Withdrawal.&#x20;

Just in case something happens unexpectedly, farmers can use this guide to retrieve their deposited assets directly via the MasterChef contract.&#x20;

## How to Emergency Withdraw?

Step 1: Look for the MasterChef Contract

Step 2: Call the **Emergency Withdraw** function and input the relevant **Farm ID**

Step 3: Connect your MetaMask

Step 4: Fill \_pid based on the table above

![](/files/fxMhO6qlGZ0VY4X4uBYW)

Step 5: Click "Write"

![](/files/o6IRJqqZagI34EqjHwzk)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://gyozaswap-io.gitbook.io/gyozaswap-finance/tutorials/emergency-withdrawal.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
