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

# architecture

<figure><img src="https://2055716245-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FBlT7vnBN5tuPM4TZnB7E%2Fuploads%2F4S09pRAZSfUz3XYm6Uf2%2Fimage.png?alt=media&amp;token=675d138d-a898-4974-9f49-5cc6fa42c645" alt=""><figcaption><p>diagram</p></figcaption></figure>

## DePINs.io Architecture Overview

This page provides a detailed breakdown of the DePINs.io system architecture, explaining how we seamlessly convert idle infrastructure into auto-compounding yield through fully automated orchestration across DePIN and DeFi layers.

***

### 🎯 High-Level Goal

**Turn unused digital infrastructure into yield-bearing stTokens without requiring user intervention.**

***

### 🧩 Core Layers

DePINs.io is designed with three primary layers:

#### 1. **Intelligence Layer**

Handles scoring, matching, and deployment decisions using DUVI.

* **DUVI Scoring Engine (DePIN Utility Value Index):**
  * Takes a call from the controller.
  * Scans the user's available digital resources: bandwidth, compute, GPU, storage, etc.
  * Scores each resource by projected yield potential, security, protocol health, and compatibility.
  * Deploys each resource to its optimal DePIN protocol (e.g., bandwidth → Grass, GPU → Render).

***

#### 2. **Adapter Layer**

Handles connectivity to DePIN and staking protocols.

* **DePIN Protocols:**
  * Grass (bandwidth sharing)
  * Render (GPU rendering)
  * Hivemapper (mapping via dashcams)
  * Helium (wireless infra)
* **Staking Protocols:**
  * Marinade (SOL to mSOL)
  * Jito (SOL staking with MEV)
  * Blaze (liquid staking alternative)

These are abstracted via adapters to standardize interaction across protocols.

***

#### 3. **DeFi Layer**

Manages conversion, staking, and compounding of rewards.

* **Controller**
  * Central orchestrator
  * Accepts user resources (bandwidth, compute, etc.)
  * Coordinates between Intelligence → DePIN → DeFi
  * Operates both **on-chain and off-chain**
* **DEX (Decentralized Exchange):**
  * Performs **real-time swaps** of earned DePIN tokens into SOL or compatible assets.
* **Meta-Vault:**
  * Receives SOL or compatible tokens from the DEX.
  * Stakes into liquid staking protocols.
  * Auto-compounds rewards.
  * Issues receipt tokens (e.g., stSOL, stGRASS) representing yield.

***

### 🔄 Full Flow Walkthrough

#### Step 1: **User Provides Resources**

Users provide access to idle infrastructure (e.g. network, compute).

#### Step 2: **Scan + Score + Deploy**

* Controller calls DUVI → DUVI scores available resources
* High-yield assets are matched to DePIN protocols via the adapter layer

#### Step 3: **DePIN Protocols Generate Rewards**

* Grass, Render, etc., begin earning tokens for the user

#### Step 4: **Rewards Are Swapped in Real-Time**

* Controller triggers swaps via DEX to convert DePIN tokens to SOL

#### Step 5: **Meta-Vault Stakes and Compounds**

* Converted tokens go to the Meta-Vault
* Vault selects protocol (e.g., Marinade, Jito)
* Stakes, compounds, and tracks yield

#### Step 6: **User Receives stTokens**

* Users receive stTokens (e.g., stSOL, stGRASS)
* These represent yield and can be used in DeFi or held for compounding

***

### ✅ Summary

This architecture allows DePINs.io to:

* Fully automate the path from **idle infra → yield-bearing token**
* Maintain **non-custodial control**
* Optimize across both **DePIN and staking ecosystems**
* Deliver **daily compounding returns** with no user setup required
