Skip to content

AdekunleBamz/celoquest

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

18 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐ŸŒŸ CeloQuest

Gamified Micro-Lending on Celo
Fund entrepreneurs worldwide with as little as one dollar

๐Ÿš€ Live App: celoquest.vercel.app
๐ŸŽฅ Demo Video: Watch on YouTube
๐Ÿ“Š Pitch Deck: View Presentation


๐Ÿ“– Overview

CeloQuest is a decentralized micro-lending platform built on the Celo blockchain that democratizes access to financial services. We connect global lenders with entrepreneurs in emerging markets, enabling micro-loans starting from just $1 using Celo stablecoins (cUSD).

โœจ Key Features

  • ๐Ÿ’ฐ Micro-Lending - Lend as little as $1 to verified entrepreneurs
  • ๐ŸŽฎ Gamification - Earn impact points and unlock achievement badges
  • ๐Ÿ”„ Token Swaps - Seamlessly swap between CELO, cUSD, and cEUR
  • ๐Ÿ“Š Portfolio Tracking - Monitor your lending history and impact
  • ๐ŸŒ Global Impact - Support entrepreneurs across Africa, Asia, and Latin America
  • ๐Ÿ”’ Transparent - All transactions on-chain and verifiable

๐ŸŽฏ Problem & Solution

The Problem

  • 1.7 billion people worldwide lack access to traditional banking
  • Entrepreneurs in developing countries struggle to secure small business loans
  • High barriers to entry and lack of credit history
  • Limited platforms for impactful peer-to-peer lending

Our Solution

A decentralized micro-lending platform that:

  • Removes intermediaries with smart contracts
  • Enables instant, low-cost cross-border transactions
  • Gamifies the lending experience to drive engagement
  • Provides complete transparency and accountability
  • Makes social impact accessible to everyone

๐Ÿš€ Live Demo

Website: celoquest.vercel.app

Smart Contracts:


๐Ÿ›  Technology Stack

Blockchain

  • Celo Mainnet - Mobile-first, carbon-negative blockchain
  • Solidity - Smart contract development
  • ethers.js - Web3 library for blockchain interactions
  • Ubeswap - Decentralized exchange for token swaps

Frontend

  • Next.js 14 - React framework with App Router
  • TypeScript - Type-safe development
  • Tailwind CSS - Utility-first styling
  • Vercel - Deployment and hosting

Smart Contracts

  • Lending Contract - Manages borrowers, loans, and impact tracking
  • Application Contract - Handles entrepreneur onboarding
  • ERC-20 Integration - cUSD token interactions

๐Ÿ“ฆ Installation

Prerequisites

  • Node.js 18+ and npm/yarn
  • MetaMask or Valora wallet
  • Celo wallet with CELO/cUSD tokens

Setup

  1. Clone the repository
git clone https://github.com/AdekunleBamz/celoquest.git
cd celoquest
  1. Install dependencies
npm install
# or
yarn install
  1. Configure environment variables
cp .env.example .env.local

Edit .env.local with your values:

NEXT_PUBLIC_MAIN_CONTRACT=0x0673AC5002903fa8C1b9C69DfdBeDB93f9e7641F
NEXT_PUBLIC_APP_CONTRACT=0xf10c6FFF55e6Ff15aA004A81bFd7A3CA9dC83a66
NEXT_PUBLIC_CUSD_ADDRESS=0x765DE816845861e75A25fCA122bb6898B8B1282a
NEXT_PUBLIC_CHAIN_ID=42220
NEXT_PUBLIC_RPC_URL=https://forno.celo.org
NEXT_PUBLIC_NETWORK=mainnet
NEXT_PUBLIC_ADMIN_EMAIL=[email protected]
  1. Run development server
npm run dev
# or
yarn dev
  1. Open your browser
http://localhost:3000

๐ŸŽฎ How to Use

For Lenders

  1. Connect Wallet - Click "Connect Wallet" and approve the connection
  2. Browse Entrepreneurs - View verified borrower profiles with stories
  3. Select Amount - Choose how much to lend (minimum $1 cUSD)
  4. Approve & Lend - Approve token spending and confirm transaction
  5. Track Impact - Monitor your portfolio and earn impact points

For Entrepreneurs

  1. Apply - Fill out the application form with business details
  2. Verification - Admin reviews and verifies your application
  3. Get Listed - Your profile appears on the platform
  4. Receive Funding - Lenders contribute to your loan goal
  5. Claim Funds - Withdraw when fully funded

Gamification Features

  • ๐Ÿฅ‰ Bronze Badge - Lend your first dollar
  • ๐Ÿฅˆ Silver Badge - Lend $100+
  • ๐Ÿฅ‡ Gold Badge - Lend $500+
  • ๐Ÿ’Ž Platinum Badge - Lend $1000+

๐Ÿ“‚ Project Structure

