> For the complete documentation index, see [llms.txt](https://allblue-docs.gitbook.io/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://allblue-docs.gitbook.io/docs/en/allblue-stable/architecture.md).

# Architecture

AllBlue Stable is primarily composed of the Staking Proxy, Minting Contract, b-Token, and External DeFi Protocol components.

```
User
 │
 ▼
Staking Proxy
 │
 ├──────────────► Minting Contract
 │                    │
 │                    ▼
 │                  b-Token
 │
 └──────────────► External DeFi Protocol
                      │
                      ▼
               Reward Accounting
```

### Staking Proxy

The Staking Proxy is the main user-facing contract for deposits, withdrawals, and reward-related interactions.

### Minting Contract

The Minting Contract manages the conversion between supported underlying tokens and their corresponding b-Tokens.

It also handles the protocol-level interaction required to connect deposited tokens with supported external DeFi protocols.

### b-Token

A b-Token represents a supported stable token position within AllBlue Stable.

Supported b-Tokens may also be used in designated AllBlue V2 Pairs and AllBlue V3 Pools.

### External DeFi Protocol

AllBlue Stable may interact with supported external DeFi protocols using deposited underlying tokens.

Changes generated through those external protocol interactions are reflected through the AllBlue Stable accounting structure.
