Oracle3
Open-source trading engine and MCP server for prediction markets. Fee-aware no-arbitrage trading across related contracts, live on Kalshi, Polymarket and Solana or on paper.
KAI is a DeFi Banking Infrastructure built on Avalanche — a Financial Operating System for SMEs, Community-Based Organisations, and everyday Africans.
FinanceTypeScript · HTMLGitHub @DrekahshiOnlineOwner unconfirmed
Have you tried it? One tap is enough. No sign-in needed.
No updates detected yet. GitHub releases will appear here.
Owners of public repositories under a personal GitHub account can sign in to verify ownership and manage the introduction themselves. No administrator approval is needed.
Sign in, generate a verification file, and commit it to this repository’s default branch within 30 minutes. Files on other branches or forks do not count. Then check the file below to manage the project without administrator approval. Keep the file to retain your access.
If needed, you will go to sign-in. After signing in, return here and press your chosen verification button again.
Run /nomorevibe verify in your project folder to verify ownership and manage the introduction yourself.
Verify in one minuteAsk about other verification options
Loading the full README. The saved excerpt is shown below.
🌿 KAI Nuvari — Avalanche DeFi Ecosystem
Real on-chain AMM, yield vaults, agent rails & an AI copilot — on Avalanche Fuji C-Chain.
KAI Nuvari is a full-stack open-finance platform that combines three layers into one product:
It's built to feel like a bank + exchange + AI analyst in one wallet.Read the full README ↗Real on-chain AMM, yield vaults, agent rails & an AI copilot — on Avalanche Fuji C-Chain.
Running now → https://avax-frontend-seven.vercel.app/
KAI Nuvari is a full-stack open-finance platform that combines three layers into one product:
| Layer | What it does | Where it lives |
|---|---|---|
| 🖥️ Next.js app | The whole consumer dApp — vaults, pools, swap, payments, voice assistant | avax-frontend/ |
| 🕸️ On-chain AMM & agent rails | Real ERC-20 swaps, LP pools, yield vaults, escrow & identity contracts | contracts/ + ignition/ |
| 🤖 AI Agent API | 20+ agent endpoints (RAG chat, portfolio, DIDs, x402 payments, onboarding) | server.py (FastAPI + Needle) |
It's built to feel like a bank + exchange + AI analyst in one wallet.
avax-frontend/)KaiAMM / KaiPool on Fuji (wagmi + viem)GET /health — engine + RAG readiness probePOST /chat, /stream — RAG Q&A over the KAI docs/web corpus/needle/complete · /needle/stream · /needle/intent — Needle (on-device) LLM inferencetx-analyst, portfolio, audit, dao-draft, pricing, policy, codegen, summarize, pools (IL risk), yields/agents/identity/*)/agents/x402/*)| Contract | Purpose |
|---|---|
NuvariToken.sol | ERC-20 governance / ecosystem token |
KaiVault.sol | Yield vault (deposit / withdraw, share price, APY) |
KaiPool.sol | x*y=k constant-product LP pool |
KaiAMM.sol | AMM router + liquidity manager + pool factory registry |
KaiEscrow.sol | On-chain escrow for agent-driven deals |
KaiAgentRegistry.sol | Registry of on-chain agent identities |
KAIAirdropVault.sol | Token airdrop vesting vault |
ConservationNFT.sol | Nature-backed NFT (RWA) |
Each contract ships with forge-std Solidity unit tests (*.t.sol).
| Language | Where |
|---|---|
| TypeScript | Next.js app, wagmi/viem client code, Hardhat config & scripts |
| JavaScript (CJS/ESM) | Hardhat deploy scripts (deploy-all-fuji.mjs), ecosystem token deploys |
| Solidity | Smart contracts + Foundry-style Solidity tests |
| Python | FastAPI backend, Needle agent, vector/RAG indexing |
| SQL | Prisma schema → Neon Postgres (kai_users, kai_wallets, …) |
| CSS / Tailwind v4 | Design system (globals.css), fluid glassmorphism UI |
| JSON | Deploy artifacts, ABI definitions, token registries |
| Markdown | Docs and onboarding content |
| Layer | Stack |
|---|---|
| Framework | Next.js 16 · React 19 · TypeScript |
| Blockchain | viem 2 · wagmi 3 · @avalanche-sdk/chainkit · Hardhat 3 |
| Auth | Privy (Client + Server SDK) |
| Data | Prisma · Neon Postgres |
| Payments | Paystack |
| AI | cactus-needle (on-device LLM) · Groq (RAG) · Gemini (voice orchestrator) |
| Styling | Tailwind CSS 4 · framer-motion · lucide-react |
| Extras | zustand state · html5-qrcode QR pay · tanstack/react-query |
.
├── avax-frontend/ # Next.js 16 dApp (deployed on Vercel)
│ ├── src/app/ # route-based pages (vaults, pools, pay, voice, …)
│ ├── src/components/ # UI + pools/vaults/operations widgets
│ └── prisma/ # database schema
├── contracts/ # Solidity contracts + *.t.sol tests
├── ignition/ # Hardhat Ignition deployment modules
├── scripts/ # Deploy / liquidity-seed / balance CLI scripts
├── server.py # FastAPI AI Agent API (Needle + 20+ endpoints)
├── vector.py # ChromaDB embedding index build
├── main.py # Interactive terminal RAG agent
└── hardhat.config.ts # Hardhat 3 config (Fuji network)
Copy the example env files:
cp .env.example .env # backend + hardhat keys
cp avax-frontend/.env.example avax-frontend/.env.local
Then fill in GROQ_API_KEY, GEMINI_API_KEY, DATABASE_URL, PAYSTACK_SECRET_KEY, and the PRIVY_* keys. Never commit real keys.
python -m venv .venv
.venv/bin/python -m pip install -r requirements.txt
.venv/bin/python -m uvicorn server:app --host 127.0.0.1 --port 8000 --reload
Verify: curl http://127.0.0.1:8000/health
npm --prefix avax-frontend install
npm --prefix avax-frontend run dev
Open http://localhost:3000 — the frontend talks to the agent API at :8000.
npm run build
npm run deploy:fuji # core ecosystem tokens/contracts
npx hardhat run scripts/deploy-defi.ts --network fuji
npx hardhat run scripts/seed-liquidity.mjs --network fuji
Deployed addresses land in defi-addresses.json / deployedAddresses.json, which the UI reads automatically.
:8000)| Method | Endpoint | Description |
|---|---|---|
| GET | /health | engine + RAG readiness |
| POST | /chat /stream | RAG Q&A streaming |
| GET | /agents/portfolio/{wallet} | on-chain portfolio snapshot |
| GET | /agents/pools/{pool_id} | pool position analytics |
| POST | /agents/pools/il | impermanent-loss calculator |
| POST | /agents/tx-analyst | transaction explainer |
| GET | /agents/yields | vault yield rankings |
| GET | /agents/identity/did/{did} | W3C DID resolution |
| GET | /agents/rails/log | agentic audit log |
| … | 20+ total | see server.py |
The frontend is live at:
https://avax-frontend-seven.vercel.app/
Deployment is automatic on push to main (Git + Vercel integration, vercel.json → framework: "nextjs").
Note: the AI Agent API runs locally via
server.py. For a fully serverless setup, deployserver.pyto Railway / Render / Cloud Run and setNEXT_PUBLIC_AGENT_URLin the frontend.
npm test # Hardhat (compiles + runs Solidity tests)
npx tsc --noEmit # frontend typecheck
npm --prefix avax-frontend run lint
ISC