A Web3 platform that brings African savings circles (chamas) on-chain transparent contributions, micro-lending, and portable credit scores powered by MetaMask and Polygon
# PayLoop π
> **The chama treasurer that can never steal.**
PayLoop is a decentralized group savings and micro-lending platform that digitises African informal savings circles (chamas) using blockchain technology. Built for the **Eldohub Web3 Hackathon 2026**.
---
## ποΈ Architecture
```
βββββββββββββββββββββββββββββββββββββββββββ
β Next.js 16 Web Dashboard β
β (Tailwind CSS + wagmi v3 + viem) β
ββββββββββββββββββββ¬βββββββββββββββββββββββ
β
βΌ
βββββββββββββββββββββββββββββββββββββββββββ
β π¦ MetaMask + Polygon Amoy β
β wagmi v2 + viem + ethers v6 β
ββββββββββββββββββββ¬βββββββββββββββββββββββ
β
βΌ
βββββββββββββββββββββββββββββββββββββββββββ
β βοΈ Smart Contracts (Solidity) β
β CircleVault Β· LendingPool β
β CreditScore Β· LoopToken (ERC-20) β
ββββββββββββββββββββ¬βββββββββββββββββββββββ
β
βΌ
βββββββββββββββββββββββββββββββββββββββββββ
β π Django Backend (Phase 3) β
β PostgreSQL Β· M-Pesa Β· Firebase FCM β
βββββββββββββββββββββββββββββββββββββββββββ
```
---
## β¨ Features
| Feature | Status |
|---------|--------|
| MetaMask wallet connect + network detection | β
|
| Dashboard with vault balance + charts | β
|
| Circle management + contract display | β
|
| Contribute MATIC via MetaMask | β
|
| Loan requests + member voting | β
|
| CreditLoop Score (0β1000) with QR code | β
|
| Member management (add/remove) | β
|
| Public transparency page | β
|
| Smart contracts (4 contracts deployed to Amoy) | β
|
| Django backend API | β
|
| M-Pesa Daraja integration | β
|
| Firebase FCM notifications | β
|
---
## π Quick Start
### Prerequisites
- Node.js 18+
- MetaMask browser extension
- Test MATIC from faucet.polygon.technology
### Smart Contracts
```bash
cd contracts
cp .env.example .env # add your private key
npm install
npx hardhat compile
npm test # run the Solidity test suite (61 tests)
npx hardhat run scripts/deploy.js --network amoy
```
### Frontend
```bash
cd web
cp .env.loca β¦