Automated payroll with LP-backed lending, multi-chain payments & salary streaming
FlashPay is a next-generation payroll infrastructure that transforms how organizations pay employees and how employees access their earned wages.
The Problem: Traditional payroll is slow, inflexible, and disconnected from DeFi. Employees wait weeks for pay, have no access to salary advances, and employers manage fragmented systems across HR, banking, and lending.
Our Solution: FlashPay creates a unified platform where:
The Uniswap v4 hook tracks LP positions automatically, preventing over-withdrawal when loans are active. Loans are repaid via automatic payroll deductions, making it a win-win: employees get liquidity access, protocols get LP, and employers offer better benefits.
FlashPay is built across three layers using six partner technologies:
EVM Smart Contracts (Foundry/Solidity):
OrgRegistry.sol
Payroll.sol
PayrollHook.sol
LendingPool.sol
Sui Move Contracts:
multi_token_payroll.move
token_swap.move
Frontend (Next.js + wagmi + RainbowKit):
Circle Wallets SDK - Embedded wallet creation for employees without existing wallets LI.FI REST API - Cross-chain routing for payroll execution. We query quotes and build transactions for any source→destination chain/token combo ENS resolution - Payroll can reference alice.eth instead of raw addresses Yellow Network Nitrolite - State channel-based salary streaming. Instead of monthly batches, salary accrues per-second and employees can withdraw anytime
Hacky bits worth mentioning:
i. The Uniswap v4 hook stores employee positions in a triple-nested mapping (orgId → employee → poolId → Position) to support multiple orgs and pools per employee ii. We use int256→int128→uint128 casting chain in the hook because v4's liquidityDelta is signed iii. LI.FI integration uses their REST API directly instead of the SDK to avoid dependency issues in Next.js 16 iv. The Sui contracts use TypeName to store employee token preferences, enabling truly generic multi-token support

