anti-gambling-trader-tw
Free open-source investment anti-fraud, trading statistics and automated trading program tools: default PaperBroker, provides 14 broker/exchange options; trade record analysis runs locally.
AI translation
Protect your savings from inflation and currency risk with verifiable, on-chain proof
FinanceTypeScript · JavaScriptGitHub @thisyearnofearOnlineOwner 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.
You set the rules. The Guardian operates within them. Every decision is explainable and verifiable.
DiversiFi tells you what your currency is doing to your savings, proposes a
protected allocation inside the limits you set, and records the decision where
you can check it. The AI is the interface. The bounds are the trust model.
Is my money losing purchasing power? · What can I do about it? · Why can I
trust the thing doing it? — everything else in this repo exists to answer
those three.Read the full README ↗You set the rules. The Guardian operates within them. Every decision is explainable and verifiable.
DiversiFi tells you what your currency is doing to your savings, proposes a protected allocation inside the limits you set, and records the decision where you can check it. The AI is the interface. The bounds are the trust model.
Is my money losing purchasing power? · What can I do about it? · Why can I trust the thing doing it? — everything else in this repo exists to answer those three.
Live app: https://diversifi.persidian.com · Positioning: docs/product.md · Trust model: docs/guardian.md
data → deterministic risk calculation → constrained strategy → AI explanation
→ your approval → on-chain execution
The model never authorizes a move. Risk arithmetic (services/fx-drag/),
allocation bands and asset eligibility (config/jurisdictions.ts,
services/strategy/) and spending caps (VaultService.validateSwap,
guardian-loop.ts) are code. The Guardian proposes inside those results; you
approve in your own wallet; the decision is recorded on the chain where the
money moves, with its reasoning anchored to 0G Storage as evidence.
Savings never leave your wallet — no deposit, no custodial account, no Safe.
Autonomy exists only as an ERC-7715 grant your own smart account enforces, and
chains that can't enforce it fall back to one-tap proposals and journal the
decline. What is enforced where — and what is still app-layer only — is stated
plainly in docs/guardian.md.
Both directions of the same trade, one engine:
A chosen philosophy (Africapitalism, Buen Vivir, Islamic Finance, Confucian, Gotong Royong) shapes the allocation. It is the retention layer, not the headline.
Four instruments, one job each: Shield (protection plan + allocation ring),
Home (your currency's moment + holdings), Exchange (move savings),
Guardian (daily limit, latest decision, journal, proof). Simple mode shows
the first three; Full adds Guardian. Design contract:
docs/design-language.md.
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. Full env table, test drive, deploy and capture
material: docs/reference.md. Docs index:
docs/README.md. Contributing: CONTRIBUTING.md.
| Area | Where |
|---|---|
| Next.js app | apps/web/ (components/, hooks/, pages/, …) |
| Domain logic | packages/shared/ |
| 0G evidence layer | packages/shared-0g/ |
| Agent APIs | apps/web/pages/api/agent/ |
| Contracts | contracts/ (+ contracts/test/), scripts/Deploy*.s.sol (Foundry libs in root lib/) |
| Ops | ops/ · x402 smoke scripts scripts/smoke/ |
| Doc | Answer |
|---|---|
docs/product.md | What DiversiFi is, for whom, and what's live vs. intended |
docs/guardian.md | The trust model — what bounds execution, where it's enforced, agent identity, the claims audit |
docs/architecture.md | System, chains and settlement rails, the 0G evidence stack |
docs/plan.md | What we're building now, in priority order |
docs/reference.md | Setup, env vars, endpoints, deploy, demo capture |
docs/internal/demo-night-runbook.md | The timed 3-minute walletless demo, with preflight and fallbacks |
docs/design-language.md | Surface contract for any user-facing work |
docs/history/roadmap-log.md | Dated record of what shipped |
docs/archive/ | Closed grant tracks and past submissions — reference, not roadmap |
Prior-work disclosure. DiversiFi is an existing product. All Stellar
support was built during HackMeridian — the Stellar network adapter, wallet
integration, exchange flow, receipt path, and this section. The underlying
risk/philosophy/ledger machinery predates the event; the hackathon scope is
Stellar-specific work only. Executed plan:
docs/archive/tracks/hackmeridian-2026-10-execution-plan.md.
What the Stellar integration does. Stellar testnet is a first-class
network mode: connect a Stellar wallet (Freighter, LOBSTR, xBull, Albedo, Hana or Rabet via the StellarWalletsKit picker) → the instrument surfaces real G-address
balances → a supported move is prepared as a strict-send path payment
(XLM → testnet USDC, min-destination computed from a live route) → the user
reviews exact terms and signs in their own wallet → the confirmed transaction
renders as a ledger-verified receipt with an explorer link. Stellar never
masquerades as an EVM chain — a dedicated adapter (apps/web/lib/stellar/)
isolates Horizon reads, validates prepared transactions (fee-bump/signed/legacy
XDR rejected), and recovers pending submissions durably.
| Piece | Where |
|---|---|
| Stellar adapter (Horizon isolation, strict validation, pending recovery) | apps/web/lib/stellar/ |
| Wallet (StellarWalletsKit picker — Freighter/LOBSTR/xBull/Albedo/Hana/Rabet + WalletConnect mobile; direct-Freighter fallback) | apps/web/lib/stellar/wallet.ts |
| Exchange flow + receipt | apps/web/components/swap/StellarExchange.tsx, PairStage.tsx |
| Home/Shield honest Stellar surface | apps/web/components/stellar/StellarModePanel.tsx |
Agent intent (open_stellar — navigation only, never signing) | use-agent-chat.ts, guardian-interaction.ts |
| Stellar voice-of-the-corridor verbs (speech previews/drafts — never commits) | apps/web/lib/voice-verbs.ts |
On-chain evidence (all Stellar testnet):
| Demonstration | Artifact |
|---|---|
| XLM → USDC strict-send path payment, wallet-signed | Exchange flow (pnpm check-stellar-routes re-queries the live route) |
| Soroban RecommendationLedger contract | contracts-stellar/ → CDQUT55ICBFEC6JGMZDJEHA47ECWQOAYHLNFHO2ULFLDQVIDNMKL4WT6, deploy tx b3115c87…, records seq 1 a0a2b75b… / seq 2 f8e41fa3… |
| Smart account + on-chain spending policy (agent key can only move funds inside the cap) | account CBH5NT2HEIQGBMTABOPRPRUJKDNHU3HFIY6STSN7QZSCX7WXSLCOAVC2, policy install abc2fa2e…, within-limit spend accepted a8ab4ab0…, over-limit rejected on-chain (policy error #3221) — scripts/stellar-smart-account-policy.mts reproduces both legs |
| Claimable-balance corridor (bounded proposal claimable only by the counterparty) | create ffde38e3…, claim 0b8927b8… — scripts/stellar-claimable-balance.ts |
| SEP-24 anchor discovery (read-only: which assets an anchor advertises; not a redemption claim) |
Demo: https://diversifi.persidian.com (wallet picker → Stellar testnet → Exchange). Video walkthrough covers one success and one refusal (a spoken commit being declined — voice never signs).
RecommendationLedger (Celo, Arbitrum, 0G) and
AgenticID #1, the x402 intelligence gateway.docs/plan.md.docs/plan.md §11). This is the build-phase target described in the hackathon submission; the demo and idea-phase deliverable is the plan above.scripts/sep24-anchor-discovery.ts — testanchor.stellar.org advertises USDC deposit + withdraw |