Digital product marketplace with automated DeFi yield farming for sellers
ToteFlow: Marketplace for digital products on Base Sepolia with automated yield farming. Sellers upload encrypted content to IPFS, set USDC prices, list, and share links to buyers. Buyers purchase with USDC and access content via Lit Protocol. After sale, sellers can withdraw or keep funds earning automatic yield. Vincent AI agents manage deposits, monitor rates, and optimize across Aave, Compound, Yearn. Real-time protocol optimization maximizes yield via a multi-protocol strategy. Lit Protocol handles encryption, access control, and on-chain automation. Sellers withdraw original funds plus accumulated yield at any time. Platform takes 2.5% transaction fee and 20% of yield generated.
Lit Protocol: Encryption with access control; user auth via EOA; on-chain checks; conditional execution. Vincent AI: Agent delegation by users; delegatee wallet for transactions; Aave ERC4626 integration; hourly rate monitoring and rebalancing. IPFS: Pinata client; auth via JWT; JSON encoding; SHA-256 for hashing. Frontend: Next.js Farcaster frames; Wagmi viem wallets; TanStack Query; Tailwind CSS. Database: MongoDB; Schema for users/deposits/products/purchases; relationship references; timestamps and stats. Yield Flow: Deposit to protocol → agent monitors shares/APY → if better protocol (>threshold) agent withdraws/rebalances; platform takes 20% fee. Access Control: Buyer-only access with Lit checks; wallet ownership on base-sepolia; JSON condition parsing. Real-Time Calculations: Basis point conversions; yield via amount × rate × time / seconds/year; real APY from Aave rates; precision rounding.

