Commit Graph

1003 Commits

Author SHA1 Message Date
tjs b03b6fb9a8 update to latest group 2022-12-08 14:58:54 -05:00
tjs 6daceda50f cleanup swap form eslint warnings 2022-12-08 13:44:30 -05:00
tjs fdb94c21a4 fix modals; add eslintrc for useEffect 2022-12-08 13:24:28 -05:00
tjs a353be17ff fix bug in repay modal 2022-12-08 13:24:28 -05:00
Adrian Brzeziński 68d3c961b6 merge 2022-12-08 15:12:18 +01:00
Adrian Brzeziński 2dfeca2863 add ema 2022-12-08 15:11:09 +01:00
saml33 f4871fe8d2 tweak trade form spacing 2022-12-08 22:55:31 +11:00
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 3dd54d26fe better handle bad perp funding rate data 2022-12-08 01:47:32 -05:00
saml33 3e159261e6 move howl outside components 2022-12-08 16:05:36 +11: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 738420799c remove token image rounding 2022-12-08 14:17:24 +11:00
tjs f1f71243e8 add text below swap slider 2022-12-07 21:49:06 -05:00
saml33 300f481ecf add input theme colors 2022-12-08 13:34:24 +11:00
tjs 169f5ea079 set swapMode when changing swap amount in from slider or percent button 2022-12-07 20:14:29 -05:00
tjs 986c6ce57a better handle clearing swap form 2022-12-07 20:04:48 -05:00
saml33 5e113692f4 round total deposit/borrow value 2022-12-08 10:29:59 +11:00
saml33 6c58288995 handle null values in chart 2022-12-08 10:19:18 +11:00
saml33 7e5e3e4d51 fix swap projected health 2022-12-08 10:09:15 +11:00
saml33 95a165fc67 align swap output input styles 2022-12-08 09:45:19 +11:00
tjs 41223e846c allow setting the amount out in jupiter swap 2022-12-07 16:33:38 -05:00
saml33 c5c88ce3c2 trade header info on mobile 2022-12-07 16:25:37 +11:00
saml33 9dab1cdcd4 fix mobile nav active state 2022-12-07 15:39:19 +11:00
saml33 57c65a90d1 remove box shadow on mobile 2022-12-07 15:10:52 +11:00
saml33 04d2b8f19b fix connect button styles 2022-12-07 14:38:09 +11:00
saml33 55e13d6ce7 update mobile nav items 2022-12-07 14:07:07 +11:00
saml33 97a27ade59 add stats perp market table 2022-12-07 13:47:03 +11:00
saml33 60a0d42d1a componentize token page 2022-12-07 11:22:32 +11:00
saml33 4088011a71 fix chart font size 2022-12-07 09:52:36 +11:00
Adrian Brzeziński c9c30c2d9d merge 2022-12-06 23:02:35 +01:00
Adrian Brzeziński 61c20de757 add clsx 2022-12-06 22:58:49 +01:00
Adrian Brzeziński 04ea8408e3 chart settings 2022-12-06 18:35:15 +01:00
Adrian Brzeziński 29cd515d62 full screen 2022-12-06 17:41:57 +01: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
tjs 7205f0379b show perp funding rate 2022-12-05 21:54:15 -05:00
tjs b62f102e3f tidyup 2022-12-05 21:54:15 -05:00
tjs 9a18380c74 fix lodash imports 2022-12-05 21:54:15 -05:00
Adrian Brzeziński 77954799ec kline chart wip 2022-12-06 00:54:47 +01:00
saml33 59de695d06 align responsive settings styles 2022-12-06 09:33:36 +11:00
saml33 f006023ba4 improve activity filter form layout 2022-12-06 09:13:49 +11:00
Adrian Brzeziński 2ec44f1742 technical indc 2022-12-05 18:19:59 +01:00
Adrian Brzeziński 72844038db merge 2022-12-05 13:11:53 +01:00
saml33 8dd1363212 olive and high contrast theme 2022-12-05 21:59:56 +11:00
saml33 9d0bdf4c1a fix calling activity feed when mango account changes 2022-12-05 14:46:31 +11:00
saml33 b2f74667c1 swap history table loading 2022-12-05 14:05:20 +11:00
saml33 3b864ce58d add theme name translation vars 2022-12-05 12:57:50 +11:00
saml33 39fcc35f4e simplify swap history table 2022-12-05 12:06:50 +11:00
saml33 c4363a07d7 fix heading alignment 2022-12-05 10:34:17 +11:00
saml33 188589c50c lychee theme 2022-12-05 10:06:06 +11:00
saml33 1768483ca1 use theme css vars instead of hardcoded rgba 2022-12-04 20:21:32 +11:00
tjs 23d406ec47 remove unnecessary group refetching; faster sub account switching 2022-12-03 16:56:22 -05:00
tjs 6b55d1346a show perp unsettled pnl and updated group on an interval 2022-12-03 16:19:12 -05:00
tjs 1674f9a237 fix types and add check that input size is a number 2022-12-02 18:58:10 -05:00
tjs 616e6160da fix orderbook 2022-12-02 18:57:36 -05:00
tjs 3b41277099 fix so error messages show txid 2022-12-02 18:47:08 -05:00
Adrian Brzeziński 540bb5b7d6 cleanup 2022-12-02 15:09:46 +01:00
Adrian Brzeziński 96a37771f3 colors 2022-12-02 13:36:10 +01:00
saml33 e553b07dbd more theme color changes 2022-12-02 22:28:46 +11:00
saml33 1d8a91795e tweak themes 2022-12-02 16:51:27 +11:00
saml33 4660d04041 add order value to trade form 2022-12-02 13:16:59 +11:00
Adrian Brzeziński 1af2ec414c merge 2022-12-02 01:00:05 +01:00
saml33 3c53b876f0 add slippage component 2022-12-02 10:38:41 +11:00
saml33 a9526cff9e merge main 2022-12-02 10:14:10 +11:00
Adrian Brzeziński 37ba0a5ec9 kline charts wip 2022-12-01 17:06:19 +01:00
saml33 de2d4217fa ocean theme 2022-12-01 23:04:04 +11:00
Adrian Brzeziński cc67329be9 Merge branch 'main' into feature/kline-charts-spot 2022-12-01 12:47:35 +01:00
saml33 69c073444f add medium theme 2022-12-01 21:59:03 +11:00
saml33 c3836e1ca0 jungle theme 2022-12-01 20:49:59 +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
tjs 0757af2213 perp funding rate 2022-11-30 10:51:38 -05: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 f32b17c1c8 simplify filters ui 2022-11-30 13:06:09 +11:00
saml33 eb406e47df add perp trades to activity feed 2022-11-30 10:15:25 +11:00
Adrian Brzeziński d03ee455ba fix 2022-11-29 18:15:47 +01:00
Adrian Brzeziński 0d7c899730 kline wip 2022-11-29 18:09:32 +01:00
saml33 b4b2198af6 full width account tabs on mobile 2022-11-29 21:58:50 +11:00
saml33 63e3d187b1 add swaps to activity feed 2022-11-29 21:33:15 +11:00
saml33 95a833fa02 fix recent trade sounds 2022-11-29 13:02:19 +11:00
saml33 82abfaf555 add padding 2022-11-28 10:40:40 +11:00
saml33 211a2104fd recent trades sounds 2022-11-28 10:13:13 +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 e2832f0eea add sounds to recent trades 2022-11-25 12:57:19 +11:00
saml33 39485015c2 connect empty state icons 2022-11-25 10:56:31 +11:00
saml33 72e6a030b4 positions table connect empty state 2022-11-25 10:30:28 +11:00
saml33 80c9534860 fix swap success animation 2022-11-24 16:04:33 +11:00
saml33 c043a76e6a new sound files 2022-11-24 15:16:14 +11:00
saml33 c355c3c13a add setting for number scroll 2022-11-24 13:30:20 +11:00
saml33 0447fc5d61 better sound support and fix settings 2022-11-23 23:40:38 +11:00
saml33 f52cb54008 sound support and settings 2022-11-23 16:38:31 +11:00
saml33 37df58f959 use settings for slider or buttons to swap 2022-11-23 14:31:50 +11:00
saml33 8c20df5556 round perp position size click 2022-11-23 13:21:31 +11:00
saml33 973e72ca2e round balance table click to minordersize/ticksize 2022-11-23 12:45:26 +11:00
saml33 c1cc7e1cf7 round pre-filled limit price to tick size 2022-11-23 11:57:54 +11:00
saml33 201c9a823a add token logo to limit price input 2022-11-23 10:49:42 +11:00
saml33 326e1f09dd remove commented code 2022-11-23 10:46:56 +11:00
saml33 890c9f23aa open orders mobile 2022-11-23 10:43:25 +11:00
saml33 02cabb1b33 update swap token list labels 2022-11-22 21:36:45 +11:00
saml33 8b9519ea6c perp position size rounding 2022-11-22 20:30:37 +11:00
saml33 51fde8723a interest earned rounding 2022-11-22 16:14:35 +11:00
saml33 17b2a695e8 fix borrow max rounding 2022-11-22 16:00:26 +11:00
saml33 313a47e050 fix token max vault rounding 2022-11-22 15:40:55 +11:00
saml33 58f55a22b0 fix swap token select 2022-11-22 15:20:05 +11:00
tjs 0808c900bc enable linking to market pages 2022-11-21 22:57:00 -05:00
saml33 365f06ae87 swap success animation 2022-11-22 14:23:54 +11:00
tjs 529709f30e slightly better error messages 2022-11-21 17:06:40 -05:00
saml33 0a60882236 remove unnecessary state update 2022-11-21 22:46:03 +11:00
saml33 e74559bc42 add character limit to create account 2022-11-21 21:54:31 +11:00
saml33 378c86ef8b open orders mobile styling 2022-11-21 21:37:31 +11:00
saml33 6f95fc8784 round open orders price to tick size 2022-11-21 20:42:18 +11:00
saml33 e83e26c17d align balance table formatting to token list 2022-11-21 16:01:44 +11:00
tjs 40aa88590b split market name in recent trades 2022-11-20 23:56:20 -05:00
tjs ef144b672f fixup recent trades decimals 2022-11-20 23:52:08 -05:00
saml33 69304a2457 remove unsettled from swap 2022-11-21 15:21:20 +11:00
tjs 777d44860a use event queue for recent trades until api is ready 2022-11-20 23:16:11 -05:00
tjs dbcaeee439 fix entry price formatting 2022-11-20 22:11:29 -05:00
tjs eb3d915916 wip: add unsettled perp 2022-11-20 21:29:54 -05:00
saml33 ba35bc0ee8 improve repay modal 2022-11-21 13:22:45 +11:00
saml33 39fbe3fa73 fix alignment 2022-11-21 12:02:35 +11:00
saml33 a95afffadc use latest account value in charts 2022-11-21 11:50:25 +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 d60360ccc5 fix alignment 2022-11-20 22:13:44 +11:00
saml33 04b14640a1 use table for recent trades 2022-11-20 22:06:54 +11:00
saml33 7f57e59f44 use table components 2022-11-20 21:44:14 +11:00
saml33 281de2a024 use $ for account change values 2022-11-20 20:08:12 +11:00
tjs 6b4c1d9f7e improve advanced trade sliders 2022-11-19 20:40:06 -05:00
tjs de2fa43bae fix perp market logo 2022-11-19 15:10:32 -05:00
tjs 561eba493b fix all eslint errors 2022-11-19 14:20:36 -05:00
tjs 7036df7e69 add network offline warning 2022-11-19 13:33:12 -05:00
saml33 982662c5f5 pnl and interest change 2022-11-19 22:28:06 +11:00
saml33 f4bb34e73c fix top bar 2022-11-19 21:03:39 +11:00
tjs 8384bca7e0 submit jup api swap transaction 2022-11-18 23:59:06 -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 1de0ef5333 add character limits to size restricted inputs 2022-11-18 20:53:45 +11:00
saml33 777e020648 add low sol balance warnings 2022-11-18 15:43:23 +11:00
saml33 46994b4957 fix deposit modal 2022-11-18 10:20:20 +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 afec272331
Merge pull request #31 from blockworks-foundation/perp-position-click
populate trade form from positions table
2022-11-17 16:53:36 -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
tjs eb6d3785ee downgrade jupiter for now so builds are working 2022-11-17 16:04:31 -05:00
saml33 177b5f0429 use oracle price for rolling change 2022-11-17 23:53:42 +11:00
saml33 8bd4d2e976 fix market price 2022-11-17 20:17:58 +11:00
saml33 605f712d44 populate trade form from positions table 2022-11-17 16:17:18 +11:00
saml33 c4e55e2a7e fix low sol balance warning 2022-11-17 14:51:08 +11:00
saml33 29eb59e332 add loan fee to borrow modal 2022-11-17 14:18:22 +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 57f009aa2e add delegate modal 2022-11-16 11:59:34 -05: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
tjs 07847b971b support versioned txs 2022-11-15 23:12:57 -05:00
tjs 3baeda5f3e use latest jupiter 2022-11-15 23:12:57 -05:00
tjs 59b5570e35 fix new subaccount 2022-11-15 23:12:57 -05:00
saml33 4a368e2514 add buttongroup to trade form 2022-11-16 12:32:55 +11:00
saml33 7000eea155 fix activity feed date range filter 2022-11-15 21:47:11 +11:00
tylersssss f78ebae5c8
Merge branch 'main' into use-birdeye-api 2022-11-14 19:59:21 -05:00
saml33 2f3afa7a4a use green/red for activity feed values 2022-11-14 22:46:48 +11: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 82e02b2570 fix account list modal height 2022-11-14 14:52:32 +11:00
saml33 07d420e785 update swap tour copy 2022-11-14 14:33:45 +11:00
saml33 8db5b732f5 fix account onboarding tour 2022-11-14 14:21:45 +11:00
saml33 0abd454cf6 fix deposit restriction for sol wallet transactions 2022-11-14 13:10:21 +11:00
saml33 1bf7221059 add deposit value to user setup 2022-11-14 11:46:36 +11:00
saml33 fca7d81dda merge main 2022-11-14 09:57:19 +11:00
tylersssss 33695f047a
Merge pull request #26 from blockworks-foundation/trade-health-impact
add health impact to trade form
2022-11-13 17:26:09 -05:00
tylersssss 451eef3543
Merge pull request #25 from blockworks-foundation/feature/fix-mango-accounts-after-reconnection
mango accounts reaload on wallet change
2022-11-13 17:24:59 -05:00
saml33 ce406ce597 add update profile details 2022-11-13 22:44:08 +11:00
saml33 430be06767 add transition component 2022-11-12 22:16:02 +11:00
saml33 4ca4946430 add translation keys 2022-11-12 21:26:43 +11:00
saml33 8a6706e142 merge main 2022-11-11 22:39:14 +11:00
saml33 782168283d more background 2022-11-11 22:24:24 +11:00
saml33 5e2285ab02 start background 2022-11-10 23:58:13 +11:00
saml33 49667afdc1 add warning when not enough sol to create account 2022-11-10 16:22:01 +11:00
saml33 5f4f4f82a9 update copied address text 2022-11-10 13:35:12 +11:00
saml33 430cd939c4 fix spot market change 2022-11-10 12:48:03 +11:00
saml33 28c0fed1c7 use birdeye for serum market price history 2022-11-05 18:13:24 +00:00
saml33 e2d043f9d6 use birdeye for swap chart 2022-11-05 11:47:54 +00:00
saml33 69bcfc5a71 fix input height 2022-11-04 19:08:27 +00:00
saml33 c1254c9186 add health impact to trade form 2022-11-04 18:55:21 +00:00
saml33 9943911efc fix swap output amount input 2022-11-04 17:41:33 +00:00
saml33 95bd4d8720 add solana tps 2022-11-04 17:29:21 +00:00
saml33 68226acaa0 balances empty state 2022-11-04 13:14:50 +00:00
Adrian Brzeziński 8613fa5bb4 mango accounts reaload on wallet change 2022-11-03 16:59:21 +00:00
Adrian Brzeziński 9ab04649c2 fix bad input display value display in trade form 2022-11-02 17:09:22 +00:00
Adrian Brzeziński 89095abbd9 fix cancel perp 2022-11-02 16:31:24 +00:00
saml33 bdbad18b9f Merge branch 'main' into onboarding-redesign 2022-11-02 16:24:54 +00:00
saml33 7ba9aa6665 nft list styling fixes 2022-11-02 16:16:25 +00:00
Adrian Brzeziński 546f9e2794 fix profile edit on profile without pic 2022-11-02 16:03:24 +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 83e59b2bff use jupiter tokens for coingecko ids 2022-11-02 10:03:50 +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 653ba6d270 perp cancel order 2022-11-01 17:46:16 +00:00
tjs a1cfde1a34 perp positions label change 2022-11-01 16:48:40 +00:00
tjs 19e5f2ecb6 fix perp side badge 2022-11-01 15:54:29 +00:00
tjs 1da4aea86b show perp position count in tabs 2022-11-01 15:50:55 +00:00
tjs b62ff845a9 perp positions table 2022-11-01 13:10:08 +00:00
tjs dcf5f0c4fd use latest client; create perp position tab 2022-10-31 19:11:34 +00:00
tjs 7f1461123d show perp open orders 2022-10-31 18:26:17 +00:00
tjs 7d15e8e798 better is number check 2022-10-31 16:39:43 +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
tjs 2e853352b6 remove bg; add responsive txt 2022-10-31 05:06:03 +00:00
tjs dd284513f3 try different v of swap form copy; more responsive cols 2022-10-31 05:06:03 +00:00
saml33 3ea6959175 allow close tour if settings data is unavailable 2022-10-31 12:48:22 +11:00
saml33 5a572129d0 move create account link button 2022-10-30 23:02:59 +11:00
saml33 7dcb59f7c3 remove commented code 2022-10-30 22:21:47 +11:00
saml33 91175e5d66 fix swap layout heights 2022-10-30 22:19:04 +11:00
tjs 0e880ffc54 swap form copy 2022-10-29 22:46:59 -04:00
tjs 356f2c63c2 orderbook fixes for mkts with different base tokens 2022-10-29 22:34:29 -04:00
tjs 1c4eddb48e more perp order stuff 2022-10-29 21:46:56 -04:00
tjs 420b0270da placeperporders 2022-10-29 21:17:14 -04:00
tjs 7c34ed0bcb use last slot when updating mango account 2022-10-29 21:17:14 -04: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 bb62181a1b prevent activity feed double load 2022-10-28 23:23:28 +11: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
saml33 147121363c fix modal rounded corners 2022-10-28 21:01:49 +11:00
saml33 ba7b7d852f disable deposit/withdraw when no account 2022-10-28 20:46:29 +11:00
tjs 4ef23e60ff url param to view other mango accounts 2022-10-27 16:58:58 -04:00
Maximilian Schneider 87c824033d Make not-swappable tokens visually distinct 2022-10-27 21:12:51 +02: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 555f5625eb fix leverage display on account summary 2022-10-26 14:11:31 +11:00