Commit Graph

416 Commits

Author SHA1 Message Date
Tyler Shipe d51f4419ba clean up notification console logs 2021-08-24 15:43:34 -04:00
Tyler Shipe f46a7cec4b dont validate account name 2021-08-24 14:34:54 -04:00
Tyler Shipe 1c0962031b add notification when sol balance is low and when connecting wallet; disable connect button until walletadapter is loaded 2021-08-24 12:28:25 -04:00
Tyler Shipe d39e52de76 fix NaN under slider on perp side 2021-08-24 10:30:15 -04:00
Tyler Shipe 325b6c2424 fix the max withdraw modal to use client fn 2021-08-24 10:15:12 -04:00
saml33 e6c1cfca08 balance rounding in balances panel 2021-08-24 20:09:42 +10:00
saml33 072f450f18 remove rounding from balances on account page 2021-08-24 16:44:58 +10:00
Tyler Shipe 72eda925c1 use event-history-api for spot trades 2021-08-23 18:37:48 -04:00
Tyler Shipe 251b0a1d8d use the correct pk to get the perpmarket 2021-08-23 18:19:20 -04:00
Tyler Shipe 3f1e91399e add stat totals 2021-08-23 17:09:16 -04: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
Tyler Shipe 1bbdc2a12e remove total asset and total liabs vals 2021-08-23 14:21:23 -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 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 fbd6eeda3b use loaded perp market to display open interest 2021-08-23 13:58:37 -04:00
Tyler Shipe a7b5c8a96a more tweaks to improve orderbook websocket 2021-08-23 13:21:20 -04:00
Tyler Shipe b3cc717c86 use context slot to sync orderbook updates 2021-08-23 13:12:48 -04:00
saml33 246ac3d385 account page tweaks 2021-08-24 00:14:03 +10:00
saml33 945f8a1a90 add orders/position count 2021-08-22 22:45:10 +10:00
saml33 12db262794 remove extra 0 from orderbook price/size 2021-08-22 14:03:43 +10:00
saml33 287b71a476 remove rounding from orderbook markprice 2021-08-22 13:56:48 +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
saml33 978f72a381 remove double % on health ratio 2021-08-21 08:11:19 +10:00
dd 1b5cac89a1 fixed getPnl and settlePnl functions and updated client 2021-08-20 16:39:44 -04:00
Maximilian Schneider 40bb8ec7e5 reduce health ratio overflow 2021-08-20 17:42:50 +02:00
Maximilian Schneider e7ff1b7234 re-enable connect wallet button 2021-08-20 17:42:50 +02:00
dd 41022ac45b Fixed funding rate display issue; can be improved once stats server fixed 2021-08-20 11:01:18 -04:00
Maximilian Schneider 62c578d28d correctly set max lev 2021-08-20 15:41:43 +02:00
Maximilian Schneider e7557e3101 fix issue on account load 2021-08-20 15:37:49 +02:00
Maximilian Schneider 739d805310 add max button to leverage slider 2021-08-20 15:34:04 +02:00
Maximilian Schneider e68d128d8f add available margin & leverage slider 2021-08-20 15:34:04 +02:00
Maximilian Schneider 2ed82f222b refactor for clarity 2021-08-20 15:34:04 +02: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
Maximilian Schneider f59a9fed73 remove broken total borrows display 2021-08-20 12:07:51 +02:00
Maximilian Schneider b0d4b9353a display recent trades 2021-08-20 04:47:25 +02:00
Maximilian Schneider 665b824fa4 enable perp trading view 2021-08-20 04:20:36 +02:00
Tyler Shipe 56d9eb00ab fix perp position table 2021-08-19 20:14:04 -04:00
Tyler Shipe 8103a3cc85 disable leverage slider 2021-08-19 17:46:31 -04:00
saml33 afaa6b85ec consolidate new account flow to one step 2021-08-19 16:15:25 +10:00
Tyler Shipe 56b590589e fix new sub account modal 2021-08-18 21:05:16 -04:00
Tyler Shipe 2036b77de3 pass in decimal count to leverage slider 2021-08-18 20:37:50 -04:00
Tyler Shipe 1c64a8a252 show position closing in leverage slider 2021-08-18 20:33:45 -04:00
Tyler Shipe 8b310acc9b rename marginDeposits to deposits 2021-08-18 16:43:51 -04:00
Tyler Shipe 9bfa880be0 add padding to slider 2021-08-18 16:31:22 -04:00