> For the complete documentation index, see [llms.txt](https://docs.apyx.fi/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.apyx.fi/apyx-overview/how-apyx-works.md).

# How Apyx Works

Overview of how user deposits are stored and utilized in Apyx

<figure><img src="https://1731598137-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6XK8DXRkFImTNSbo86o2%2Fuploads%2FKTnpynS7M2Pybhl5vOSr%2Fdocs03.png?alt=media&amp;token=2d9c6fb5-7294-4ba1-9e57-1f79c38dda85" alt=""><figcaption></figcaption></figure>

The Apyx protocol has four core components:

* **Users:** Individuals who interact with the protocol by depositing USDC to acquire and stake to earn a yield
* **Offchain Treasury:** Allocates incoming USDC to acquire a diversified basket of low-volatility, dividend-bearing instruments or highly liquid cash-equivalents. It collects yield and converts the proceeds into onchain distributable yield.
* **Onchain Vault:** Receives yield and distributes it to holders over time by increasing redemption value.
* **Stock Market:** The external market where the protocol acquires the preferred assets or other more liquid backing assets used in the collateral basket.

### Process Flow

#### Minting&#x20;

End users obtain and use minting tokens (apxUSD or alqUSD) through secondary markets. Like many other stablecoin projects, whitelisted users deposit collateral and receive newly minted apxUSD or alqUSD tokens.

Any spreads and offchain execution expenses incurred during minting and redemption may be reflected in the price. Apyx generates minimal profit from minting and redemption; costs are limited to what is necessary to operate the protocol and prevent various attacks.

All redemption activity occurs at Redemption Value.&#x20;

#### Collateral Acquisition

The Offchain Treasury allocates incoming capital to acquire preferred assets ("Prefs") and short-term treasury bonds.&#x20;

Acquired assets are held in custody in designated accounts, and the Offchain Treasury manages allocation and operations. Since the backing assets are held offchain, Apyx provides regular third-party accounting attestations and transparent reporting on custody and collateral composition so users can independently verify the backing.

#### Protocol Rewards Distribution

Dividends are collected offchain, converted into apxUSD or alqUSD, and sent to the Apyx Onchain Vault. The vault distributes this yield to apyUSD and aptUSD holders.

{% hint style="info" %}
The protocol is designed not to rehypothecate or lend deposited apxUSD or alqUSD. Yield is intended to be sourced from cashflows from underlying assets.
{% endhint %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://docs.apyx.fi/apyx-overview/how-apyx-works.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
