Arbiter Capital

Autonomous yield optimizer: AI agents rotate WETH across Pendle, Lido, and Uniswap v4 automatically.

Arbiter Capital

Created At

Open Agents

Project Description

Arbiter Capital is an autonomous DeFi yield optimizer. It continuously monitors yield spreads across Pendle PT-USDC, stETH/Lido staking, and Uniswap v4 pools. When the quantitative engine detects a better risk-adjusted return, or a volatility event requiring a protective stable rotation, it kicks off a multi-agent negotiation without any human intervention.

A Quant agent runs deterministic yield-spread math (gas-adjusted returns, volatility signals, safety scores), drafts a swap proposal, and signs it with EIP-712. A Risk Guardian agent independently re-runs the same math to verify it, consults KeeperHub's simulation oracle to simulate the trade against a forked chain state, then countersigns. Only after both signatures are collected does a Gnosis Safe 2-of-2 multisig execute the transaction through Uniswap v4, routed through a custom ArbiterThrottleHook that enforces per-block swap rate limits.

Every LLM call made by both agents is captured as a LLMContext artifact containing the full prompt, model ID, temperature, seed, and parsed response. Each artifact is hashed and stored on 0G decentralised storage, chained into a cryptographic audit trail of 500+ receipts that anyone can replay. A Byzantine Watchdog agent fires six adversarial proposal types per run (forged signatures, replayed nonces, math manipulation) to continuously stress-test the system. All rejections are signed and logged to 0G.

How it's Made

The system runs five concurrent Python processes communicating over Gensyn AXL, a live Yggdrasil P2P mesh with five distinct node identities. DEMO_MODE=1 fails closed if any AXL node is unreachable, enforcing the no-centralized-broker requirement. Each inter-agent message is wrapped in a signed AXL envelope and recipients verify the producer signature before processing.

Both agents are built as LangGraph graphs. The Quant graph runs: ingest market data, recall memory (ChromaDB semantic search over prior decisions), draft proposal (GPT-4o with structured output, temperature=0, seed=42 for determinism), self-audit (hash check), EIP-712 sign. The Patriarch graph runs: deterministic recheck (re-executes the quant's Python math and verifies keccak hash), LLM evaluation (structured ProposalEvaluation output), KeeperHub Sim Oracle consultation (LangChain BaseTool, attestor signature verified via ecrecover).

Execution uses a Gnosis Safe 2-of-2 on Sepolia. The executor collects CONSENSUS_SIGNATURES, ecrecovers both signers, confirms they are registered Safe owners, then calls Safe.execTransaction. Swaps go through Uniswap v4's UniversalRouter with Permit2 approval. The ArbiterThrottleHook is a custom v4 hook deployed via CREATE2 on Sepolia that enforces per-block rate limits. Lido staking calls submit() directly and Pendle buys PT tokens. Every execution mints an ArbiterReceipt SBT.

0G storage is written by both agents after every LLM call via a MemoryManager that falls back to local files when the testnet is dry. ChromaDB stores embedding and 0G hash pointers for semantic recall. The public verifier dashboard is built with Alpine.js and Tailwind, served by a Python HTTP server reading from SQLite. It shows the live Trade Queue, agent status, 0G audit chain, and a per-trade Decision Timeline modal showing every agent action from proposal to on-chain execution.

background image mobile

Join the mailing list

Get the latest news and updates

Arbiter Capital | ETHGlobal