Skip to content

Latest commit

History

1,013 Commits

Folders and files

NameName
Last commit message
Last commit date

Repository files navigation

DiversiFi

Risk-aware, values-driven treasury management.

DiversiFi detects a visitor’s local currency depreciation against USD, EUR, and gold, then helps protect savings through stablecoin allocation, gold-backed tokens, and yield vaults. Every Guardian decision is recorded on-chain, with AI reasoning anchored to 0G. The philosophy/values system is the retention moat.

Live app:https://diversifiapp.vercel.app · Full pitch: docs/product.md


Quick start

pnpm install
cp .env.example .env.local # minimum: NEXT_PUBLIC_PRIVY_APP_ID, PRIVY_APP_SECRET
pnpm dev # http://localhost:3042

Requires Node ≥22.11 and pnpm. Setup details, env tables, and test drive: docs/setup.md. Docs index: docs/README.md. How to contribute: CONTRIBUTING.md.


Repo map

AreaWhere
Next.js appapps/web/ (components/, hooks/, pages/, …)
Domain logicpackages/shared/
Agent APIsapps/web/pages/api/agent/
Contractscontracts/ (+ contracts/test/), scripts/Deploy*.s.sol (Foundry libs in root lib/)
Docs indexdocs/README.md
Agent / coding conventionsAGENTS.md
Ops (Alibaba FC, etc.)ops/
Examplesexamples/

Foundry tests live in contracts/test/. x402 smoke scripts live in scripts/smoke/.


What makes it different

  1. Currency-risk awareness — show depreciation in the visitor’s own money (GHS, KES, USD vs gold, …). Risk is universal; the response is values-driven. Ships today: risk detection, philosophy-aware allocation, on-chain protection. Not yet: direct fiat on-ramp; full SME FX drag product (concierge CLI: npx tsx scripts/fx-drag-report.ts).
  2. Philosophy / values system — identity-based retention via cultural archetypes, not generic DeFi yield shopping.

The Guardian routes capital across Celo/Mento (local stables), Arbitrum (liquidity + RWA yield), and HashKey Chain (APAC savings), with on-chain proof of each decision.


Further reading

TopicDoc
Architecture, AI providers, settlementdocs/architecture.md
APIs, env vars, external agentsdocs/integrations.md
Roadmap & grant tracksdocs/roadmap.md
APAC rail (HashKey)docs/rails.md
Caribbean raildocs/rails.md
SME FX north stardocs/strategy.md
Guardian enforcementdocs/guardian.md
Mainnet deployment proofsdocs/architecture.md · ledgers at 0x3BCf…369C on Celo, Arbitrum, and 0G

Key features

  • Intelligence gateway — x402-gated Mento depeg + inflation + yield intelligence for any agent
  • Chain-aware ledger — decisions settle where the money moves; evidence CIDs on 0G
  • Guardian pulse / proactive pilot — AI insights and one-tap rebalance intents
  • Verifiable AI tab — in-app evidence CIDs, model IDs, chain receipts
  • Social-login onboarding — Privy-first wallet abstraction

About

Resources

Contributing

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages