Overview
Protocol Comparison provides a comprehensive, sortable table of every major Stacks DeFi protocol. Compare yields, TVL, risk levels, and audit status across lending platforms, DEXs, yield aggregators, and stacking protocols—all with live data from DefiLlama updated every 5 minutes.Key Features
Live Data Feeds
APY and TVL from DefiLlama refresh every 5 minutes
Multi-Dimensional Sorting
Sort by APY, TVL, risk, protocol name, or any column
Advanced Filtering
Filter by risk level (Low/Medium/High) and protocol type
Audit Status
See which protocols have been security audited
Protocol Table
Columns Explained
| Column | Description | Format | Sortable |
|---|---|---|---|
| Protocol | Name with logo | Text + Image | Yes |
| APY | Annual Percentage Yield | 12.5% | Yes |
| TVL | Total Value Locked | $45.2M | Yes |
| Risk | Safety rating | Badge (Low/Med/High) | Yes |
| Type | Protocol category | Lending/DEX/Yield/Stacking | No |
| Asset | Accepted tokens | STX, sBTC, xBTC | No |
| Audited | Security audit status | ✓ or ✗ | No |
| Min Dep. | Minimum deposit required | None, 100 STX | No |
Row Interactions
Click any row to open the protocol’s website in a new tab. Hover effects highlight the entire row for easy selection.
Sorting & Filtering
Sorting Logic
Toggle Direction
- First click: Sort descending (highest first)
- Second click: Sort ascending (lowest first)
- Visual indicator: ↓ (desc) or ↑ (asc) in orange
Risk Filtering
Filter by risk tolerance:- Low Risk
- Medium Risk
- High Risk
Characteristics:
- Audited smart contracts
- Established protocols (StackingDAO, ALEX)
- TVL > $10M
- APY: 5-10%
Type Filtering
Filter by protocol category:- Lending - Lend assets to earn interest (e.g., Zest Protocol)
- DEX - Decentralized exchanges with LP rewards (e.g., Velar)
- Yield - Yield aggregators and vaults (e.g., ALEX)
- Stacking - STX stacking services (e.g., StackingDAO)
Data Sources
DefiLlama Integration
Live data fetched from DefiLlama API:Data Structure
Fallback Data
If DefiLlama doesn’t have current APY for a protocol, Staxiq uses the protocol’s last published rate marked with a
~ symbol.~9.5% indicates fallback data
Summary Statistics
Four key metrics displayed below the table:Calculations
Use Cases
1. Finding Best Yield
Example result: Velar Finance (12% APY, Medium Risk, Audited, $8.5M TVL, No minimum)
2. Diversifying Portfolio
Pick 3-4 Protocols
Choose different types:
- 1x Stacking (Low risk base)
- 1x Lending (Medium risk)
- 1x DEX (Medium/High for growth)
- 1x Yield (Optimization)
3. Risk Assessment
Code Reference
Key implementation files:- Page:
src/pages/CompareProtocols.jsx- Main table UI - Hook:
src/hooks/useProtocolData.js- Data fetching and caching - Service:
src/services/defiLlamaService.js- DefiLlama API integration - Sorting:
src/pages/CompareProtocols.jsx:60-73- Multi-column sort logic
Advanced Features
Responsive Table
Table adapts to screen size:- Mobile: Horizontal scroll enabled
- Tablet+: Full table fits viewport
- Desktop: Expanded columns with more padding
Loading States
While fetching live data:- APY shows
…spinner - TVL shows
…spinner - Filter area displays:
⏳ Fetching live data… - Existing data remains visible during refresh
Hover Effects
- Row background lightens on hover
- Cursor changes to pointer
- Entire row is clickable
- Visual feedback confirms interactivity
Protocol Logos
Logos fallback to initials if image fails:Troubleshooting
APY shows ”—” for all protocols:- DefiLlama API may be down—check status at defillama.com
- Network connection issue—refresh page
- Some protocols don’t report APY to aggregators
- Click column header again to toggle direction
- Check if filter is applied—may be hiding some rows
- APY/TVL sort uses raw numbers, not formatted strings
- Some protocols use testnet URLs during development
- Check browser’s pop-up blocker settings
- Try right-click → “Open in new tab”
- Data refreshes every 5 minutes automatically
- Check ”🟢 Live · [time]” badge for last update
- Hard refresh page (Ctrl+Shift+R) to force update
Best Practices
Compare Before Investing
Spend 5-10 minutes comparing protocols before committing funds
Diversify by Risk
Mix Low/Medium/High risk protocols—don’t chase highest APY only
Verify Externally
Click protocol links to verify audit reports and documentation
Monitor TVL Trends
Growing TVL indicates healthy protocol—check monthly
DefiLlama Attribution
Data sourced from DefiLlama - The leading DeFi data aggregator. TVL and APY update hourly on DefiLlama’s backend.
Next Steps
Yield Calculator
Model returns for protocols you’re interested in
AI Copilot
Get AI-powered allocation strategy across protocols