# Ranked liquidations

The first level is the open bidding process, during which bidder will submit a series of volumes $${Q\_i}$$ that they are willing to take on from the liquidated account, as well as a percentage of the resulting change in LMR that they request as reward. The open competitive process should ensure that the reward parameter is optimized.

<figure><img src="/files/VCFUQhfbmaK2B29mMQBM" alt="" width="563"><figcaption></figcaption></figure>

The other cornerstone for this procedure is a scoring function used for liquidation bids, which summarizes the reward parameter and the market impact. For a bid requesting volumes $${Q\_i}$$ of $$n$$ assets for a reward parameter $$d$$, the score is

$$
\mathrm{score}({Q\_i},d) = \frac{1}{n}\left(w(1-d) + (1-w)\frac{\sum\_i Q\_i \times\mathrm{pSlippage}i\left((Q\_i(Q{i,max}-Q\_i))^{1/2}\right)}{\sum\_i Q\_i}\right)
$$

where $$\mathrm{pSlippage}\_i(Q)=\phi Q^\beta/\mathrm{price}\_i$$ is the estimated percentual price slippage (using governance set parameters).

An important feature is of this scoring function is that it disincentives over-liquidations by multiplying by $$1/n$$ (which in practice stratifies bids according to the number of requested assets), as well as maxing out the slippage benefit at half the available volume.


---

# 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.reya.xyz/trading/liquidation-engine/ranked-liquidations.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.
