spectrum-finance / interface Goto Github PK
View Code? Open in Web Editor NEW🎨 The user interface for the Spectrum Finance protocol
Home Page: https://app.spectrum.fi/
License: Creative Commons Zero v1.0 Universal
🎨 The user interface for the Spectrum Finance protocol
Home Page: https://app.spectrum.fi/
License: Creative Commons Zero v1.0 Universal
If user don't have erg for pay swap fees user do not see any error.
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)
To reproduce:
Swap
tabPool: Erdoge | kushti, Fee 0.40%
Erdoge
input field type 0.1
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)
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.
MacOS 12.2
Brave Version 1.35.100 Chromium: 98.0.4758.87 (Official Build) (arm64)]
Yoroi nightly 4.10.0
Need to change in deposit/redeem forms default dexFee 0.01 to input with min 0.01 amount.
Need to add settings component.
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.
Slippage (if no any value in input need to focus on auto button) look how it work on uniswap.io
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.
If the user inputs a quantity of a token greater than what they have, they receive no feedback. The buttons all simply do nothing. Other errors show up a toast/notify but this simply does nothing.
Might be good to use the bootstrap danger class for the Submit button/use a tooltip on the input/etc.
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!
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:
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)
Hi,
After connecting with Yoroi and doing a transaction from ERG to SIGRSV my wallet balance displays 0 on ergo dex.
Here is my wallet address.
https://explorer.ergoplatform.com/addresses/9gRniqVJvxzaXSkd6tjUynUSb2vbC99jNvoKifDScxDAecH5kys
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.