Commit Graph

397 Commits

Author SHA1 Message Date
saml33 17156fd87f move swap borrow amount info 2022-12-08 22:15:16 +11:00
tjs 20af1810b0 wip: perp position settle funds 2022-12-08 01:47:32 -05:00
tjs b53c4830f9 use new funding rate api endpoint
fix balance underline; simplify health impact by removing confusing parenthesis
2022-12-07 22:24:18 -05:00
saml33 6c58288995 handle null values in chart 2022-12-08 10:19:18 +11:00
tjs 41223e846c allow setting the amount out in jupiter swap 2022-12-07 16:33:38 -05:00
saml33 4088011a71 fix chart font size 2022-12-07 09:52:36 +11:00
saml33 7b58e9ce6d add token stats charts 2022-12-06 22:58:22 +11:00
saml33 5102129a49 add total deposit/borrow value charts 2022-12-06 14:23:22 +11:00
saml33 8dd1363212 olive and high contrast theme 2022-12-05 21:59:56 +11:00
saml33 1768483ca1 use theme css vars instead of hardcoded rgba 2022-12-04 20:21:32 +11:00
saml33 e553b07dbd more theme color changes 2022-12-02 22:28:46 +11:00
saml33 4660d04041 add order value to trade form 2022-12-02 13:16:59 +11:00
saml33 a9526cff9e merge main 2022-12-02 10:14:10 +11:00
saml33 2b27464d6e use select for theme selection 2022-12-01 16:21:28 +11:00
saml33 4af775a1c3 use new theme vars 2022-12-01 14:46:37 +11:00
saml33 209490752c better var names and hsl colors 2022-12-01 14:32:32 +11:00
saml33 02495833e5 filter by spot market base 2022-11-30 16:30:18 +11:00
saml33 443858dc36 add market favorites 2022-11-30 15:01:55 +11:00
saml33 44022ae602 token vault balance warnings 2022-11-27 23:36:12 +11:00
saml33 f9f86b529d add slippage to trade form 2022-11-25 21:10:23 +11:00
saml33 75f2fd720b componentize settings page 2022-11-25 13:39:14 +11:00
saml33 c355c3c13a add setting for number scroll 2022-11-24 13:30:20 +11:00
saml33 37df58f959 use settings for slider or buttons to swap 2022-11-23 14:31:50 +11:00
saml33 973e72ca2e round balance table click to minordersize/ticksize 2022-11-23 12:45:26 +11:00
saml33 890c9f23aa open orders mobile 2022-11-23 10:43:25 +11:00
saml33 51fde8723a interest earned rounding 2022-11-22 16:14:35 +11:00
tjs 529709f30e slightly better error messages 2022-11-21 17:06:40 -05:00
saml33 378c86ef8b open orders mobile styling 2022-11-21 21:37:31 +11:00
saml33 e83e26c17d align balance table formatting to token list 2022-11-21 16:01:44 +11:00
tjs 372fe381d1 fix trade form; more eslint refactor 2022-11-20 18:35:59 -05:00
tjs cb0b90dfb5 refactor to use mango group hook 2022-11-20 15:32:38 -05:00
tjs 2608a661e5 refactor to use selected market hook 2022-11-20 15:20:27 -05:00
saml33 aa244735b1 use $ value for chart change 2022-11-20 22:23:23 +11:00
saml33 7f57e59f44 use table components 2022-11-20 21:44:14 +11:00
tjs 561eba493b fix all eslint errors 2022-11-19 14:20:36 -05:00
tjs 203c571bc5 use jupiter api and hooks 2022-11-18 18:19:04 -05:00
tjs 5727d0bc7f add a useMangoAccount hook 2022-11-18 12:09:39 -05:00
tjs 185ab4748b revert to coingecko for swap and prices.
we'll use birdeye only for candles
2022-11-18 11:29:37 -05:00
saml33 777e020648 add low sol balance warnings 2022-11-18 15:43:23 +11:00
tjs 27f821c51c simplify balance click feature 2022-11-17 17:47:22 -05:00
tjs 1de3e4756e render Balances component 2022-11-17 17:28:02 -05:00
tjs 1d95b280e2 update balances table name to be clearer 2022-11-17 17:16:45 -05:00
tjs 7b48469827 patch merge issues 2022-11-17 17:08:45 -05:00
tylersssss 6c95cf19fb
Merge pull request #29 from blockworks-foundation/trade-balance-click
populate trade form from balances table
2022-11-17 16:51:08 -05:00
tylersssss 95df906a76
Merge branch 'main' into repay-modal 2022-11-17 16:47:27 -05:00
saml33 8bd4d2e976 fix market price 2022-11-17 20:17:58 +11:00
saml33 c4e55e2a7e fix low sol balance warning 2022-11-17 14:51:08 +11:00
saml33 c9b94f4e55 fix modals 2022-11-17 13:18:50 +11:00
saml33 903884b732 add sol balance hook 2022-11-17 12:53:33 +11:00
tjs e33592fb77 use latest headlessui modal layout 2022-11-16 10:23:44 -05:00
saml33 41e1c16fea add repay borrow modal 2022-11-16 23:14:53 +11:00
saml33 332dacbad3 populate trade form from balances table 2022-11-16 16:09:55 +11:00
tylersssss f78ebae5c8
Merge branch 'main' into use-birdeye-api 2022-11-14 19:59:21 -05:00
saml33 7041b3b4d1 fix trade page responsive 2022-11-14 21:18:38 +11:00
saml33 2650622fe3 add health impact tooltip 2022-11-14 15:56:18 +11:00
saml33 fca7d81dda merge main 2022-11-14 09:57:19 +11:00
saml33 8a6706e142 merge main 2022-11-11 22:39:14 +11:00
saml33 28c0fed1c7 use birdeye for serum market price history 2022-11-05 18:13:24 +00:00
saml33 c1254c9186 add health impact to trade form 2022-11-04 18:55:21 +00:00
saml33 68226acaa0 balances empty state 2022-11-04 13:14:50 +00:00
saml33 bdbad18b9f Merge branch 'main' into onboarding-redesign 2022-11-02 16:24:54 +00:00
saml33 4383fefd1f add copy account address 2022-11-02 15:50:03 +00:00
saml33 f3dc836b0a redirect to account page on new account 2022-11-02 12:58:40 +04:00
saml33 e6ff01a1df clear all notifications 2022-11-02 10:53:26 +04:00
saml33 de32ecd586 basic layout 2022-11-02 08:41:12 +04:00
tjs 9e885f10bb show users order in orderbook 2022-11-01 18:13:02 +00:00
tjs 19e5f2ecb6 fix perp side badge 2022-11-01 15:54:29 +00:00
tjs 7f1461123d show perp open orders 2022-10-31 18:26:17 +00:00
tjs 5f61ad117b use selected explorer from settings 2022-10-31 16:39:33 +00:00
tjs 34e904f9f8 remove logs 2022-10-31 16:39:17 +00:00
saml33 8254602691 icon button sizes 2022-10-29 22:38:40 +11:00
saml33 cc2d7bcbf1 icon button hover 2022-10-29 21:56:04 +11:00
tjs 818bbc0252 fix zustand nextjs 13 issues 2022-10-28 17:46:38 -04:00
tjs 9269b4e18f fix yarn.lock, undo next upgrade 2022-10-28 15:24:05 -04:00
tylersssss 8ce855dc65
Merge branch 'main' into token-details 2022-10-28 12:46:57 -04:00
saml33 6341d3469c clear activity feed on disconnect 2022-10-28 21:42:23 +11:00
saml33 803ae988d6 fix custom notification position 2022-10-28 21:18:42 +11:00
tjs a118d18564 use legacy next/image 2022-10-26 16:01:31 -04:00
tjs a7cfbbe084 update next/link 2022-10-26 16:01:02 -04:00
saml33 0c6832c02f add tabs to market selector 2022-10-26 21:49:05 +11:00
saml33 37074e5431 add tab underline component 2022-10-26 15:44:09 +11:00
saml33 f683b6e740 update secondary button border color 2022-10-26 14:23:46 +11:00
saml33 40e7e2b770 fix bounce loader img src 2022-10-26 13:09:26 +11:00
saml33 25f42e4682 align tooltip bg to pop overs 2022-10-26 11:14:21 +11:00
saml33 e15305aae6 fix errors 2022-10-24 12:43:07 +11:00
saml33 93a3109f84 Merge branch 'main' into token-details 2022-10-24 11:47:05 +11:00
saml33 6d85da0ab5 misc styling 2022-10-22 23:14:25 +11:00
saml33 d942a990fb add price chart 2022-10-21 23:54:18 +11:00
saml33 db4317400d add token details page 2022-10-11 22:59:01 +11:00
saml33 5f246b1454 add custom notification position 2022-10-10 14:07:35 +11:00
saml33 67ef7d626b fix change font size 2022-10-08 21:22:31 +11:00
saml33 bf17fe1374 notification styling 2022-10-08 21:15:03 +11:00
tjs 7d975b6407 fix deposit input issue 2022-10-07 16:02:11 -04:00
microwavedcola1 72e4808141 match mango-v4 dev branch
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
2022-10-07 14:27:42 +02:00
saml33 832582f46c add values to swap/trade balances table 2022-10-07 14:44:18 +11:00
saml33 1bcde660b3 account, swap and trade tabs 2022-10-07 14:16:11 +11:00
saml33 2c12e0bd57 remove market info from balances table 2022-10-07 12:57:47 +11:00
saml33 86f5411cb3 darken modal overlay blur 2022-10-07 10:56:34 +11:00
saml33 642d907a7a flip chart gradient for negative declining values 2022-10-07 10:45:30 +11:00
tjshipe 0b3594f036
Merge branch 'main' into activity-feed 2022-10-06 17:54:31 -04:00
saml33 e053f57c2f tooltip positioning 2022-10-06 23:08:29 +11:00
saml33 6820d0e6e7 fix one-day change values 2022-10-06 16:11:28 +11:00
saml33 ab6f7f8fde add jupiter logos to swap history mobile 2022-10-06 12:22:57 +11:00
saml33 9f7518ffed align pop over bg colors 2022-10-06 11:04:16 +11:00
saml33 1fbd948e30 add missing font-mono classes 2022-10-06 10:14:11 +11:00
saml33 706de963af add max amount button component 2022-10-06 10:03:10 +11:00
saml33 b16435441a mobile unsettled 2022-10-04 14:42:05 +11:00
saml33 771c410bc9 add trade page translation file 2022-10-03 21:38:05 +11:00
saml33 bf40157afe add count to unsettled and styling 2022-10-03 16:42:28 +11:00
saml33 fcbe08a6ba update orders on account change and disconnect 2022-10-03 15:38:49 +11:00
saml33 bc55ef9204 mrege main 2022-09-30 22:39:38 +10:00
tjs 32578711b2 general refinements 2022-09-30 00:21:23 -04:00
saml33 41b7af6cc2 add advanced filters 2022-09-30 13:22:55 +10:00
saml33 a04b7cc630 add basic filters 2022-09-29 13:35:34 +10:00
tjs 6b737f03c7 support passing in a count to tabbuttons 2022-09-28 16:45:08 -04:00
saml33 311f1d56bd fix inlinePosition warning 2022-09-27 11:21:00 +10:00
saml33 feaf36e92d Revert "add save tradingview charts"
This reverts commit 6c4ad1ffb8.
2022-09-26 16:05:40 +10:00
saml33 6c4ad1ffb8 add save tradingview charts 2022-09-26 15:35:55 +10:00
saml33 faf78be5df tooltip positioning 2022-09-26 10:37:04 +10:00
saml33 f5d83a4d9a add edit profile form component 2022-09-23 20:57:19 +10:00
saml33 545470cf1f add consistent tracking to font-mono class 2022-09-22 20:46:51 +10:00
saml33 f62955bf76 use tab component orderbook and trade form 2022-09-22 15:28:53 +10:00
saml33 03f07cef50 fix down triangle 2022-09-21 16:13:14 +10:00
saml33 169944c239 add edit profile 2022-09-21 15:31:54 +10:00
saml33 da6c09aca2 account page tooltips 2022-09-20 13:12:34 +10:00
saml33 a49d28437b use percentagechange component in trade page header 2022-09-20 10:12:30 +10:00
saml33 3c55bf5b59 mobile trade page 2022-09-16 20:49:10 +10:00
saml33 a2400638aa trade grid layout for lg, md 2022-09-16 13:40:30 +10:00
saml33 9ed74880b2 align tabs to trade page 2022-09-15 16:06:23 +10:00
saml33 0ae2912cb9 misc styling 2022-09-15 14:51:19 +10:00
saml33 17b52d242d change copy on swap page to be swap oriented and rename files 2022-09-15 11:06:00 +10:00
tjs 9780a94ce1 Test matching swap page with advanced trade page 2022-09-14 15:38:25 -04:00
tjs 86d79a7541 allow maxwidth in tooltip props; add health tooltip to acct page 2022-09-14 11:30:02 -04:00
tjs 84728b580b serum spot trade page 2022-09-14 02:24:44 -04:00
tjs c2f1f02829 use alias imports 2022-09-12 12:04:20 -04:00
saml33 6cfc397dd2 fix loaders 2022-09-09 11:00:47 +10:00
saml33 a1f01b7866 add chart time range component 2022-09-08 16:25:32 +10:00
saml33 99b6d79808 add icon for 0% change 2022-09-08 12:49:12 +10:00
saml33 c90802d729 fix token list on mobile 2022-09-08 12:36:39 +10:00
saml33 dd8f188a34 add percentage change component 2022-09-08 11:52:47 +10:00
saml33 9e858968b2 update heroicons to latest version 2022-09-07 14:36:35 +10:00
saml33 35f5eba3c2 add amount buttons to onboarding fund account 2022-09-07 13:47:36 +10:00
tjs 4f299f186f remember sidenav collapse state in localstorage 2022-09-01 14:51:15 -04:00
tjs 48670290e8 fix account value updating 2022-09-01 13:33:29 -04:00
tjs 43b1febc1a update client and handle undefined health values 2022-08-31 16:17:17 -04:00
saml33 dd4a6d4aed remove decimals from health impact 2022-08-28 21:03:15 +10:00
tjs f4d155af10 add useMangoAccount hook to fix updating account page 2022-08-26 15:15:50 -04:00
saml33 1d41d4ef7f add init health zero errors 2022-08-26 13:46:23 +10:00
saml33 9916747e0d move health impact to swap form 2022-08-25 23:00:42 +10:00
saml33 1babb59be0 add more info to deposit modal 2022-08-25 10:53:31 +10:00
tjs 0d23ceaa7a remove withdraw health in favor of free collateral 2022-08-24 18:22:04 -04:00
tjs cd2ad18ade update health labels 2022-08-24 11:58:01 -04:00
tjs 39be3f741d add stats page 2022-08-23 18:33:09 -04:00
tjs 7506ee34fe show maint health and init health everywhere 2022-08-23 15:32:51 -04:00
microwavedcola1 bc3101e90b match latest changes to client
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
2022-08-23 16:24:47 +02:00
saml33 daa87d033c fix double minus sign 2022-08-23 22:47:52 +10:00
microwavedcola1 28f652a163
match client changes on mc/ts-client-fixes (#5)
* match client changes on mc/ts-client-fixes

Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>

* fix commit hash for dependency

Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>

Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
2022-08-23 13:45:56 +02:00
tjs 2ce386106e show sign next to health impact change 2022-08-22 14:01:06 -04:00
tjs bea7dee84c move constants out of mangoStore.ts 2022-08-20 14:17:57 -04:00
Christian Kamm a3c37ef008 Fix HealthImpact display, use bank.uiPrice where needed 2022-08-19 16:56:22 +02:00
tjs ae324a6da5 update to latest client and program version 2022-08-18 16:50:34 -04:00
saml33 3e48d7cbc0 add max borrow amount to borrow modal list 2022-08-18 15:58:44 +10:00
tjs acc2a2cfdd switch amounts after flipping the token 2022-08-18 00:35:35 -04:00
saml33 f64265a316 add health impact to deposit modal 2022-08-18 09:55:46 +10:00
tjs a7b915d071 add sheen loader for price on swap chart 2022-08-17 16:06:45 -04:00
saml33 906640c732 add health impact component 2022-08-17 22:09:40 +10:00
saml33 8a250f7f28 sort withdraw token list by account balance 2022-08-17 16:10:38 +10:00
saml33 711d1560b8 sort deposit token list by wallet balance 2022-08-17 15:15:23 +10:00
saml33 a9ac47f153 disallow close setup modal 2022-08-17 14:49:20 +10:00
tjs 17d4215572 Modal needs transform class to fix z-index issue 2022-08-16 19:57:54 -04:00
tjs 08b6da5d2f remove tailwind deprecated transform class
and remove default-transitions that weren't paired with a class change
2022-08-16 18:58:03 -04:00
tjs c035bc4655 remove animation from main lists 2022-08-16 18:29:24 -04:00
saml33 4146efac94 fix mango account load 2022-08-16 21:23:43 +10:00
saml33 9c67b18eff single component for account charts 2022-08-16 10:16:21 +10:00
saml33 7b8867781f merge main 2022-08-16 08:19:24 +10:00
saml33 979f6aada8 load swap amount out 2022-08-15 21:28:36 +10:00
saml33 a1eb6b38d9 button hovers 2022-08-15 16:10:46 +10:00
saml33 e672dd4792 style review trade panel 2022-08-14 21:56:19 +10:00
saml33 61d9b83b9a update button colors 2022-08-14 15:39:30 +10:00
saml33 5ec3d74500 add cumulative interest chart 2022-08-13 20:44:13 +10:00
tjs d1acfc6d52 use new client to show pending transaction notifications 2022-08-12 17:18:12 -07:00
saml33 03c0436877 merge main 2022-08-12 22:21:23 +10:00
saml33 b7a47f60fe add available balance to withdraw modal 2022-08-12 16:09:52 +10:00
saml33 4d49012eba add wallet balance to deposit list 2022-08-12 15:48:59 +10:00
saml33 94aa653817 fix account loading and onboarding 2022-08-12 14:20:17 +10:00
tjs 29da9b24f6 update decimal formatting 2022-08-11 19:27:36 -07:00
saml33 cc7ca4680f add account value api to portfolio 2022-08-11 14:09:58 +10:00
saml33 6cc89d7386 add trade history 2022-08-10 21:17:10 +10:00
tjs 730283d8c3 center loading icon after trade; reload account after editing 2022-08-08 14:45:56 -07:00
tjs 8ec490c042 extract jupiter logic into hook 2022-08-03 22:25:38 -04:00
saml33 210e96237d add placeholder account value chart 2022-08-03 19:49:31 +10:00
saml33 96fa045564 add account summary 2022-08-03 12:15:17 +10:00
saml33 0f46288df6 add simple area chart 2022-08-03 10:17:42 +10:00
tjs ba39db5b9f fix link buttons 2022-08-02 15:20:27 -04:00
tjs d6d29e072b filter swap list by tokens in group 2022-08-02 14:09:29 -04:00
saml33 c089e715e5 fix list transition 2022-08-02 20:47:24 +10:00
saml33 8bc91139f4 add create account modal 2022-08-02 13:43:17 +10:00
saml33 a560b4294e add icon to link button 2022-08-02 12:05:38 +10:00
saml33 bc848c0042 add all mango accounts 2022-08-02 11:08:08 +10:00
saml33 1f3b88a079 deposit from onboarding flow 2022-07-29 12:51:50 +10:00