Commit Graph

71 Commits

Author SHA1 Message Date
Tyler Shipe 4a0c77a3d9 increase information density 2022-01-31 10:52:28 -05:00
Tyler Shipe 3f33264e57 use latest mango client 2022-01-29 13:56:58 -05:00
saml33 5d3e7d4032 swap buttongroup for max button 2021-11-09 12:49:45 +11:00
saml33 ce2e32ee1a
add buttongroup and interest info to deposit/withdraw (#59) 2021-10-26 15:25:36 +01:00
rjpeterson 25bb4413bf add missing translations to withdrawModal 2021-10-21 21:57:16 -10: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
Tyler Shipe 4f20fc6542 use client reloadMangoAccount 2021-08-31 13:47:03 -04:00
Tyler Shipe c6e09c1ba1 fix alpha modal issue 2021-08-30 16:40:32 -04:00
Tyler Shipe 7dd454c23c handle rounding issues when withdrawing max with borrows 2021-08-29 20:25:36 -04:00
Tyler Shipe 7aa7feadb0 Use latest client to fix rounding issues 2021-08-29 15:15:37 -04:00
dd 471b07396d now applying .floor() to getAvailBalance 2021-08-28 16:33:41 -04:00
Tyler Shipe 66bf66fc7c remove unused utils fns 2021-08-25 10:23:30 -04:00
Tyler Shipe f08e323e6c remove console logs 2021-08-24 16:01:43 -04:00
Tyler Shipe 325b6c2424 fix the max withdraw modal to use client fn 2021-08-24 10:15:12 -04:00
Tyler Shipe 1e45e2cc03 use maxWithBorrows amount if maxWithoutBorrows is greater 2021-08-23 14:36:02 -04:00
Tyler Shipe 5e51ac46c3 add leverage to acct modal; fix rounding in withdraw modal 2021-08-23 14:18:34 -04:00
Tyler Shipe dd074685e3 fix max withdraw with no borrows 2021-08-17 15:52:33 -04:00
Tyler Shipe 7cf80b566c remove blur from modals 2021-08-16 13:59:44 -04:00
Tyler Shipe 5d8bf9969e Finish max withdrawal simulation 2021-08-15 18:36:06 -04:00
saml33 3c64b9f059 remove blur on success action 2021-08-02 15:14:24 +10:00
saml33 1f82731a85 add unsettled balances ui 2021-08-01 22:48:15 +10:00
Tyler Shipe f5e97aa7dc use liab weight in max borrow 2021-07-27 13:05:05 -04:00
Tyler Shipe be031cc0fe consistency with user info tabs 2021-07-24 16:15:27 -04:00
Tyler Shipe dda50c8aee update to latest client; use toFixed for I80F48 2021-07-12 12:55:16 -04:00
Tyler Shipe 53163e07a8 add more account values 2021-07-07 00:34:21 -04:00
Tyler Shipe 54b6230314 fill in account asset values 2021-07-06 20:13:17 -04:00
Tyler Shipe a0ba6f44e8 update notifications, wire up account change modal 2021-07-06 18:04:20 -04:00
Tyler Shipe c5ce8e965f render the accounts page 2021-07-05 14:21:57 -04:00
Tyler Shipe c355f7132e add Borrows page and health ratio 2021-07-05 11:03:57 -04:00
Tyler Shipe 671e50eba0 wip: max borrow calculations 2021-07-01 13:35:47 -04:00
Tyler Shipe 1b02a53314 update naming to match client 2021-06-23 11:32:33 -04:00
Maximilian Schneider 275fafa4c4 refactor deposit modal 2021-06-17 14:03:47 -04:00
saml33 e14350e624
disable 0 bal assets for deposits and fix withdraw validations (#25) 2021-06-11 14:23:51 -04:00
Maximilian Schneider 7fb654f2c9 withdraw modal shows now more decimals 2021-06-05 18:01:01 -04:00
Tyler Shipe a1d572048b removed leverage indicator on deposit and withdraw modals 2021-06-05 14:01:00 -04:00
Tyler Shipe 39a9507756 default borrows to off when withdrawing 2021-06-05 13:05:40 -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
saml33 8865278212
remove placement prop (#20) 2021-05-31 14:41:48 +03:00
saml33 407bdd8c0d
increase dropdown box max-height (#19) 2021-05-27 16:44:25 +03:00
Maximilian Schneider 7558165c27
Auto create associated token account on withdrawal (#18)
* Auto create associated token account on withdrawal
* simplify withdraw and default to USDC
2021-05-27 16:40:11 +03:00
saml33 da7af24d2b
Use asset balances instead of accounts for withdraw (#17)
* use asset balances instead of accounts for withdraw
* borrow zero balance assets
2021-05-27 14:35:15 +03:00
Ralfs d239416364 more cleanup and add txid link when transaction error 2021-05-22 01:00:39 +03:00
Ralfs 7a110f9ea5 Fixed build bugs 2021-05-20 23:43:18 +03:00
Ralfs a58a32e9a1 Lint fixes 2021-05-20 14:21:36 +03:00
Maximilian Schneider 935129c45e
simulate withdraw operation so we can preview equity & coll (#10)
* show margin details in withdraw ui

Co-authored-by: saml33 <slam.uke@gmail.com>
2021-05-18 19:27:09 +03:00
saml33 806b527502
Bring alert details and notifications into the UI (#5)
* hook to get alerts, add triggered alerts to alerts list
* alerts page, count unseen alerts, clear alerts from nav view
* consolidate components, add custom value to alert modal dropdown, sort margin accounts alphanumerically
* ring bell when count increments and ping animation on count
* create/fetch alerts from store, filter by account, populate modal state from triggered alert
* fix alert sorting
* enable MA selection also for re-activate
2021-05-07 22:41:26 +03:00
saml33 23220e3555 trigger set alerts modal from margininfo 2021-05-02 00:02:21 +10:00
Tyler Shipe a0ef8f1e8e better handling of rounding issues in borrow and withdraw 2021-04-29 17:27:13 -04:00
Tyler Shipe 6fbd949b9f Use the vip-api endpoint 2021-04-29 13:42:53 -04:00
Tyler Shipe 64437f6a85 remove percent reduction in borrow and withdraw transaction 2021-04-28 23:15:42 -04:00