ChainFlash Pro ⚡
ChainFlash Pro is a revolutionary cross-chain high-frequency trading platform
Problem Statement
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 channelsCross-Chain Swaps: Bitcoin ↔ Ethereum atomic swaps using 1inch Fusion+Advanced Trading: TWAP, Options, and Concentrated Liquidity strategiesReal-Time Pricing: Pyth Network oracle integration with MEV protectionProfessional UX: TradFi-level trading experience for DeFi users
Solution
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.
Hackathon
ETHGlobal Prague
2025
Prizes
- 🏆
Best Use of ERC - 7824 and Nitro ProtocolResolve Github Issue
Yellow
- 🏆
Extend Limit Order Protocol3rd place
1inch
Contributors
- abhishek-01k
33 contributions