OrderbookTradeYellow

Gasless CLOB Prediction market powered by Yellow Network- instant trades, on-chain settlement.

OrderbookTradeYellow

Created At

HackMoney 2026

Project Description

OrderbookTrade-Yellow is a CLOB Matching engine based prediction market, Yellow Network's state channels and nirtrolite protocol(https://erc7824.org ).

After user deposit fund into Yellow, then trades (YES/NO)(Buy/Sell) can be executed without gas fee, and every trades update in the yellow's offchain state channel , while smart contracts guarantee final settlement.

  • Zero-gas trading: All order matching happens off-chain via Nitrolite Clearnode
  • Price-time priority FIFO: Professional-grade orderbook matching engine
  • Instant execution: Low latecy (< 1 second) , support HFT's intergation
  • Trustless settlement: Final positions settle on-chain when users exit(seucred by yellow )

How it's Made

  1. Yellow SDK(Nitrolite) Integration :
  • @erc7824/nitrolite SDK for EIP-712 authentication and state channel management

  • WebSocket connection to Yellow Clearnode for real-time state sync

  • Session-based authentication: users sign once with MetaMask, get a session key for gasless operations

  1. OrderbookTrade -Yellow Project Architecture:
  • Frontend: Next.js 16 + React, real-time orderbook visualization, MetaMask wallet integration

  • Backend: Go orderbook engine with FIFO matching, WebSocket broadcasting, Yellow state channel updates

  • State Channel Flow: Every matched trade triggers UpdateState() with signed allocations to Yellow Network

  1. Technical Highlights:
  • Dual orderbook structure (YES/NO tokens) with price constraint: YES_price + NO_price = 1 USDC

  • Off-chain order matching with on-chain settlement capability via Yellow's Nitrolite protocol

Stack: TypeScript, Golang, Nitrolite SDK, WebSocket, EIP-712 Sign, State Channel

background image mobile

Join the mailing list

Get the latest news and updates