# alchemix-finance/v3 architecture

> Architecture diagram of the GitHub repository alchemix-finance/v3, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-17). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/alchemix-finance/v3
- Repository: https://github.com/alchemix-finance/v3

## Overview

The repository contains Alchemix Solidity protocol contracts, despite a README that describes a generic Foundry template. The apparent user workflow is to interact with Alchemist V3, mint or manage synthetic yield-bearing positions, and use strategies to deploy collateral and repay debt; supporting contracts cover access, allocation, token vaults, and transmutation. The tree also shows NFT positions, strategy integrations, routing, and perpetual gauges. No source excerpts were supplied, so runtime links below are dashed and unverified rather than claims of inspected call flow.

Main entry points: [`src/AlchemistV3.sol`](https://github.com/alchemix-finance/v3/blob/master/src/AlchemistV3.sol) (Alchemist V3), [`src/AlchemistAllocator.sol`](https://github.com/alchemix-finance/v3/blob/master/src/AlchemistAllocator.sol) (Strategy allocator), [`src/strategies`](https://github.com/alchemix-finance/v3/tree/master/src/strategies) (Yield strategies), [`src/AlchemistV3Position.sol`](https://github.com/alchemix-finance/v3/blob/master/src/AlchemistV3Position.sol) (Position NFT)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_core["Alchemist Core"]
  node_alchemist["Alchemist V3<br/>[AlchemistV3.sol]"]
  node_gate["Access gate<br/>[AlchemistGate.sol]"]
  node_transmuter["Transmuter<br/>[Transmuter.sol]"]
  node_router["Alchemist router"]
end

subgraph group_positions["Positions And Tokens"]
  node_token["Alchemic token<br/>[AlTokenV3.sol]"]
  node_position["Position NFT"]
  node_renderer["Position renderer"]
  node_vaults["Token vaults"]
  node_ethvault["ETH vault"]
end

subgraph group_yield["Yield Management"]
  node_allocator["Strategy allocator"]
  node_curator["Strategy curator"]
  node_classifier["Strategy classifier"]
  node_myt["MYT strategy<br/>[MYTStrategy.sol]"]
  node_gauge["Perpetual gauge<br/>[PerpetualGauge.sol]"]
end

subgraph group_integrations["Strategies And Integrations"]
  node_strategy["Yield strategies"]
  node_adapters["Token adapters"]
  node_oracle["Oracle adapter"]
end

node_user(("Protocol user"))
node_external{{"External protocols"}}

node_user -.->|"interacts with"| node_alchemist
node_user -.->|"routes through"| node_router
node_alchemist -.->|"checks access"| node_gate
node_alchemist -.->|"mints or burns"| node_token
node_alchemist -.->|"manages positions"| node_position
node_position -.->|"renders metadata"| node_renderer
node_alchemist -.->|"uses vaults"| node_vaults
node_alchemist -.->|"uses vault"| node_ethvault
node_alchemist -.->|"allocates through"| node_allocator
node_allocator -.->|"classifies strategies"| node_classifier
node_curator -.->|"curates allocation"| node_allocator
node_allocator -.->|"deploys to"| node_strategy
node_strategy -.->|"uses adapters"| node_adapters
node_strategy -.->|"integrates with"| node_external
node_oracle -.->|"reads prices"| node_external
node_user -.->|"transmutes through"| node_transmuter
node_myt -.->|"participates in"| node_gauge

click node_alchemist "https://github.com/alchemix-finance/v3/blob/master/src/AlchemistV3.sol"
click node_gate "https://github.com/alchemix-finance/v3/blob/master/src/AlchemistGate.sol"
click node_allocator "https://github.com/alchemix-finance/v3/blob/master/src/AlchemistAllocator.sol"
click node_curator "https://github.com/alchemix-finance/v3/blob/master/src/AlchemistCurator.sol"
click node_classifier "https://github.com/alchemix-finance/v3/blob/master/src/AlchemistStrategyClassifier.sol"
click node_strategy "https://github.com/alchemix-finance/v3/tree/master/src/strategies"
click node_adapters "https://github.com/alchemix-finance/v3/tree/master/src/adapters"
click node_oracle "https://github.com/alchemix-finance/v3/blob/master/src/FrxEthEthDualOracleAggregatorAdapter.sol"
click node_token "https://github.com/alchemix-finance/v3/blob/master/src/AlTokenV3.sol"
click node_position "https://github.com/alchemix-finance/v3/blob/master/src/AlchemistV3Position.sol"
click node_renderer "https://github.com/alchemix-finance/v3/blob/master/src/AlchemistV3PositionRenderer.sol"
click node_vaults "https://github.com/alchemix-finance/v3/blob/master/src/AlchemistTokenVault.sol"
click node_ethvault "https://github.com/alchemix-finance/v3/blob/master/src/AlchemistETHVault.sol"
click node_transmuter "https://github.com/alchemix-finance/v3/blob/master/src/Transmuter.sol"
click node_router "https://github.com/alchemix-finance/v3/blob/master/src/router/AlchemistRouter.sol"
click node_myt "https://github.com/alchemix-finance/v3/blob/master/src/MYTStrategy.sol"
click node_gauge "https://github.com/alchemix-finance/v3/blob/master/src/PerpetualGauge.sol"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_alchemist,node_gate,node_transmuter,node_router,node_user toneBlue
class node_token,node_position,node_renderer,node_vaults,node_ethvault toneAmber
class node_allocator,node_curator,node_classifier,node_myt,node_gauge toneMint
class node_strategy,node_adapters,node_oracle toneRose
class node_external toneIndigo
```

## Components

### Alchemist Core

- [Alchemist V3](https://github.com/alchemix-finance/v3/blob/master/src/AlchemistV3.sol): `src/AlchemistV3.sol`
- [Access gate](https://github.com/alchemix-finance/v3/blob/master/src/AlchemistGate.sol): `src/AlchemistGate.sol`
- [Transmuter](https://github.com/alchemix-finance/v3/blob/master/src/Transmuter.sol): `src/Transmuter.sol`
- [Alchemist router](https://github.com/alchemix-finance/v3/blob/master/src/router/AlchemistRouter.sol): `src/router/AlchemistRouter.sol`

### Positions And Tokens

- [Alchemic token](https://github.com/alchemix-finance/v3/blob/master/src/AlTokenV3.sol): `src/AlTokenV3.sol`
- [Position NFT](https://github.com/alchemix-finance/v3/blob/master/src/AlchemistV3Position.sol): `src/AlchemistV3Position.sol`
- [Position renderer](https://github.com/alchemix-finance/v3/blob/master/src/AlchemistV3PositionRenderer.sol): `src/AlchemistV3PositionRenderer.sol`
- [Token vaults](https://github.com/alchemix-finance/v3/blob/master/src/AlchemistTokenVault.sol): `src/AlchemistTokenVault.sol`
- [ETH vault](https://github.com/alchemix-finance/v3/blob/master/src/AlchemistETHVault.sol): `src/AlchemistETHVault.sol`

### Yield Management

- [Strategy allocator](https://github.com/alchemix-finance/v3/blob/master/src/AlchemistAllocator.sol): `src/AlchemistAllocator.sol`
- [Strategy curator](https://github.com/alchemix-finance/v3/blob/master/src/AlchemistCurator.sol): `src/AlchemistCurator.sol`
- [Strategy classifier](https://github.com/alchemix-finance/v3/blob/master/src/AlchemistStrategyClassifier.sol): `src/AlchemistStrategyClassifier.sol`
- [MYT strategy](https://github.com/alchemix-finance/v3/blob/master/src/MYTStrategy.sol): `src/MYTStrategy.sol`
- [Perpetual gauge](https://github.com/alchemix-finance/v3/blob/master/src/PerpetualGauge.sol): `src/PerpetualGauge.sol`

### Strategies And Integrations

- [Yield strategies](https://github.com/alchemix-finance/v3/tree/master/src/strategies): `src/strategies`
- [Token adapters](https://github.com/alchemix-finance/v3/tree/master/src/adapters): `src/adapters`
- [Oracle adapter](https://github.com/alchemix-finance/v3/blob/master/src/FrxEthEthDualOracleAggregatorAdapter.sol): `src/FrxEthEthDualOracleAggregatorAdapter.sol`

### Other components

- **Protocol user**
- **External protocols**

## Connections

- Protocol user → Alchemist V3: interacts with
- Protocol user → Alchemist router: routes through
- Alchemist V3 → Access gate: checks access
- Alchemist V3 → Alchemic token: mints or burns
- Alchemist V3 → Position NFT: manages positions
- Position NFT → Position renderer: renders metadata
- Alchemist V3 → Token vaults: uses vaults
- Alchemist V3 → ETH vault: uses vault
- Alchemist V3 → Strategy allocator: allocates through
- Strategy allocator → Strategy classifier: classifies strategies
- Strategy curator → Strategy allocator: curates allocation
- Strategy allocator → Yield strategies: deploys to
- Yield strategies → Token adapters: uses adapters
- Yield strategies → External protocols: integrates with
- Oracle adapter → External protocols: reads prices
- Protocol user → Transmuter: transmutes through
- MYT strategy → Perpetual gauge: participates in
