Giter VIP home page Giter VIP logo

interface's Introduction

@spectrumlabs/interface

prod test dev

Table of Contents

  1. About The Project
  2. Usage
  3. Roadmap
  4. Contributing
  5. License
  6. Contact
  7. Acknowledgements

About The Project

Please see the ErgoDEX protocol repository for a full description.

How to launch locally?

  1. Clone and checkout dev branch
  2. yarn
  3. yarn start
  4. Open localhost:3000 in Chrome.

Contributing

Contributions are what makes the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/AmazingFeature)
  3. Commit your Changes (git commit -m 'Add some AmazingFeature')
  4. Push to the Branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

License

Distributed under the MIT License. See LICENSE for more information.

interface's People

Contributors

athanaze avatar bdkent avatar deadit avatar deniskv avatar ergowhale avatar frankiepo avatar glasgowm148 avatar imamatory avatar koutelier avatar omahs avatar oskin1 avatar piliponful avatar psuzzi avatar ridel1e avatar spectrumlabsbot avatar trmvenus avatar truelifedev avatar yasha-black avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

interface's Issues

Cannot "increase liquidity" to already established pool pairing

Hello! I have test erg & ada tokens added to the liquidity pool which I added during beta phase. I wanted to add more to liquidity just to play around with the feature but page just stays loading. I am able to reach the "remove liquidity" page just fine but cannot "add liquidity." Just a heads up...keep up the great work!

Cannot transact on Ergodex due to "Insufficient ERG Balance"

After successfully connecting my Yoroi Nightly wallet at https://app.ergodex.io/swap the page header shows the correct wallet ERG balance.
However, in the Swap window after entering my desired swap the lower button says "Insufficient ERG balance" even though the cost of the transaction in ERG is << my wallet balance.

image

MacOS 12.2
Brave Version 1.35.100 Chromium: 98.0.4758.87 (Official Build) (arm64)]
Yoroi nightly 4.10.0

BigInt conversion crashes the website

To reproduce:

  1. open https://beta.ergodex.io/
  2. select Swap tab
  3. select Pool: Erdoge | kushti, Fee 0.40%
  4. in the Erdoge input field type 0.1
  5. screen turns blank, console shows this error:
react-dom.production.min.js:216 SyntaxError: Cannot convert 0.1 to a BigInt
    at BigInt (<anonymous>)
    at A (math.ts:35)
    at Me (walletMath.ts:32)
    at Swap.tsx:126
    at zc (react-dom.production.min.js:262)
    at t.unstable_runWithPriority (scheduler.production.min.js:18)
    at Wi (react-dom.production.min.js:122)
    at Pc (react-dom.production.min.js:261)
    at ze (react-dom.production.min.js:292)
    at Ue (react-dom.production.min.js:49)

image

Redeem LP tokens does not work (TypeError in JavaScript)

Environment:

OS: Linux version 5.4.0-84-generic (buildd@lgw01-amd64-050) (gcc version 9.3.0 (Ubuntu 9.3.0-17ubuntu1~20.04)) #94-Ubuntu SMP Thu Aug 26 20:27:37 UTC 2021
Browser: Vivaldi | 4.0.2312.41 (Stable channel) stable (64-bit)

When clicking the submit button in the redeem view a TypeError is thrown, see screenshots as well

n2tPoolActions.ts:131 Uncaught (in promise) TypeError: Cannot read property 'assets' of undefined
    at e.value (n2tPoolActions.ts:131)
    at Redeem.tsx:87
    at f (runtime.js:63)
    at Generator._invoke (runtime.js:293)
    at Generator.next (runtime.js:118)
    at r (asyncToGenerator.js:3)
    at s (asyncToGenerator.js:25)

Screenshot_20210913_094543
Screenshot_20210913_094505

Need to add settings component

Need to add settings component.

image

DEX Fee minimum is 0.01 (need to add validation also. if no any value in input need to focus on auto button. look how it work on uniswap.io with slippage)

Output address (where you receive tokens after transaction complete). See the picture for the state if wallet is not connected.
image

Slippage (if no any value in input need to focus on auto button) look how it work on uniswap.io
image

Deposit tab crashes page w. BigInt conversion error

Possibly references #48. Posting anyway as the commit closing that ticket touched Deposit.tsx, but the crash remains in the preview at https://ergodex-frontend-296b4ofev-ergolabs.vercel.app/

Steps to reproduce:

  1. Switch to Deposit Tab.
  2. Leave the WT_ERG/WT_ADA pool selected.
  3. Put 0.1 WT_ERG in as the input.
  4. Select the Erdoge/Kushti Pool.
  5. Page crashes with:

react_devtools_backend.js:2842 SyntaxError: Cannot convert 0.1 to a BigInt
at BigInt ()
at A (math.ts:35)
at buttonState.ts:42
at bt (buttonState.ts:75)
at Deposit.tsx:141
at Object.ko [as useMemo] (react-dom.production.min.js:168)
at t.useMemo (react.production.min.js:23)
at xt (Deposit.tsx:140)
at ao (react-dom.production.min.js:157)
at Ho (react-dom.production.min.js:180)

When removing liquidity, there should be a message of some sort to tell the user it has not enough ERG to do the transaction

https://imgur.com/a/KsfMEJx

I have almost zero erg in my wallet (as you can see from the screenshot above).

I tried removing liquidity from the SigUSD/ERG pool, but it looked like the ui bugged because the "Remove liquidity" does nothing.

I know it's because I don't have enough ERG to pay for the transaction, but it would be nice to

a) get a message in the UI telling me so

b) not have a "undefined" javascript error in the console.

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.