celoquest/
โ”œโ”€โ”€ contracts/          # Solidity smart contracts
โ”œโ”€โ”€ public/            # Static assets (logos, images)
โ”œโ”€โ”€ src/
โ”‚   โ”œโ”€โ”€ app/           # Next.js app router pages
โ”‚   โ”‚   โ”œโ”€โ”€ page.tsx   # Home page
โ”‚   โ”‚   โ”œโ”€โ”€ admin/     # Admin dashboard
โ”‚   โ”‚   โ”œโ”€โ”€ frame/     # Farcaster frame
โ”‚   โ”‚   โ””โ”€โ”€ api/       # API routes
โ”‚   โ”œโ”€โ”€ components/    # React components
โ”‚   โ”‚   โ”œโ”€โ”€ Header.tsx
โ”‚   โ”‚   โ”œโ”€โ”€ BorrowerCard.tsx
โ”‚   โ”‚   โ”œโ”€โ”€ LendModal.tsx
โ”‚   โ”‚   โ”œโ”€โ”€ Portfolio.tsx
โ”‚   โ”‚   โ””โ”€โ”€ SwapModal.tsx
โ”‚   โ”œโ”€โ”€ hooks/         # Custom React hooks
โ”‚   โ”œโ”€โ”€ lib/           # Utility functions
โ”‚   โ”‚   โ”œโ”€โ”€ web3.ts    # Web3 helper functions
โ”‚   โ”‚   โ””โ”€โ”€ contracts.ts # Contract addresses & ABIs
โ”‚   โ”œโ”€โ”€ styles/        # Global styles
โ”‚   โ””โ”€โ”€ types/         # TypeScript type definitions
โ”œโ”€โ”€ .env.example       # Environment variables template
โ”œโ”€โ”€ .gitignore         # Git ignore rules
โ”œโ”€โ”€ next.config.js     # Next.js configuration
โ”œโ”€โ”€ tailwind.config.js # Tailwind CSS configuration
โ””โ”€โ”€ package.json       # Project dependencies

๐ŸŽจ Design Assets

Logo Files

  • public/logo-512.png - 512x512 PNG logo
  • public/logo-1024.png - 1024x1024 high-res logo
  • public/logo-square.png - Rounded square logo
  • public/favicon.svg - SVG favicon

Brand Colors

  • Primary Yellow: #FCD34D โ†’ #F59E0B
  • Accent Green: #35D07F
  • White: #FFFFFF

๐Ÿค Contributing

We welcome contributions! Here's how you can help:

  1. Fork the repository
  2. Create a feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

Development Guidelines

  • Follow TypeScript best practices
  • Write clean, commented code
  • Test thoroughly before submitting PR
  • Update documentation as needed

๐Ÿ—บ Roadmap

โœ… Phase 1 - MVP (Completed)

  • Smart contract deployment
  • Web3 wallet integration
  • Token swap functionality
  • Gamification system
  • Responsive web interface

๐Ÿšง Phase 2 - Growth (Q1 2026)

  • Onboard 50 verified entrepreneurs
  • Implement repayment tracking
  • Add loan progress indicators
  • Launch marketing campaign

๐Ÿ”ฎ Phase 3 - Scale (Q2-Q4 2026)

  • Mobile app (iOS & Android)
  • NFT achievement badges
  • Multi-language support
  • DAO governance
  • Expand to 10+ countries

๐Ÿ“Š Impact Metrics

  • Target Users: 1.7 billion unbanked adults globally
  • Market Size: $380 billion micro-lending market
  • Repayment Rate: 96.5% industry average
  • Minimum Loan: $1 (accessible to everyone)
  • Transaction Fees: ~$0.01 on Celo

๐Ÿ” Security

  • Smart contracts follow best practices
  • No private keys stored on frontend
  • All transactions require user approval
  • Open-source and auditable code
  • Regular security updates

โš ๏ธ Disclaimer: This is experimental software. Use at your own risk. Never invest more than you can afford to lose.


๐Ÿ“„ License

This project is licensed under the MIT License - see the LICENSE file for details.


๐Ÿ™ Acknowledgments

  • Celo Foundation - For building an inclusive blockchain
  • Ubeswap - DEX integration for token swaps
  • Next.js Team - Amazing React framework
  • Open Source Community - For tools and inspiration

๐Ÿ“ž Contact & Links


๐Ÿ’ก Why Celo?

Celo is the perfect blockchain for financial inclusion:

  • โœ… Mobile-First - Designed for smartphone accessibility
  • โœ… Ultra-Low Fees - ~$0.01 per transaction
  • โœ… Carbon-Negative - Environmentally sustainable
  • โœ… Stablecoins - Built-in cUSD and cEUR
  • โœ… Fast - 5-second block times
  • โœ… Inclusive - Phone number-based accounts

Built with โค๏ธ on Celo

Empowering entrepreneurs, one dollar at a time

โญ Star us on GitHub | ๐Ÿš€ Try the Demo