ZkVanguard
AI-managed crypto vault that lets anyone ride Polymarket alpha. 7-agent autonomous risk engine on Sui mainnet, prediction-market signals + ZK-attested decisions.
Install / Use
npx skills add ZkVanguard/ZkVanguardInstalls into whichever agent you are using.
README
ZkWard
An AI-managed USDC vault on Sui — deposit once, autonomous agents allocate & hedge for you.
Prediction markets print billions per month in alpha-bearing signal. Riding it consistently needs bots, capital, and 24/7 attention — table stakes for hedge funds, impossible for retail. ZkWard collapses that workflow into a one-click USDC vault: 7 AI agents, BlueFin V2 perp hedging, 3-way reconciliation, 8-gate autonomy defense, ZK-STARK-attested at scale. Live on Sui mainnet.
Deposit · Live PnL · Risk overview · Suiscan proof
</div>Contents — What your USDC does · Verify in 60s · Safety · Status · Live metrics · Roadmap · Built by · How it works · Revenue · FAQ · Quickstart · Docs
What your USDC does
- AI allocates it across BTC / ETH / SUI. Seven agents fuse Polymarket 5-min binaries, Delphi/Polymarket category markets, Manifold, BlueFin funding rates, and Crypto.com momentum into one directional signal per asset. Rebalances every 30 minutes only when conviction ≥ 65%.
- Hedges the downside on BlueFin V2 perps. Spot leg routed via BlueFin 7k aggregator (Cetus · DeepBook · Turbos · FlowX · Aftermath · BlueFin), directional perp overlay on BlueFin. When AI turns bearish, the perp shorts. When perps are physically unopenable at small NAV, spot cap → 0 for that asset.
- Attests decisions on-chain with post-quantum ZK-STARKs. Python STARK prover (NIST P-521, no trusted setup) is live and unit-tested; configured to attest any trade > $1M. Activation waits on the audit-gated cap lift. On-chain hedge state is reconciled against BlueFin and Postgres every 15 min.
Fees: 50 bps annual mgmt + 10% performance. Both charged by the Move contract itself and routed to an MSafe multisig — public, auditable, no operator custody.
Verify in 60 seconds
# No clone required — hits live production endpoints
curl -s https://www.zkward.com/api/health/production | jq
curl -s https://www.zkward.com/api/predictions/per-asset | jq
# With clone — canonical "is the pool in profit?" script
bun run scripts/analyze-pool-pnl.ts
bun run scripts/check-hedge-signal-alignment.ts
Or inspect the pool object directly on Suiscan:
- Package:
0x107292a69eea2f6eaf4a4e4727ee25d747b04c1985441b138933f0ef33f7b726 - USDC pool state:
0xe814e0948e29d9c10b73a0e6fb23c9997ccc373bed223657ab65ff544742fb3a - Deployed 2026-06-12 · deploy record
Safety — the 8-gate autonomy defense system
Shipped July 2026 after a real drawdown revealed passive-only defenses. Each gate defends a specific failure mode; the full stack is verified by an integration test that replays the historical scenario and asserts max NAV loss ≤ 15%.
| Gate | Defends against | |---|---| | PortfolioDriver | Existing spot never unwound when profit-lock fires — corrective actions actively reshape the balance sheet | | Fill verifier | BlueFin "silent-reject" — orders returning orderHash but never landing on the exchange | | Hedgeability spot-cap | At small NAV, perp minQty makes hedging impossible — spot cap for that asset forced to 0 | | Symmetric sell trigger | Rebalance was one-sided (bought on 65% conviction, never sold on 65% opposing) — now symmetric | | Stale-hedge detector | Positions > 7d old with ≥ 2 signal flips force-close on contradiction | | Signal-flip drift-close | On direction flip, both perp and spot legs unwind — not just perps | | AI regret weighting | Position size shrinks after losing streaks, recovers on wins — prevents AI-euphoria buying tops | | Alert response loop | 3 KILL alerts/hr auto-shrinks spot; 24h profit-lock auto-unwinds; phantom hedge rate > 1% halts trader |
Verify: bun jest test/integration/pool-drawdown-defense.test.ts (10/10 green).
Always-on structural guards: 2-of-3 agent consensus on trades > $100K · 10% peak-NAV drawdown halt · circuit breaker after 3 failures · 3-way reconciliation (Move ↔ BlueFin ↔ Postgres) · OFAC geo-block (KP/IR/SY/CU/RU/BY) · strict NAV-oracle mode (deposits/withdrawals revert when cron oracle > 2h stale).
Status
Live on Sui mainnet (v0.2.0, deployed 2026-06-12). Pre-external-audit, TVL deliberately capped at $10K by contract. Cap lifts after external audit closes — the constraint is intentional operational proof, not a TVL claim.
15 internal audit phases completed pre-mainnet. Engine has been running autonomously since June 2026 with continuous on-chain NAV snapshots; every production incident to date has been caught, remediated, and documented in the deploy record and docs/DEPLOY_RUNBOOK.md.
Live metrics
Snapshot pulled from the Aiven Postgres replica against live Sui mainnet state. Rerun bun run scripts/analyze-pool-pnl.ts any time.
| Metric | Value |
|---|---|
| Days running since first NAV snapshot | 46+ (from 2026-05-29; live-computed) |
| NAV snapshots recorded | 2,200+ (≈48/day, matches 30-min cron cadence) |
| Hedges executed lifetime | 214 across BTC / ETH / SUI / SOL PERPs |
| Active crons with heartbeats | 13 — see /api/health/production |
| Active members | 3 (limited by $10K TVL cap) |
| Lifetime USDC deposits | ~$38 (rerun scripts/analyze-pool-pnl.ts for live number) |
| External auditors engaged | Pending (SUI Foundation grant Tranche 1 deliverable) |
Small absolute numbers by design — the $10K cap is enforced by the contract. Operating metrics prove the engine works; audit + cap-lift unlock scale.
Roadmap
| Quarter | Milestone |
|---|---|
| Q3 2026 | External audit close · TVL cap ratchet $10K → $100K · Founding-100 points program live |
| Q4 2026 | TVL cap ratchet to $1M · Institutional tier live (custody attestations via rwa_custody_attestor.move) · first EVM chain expansion |
| Q1 2027 | TVL cap ratchet to $10M · Enterprise white-label API · TGE (utility token, governance + fee-share) |
Cap ratchets are contract-gated via admin_set_tvl_cap and gated on each milestone's success criteria (audit pass, incident-free operating window, TVL sustained). Not aspirational — each unlock is a specific contract call after a specific evidence bundle.
Multi-chain posture. SUI is the lead chain by design and gets new features first. Cronos, Oasis, Hedera, and Sepolia contracts are compiled, tested, and configured in hardhat.config.cjs; deployment triggers on institutional demand from that chain, not a race.
Built by
Ashish Regmi (@HarveReg) — CS, Cryptography + AI majors. Formerly senior engineer at multiple Fortune 500 companies. Multi-chain hackathon winner across EVM, Aptos, and ICP. Upstream contributor to the Tether WDK EVM wallet (accepted PR). Solo builder — open to core contributors and institutional partners.
Contact: ashishregmi2017@gmail.com · Telegram @anstemple
How it works
flowchart LR
PM["Polymarket + Manifold + Delphi<br/>(prediction markets)"] --> SF
BF["BlueFin funding rates"] --> SF
CDC["Crypto.com 24h momentum"] --> SF
SF["Signal fusion +<br/>synthetic-STRONG layer"] --> AG
AG["7 AI agents<br/>2-of-3 consensus<br/>SafeExecutionGuard"] --> PD
AG --> ZK["ZK-STARK attestation<br/>(trades > $1M)"]
PD["PortfolioDriver<br/>+ 8 autonomy gates"] --> VA["USDC vault<br/>BTC · ETH · SUI"]
PD --> PERP["BlueFin V2 perps<br/>+ 7k aggregator (6 DEXes)"]
Revenue model
Live today: 50 bps annual mgmt + 10% performance fee on vault deposits — charged automatically by community_pool_usdc.move, routed to FeeManagerCap on MSafe.
Post-audit (all mapped to shipped code in lib/config/pricing.ts):
- Per-use fees: private hedges ($5 / 25 bps), private portfolios ($100 + 50 bps), custody attestation ($2.5K enrollment + $0.50/submission)
- Subscription tiers: Retail $99 → Pro $499 → Institutional $2,499 → Enterprise
- Per-trade fees on the autonomous perp trader
Token: utility-first, designed not launched. Governance over fee parameters, staking gates discounted vault fees. TGE targeted Month 9–12 post-audit.
Quickstart (contributors)
Node 18+, Bun, Python 3.11+, PostgreSQL.
git clone https://github.com/ZkVanguard/ZkVanguard.git && cd ZkVanguard
bun install --legacy-peer-deps
# Terminal 1 — ZK-STARK prover
python -m pip install -r zkp/requirements.txt
python zkp/api/server.py
# Terminal 2 — Next.js
bun run dev
# Pre-commit
bun run typecheck && bun run lint && bun jest
Full architecture, env conventions, BlueFin invariants, a
Related Skills
node-connect
385.5kDiagnose OpenClaw Android, iOS, or macOS node pairing, QR/setup code, route, auth, and connection failures.
blender-python-addon
40.5kBlender Python add-on rules for operators, panels, properties, registration, testing, and API-safe scripting
flutter-development-guidelines-cursorrules-prompt-file
40.5kCursor rules for Flutter development with MVVM architecture, Riverpod state management, Material widgets, and Dart style guidelines.
commit-push-pr
140.6kCommit, push, and open a PR
