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 of protocol configuration objects
Unique protocol identifier (lowercase, no spaces)
Display name of the protocol
Protocol category:
"Lending", "DEX", "Yield", or "Stacking"Annual Percentage Yield (numeric string, e.g., “8.2”)
Total Value Locked (formatted string, e.g., “$48.2M”)
Supported assets (e.g., “sBTC”, “STX”, “sBTC/STX”)
Risk level:
"Low", "Medium", or "High"Short description of the protocol’s functionality
Official protocol website URL
Brand color (hex code, e.g., “#F7931A”)
Emoji icon for visual identification
Available Protocols
Zest Protocol
Zest Protocol
Type: Lending
APY: 8.2%
TVL: $48.2M
Risk: LowLend and borrow Bitcoin-backed assets with transparent on-chain rates.Visit Protocol →
APY: 8.2%
TVL: $48.2M
Risk: LowLend and borrow Bitcoin-backed assets with transparent on-chain rates.Visit Protocol →
Bitflow
Bitflow
Type: DEX
APY: 12.4%
TVL: $31.7M
Risk: MediumDecentralized exchange aggregator for the best sBTC swap rates on Stacks.Visit Protocol →
APY: 12.4%
TVL: $31.7M
Risk: MediumDecentralized 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: MediumThe leading Bitcoin DeFi super app — swap, earn, and launch on Stacks.Visit Protocol →
APY: 15.1%
TVL: $124.5M
Risk: MediumThe leading Bitcoin DeFi super app — swap, earn, and launch on Stacks.Visit Protocol →
Hermetica
Hermetica
Type: Yield
APY: 18.7%
TVL: $9.8M
Risk: HighBitcoin-backed synthetic dollar yielding protocol built on Stacks.Visit Protocol →
APY: 18.7%
TVL: $9.8M
Risk: HighBitcoin-backed synthetic dollar yielding protocol built on Stacks.Visit Protocol →
StackingDAO
StackingDAO
Type: Stacking
APY: 9.5%
TVL: $89.3M
Risk: LowLiquid stacking protocol — stack STX and keep liquidity with stSTX.Visit Protocol →
APY: 9.5%
TVL: $89.3M
Risk: LowLiquid stacking protocol — stack STX and keep liquidity with stSTX.Visit Protocol →
Granite
Granite
Type: Lending
APY: 7.8%
TVL: $18.6M
Risk: LowBorrow stablecoins against your Bitcoin collateral on Stacks.Visit Protocol →
APY: 7.8%
TVL: $18.6M
Risk: LowBorrow stablecoins against your Bitcoin collateral on Stacks.Visit Protocol →
Velar
Velar
Type: DEX
APY: 11.3%
TVL: $431K
Risk: MediumPerpetuals and spot trading protocol on Bitcoin L2 via Stacks.Visit Protocol →
APY: 11.3%
TVL: $431K
Risk: MediumPerpetuals 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
- Lending (3)
- DEX (3)
- Yield (1)
- Stacking (1)
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:Related Resources
- AI Service - Uses protocol data for strategy generation
- useProtocols Hook - React hook for filtering protocols
- Compare Protocols Page - UI for protocol comparison