# Liquidation

### **Borrow Factor**

We use a two-sided approach where we also adjust up the market value of a borrower's liabilities by taking into account the borrow factor. This approach allows us to factor in the asset-specific risks of both downside and upside price movements. These risks are encapsulated in asset-specific Loan to Value Ratio (as on Compound) and borrow factors.

Ultimately, this approach means that the liquidation threshold of every borrower is tailored to the specific risk profiles associated with the assets they are borrowing and using as collateral.

To give an example, suppose a user has $1,000 worth of USDC, and wants to borrow APT. How much can they borrow?

If USDC has a collateral factor of 0.9, and APT has a borrow factor of 0.7, then a user can borrow up to $1,000 \* 0.9 \* 0.7 = $630 worth of APT. At this level of borrowing, the risk-adjusted value of their collateral is $1,000 \* 0.9 = $900, and the risk-adjusted value of their liabilities is $630 / 0.7 = $900. If APT increases in price, then the risk-adjusted value of their liabilities will also increase to >$900, and then they will be eligible for liquidation. The buffer allowing for liquidation is $1,000 - $630 = $370.

### **Liquidation Calculations**

Liquidation occurs when a user's total borrow has reached a threshold, i.e. the risk factor is greater than or equal to 100%.

Risk factor represents the overall liquidation risk for a given user. When the users add more collateral into the protocol, the risk reduces. Conversely when the users borrow more, the risk increases.

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

When a user has reached its liquidation threshold, up to 50% (in terms of market value) of the total borrowed asset is sold to the liquidator at a discounted price to repay a portion of the loan.


---

# 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.ariesmarkets.xyz/aries-markets/protocol-parameters/lending-and-borrowing/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.
