Commit Graph

60 Commits

Author SHA1 Message Date
saml33 fa63b8edbe fix typo 2022-01-16 20:05:17 +11:00
saml33 5db9359c4a fix broken docs links 2021-12-28 10:02:07 +11:00
dd 9e4ad312f7 upgrade mango-client to support optimized settlePnl and reduce retry interval to 15s; implement more optimized settlePnl 2021-12-25 12:23:04 -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 d102a1d3d7 add spanish translations 2021-11-24 10:08:14 +11:00
saml33 d216ec1f1a add solflare 2021-11-10 22:46:54 +11:00
saml33 05d8bdd64a add translation keys 2021-11-04 23:25:11 +11:00
saml33 b8d34934d9 setup introjs tour 2021-10-29 23:05:55 +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 97bb02e593
show unsettled pnl (#46)
* display unsettled pnl more dominantly (#43)

* display perp markets that have unsettled pnl

* fix dependencies to a working version

* add back unrealized pnl vs unsettled pnl

* add todo

* settle all

* cleanup

* catch error

* fix crash in market position & refactor

* bugfixes

* correct unrealized pnl
* remove unsetlled pnl from table
* only show unsettled balances after closing position
2021-10-05 22:22:47 +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 53e3f42ba1 remove scroll on position panel 2021-09-21 19:50:53 +10:00
saml33 3e1b872e42 align mobile tab headings 2021-09-20 22:24:42 +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
saml33 6d15756581 add rates to balances table 2021-09-06 21:51:18 +10:00
Tyler Shipe 221b6f06f5 Show negative balance when borrowing 2021-09-03 16:25:09 -04:00
Tyler Shipe d4f643aa02 remove source maps from prod 2021-09-03 12:14:11 -04:00
Tyler Shipe 1aead03db3 remove reloadMangoAccount after settlPnl 2021-09-03 11:54:12 -04:00
Tyler Shipe 4a145f5878 use latest client and only reload mango account after settling 2021-09-03 10:36:53 -04:00
Tyler Shipe a566e6795e fix inconsistent coloring 2021-09-03 03:00:59 -04:00
Tyler Shipe 21b11aaa80 rearrange title order 2021-09-03 02:41:53 -04:00
Tyler Shipe 5b8f4dd155 change interval time and add position market name 2021-09-03 02:39:37 -04:00
Tyler Shipe dbc66498a9 use abs value for notional value 2021-09-02 23:39:24 -04:00
Tyler Shipe c39e20a744 add loading indicator to settle pnl 2021-09-02 17:35:37 -04:00
Tyler Shipe 6833602681 fix balance rounding issue in market balances 2021-09-01 14:43:27 -04:00
Tyler Shipe 6820ac854f update market position faster for perp accounts 2021-08-31 19:28:39 -04:00
Tyler Shipe 7aa7feadb0 Use latest client to fix rounding issues 2021-08-29 15:15:37 -04:00
Tyler Shipe 63e151f516 prevent useOrderbook from updating during market change
fixes white screen error
2021-08-27 20:15:25 -04:00
Tyler Shipe 2ecd1b2122 perp market close position button 2021-08-26 11:58:13 -04:00
saml33 f6ad6fbc56 update close position modal button text 2021-08-26 11:08:21 -04:00
saml33 04904203b0 add market close 2021-08-26 11:08:21 -04:00
saml33 e6c1cfca08 balance rounding in balances panel 2021-08-24 20:09:42 +10:00
Tyler Shipe 9c75a0dbd2 add available balance tooltip; update client for market margin available fix 2021-08-23 15:46:29 -04:00
Tyler Shipe de052ace29 add collateral available and market margin available 2021-08-23 15:35:59 -04:00
Tyler Shipe 1e45e2cc03 use maxWithBorrows amount if maxWithoutBorrows is greater 2021-08-23 14:36:02 -04:00
saml33 246ac3d385 account page tweaks 2021-08-24 00:14:03 +10:00
saml33 a4da1f6272 use balance instead of deposits/borrows 2021-08-22 12:59:54 +10:00
saml33 b8a5b06ef2 market header loaders 2021-08-21 23:02:51 +10:00
saml33 af8db468bf fix position panel padding 2021-08-21 22:11:14 +10:00
saml33 5cc4719ef8 fix panel layout 2021-08-21 11:42:59 +10:00
dd 1b5cac89a1 fixed getPnl and settlePnl functions and updated client 2021-08-20 16:39:44 -04:00
saml33 51741bc9a3 loading states for connect wallet 2021-08-20 23:17:02 +10:00
saml33 cbd0e0b934 fill trade size from position size 2021-08-20 21:51:29 +10:00
Tyler Shipe deda8e58d6 position display tweaks 2021-08-17 17:01:00 -04:00
Tyler Shipe 8da8d0d973 handle when mango group isn't loaded 2021-08-17 11:10:32 -04:00
Tyler Shipe 6d5dbd8265 high side bade if no perp position 2021-08-16 18:40:56 -04:00
Tyler Shipe 1917ba41c7 reuse tooltip for settle pnl 2021-08-16 17:35:16 -04:00
Tyler Shipe 00a85cded2 Merge in styling changes 2021-08-16 13:00:43 -04:00