# System Architecture

TermMax is a decentralized fixed-rate lending protocol which composed of frontend, backend, and smart contracts.

#### Key Functionalities

* Frontend: Provide a user-friendly UI for users to interact with TermMax to place order, lend, borrow, and leverage.
* Backend: Fetch and organize contract state data and provide APIs for frontend to query.
* Contract: The core functionalities of TermMax include lend, borrow, order placement, liquidation, and physical delivery.

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


---

# 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.ts.finance/technical-details/system-architecture.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.
