
SafeStream
Enterprise payroll stablecoin streaming provider platform. Revolutionizes the payroll systems
Demo
About
SafeStream - Enterprise Payroll Stablecoin Streaming Platform. The streaming payroll infrastructure for the enterprise payroll market, leveraging PYUSD's regulatory compliance to enable second-by-second salary distributions—driving mass stablecoin adoption where it matters most: everyday business operations for next-generation payroll systems." THE PROBLEM Traditional payroll operates on outdated batch processing - employees work continuously but get paid monthly, creating cash flow problems for workers and slow, expensive cross-border payments. Worse, enterprises exploring stablecoin payroll face prohibitive gas costs: paying 100 employees monthly requires 100 on-chain transactions every cycle, costing thousands in gas fees and making blockchain payroll financially impractical. THE SOLUTION SafeStream enables continuous per-second PYUSD salary streams using Superfluid Protocol. Instead of monthly batch payments, employees watch their balance grow in real-time as they work. Companies deposit PYUSD once, wrap it into PYUSDx (Super Token), and create streams that flow automatically - paying 100 employees requires just 100 setup transactions, then zero gas costs for continuous payments. HOW IT WORKS Companies set annual salaries (e.g., $60,000/year = 1.9 wei/second), and SafeStream handles the rest. Streams flow continuously from company wallets to employees, who can withdraw earned balances anytime. The dashboard provides real-time visibility into active streams, burn rates, and runway projections. DUAL WORKSPACE MODES Single Wallet Mode: Direct control for startups - one wallet manages all payroll with immediate execution. Safe Multisig Mode: Enterprise governance requiring multiple signature approvals (2-of-3, 3-of-5) for security and compliance. KEY BENEFITS - Workspace managing payroll system. - 92% reduction in transactions (100 setup vs 1,200 monthly payments/year) - Real-time earnings access for employees - Transparent, borderless PYUSD payments backed by PayPal - Enterprise-grade security with Safe multisig
How it's made
HOW IT'S MADE - SafeStream Technical Deep Dive TECHNOLOGIES & INTEGRATION 1. SUPERFLUID PROTOCOL - The Core Streaming Engine Key Integration Points: - ISuperToken interface for PYUSDx (wrapped PYUSD) operations - CFAv1 (Constant Flow Agreement) for stream creation/updates/deletion - ISuperfluid Host contract for protocol-level operations - Flow rate calculations: Annual salary → wei per second conversion ``` Annual Salary: $60,000 Flow Rate Calculation: (60000 * 10^18) / (365.25 * 24 * 60 * 60) = 1,902,587,519 wei/second ``` We built custom React hooks that wrap Superfluid operations with Wagmi's contract interaction patterns. This provides a clean, React-friendly API for stream management. 2. SAFE PROTOCOL - Enterprise Multisig Governance 3. PAYPAL USD (PYUSD) - The Stablecoin Foundation Technical Integration: - PYUSD wrapping into PYUSDx (Super Token) via SuperTokenFactory - 1:1 mint/burn ratio maintained by Superfluid protocol - Balance tracking for both PYUSD and PYUSDx across all supported chains - Token approval flows optimized with Wagmi's useWriteContract hooks Contract Addresses (Sepolia): - PYUSD: 0xCaC524BcA292aaade2DF8A05cC58F0a65B1B3bB9 - PYUSDx: 0x8fece7605C7475cc5f1d697D8915408986CA9fB6 Contract Development: - Hardhat V3 for compilation and deployment - Makefile for common operations (make stream-start, make balance, etc.) - Hardhat-viem plugin for modern contract interaction patterns