Commit Graph

1742 Commits

Author SHA1 Message Date
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
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 3ae91f479b pass correct position to share modal 2022-02-14 14:41:40 +11:00
saml33 065371f8bc new share card design 2022-02-14 13:53:10 +11: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
tjs e203a02c1c disable social share if avg entry price is null 2022-02-13 13:26:57 -05: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
tjs f4ba160686 share position modal 2022-02-08 13:50:44 -05: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
Tyler Shipe 2b9d3945b5 add showAll prop to Chart component 2022-01-05 22:58:08 -05:00
saml33 c2f4cd9fc7 add top holders to token info 2022-01-06 13:59:05 +11:00
Nicholas Clarke 4ce7397738 Add PNL to performance tab 2022-01-05 15:58:10 -08:00
Tyler Shipe d8129aa5fc add default swap chart values 2022-01-04 16:46:38 -05:00
Tyler Shipe 7e16507288 fix market details useEffect dependency list 2022-01-04 15:56:14 -05:00
Tyler Shipe bb170ebcb3 flip swap chart when usdc and usdt inputs 2022-01-04 14:48:49 -05:00
saml33 326fb1fc95 new menu label 2022-01-04 15:12:46 +11:00
saml33 9bc00530ef switch rate button 2022-01-04 13:01:08 +11:00
Tyler Shipe e3f4d81e9b add back mono icons 2022-01-03 20:50:12 -05:00
saml33 ca608521b7 fix coingecko rate compare 2022-01-04 11:35:24 +11:00
ImpossiblePairs 0a587edc26
Risk calculator v3 (#79)
* Push risk calculator to branch

* Fixed Enclosing on updatePriceValues

Fixed incorrect enclosing of updatePriceValues

* Clean up and commenting

* Update USDT slider response and asset/liability tabulation

* Update value assignment encapsulation error

* Risk Calculator feedback and bug fixes

* Slider Range updated to 0 - 350%

* Add icons, feedback, open orders toggle

* Remove unnecessary console log

* Update precision and short scenario summary

* Push risk calculator to branch

* Fixed Enclosing on updatePriceValues

Fixed incorrect enclosing of updatePriceValues

* Clean up and commenting

* Update USDT slider response and asset/liability tabulation

* Update value assignment encapsulation error

* Risk Calculator feedback and bug fixes

* Slider Range updated to 0 - 350%

* Add icons, feedback, open orders toggle

* Remove unnecessary console log

* Update precision and short scenario summary

* Add mangoCache check

* use getStaticProps in calculator

* allow loading unowned accounts w/ risk-calculator

* add risk calculator new bubble

* Percent move liquidation no longer relative to slider

Co-authored-by: Tyler Shipe <tjshipe@gmail.com>
Co-authored-by: Maximilian Schneider <mail@maximilianschneider.net>
2022-01-03 16:20:45 -08:00
Tyler Shipe 0573ad86f1 clear output fiels when input is cleared 2022-01-03 12:44:29 -05:00
Tyler Shipe 401a78bbd0 Merge branch 'main' into swap-v2 2022-01-03 12:28:48 -05:00
saml33 2375035cd2 slippage settings modal 2022-01-03 16:05:54 +11:00
saml33 320cd06d76
Account health email alerts (#111)
* create alerts modal

* add translation variables

* translation variables

* handle error states

* add chinese

* limit number of active alerts

Co-authored-by: rjpeterson <r.james.peterson@gmail.com>
Co-authored-by: Maximilian Schneider <mail@maximilianschneider.net>
2022-01-02 20:42:59 -08:00
saml33 9d7ff69500 refresh wallet button 2022-01-03 15:18:31 +11:00
saml33 8b7fff5727 fix conflicts 2022-01-03 12:01:04 +11:00
saml33 a407543558 translations 2022-01-03 11:52:03 +11:00
saml33 aba3118097 tweaks 2022-01-02 23:20:42 +11:00
saml33 f68da5a17b misc fixes 2022-01-01 23:34:46 +11:00
saml33 ba4c9d542a input and output token stats 2022-01-01 14:07:14 +11:00
Tyler Shipe e72447ef28 measure trade page grid after mount 2021-12-31 10:38:42 -05:00
saml33 6e3c852ad0 change chart api data 2021-12-31 23:17:48 +11:00
saml33 5788bc9e89 price chart 2021-12-30 23:03:14 +11:00
rjpeterson 7abb205502 translate swap page 2021-12-29 19:04:55 -06:00
Tyler Shipe 50bd586277 fix scrollbar on swap page 2021-12-29 17:27:36 -05:00
Tyler Shipe 8cfa45c500 add settings modal and route logos 2021-12-29 17:12:43 -05:00
Tyler Shipe 021800f012 allow decimals in swap input 2021-12-29 15:46:26 -05:00
Tyler Shipe 04883b3841 fix error with float values in swap 2021-12-29 15:38:58 -05:00
Tyler Shipe 8b3b55fc8e fix scrollbar on trade page and enable measureBeforeMount on trade grid 2021-12-29 15:03:04 -05:00
Tyler Shipe 1f41c7c826 fix scrollbar 2021-12-29 14:39:58 -05:00
Tyler Shipe 29651a3fb0 settle all should loop through each position 2021-12-29 14:32:41 -05:00
Tyler Shipe 41fa096294 use latest mango client to add confirming transaction notification 2021-12-29 13:39:17 -05:00
saml33 f8d51200d4 routes concept 2021-12-29 22:52:18 +11:00
Tyler Shipe 05bd420fce restrict ui error body length and handle null values on account page 2021-12-29 01:39:32 -05:00
saml33 a8e33e46b2 flash wallet draw on first use 2021-12-29 12:07:37 +11:00
saml33 384cec140b swap info tooltips 2021-12-29 11:35:47 +11:00
tjshipe 64f820afb7
Merge pull request #115 from blockworks-foundation/show-deposit-after-intro
show deposit modal after intro tips
2021-12-28 17:52:37 -05:00
tjshipe 9c2a8f097f
Merge pull request #114 from blockworks-foundation/ImpossiblePairs-patch-1
Flush lines on market change
2021-12-28 17:42:45 -05:00
tjshipe 63c17348ba
Merge pull request #116 from blockworks-foundation/interest/funding-charts
show hourly stats when only 1 day of data
2021-12-28 17:41:50 -05:00
tjshipe 2bd9fbe428
Merge pull request #113 from blockworks-foundation/show-refresh-for-intro
show refresh button when no account
2021-12-28 17:39:23 -05:00
tjshipe f70e2c7bcb
Merge pull request #122 from blockworks-foundation/swap-styling
Swap styling
2021-12-28 17:37:59 -05:00
Tyler Shipe cd49edd0b6 add error boundaries to app.tsx 2021-12-28 17:22:50 -05:00
Tyler Shipe d0fb21b90c use theme for bg color in trading view loading screen 2021-12-28 15:03:53 -05:00
saml33 5b79690039 show/hide rate info 2021-12-28 22:46:41 +11:00
saml33 5db9359c4a fix broken docs links 2021-12-28 10:02:07 +11:00
Tyler Shipe 4371cf28f3 fix infinite refresh maybe 2021-12-27 12:25:08 -05:00
saml33 a646861929 add wallet draw 2021-12-27 22:25:30 +11:00
saml33 4335fd124b update styles 2021-12-27 20:46:50 +11:00
Maximilian Schneider 2074783559 update v1 mango url 2021-12-26 21:01:39 -07:00
dd 9e4ad312f7 upgrade mango-client to support optimized settlePnl and reduce retry interval to 15s; implement more optimized settlePnl 2021-12-25 12:23:04 -05:00
Tyler Shipe dca90fe340 reset trade page grid local storage key to fix refresh bug 2021-12-24 14:39:20 -05:00
Nicholas Clarke 1e42f2aded Add account performance tab to the account page 2021-12-23 15:05:44 -08:00
Tyler Shipe c503b21f0a upgrade jup ag npm pkg 2021-12-22 19:39:57 -05:00
Tyler Shipe 389376d565 add better logic check for description 2021-12-20 12:05:45 -05:00
Tyler Shipe b5e3de18ac show error notification for 30 secs 2021-12-20 10:46:03 -05:00
Tyler Shipe 35d709a164 refresh token balances 2021-12-20 01:23:57 -05:00
Tyler Shipe 394b92792c show confirm modal after approving swap 2021-12-19 15:30:03 -05:00
Tyler Shipe 0578903bb6 default to zero wallet balance in swap ui 2021-12-19 15:23:35 -05:00
Tyler Shipe f842bb54d8 improvements to swap ux 2021-12-19 15:21:18 -05:00
Tyler Shipe 2c1f67e226 decimals on swap form 2021-12-19 13:47:05 -05:00
Tyler Shipe 8506a77c7f show more decimals on swap price 2021-12-19 13:43:49 -05:00
Tyler Shipe b16849b5ef add coingecko stats 2021-12-19 13:17:43 -05:00
Tyler Shipe 55d3909829 add null check for item address
null chell

moar

hide max button if not connected

fetch balances

fixes

improve swap perf
2021-12-19 01:25:33 -05:00
Tyler Shipe 9b37735e3b remove spl-token-registry package and use jup-ag token list
downgrade eslint

more eslint downgrade

remove swap page as a test

add back swap form

moar tests

try

add back jup form

remove unused import
2021-12-18 16:06:54 -05:00
saml33 7c857ca974 show hourly stats when only 1 day of data 2021-12-18 22:19:57 +11:00
saml33 23c5aeabc7 show deposit modal after intro tips 2021-12-18 10:28:09 +11:00
ImpossiblePairs 5484f9144f
Flush lines on market change
Updated drawlines() on market refresh to flush lines first if present.
2021-12-17 15:10:27 -08:00
Tyler Shipe 0f13c748e4 add jupiter ag swap 2021-12-17 16:02:02 -05:00
Tyler Shipe 6ea9a2b37e add check for description in notification 2021-12-17 14:52:07 -05:00
Tyler Shipe d9f26f58ab don't display unrealized pnl until breakEven price exists 2021-12-17 13:46:03 -05:00
Tyler Shipe e033d84a5d show confirmation timeout errors longerso txid is easier to read 2021-12-17 11:20:48 -05:00
saml33 d98b095d16 show refresh button when no account 2021-12-17 20:51:54 +11:00
Tyler Shipe 79f15aa6a8 redraw lines after changing market 2021-12-14 20:10:18 -05:00
Tyler Shipe a08b1d7e8e call updateOpenOrders after canceling an order 2021-12-14 19:56:02 -05:00
tjshipe 485e26c6fe
Merge pull request #76 from blockworks-foundation/30-day-interest-chart
30 day interest and funding charts
2021-12-14 17:50:46 -05:00
Tyler Shipe ae58aa5712 remove scrollbar at full height 2021-12-14 16:57:58 -05:00
Tyler Shipe a49beb02ac remove recent market trade clearing 2021-12-14 10:06:03 -05:00
saml33 677596f84d fix conflicts 2021-12-14 22:50:22 +11:00
saml33 9b7fa7a539 add slippage presets 2021-12-14 21:03:54 +11:00
saml33 33ae76ac98 adjust panel heights on smaller breakpoints 2021-12-14 19:59:02 +11:00
Tyler Shipe e1eb407eb6 clear recent tables list after switching markets 2021-12-13 18:29:16 -05:00
saml33 2fbcdf9887 add avax mono icon 2021-12-14 10:22:34 +11:00
Tyler Shipe a0ce1e9b48 convert icons.jsx to icons.ts 2021-12-13 16:31:42 -05:00
Tyler Shipe 42cdbf25ca fix invalid JSX in icons.jsx 2021-12-13 16:30:45 -05:00
saml33 588747b3aa add bnb, dot and luna icons 2021-12-13 14:14:50 +11:00
Tyler Shipe ac818e5a5d add flag to show and hide notifications 2021-12-09 16:21:53 -05:00
Tyler Shipe cebb6f98a2 add error logging 2021-12-09 12:36:17 -05:00
Tyler Shipe 714de8e34f update srm fees 2021-12-08 12:27:48 -05:00
saml33 ee4b5f3b2d update sub-tab bg color 2021-12-08 22:40:41 +11:00
saml33 0ea93d142e fix: deposit value chart loading state 2021-12-08 22:29:54 +11:00
saml33 6ac2993cfc fix: stop deposit/withdraw modal multiple renders 2021-12-08 21:36:10 +11:00
saml33 670712ed98 fix: null selectedAccount error 2021-12-08 21:01:55 +11:00
Tyler Shipe f0edd15fef move state out of parent components that were causing additional renders 2021-12-07 23:14:00 -05:00
saml33 03c9710103 improve sub-tabs layout 2021-12-08 15:00:02 +11:00
saml33 58113fa863 hide export button on trade history 2021-12-08 10:10:12 +11:00
saml33 8acb039630
Merge pull request #100 from Mango-Heroes/export-csv
Export History, Funding, and Interest data to CSV file
2021-12-08 10:01:09 +11:00
saml33 46d90744e4 fix conflicts 2021-12-07 22:22:05 +11:00
tjshipe 1a8c7608b7
Merge pull request #98 from blockworks-foundation/modify-order
modify limit order from open orders table
2021-12-06 18:07:39 -05:00
saml33 42b4dbe373 add updateopenorders after modify 2021-12-07 10:02:07 +11:00
Tyler Shipe 5a7a95842b always show liq price in account info 2021-12-06 15:14:29 -05:00
Yandre 9ab940673c changed timestamps and file names 2021-12-06 14:26:22 -05:00
Tyler Shipe c4135c2498 reload open orders after settling balances 2021-12-06 13:51:40 -05:00
Tyler Shipe 2bee4d154e add unsettled perp positions box 2021-12-06 12:50:15 -05:00
Tyler Shipe 23e8fd23a4 display tx id in timeout errors 2021-12-06 01:48:20 -05:00
Tyler Shipe 855a6e6d58 add ws watching for mangoAccount 2021-12-05 20:13:23 -05:00
Tyler Shipe 26da87acec fix issue with post only and placePerpOrder 2021-12-04 19:31:55 -05:00
Tyler Shipe 9b7f9e2e8a add currency symbol to total funding 2021-12-04 13:59:09 -05:00
Tyler Shipe fb2cc2acb5 add slippage warning for stop loss and take profit 2021-12-03 18:55:26 -05:00
tjshipe b12aada255
Merge pull request #101 from blockworks-foundation/dd/limitioc
Dd/limitioc
2021-12-03 18:39:30 -05:00
Tyler Shipe 5604423709 add loading spinner when claiming mngo rewards 2021-12-03 18:33:28 -05:00
Tyler Shipe 3ce0e1580e use latest mango client 2021-12-03 17:36:34 -05:00
dd 8438df9ccc added logic for warning user about stop loss slippage; Added TODO for tyler 2021-12-03 17:21:21 -05:00
Yandre 5c5d52c7c0 Refactored code per @saml33's suggestion 2021-12-03 16:39:36 -05:00
Tyler Shipe 2a05123784 set reduceOnly false when changing order types 2021-12-03 13:36:31 -05:00
dd c8e62cf926 removed subscribes in market close modal 2021-12-03 13:03:42 -05:00
Tyler Shipe a80f03247f use latest mango-client 2021-12-03 13:01:09 -05:00
dd 007f874563 added range checks for slippage 2021-12-03 12:31:22 -05:00
Tyler Shipe 35df138859 fix link to markets from trade history 2021-12-03 12:29:15 -05:00
tjshipe 8f380933bb
Revert "Mango Heroes NFT Integration" 2021-12-03 11:03:51 -05:00
tjshipe 0aa16f0a8d
Merge pull request #75 from Mango-Heroes/mango_heroes
Mango Heroes NFT Integration
2021-12-03 11:03:44 -05:00
dd 8b7fcd30c1 merged in main 2021-12-03 10:45:29 -05:00
dd 765a7f768e Merge branch 'main' into dd/limitioc
# Conflicts:
#	components/trade_form/AdvancedTradeForm.tsx
2021-12-03 10:40:47 -05:00
saml33 2ee67b4693 merge and default slippage to 2.5% 2021-12-03 21:39:10 +11:00
saml33 7f28a68008 add set custom max slippage 2021-12-03 21:34:10 +11:00
Tyler Shipe 0ae021596c Show reduce only flag for now when doing a market order 2021-12-03 02:38:17 -05:00
dd c99c63db14 Revert "Added 'Z' to time strings sent by history API to be consistent with ISO 8601"
This reverts commit 15e2035fea.
2021-12-03 02:08:41 -05:00
dd 15e2035fea Added 'Z' to time strings sent by history API to be consistent with ISO 8601 2021-12-03 01:18:05 -05:00
dd 60b2c4b92d updated MarketClose to have maxSlippage at 2.5% 2021-12-03 00:15:03 -05:00
Tyler Shipe a8fd63c3e2 clean up stats page 2021-12-02 23:56:57 -05:00
dd 1adb0d8f34 added postOnlySlide 2021-12-02 23:30:59 -05:00
dd 588ae8dd18 Looks like max slippage on perp Market orders is working 2021-12-02 21:38:44 -05:00
Yandre 0f2d073fb1 Fixed issue with Trading tab's filename 2021-12-02 19:39:56 -05:00
Yandre 40e7c2875c Added code to export data to CSV file 2021-12-02 19:37:20 -05:00
dd f248ab7805 Added code for maxSlippage and removal of market order type; Changed mark price to just be book mid. 2021-12-02 17:33:35 -05:00
Yandre 43776f6f03 Pulled latest code from main 2021-12-02 17:14:14 -05:00
Tyler Shipe df98fbacd4 remove console logs 2021-12-02 11:22:13 -05:00
Tyler Shipe 8df197fdb9 try again fixing tv chart 2021-12-02 01:07:34 -05:00
Tyler Shipe f58433ac0b fix useEffect in trading view chart 2021-12-01 21:59:57 -05:00
Tyler Shipe 33c9532a2f only set chart symbol if it changes 2021-12-01 16:05:01 -05:00
Tyler Shipe 120955463b remove filter from orderbook 2021-12-01 15:45:18 -05:00
Tyler Shipe 459c63daa2 expand trading view component by reducing padding 2021-12-01 11:49:28 -05:00
saml33 05ac2e65ad remove fetchmangogroup from cancel/modify functions 2021-12-01 20:21:02 +11:00
Tyler Shipe 5d9b95e72b handle missing token icon in market menu 2021-12-01 02:14:23 -05:00
Tyler Shipe eb1fbb1f15 fix for when wallet pubkey doesn't exist 2021-12-01 01:52:39 -05:00
Tyler Shipe 50c514939c dont disable trade button if not enough sol 2021-12-01 01:18:12 -05:00
tjshipe f91d363158
Merge pull request #93 from rjpeterson/no-sol-notif
disable trade button and show warning when user has no SOL
2021-12-01 01:14:23 -05:00
tjshipe 68e4f4d19d
Merge branch 'main' into update-translations 2021-12-01 01:12:59 -05:00
Tyler Shipe 6488eb6802 fix console errors 2021-12-01 00:38:05 -05:00
Tyler Shipe ef095fad9a even y axis padding on market detail component 2021-12-01 00:04:24 -05:00
Tyler Shipe eb81b20e3f fix trading view flashing when changing markets 2021-12-01 00:00:09 -05:00
Tyler Shipe b9c8dd09d5 use lodash instead of lodash-es 2021-11-30 21:46:23 -05:00
Tyler Shipe 33f49e8049 remove duplicate chart library folder 2021-11-30 20:17:45 -05:00
Tyler Shipe 84233b2a56 improve rerender when cancelling orders for a market other than the one selected 2021-11-30 18:35:49 -05:00
Tyler Shipe 2d824c2213 add lastUpdatedAt to improve useMangoAccount rerendering trigger 2021-11-30 16:04:55 -05:00
Tyler Shipe 4eb7cd3934 forceReload components when mango account is updated in store 2021-11-30 12:32:14 -05:00
saml33 f42d0c0c0f fix daily range label position 2021-11-30 23:00:42 +11:00
saml33 b344769232 improve tablet breakpoint markets menu 2021-11-30 22:51:33 +11:00
Tyler Shipe b1b5477273 reset post only flag when switching trade types 2021-11-29 12:04:50 -05:00
saml33 a936f2070a fix: add transparency to draggable panels 2021-11-29 22:37:48 +11:00
saml33 d565ad5083 fix: add correct market url to open orders table 2021-11-29 22:20:57 +11:00
saml33 33fa3a2f71 add modify order to mobile table 2021-11-29 20:35:00 +11:00
saml33 8da167afa1 modify order from desktop open orders table 2021-11-28 22:19:44 +11:00
Yandre a0cae7d5da Allowed all NFTs to be used as profile picture 2021-11-26 14:17:24 -05:00
rjpeterson 3aa03c3909 disable trade button and show warning when user has no SOL 2021-11-26 00:05:21 -10:00
saml33 9852f26c40 fix translation conflicts 2021-11-26 15:24:14 +11:00
saml33 576f1ed432 add same features to funding tab 2021-11-26 15:17:48 +11:00
Maximilian Schneider 3d1544cc09
add tooltip to country-not-allowed block (#89) 2021-11-25 19:25:50 +01:00
saml33 2398b9392b remove net interest value 2021-11-25 09:50:53 +11:00
Tyler Shipe 7eef75cfdd make liquidation history label for usd perp position clearer 2021-11-24 12:49:06 -05:00
saml33 0bf66f4e54 hide micro values 2021-11-24 21:53:03 +11:00
rjpeterson 6b223e62e1 rebase & add statsperps + account history translation 2021-11-23 22:17:17 -10:00
tjshipe 75226f3f3c
Merge pull request #64 from blockworks-foundation/informative-onboarding
Informative onboarding
2021-11-23 20:39:39 -05:00
saml33 1b04570d21 add spanish translations 2021-11-24 12:00:25 +11:00
tjshipe 8ae27aa62c
Merge pull request #82 from blockworks-foundation/show/hide-reduce-only
hide reduce only when no position or wrong side
2021-11-23 18:19:22 -05:00
saml33 d102a1d3d7 add spanish translations 2021-11-24 10:08:14 +11:00
Tyler Shipe e481e842cd fix liquidation history asset values 2021-11-23 17:52:16 -05:00
Tyler Shipe 451922b015 fix liquidation history unit conversion 2021-11-23 17:39:47 -05:00
tjshipe 76d82bf718
Merge pull request #91 from blockworks-foundation/ts/liquidation-ui
Ts/liquidation UI
2021-11-23 20:37:26 +00:00
Tyler Shipe 93bd67c313 fix liquidation display decimals 2021-11-23 15:37:00 -05:00
Tyler Shipe 796cf35646 cleanup 2021-11-23 15:19:09 -05:00
Tyler Shipe f80cf5e6ed parse liq activity details by activity type 2021-11-23 15:15:55 -05:00
Tyler Shipe ae0cea7083 yarn format 2021-11-23 14:54:11 -05:00
Tyler Shipe 38b893c7ce add liquidation history to account page 2021-11-23 13:58:01 -05:00
dd dc102338e2 fixed ugly open interest display in perps stats; added perpContractPrecision in index.ts 2021-11-23 12:52:27 -05:00
dd 14eacec547 updated liquidity mining info to be more meaningful 2021-11-23 11:37:05 -05:00
saml33 9bc1d16dc4 fix: align positioning of account page radio buttons 2021-11-23 22:12:48 +11:00
Riordan Panayides edac2473fc Allow UK spot trading 2021-11-22 23:54:51 +00:00
saml33 e423dfee6d fix: chart height lg and md breakpoints 2021-11-21 20:51:57 +11:00
saml33 d2b6dab361 add setting to stop orderbook flash 2021-11-21 19:57:13 +11:00
saml33 30ebce4fbb add msol mono icon 2021-11-20 15:09:02 +11:00
saml33 8c3a629d72 fix: markets modal prices 2021-11-20 14:43:31 +11:00
Yandre e7b517bf6e Swapped Mango Heroes URLs to use IPFS dedicated gateway 2021-11-19 19:32:45 -05:00
Tyler Shipe e666ea0f47 fix double highlight of sol 2021-11-19 20:51:01 +00:00
Tyler Shipe a717a4c88c add msol 2021-11-19 20:15:32 +00:00
saml33 96358a078c hide reduce only when no position or wrong side 2021-11-19 14:13:18 +11:00
Tyler Shipe ce5345b588 add liq mining info to stats 2021-11-18 18:13:37 +00:00
Tyler Shipe 45c4f20bd7 use latest client; error msg when depositing all sol; pointer cursor on orderbook 2021-11-18 16:49:48 +00:00
Tyler Shipe ec633992fa fix translation issues; fix pubkey viewing 2021-11-18 13:56:11 +00:00
Tyler Shipe 2f4518cf53 handle when no account history exists 2021-11-17 16:56:39 +00:00
Tyler Shipe 6ed230d900 add deposit and withdraw history to account page 2021-11-17 15:51:17 +00:00
tjshipe 3b5813ac08
Merge pull request #80 from blockworks-foundation/simple-liq-price
Add simple liquidation price to AccountInfo
2021-11-17 11:31:19 +00:00
Tyler Shipe 8558e4bb45 fix mobile market links 2021-11-15 23:39:43 +00:00
Tyler Shipe 6fff247d02 update rpc node list 2021-11-15 14:25:03 +00:00
Tyler Shipe a7ccf430eb update genesys go url 2021-11-15 12:41:40 +00:00
Riordan Panayides b5c7f88c66 Don't display liq price of zero 2021-11-14 22:02:30 +00:00
Riordan Panayides 27b2dfb0d7 Add simple liq price to accountinfo, add some height 2021-11-14 21:43:23 +00:00
Tyler Shipe 010be224e0 remove console logs 2021-11-14 18:57:00 +00:00
Tyler Shipe 92b3ac2ce7 more improvement to load time when switching pages/markets 2021-11-14 18:37:02 +00:00
Tyler Shipe db4aa785fc speed up time between page loads 2021-11-14 14:48:09 +00:00
tjshipe 7b1168dd63
Merge pull request #71 from blockworks-foundation/improve-repay-borrow-flow
improve repay borrow ux
2021-11-14 13:35:33 +00:00
tjshipe 2067c981c8
Merge pull request #70 from dboures/view-other-mangoaccounts
View anyone's mangoAccount
2021-11-14 13:24:50 +00:00
saml33 6fb6f6f46a hide charts when no interest 2021-11-14 20:53:34 +11:00
tjshipe eb39e1cbb1
Merge branch 'main' into order-lines-translation 2021-11-13 17:32:52 +00:00
tjshipe d679288f1b
Merge pull request #74 from blockworks-foundation/add-solflare
add solflare
2021-11-13 16:21:13 +00:00
Maximilian Schneider fb1977e720 disable size too large 2021-11-12 15:40:42 +00:00
saml33 4bf6c410c7 convert time to local 2021-11-12 20:31:52 +11:00
saml33 77acf2d862 add translations 2021-11-12 11:08:58 +11:00
Yandre 4956e28e9a Refactored the code 2021-11-11 11:51:54 -05:00
Yandre f5e0c63af1 Fixed merge conflicts 2021-11-11 09:45:10 -05:00
saml33 d8db2c13f3 add usd values 2021-11-11 23:08:19 +11:00
Yandre 9f66df9bf1 Completed code for Mango Heroes integration 2021-11-10 21:54:23 -05:00
saml33 d216ec1f1a add solflare 2021-11-10 22:46:54 +11:00
Michael Fenn 3c1d0f2458 link market from desktop open orders table 2021-11-09 21:16:03 -05:00
saml33 7bbcbec627 improve repay borrow ux 2021-11-10 11:37:40 +11:00
dboures c5117becf9 fix bug for hiding mangoAccounts selector 2021-11-09 23:43:34 +00:00
dboures 88f803bc04 view other accounts using pubkey in url 2021-11-09 18:17:03 +00:00
saml33 d63536ef2f add open position count 2021-11-09 21:40:07 +11:00
saml33 cca6d84feb fix: add padding-top to table wrapper 2021-11-09 20:24:43 +11:00
saml33 5d3e7d4032 swap buttongroup for max button 2021-11-09 12:49:45 +11:00
saml33 0a14c07d06 chart interest earned/paid over last 30 days 2021-11-08 22:02:30 +11:00
Tyler Shipe bc16c61cb4 add back hourly funding table 2021-11-06 17:00:10 +00:00
Maximilian Schneider db0f206ff9 dont spam db 2021-11-06 13:54:24 +00:00
Maximilian Schneider 3cecd12df0 Revert "start with 1m chart for SOL markets"
Revert "disable 24h volume"
2021-11-06 01:10:25 +00:00
saml33 f274fcae42 show date/time on mobile trade history 2021-11-05 20:55:16 +11:00
saml33 05d8bdd64a add translation keys 2021-11-04 23:25:11 +11:00
saml33 f3ea08c1c1 merge main 2021-11-04 20:17:39 +11:00
saml33 82af972f37 add commas to max borrow amount values 2021-11-04 19:56:06 +11:00
Maximilian Schneider 39e0e8e8f4 start with 1m chart for SOL markets 2021-11-03 22:52:31 +00:00
Maximilian Schneider 76cc6bc5f7 fix linter 2021-11-03 22:47:08 +00:00
Maximilian Schneider 8e80faff7a disable 24h volume 2021-11-03 22:18:17 +00:00
saml33 61a6a65830
Merge pull request #66 from blockworks-foundation/mobile-fixes
fix: mobile styling to accomodate new markets
2021-11-04 08:17:08 +11:00
saml33 41538dcb01 history translation 2021-11-03 23:03:23 +11:00
saml33 30f971cfac fix: mobile styling to accomodate new markets 2021-11-03 22:43:34 +11:00
Tyler Shipe ef7bafe5cd show actual decimals used in trade history table 2021-11-02 12:09:27 -04:00
saml33 859432fdb2 fix: match oracle and markprice decimals to tick size 2021-11-02 20:43:28 +11:00
Tyler Shipe b880220103 fix: show decimals based on tick size in open orders table 2021-11-01 22:13:25 -04:00
Tyler Shipe 5f869716ce fix: fix asset icons on stats pages 2021-11-01 21:13:10 -04:00
Tyler Shipe 61bd862aab fix: handle when no funding data is available 2021-11-01 21:02:04 -04:00
Tyler Shipe 56b7466799 move fees into trade box, prevent wrapping in market menu item 2021-11-01 16:20:30 -04:00
Tyler Shipe b49237df50 updated fees to show ftt-perp fee 2021-11-01 15:49:23 -04:00
tjshipe d049f1faa8
Merge pull request #63 from mfenn/trade-history-market-link
Link to markets from trade history table
2021-11-01 11:44:46 -04:00