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

# Core DAO

{% hint style="info" %}
See [list of all contract addresses ](/rairprotocol/codebase/rairsolidity/all-contract-addresses.md)for explanations of each smart contract and sub facet
{% endhint %}

## Fungibles

Creation of ERC20 tokens

* ERC20 - Deployed ERC20 contract<https://scan.coredao.org/address/0x2b0fFbF00388f9078d5512256c43B983BB805eF8#code>
* ERC20 exchange - transfers ERC20s<https://scan.coredao.org/address/0x05f79B2C8173c07470a7Bb2B9990a0098f158Ac5#code>

## Diamond Functions

Required base multi proxy architecture to allow RAIRprotocol smart contracting system to function.

* DiamondCut facet - <https://scan.coredao.org/address/0x0Ce668D271b8016a785Bf146e58739F432300B12>
* DiamondLoupe facet - <https://scan.coredao.org/address/0xC9eF9902fa24923A17326aDdb7da0E67fF46692a>
* DiamondOwnership facet - <https://scan.coredao.org/address/0xc76c3ebEA0aC6aC78d9c0b324f72CA59da36B9df#code>

## NFT (facets)

Hierarchy based NFT distribution system.&#x20;

* ERC721 - Facet Source - <https://scan.coredao.org/address/0x620C3f3022Cdb1dCeE97453760103BF4F7638C03#code>
* Base ERC721 facet - <https://scan.coredao.org/address/0xba01BC9Ea4f2806ADdcd94C6cd8c43DD4f2488eC#code>
* Metadata Facet - <https://scan.coredao.org/address/0x556a3Db6d800AAA56f8B09E476793c5100705Db5#code>
* Product Facet - <https://scan.coredao.org/address/0x92FBe344513e108B581170E73CFA352B729E47EA#code>
* Ranges Facet - <https://scan.coredao.org/address/0xA2A7e7636AB4374847074c147BE770624F43342E#code>
* Royalties Facet - <https://scan.coredao.org/address/0x781F15a23506CF28539EA057e3f33008E6339E49#code>
* Factory - <https://scan.coredao.org/address/0x1F89Cc515dDc53dA2fac5B0Ca3b322066A71E6BA#code>
* Creators Facet - <https://scan.coredao.org/address/0x9bB24e68d952Ab872b0421297E0cda8D89B2390B#code>
* Deployer Facet - <https://scan.coredao.org/address/0x09FC6670ab52dc4fDE66B74908DE200252a6872A#code>

## Tokenomics (facets)

Controls token credit system. How database manages user fungible balances to perform work inside the system.

* Tokens Facet - <https://scan.coredao.org/address/0x9498b23e964760364435C23c793e9352Ff4E2200#code>
* Credits Deposit Facet - <https://scan.coredao.org/address/0x51eA5316F2A9062e1cAB3c498cCA2924A7AB03b1#code>
* Credits Query Facet - <https://scan.coredao.org/address/0x5c31677c7E73F97020213690F736A8a2Ff922EBC#code>
* Credits Withdraw Facet - <https://scan.coredao.org/address/0xcc8eBb097448bdE155E66d65E6Cb9aaE776395e8#code>

## Trade and Execution

Governs the transfer of fungibles and non fungibles.&#x20;

* Marketplace <https://scan.coredao.org/address/0x58795f50b50d492C4252B9BBF78485EF4043FF3E#code>
* Minting Offers Facet <https://scan.coredao.org/address/0xD22179AbCFFC1b62a51a35Fbc726f0C79440547C#code>
* Fees Facet - <https://scan.coredao.org/address/0x5CaBa889219DE9d52841fd79741cfe4ce5A61a29#code>
* Resale Facet - <https://scan.coredao.org/address/0x80847414d3B4ac35d6b078501Bad7a7E2367a931#code>


---

# 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, and the optional `goal` query parameter:

```
GET https://docs.rairprotocol.org/rairprotocol/codebase/rairsolidity/core-dao.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
