Commit Graph

1742 Commits

Author SHA1 Message Date
tjs 917ee7c7fc upgrade to latest jup-ag pkg 2022-04-20 17:04:54 -04:00
tjs 5f90105276 upgrade to latest jup-ag pkg 2022-04-20 17:04:16 -04:00
tjshipe 13925d6eff Merge pull request #261 from blockworks-foundation/ts/wallet-update
update to the latest wallet adapter pkgs
2022-04-20 15:33:00 -04:00
tjs b9440dc7fd use all wallets if none are installed 2022-04-20 15:20:10 -04:00
tjs 99a8ce7162 remove genesysgo until new auth is implemented 2022-04-20 11:29:18 -04:00
tjs 9287985d00 remove genesysgo until new auth is implemented 2022-04-20 11:27:12 -04:00
saml33 04aa01ba6a round unsettled balance decimals 2022-04-19 22:13:40 +10:00
tjs c1eda608a1 fix symbol in share modal 2022-04-18 22:49:26 -04:00
tjs fca2e510ef fix share modal calculation 2022-04-18 21:23:40 -04:00
tjs ee05de86b4 remove useless market type check 2022-04-16 14:50:00 -04:00
tjshipe 6f0969a49a
Merge pull request #255 from blockworks-foundation/delete-alerts-close-account
delete active alerts when closing account
2022-04-15 18:15:38 -04:00
tjs 2cd4b11056 add check that url param exists 2022-04-15 17:05:51 -04:00
tjs d03db04d72 add check that url param exists 2022-04-15 17:05:37 -04:00
saml33 be0995af25
add tradingview chart attribution link (#257) 2022-04-15 14:07:38 +02:00
tjs 3e5b8e6caf fix share modal text positioning and calculation 2022-04-13 18:57:58 -04:00
tjs 73fe0f6655 Merge branch 'main' into share-positions-2 2022-04-13 15:55:54 -04:00
saml33 72f73957ea delete active alerts when closing account 2022-04-13 13:33:03 +10:00
tjs fa58e45888 allow setting price with slide limit orders 2022-04-12 13:24:58 -04:00
tjs eba6d0e1ca allow setting price with slide limit orders 2022-04-12 13:23:57 -04:00
tjs ab828b8ba6 hide tx notification if no response after 90s 2022-04-12 11:27:29 -04:00
tjs 808f35ca72 notification timeout should match client timeout 2022-04-12 10:56:28 -04:00
tjs 94fbca60ee notification timeout should match client timeout 2022-04-12 10:53:50 -04:00
tjs b36b3c0e1a show position details on trade page when viewing mngo accts 2022-04-09 20:13:28 -04:00
tjs 4b08912b47 show position details on trade page when viewing mngo accts 2022-04-09 20:13:12 -04:00
tjshipe a0ec154f95
Merge pull request #247 from blockworks-foundation/filter-and-account-buttons
fix button positions on mobile
2022-04-09 13:15:00 -04:00
tjshipe 52c49aac66
Merge pull request #249 from blockworks-foundation/format-price
format price on trade type switch
2022-04-09 13:14:31 -04:00
tjshipe 27ba48c0ae
Merge pull request #250 from blockworks-foundation/fix-ref-warning
fix forwardref warning
2022-04-09 13:13:32 -04:00
tjs 8e2ffe53ed lower threshold for tps warning bar 2022-04-07 15:04:28 -04:00
tjs eb2cfff9b4 use latest mango client; longer max timeout 2022-04-06 15:14:30 -04:00
Luc Succes 020f637751 Remove border 2022-04-06 08:28:01 -06:00
Luc Succes f7801941a5 Merges main 2022-04-06 07:24:51 -06:00
saml33 924fb0d509 fix forwardref warning 2022-04-06 16:18:02 +12:00
saml33 5faea97d9b format price on trade type switch 2022-04-06 15:47:35 +12:00
saml33 c33b1dde15 fix button positions on mobile 2022-04-06 14:25:31 +12:00
tjs d5c2c1e2ba dont check postonlyslide when market ordering 2022-04-05 17:10:45 -04:00
tjs d9b162bd5d Fix orderbook spread decimals 2022-04-05 13:25:09 -04:00
tjs 819c47051e fix deposit func type to support deposits when mango acct doesnt exist 2022-04-05 10:56:46 -04:00
tjs aaa5491896 make sure token info is loaded on swap page 2022-04-05 02:20:17 -04:00
tjs b79f156ece pass in wallet to store actions when needed 2022-04-04 16:28:32 -04:00
tjs 811c56b0af fixes for swap page 2022-04-04 11:48:35 -04:00
tjs 9f0a4a04ea reduce clutter on markets page 2022-04-03 23:54:54 -04:00
tjs ca7bd49ef0 show tps notification when it goes below 1800 2022-04-03 22:50:59 -04:00
tjs 9558917767 dont throw price error when doing post and slide order 2022-04-03 22:47:14 -04:00
tjs bc3f638026 improve notification animations 2022-04-03 22:46:38 -04:00
tjs 2de08088e5 Reduce confirmation notification timeout interval 2022-04-03 22:05:58 -04:00
tjs f92332c8b8 update post and slide text 2022-04-03 18:39:53 -04:00
tjs f8fa59de1d add hover interaction to markets page 2022-04-03 18:39:24 -04:00
tjs 19da795035 remove new badge from topbar 2022-04-03 12:16:11 -04:00
tjshipe c4984524a7
Merge pull request #244 from rjpeterson/update-translations
Update translations
2022-04-02 19:46:13 -04:00
tjshipe a9bfcfc750
Merge pull request #245 from blockworks-foundation/kierna/hide-post-slide
Shows post and slide only on limit
2022-04-02 19:45:41 -04:00
tjs df2ed148b8 maintain chart resolution 2022-04-02 19:32:51 -04:00
Kieran Gillen 991e3930ca Updates show quote img logic 2022-04-02 20:31:03 +02:00
Kieran Gillen 8527a18515 Shows post and slide only on limit 2022-04-02 20:26:00 +02:00
rjpeterson aa4ae86cbf yarn format 2022-04-02 10:03:06 -07:00
rjpeterson 78c87dc821 translate new keys, translate account history headers 2022-04-02 09:31:57 -07:00
tjshipe efecfb5bc3
Merge pull request #239 from blockworks-foundation/qa-testing-1
Small QA changes
2022-04-02 12:27:45 -04:00
tjs 7f2c553f1f only show pnl once it is loaded 2022-04-01 22:20:19 -04:00
Kieran Gillen 84ac501bc2 Hides buttons on mobile 2022-04-01 21:58:54 +02:00
tjshipe 19dd1fe42e
Merge pull request #238 from blockworks-foundation/mango-group-config
Deletes useMangoGroupConfig hook
2022-04-01 14:06:38 -04:00
Kieran Gillen 5d92b4fe6f Merge branch 'main' of github.com:blockworks-foundation/mango-ui-v3 into mango-group-config 2022-04-01 15:00:12 +02:00
Kieran Gillen da52fb5983 Adds devnet tag in nav 2022-04-01 14:53:55 +02:00
Kieran Gillen 0c72cf85f7 Updates price placeholder when post only slide 2022-04-01 14:37:59 +02:00
tjshipe a75c3238f5
Merge pull request #236 from blockworks-foundation/orderbook-tradeform-population
fix decimals on orderbook size/price click
2022-03-31 22:58:26 -04:00
tjshipe 05a2a3c1f6
Merge pull request #231 from blockworks-foundation/sentry
Sets up Sentry & custom ErrorBoundary
2022-03-31 22:56:15 -04:00
Luc Succes 82c348c1da Merges main 2022-03-31 09:24:25 -07:00
Kieran Gillen d9f9c50d5c Merge branch 'main' of github.com:blockworks-foundation/mango-ui-v3 into kieran/strict-nullcheck 2022-03-31 17:24:47 +02:00
tjs 5a2b0e54c9 hide trade history actions on trade page 2022-03-31 11:15:05 -04:00
Kieran Gillen f10a1dbce0 Deletes useMangoGroupConfig hook 2022-03-31 16:58:01 +02:00
Kieran Gillen 9ee5d54f53 Adds transaction failed error 2022-03-31 13:45:19 +02:00
Kieran Gillen dd6349d15d Merge branch 'main' of github.com:blockworks-foundation/mango-ui-v3 into kieran/strict-nullcheck 2022-03-31 12:33:10 +02:00
Kieran Gillen cbad410e61 Fixes disabledTradeButton if post only slide 2022-03-31 12:06:10 +02:00
saml33 61876a8aad fix decimals on orderbook size/price click 2022-03-31 13:52:03 +11:00
tjshipe 6c7952e72e
Merge pull request #230 from blockworks-foundation/mobile-open-orders
rounded order size on mobile
2022-03-30 22:22:31 -04:00
tjshipe b6b7c61505
Merge pull request #235 from blockworks-foundation/add-governance-link
add governance link to more menu
2022-03-30 22:22:08 -04:00
tjshipe 7644f23931
Merge pull request #232 from blockworks-foundation/trade-history-filters
change date picker
2022-03-30 22:21:46 -04:00
saml33 b90a71d369 update governance url 2022-03-31 10:21:15 +11:00
saml33 ba17dd4d99 add governance link 2022-03-31 10:00:04 +11:00
tjs 910641c815 fix more types in advanced trade form 2022-03-30 16:06:55 -04:00
Kieran Gillen 764ea28cb4 Adds more null checking 2022-03-30 19:10:15 +02:00
Kieran Gillen b9b4541ed6 Adds more null checks 2022-03-30 14:42:33 +02:00
Kieran Gillen 39e4a6def5 Adds more null checks 2022-03-30 13:08:05 +02:00
tjshipe 899dfff097
Merge pull request #234 from blockworks-foundation/favorite-markets-key
increment favorite markets key
2022-03-30 00:10:28 -04:00
saml33 9d509cda8b fix dateto timestamp 2022-03-30 14:54:50 +11:00
tjs 962b827869 fix redeem all mngo notifications 2022-03-29 23:51:03 -04:00
saml33 5a2b00b5eb increment favorite markets key 2022-03-30 14:22:50 +11:00
tjs b66f990104 only use lodash that's needed 2022-03-29 22:46:21 -04:00
saml33 7ede39e0fc change date picker 2022-03-30 13:37:39 +11:00
tjshipe 2f8338b3f1
Merge pull request #228 from blockworks-foundation/kieran/lookup-fix
Fixes key validation on /account account lookup
2022-03-29 13:28:29 -04:00
tjshipe 041812ccbe
Merge pull request #225 from blockworks-foundation/favorites-change-percentage
fix favorites change percentage
2022-03-29 13:27:01 -04:00
Luc Succes 9718bf5d38 Merges main 2022-03-29 12:11:23 -04:00
Kieran Gillen 60cb08a5a5 Adds more null checks 2022-03-29 15:02:29 +02:00
Luc Succes 294cc10e8c Merges main 2022-03-29 08:28:08 -04:00
Luc Succes 8dc166d94d Remove comment 2022-03-29 08:23:18 -04:00
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
rjpeterson d8636f3848 update translations 2022-03-13 18:25:15 -05:00
tjs 0a234a94f5 extract getMarketLeverage from component 2022-03-13 14:14:08 -04:00
saml33 0759a47cd2 fix undefined getWeights arg 2022-03-12 20:14:27 +11:00
saml33 d4d3cb1eea move size rounding to hook 2022-03-11 13:02:36 +11:00
saml33 fdf824dc37 round perp size and fix sort 2022-03-11 11:23:30 +11:00
tjs 748690d029 show tps in warning 2022-03-10 10:19:52 -05:00
tjs b4da6110fc warn users when tps is low 2022-03-10 10:04:31 -05:00
tjs db8a0324aa add tailwind prettier plugin; run yarn format 2022-03-09 15:53:11 -05:00
tjs 163193274f remove new badge from referrals 2022-03-09 14:47:56 -05:00
tjs 9ab8c0cc67 show loading state for values in performance chart 2022-03-06 20:01:58 -05:00
tjs c1755aac1d Move export pnl csv to the Account History page 2022-03-06 18:18:22 -05:00
saml33 f280baab23 fix position size on mobile 2022-03-06 14:03:42 +11:00
tjs 4f412f1d97 dont show alert when tps is above threshold 2022-03-04 19:44:58 -05:00
tjs 27bef7a17c change tps threshold 2022-03-04 18:41:24 -05:00
tjs a3cecc2345 increase tps threshold for warning 2022-03-04 18:26:53 -05:00
tjs 8ff0e677d0 fetch current tps and display warning if low 2022-03-04 18:24:22 -05:00
saml33 a9e3debc34 hide export pnl when not account owner 2022-03-04 11:38:58 +11:00
tjshipe 7460dbfdf3
Merge pull request #178 from blockworks-foundation/export-pnl
add export pnl function
2022-03-03 16:41:04 -05:00
tjs 482cf7138a add commas to recent trades table 2022-03-03 11:59:21 -05:00
tjs e0bc94898e add commas to account history 2022-03-03 11:45:16 -05:00
tjs d891102e5f upgrade to tailwind 3 2022-03-02 18:04:32 -05:00
saml33 ceca09ff07
Merge pull request #165 from blockworks-foundation/redesign-unsettled-panels
redesign unsettled panels
2022-03-03 09:34:55 +11:00
tjs 5409596fd9 Ensure mangoAccount is loaded before computingValue 2022-03-02 01:02:49 -05:00
tjs 0492e2fe6c load total and hourly account stats asynchronously 2022-03-02 00:53:25 -05:00
saml33 4ae986f583 fix merge conflicts 2022-03-02 14:56:59 +11:00
saml33 d2029ef5f5 use separate api call for export 2022-03-02 13:25:23 +11:00
tjs 5dc40a2078 fix issue with reading pubkey from non phantom wallets on account page 2022-03-01 21:17:47 -05:00
saml33 c38e063ff4 add export pnl function 2022-03-02 12:47:06 +11:00
saml33 7a9dfc2b68 align styles 2022-03-02 11:08:18 +11:00
saml33 6126dce773 hide options after copy image 2022-03-02 09:54:00 +11:00
tjs 59144e727d show timestamps for pnl and account value on account page 2022-03-01 17:24:31 -05:00
tjs c41af04f8e fix type issue with new ExpandableRow props 2022-03-01 14:28:20 -05:00
tjs b6999cd220 add performance chart to account page 2022-03-01 14:06:39 -05:00
tjshipe 46e90570ce
Merge pull request #171 from blockworks-foundation/expandable-panels
align expandable panels
2022-03-01 14:04:52 -05:00
Riordan Panayides 1eab48f26c Allow off-curve addrs, validate on change 2022-03-01 18:49:24 +00:00
Riordan Panayides 2afa5e11dd Fix public key validation 2022-03-01 11:36:43 +00:00
tjs 8a00c334a1 use prop to toggle clickable balance on trade page only 2022-02-28 12:51:31 -05:00
saml33 db548e312d add asset symbol back to unsettled balances 2022-02-28 12:51:31 -05:00
dd 9a17174094 integrate placePerpOrder2 2022-02-28 12:51:16 -05:00
dd 22244b8989 Let user prefill spot trade form using negative balance; Add link to spot market from BalancesTable 2022-02-28 12:51:10 -05:00
dd 46236fa9e5 fix float rounding issues in market position, positions table and orders table 2022-02-28 12:51:10 -05:00
dd e49025c9a2 Set proper decimals in BalancesTable; 2022-02-28 12:51:10 -05:00
dd df2b2eb9ba fix display of taker fee and maker fee decimals 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
tjshipe 046eda09f2
Merge pull request #173 from rjpeterson/add-keep-break
Add keep-break class to solve issues with CJK display
2022-02-28 11:46:10 -05:00
Haiyang Wang d2796a6c45
fix typo in orders table 2022-02-27 19:56:12 +08:00
rjpeterson 221feede2c fix localization errors around the word "new" 2022-02-26 11:38:31 -06:00
rjpeterson 9e028cbacf add keep-break class to prevent CJK display issues 2022-02-26 11:37:32 -06:00
tjs dbaa1d25e5 upgrade to latest jup ag client 2022-02-26 01:59:24 -08:00
Riordan Panayides f4eef23528
Improve delegate modal (#162)
* Fix account page modal input styles

* Add disabled state to IconButton

* Update delegate modal copy, add clear input button

* Fix docs link

* Replace info lost in merge
2022-02-25 17:41:15 +01:00
saml33 5117617259 add size and referral qr 2022-02-24 15:50:52 +11:00
saml33 28d7de115c show size and referral 2022-02-24 13:53:57 +11:00
saml33 cbf7047bb7 align expandable panels 2022-02-24 12:37:31 +11:00
saml33 0501557b88 remove your borrows when not connected 2022-02-24 09:49:02 +11:00
saml33 3a627d874e add icons to more menu 2022-02-23 20:51:27 +11:00
saml33 6442dc853e make menus consistent 2022-02-23 14:36:05 +11:00
saml33 8d5d80cb93 change grid columns 2022-02-23 13:13:57 +11:00
saml33 25c86cee72
Merge pull request #168 from blockworks-foundation/select-fixes
change select.option spacing
2022-02-23 12:47:02 +11:00
saml33 0872a970df change select.option spacing 2022-02-23 12:33:48 +11:00
tjshipe 9717cff30c
Merge branch 'main' into missing-translations 2022-02-22 19:51:35 -05:00
saml33 8a556f63a8 merge main 2022-02-23 10:34:54 +11:00
saml33 b5efc88d30 use label component on form elements 2022-02-23 10:30:54 +11:00
rjpeterson deb577e818 let new alerts button width expand, delete duplicate locale keys, move spanish into alerts.json 2022-02-22 17:03:27 -06:00
tjs 4f9d3b47c5 fix type error, remove unused translation 2022-02-22 11:53:05 -08:00
tjshipe 8f0fdd2bc1
Merge branch 'main' into missing-translations 2022-02-22 13:54:44 -05:00
saml33 28a3bd900e tweak styling 2022-02-22 21:42:25 +11:00
saml33 b1108c43cb
Merge pull request #164 from blockworks-foundation/align-drop-menus
align styling of drop menus, selects
2022-02-22 20:02:40 +11:00
saml33 6dc240038b redesign unsettled panels 2022-02-22 16:22:21 +11:00
saml33 21b4c54c77 bold chart value 2022-02-22 12:24:28 +11:00
saml33 cfe1462790 fix mobile only selects 2022-02-22 11:59:41 +11:00
saml33 1767d89845 align styling of drop menus, selects 2022-02-22 11:17:07 +11:00
saml33 f367b47829 fix hover style 2022-02-21 21:21:16 +11:00
saml33 0d6058d807
Merge pull request #163 from blockworks-foundation/semantic-headings
semantic headings
2022-02-21 16:33:32 +11:00
saml33 2ae323ee1c semantic headings and styles 2022-02-21 14:55:13 +11:00
saml33 fccc48850d fix z-index 2022-02-21 13:00:58 +11:00
saml33 b65b6cf4ba fix broken input styles 2022-02-21 09:18:23 +11:00
saml33 b5298b5a28
Merge pull request #159 from blockworks-foundation/button-styles
Button styles
2022-02-21 09:11:23 +11:00
saml33 0be93958c7 align input styles 2022-02-20 22:38:40 +11:00
saml33 9702b0c393 button colors 2022-02-20 15:55:56 +11:00
saml33 9201be6213 Merge branch 'main' into button-styles 2022-02-20 15:55:32 +11:00
saml33 267b042b08 Merge branch 'main' into nav-styling-tweaks 2022-02-20 14:18:44 +11:00
saml33 2539d6f10a button colors 2022-02-20 14:16:57 +11:00
rjpeterson 0e16c3cb7b fix type that prev commint unfixed 2022-02-19 15:58:21 -06:00
rjpeterson f9e22ae8de make button wider so chinese text doesnt overflow, fixes #139 2022-02-19 15:53:56 -06:00
tjs 90c60294c4 disable 24hr change 2022-02-19 16:47:39 -05:00
rjpeterson f84c753db7 compartmentalize alerts translations, add other overlooked translations 2022-02-19 15:35:43 -06:00
saml33 cb2c9c7a3e nav styling tweaks 2022-02-19 20:30:27 +11:00
tjs 7ca2e6d31f update navigation transitions and ordering 2022-02-18 17:24:06 -05:00
tjs b233208b1d increase z index on trade nav panel 2022-02-18 11:32:29 -05:00
tjshipe 732c44dd39
Merge pull request #148 from blockworks-foundation/trade-nav-concept
Trade page navigation concept
2022-02-18 10:48:53 -05:00
saml33 9ee9b52306 min-height and favorite hover 2022-02-18 15:09:01 +11:00
saml33 97d6a4f993 implement pr feedback 2022-02-18 14:32:48 +11:00
saml33 a8e4e3ba29 remove markets page 2022-02-18 12:04:56 +11:00
saml33 8209cee64a style unavailable placeholder 2022-02-18 11:09:55 +11:00
saml33 c0b440996d add favorite market 2022-02-18 09:54:37 +11:00
saml33 6580b27bfe add missing % sign 2022-02-18 09:42:27 +11:00
saml33 95d73df500 add markets page 2022-02-17 20:44:28 +11:00
tjs 3e23633818 update wallet token decimals on swap page 2022-02-15 22:57:47 -05:00
tjs b58efe147b remove duplicate import 2022-02-15 11:36:07 -05:00
tjs c11d5101df only set position size on reduce only click if using percents 2022-02-15 11:20:53 -05:00
tjs 73c3d111cf Merge branch 'main' into share-positions-2 2022-02-15 10:44:10 -05:00
tjs bd4c4145b5 uses referrerpk if it exists for modifyPerpOrder 2022-02-14 21:32:31 -05:00
tjs 2824be1e8d handle when no referrer 2022-02-14 17:47:19 -05:00
tjs f1e26c9a17 better layout for always showing program details 2022-02-14 15:48:40 -05:00
tjs f0e59a72b8 fix types 2022-02-14 13:33:09 -05:00
saml33 c525cce66f responsive layout 2022-02-14 12:17:38 -05:00
saml33 839efc730c page content and styling 2022-02-14 12:17:21 -05:00