> For the complete documentation index, see [llms.txt](https://docs.glowyield.com/glow-yield/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.glowyield.com/glow-yield/smart-contracts/architecture.md).

# Architecture

This section provides a high-level overview of the architecture of Glow and the key smart contracts that constitute the Glow Ecosystem.

Glow smart contracts are categorized into two groups:

* **Core.** Set of smart contracts that constitute the backbone of the Glow ecosystem and are used by Glow apps.
* **Apps.** Product-specific contracts or a set of contracts that manage the business logic of a specific app. The **Glow** **Lotto smart contract** is an example of this.

## Core

<table><thead><tr><th width="171.12060301507535">Contract</th><th>Description</th></tr></thead><tbody><tr><td>Gov</td><td>Handles Glow Governance, GLOW buybacks and reward distribution to GLOW stakers</td></tr><tr><td>Staking</td><td>Handles GLOW-UST pair LP tokens staking</td></tr><tr><td>Distributor</td><td>Handles the GLOW distribution rewards to be used as user incentives in Glow Apps</td></tr><tr><td>Airdrop</td><td>Handles GLOW airdrop functionality</td></tr><tr><td>Community</td><td>Manages the Glow Ecosystem fund and related community grants</td></tr></tbody></table>

## Apps

### Lotto

| Contract | Description                                      |
| -------- | ------------------------------------------------ |
| Lotto    | Handles all the business logic of the Glow Lotto |
