> For the complete documentation index, see [llms.txt](https://docs.gammaswap.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.gammaswap.com/guides/liquidations/what-if-i-was-liquidated.md).

# What if I was Liquidated?

If your position was liquidated, you may still have some collateral to withdraw.\
\
Navigate to the Portfolio page click on the "Borrowed" tab and click the "View History" button.&#x20;

<figure><img src="/files/rbsgVKlaITsknQVUsutW" alt=""><figcaption></figcaption></figure>

Once on the historical positions page, you will be able to see the status of historical positions, if they were closed by the user or liquidated.\
\
If a position is liquidated, there may be some extra collateral to redeem. If so, a "Withdraw Collateral" button will appear enabling you to withdraw any remaining collateral.\
\
The remaining collateral will always be in a 50:50 ratio of the two underlying tokens in the pool you took a position on.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://docs.gammaswap.com/guides/liquidations/what-if-i-was-liquidated.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
