An open API service indexing awesome lists of open source software.

https://github.com/smitbhuva15/cap-stone

capXchange is a decentralized exchange (DEX) that enables secure deposit and withdrawal of ERC-20 tokens. Users can create, cancel, or fill token swap orders while maintaining fairness, as only creators can cancel their trades. A small fee is applied on each successful transaction, rewarding the exchange owner.
https://github.com/smitbhuva15/cap-stone

apexcharts chai etherjs hardhat reactjs redux-toolkit solidity tailwind-css

Last synced: 2 months ago
JSON representation

capXchange is a decentralized exchange (DEX) that enables secure deposit and withdrawal of ERC-20 tokens. Users can create, cancel, or fill token swap orders while maintaining fairness, as only creators can cancel their trades. A small fee is applied on each successful transaction, rewarding the exchange owner.

Awesome Lists containing this project

README

          


capXchange


- capxchange is a **decentralized Exchange (DEX) platform**.
- It allows users to **deposit tokens, withdraw tokens, create/cancel orders, and execute trades** with a fee mechanism for the exchange owner.


## Features

1. **Deposit ERC-20 Tokens**
- Users can securely deposit their ERC-20 tokens into the exchange.


2. **Withdraw Tokens back to User Wallet**
- Users can withdraw their tokens from the exchange anytime.


3. **Create New Trade Orders (Token Swap)**
- Users can create an order to exchange one token for another.
- Example: User A wants to trade 300 CAP tokens for 2 mDAI tokens.
- The order can then be filled by other users on the exchange.


4. **Cancel Orders**
- Users can cancel any order they created if it has not been filled yet.
- Only the order creator is allowed to cancel.


5. **Fill Existing Orders and Execute Trades**
- Other users can fill existing orders created by someone else.


6. **Fee System**
- The exchange charges a small fee on every successful trade


## Tech Stack

### 🔹 Frontend
- **React.js** → Component-based UI framework
- **Tailwind CSS** → Utility-first styling for modern responsive design
- **Redux toolkit** → Global state management for balances, orders, and trades
- **Ethers.js** → Blockchain interaction (connect wallet, call contract functions)

### 🔹 Smart Contracts
- **Solidity** → Powers the decentralized backend logic of CapXchange

### 🔹 Blockchain Development
- **Hardhat** → Development framework for compiling, deploying, and debugging contracts
- **Chai** → Assertion library for writing unit & integration tests


## Website Preview


website demo


website demo


website demo

## ✨ Created By

**Smit Bhuva**
Web3 Developer | Solidity | Full Stack Developer

- GitHub: [Smitbhuva15](https://github.com/Smitbhuva15)
- LinkedIn: [Smit Bhuva](https://www.linkedin.com/in/smit-bhuva-1007ba314/)
- 📧 Email: bhuvasmit1507@gmail.com