← Back to home

TradeFlow

Decentralized order system with merit rewards, flash loans, and Pyth price feeds.

Problem Statement

TradeFlow is a decentralized order management system that enables users to create and fill limit orders with built-in merit-based rewards. The system features:Merit-based fee discounts: Users earn merits for creating and filling orders, reducing their trading feesFlash loan integration: Users can fill orders using Aave flash loans for capital efficiencyReal-time price feeds: Integration with Pyth Network for accurate price dataMulti-token support: Trade ETH, WETH, USDC, and DAIModern UI: Built with Next.js and Framer Motion for a smooth user experienceBuilt on chainThe system incentivizes active trading through its merit system while providing a seamless trading experience with real-time price updates and efficient order execution.

Solution

TradeFlow is built the following tech stack:Frontend:Next.js 14 with TypeScript for the web applicationRainbowKit and wagmi v2 for wallet integrationFramer Motion for smooth animationsTailwindCSS for stylingPyth Network for real-time price feedsReact Query for data fetchingSmart Contracts:Solidity 0.8.30 for the core contractsOpenZeppelin for security standardsAave for flash loan integrationForge for testing and deploymentKey Features:State management using React hooks and contextReal-time price updates using Pyth NetworkFlash loan integration with AaveMerit-based fee system with dynamic discountsResponsive design with dark mode supportThe project uses a hub-and-spoke model where the OrderManager contract acts as the central hub, managing all orders and interactions, while the FlashLoanManager handles flash loan operations for efficient order filling.

Hackathon

ETHGlobal Prague

2025

Prizes

  • 🏆

    Big Blockscout Explorer Pool Prize

    Blockscout

Contributors