# Architecture

A concise overview of each major component and its core responsibility.

### User-facing UI

The front-end that users interact with to view vaults, submit orders, deposit/withdraw, and inspect performance. It presents information from the system and forwards user intents to the backend/execution layer.

### Vault smart contracts

On-chain contracts that hold assets, enforce protocol rules, and govern state for each vault (deposits, withdrawals, positions, permissions). They represent the canonical, trustable record of user balances and vault logic.

### NAV calculation

The mechanism that derives a vault's Net Asset Value from its on-chain holdings and current market prices. NAV calculation aggregates asset positions and valuations to produce per-share or per-user metrics used for accounting and UI reporting.

### Execution / routing layer

The component responsible for turning user intents or strategy decisions into executable orders and routing those orders to the best available execution destinations. It orchestrates trade placement, monitors fills, and returns execution confirmations to the vault contracts and UI.

### Integrations (prediction market venues, lending protocols)

External protocol integrations that the system interacts with to implement vault strategies and obtain market access. These include prediction markets, lending/borrowing pools, or any third-party venue where positions are opened, hedged, or funded. Integrations are invoked by the execution layer and reflected in the vaults' on-chain state and NAV.


---

# 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://zeit-1.gitbook.io/zeit/resources/for-developers/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.
