← Back to home

SafeStream

Enterprise payroll stablecoin streaming provider platform. Revolutionizes the payroll systems

Problem Statement

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 BENEFITSWorkspace managing payroll system.92% reduction in transactions (100 setup vs 1,200 monthly payments/year)Real-time earnings access for employeesTransparent, borderless PYUSD payments backed by PayPalEnterprise-grade security with Safe multisig

Solution

HOW IT'S MADE - SafeStream Technical Deep DiveTECHNOLOGIES & INTEGRATIONSUPERFLUID PROTOCOL - The Core Streaming Engine Key Integration Points:ISuperToken interface for PYUSDx (wrapped PYUSD) operationsCFAv1 (Constant Flow Agreement) for stream creation/updates/deletionISuperfluid Host contract for protocol-level operationsFlow rate calculations: Annual salary → wei per second conversionAnnual Salary: $60,000 Flow Rate Calculation: (60000 * 10^18) / (365.25 * 24 * 60 * 60) = 1,902,587,519 wei/secondWe built custom React hooks that wrap Superfluid operations with Wagmi's contract interaction patterns. This provides a clean, React-friendly API for stream management.SAFE PROTOCOL - Enterprise Multisig GovernancePAYPAL USD (PYUSD) - The Stablecoin Foundation Technical Integration:PYUSD wrapping into PYUSDx (Super Token) via SuperTokenFactory1:1 mint/burn ratio maintained by Superfluid protocolBalance tracking for both PYUSD and PYUSDx across all supported chainsToken approval flows optimized with Wagmi's useWriteContract hooksContract Addresses (Sepolia):PYUSD: 0xCaC524BcA292aaade2DF8A05cC58F0a65B1B3bB9PYUSDx: 0x8fece7605C7475cc5f1d697D8915408986CA9fB6Contract Development:Hardhat V3 for compilation and deploymentMakefile for common operations (make stream-start, make balance, etc.)Hardhat-viem plugin for modern contract interaction patterns

Hackathon

ETHOnline 2025

2025

Contributors