> For the complete documentation index, see [llms.txt](https://wiki.patronus.fi/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://wiki.patronus.fi/position-management/collateral-and-debt.md).

# Collateral and Debt

The borrower will obtain a corresponding loanable quota after depositing the collateral. Patronus adopts a set of rules to limit and evaluate the borrower's real-time borrowing capacity.&#x20;

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

To measure and the two-side market risk of collateral and debt, Patronus use collateral factor and debt factor in lending system.

**Collateral Factor.** It represents the ratio of weighted collateral value to actual collateral value. For instance, if the real collateral value is 100 and Collateral Factor is 0.8, the weighted collateral value is 80.&#x20;

**Debt factor**. It represents the ratio of weighted debt value to actual debt value. For instance, if the real debt value is 100 and the Debt Factor is 1.25, the weighted debt value is 125. The total value of weighted debt cannot exceed the maximum borrowing capacity.


---

# 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://wiki.patronus.fi/position-management/collateral-and-debt.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.
