Skip to main content

Overview

The Protocol Data module provides static configuration for supported DeFi protocols on the Stacks blockchain. This data is used throughout the application for protocol selection, filtering, and AI strategy generation. Source: src/services/protocolData.js

PROTOCOLS

Array of protocol configurations with detailed metadata.

Protocol Object Structure

array
Array of protocol configuration objects
string
Unique protocol identifier (lowercase, no spaces)
string
Display name of the protocol
string
Protocol category: "Lending", "DEX", "Yield", or "Stacking"
string
Annual Percentage Yield (numeric string, e.g., “8.2”)
string
Total Value Locked (formatted string, e.g., “$48.2M”)
string
Supported assets (e.g., “sBTC”, “STX”, “sBTC/STX”)
string
Risk level: "Low", "Medium", or "High"
string
Short description of the protocol’s functionality
string
Official protocol website URL
string
Brand color (hex code, e.g., “#F7931A”)
string
Emoji icon for visual identification

Available Protocols

Zest Protocol

Zest Protocol

Type: Lending
APY: 8.2%
TVL: $48.2M
Risk: Low
Lend and borrow Bitcoin-backed assets with transparent on-chain rates.Visit Protocol →

Bitflow

Bitflow

Type: DEX
APY: 12.4%
TVL: $31.7M
Risk: Medium
Decentralized exchange aggregator for the best sBTC swap rates on Stacks.Visit Protocol →

ALEX Lab

ALEX Lab

Type: DEX
APY: 15.1%
TVL: $124.5M
Risk: Medium
The leading Bitcoin DeFi super app — swap, earn, and launch on Stacks.Visit Protocol →

Hermetica

Hermetica

Type: Yield
APY: 18.7%
TVL: $9.8M
Risk: High
Bitcoin-backed synthetic dollar yielding protocol built on Stacks.Visit Protocol →

StackingDAO

StackingDAO

Type: Stacking
APY: 9.5%
TVL: $89.3M
Risk: Low
Liquid stacking protocol — stack STX and keep liquidity with stSTX.Visit Protocol →

Granite

Granite

Type: Lending
APY: 7.8%
TVL: $18.6M
Risk: Low
Borrow stablecoins against your Bitcoin collateral on Stacks.Visit Protocol →

Velar

Velar

Type: DEX
APY: 11.3%
TVL: $431K
Risk: Medium
Perpetuals and spot trading protocol on Bitcoin L2 via Stacks.Visit Protocol →

RISK_STYLES

CSS class mappings for risk level styling.

Usage Example

FILTER_TYPES

Available protocol type filters.

Usage Example

Usage Examples

Protocol Statistics

Total Protocols

7 protocols supported

Average APY

11.9% across all protocols

Total TVL

$322.6M combined liquidity

Risk Distribution

3 Low, 3 Medium, 1 High risk protocols

Protocol Types

Protocols that allow lending and borrowing:
  • Zest Protocol - 8.2% APY
  • Granite - 7.8% APY
  • Average: 8.0% APY

Best Practices

Keep Data Updated

APY and TVL should be updated regularly (consider dynamic data sources)

Type Safety

Validate protocol data structure when extending or modifying

Consistent Formatting

Use consistent formats for APY (string numbers) and TVL (e.g., “$XM”)

Icon Selection

Use recognizable emojis that represent the protocol’s function

Extending Protocol Data

To add a new protocol: