CryptiFlux is a decentralized exchange (DEX) application built with React and Ant Design. It allows users to pool and swap tokens seamlessly on the Aptos blockchain. The application supports multiple users, token pooling, and token swapping with a simple and intuitive interface.
- Liquidity Pooling: Users can pool their tokens into the liquidity pool.
- Token Swapping: Users can swap tokens with each other through the liquidity pool.
- User Management: Supports multiple users with distinct token balances.
- Responsive UI: Built with Ant Design for a clean and responsive user interface.
- React: JavaScript library for building user interfaces.
- Ant Design: React UI library for designing aesthetically pleasing and responsive applications.
- TypeScript: Superset of JavaScript that adds static types, enhancing code quality and maintainability.
- Aptos Blockchain: Secure, scalable, and reliable blockchain for decentralized applications.
Ensure you have the following installed:
- Clone the repository:
git clone https://github.com/yourusername/DEXApp.git cd DEXApp
- Install dependencies:
npm install # or yarn install
- Start the development server:
npm start # or yarn start
- The application should now be running at
http://localhost:3000
.
To build the application for production, run:
npm run build
# or
yarn build
This will create an optimized build in the build
directory.
- Initialize the Pool:
- Select a user from the dropdown.
- Enter the amounts for Token A and Token B.
- Click the "Pool Token" button to add the tokens to the liquidity pool.
- Swap Tokens:
- Select a user from the dropdown.
- Enter the amount of tokens to swap and select the token type.
- Click the "Swap Tokens" button to perform the swap.
To change the default token amounts or add more users, modify the users
state in the CryptiFlux
component.
Contributions are welcome! Please follow these steps:
- Fork the repository.
- Create a new branch (
git checkout -b feature/your-feature-name
). - Make your changes.
- Commit your changes (
git commit -m 'Add some feature'
). - Push to the branch (
git push origin feature/your-feature-name
). - Open a pull request.
This project is licensed under the MIT License. See the LICENSE
file for details.
For any questions or feedback, please contact Pratham Vishwakarma at [email protected]