Commit Graph

127 Commits

Author SHA1 Message Date
Tyler Shipe b7bf1cdda5 yarn format 2022-01-15 15:25:14 -06:00
Tyler Shipe d648fcc1ac use latest client 2022-01-15 15:18:17 -06:00
Tyler Shipe c961bf94fe ues latest mango client to fix sending multiple tsx 2022-01-08 23:42:01 -05:00
saml33 6ac2993cfc fix: stop deposit/withdraw modal multiple renders 2021-12-08 21:36:10 +11:00
saml33 03c9710103 improve sub-tabs layout 2021-12-08 15:00:02 +11:00
Tyler Shipe c4135c2498 reload open orders after settling balances 2021-12-06 13:51:40 -05:00
Tyler Shipe 2d824c2213 add lastUpdatedAt to improve useMangoAccount rerendering trigger 2021-11-30 16:04:55 -05:00
Tyler Shipe 4eb7cd3934 forceReload components when mango account is updated in store 2021-11-30 12:32:14 -05:00
saml33 7bbcbec627 improve repay borrow ux 2021-11-10 11:37:40 +11:00
saml33 cca6d84feb fix: add padding-top to table wrapper 2021-11-09 20:24:43 +11:00
saml33 30f971cfac fix: mobile styling to accomodate new markets 2021-11-03 22:43:34 +11:00
saml33 859432fdb2 fix: match oracle and markprice decimals to tick size 2021-11-02 20:43:28 +11:00
rjpeterson bf679598bb
Add next-i18next translation framework & Traditional and Simplified Chinese UI Translations (#54)
* start english localization

* fix typo

* add to english localization

* add some zh translations, fix discrepencies in en

* add more chinese translations

* finish trad chinese translations

* add simplified folder, add locales.json with meta info, add latest ui updates in english

* add latest ui changes for chinese-trad and sort

* fix typo

* convert trad to simp

* Update common.json

* add review changes by @HZ2078

* fix typos

* add latest ui changes

* new ui change & trad-simp convert

* delete monospace from locales.json

* add next-i18next translation framework. Add translations up to #103

* replace more html with traslate tags

* lint & add more phrases

* add missing translations

* add language select dropdown

* add new update transltations

* add latest gui update translations

* add useTranslation to lang switch

* sort common.json, add lang descriptions

* update netlify config to support i18n

* make translations more consistent

Co-authored-by: Hz2078 <92381714+HZ2078@users.noreply.github.com>
Co-authored-by: Tyler Shipe <tjshipe@gmail.com>
2021-10-20 13:42:40 +01:00
Maximilian Schneider 3e65e53101 display deposit & withdraw modal on mobile 2021-10-06 20:08:35 +02:00
saml33 f5f243a9a8
pre-fill spot balance (#41)
* pre-fill spot balance

* fix undefined basePosition
2021-10-03 04:01:06 +02:00
saml33 229d9a8fbf expose pnl on mobile table row 2021-09-28 23:15:36 +10:00
saml33 9123e63344
Trade page mobile (#35)
* mobile styles for chart, position, account

* mobile styles for trade form

* trade page mobile styles

* tab layout

* fix unknown property fill-rule

* test swipeable tabs

* fix container height

* fix orderbook mobile styles

* account page mobile styles

* fix swipeable container height

* stats page mobile styles
2021-09-20 02:36:02 +02:00
Tyler Shipe c1269298b9 use custom endpoint url 2021-09-13 17:14:59 -04:00
tjshipe c135c871bf Merge pull request #18 from blockworks-foundation/perp-stats
Add funding rate and open interest graphs
2021-09-07 23:46:45 +10:00
saml33 6d15756581 add rates to balances table 2021-09-06 21:51:18 +10:00
saml33 67156f49d9 update zebra stripe colors 2021-09-06 16:22:30 +10:00
saml33 65cb1e9c63 add deposit/withdraw buttons to balances table 2021-09-06 16:08:33 +10:00
Tyler Shipe 494ea98e33 add default width; add show zero balances 2021-09-05 20:20:21 -04:00
saml33 50380107cf improve balances table 2021-09-05 16:50:16 -04:00
Tyler Shipe 4f20fc6542 use client reloadMangoAccount 2021-08-31 13:47:03 -04:00
Tyler Shipe 9c3c0677bd perp position pnl using breakeven price 2021-08-30 02:33:41 -04:00
Tyler Shipe 6630e29707 upgrade nextjs 2021-08-30 00:56:27 -04:00
Tyler Shipe 7aa7feadb0 Use latest client to fix rounding issues 2021-08-29 15:15:37 -04:00
Tyler Shipe dde1555b69 don't use floor on potentially negative numbers 2021-08-29 12:55:34 -04:00
dd a07acca6e0 applied floor to deps and net; applied ceil to borrows; don't recommend merging changes in BalancesTable.tsx unless you also make it work with the 0 balances checker etc. But I think as long as we aim to show precision up to native units, these changes are good. 2021-08-28 17:16:10 -04:00
Tyler Shipe 3c47775de9 only clear current market if it's for a different market then whatsin the store 2021-08-23 14:04:18 -04:00
Tyler Shipe 8b310acc9b rename marginDeposits to deposits 2021-08-18 16:43:51 -04:00
Tyler Shipe 5d8bf9969e Finish max withdrawal simulation 2021-08-15 18:36:06 -04:00
Tyler Shipe 9c1f8edf20 rename positions table; fix rounding issues 2021-08-15 13:06:52 -04:00
saml33 df6e97763a format usd values and small ui fixes 2021-08-15 23:31:59 +10:00
Tyler Shipe 99a6184cb1 add leverage 2021-08-14 17:14:43 -04:00
saml33 e810c5c215 improve theme and misc styling 2021-07-29 23:19:32 +10:00
Tyler Shipe be031cc0fe consistency with user info tabs 2021-07-24 16:15:27 -04:00
Tyler Shipe 872c8c3581 add notification after settle all 2021-07-21 17:11:17 -04:00
Tyler Shipe 1a98657c7f simplify margin balances on trade page 2021-07-19 13:13:03 -04:00
Tyler Shipe dda50c8aee update to latest client; use toFixed for I80F48 2021-07-12 12:55:16 -04:00
dd ca85a90b38 changed Balances interface for net; use toFixedUi 2021-07-08 10:16:39 -04:00
Tyler Shipe 0c82280855 fix trade history and refresh data bugs 2021-07-07 17:18:54 -04:00
Tyler Shipe c11890582d handle rounding errors 2021-07-07 16:38:04 -04:00
Tyler Shipe a0ba6f44e8 update notifications, wire up account change modal 2021-07-06 18:04:20 -04:00
Tyler Shipe 974b41f2bf use I80F48 greater than 2021-07-05 13:18:54 -04:00
Tyler Shipe c355f7132e add Borrows page and health ratio 2021-07-05 11:03:57 -04:00
Tyler Shipe e9cdeb8a08 add settle all spot markets to balances 2021-06-24 18:15:23 -04:00
Tyler Shipe 1b02a53314 update naming to match client 2021-06-23 11:32:33 -04:00
Tyler Shipe 0d64771bc2 show spot balances 2021-06-22 23:32:10 -04:00
Tyler Shipe c4ccc37110 more errors 2021-06-20 23:22:45 -04:00
Tyler Shipe 4476a2254e rebate gui hoster fees to users 2021-06-12 13:46:06 -04:00
Tyler Shipe f3a86a5a0c combine quote currency balances now that we're showing all markets 2021-06-09 11:52:32 -04:00
Tyler Shipe e68211a56b adding settle all button temporarily to test issue in ui 2021-06-08 18:49:53 -04:00
saml33 3b5f22b815
User account page (#22)
* layout, overview, start on assets, borrows and open orders

* trade history, sortable data hook for tables, borrow page

* handle deposit and withdraw buttons

* borrow modal ui and integration + settle borrow for individual assets

* in orders balance to asset table and totals, responsive css, new connected wallet button + small tweaks

* account switch/creation flow

* accounts modal, update to usebalances hook

* handle settle, deposit before settle, save last account

* disable borrow/withdraw button when no account
2021-06-05 10:11:44 -04:00
Ralfs d239416364 more cleanup and add txid link when transaction error 2021-05-22 01:00:39 +03:00
Tyler Shipe e3986a26a0 pass in a PublicKey instead of the string 2021-04-25 13:23:06 -04:00
Tyler Shipe 861eb34a76 add settle borrow instruction to deposit transaction 2021-04-22 16:20:57 -04:00
Tyler Shipe 18a794e6b4 update table descriptions 2021-04-22 11:43:20 -04:00
saml33 e1dd3980b8 hide settle button and small styling updates 2021-04-21 22:45:03 +10:00
Tyler Shipe 64600035e5 fix balance display in deposit modal 2021-04-20 18:10:10 -04:00
Tyler Shipe 767facf575 always show settle all button until show/hide logic is updated 2021-04-20 14:45:23 -04:00
Tyler Shipe 7b8035e960 Merge remote-tracking branch 'origin/table-styling' into main 2021-04-20 12:46:41 -04:00
saml33 4285339e5a responsive tables and start on stats page 2021-04-21 00:19:08 +10:00
Tyler Shipe 74d9f70dbf implement withdraw max with borrow 2021-04-20 10:09:25 -04:00
saml33 72e70ad488 market pair header concept 2021-04-19 23:45:59 +10:00
saml33 f66710f14a font styling 2021-04-16 21:50:56 +10:00
Tyler Shipe 9c2ed9bcce remove extra notifications 2021-04-15 16:14:57 -04:00
Tyler Shipe 062ac4105a all the fixes 2021-04-13 19:41:04 -04:00
Tyler Shipe 56c0372a7f wire up trade history 2021-04-13 00:40:26 -04:00
Tyler Shipe 9e67c147bf fee discount tables and more theming 2021-04-12 23:39:08 -04:00
Tyler Shipe 932b52f649 remove xwind and convert to className prop 2021-04-12 12:49:02 -04:00
Tyler Shipe 70d4240b74 Merge branch 'ui-styling' into main 2021-04-12 10:19:37 -04:00
saml33 d9c27cca3c support for more than two themes 2021-04-12 23:32:01 +10:00
Tyler Shipe 799b9d843c add notifications 2021-04-12 00:17:23 -04:00
Tyler Shipe 3c75f8e90d add more ant styling to trade form 2021-04-10 17:28:18 -04:00
Tyler Shipe 4eccd0c74a created balances and fee discounts components 2021-04-07 17:49:37 -04:00