> For the complete documentation index, see [llms.txt](https://trex20.gitbook.io/trex20/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://trex20.gitbook.io/trex20/nftfi.md).

# NFTFi

Collateralize NFTs to borrow and lend to earn passive income.

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

In the NFT lending process on the TREX Marketplace, borrowers initiate by listing their NFTs along with their desired loan amount, APR, and duration. Lenders, in turn, review the listings and propose their terms, specifying the loan amount, APR, and duration. Upon acceptance of the lender's offer by the borrower, the borrower's NFTs are deposited into the TREX Escrow Wallet, while the lender's funds are similarly secured.

The TREX Escrow Wallet conducts verification procedures for both parties and subsequently disburses the funds to the borrower, holding the borrower's NFTs as collateral for the borrowed funds. The borrower is then responsible for repaying the borrowed amount plus the agreed-upon APR within the stipulated timeframe. Upon completion of the transactions, the borrower's collateralized NFT is released from the TREX Escrow Wallet, returning it to the borrower, while the lender receives their funds.

In the event of a borrower's failure to repay the borrowed funds along with the APR within the agreed timeframe, the contract triggers the liquidation process. Consequently, the lender obtains ownership of the collateralized NFT as compensation.


---

# 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:

```
GET https://trex20.gitbook.io/trex20/nftfi.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.
