TradeFlow

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

ETHGlobal PragueShipped May 30, 2025Prize winner#payments#security
Repo
TradeFlow banner

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.

AI judge

Not judged yet. A free model reads this page, compares it with similar projects and this event's winners, then scores it and says what would make it win.

Still being built?

Not checked yet.

Swipe stats

0upvotes
0skips
0saves

Discussion 0

No comments yet. Ask the team something, or say what you'd use it for.

Posting as a guest. Plain text, 1,000 characters max.

Already built nearby

Closest projects by meaning and shared words. Similar isn't the same as copied: read them.

Flash

Built a decentralized flash loan arbitrage bot using modified warden-agent-kit. Monitors and executes cross-chain arbitrage opportunities between Optimism and Sepolia, maximizing DeFi profits through automated trading

SwiftYield

We deploy our bot on Tenderly for real-time monitoring and management of smart contracts, ensuring accurate and efficient arbitrage trading.