Skip to content

alexeiASC4/LexDex

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LexDex

A decentralized exchange (dex) for trading cryptocurrencies on Ethereum and Base. For demo purposes, not optimized for production use. Forked from this repo, initially followed this tutorial.

Demo

Demo

GIF created with LiceCap.

Implemented From Tutorial

  • Fetching token prices using Moralis API
  • Automatically shows the amount of buy token you can receive when user inputs sell token amount
  • Several different cryptocurrencies options (limited list)
  • Connection to MetaMask wallet
  • User can change slippage tolerance
  • Switch arrow to switch input token

Custom Changes/Additions

  • Base network support
  • User can switch between Ethereum and Base
  • Use 0x Swap API to facilitate swapping
  • User shown their token balances for the selected tokens upon wallet connection
  • Deployed backend server using Render
  • small UI changes

Ideas for Further Development

  • Full token support for both Ethereum and Base
  • Extensive wallet support (i.e Wallet Connect)
  • Show fiat currency value equivalent underneath token amounts
  • User can choose their preferred fiat currency for fiat currency value
  • Use Wagmi's prepare send hooks for faster UI swap experience
  • Custom gas slippage

About

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • JavaScript 75.3%
  • CSS 19.3%
  • HTML 5.4%