# convex-eth/frax-cvx-platform architecture

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

- Interactive diagram: https://gitdiagram.com/convex-eth/frax-cvx-platform
- Repository: https://github.com/convex-eth/frax-cvx-platform

## Overview

This repository implements the Convex-Frax staking platform: users create isolated vaults for Frax gauge staking, share Convex veFXS boosting, and pay fees on claimed FXS rewards. It also includes a holder-snapshot tool for cvxFXS airdrop calculations. Relationships among the Solidity components are drawn from the README; the contract source was not sampled, so undocumented call details are omitted.

Main entry points: [`contracts/contracts/Booster.sol`](https://github.com/convex-eth/frax-cvx-platform/blob/main/contracts/contracts/Booster.sol) (Booster), [`contracts/contracts/StakingProxyERC20.sol`](https://github.com/convex-eth/frax-cvx-platform/blob/main/contracts/contracts/StakingProxyERC20.sol) (ERC20 Staking Vault), [`contracts/contracts/FeeDeposit.sol`](https://github.com/convex-eth/frax-cvx-platform/blob/main/contracts/contracts/FeeDeposit.sol) (Fee Deposit), [`contracts/contracts/PoolRegistry.sol`](https://github.com/convex-eth/frax-cvx-platform/blob/main/contracts/contracts/PoolRegistry.sol) (Pool Registry)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_pool_vaults["Pools and Vaults"]
  node_pool_registry["Pool Registry<br/>[PoolRegistry.sol]"]
  node_booster["Booster<br/>[Booster.sol]"]
end

subgraph group_staking["Staking and Boosting"]
  node_staking_proxy["ERC20 Staking Vault"]
  node_voter_proxy["Voter Proxy<br/>[VoterProxy.sol]"]
end

subgraph group_rewards["Rewards and Fees"]
  node_multi_rewards["Pool Rewards<br/>[MultiRewards.sol]"]
  node_fee_registry["Fee Registry<br/>[FeeRegistry.sol]"]
  node_fee_deposit["Fee Deposit<br/>[FeeDeposit.sol]"]
  node_cvxfxs_receiver["cvxFXS Fee Receiver"]
  node_vlcvx_receiver["vlCVX Fee Receiver"]
end

subgraph group_fraxtal["Fraxtal Contracts"]
  node_fraxtal_booster["Fraxtal Booster<br/>[FraxtalBooster.sol]"]
  node_bridge_receiver["Bridge Receiver<br/>[BridgeReceiver.sol]"]
end

subgraph group_airdrop["Airdrop Snapshot"]
  node_holder_snapshot["Holder Snapshot Tool<br/>[cvxFxsHolders.js]"]
  node_abi_catalog["Contract ABI Catalog<br/>[abi.js]"]
end

node_user(("Vault User"))
node_convex(("Convex Operator"))
node_frax["Frax Gauge System"]
node_rpc["Ethereum and Fraxtal RPC"]

node_convex -->|"creates pools"| node_pool_registry
node_pool_registry -->|"creates reward contract"| node_multi_rewards
node_user -->|"requests vault"| node_booster
node_booster -->|"uses pool"| node_pool_registry
node_booster -->|"clones implementation"| node_staking_proxy
node_booster -->|"enables veFXS boost"| node_frax
node_user -->|"stakes and claims"| node_staking_proxy
node_staking_proxy -->|"proxies staking"| node_frax
node_staking_proxy -->|"applies FXS fee"| node_fee_registry
node_fee_registry -.->|"routes fees"| node_fee_deposit
node_fee_deposit -.->|"distributes fees"| node_cvxfxs_receiver
node_fee_deposit -.->|"distributes fees"| node_vlcvx_receiver
node_holder_snapshot -->|"imports ABIs"| node_abi_catalog
node_holder_snapshot -->|"queries balances and logs"| node_rpc

click node_pool_registry "https://github.com/convex-eth/frax-cvx-platform/blob/main/contracts/contracts/PoolRegistry.sol"
click node_booster "https://github.com/convex-eth/frax-cvx-platform/blob/main/contracts/contracts/Booster.sol"
click node_staking_proxy "https://github.com/convex-eth/frax-cvx-platform/blob/main/contracts/contracts/StakingProxyERC20.sol"
click node_voter_proxy "https://github.com/convex-eth/frax-cvx-platform/blob/main/contracts/contracts/VoterProxy.sol"
click node_multi_rewards "https://github.com/convex-eth/frax-cvx-platform/blob/main/contracts/contracts/MultiRewards.sol"
click node_fee_registry "https://github.com/convex-eth/frax-cvx-platform/blob/main/contracts/contracts/FeeRegistry.sol"
click node_fee_deposit "https://github.com/convex-eth/frax-cvx-platform/blob/main/contracts/contracts/FeeDeposit.sol"
click node_cvxfxs_receiver "https://github.com/convex-eth/frax-cvx-platform/blob/main/contracts/contracts/FeeReceiverCvxFxs.sol"
click node_vlcvx_receiver "https://github.com/convex-eth/frax-cvx-platform/blob/main/contracts/contracts/FeeReceiverVlCvx.sol"
click node_fraxtal_booster "https://github.com/convex-eth/frax-cvx-platform/blob/main/contracts/contracts/fraxtal/FraxtalBooster.sol"
click node_bridge_receiver "https://github.com/convex-eth/frax-cvx-platform/blob/main/contracts/contracts/fraxtal/BridgeReceiver.sol"
click node_holder_snapshot "https://github.com/convex-eth/frax-cvx-platform/blob/main/airdrop/cvxFxsHolders.js"
click node_abi_catalog "https://github.com/convex-eth/frax-cvx-platform/blob/main/airdrop/abi.js"

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_pool_registry,node_booster,node_user toneBlue
class node_staking_proxy,node_voter_proxy toneAmber
class node_multi_rewards,node_fee_registry,node_fee_deposit,node_cvxfxs_receiver,node_vlcvx_receiver toneMint
class node_fraxtal_booster,node_bridge_receiver toneRose
class node_holder_snapshot,node_abi_catalog,node_convex,node_frax,node_rpc toneIndigo
```

## Components

### Pools and Vaults

- [Pool Registry](https://github.com/convex-eth/frax-cvx-platform/blob/main/contracts/contracts/PoolRegistry.sol): `contracts/contracts/PoolRegistry.sol`
- [Booster](https://github.com/convex-eth/frax-cvx-platform/blob/main/contracts/contracts/Booster.sol): `contracts/contracts/Booster.sol`

### Staking and Boosting

- [ERC20 Staking Vault](https://github.com/convex-eth/frax-cvx-platform/blob/main/contracts/contracts/StakingProxyERC20.sol): `contracts/contracts/StakingProxyERC20.sol`
- [Voter Proxy](https://github.com/convex-eth/frax-cvx-platform/blob/main/contracts/contracts/VoterProxy.sol): `contracts/contracts/VoterProxy.sol`

### Rewards and Fees

- [Pool Rewards](https://github.com/convex-eth/frax-cvx-platform/blob/main/contracts/contracts/MultiRewards.sol): `contracts/contracts/MultiRewards.sol`
- [Fee Registry](https://github.com/convex-eth/frax-cvx-platform/blob/main/contracts/contracts/FeeRegistry.sol): `contracts/contracts/FeeRegistry.sol`
- [Fee Deposit](https://github.com/convex-eth/frax-cvx-platform/blob/main/contracts/contracts/FeeDeposit.sol): `contracts/contracts/FeeDeposit.sol`
- [cvxFXS Fee Receiver](https://github.com/convex-eth/frax-cvx-platform/blob/main/contracts/contracts/FeeReceiverCvxFxs.sol): `contracts/contracts/FeeReceiverCvxFxs.sol`
- [vlCVX Fee Receiver](https://github.com/convex-eth/frax-cvx-platform/blob/main/contracts/contracts/FeeReceiverVlCvx.sol): `contracts/contracts/FeeReceiverVlCvx.sol`

### Fraxtal Contracts

- [Fraxtal Booster](https://github.com/convex-eth/frax-cvx-platform/blob/main/contracts/contracts/fraxtal/FraxtalBooster.sol): `contracts/contracts/fraxtal/FraxtalBooster.sol`
- [Bridge Receiver](https://github.com/convex-eth/frax-cvx-platform/blob/main/contracts/contracts/fraxtal/BridgeReceiver.sol): `contracts/contracts/fraxtal/BridgeReceiver.sol`

### Airdrop Snapshot

- [Holder Snapshot Tool](https://github.com/convex-eth/frax-cvx-platform/blob/main/airdrop/cvxFxsHolders.js): `airdrop/cvxFxsHolders.js`
- [Contract ABI Catalog](https://github.com/convex-eth/frax-cvx-platform/blob/main/airdrop/abi.js): `airdrop/abi.js`

### Other components

- **Vault User**
- **Convex Operator**
- **Frax Gauge System**
- **Ethereum and Fraxtal RPC**

## Connections

- Convex Operator → Pool Registry: creates pools (evidence: `README.md`)
- Pool Registry → Pool Rewards: creates reward contract (evidence: `README.md`)
- Vault User → Booster: requests vault (evidence: `README.md`)
- Booster → Pool Registry: uses pool (evidence: `README.md`)
- Booster → ERC20 Staking Vault: clones implementation (evidence: `README.md`)
- Booster → Frax Gauge System: enables veFXS boost (evidence: `README.md`)
- Vault User → ERC20 Staking Vault: stakes and claims (evidence: `README.md`)
- ERC20 Staking Vault → Frax Gauge System: proxies staking (evidence: `README.md`)
- ERC20 Staking Vault → Fee Registry: applies FXS fee (evidence: `README.md`)
- Fee Registry → Fee Deposit: routes fees
- Fee Deposit → cvxFXS Fee Receiver: distributes fees
- Fee Deposit → vlCVX Fee Receiver: distributes fees
- Holder Snapshot Tool → Contract ABI Catalog: imports ABIs (evidence: `airdrop/cvxFxsHolders.js`)
- Holder Snapshot Tool → Ethereum and Fraxtal RPC: queries balances and logs (evidence: `airdrop/cvxFxsHolders.js`)
