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


---

# Agent Instructions: 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:

```
GET https://docs.glowyield.com/glow-yield/smart-contracts/architecture.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
