Stakz
The child of Acorns + Mutual Funds/ETFs (if they loved crypto)
Created on 28th February 2025
β’
Stakz
The child of Acorns + Mutual Funds/ETFs (if they loved crypto)
The problem Stakz solves
π― The Problem
Traditional crypto investing is:π€― Overwhelming with 20,000+ tokens,π Complex wallet management,π« High barriers to entry,β οΈ Security concerns, & πΈ has no easy way to make small deposits consistently
π‘ How Stakz Solves It
1. π― Simplified Investment Options
- Foundation - Blue-chip cryptos for stability
- Frontier - Proven mid-cap projects
- Moonshots - Curated emerging opportunities
2. π Automated Investing
- Round up daily purchases to invest spare change (Example: $3.50 coffee β 50Β’ auto-invested).
- Build crypto portfolio without changing spending habits
3. π‘οΈ Institutional Security
- Professional custody solutions, No seed phrases to manage, & Bank-grade security standards
4. π° Lower Barriers
- Start with spare change, No minimum investment, Fractional token ownership
5. π± User-Friendly Experience
- Clean, simple dashboard, Real-time portfolio tracking, & Automated rebalancing
π End Result
Turn everyday transactions into a crypto portfolio, without the complexity or large upfront investment typically required in crypto markets.
User Interaction and Data Flow
π User Journey & Data Flow
π― Getting Started
1. Simple Onboarding
- Create account with email, Complete basic KYC verification, Connect bank account via Plaid or existing wallet, Choose risk asset group, & Watch it grow with recurring micro-deposits for everyday purchases!
π³ Banking Connection
2. Link Your Bank
- Connect bank account securely, Enable round-ups feature, Set optional recurring investments, & Choose round-up multiplier (1x-10x)
π Portfolio Creation
3. Choose Your Strategy
- Foundation -> Conservative -> Blue-chip crypto
- Frontier -> Moderate -> Mid-cap projects
- Moonshots -> Aggressive -> Emerging tokens
π Daily Operations
4. Automated Investing
A[Buy Coffee $3.50] --> B[Round-up 50Β’]
B --> C[Pool with other round-ups (individual acct & user ID maintained]
C --> D[Weekly Investment]
D --> E[Auto-balanced Portfolio]
π± Dashboard Experience
5. Portfolio Management
- Real-time portfolio value, Performance analytics, Transaction history, Asset allocation view, & One-click deposits/withdrawals
π‘οΈ Security Flow
6. Protection Measures
User Action β 2FA Check β Custody Verification β Smart Contract Interaction
- Two-factor authentication, Institutional custody, & Bank-level encryption
π Smart Features
7. Automated Features
- Weekly investment batching, Auto-rebalancing, Price alerts, & Performance reports
π‘ Key Innovation: Stakz combines traditional banking convenience with crypto investing through automated micro-investments, making crypto accessible to everyone.
The project architecture and development process
Technical Infrastructure
Core Components
Frontend Architecture
- Framework:
- Astro v3.6.4 with React islands for interactive components, Server-side rendering with selective hydration, & TypeScript for type safety and developer experience
- Styling:
- TailwindCSS with custom design system, PostCSS for optimization, Custom utility patterns
- State Management:
- Wagmi for Web3 interactions, Viem for blockchain data handling, Zustand for local state, Supabase realtime subscriptions
Backend Infrastructure
- Network: Unichain testnet integration
- Node Providers:
- Infura for primary RPC, Alchemy for fallback, & Local node for development
- Hosting:
- Vercel Edge Functions, Automatic SSL/TLS, & Global CDN distribution
- Database & Auth:
- Supabase PostgreSQL with Row Level Security (RLS), JWT authentication, Real-time subscriptions, and Automated backups
Security Architecture
Data Protection
- Encryption:
- AES-256-GCM for sensitive data, Field-level encryption, & Secure key management
- Authentication:
- JWT with refresh tokens for Session management & Rate limiting
- Infrastructure:
- CORS policies, CSP headers, XSS protection & SQL injection prevention
- Smart Contracts:
- Time-locked upgrades, Automated testing, & Continuous monitoring
Development Setup
Prerequisites
- Node.js >= 18.0.0, PNPM >= 8.0.0, Foundry >= 0.2.0, & Hardhat >= 2.19.0
Environment Requirements
- Supabase project, Mailtrap account, & Infura/Alchemy API keys
Product Integrations
Product Integrations
Authentication & User Management
- Supabase Auth
- Email authentication with JWT tokens, Session management and refresh tokens, & Row Level Security (RLS) policies
Email Services
- Mailtrap
- Transactional email handling, Email verification flow, Custom HTML templates, & Development/production environment separation
Development & Deployment
- Vercel
- Edge function deployment, Automatic SSL/TLS, CI/CD integration, & Environment variable management
Database & Storage
- Supabase PostgreSQL
- User profiles and KYC data, Encrypted sensitive information, Real-time subscriptions, Automated backups, & Custom types and enums
Frontend Framework
- Astro.js
- Server-side rendering, React islands for interactivity, Asset optimization, & TypeScript integration
Styling & UI
- TailwindCSS
- Custom design system, Responsive layouts, Dark mode support, & Performance optimization
Development Tools
- TypeScript
- Static type checking, Enhanced developer experience, Automated type generation, & Interface definitions
Security Services
- AES-256-GCM Encryption
- Sensitive data protection, Field-level encryption, & Secure key management
Blockchain Integration
- Unichain
- Smart contract deployment, Transaction handling, & Portfolio management
Monitoring & Analytics (Planned)
- Error tracking, Performance monitoring, User analytics, & Smart contract monitoring
Each integration was chosen for its specific role in creating a secure, scalable, and maintainable platform. Our architecture allows for easy addition of future integrations while maintaining strict security standards.
Key differentiators and uniqueness of the project
Key Differentiators & Innovation
Automated Accessibility
Unlike traditional CeFi/DeFi platforms that require active management, Stakz introduces: Automated micro-investments through purchase round-ups, No minimum investment requirements, & a VERY Simplified onboarding for non-crypto users
Enhanced Security Architecture
Our multi-layered security approach surpasses standard platforms: AES-256-GCM encryption for all sensitive data, Field-level encryption for PII, Row Level Security (RLS) with granular permissions, Secure document storage with signed URLs, & Real-time session monitoring and fraud detection
User-Centric Design
While most platforms focus on experienced users, Stakz prioritizes: Progressive disclosure of complex features, Multi-step KYC with intuitive flow, Real-time transaction monitoring, Simplified portfolio management, & Clear risk categorization
Technical Innovation
Our architecture improves upon existing solutions: Server-side rendering for improved performance, Hybrid authentication system, Type-safe development environment, Automated testing and deployment, & Real-time data synchronization
Risk Management
Unlike other platforms, we implement: Three-tiered portfolio strategy system, Automated risk assessment, Clear investment categorization, Transaction rate limiting, & Portfolio diversification enforcement
Trade-offs and shortcuts while building
Development Trade-offs & Future Optimizations
Current Implementation Shortcuts
Banking Integration
- Current State: Simulated Plaid integration using mock transaction data
- Limitation: No real-time bank connection or transaction monitoring
- Future Plan: Full Plaid API integration with: Real-time transaction monitoring, ACH transfer capabilities, Bank account verification, Balance checking, & Transaction history sync
Security Implementation
- Current State: Basic AES encryption for sensitive data
- Planned Improvements:
- Hardware Security Module (HSM) integration, Enhanced key rotation system, Additional encryption layers for PII, & Improved audit logging
KYC Process
- Current State: Document upload with basic verification
- Future Enhancement:
- Third-party KYC provider integration, Automated document verification, Biometric verification, & Enhanced fraud detection
Portfolio Management
- Current State:
- Manual portfolio creation
- Basic asset allocation
- Simulated transaction history
- Planned Features:
- Automated rebalancing, Smart order routing, Real-time price feeds, & Advanced portfolio analytics
Smart Contract Integration
- Current State: Basic contract deployment on testnet
- Future Development:
- Gas optimization, Advanced security features, Multi-signature implementation, & Emergency shutdown mechanisms
Technical Debt
Database Structure
- Need to implement proper indexing, Optimize query performance, Add materialized views, & Implement proper partitioning
Frontend Architecture
- Implement proper error boundaries, Add comprehensive loading states, Enhance client-side validation, & Improve state management
Testing Coverage
- Add end-to-end tests, Increase unit test coverage, Implement contract testing, Add performance testing
Additional Features
N/a
Tracks Applied (2)
DEFI, NFTS + GAMING
DeFi Innovation on Unichain
Uniswap
