Skip to content

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.

License

Notifications You must be signed in to change notification settings

Smitbhuva15/Cap-Stone

Repository files navigation

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

About

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.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published