Skip to content

Mystical94/XDC-DeFi-Hackathon-XDCSwap

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

XDC-DeFi-Hackathon

XDCSwap

Project Description

Idea
  • People put their money in banks thinking they have control over it, but in actuality, banks control the money.
  • 'Your Money, Your Control,' is the core of Blockchain Technology which is how Decentralized Exchange work under the hood and this has long attracted me. As laws tighten, more people are turning to decentralised exchanges, discovering the actual value of blockchain and decentralised exchanges.
  • Banks have unlimited control over money and can even refuse to enable customers to withdraw it in an emergency.
  • There is no transparency in the operations of the Banks and everingthing is Centralized
  • What's a better way to exchange your money while still having the ability to contribute to the XDC Ecosystem in the form of the fees which you anyhow have to pay to the big Institutions and banks.
Implementation
  • We have forked UniswapV2 and deployed it on the XDC Network, as well as rendered our own UI, which is being hosted using Spheron Protocol, and link the smart contracts with the UI, allowing users to interact with the protocol.
  • We have also made some modifications to the Uniswap's smart contracts to automatically transmit 0.01% of the total fees for the projects, for a total of 0.08% to the global causes, 0.02% to the protocol for continued development and improvement of the protocol, and 0.3% to the liquidity providers for their contribution.
  • Tools Used: Solidity, Remix, XDC Blockchain, React and Metamask.
Intended Users
  • People who wnat complete authority and transparency over their assets are the intended users as DEXs are decentralized and provides complete transparency and record which is publicaly avaliable to everyone on the Blockchain

Summary

  • XDCSwap enables anyone from anywhere in the globe to purchase and sell cryptocurrencies immediately using XDC Network.
  • XDCSwap will contribute to the projects being build on the XDC Network by providing them with the funds as decided by the community.
  • It does not discriminate anyone and will be open to everyone.
  • XLP Token can be earned by providing liquidity and earning a steady passive income.

URLs

https://xdc-defi-hackathon-xdcswap-f83ca7.spheron.app/

Video Demo

https://youtu.be/Dg4Riuo2y00

☄️ What's next?

  • More features will be introduced, such as farming, staking, and limit orders to make XDCSwap more accessible to everyone and a common destination for everyone's needs.
  • Creating a fully community-driven protocol in which the community votes on all protocol-related decisions.

⚡ Hackathon

This project was made for XDC DeFi Hackathon

Deployed Addresses

🚫 License

This repository includes an unlicensed statement.

Deploying the XDCSwap on local machine

Clone the repository

move into the UserInterface Directory

cd UserInterface

install dependencies using yarn or npm

having some dependency version problems in yarn, so advised to use npm commands instead

yarn

or

npm install

If using Windows then run these two commmands after npm install

rm -r ./node_modules/@uniswap/sdk

And Then this command

cp -r ./forks/@uniswap/sdk ./node_modules/@uniswap/sdk

start the development server

yarn start

or

npm start

build with production mode

yarn build

or

npm run build

About

Swap your cryptos instantly on the XDC Blockchain

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 76.5%
  • Solidity 23.4%
  • HTML 0.1%