# Force Release Collateral

This is an escape hatch that allows the user to release reserves from an open position in case the futures contract was not settled properly after expiration. We will automatically release the funds for the user if no settlement happens, therefore this method should only be used if DMEX website or backend servers are not working properly.

{% hint style="danger" %}
Only use this function if the DMEX website is down or not functioning properly. Otherwise withdraw your funds through the website.
{% endhint %}

{% hint style="info" %}
You can force release reserves only on futures contracts that have expired and were not settled within 500 blocks (approx. 2 hours)
{% endhint %}

1. Find the DMEX Trading contract  ([click here for instructions](/contracts/finding-the-trading-contract.md))
2. Open the Trading Contract on Etherscan
3. Go to the **Contract** Tab
4. Go to the **Write Contract** Tab
5. Click on **Connect to Web3** (you will need to have your wallet imported in MetaMask)
6. Scroll down to the ***forceReleaseReserve*** function
7. Enter the **futures contract hash** in the first field
8. Enter the position side in the second field (0 - short, 1 - long)
9. Enter your wallet address in the third field
10. Press **Write** and confirm the transaction in MetaMask&#x20;
11. Wait for the transaction to confirm on the blockchain and you will see the reserved balance become available.

If the DMEX website is down or not functioning properly use [this method](/contracts/withdrawing-funds.md) to withdraw your funds manually.


---

# 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://docs.dmex.app/contracts/force-release-collateral.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.
