> For the complete documentation index, see [llms.txt](https://raysx.gitbook.io/rax-token/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://raysx.gitbook.io/rax-token/protocol/architecture.md).

# Architecture

The Rays Protocol's smart contracts serve as the cornerstone for its powerful and secure architecture. Each of these smart contracts serves a critical part in the platform's overall operation, contributing to its stability and flexibility.

<figure><img src="https://3536437852-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FUaZxgUFMfGH7VHVj3Qfh%2Fuploads%2FrjblrkkWtoFEXGXlzNMP%2FFrame%209415.png?alt=media&amp;token=aa4c2f9b-9d78-43df-b25c-6c4c3091ed16" alt=""><figcaption><p>Rays Protocol: Common Architecture.</p></figcaption></figure>

* **ApplicationConf.sol**: This contract is responsible for holding the configuration settings for each application within the ecosystem, allowing for individualized parameters that govern TVL limits, reward ratios, and more.
* **Application.sol**: Serving as the essential building block for dApps within the Rays ecosystem, this contract dictates the behavior and interaction of each application with other components of the platform.
* **ApplicationHub.sol**: Functioning as the central node, the ApplicationHub.sol contract routes user interactions to various applications, handling key operations like deposits and withdrawals.
* **DeveloperHub.sol**: This contract is dedicated to onboarding and managing developers, providing them with the necessary tools and infrastructure to submit and manage their dApps.
* **Slasher.sol**: Designed to secure the ecosystem, the Slasher.sol contract maintains the integrity of applications by penalizing malicious behavior and enforcing rules within the platform.
* **Quorum.sol**: This crucial contract underpins the governance aspect of the Rays Protocol, facilitating decision-making processes and ensuring community-driven consensus by managing votes and proposals.

Together, these smart contracts ensure that the Rays Protocol operates smoothly and securely, supporting a wide array of functionalities while protecting the interests of its stakeholders. The design provides a transparent and fair environment, which is vital for maintaining trust and fostering innovation within the DeFi sphere.
