YieldBox

Tradable NFTs that generate and auto-compound high-yield, diversified DeFi returns on Base.

YieldBox

Created At

ETHOnline 2025

Project Description

YieldBox simplifies yield farming on Base by turning complex DeFi strategies into collectible NFTs. Each Box represents a curated yield portfolio, containing allocations across Base-native protocols like Aerodrome and Moonwell and automatically generates yield under the hood.

Users can mint a Box NFT with one transaction, choose how much to deposit, and optionally lock funds for yield multipliers. Every Box they hold reflects a live, yield-bearing position on Base that can be traded, redeemed, or held for rewards.

Creators can design and publish their own Boxes, define strategy compositions, and earn revenue every time their Box is minted. YieldBox introduces a creator economy to DeFi, allowing strategy builders to monetize their ideas while making yield access simple for everyone.

In short: YieldBox makes Base yield one-click, transparent, and social.

How it's Made

Chain & standards: Base; ERC-721 for Boxes; ERC-6551 TBAs; ERC-4626-style adapters for uniform deposit/withdraw.

Core contracts (Solidity):

BoxFactory: mints NFT, creates/links TBA via 6551 Registry, routes mint assets.

StrategyRegistry: stores Box recipes, allowed adapters, fees, lock rules.

Vault/Adapter modules: integrate Aerodrome, Moonwell, and stable routers; rewards accrue to the TBA.

Accounting: epoch accrual, lock multipliers, creator and protocol splits.

Token flow: mint accepts PYUSD, USDC, IDRX. Router normalizes into target assets via approved pools, then allocates per recipe. Withdraw redeems pro-rata back to the TBA, then to user.

Gas & UX: Permit2 and multicall to cut approvals and tx count; slippage and health checks; pausables and TVL caps per adapter.

Frontend: Next.js + RainbowKit (Wagmi + Viem). Wallet flow: pick Box, choose amount and lock, mint, see live position.

Indexing & data: Envio indexes Box mints, TBA balances, rewards, leaderboards, creator earnings; UI reads on-chain events plus Envio queries.

Security hygiene: reentrancy guards, allow-listed strategies, scoped allowances, emergency withdraw paths.

background image mobile

Join the mailing list

Get the latest news and updates