Video thumbnail

ChainFlash Pro ⚡

ChainFlash Pro is a revolutionary cross-chain high-frequency trading platform

ChainFlash Pro ⚡

Created At

ETHGlobal Prague

Winner of

Yellow - Best Use of ERC-7824 and Nitro Protocol Resolve Github Issue

1inch - Extend Limit Order Protocol 3rd place

Project Description

ChainFlash Pro is a revolutionary cross-chain high-frequency trading platform that combines cutting-edge DeFi protocols to deliver:

  • Instant Settlement: Gas-free trades via Nitrolite (ERC-7824) state channels
  • Cross-Chain Swaps: Bitcoin ↔ Ethereum atomic swaps using 1inch Fusion+
  • Advanced Trading: TWAP, Options, and Concentrated Liquidity strategies
  • Real-Time Pricing: Pyth Network oracle integration with MEV protection
  • Professional UX: TradFi-level trading experience for DeFi users

How it's Made

ChainFlash Pro is built as a next-gen cross-chain state channel trading platform, designed to offer near-instant settlement and low-latency execution for professional traders. Here’s a breakdown of how we built it:

🧱 Core Tech Stack Frontend: Built with Next.js and TypeScript for speed and scalability.

Wallet & Transactions: Leveraged Viem and RainbowKit for seamless wallet connections and transaction handling.

Backend Logic: Managed through smart contracts and real-time interactions with the Nitrolite state channel.

State Channels: We integrated Nitrolite (ERC-7824 standard) to enable off-chain trading state updates and only settle final balances on-chain, drastically reducing gas costs and latency.

Price Feeds: Pyth Network was used for real-time oracle data, ensuring precise pricing for asset swaps.

Swap Aggregation: Integrated with 1inch Fusion API to execute the best swap routes across multiple DEXes.

🔁 Cross-Chain Flow We utilized Nitrolite's adjudicator and custody contracts deployed on Arbitrum, Polygon, and Ethereum Mainnet. Using their official SDK, we created a system where a user can initiate a trade on one chain and settle on another, using state updates rather than raw on-chain swaps.

🧪 Hacky / Notable Things We manually crafted Viem clients and adapted them for Nitrolite RPC over WebSocket, which allowed smoother real-time interactions.

To ensure instant UI feedback, we built a local cache syncing mechanism that reflects state updates before final settlement, mimicking centralized exchange UX.

We optimized EVM calldata structures to fit into Nitrolite’s custom StateProof encoding for faster adjudication.

🧩 Partner Tech Benefits Nitrolite enabled us to bypass L1 gas costs and congestion, simulating high-frequency trading behavior.

Pyth provided secure, real-time pricing—essential for accurate DEX routing.

1inch Fusion API allowed us to offer best-price execution with zero slippage in demo scenarios, giving users the edge of professional tooling.

background image mobile

Join the mailing list

Get the latest news and updates