Commit Graph

75 Commits

Author SHA1 Message Date
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