# Leverage Model

{% hint style="success" %}
The Leverage Model determines how much capital the Senior Pool allocates toward each Borrower Pool, based on how much it `trusts` each Borrower Pool. Currently, the automated Leverage Model as described here is not yet live, but it was included in the community-approved roadmap for near-term development linked [here](https://gov.goldfinch.finance/t/gip-06-proposed-goldfinch-roadmap/825).
{% endhint %}

## Trust Through Consensus

In order to determine how to allocate capital from the Senior Pool, the protocol uses the novel principle of "trust through consensus." This means that while the protocol doesn't trust any individual Backer or Auditor, it does trust the collective actions of many of them. At a high level: when more Backers supply capital to a given Borrower Pool, the Senior Pool increases the ratio with which it adds leverage.

Because this approach relies on counting individual Backers, the protocol must ensure they are in fact represented by different people. Therefore, all Backers, Borrowers, and Auditors require a `unique entity check` to participate (see the [Unique Entity Check section](/goldfinch/goldfinch-v1/protocol-mechanics/uniqueentitycheck.md)).

## Leverage Model Formula

The leverage amount, $$A$$, that the Senior Pool allocates is determined by the formula, $$A = S \* D \* L$$where:

* $$S$$ is the total capital supplied by Backers.
* $$D$$ is the distribution adjustment on a scale of $$0$$ to $$1$$, which accounts for how evenly distributed the Backers are. $$D$$ is closer to $$0$$ when the distribution is skewed and closer to $$1$$ when the Backers are more equally distributed. This ensures no single Backer has an outsized influence. The formula for $$D$$ uses the percent supplied by each Backer, $$s\_{n}$$ , and is based on the Herfindahl-Hirschman Index:

$$
D = 1-\sum\_{i=1}^n s\_n^2
$$

* L is the leverage ratio on a scale of $$0$$ to the maximum potential leverage ratio. Based on the number of Backers, $$b$$, the leverage ratio increases linearly from  $$B\_{min}$$ , the minimum number of Backers necessary for leverage, to $$B\_{max}$$ , the maximum number of Backers necessary to achieve the maximum potential leverage, $$L\_{max}$$:

$$
L=L\_{max}\*\frac{max(0, b-B\_{min})}{B\_{max}-B\_{min}}
$$


---

# 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.goldfinch.finance/goldfinch/goldfinch-v1/protocol-mechanics/leveragemodel.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.
