SafiGuard is a parametric micro-insurance platform built on Stellar/Soroban that provides automated crop and weather insurance for underserved markets across Africa. Smart contracts trigger instant payouts when oracle-verified weather conditions breach policy thresholds — no claims process, no paperwork, no delays.
# 🛡️ SafiGuard — Parametric Micro-Insurance on Stellar
**Automated crop & weather insurance for underserved markets, powered by Soroban smart contracts and oracle data.**
> *"Safi" means clean/pure in Swahili — SafiGuard delivers clean, transparent, trustless insurance to the people who need it most.*
---
## 🌍 The Problem
**1.7 billion people** in Africa and Latin America have **zero insurance coverage**. Traditional insurance fails them because:
- Claims processing takes weeks or months
- Paperwork and bureaucracy exclude rural populations
- Premiums are too high for micro-coverage
- Fraud and denial rates destroy trust
Meanwhile, a single bad rainy season can push an entire farming community into poverty.
## 💡 The Solution
SafiGuard is a **parametric micro-insurance platform** where:
1. **Farmers purchase weather insurance policies** by paying small premiums in USDC/XLM
2. **Oracle feeds deliver real-time weather data** (rainfall, temperature, drought indices)
3. **Smart contracts automatically trigger payouts** when weather conditions breach policy thresholds
4. **No claims process** — if rainfall drops below 40mm in your region, you get paid. Automatically.
### How It Works
```
Farmer buys policy ──► Premium enters Risk Pool ──► Oracle reports weather data
│
▼
Threshold breached?
│ │
YES NO
│ │
▼ ▼
Auto-payout Policy expires
to farmer safely
```
---
## 🏗️ Tech Stack
| Layer | Technology |
| ------------------ | --------------------------------------------- |
| Frontend | React 18, TypeScript, TailwindCSS |
| State Management | Zustand + React Query |
| Smart Contracts | Soroban SDK (Rust) |
| Backend API | Node.js, Express, TypeScript |
| Database | PostgreSQL + Redis (caching) |
| Oracle Layer | Custom oracle br …