# 🚨Liquidation

In general, liquidation of a trading position can happen as a result of the following 4 events or their combinations:&#x20;

* The price of a token A that a trader bought decreased.&#x20;
* The price of a token B that a trader borrowed to make a leveraged swap increased.&#x20;
* The position was open for too long, so the value of the debt taken for the position approached the value of the position.&#x20;
* WOWswap’s community significantly increased Liquidation Margin parameter via Governance.&#x20;

A liquidation event cannot happen by itself, it should be triggered by a margin caller – a person or a company that runs special software capable of tracing numerous leveraged trading positions and making timely liquidations.&#x20;

Anyone can become a margin caller by running the liquidation software provided by WOWswap. In case of a successful liquidation, a margin caller receives a liquidation reward, calculated as a percentage of the total position size. The liquidation reward is defined via the Governance.&#x20;

When a margin caller makes a liquidation transaction, WOWswap’s smart contract verifies whether the liquidation condition is satisfied, and, if so, proceeds with the liquidation. During the liquidation, all parties are paid according to the following order:&#x20;

1\. the margin caller gets a liquidation reward (LR)&#x20;

2\. then the liquidity pool receives the debt with accrued interest&#x20;

3\. if any funds are left, the trader receives the rest of the funds.


---

# 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.wowswap.io/about/liquidation.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.
