Hawk

Accountable AI Vault: Uniswap yield driven by Gemini, secured by 0G intents & KeeperHub.

Hawk

Created At

Open Agents

Project Description

Current DeFi agents trade in the dark. If an AI loses your capital, you have no way to audit its reasoning. Hawk solves the "Black Box" problem of autonomous finance.

Hawk is an institutional-grade autonomous yield optimizer operating as an ERC-4626 Vault. Instead of blindly executing trades, our Gemini 2.5 agent enforces a "Proof of Intent" (PoI). It analyzes live Uniswap Developer API pricing, calculates a market strategy, and immutably logs its exact reasoning and confidence score to 0G Storage before moving any capital. Once the intent is secured, the action is routed through KeeperHub for guaranteed on-chain execution via ERC-7579 modular smart accounts. By combining verifiable identity (hawk.agent.eth via ENS) with high-yield Alpha Tranche management, Hawk brings true accountability to AI-driven DeFi.

How it's Made

Hawk bridges a Next.js (App Router) frontend with a Hardhat/Solidity smart contract backend. We deployed an ERC-4626 Vault on Sepolia to manage the underlying USDC capital structure.

The intelligence layer is powered by a custom API route that queries the Uniswap Developer API for exact WETH/USDC quotes. Notable Hack: Testnet liquidity routing can be flaky and cause rate limits, so we built a dynamic failover that automatically drops down to Chainlink's Sepolia on-chain price feed if the Uniswap API fails. This ensures the agent never hallucinates a bad price.

This resilient market data feeds into Google Gemini 2.5 Flash, which acts as the autonomous portfolio manager and returns a strictly typed JSON intent. To solve AI accountability, this JSON payload acts as a "Proof of Intent" meant for 0G Storage to create an immutable audit trail. Finally, execution is handed off to KeeperHub to bypass mempool congestion and route the swap, while Privy handles seamless wallet onboarding for the protocol operators.

background image mobile

Join the mailing list

Get the latest news and updates

Hawk | ETHGlobal