# Architecture

FreeDona consists of five parts.‌

**1.Proxy Contract**&#x20;

It is a proxy contract that transfers user calls to the logical contract for execution.

**2.Logic Contract**&#x20;

Responsible for logic execution, mainly including user deposit, user withdraw, and donation interest, etc, and it is convenient for users to query.

**3.Storage Contract**

Record the user's funds, the amount of shares, and the total funds, total shares, and interest shares of the entire pool.

**4.Risk Management Contract**

Mainly responsible for fund safety management and asset management configuration. The risk control is to protect users’interests from loss.

**5.DAO Governance Contract**

It is expected to be activated in Stage 2 (See roadmap for more).

The relationships between each contract are described in Figure 2 below.

![Figure 2](https://gblobscdn.gitbook.com/assets%2Ffreedona-1%2F-MbKwvdOOHD6wTnrN3eZ%2F-MbKyXjSGywoHAA0d7WG%2F1.png?alt=media)


---

# 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.freedona.org/introduction/untitled-1.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.
