Yield Lab

Smart yield lab for stablecoins. Scan PT/YT, track APY, and find the best Pendle returns.

Yield Lab

Created At

ETHGlobal Buenos Aires

Project Description

This project is an AI-powered yield optimizer focused on Pendle’s stablecoin markets. Users connect their wallet to instantly view all existing USD stablecoin positions and their PT/YT holdings. The system pulls real-time Pendle data using Octav and analyzes implied yields, PT discounts, maturity dates, and APY trends. An on-chain execution layer on Base, enhanced by an x402 agent, recommends personalized strategies—from fixed-income PT positions to yield-leveraged YT exposure. The goal is to help users intelligently discover, compare, and execute the highest-quality stablecoin yield opportunities on Pendle with full transparency, simulation tools, and automated strategy execution.

How it's Made

This project is built as a full-stack yield intelligence system combining on-chain data, off-chain analytics, and agent-executed strategies. The backend integrates Octav’s API to fetch real-time Pendle market data including PT/YT prices, implied yield curves, pool stats, and user wallet positions. On-chain execution is deployed on Base, where all trades use the Pendle Router and a minimal smart-account wrapper for batching. An x402 agent powers the strategy engine: it analyzes implied yield vs. APY spreads, computes PT discounts, simulates maturity outcomes, and generates personalized yield strategies. The frontend is built with Next.js, Wagmi v2, Viem, and React Server Components for fast wallet reads. All data is normalized through a custom yield-calculation layer that maps PT/YT metrics, discount curves, and maturity deltas into a unified analytics dashboard. The system is modular, so strategy logic, wallet analytics, and execution flows can evolve independently. A notable hack is the on-the-fly reconstruction of PT/YT payoff curves directly from Octav’s market feed, letting us compute PT discount, YT intrinsic value, and maturity-adjusted APY without running our own indexer.

background image mobile

Join the mailing list

Get the latest news and updates