FlashPayZ

Automated payroll with LP-backed lending, multi-chain payments & salary streaming

FlashPayZ

Created At

HackMoney 2026

Project Description

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:

  • Organizations set up on-chain payroll with role-based salaries, batch execution, and treasury management
  • Employees can provide liquidity to Uniswap v4 pools and borrow against their LP positions—without employer visibility into their personal finance
  • Payments flow in real-time via Yellow Network state channels, not monthly batches
  • Multi-chain support lets employees receive salary on their preferred chain (Base, Arbitrum, Polygon) in their preferred token

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.

How it's Made

FlashPay is built across three layers using six partner technologies:

EVM Smart Contracts (Foundry/Solidity):

OrgRegistry.sol

  • NFT-based organization management with role/salary configuration

Payroll.sol

  • Batch payment execution with Merkle verification

PayrollHook.sol

  • Uniswap v4 hook implementing beforeAddLiquidity, afterAddLiquidity, beforeRemoveLiquidity, afterRemoveLiquidity to track employee LP positions. The hook prevents withdrawal below required collateral when loans are active

LendingPool.sol

  • Collateralized lending with interest calculation and payroll-integrated repayment

Sui Move Contracts:

multi_token_payroll.move

  • Organization payroll with generic token support, designed for PTB (Programmable Transaction Block) composition

token_swap.move

  • DeepBook integration for automatic swaps when employees want payment in a different token than the treasury holds

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

background image mobile

Join the mailing list

Get the latest news and updates

FlashPayZ | ETHGlobal