Sonic Uni-Agent

Voice-controlled DeFi agent using Uniswap v4 Hooks, Circle CCTP, and ZK-proofs for secure swaps.

Sonic Uni-Agent

Created At

HackMoney 2026

Project Description

Defi suffers from severe fragmentation and complex UX. Users struggle to manage liquidity across chains like Sui and Ethereum while navigating slippage and bridge risks. Sonic Uni-Agent solves this by introducing an "Intent-Centric" architecture.

It is an AI-powered orchestrator that translates natural language voice commands into complex on-chain actions. Users simply state their intent (e.g., "Move USDC from Sui to buy ETH on Base"), and the agent handles the execution.

Unlike standard bots, Sonic leverages a custom Uniswap v4 Hook to inject Just-In-Time (JIT) liquidity, ensuring zero slippage for the user. It utilizes Circle CCTP for trustless cross-chain transfers and secures every interaction with Noir ZK-proofs to prevent deepfake attacks. It transforms DeFi from a technical hurdle into a conversational experience.

How it's Made

The project is built on a modular architecture powered by a high-performance Golang backend acting as the central orchestrator.

  1. Uniswap v4 Hooks (The Brain): We developed a custom Solidity hook (beforeSwap) that pauses the swap transaction to fetch liquidity from Yellow Network via an off-chain solver. This allows for Just-In-Time (JIT) liquidity injection, optimizing capital efficiency.

  2. Circle CCTP (The Bridge): Instead of using wrapped assets, we integrated Circle's Cross-Chain Transfer Protocol. The backend listens for the user's voice command, triggers a burn on Sui (via Move contracts), and creates a signed attestation to mint native USDC on the target EVM chain.

  3. LI.FI (The Router): We utilized the LI.FI SDK within our Go backend to calculate the optimal bridging and swapping routes dynamically based on real-time gas fees.

  4. Noir & Privacy (The Shield): To prevent AI voice spoofing (deepfakes), we implemented a Noir ZK-circuit. The user's device generates a proof validating the biometric signature without revealing the private key. The backend verifies this ZK-proof before executing any transaction.

Notable Hack: We managed to synchronize the latency between the Circle CCTP attestation service and the Uniswap Hook execution by using Go's concurrency primitives, creating a near-instant cross-chain swap experience.

background image mobile

Join the mailing list

Get the latest news and updates

Sonic Uni-Agent | ETHGlobal