# Automated Liquidity Provision

Automated Liquidity Provision emphasizes the importance of allocating the entire loan amount to a user's preferred liquidity pool and simplify record-keeping.

* Here, the protocol divides and allocates a loan amount to a user's preferred liquidity pool.
* Ideally, there should be nothing left from the loan amount because it makes record-keeping complicated.
* For example, if someone takes a $1000 loan and chooses the USDT/ ETH pool, the entire $1000 must be added as liquidity to this pool.
* With this problem statement, we concluded that the following should provide us with what we seek: `get_amount_out(x) = quote(1000 - x) [JediSwap functions]`
* Readjusting the equation to the standard form would give:

$$
(997\*x) / ((reserveIn \* 1000) + (997 \* x)) + x = (1000-x)/reserveIn
$$

* Read [this](https://docs.hashstack.finance/developers/automated-liquidity-provision) article to understand how we came to this equation.


---

# 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.hashstack.finance/hub/concepts/automated-liquidity-provision.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.
