Skip to main content

Overview

Staxiq features a comprehensive achievements system that rewards users for exploring the platform, connecting their wallets, and growing their Bitcoin DeFi portfolios. Users can earn up to 12 unique badges by completing various activities.

How It Works

Achievements are automatically tracked based on user activity. Each badge has specific unlock conditions and is displayed with a unique icon, color, and description.
Achievements Dashboard

Badge Categories

Getting Started

Bitcoin Pioneer

Unlock: Connect your Stacks wallet for the first time
Icon: πŸ”—
Description: Welcome to Bitcoin DeFi!

AI Strategist

Unlock: Generate your first AI DeFi strategy
Icon: πŸ€–
Description: Let AI optimize your portfolio

On-Chain Activity

On-Chain Thinker

Unlock: Anchor a strategy on Bitcoin via Stacks
Icon: ⛓️
Description: Your strategies are secured by Bitcoin

Bitcoin Maximizer

Unlock: Hold sBTC in your wallet
Icon: β‚Ώ
Description: True Bitcoin DeFi with sBTC

Platform Exploration

DeFi Explorer

Unlock: Visit all 5 sections of Staxiq
Icon: 🧭

Yield Hunter

Unlock: Use the Yield Calculator
Icon: πŸ“ˆ

Stacker

Unlock: Check your Stacking Tracker
Icon: πŸ₯©

Health Conscious

Unlock: Check your Wallet Health Score
Icon: πŸ’Š

DeFi Analyst

Unlock: Use the Protocol Comparison table
Icon: πŸ”¬

Risk Management

Risk Manager

Unlock: Select Conservative risk profile
Icon: πŸ›‘οΈ
Description: Safety first approach to DeFi

Portfolio Milestones

Century Club

Unlock: Portfolio value exceeds $100
Icon: πŸ’΅
Description: Your DeFi journey begins!

Master Badge

Power User

Unlock: Earn 5 or more badges
Icon: ⚑
Description: True Staxiq power user

Complete Badge List

Here’s the full breakdown of all 12 achievements:

User Interface

Progress Tracking

The Achievements page displays:
  • Collection Progress: Visual progress bar showing X/12 badges earned
  • Percentage Complete: Real-time completion percentage
  • Earned Badges: Full-color cards with glowing effects
  • Locked Badges: Grayscale cards showing what’s still available

Visual Design

Earned badges feature:
  • ✨ Brand color theming with glow effects
  • 🎨 Gradient borders matching badge color
  • πŸ”† Hover animations (scale up on mouse over)
  • πŸ“± Responsive grid layout (2 cols mobile, 4 cols desktop)
Locked badges appear:
  • ⚫ Grayscale with reduced opacity (50%)
  • πŸ”’ Still visible to show what can be earned
  • πŸ’­ Description hints at how to unlock

Technical Implementation

Achievement Conditions

Each badge has a JavaScript condition function:

Data Tracking

User activity is tracked via a userData object:

Badge Calculation

Achievements are calculated dynamically:
The badgeCount is recursively calculated to properly unlock the β€œPower User” badge when 5+ badges are earned.

Theme Support

The achievements page adapts to Staxiq’s light/dark theme:

Dark Theme

  • Background: #0d1117
  • Cards: #141c2e
  • Borders: #1e2d4a
  • Text: #f0f4ff

Light Theme

  • Background: #ffffff
  • Cards: #f8faff
  • Borders: #dde5f5
  • Text: #0a0e1a

Future Enhancements

Social Sharing

Share earned badges on Twitter/X with custom graphics

Leaderboards

Global and friend-based achievement leaderboards

Rare Badges

Limited-time or special event badges

NFT Integration

Mint achievement badges as Stacks NFTs

Portfolio Dashboard

Track your DeFi positions and progress

AI Copilot

Generate strategies to earn AI Strategist badge