hackquest logo

Lion Yield Agent

Videos

Tech Stack

Next
Web3
Ethers
Solidity

Description

Live Demo: yield-agent-web.vercel.app
Chain: Arbitrum Sepolia

LionHeart is a Chat-First DeFi Intelligence Platform built on Arbitrum. It pairs every user with OpenClaw — an AI agent that doesn't just answer questions, but proves its competence on-chain.

Think of it as a personal quant analyst that:

  • 🎓 Teaches you DeFi (interactive lessons + quizzes)

  • 🔍 Hunts the best yields across 10+ Arbitrum protocols in real-time

  • 📊 Researches markets with live TVL, APY, and risk-tier analysis

  • 🛡️ Earns your trust through an on-chain reputation score (ERC-8004 NFT)

  • 💼 Executes trades only after reaching reputation ≥ 100 (reputation-gated)

Every piece of data the agent provides is verifiable — SHA-256 hashed, optionally signed and pinned to IPFS. This is not a chatbot; it's a trustless financial advisor.

Problem

LionHeart's Solution

DeFi is overwhelming for newcomers

Chat-first UX with an AI tutor

Yield farming requires constant monitoring

Automated Yield Hunter crawls 800+ pools every 15 min

No way to verify AI agent advice

On-chain ERC-8004 identity + SHA-256 data stamps

Agents have no accountability

Reputation scoring — users rate the agent on-chain

Trading bots are black boxes

Reputation-gated: agent must earn trading permissio


Progress During Hackathon

Phase 1 — Foundation & Smart Contracts Status: Deployed Designed and deployed 4 smart contracts to Arbitrum Sepolia Contract Address: IdentityRegistry 0x27558E...1449 ERC-721 + ERC-8004 agent NFT identity ReputationRegistry 0xDD9a5E...1c83 On-chain feedback & tag-based reputation scoring YieldManager 0xaE1405...C606 Mock yield strategy for demo AgentVault 0x7B7324...93e7 Treasury & payment interceptor Built full Hardhat workspace with end-to-end tests and ignition deployment module using Hardhat and OpenZeppelin. Solidity version: 0.8.24. Test coverage: 100% (critical modules). Phase 2 — OpenClaw Agent Engine Core: Custom Gateway + modular skills Architected the OpenClaw Gateway — an Express + WebSocket server implementing a Tool Registry pattern. Implemented 9 modular, SOLID-compliant skills: Skill What it does Yield Hunter Crawls 800+ pools across Aave, Pendle, Camelot, GMX, and Dolomite via DefiLlama Market Research Live TVL & protocol analytics for the Arbitrum ecosystem News Analytics Sentiment & signal extraction via CryptoPanic Daily Brief Composite morning report (yields + news + risk) Tutor Mode 8-lesson DeFi curriculum + quizzes (lessons 4–8 = x402 premium) Trust Stamp SHA-256 hashing + ECDSA signing of market research Wallet Control Reputation-gated (score ≥ 100) swap/deposit/withdraw execution Vault Manager AgentVault treasury health monitoring & rebalancing Register Agent Mints ERC-8004 NFT identity (inline data URI from user profile) Integrated Google Gemini as the AI backbone with a “Master DeFi” system prompt covering IL formulas, veTokenomics, delta-neutral strategies, flash loans, and 10+ protocols. Phase 3 — Web Frontend & UX Experience: Chat-first, action-oriented Chat-first UI where every interaction flows through the AI agent. Quick actions: Show me yield opportunities, Top Arbitrum protocols, Teach me about DeFi, Today’s brief. Wallet → NFT minting → reputation badge pipeline with three comm modes: HTTP proxy (prod), WebSocket (real-time), Mock (dev). Frontend built with Next.js + React and styled using Tailwind CSS. Wallet UX implemented via RainbowKit with web3 stacks Wagmi + Viem. Phase 4 — Infrastructure & Production Deployment Live ops & reliability OpenClaw Gateway deployed to AWS EC2 (public endpoint). Zero-downtime via PM2; containerized components using Docker. Frontend hosted on Vercel. Automated 15-minute crawler job scanning 800+ pools across connectors (Aave, Pendle, Dolomite, GMX, DefiLlama + Camelot). Persistent storage: Supabase (Postgres). Technical Architecture (concise) Data flow (summary): On-chain events → Yield Crawler (15-min cron) → OpenClaw Gateway (skills router + Gemini AI) → API proxy → Frontend / Wallet UX → Agent actions (reputation gating + on-chain txs). Key integration points: on-chain contracts (IdentityRegistry, ReputationRegistry, AgentVault), off-chain sources (DefiLlama, CryptoPanic), and Supabase for user/session state. Tech Snapshot (copy this short list) Chain: Arbitrum Sepolia Contracts / Dev: Solidity 0.8.24, Hardhat, OpenZeppelin Agent: Node.js + TypeScript, Express, WebSocket, node-cron AI: Google Gemini (gemini-2.0-flash) Frontend: Next.js + React, Tailwind CSS, RainbowKit (wagmi/viem) DB: Supabase (Postgres) Infra: AWS EC2, PM2, Vercel, Docker Data sources: DefiLlama, CryptoPanic Standard: ERC-8004 (Verifiable Agent Identity) Key Innovations — Quick bullets to copy ERC-8004 Agent Identity: NFT agents with verifiable metadata + optional operational wallet — first trustless agent registry on Arbitrum. Reputation-Gated Trading: Agents require collective rating ≥ 100 before executing user funds. x402 Payment Protocol: Premium skills behind HTTP 402 micropayment gates (on-chain micropayments support). Verifiable Data Pipeline: SHA-256 + optional ECDSA signing and IPFS pinning for auditable, tamper-evident market research. Master DeFi Intelligence: Institutional-grade system prompt encoding protocol mechanics, impermanent loss math, veTokenomics, and neutral/leveraged strategies.
Team Leader
NNim
Project Link
Sector
DeFiAIOther