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.
- Host: GitHub
- URL: https://github.com/smitbhuva15/cap-stone
- Owner: Smitbhuva15
- License: mit
- Created: 2025-07-16T16:59:58.000Z (11 months ago)
- Default Branch: main
- Last Pushed: 2025-09-02T13:18:14.000Z (10 months ago)
- Last Synced: 2025-09-02T14:23:16.404Z (10 months ago)
- Topics: apexcharts, chai, etherjs, hardhat, reactjs, redux-toolkit, solidity, tailwind-css
- Language: JavaScript
- Homepage: https://capxchange.vercel.app
- Size: 2.16 MB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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
## ✨ 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