Commit Graph

263 Commits

Author SHA1 Message Date
tjs af2965098b fix notifications, use accountsdb to fetch mango accts 2022-03-24 01:50:33 -04:00
tjs d62fb894e1 reset trade history in wallet 2022-03-20 21:48:07 -04:00
tjs fa7edcc119 switch away from toLocaleString
toLocaleString is quite slow
2022-03-20 21:30:12 -04:00
tjs 32fc5052e9 store order lines in mango store and show preferences in local storage 2022-03-20 18:50:05 -04:00
tjs 2fd1e8676c more type checks 2022-03-20 04:07:03 -04:00
tjs 4c0eb2114e refactor trade history to use the mango store
reduces rerenders
update usePerpPosition with tradeHistory
2022-03-20 04:06:30 -04:00
saml33 e9550fddda
Markets Page (#182)
* update api endpoint

* update to new api
2022-03-19 17:57:54 +01:00
tjs 9ce177ca3d Revert solana wallet adapter 2022-03-18 14:41:23 -04:00
tjs 45127eb8c0 use latest mango client 2022-03-18 10:34:46 -04:00
saml33 af9505ac22 format numbers 2022-03-18 08:01:16 +11:00
Kieran Gillen 23b1feb941 Merge branch 'main' of github.com:blockworks-foundation/mango-ui-v3 into add-wallet-adapter 2022-03-17 13:06:28 +01:00
tjs f8a0849c40 update zustand store types to work with zustand 3.7 2022-03-16 17:27:26 -04:00
Kieran Gillen 0a033e50d8 Merge branch 'main' of github.com:blockworks-foundation/mango-ui-v3 into add-wallet-adapter 2022-03-15 15:14:52 +01:00
Kieran Gillen d46376649c Updates WalletAdapter type 2022-03-15 14:52:28 +01:00
tjs 597c930b98 use blockhash that expires with timeout 2022-03-13 19:26:30 -04:00
tjs 98a60b6f67 add check that market is loaded 2022-03-11 13:37:52 -05:00
saml33 d4d3cb1eea move size rounding to hook 2022-03-11 13:02:36 +11:00
tjs 59978a9973 fix bug with returning the correct market to decode bookside 2022-03-09 17:46:10 -05:00
tjs 5654ddcb9e parse account info on update 2022-03-09 17:39:57 -05:00
dd e49025c9a2 Set proper decimals in BalancesTable; 2022-02-28 12:51:10 -05:00
dd 5d7599ef97 optimizations; Add more commas to large numbers; NO MERGE STILL UNFINISHED 2022-02-28 12:51:03 -05:00
tjs 7ca2e6d31f update navigation transitions and ordering 2022-02-18 17:24:06 -05:00
tjs 138a664c77 fetch market info on an interval 2022-02-18 11:39:43 -05:00
saml33 97d6a4f993 implement pr feedback 2022-02-18 14:32:48 +11:00
tjs 86874a87e0 show fee discount in trade form 2022-02-14 17:23:57 -05:00
tjs d31dbc5bb8 use latest client; update fee display 2022-02-14 16:42:32 -05:00
tjs f54af5c787 add ref links 2022-02-14 12:17:11 -05:00
tjs 3ad223f95b add types to the store set function 2022-02-10 12:49:59 -05:00
tjs 366617dc5c fix type errors 2022-02-09 11:28:57 -05:00
Tyler Shipe 0ddcf8c2c2 update order book on trade history change 2022-02-05 16:09:18 -05:00
Tyler Shipe a6d432f32d utilize zustand for perppositions 2022-01-27 22:57:18 -05:00
Tyler Shipe 8f27393c22 reload open orders more frequently 2022-01-27 12:24:15 -05:00
Tyler Shipe 2355dfcaa6 store openOrders in zustand 2022-01-27 11:57:36 -05:00
Tyler Shipe 351bc5d11d ensure mango account is loaded before connecting wallet 2022-01-26 13:37:02 -05:00
Tyler Shipe a1f3485687 fix pagination 2022-01-20 12:09:19 -06:00
Tyler Shipe 1c2e89b00d don't geo block on devnet 2022-01-20 11:48:42 -06:00
Tyler Shipe e0a539382e fix trade history pagination 2022-01-19 17:43:50 -06:00
Vidor Gencel b59abf5f80
Profile Picture Support (#134)
* render profile picture

* update profile picture package

* Include PFP only if set

* no need to wait pfp to load

Co-authored-by: Maximilian Schneider <mail@maximilianschneider.net>
2022-01-18 10:26:13 -08:00
Tyler Shipe 679064d8a2 only update mango account at most once per sec and check last slot 2022-01-17 14:23:06 -06:00
Tyler Shipe fe4130ca4b v3.3 supports closing mango accounts 2022-01-16 18:35:47 -06:00
Tyler Shipe 9ba98b1e82 handle notifications when closing account 2022-01-15 18:14:20 -06:00
Tyler Shipe e1114d7477 handle when perpmarket isnt loaded yet 2022-01-12 16:46:41 -06:00
Tyler Shipe bf9215562b fix error boundary env var 2021-12-30 21:00:42 -05:00
Tyler Shipe 0f13c748e4 add jupiter ag swap 2021-12-17 16:02:02 -05:00
Tyler Shipe 714de8e34f update srm fees 2021-12-08 12:27:48 -05:00
Tyler Shipe f0edd15fef move state out of parent components that were causing additional renders 2021-12-07 23:14:00 -05:00
Tyler Shipe 5a7a95842b always show liq price in account info 2021-12-06 15:14:29 -05:00
Tyler Shipe 855a6e6d58 add ws watching for mangoAccount 2021-12-05 20:13:23 -05:00
dd 60b2c4b92d updated MarketClose to have maxSlippage at 2.5% 2021-12-03 00:15:03 -05:00
dd 588ae8dd18 Looks like max slippage on perp Market orders is working 2021-12-02 21:38:44 -05:00