> For the complete documentation index, see [llms.txt](https://learn.corners.market/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://learn.corners.market/technical-docs/system-architecture.md).

# System Architecture

Corners is a three-layer system: blockchain smart contracts, off-chain services, and a web application.<br>

## Key Data Flows

Every action in a corner, like trading or posting, moves value through the ecosystem. Here’s how it works:

#### Trading Fees

Whenever a corner token is traded, a **3% fee** is applied.

* If the fee is collected in the corner token, it’s automatically **swapped to $SAND**.
* The fee is then split:
  * **66% goes to token holders** as rewards for participating and curating
  * **34% goes to the protocol treasury** to support long-term growth

#### Curation Rewards

A bot regularly scans the corner to find the **top contributors,** the people posting and curating the most valuable content.

* Rewards are calculated based on fees collected since the last epoch.
* $SAND is deposited into a **vault**, ready for distribution.
* Users can then **claim their rewards** directly from the vault.

In other words, the ecosystem constantly redistributes value to the people who contribute, curate, and help corners thrive.
