SwarmSwap: Verifiable autonomous AI swarms optimizing Uniswap V3 liquidity via 0G Storage & Compute
SwarmSwap is an autonomous liquidity management engine that utilizes a swarm of specialized AI agents (Analyzer, Risk Manager, and Executor) to optimize concentrated liquidity positions on Uniswap V3. Unlike traditional "black box" trading bots, SwarmSwap integrates with the 0G Storage and Compute layers to anchor every decision in a verifiable cryptographic audit trail. Users delegate their liquidity to an autonomous Smart Account minted as an iNFT on the 0G Galileo testnet, ensuring non-custodial security while benefiting from 24/7 AI-driven yield optimization.
SwarmSwap was built using a modular multi-agent architecture. The backend is a Fastify-based engine coordinating AI agents that perform real-time tick analysis and risk modeling. We utilized the 0G Storage SDK to anchor decision state-roots, and the 0G Compute layer for verifiable model inference. On the frontend, we used the MetaMask Smart Accounts Kit to implement non-custodial agent delegation via ERC-4337, with Pimlico providing the paymaster/bundler infrastructure for a seamless, gasless onboarding experience. The UI is a high-fidelity Next.js dashboard that visualizes the 'Assurance Ledger' streaming from 0G, providing a premium, transparent experience for liquidity providers.

