About
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 fees
- Flash loan integration: Users can fill orders using Aave flash loans for capital efficiency
- Real-time price feeds: Integration with Pyth Network for accurate price data
- Multi-token support: Trade ETH, WETH, USDC, and DAI
- Modern UI: Built with Next.js and Framer Motion for a smooth user experience
- Built on chain
The system incentivizes active trading through its merit system while providing a seamless trading experience with real-time price updates and efficient order execution.
How it's made
TradeFlow is built the following tech stack:
Frontend:
- Next.js 14 with TypeScript for the web application - RainbowKit and wagmi v2 for wallet integration - Framer Motion for smooth animations - TailwindCSS for styling - Pyth Network for real-time price feeds - React Query for data fetching
Smart Contracts:
- Solidity 0.8.30 for the core contracts - OpenZeppelin for security standards - Aave for flash loan integration - Forge for testing and deployment
Key Features:
- State management using React hooks and context - Real-time price updates using Pyth Network - Flash loan integration with Aave - Merit-based fee system with dynamic discounts - Responsive design with dark mode support
The 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.
Prizes
- Blockscout · Big Blockscout Explorer Pool Prize · Big Blockscout Explorer Pool Prize
From the public ETHGlobal showcase page. Votes, swipes and the judge score are hackfeed's own.






