> For the complete documentation index, see [llms.txt](https://docs.drops.co/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.drops.co/sweepmax-financing/how-does-it-work.md).

# How does it work?

There are 3 primary components that make Sweepmax work. Mortgage contract, Flashloan and Drops lending pools. Although there are multiple steps involved, an NFT is financed in 1 transaction.

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

Financing starts with minting a Mortgage NFT, an account contract that enables loan tokenization. Each borrower mints private, isolated Mortgage contract.

In the next step, the borrower provides a down payment for NFTs, which is combined with a flashloan to buy the NFT from the marketplace. The purchased NFT then gets used as a collateral at Drops lending pool.

The last step is repaying the flashloan, which is done by borrowing funds from the pool and sending to the flashloan provider which is currently DyDx.

Now the Mortgage NFT holds dNFT tokens and the user can transfer it, sell Mortgage NFT, or repay the loan and withdraw NFT.

**Liquidation**&#x20;

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

In case the borrow limit gets exceeded, the loan position becomes available to be liquidated by anyone. The borrow limit is usually 30-60% of NFT floor’s value.

Once the limit is exceeded, anyone can repay the debt and seize collateral. If the debt is lower than the NFT floor value and fees, then the borrower gets to keep the remainder in ETH.


---

# 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.drops.co/sweepmax-financing/how-does-it-work.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.
