Coder Social home page Coder Social logo

aeternity / dex-ui Goto Github PK

View Code? Open in Web Editor NEW
5.0 7.0 4.0 2.53 MB

Superhero DEX - the official UI for the first automated market maker (AMM) on æternity.

Home Page: https://dex.superhero.com

License: ISC License

JavaScript 32.91% HTML 0.29% Vue 64.77% SCSS 1.92% Dockerfile 0.11%
superhero

dex-ui's Introduction

DEX UI

This repo contains an interface to the Superhero decentralized exchange (DEX).

The Superhero DEX consists of multiple parts:

Access

Find a hosted version of the interface over at aepp.dex.superhero.com or feel free to run it on your own machine following these instructions:

  1. clone repo
git clone https://github.com/aeternity/dex-ui.git
cd dex-ui
  1. install the dependencies (nodejs 16+ and npm 7+ required)
npm i
  1. run the interface
npm run serve

Feedback

For bug reports or feature requests, please use the issues: https://github.com/aeternity/dex-ui/issues/new/choose

If you simply want to provide feedback, please use the following form: https://form.jotform.com/221174404956355

Contribute

If you wish to contribute to this repository, please read the CONTRIBUTE.md.

License

This repository is licensed using the ISC license

dex-ui's People

Contributors

atanaskrondev avatar bogdan-manole avatar cedriknikita avatar davidyuk avatar dincho avatar github-actions[bot] avatar ifaouibadi avatar kenodressel avatar lfh2msn avatar mmpetarpeshev avatar romart007 avatar tmrdlt avatar venimus avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

dex-ui's Issues

Save needed stuff in the localStorage

Atleast we may save an address, until the user decides to remove permission. But some other state fields could be also worth saving.

  • address
  • token list

Handle Errors in Global Modal

See superhero wallet for reference. On unhandled error show the error popup.

show the error message only, not the stack for now.

Build Add Liquidity Modal

without second token:
image

with second token:
image

with amount selected:
image

during approval:
image

after approval:
image

after clicking supply:
image

after clicking confirm supply:
image

after approving:
image

Setup technical step by step document

Create a document that contains step by step instructions (technically speaking). It should contain:

  • endpoints that have to be called
  • data that has to be handed to the endpoints
  • data transformations that need to be made
  • results of these calls

They should be available for the following processes:

  • provide liquidity
  • remove liquidity
  • swap
  • obtain estimate for pricing
  • collect fee? (cloud happen automatically)

Make List of Provided Liquidity functional

  • store the pairs in the state on adding liquidity
  • persist the relevant state
  • fetch the amount of liquidity tokens from the contract
  • explain to the user that the information shown here might be incomplete because its only a local list
  • allow to import provided liquidity

Legal Disclaimer

Discuss legal disclaimer aka use at your own risk, we dont take any liability.

Build Header

Build the logged in / logged out header.

Visually we orient ourselfs on the newest version of uniswap V3 (https://app.uniswap.org/#/swap).

Regarding breakpoints:

  • Mobile First
  • Desktop should be fine
  • make sure it does not break inbetween

Both should contain:

  • Logo of dex (TBD) top left
  • Info Icon (Like about page in superhero wallet)

Logged out contains:

  • "connect to wallet" button

image

Logged in contains:

  • address & balance

image

Build Basic Tab Model

start with the pool view:

  • should contain a button
  • should be able to switch "Tabs" to swap

Create Router01 Contract

Create a router contract to facilitate swaps & liquidity add / removal reference implementation --> we decided on 01 because 02 only additionally facilitates a deflating tokens which are not implemented on ae anyways atm.

Build Swap View

initial state
image

with second token & amount
image

confirmation
image

waiting
image

success
image

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.