Giter Club home page Giter Club logo

muldex-ui's Introduction

Frontend of DEX with liquidity pools

alt text

This page allows users to create a pool, add or remove liquidity, browse through the pools, and exchange two tokens. It was created for the purposes of the competition posted here: ton-blockchain/TIPs#42

Tech Stack

  • TypeScript
  • React + Next.js
  • Redux
  • Node.js v16 (important, otherwise replaceAll might complain from HeadPage.tsx) + Express (for pseudorandom numbers generators stubs to pools and coins)
  • Bootstrap + Sass

Getting Started

First, install the packages:

npm i
# or
yarn install

Then run the development server:

npm run dev
# or
yarn dev

Description

Asynchronous calls to smart contracts have been mocked up. We designed UI for exchanging one token for another token, a UI for creating a pool with two tokens, a UI for adding and removing liquidity from a pool, and a UI with a list of pools and pool statistics.

We used TypeScript + React + Redux stack with some help from Bootstrap and Sass. Express was used to mock up our data.

When considering the design options, we focused on the ton.org site, the UI of standard wallets and bridge, and Responsive Web Design (RWD).

This application is rich in animation, uses brand styles, and has a minimalistic design in Telegram-like style. The only two external dependencies that we are using are react-table and react-select. Bootstraap was minimally used for spacing, alignment, and position (no pre-defined classes for the blocks of code). We've tried to used as much as possible pure CSS for many animations. We've used localStorage for keeping user's preferred Light/Dark theme.

Final Release

Please use the version v1.0.0 for testing & review. Please ignore commits after that tag for contest-purposes. The extra contribution is solely due to our ambition to improve the project.

Post-submisstions improvements

  • v1.1.0 - Animated Search of Pools
  • v1.2.0 - Dark/Light theme toggle, including system preference, and saving user's preferences using localStorage
  • v1.2.1 - Deployment to https://dex-ton-contest.vercel.app (in Node.js v14)
  • Other minor improvements: BaseCard "jumping" fix, Code Quality, console warnings, and RWD.

Possible improvements

  • ToggleBuySellSwitch - styling on Dark Theme
  • BaseTooltip - styling & broken animation on Dark Theme, as well as RWD
  • Liquidity from Pool - settings' icon on Dark Theme
  • Select option items on Dark Theme - hover effect
  • Accessibility plugin, such as Agastya
  • GlobalFilter - center on mobile

Brand assets

https://ton.org/brand-assets

Personal Githubs

Kasia Janiszewska. Daniel Danielecki.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.