AI-powered yield optimizer that finds the best Uniswap pools and migrates your LP via LI.FI
UniYield is an AI-powered Uniswap yield optimizer that helps liquidity providers maximize their returns across chains.
The problem: LPs miss better yields. The same USDC/ETH pool can give 8% APY on Base but 12% on Arbitrum. That's $40/year left on the table for a $1,000 position.
UniYield's AI agent continuously scans Uniswap pools across chains, calculates whether migration is profitable after bridge and gas costs, and recommends the best opportunity with breakeven analysis.
Features:
UniYield is built with three core components:
AI Agent (TypeScript): Analyzes Uniswap pool APYs across Base and Arbitrum, calculates migration costs using LI.FI quotes, and determines if migration is profitable with breakeven analysis.
LI.FI SDK Integration: We use LI.FI for cross-chain bridging. The agent fetches real-time quotes to estimate bridge fees and gas costs. Migration is executed through LI.FI's routing engine for optimal paths.
Uniswap V4 Hook (Solidity): HopYieldHook is deployed on Base Sepolia using CREATE2 for deterministic addresses. It implements beforeAddLiquidity and afterRemoveLiquidity hooks to track LP positions on-chain.
Frontend: Next.js 14 with RainbowKit for wallet connection, wagmi for blockchain interactions, and Tailwind CSS for styling.
The hacky part: Mining the CREATE2 salt to get a hook address with correct permission flags (bits 11 and 8 for beforeAddLiquidity and afterRemoveLiquidity).

