Abunfi is a micro-savings DeFi application designed for global users, allowing people to save small amounts (starting from $10) and earn attractive interest rates from diverse DeFi investment strategies.
Breaking down financial barriers, bringing savings and earning opportunities to everyone, especially young people and everyday users who are new to crypto.
abunfi/
βββ backend/ # Node.js API server
βββ frontend/ # React web application
βββ docs/ # Documentation
βββ scripts/ # Deployment & utility scripts
abunfi-contracts/ # Smart contracts repository (separate)
βββ src/ # Smart contracts (Solidity)
β βββ strategies/ # Investment strategies
β βββ interfaces/ # Contract interfaces
β βββ mocks/ # Mock contracts for testing
βββ test/ # Forge tests
βββ script/ # Deployment scripts
βββ exports/ # Contract ABIs for integration
- Super Fast Registration: Using Account Abstraction, login with Google/Apple
- Easy Savings: Starting from $10 with user-friendly interface
- Attractive Interest Rates: 6-12% APY from diverse investment strategies
- Profit Tracking: Intuitive dashboard with real-time updates
- Flexible Withdrawals: Withdraw principal and interest anytime
- Smart Risk Management: Automatic allocation between strategies
- Lending Protocols: Aave, Compound - APY 4-6%
- Stablecoin Farming: Curve, Convex - APY 3-5%
- Liquidity Providing: Providing liquidity for stablecoin pairs (USDC/USDT) on Curve, Uniswap V3 - APY 5-8%
- Concentrated Liquidity: Using Uniswap V4 with concentrated liquidity for stablecoin pairs - APY 8-12%
- Dynamic Fee Optimization: Dynamic fee optimization based on market conditions
- Automated Rebalancing: Automatic rebalancing to maintain optimal efficiency
- Gas Efficiency: Leveraging V4's singleton architecture to reduce gas costs
- Liquid Staking: stETH, rETH to earn profits from Ethereum staking - APY 4-6%
- Yield Farming: Convex, Yearn Finance - APY 8-15%
- React 18 with TypeScript
- Material-UI for user interface
- Web3Auth for social login (Google, Apple, Facebook) - β Fully Implemented
- Ethers.js for blockchain interaction
- Recharts for data visualization
- WebSocket for real-time updates
- Node.js with Express.js
- PostgreSQL for financial data
- Memory Cache for sessions and caching (upgradeable to Redis)
- JWT for API authentication
- WebSocket for real-time updates
- Role-based Access Control for Strategy Manager
- zkVM Integration for privacy-preserving verification
- Sepolia Testnet (Ethereum testnet for pre-production)
- Solidity for smart contracts
- Foundry for testing and deployment
- Account Abstraction (EIP-7702) for gasless transactions
- zkVM (RISC Zero) for privacy-preserving social verification
- Aave, Curve, Lido, Rocket Pool, Uniswap V3
- Node.js >= 18
- npm or yarn
- Git
# Clone repository
git clone https://github.com/hadv/abunfi.git
cd abunfi
# Quick start with Docker
./scripts/quick-start.sh
# Or manually start development environment
docker-compose up -d --build# Automated database setup
chmod +x scripts/setup-local-db.sh
./scripts/setup-local-db.sh
# Install dependencies
cd backend && npm install
cd ../frontend && npm install
# Start development servers
cd backend && npm run dev # Terminal 1
cd frontend && npm start # Terminal 2Real-time dashboard for strategy managers:
- Real-time Data Visualization: Funds distribution, APY comparison, compound interest
- Interactive Controls: Allocation management with auto-rebalancing
- Role-based Access: Strategy managers and admins only
- WebSocket Integration: Live updates every 30 seconds
Access: http://localhost:3000/strategy-manager
# Start all services with hot reload
docker-compose up -d --build
# View logs
docker-compose logs -f
# Access services:
# Frontend: http://localhost:3000
# Backend: http://localhost:3001
# Database: localhost:5432# 1. Configure environment
cp .env.production.example .env.prod
# Edit .env.prod with your domain and secrets
# 2. Deploy to production
DOMAIN_NAME=your-domain.com ./scripts/deploy-production.sh
# 3. Monitor deployment
./scripts/monitor-production.shProduction Features:
- π SSL/TLS with Let's Encrypt auto-renewal
- π Nginx reverse proxy with security headers
- π Health monitoring and logging
- π Automatic backups and recovery
- π Performance optimization with caching
- πΎ Memory cache for sessions (upgradeable to Redis for production)
See DOCKER_SETUP.md and PRODUCTION_ONLY_DEPLOYMENT.md for detailed guides.
- Quick Start Guide - Get running in 5 minutes β‘
- Development Setup - Comprehensive setup guide π§
- Strategy Manager Dashboard - Dashboard documentation π
STRATEGIES.md- Details about investment strategiesDEPLOYMENT.md- Deployment guideREADME.md- Technical documentation
- Smart contracts audited by reputable security firms
- zkVM (RISC Zero) for enhanced privacy and social verification
- Automatic risk management with dynamic allocation
- Diversification across protocols to minimize concentration risk
- Emergency withdrawal mechanisms
We welcome all contributions! Please read the contribution guidelines before submitting PRs.
MIT License