> For the complete documentation index, see [llms.txt](https://docs.unleashprotocol.xyz/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.unleashprotocol.xyz/unleashmarket/flash-loan.md).

# Flash Loan

Unleash Protocol's Flash Loan feature offers users immediate access to liquidity without requiring collateral, under the condition that the loan is repaid within the same transaction. This capability is pivotal for executing a range of operations from arbitrage and collateral swapping to sophisticated financial strategies that require rapid liquidity access.

### Features

* Collateral Flexibility: Unleash Protocol allows users to not only borrow but also return different assets as collateral within the same transaction. This flexibility is crucial for users looking to optimize their positions or engage in complex IPFi interactions seamlessly.
* Composability and Efficiency: Emphasizing the importance of composability in IPFi, our Flash Loan mechanism simplifies the process of interacting with multiple protocols by minimizing gas fees and streamlining transactions. This efficiency is particularly beneficial for strategies involving multiple steps or protocols.
* Dual-Mode Flash Loans:
  * Multi-Asset Loans: Borrowers can access liquidity across multiple reserves in a single transaction, akin to Aave V3's flashLoan feature. This option is ideal for users seeking to execute multi-faceted strategies involving various assets.
  * Single-Asset Loans: For those prioritizing gas efficiency and simplicity, Unleash offers flashLoanSimple, allowing access to liquidity from a single reserve. While this option includes a loan fee, it represents a cost-effective choice for straightforward strategies.

### Governance

The governance structure of Unleash Protocol ensures that the Flash Loan feature remains adaptable and responsive to the community's needs and the evolving IPFi landscape. Parameters such as fees, available reserves, and integration with other protocols are subject to updates based on governance proposals and votes by token holders.


---

# 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://docs.unleashprotocol.xyz/unleashmarket/flash-loan.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.
