hackquest logo

chai project

Blockchain-powered coffee investment platform connecting farmers with capital and investors with transparent agricultural assets on Mantle.

Video

Công nghệ sử dụng

Web3
Ethers
Solidity

Sự miêu tả

Chai Platform

Project Overview

Name: Chai Platform - Sustainable Coffee Production Financing

Tagline: Democratizing coffee production through blockchain-powered fractional ownership and transparent revenue sharing

Category: DeFi / AgriTech / Impact Investing

Problem Statement

Small-scale coffee farmers in East Africa face critical challenges:

  • No access to capital - Traditional banks won't lend without collateral

  • Unfair pricing - Farmers receive only 10-20% of retail coffee prices

  • Limited market access - Cannot reach international investors

  • High lending costs - Interest rates of 20-40% from informal lenders

  • Zero transparency - Investors can't verify impact or fund usage

Solution

Chai Platform uses Mantle blockchain to create a transparent, efficient marketplace connecting coffee farmers with global investors through:

  • Grove Tokenization - Coffee trees become tradeable NFTs

  • DeFi Lending - Instant USDC loans using groves as collateral

  • Automated Revenue Distribution - Smart contracts ensure fair profit sharing

  • Real-time Monitoring - Satellite imagery and IoT sensors track grove health

  • Fractional Ownership - Investors can own portions of groves starting at $10

Technical Architecture

Blockchain Layer (Mantle)

  • Smart Contracts: Solidity contracts for grove tokenization, lending pools, and revenue distribution

  • Token Standards: ERC-20 and ERC-721 for fungible tokens and NFTs

  • Network: Mantle Sepolia Testnet

  • Wallet Integration: MetaMask, WalletConnect

Backend

  • Runtime: Node.js with TypeScript

  • Framework: Express.js for API endpoints

  • Database: SQLite with Drizzle ORM

  • Build Tool: tsup for ESM compilation

Frontend

  • Framework: Vanilla JavaScript (ES6 modules)

  • Build Tool: Vite 6.4.0

  • Styling: Custom CSS with glassmorphism design

Key Technologies

  • ethers.js - Mantle blockchain and smart contract interaction

  • better-sqlite3 - Local database

  • drizzle-orm - Type-safe database queries

Core Features

For Farmers

  • Tokenize coffee groves as NFTs

  • Access instant USDC loans (8-12% APR)

  • Receive automated revenue distributions

  • Track grove performance via dashboard

  • Report harvests and receive payments

For Investors

  • Browse and invest in verified coffee groves

  • Fractional ownership starting at $10

  • Real-time ROI tracking

  • Transparent on-chain transactions

  • Automated earnings distribution

Platform Features

  • Satellite imagery grove tracking (42+ locations)

  • Smart contract-based lending pools

  • Automated harvest reporting

  • Secondary marketplace for grove tokens

  • Real-time coffee price oracle

Smart Contracts

CoffeeTreeIssuer.sol

  • Mints grove NFTs with metadata

  • Manages grove ownership transfers

  • Tracks tokenization status

CoffeeTreeManager.sol

  • Handles grove registration

  • Manages farmer verification

  • Controls token minting permissions

CoffeeLendingPool.sol

  • Provides USDC loans against grove collateral

  • Calculates loan-to-value ratios

  • Manages repayments and liquidations

Impact Metrics

Target Impact:

  • 500+ coffee farmers onboarded in Year 1

  • $2M+ in farmer financing

  • 10,000+ fractional investors

  • 30% increase in farmer income

  • 100% transaction transparency

Current Status:

  • 42 coffee groves mapped across Kenya, Ethiopia & Uganda

  • Smart contracts deployed and tested

Business Model

Revenue Streams:

  • Platform Fee: 2% on all transactions

  • Lending Interest: 1-2% spread on loans

  • Secondary Market Fee: 1% on grove token trades

  • Premium Features: Advanced analytics for investors

Sustainability:

  • Self-sustaining through transaction fees

  • No external funding required after initial development

  • Scales with transaction volume

Competitive Advantages

  • Mantle's Speed & Cost - Fast finality, low transaction fees

  • Full Transparency - Every transaction on public ledger

  • Fractional Access - Lower barrier to entry than competitors

  • Real-time Monitoring - Satellite + IoT integration

  • Automated Compliance - Smart contracts enforce rules

Future Roadmap

Q1 2026:

  • Mainnet deployment

  • Pilot with 50 farmers in Kenya

  • Mobile app launch

Q3 2026:

  • Expand to 500 farmers

  • Add crop insurance module

  • Integrate carbon credit tracking

Q4 2026:

  • Launch in 3 additional countries

  • Add commodity futures trading

  • Institutional investor onboarding

Team & Development

Development Stack:

  • 40+ TypeScript/JavaScript files

  • 15+ Solidity smart contracts

  • 10,000+ lines of code

  • Comprehensive test suite

  • Full CI/CD pipeline

Trưởng nhóm
HHenry Mwangi
Liên kết dự án
Ngành
DeFi