PiggyPot

PiggyPot: one-click AI Web3 investing—1inch swaps & Uniswap V3 liquidity, no blockchain know-how

PiggyPot

Created At

Unite Defi

Project Description

PiggyPot bridges the gap between traditional savers and DeFi. On the backend, we run a custom Subgraph to collect pool data, pre-filter by core parameters (TVL, fees, etc), then call 1inch to calculate additional metrics (impermanent loss, APY volatility, etc). All this enriched data lives in Postgres database, refreshed daily via a cron job. When a user invokes our recommendation endpoint, we fetch the latest metrics, send them along with the user’s preferences to an LLM, and return the top pool suggestions

The frontend is built for simplicity: users sign up and authenticate with Privy, fund their account, choose an amount to invest (e.g. $100) and risk allocation, then click “Invest.” Behind the scenes, we call our recommendation API, perform one-click swaps through 1inch, and provision liquidity in the selected pools on Uniswap V3. PiggyPot makes DeFi returns available to anyone—no jargon, no multi-step workflows, just higher yields with a double-click.

How it's Made

  1. Data Ingestion & Enrichment • We used a Subgraph to get all Uniswap V3 pools, pre-filtering by TVL, fee tier and token pair. • We call the 1inch API and compute advanced metrics for each pool (impermanent-loss estimates, APY volatility, slippage scores), then persists the enriched records to our Postgres database. • A Node.js cron job runs daily to update metrics and pools info
  2. Recommendation Engine • We send that payload with pool data and calculated metrics to an OpenAI LLM, which ranks the top pools and returns personalized recommendations
  3. Frontend & Execution • Built in React/Next.js with Privy handling auth and wallet creation. • Users top up their account, set an amount and a risk slider, then click “Invest.” • Under the hood, our Next.js API proxy secures 1inch API keys, executes one-click swaps via 1inch, and provisions liquidity on Uniswap V3—all invisibly to the user.
  4. Partner Technologies • Graph Protocol Subgraph for scalable on-chain indexing • 1inch API for best-price routing and custom metrics • Uniswap V3 for liquidity provisioning • OpenAI for AI-driven pool ranking • Privy for seamless wallet auth
  5. Notable Hacks • Batched and back-off–enabled 1inch calls to avoid rate limits under heavy load • In-memory caching layer for Subgraph and 1inch responses to speed up churny cron runs
background image mobile

Join the mailing list

Get the latest news and updates