Commit Graph

1449 Commits

Author SHA1 Message Date
Luc Succes 1196cde40a Sets up Sentry & custom ErrorBoundary 2022-03-29 08:21:54 -04:00
saml33 cb8a24e29a rounded order size on mobile 2022-03-29 22:36:28 +11:00
Kieran Gillen a6aaf551dd Merge branch 'main' of github.com:blockworks-foundation/mango-ui-v3 into kieran/strict-nullcheck 2022-03-29 12:02:37 +02:00
Kieran Gillen 285976e005 Fixes validatePubKey for MangoAccountLookup 2022-03-29 11:41:02 +02:00
saml33 b6b89a69ac fix favorites change percentage 2022-03-29 14:27:05 +11:00
saml33 2f03f6bdc0 convert open interest to usd 2022-03-29 12:58:13 +11:00
saml33 3448ed4ae4 datepicker stylesheet 2022-03-29 11:21:03 +11:00
saml33 202276b396 fix multi select styling 2022-03-29 11:11:45 +11:00
saml33 010f6a24b3 fix translations 2022-03-29 10:55:36 +11:00
saml33 36bd258c15 filter trade history 2022-03-29 10:43:42 +11:00
tjs 948ec28c91 yarn lint and yarn type-check 2022-03-28 14:00:36 -04:00
tjshipe f771e3bb7b
Merge branch 'main' into kierangillen/wallet-updates 2022-03-28 13:55:44 -04:00
tjshipe 4e87fe0227
Merge pull request #191 from blockworks-foundation/add-post-and-slide
Adds post only slide input
2022-03-28 13:33:50 -04:00
tjshipe 9a8c9aa6c2
Merge pull request #219 from blockworks-foundation/kierangillen/fewer-large-bal-decimals
Show fewer decimals for large balances
2022-03-28 13:32:48 -04:00
tjshipe 001df1942a
Merge pull request #217 from blockworks-foundation/theme-language-settings
move theme and language switch to settings
2022-03-28 13:24:58 -04:00
tjshipe 76f3d5fdbb
Merge pull request #221 from blockworks-foundation/mobile-more-menu
add mobile more menu
2022-03-28 13:23:29 -04:00
tjshipe c0da683cce
Merge pull request #222 from rjpeterson/update-translations
Update translations
2022-03-28 13:20:39 -04:00
Kieran Gillen 6da4d5f76f Merge branch 'main' of github.com:blockworks-foundation/mango-ui-v3 into kierangillen/wallet-updates 2022-03-28 18:22:13 +02:00
Kieran Gillen 8736900401 Adds more null checks 2022-03-28 17:42:18 +02:00
Kieran Gillen 8c276acfe2 Adds more null checks 2022-03-28 17:13:54 +02:00
Kieran Gillen 2deb4ec75f Adds more null checks 2022-03-28 16:18:35 +02:00
Kieran Gillen 140c26542a Updates TS version 2022-03-28 16:17:54 +02:00
tjs df2a6a6750 use rpc pool url 2022-03-28 01:07:21 -04:00
rjpeterson 041ce5ed76 reuse invalid-address i18n key 2022-03-27 21:40:04 -07:00
tjs 44bcc940c3 use temp rpc url 2022-03-27 23:14:50 -04:00
saml33 7c33b93aff fix referral path 2022-03-28 13:42:45 +11:00
tjs 9f7ca1f437 Revert "Remove serums rpc node as an option from settings"
This reverts commit 7882039959.
2022-03-27 22:38:06 -04:00
saml33 73231c28bc add mobile more menu 2022-03-28 13:32:22 +11:00
tjs 5ea856e2b2 fix error page footer 2022-03-26 20:41:52 -04:00
tjs 573c6dac1e only show 4 decimal places in funding rate 2022-03-26 18:09:22 -04:00
tjs a0e2c49b92 Fixed issue with price when moving trading bar lines 2022-03-25 15:35:56 -04:00
Kieran Gillen 8734f7e181 WIP: Null checking 2022-03-25 17:00:48 +01:00
Kieran Gillen 967aaae925 Fix for trimDecimals 2022-03-25 14:14:54 +01:00
Kieran Gillen ab36053d82 Adds trimDecimals to BalanceTable 2022-03-25 14:11:48 +01:00
saml33 9f17395b6e move theme and language switch to settings 2022-03-25 21:36:53 +11:00
Kieran Gillen b333f16514 Updates copy and uses translation 2022-03-25 10:48:51 +01:00
Kieran Gillen ff000de775 Merge branch 'main' of github.com:blockworks-foundation/mango-ui-v3 into add-post-and-slide 2022-03-25 10:27:13 +01:00
Kieran Gillen be8fb52e93 Switches back to ternaries 2022-03-25 10:26:49 +01:00
Kieran Gillen 794861e3ba Merge branch 'main' of github.com:blockworks-foundation/mango-ui-v3 into kierangillen/wallet-updates 2022-03-25 10:21:25 +01:00
tjs 3e807499b8 Revert "update jup pkg"
This reverts commit e850387628.
2022-03-25 01:59:00 -04:00
tjs f517b1ea43 handle when stats aren't loaded 2022-03-25 00:00:29 -04:00
tjshipe df67f16a6b
Merge pull request #213 from blockworks-foundation/fees-page
add fees page
2022-03-24 23:39:35 -04:00
tjs d9c89945b2 yarn format 2022-03-24 22:05:57 -04:00
saml33 140c80f90d add fees page 2022-03-25 10:56:32 +11:00
Nicholas Clarke d1a44dcc69 sort performance data explicitly 2022-03-24 15:13:38 -07:00
Luc Succes 29c29b874b Merge branch 'main' of https://github.com/blockworks-foundation/mango-ui-v3 into five-oh-five 2022-03-24 16:10:28 -04:00
tjs 1960553ecf fix date table element types 2022-03-24 16:06:59 -04:00
Luc Succes a93e31bb70 Remove unused social buttons 2022-03-24 16:02:18 -04:00
Luc Succes 10f7deec35 Adds discord button 2022-03-24 15:59:38 -04:00
tjs 43fa225645 fix date component 2022-03-24 15:52:42 -04:00
tjshipe d5fbd5c428
Merge pull request #208 from blockworks-foundation/public-key-lookup
Adds MangoAccountSearch to /account
2022-03-24 15:40:11 -04:00
Kieran Gillen ab21545c97 Removes z-index on Jupiter form 2022-03-24 19:49:27 +01:00
Kieran Gillen 0feebb7fd1 Fixes missing Wallet params 2022-03-24 18:53:00 +01:00
Kieran Gillen c1507c234f Merge branch 'main' of github.com:blockworks-foundation/mango-ui-v3 into kierangillen/wallet-updates 2022-03-24 18:41:25 +01:00
Luc Succes a9656b635c Adds 505 error page 2022-03-24 13:25:22 -04:00
Kieran Gillen 1316061853 Updates spacing on MangoAccountSearch 2022-03-24 18:09:18 +01:00
Kieran Gillen 541abac2f9 Adds MangoAccountSearch 2022-03-24 18:03:12 +01:00
Kieran Gillen d7f96bde8b Updates to wallets in ConnectButton 2022-03-24 15:39:24 +01:00
tjshipe 3d517c319f
Merge pull request #206 from blockworks-foundation/fix-invalid-date
fix invalid date
2022-03-24 01:59:30 -04:00
tjshipe 2f9e9f8e1d
Merge pull request #207 from blockworks-foundation/centre-fav-button
centre fav button
2022-03-24 01:59:03 -04:00
tjshipe 9372c1bdb2
Merge pull request #202 from blockworks-foundation/settle-all-positive-perp
Adds RedeemDropdown for Redeem Positive button
2022-03-24 01:58:34 -04:00
tjs af2965098b fix notifications, use accountsdb to fetch mango accts 2022-03-24 01:50:33 -04:00
saml33 db4a6666e5 centre fav button 2022-03-24 15:12:57 +11:00
saml33 45d923c636 fix invalid date 2022-03-24 14:20:19 +11:00
Kieran Gillen 577b917b48 Remove timeout 2022-03-23 19:14:27 +01:00
Kieran Gillen 7c143a7181 Updates RedeemDropdown 2022-03-23 18:51:01 +01:00
Luc Succes 313e1b1ec8 Fix ShareModal 2022-03-23 12:31:30 -04:00
Luc Succes 3c464d5452 Merges main 2022-03-23 12:09:10 -04:00
tjs d6cf870402 only show 4 decimals places in funding rate on markets page 2022-03-23 11:43:20 -04:00
Kieran Gillen 81c83273fe Merge branch 'main' of github.com:blockworks-foundation/mango-ui-v3 into add-post-and-slide 2022-03-23 15:16:30 +01:00
Kieran Gillen 17c6dd784c Refactors wallet in store 2022-03-23 13:18:34 +01:00
Kieran Gillen a827bb71d2 Merge branch 'main' of github.com:blockworks-foundation/mango-ui-v3 into kierangillen/wallet-updates 2022-03-23 11:50:02 +01:00
Kieran Gillen 1a40a98af0 Removes calls to Wallet and Connected through MangoStore hook 2022-03-23 11:42:04 +01:00
tjs 6ddfdbd003 add market percent change to navigation 2022-03-22 22:38:49 -04:00
tjshipe a23687d415
Merge pull request #194 from blockworks-foundation/clarkeni/export_trades
Add full trade history export trades history tab.
2022-03-22 21:51:52 -04:00
tjs 53bca492a7 open download in new tab so wallet is not disconnected 2022-03-22 21:51:20 -04:00
tjshipe e5fc6c5b91
Merge pull request #204 from rjpeterson/update-translations
Update translations
2022-03-22 18:52:52 -04:00
tjshipe 58b53a81b9
Merge pull request #200 from blockworks-foundation/insufficient-sol-message
only show insufficient sol message if connected
2022-03-22 18:50:48 -04:00
saml33 17cdf48c73 remove duplicate component 2022-03-23 09:30:22 +11:00
saml33 57b3331760 Merge branch 'main' into date-format-component 2022-03-23 09:26:25 +11:00
tjs 0aa9b625e2 handle when no selectedMarket on stats page 2022-03-22 10:25:01 -04:00
Kieran Gillen 638db0ed5c Adds custom WalletProvider 2022-03-22 12:27:13 +01:00
Kieran Gillen cd8549b1dc Reverts revert wallet adapter 2022-03-22 10:18:58 +01:00
Kieran Gillen 8f40cce851 WIP adds RedeemDropdown 2022-03-22 09:57:52 +01:00
rjpeterson 630f76b3ba translate apr headers 2022-03-21 22:01:17 -07:00
rjpeterson 6d4aee6cab translate trade types (again?) 2022-03-21 22:00:55 -07:00
rjpeterson 8ea0c6b401 translate funding tooltip 2022-03-21 21:59:48 -07:00
rjpeterson 1b819bf552 translate tps warning 2022-03-21 21:59:26 -07:00
saml33 5dffceba35 fix useeffect dependency 2022-03-22 15:40:38 +11:00
saml33 57c9e34860 fix NaN in closeBorrowString 2022-03-22 15:37:07 +11:00
tjs a0ec3fa0ff show tps warning when tps drops below 1900 2022-03-21 22:03:41 -04:00
saml33 3ec735f2e9 only show insufficient sol message if connected 2022-03-22 12:39:37 +11:00
saml33 0ac4bd1b70 other-pages 2022-03-22 11:20:41 +11:00
Luc Succes 7316a16e46 Merges main 2022-03-21 14:07:25 -04:00
saml33 8fdcabfe79 trade page and account overview 2022-03-21 22:56:37 +11:00
tjshipe 2dcc9a952a
Merge pull request #196 from blockworks-foundation/small-nav-updates
update perp in nav to futures
2022-03-21 00:06:46 -04:00
saml33 36d8d8bbe0 button styling 2022-03-21 15:03:31 +11:00
tjshipe 9ebb0ed849
Merge branch 'main' into clarkeni/export_trades 2022-03-20 22:04:38 -04:00
tjshipe e841d7e0b9
Merge pull request #197 from blockworks-foundation/ts/performance-refactor
Ts/performance refactor
2022-03-20 21:53:30 -04:00
tjs fa7edcc119 switch away from toLocaleString
toLocaleString is quite slow
2022-03-20 21:30:12 -04:00
saml33 45eb9d3ef3 update perp in nav to futures 2022-03-21 11:54:09 +11:00
tjshipe d3d8ab85f4
Merge pull request #190 from blockworks-foundation/show-referral-balance-history
Show referral fees history and total
2022-03-20 20:27:59 -04:00
saml33 c0ddb68ba2 add table date format component 2022-03-21 11:06:13 +11:00
tjs 32fc5052e9 store order lines in mango store and show preferences in local storage 2022-03-20 18:50:05 -04:00
tjs ddd1560dc5 use toFixed instead of toLocaleString in orderbook 2022-03-20 04:07:25 -04:00
tjs 2fd1e8676c more type checks 2022-03-20 04:07:03 -04:00
tjs c4f02153b7 refactor trading view component 2022-03-20 04:06:30 -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
tjs 4548fd0cb9 move oracle price into its own component
reduce rerenders by moving oracle price updates to separate components
2022-03-20 00:04:52 -04:00
tjs 08a2ab531f update headless/ui to improve open close logic of market switcher 2022-03-19 15:39:34 -04:00
tjs 1fce595ef3 Cleanup new navigation elements 2022-03-19 14:34:51 -04:00
tjs 930b68befa remove unused tailwind classes 2022-03-19 14:06:13 -04:00
tjs 4b1653f076 remove market change percent from dropdown nav item 2022-03-19 14:06:02 -04:00
tjs 90efe32714 remove market change percent from favorites 2022-03-19 13:51:56 -04:00
saml33 e9550fddda
Markets Page (#182)
* update api endpoint

* update to new api
2022-03-19 17:57:54 +01:00
saml33 0ff620ef0c match spread precision to price precision 2022-03-19 09:48:05 +11:00
Nicholas Clarke bc4b3e5f7e Add full trade history export trades history tab. 2022-03-18 12:57:17 -07:00
Luc Succes 37b2cc0c02 Merges main 2022-03-18 14:43:14 -04:00
tjs 9ce177ca3d Revert solana wallet adapter 2022-03-18 14:41:23 -04:00
Luc Succes c15969482d Add DateDisplay component 2022-03-18 14:41:19 -04:00
tjs 15fd691526 handle when publicKey is not loaded 2022-03-18 14:32:27 -04:00
saml33 af9505ac22 format numbers 2022-03-18 08:01:16 +11:00
tjs abece0e8b9 update node url key 2022-03-17 16:12:46 -04:00
tjs 7882039959 Remove serums rpc node as an option from settings
It's slow
2022-03-17 16:11:10 -04:00
Kieran Gillen 765fb772a9 Adds flexwrap 2022-03-17 19:16:19 +01:00
Kieran Gillen 6df13a4d85 Fixes dev fetch crash 2022-03-17 17:36:34 +01:00
Kieran Gillen c6dc8777b9 Adds post only slide input 2022-03-17 17:18:48 +01:00
Kieran Gillen 88cb8f2439 Removes log 2022-03-17 15:26:33 +01: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
Kieran Gillen e4ded40c98 Removes WalletSuggestionModal 2022-03-17 12:44:03 +01:00
Kieran Gillen 8d7a7705d4 Updates onConnect call and adds featured wallets 2022-03-17 12:43:09 +01:00
saml33 398f8af80e increase y axis width 2022-03-17 10:04:54 +11:00
tjs f8a0849c40 update zustand store types to work with zustand 3.7 2022-03-16 17:27:26 -04:00
Kieran Gillen 71ce5a2bde Fixes build 2022-03-16 17:00:13 +01:00
Kieran Gillen 63aa1c2556 Adds catch to connect buttons 2022-03-16 15:12:39 +01:00
Kieran Gillen fefabfebf9 Adds WalletSuggestionModal 2022-03-16 13:54:57 +01:00
Kieran Gillen 6b7c9b3ce1 Updates WalletSelect 2022-03-16 13:54:36 +01:00
Kieran Gillen 1a49be860e Updates connect to use wallet adapter directly 2022-03-16 13:54:00 +01:00
saml33 edaa723872 use getprecisiondigits instead of getdecimalscount 2022-03-16 10:16:14 +11:00
Kieran Gillen db5bdd1488 Removes typing on handleConnect 2022-03-15 15:25:14 +01: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
saml33 a25570c384 misc number formatting 2022-03-16 01:12:46 +11:00
Kieran Gillen 95e94f5cb0 Refactor EmptyState component 2022-03-15 15:00:14 +01:00
Kieran Gillen d2b4a878bb Updates componets with useWalletModal 2022-03-15 14:59:32 +01:00
Kieran Gillen 259b0bb1b0 Updates ConnectWalletButton with new wallet adapter 2022-03-15 14:56:38 +01:00
Kieran Gillen b83655a015 Adds WalletProvider 2022-03-15 14:54:26 +01:00
Kieran Gillen d46376649c Updates WalletAdapter type 2022-03-15 14:52:28 +01:00
Kieran Gillen 4fc35db429 Adds component index file 2022-03-15 14:40:54 +01:00
tjshipe 3c5a0d220c
Merge pull request #184 from rjpeterson/update-translations
Update translations
2022-03-14 11:51:19 -04:00
tjs 597c930b98 use blockhash that expires with timeout 2022-03-13 19:26:30 -04:00