# π³π¬ Naija Tax β Nigerian On-Chain Tax Explainer
The first Nigerian on-chain tax explainer. Paste an EVM wallet, get a
plain-English breakdown of your estimated tax liability under Nigeria's
progressive income bands β powered by Nansen's transaction labels.
Built for the **Nansen Points Season 3 Community Showcase**.
---
## Run Locally
```bash
pip install -r requirements.txt
python app.py
# β open
localhost
```
## Deploy to Render (get a public URL)
1. Push this folder to a GitHub repo
2. Go to
render.com β New β Web Service
3. Connect your GitHub repo
4. Render auto-detects render.yaml β just set the NANSEN_API_KEY env variable
5. Click Deploy β you get a live public URL in ~2 minutes
---
## How It Works
```
Browser β Flask /api/analyze β Nansen (tx labels + PnL)
β ExchangeRate-API (USD/NGN)
β Tax engine (classify β calc β respond)
```
### Tax Classification
- Taxable: Nansen labels matching DEX/swap keywords (uniswap, curve, 1inch etc.)
- Non-taxable: transfers, bridges, approvals, other
### Gain Calculation
- If Nansen PnL summary is available β uses real realized PnL (shows "β Real PnL")
- Otherwise β 15% of total taxable swap volume (conservative estimate)
### Tax Regimes (auto-selected by date range)
**PITA β up to Dec 31 2025**
| Band | Rate |
|------|------|
| First β¦300,000 | 7% |
| Next β¦300,000 | 11% |
| Next β¦500,000 | 15% |
| Next β¦500,000 | 19% |
| Next β¦1,600,000 | 21% |
| Above β¦3,200,000 | 24% |
**NTA 2025 β from Jan 1 2026**
(Signed into law 26 June 2025. Source: KPMG Nigeria)
| Band | Rate |
|------|------|
| β¦0 β β¦800,000 | 0% (exempt) |
| β¦800,001 β β¦3,000,000 | 15% |
| β¦3M β β¦12,000,000 | 18% |
| β¦12M β β¦25,000,000 | 21% |
| β¦25M β β¦50,000,000 | 23% |
| Above β¦50,000,000 | 25% |
---
## Project Structure
```
naija-tax-v2/
βββ app.py # Flask backend + tax engine
βββ requirements.txt # Python dependencies
βββ render.yaml # Render deployment config
βββ README.md
βββ templates/
βββ inde β¦