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

# Flash Loans

**What are flash loans?**&#x20;

Flash loans allow you to borrow any available amount of assets from a Moola Market liquidity pool without putting up any collateral as long as the liquidity borrowed plus a flash loan fee is returned to the pool within the same block. This feature is primarily intended for developers because of the technical knowledge required to execute them.

**How much is the flash loan fee?**&#x20;

The flash loan fee is currently 1 basis points (0.01%) and can be adjusted via governance.

**Why would someone use a flash loan?**&#x20;

Flash loans allow you to temporarily access large amounts of capital. There are many use cases where this can be helpful such as;

* Liquidation hedging (e.g. set a minimum Health Factor and auto wind down a debt)
* Arbitrage trading price differences between exchanges like [Ubeswap](https://app.ubeswap.org) and Mento
* Swapping collateral w/o having to close your debt position&#x20;
* Debt refinancing&#x20;
* And much more...

**Where can I find more information about building flash loan tools?**&#x20;

Right [here](https://github.com/moolamarket/moola#flashloan) in our Github repo.&#x20;


---

# 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.moola.market/flash-loans.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.
