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

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