About
YieldStream is a decentralized micropayment protocol that enables pay-as-you-consume payments for digital content. Instead of paying upfront or committing to subscriptions, users deposit tokens into a yield-generating vault and are charged only for the exact amount of content they consume, streamed in real time.
At its core, YieldStream is powered by three smart contracts:
Yield.sol – An ERC-4626-based vault where users deposit tokens. For demonstration, deposited tokens are increased by 20% to simulate yield generation.
MockUSDC.sol – A mock stablecoin used as the underlying asset for deposits and payments.
StreamingWallet.sol – Handles real-time micropayments, deducting funds precisely based on actual content consumption (e.g., per second of video watched).
The user flow is simple:
A user deposits tokens into the Yield Vault, which simulates yield by increasing their balance by 20%.
That yield value can then be used to stream payments as they interact with content — for example, watching a video.
If a 10-minute video costs 10 tokens and a user watches only 2 minutes, they pay just 2 tokens (20%). If they pause or stop, the payment halts instantly.
The platform also includes a content management system for creators. Admins (contract owners) can upload videos directly to Filecoin/IPFS via Lighthouse, where metadata is generated and content is listed on-chain. Once listed, content appears as clickable cards in the “Available Content” section, showing details like the title, price in mUSDC, and metadata hash.
Users can then click on any listed video to stream it, and payments will automatically stream from their vault balance in real time.
YieldStream unlocks a new payment model for the internet — one where users only pay for what they consume, creators are compensated fairly based on actual engagement, and DeFi yield becomes a fuel for seamless micropayments across platforms.
From the public ETHGlobal showcase page. Votes, swipes and the judge score are hackfeed's own.






