Real World Decentralized Exchange (DEX) Project
A full-stack Decentralized Exchange (DEX) platform built on Ethereum, featuring custom smart contracts and a modern React frontend. This project demonstrates the complete workflow of a DEX, from Solidity contract development to a user-friendly web interface for trading ERC-20 tokens.
🚀 Features
- Connect Ethereum Wallet:Seamless wallet integration for secure user authentication and transactions.
- Order Book: Real-time display of buy and sell orders.
- Limit & Market Orders: Place both limit and market orders directly from the UI.
- Live Trading Modal: View recent trades and a mock price chart in a dedicated modal.
- Balances: Display ETH and token balances for the connected account.
- Responsive UI: Built with Material UI for a modern and accessible user experience.
🛠️ Tech Stack
- Smart Contracts: Solidity
- Blockchain: Ethereum (compatible with testnets)
- Frontend: React.js, Material UI
- Web3 Integration: Ethers.js
- Development Tools: Truffle, Ganache
📦 Project Structure
ERC20/
├── contracts/ # Solidity smart contracts
├── dex-frontend/ # React frontend application
├── migrations/ # Truffle migration scripts
├── test/ # Smart contract tests
├── truffle-config.js # Truffle configuration
└── package.json # Project dependencies
⚡ Getting Started
-
Clone the repository:
git clone https://github.com/SyedAnusali/Real-World-Dex.git cd Real-World-Dex -
Install dependencies:
cd dex-frontend npm install -
Start the frontend:
npm start
-
Deploy contracts (optional, for development):
cd .. truffle migrate --network <network>
📖 Usage
- Connect your MetaMask or other Ethereum wallet.
- View the order book and balances.
- Place buy/sell orders using the form.
- Open the live trading modal for recent trades and a price chart.
📄 License
This project is licensed under the MIT License.
🙌 Acknowledgements
Author SYED ANUS ALI |BLOCKCHAIN DEVELOPER|DAPPS DEVELOPER|WEB3 ENTHUSIAST|