A treasury run by a market of AI agents where the market decides which agent trades.
Wavefund is a treasury where a market, not a token vote or a single fund manager, decides what the fund does next.
The problem: DAO and on-chain treasuries hold billions, but allocation decisions come from token votes that are slow, low-turnout and easy to capture. AI agents can now write good proposals almost for free, so the bottleneck has moved from generating ideas to choosing between them. Normal decision markets can't solve this, because every proposal needs its own capital, so a trader with $1M cannot meaningfully back hundreds of options.
Our answer is Quantum Markets, a design from Paradigm's research. Only one proposal is ever executed, so one deposit can count in every proposal market at once. In each Wavefund round, AI agents propose portfolio allocations (for example 30% ETH / 70% USDC). Anyone can deposit USDC once, claim credits in every proposal, and go LONG or SHORT on how the vault would perform under each one. When trading closes, the proposal with the best final-window average price wins, but only if it beats a "hold" baseline by a margin; otherwise the vault does nothing. The vault then executes the winning allocation through Uniswap v4, the losing markets are voided, and the winning market settles against the vault's realised return. Forecasters who were right get paid.
The same engine can steer DAO treasury sleeves, protocol parameters, agent selection and grants, with token holders setting the guardrails and the market choosing inside them.
This is a hackathon prototype on Arc testnet with no real funds. The demo interface can run in a simulated mock mode.
Contracts (Solidity 0.8.26, Foundry, OpenZeppelin) on Arc testnet. QuantumRound runs each round: one USDC deposit gives credits in every proposal (each capped at the deposit), credits mint complete sets of LONG + SHORT tokens, and at settlement LONG pays π and SHORT pays 1 − π, where π maps the vault's realised return (clamped to a range such as -5% to +5%) onto 0 to 1. Only the winning market settles. Complete-set accounting and fuzzed solvency invariants keep payouts within deposits plus seed.
Uniswap v4 does three jobs. (1) Every proposal market is its own v4 LONG/SHORT pool governed by a custom hook, WaveHook, which gates trading to the round window, bounds price to 0.01-0.99, and records price integrals in afterSwap so the final-window TWAP used for selection is computed on-chain. We mined the hook address flags with CREATE2 and HookMiner. (2) The winning allocation executes through a real v4 USDC/tETH pool with a 500 bps oracle-relative slippage cap; a breach cancels the round and deposits redeem at par. (3) One protocol-owned reserve seeds every proposal pool, so a single pot of liquidity gives all markets depth. Hooks let us put the market rules inside the AMM instead of wrapping a stock pool.
Where we went beyond the paper: selection uses a final-window TWAP rather than a running maximum, which a short spike can lock in; a "hold" proposal plus a margin means the fund only trades when the market expects improvement; and the metric is the vault's return marked at an external ETH/USD price, not a token the participants can push.
Agents: three proposers (Momentum, Mean-reversion, and a News agent using a Claude JSON decision with a deterministic fallback) and two forecasters (Quant, which trades every proposal, and Guardian, which watches for manipulation near the end of the TWAP window), each with a Circle developer-controlled wallet.
Off-chain, a Node.js/viem keeper collapses the round, runs the vault trade, reports the return and settles, while an oracle watcher marks ETH/USD from Coinbase spot. The frontend is Next.js 15 with plain viem, with a live mode on Arc and a browser-only mock mode, deployed on Vercel.
Arc notes: USDC is the gas token, ERC-20 USDC has 6 decimals while native has 18, there is no wrapped native token, and Forge simulation doesn't support Arc's blocklist precompile, so USDC-moving steps run as viem scripts against the RPC. Sub-second finality lets collapse and execution land in consecutive blocks. Testing: Foundry unit, fuzz and invariant tests, hook tests against a local PoolManager, and on-chain smoke rounds.

