> For the complete documentation index, see [llms.txt](https://noahdao.gitbook.io/noah-dao/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://noahdao.gitbook.io/noah-dao/usdnoah/security/smart-contract-architecture.md).

# Smart Contract Architecture

<figure><img src="https://1676523675-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fk1gQ5aZWKkBgmVMNGnPZ%2Fuploads%2F2j6RcKsjyUnIqCMaml4p%2FSMT.png?alt=media&amp;token=66545fe7-f65f-404d-b2e1-48af2b83ba59" alt=""><figcaption></figcaption></figure>

The Noah ecosystem is intended to use modular smart contracts rather than placing all functionality inside one contract.

A potential architecture includes:

#### NOAH Token Contract

Responsible for:

* Token balances
* Transfers
* Supply rules
* Approved ecosystem integrations

#### Staking Contract

Responsible for:

* Deposits
* Lock periods
* Reward calculations
* Withdrawals

#### Farming Contracts

Responsible for:

* Liquidity incentives
* Farm emissions
* Reward accounting

#### Gaming Contracts

Responsible for:

* Game participation
* Tournament mechanics
* Prize distribution
* On-chain game state where appropriate

#### Treasury

Responsible for:

* Ecosystem funding
* Development
* Partnerships
* Liquidity support
* Community initiatives

Final contracts and addresses will be published before the corresponding features become operational.

<br>
