📚 Stream Fund Documentation
Complete technical documentation and API reference
🎥 For Creators
- 1. Connect MetaMask wallet to Metis network
- 2. Go to Creator page and input YouTube channel ID
- 3. Wait for AI engines to analyze your channel
- 4. Review forecast and mint your yield NFT
- 5. Receive upfront capital based on predictions
💰 For Investors
- 1. Use AI search to find suitable vaults
- 2. Review creator metrics and risk scores
- 3. Inject USDC from any supported chain
- 4. Receive yield NFT representing your position
- 5. Track real-time yield in dashboard
Creator Functions
ForecastEngine.generateForecast(channelId)Analyzes channel and predicts future revenue
MintController.mintYieldToken(vaultConfig)Deploys ERC721A yield token for creator
VaultConfigurator.deployVault(params)Creates investment vault with AI parameters
Investor Functions
AutoSwapAdapter.swapAndInvest(amount, vaultId)Cross-chain USDC swap and vault investment
YieldDistributor.claimYield(tokenId)Claims accumulated yield from creator revenue
InvestorVault.getPosition(userAddress)Returns user's investment positions and yields
Revenue Forecasting
Input: Subscriber count, view history, CPM data
Algorithm: Machine learning regression models
Output: Monthly revenue prediction with confidence
Risk Assessment
Input: View volatility, channel age, content type
Algorithm: Statistical variance analysis
Output: Risk score (0-1) and level classification
Intent Parsing
Input: Natural language investment queries
Algorithm: NLP with intent classification
Output: Structured search parameters
Web3 Integration
// Connect to Stream Fund contracts
import { ethers } from 'ethers';
import { STREAM_FUND_ABI, CONTRACT_ADDRESSES } from '@stream-fund/sdk';
const provider = new ethers.providers.Web3Provider(window.ethereum);
const signer = provider.getSigner();
const forecastEngine = new ethers.Contract(
CONTRACT_ADDRESSES.ForecastEngine,
STREAM_FUND_ABI.ForecastEngine,
signer
);
// Generate revenue forecast
const forecast = await forecastEngine.generateForecast(channelId);AI Search Integration
// Use AI Intent Engine for natural language search
import { AIIntentEngine } from '@stream-fund/ai';
const intentEngine = new AIIntentEngine();
// Parse user query
const intent = await intentEngine.parseIntent("Find 12% APR gaming vaults");
// Search vaults
const results = await intentEngine.searchVaults(intent);Simulation Notice
This documentation describes a comprehensive simulation of YouTube revenue tokenization. All smart contracts, AI engines, and financial data are mock implementations for demonstration purposes.
Educational Purpose
- • Demonstrates DeFi protocol architecture
- • Shows AI integration possibilities
- • Illustrates cross-chain functionality
- • Represents real-world use cases
Technical Accuracy
- • Smart contract interfaces are production-ready
- • AI algorithms use real methodologies
- • Cross-chain logic follows best practices
- • Security patterns are industry-standard