Flash

Social trading pool: friends trade off-chain via state channels, settle on-chain once.

Flash

Created At

HackMoney 2026

Project Description

Flash is a state-channel trading platform that enables high-frequency, zero-gas trading sessions on Base Sepolia, settled with a single on-chain transaction.

Traditional decentralized trading suffers from high gas costs per transaction and MEV (front-running). Flash solves this by moving execution off-chain into ERC-7824 state channels while keeping rigorous settlement guarantees on-chain. Traders deposit USDC into a shared session pool, execute unlimited trades instantly via off-chain signed messages, and settle only the final net P&L.

Unlike Perp DEXes that require complex oracle engines and liquidation bots, Flash uses a synthetic P&L model similar to CFDs—positions are calculated against live price feeds, and the deposit pool is chemically redistributed at the end of the session. This architecture makes it perfect for social trading groups, competitions, and high-frequency strategies that would be prohibitively expensive on L1 or even standard L2s.

How it's Made

Flash is built as a hybrid off-chain/on-chain architecture designed for speed and gas efficiency.

On-Chain (Base Sepolia): The core is the FlashTradeSessionV3 smart contract written in Solidity. It handles:

Pooled Deposits: Users deposit USDC into a shared session vault. Session Keys: We use EIP-712 signatures to register ephemeral session keys with strict on-chain spend limits and expiry times, allowing users to trade securely without signing every transaction with their cold wallet. Synthetic Settlement: Instead of swapping tokens on a DEX, the contract acts as a settlement engine. It verifies the final state and redistributes the pooled funds based on the calculated P&L of each participant. Off-Chain (Yellow Network & Relay): For the trading engine, we integrated the Yellow Network / Nitrolite SDK (ERC-7824). This provides the state channel infrastructure where trades happen.

The Relay: A lightweight Node.js/WebSocket server acts as the communication hub, synchronizing state updates between players and the Solver. The Solver: A background service that acts as the counterparty and referee. It listens to price feeds, calculates real-time P&L, and cryptographically signs state updates. The "Hacky" Part: The most innovative element is our "Zero-DEX" settlement. We realized that for a trading competition or social session, we don't actually need to swap tokens on Uniswap for every trade. We only need to track the value of the positions. We built a custom P&L calculator that mimics a perpetual futures engine but runs entirely as pure logic in the state channel. This allows us to offer an experience that feels like a high-leverage Perp DEX but consumes 99% less gas.,

background image mobile

Join the mailing list

Get the latest news and updates

Flash | ETHGlobal