Commit Graph

1194 Commits

Author SHA1 Message Date
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
tjs f54af5c787 add ref links 2022-02-14 12:17:11 -05:00
tjs 11f9ef806d create referral page 2022-02-14 12:15:28 -05:00
saml33 c21c3a78a9 default to perp in nav if no favorites 2022-02-14 10:30:25 +11:00
saml33 99948d18ba unbold trade menu category description 2022-02-14 10:23:31 +11:00
saml33 f2c77c4494 fix 24h change in nav 2022-02-14 10:10:18 +11:00
tjshipe 8490ef3bc8
Merge pull request #149 from blockworks-foundation/pan/delegate
Add delegate functionality
2022-02-13 12:40:58 -05:00
tjs 1ecd0c2906 fix funding title 2022-02-13 12:06:05 -05:00
saml33 0feb640c5f address team feedback 2022-02-11 16:16:44 +11:00
tjs 3ad223f95b add types to the store set function 2022-02-10 12:49:59 -05:00
tjs e334948b77 remove transition from menu items for snappier feel 2022-02-09 22:55:57 -05:00
tjs 150e59454e condense top nav bar items 2022-02-09 22:36:32 -05:00
Riordan Panayides 89e9a69ada Fix infinite loop 2022-02-09 16:11:57 +00:00
Riordan Panayides a1009cb6d4 Fix null mangoAccount 2022-02-09 15:48:05 +00:00
Riordan Panayides 0c3c5ada98 Add delegate functionality 2022-02-09 15:11:51 +00:00
saml33 5800f14226 make whole nav item row clickable 2022-02-09 22:42:00 +11:00
saml33 5d28deeb57 add favorites bar and change % 2022-02-09 21:55:54 +11:00
saml33 ba60623b86 add market leverage 2022-02-08 09:25:05 +11:00
saml33 89cd14b375 no results placeholder 2022-02-07 21:57:30 +11:00
saml33 681e188caa fix conflicts 2022-02-07 21:33:22 +11:00
saml33 7f68e7a806 market switch dropdown 2022-02-07 21:28:36 +11:00
tjshipe ff92514483
Merge branch 'main' into with_24h_change 2022-02-06 19:44:51 -05:00
tjshipe 3a3f41c637
Merge pull request #145 from rjpeterson/add-translations
update translations, add names arg to ButtonGroup
2022-02-06 19:37:55 -05:00
Tyler Shipe 0ddcf8c2c2 update order book on trade history change 2022-02-05 16:09:18 -05:00
rjpeterson 070cfd710c update translations, add names arg to ButtonGroup 2022-02-05 14:38:46 -06:00
saml33 a1664d2a58 add/remove favorites 2022-02-05 17:04:07 +11:00
saml33 3a1848faf2 flyout menu 2022-02-05 12:06:20 +11:00
Tyler Shipe 715c8fd26f show deposit and borrow rates even when not connected 2022-02-04 12:57:18 -05:00
Tyler Shipe 181d326f3a add emphasis when hovering on order book line 2022-02-01 20:02:47 -05:00
Tyler Shipe 35829735ef fix MarketSelect highlighting 2022-02-01 19:58:47 -05:00
Tyler Shipe e681432990 tv measureBeforeMount to prevent grid animation 2022-02-01 13:38:05 -05:00
Tyler Shipe 47d0ac6887 reset default market to use new urls 2022-02-01 00:06:13 -05:00
Tyler Shipe 74110b510b hide tv left toolbar; consistent table row heights 2022-01-31 22:51:54 -05:00
Tyler Shipe 9d26689e40 remove unused mobile menu 2022-01-31 19:21:17 -05:00
Tyler Shipe ea1cd60d7a increase info density in user info table 2022-01-31 16:14:08 -05:00
Tyler Shipe 5d99f914dc orderbook decimals should match minOrderSize 2022-01-31 15:22:08 -05:00
Tyler Shipe 3ff9471fa1 move market.txs page to index.tsx 2022-01-31 12:48:48 -05:00
Tyler Shipe 81e81981c5 type fixes 2022-01-31 11:34:43 -05:00
Tyler Shipe a521566873 patch type issue with jup-ag pkg 2022-01-31 11:12:55 -05:00
Tyler Shipe 4a0c77a3d9 increase information density 2022-01-31 10:52:28 -05:00
Tyler Shipe 09272d4266 add check to orderbook highlighting so it only shows selected market 2022-01-30 16:48:36 -05:00
Tyler Shipe 3734ae7062 use new settlePnl in perp positions table 2022-01-29 14:47:20 -05:00
Tyler Shipe 3f33264e57 use latest mango client 2022-01-29 13:56:58 -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 60116512f6 update language for settling pnl 2022-01-24 18:02:43 -05:00
Tyler Shipe a0903522e9 support viewing pubkeys on account interest page 2022-01-24 16:35:58 -05:00
Tyler Shipe b5c924573a handle when missing coingecko api info on swap page 2022-01-24 14:25:08 -05:00
Tyler Shipe d012ccd6ce hide global notification and render perp funding quicker 2022-01-24 12:04:20 -05:00
Tyler Shipe c612cb1058 use regex instead of replaceAll for cross browser support 2022-01-24 10:58:28 -05:00
Brandon Bonipart 32fe8392e7 replaces daily change in MarketDetails with rolling 24hr change. 2022-01-24 07:46:06 -05:00
Tyler Shipe bec1f6acb0 fix swap slippage settings 2022-01-23 17:11:28 -05:00
Tyler Shipe f9d030113e fix swap chart base and quote symbols 2022-01-23 15:03:59 -05:00
Tyler Shipe 7e6a3aca49 fix stats page on mobile 2022-01-23 14:46:58 -05:00
Tyler Shipe 609ba989b6 fix issue with unloaded swap token info 2022-01-22 21:52:39 -05:00
saml33 5736582956 update account bar chart colours 2022-01-22 16:18:51 +11:00
Maximilian Schneider 8388decf3b longer timeouts and SPAM 2022-01-21 16:22:53 -08:00
Tyler Shipe bdd8c3005d add network alert 2022-01-21 16:55:16 -06:00
Tyler Shipe faf82d6ebc hide duplicate deposit withdraw on trade page 2022-01-21 14:42:23 -06:00
tjshipe a538e8aaad
Merge pull request #142 from blockworks-foundation/improve-account-charts
improve account charts
2022-01-21 00:21:29 -06:00
Tyler Shipe a1f3485687 fix pagination 2022-01-20 12:09:19 -06:00
Tyler Shipe c9425df0de wait until mounted before rendering trade page grid 2022-01-20 11:43:18 -06:00
saml33 33c8adf7c6 improve account charts 2022-01-20 13:45:47 +11:00
Tyler Shipe e0a539382e fix trade history pagination 2022-01-19 17:43:50 -06:00
Tyler Shipe 6906d679dd Add view counterparty to trade history 2022-01-19 15:35:53 -06:00
tjshipe 4836191d1c
Merge branch 'main' into swap-top-holders 2022-01-18 17:27:32 -06:00
tjshipe ccf803260b
Merge pull request #140 from rjpeterson/add-missing-translations
fill in missing zh & zt-tw translations
2022-01-18 17:25:41 -06:00
rjpeterson 029aecf869 remove TOTRANSLATE tags 2022-01-18 15:21:02 -06:00
rjpeterson a7adc23466 update close account translations after changes 2022-01-18 15:14:14 -06:00
rjpeterson 68ce89dcd2 merge from upstream 2022-01-18 14:55:11 -06:00
rjpeterson 1116e7a901 add slippage translations 2022-01-18 14:48:46 -06:00
tjshipe b3a5f5b4c2
Merge pull request #137 from blockworks-foundation/close-account-modal
Copy and styling tweaks (close account)
2022-01-18 13:40:59 -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
rjpeterson fe857554be translate close account modal 2022-01-18 12:16:18 -06:00
rjpeterson 765352741d add TOTRANSLATE tag 2022-01-18 11:22:21 -06:00
rjpeterson cf55bebcf0 add TOTRANSLATE markers 2022-01-18 11:22:21 -06:00
Tyler Shipe 48252772f4 make lg and xl layouts match 2022-01-18 11:00:06 -06:00
saml33 bcae2a3d70 conflicts and translations 2022-01-18 12:54:21 +11:00
saml33 54c32ca964 copy and styling tweaks 2022-01-18 11:00:10 +11:00
Tyler Shipe ac0aa307be fix market list padding 2022-01-17 15:46:04 -06:00
Tyler Shipe 2a29b95033 update recent trades more frequently 2022-01-17 12:44:08 -06:00
tjshipe 4785d4986b
Merge pull request #135 from blockworks-foundation/max/disable-spot-margin
disable spot margin by default
2022-01-16 19:54:24 -06:00
Tyler Shipe 65d8cf78c2 remove duplicate fetch in manual refresh 2022-01-16 19:10:54 -06:00
Tyler Shipe fe4130ca4b v3.3 supports closing mango accounts 2022-01-16 18:35:47 -06:00
Tyler Shipe 5afff3bd7e Merge branch 'v3.3' into main 2022-01-16 17:27:33 -06:00
Tyler Shipe c307571624 yarn format 2022-01-16 11:13:55 -06:00
Tyler Shipe a0f6f3da0b useMemo on stats perp page 2022-01-16 11:13:55 -06:00
saml33 fa63b8edbe fix typo 2022-01-16 20:05:17 +11:00
Tyler Shipe eb503ff6a1 use latest client to add support for createOpenOrders 2022-01-15 21:32:31 -06:00
Tyler Shipe 5d550e58b3 remove cluster env var and link explorer txs to correct cluster 2022-01-15 20:00:34 -06:00
Tyler Shipe 8c674ec1fd fix deposit notification when init new account 2022-01-15 19:08:42 -06:00
Tyler Shipe babbcc3eb3 show proper notifications on account close 2022-01-15 18:51:45 -06:00
Tyler Shipe 9ba98b1e82 handle notifications when closing account 2022-01-15 18:14:20 -06:00
Tyler Shipe cce1be382f force reload orders when doing a manual refresh 2022-01-15 16:26:17 -06:00
Tyler Shipe b7bf1cdda5 yarn format 2022-01-15 15:25:14 -06:00
Tyler Shipe d648fcc1ac use latest client 2022-01-15 15:18:17 -06:00
Riordan Panayides d73be8835a Update client, fix account value 2022-01-15 14:54:59 -06:00
Riordan Panayides c59b8d5fb0 Add mango redemoption on account close 2022-01-15 14:53:52 -06:00
Riordan Panayides 62a6f58e0e Use emptyAndCloseMangoAccount 2022-01-15 14:53:52 -06:00
Riordan Panayides eeb93c3afb Set account properly, tidy up a bit 2022-01-15 14:51:45 -06:00
Riordan Panayides 02734eb1f5 Add close account modal 2022-01-15 14:51:16 -06:00
Tyler Shipe c98dd9a9e3 handle loading all markets on perp stats page 2022-01-15 12:48:38 -06:00
Tyler Shipe 16d3f2f211 handle missing coingecko info 2022-01-15 12:48:38 -06:00
Maximilian Schneider 68b9ef1709 make spot margin configurable 2022-01-14 11:44:10 -08:00
Maximilian Schneider 9ff52488da disable spot margin by default 2022-01-14 11:28:28 -08:00
Nicholas Clarke 9f2d789394 Minor refactoring. 2022-01-14 10:04:04 -08:00
Nicholas Clarke 32baad4dd2 Merge remote-tracking branch 'origin/main' into account_equity 2022-01-13 12:31:24 -08:00
Tyler Shipe 9c8615725c disable solana status notification 2022-01-13 13:09:07 -06:00
Tyler Shipe dd5ec97935 handle when api data is missing in swap page 2022-01-13 12:52:11 -06:00
Tyler Shipe c264aa4296 report ui errors to discord logs 2022-01-13 10:47:44 -06:00
Tyler Shipe 3271851f5e add perpmarket type checks 2022-01-13 10:38:55 -06:00
Tyler Shipe e1114d7477 handle when perpmarket isnt loaded yet 2022-01-12 16:46:41 -06:00
saml33 c1ba981994 update msol icon 2022-01-12 21:00:36 +11:00
tjshipe 813ad801e0
Merge pull request #129 from blockworks-foundation/max/switch-market-mobile
make market selectable on mobile when clicking market name
2022-01-11 20:34:51 -05:00
tjshipe a7feab1665
Merge pull request #130 from rjpeterson/swap-translations
Update Swap page translations & add dayjs locales
2022-01-11 20:33:25 -05:00
Nicholas Clarke 8c1590f724 Merge remote-tracking branch 'origin/main' into account_equity 2022-01-11 15:47:18 -08:00
ImpossiblePairs 0ed7263f64
Fix reduceOnly checkbox functionality
Updated reduceOnly checkbox functionality so that when the reduceOnly checkbox is active, it uses "percentage x basePosition" instead of "percentage x max" which is only appropriate when reduceOnly is inactive.
2022-01-11 11:59:14 -08:00
saml33 1db53e45f2 hide interest chart when no data 2022-01-11 21:23:57 +11:00
saml33 d2bfb7f905 add change timeframes 2022-01-11 19:33:38 +11:00
saml33 21d60f1284 add search tokens 2022-01-11 13:40:20 +11:00
saml33 db2f507830 add more insight data and buy button 2022-01-11 11:54:50 +11:00
saml33 ef12fb2b7c compact large numbers 2022-01-11 09:59:12 +11:00
Tyler Shipe 1b1679ac17 add tx id to error notifications 2022-01-10 17:25:05 -05:00
Tyler Shipe 187f7d3469 update naming from marginAccount to mangoAccount in trading view component 2022-01-10 13:38:58 -05:00
saml33 9a142a0bf8 fix conflicts 2022-01-10 16:26:10 +11:00
saml33 19714885a5 add performance insights 2022-01-10 16:21:05 +11:00
rjpeterson 0663c321e4 add missed translations. rename common:slippage key 2022-01-09 16:31:56 -06:00
rjpeterson 1e7374fd3c add dayjs locales 2022-01-09 16:06:05 -06:00
rjpeterson d10ade44e0 update swap translations, remove unused "rate" from common 2022-01-09 15:32:57 -06:00
Maximilian Schneider 007393ae5b remove risk calculator from mobile menu 2022-01-08 21:06:53 -08:00
Maximilian Schneider 44488342e4 Merge remote-tracking branch 'origin/main' into max/switch-market-mobile 2022-01-08 21:04:14 -08:00
Maximilian Schneider 2393b2426a make market selectable on mobile when clicking market name 2022-01-08 21:00:35 -08:00
Tyler Shipe c961bf94fe ues latest mango client to fix sending multiple tsx 2022-01-08 23:42:01 -05:00
Tyler Shipe 91ad9ca3b4 show more decimals on swap min received line 2022-01-08 20:44:17 -05:00
Tyler Shipe 24d93d0d89 add padding to global notification component 2022-01-08 19:36:24 -05:00
Tyler Shipe 02eb70bbaf close deposit modal after error catch 2022-01-08 15:52:42 -05:00
Tyler Shipe 981482414e Remove disabled trade button after submitting 2022-01-08 12:27:06 -05:00
Tyler Shipe 028c4f53c8 handle when swap tokenInfo is undefined 2022-01-07 22:29:57 -05:00
Tyler Shipe f5f646bec2 yarn format 2022-01-07 21:59:59 -05:00
Tyler Shipe 5e7e8065f5 add global alert component 2022-01-07 17:52:16 -05:00
Tyler Shipe 7ece053b04 update charts, use y axis domain 2022-01-06 21:35:48 -05:00
Nicholas Clarke 15302e3313 Add showAll prop to performance charts 2022-01-05 23:35:50 -08:00
Nicholas Clarke c9e5c9982e Merge remote-tracking branch 'origin/main' into account_equity 2022-01-05 23:24:44 -08:00