Commit Graph

817 Commits

Author SHA1 Message Date
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
saml33 75653c2ed4 fix leverage display 2022-10-26 13:57:28 +11:00
saml33 2e7c850551 fix create account selection 2022-10-26 13:39:11 +11:00
saml33 40e7e2b770 fix bounce loader img src 2022-10-26 13:09:26 +11:00
saml33 befa7e9619 fix trade page borders 2022-10-26 13:01:45 +11:00
saml33 fb5a3b0e87 add book/trades tabs to mobile 2022-10-26 12:37:59 +11:00
saml33 57ea743db0 show zero balances mobile 2022-10-26 11:35:42 +11:00
saml33 25f42e4682 align tooltip bg to pop overs 2022-10-26 11:14:21 +11:00
saml33 11cf4d0542 intro tour background 2022-10-26 11:04:09 +11:00
saml33 84bcdded62 account value spacing 2022-10-25 22:22:24 +11:00
saml33 598cddaa83 back arrow mobile 2022-10-25 22:09:36 +11:00
saml33 a0a020f7aa mango account list modal errors 2022-10-25 20:53:50 +11:00
saml33 08505b09bc add back arrow 2022-10-25 20:42:51 +11:00
saml33 514dd63efc Merge branch 'main' into token-details 2022-10-25 20:26:59 +11:00
tylersssss d059de8c9a
Merge pull request #24 from blockworks-foundation/trade-page-heights
fix trade page component heights
2022-10-24 22:58:44 -04:00
tylersssss bb3c9b2b54
Merge branch 'main' into mango-accounts-modal 2022-10-24 17:34:13 -04:00
saml33 085fef1b52 add 404 page 2022-10-24 14:58:14 +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 c835b542cb update side nav font sizes 2022-10-24 11:43:47 +11:00
saml33 055c437877 add padding bottom 2022-10-24 10:04:08 +11:00
saml33 46a9b55ae0 fix trade page heights 2022-10-23 22:38:48 +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
tjs 7c75d04d52 load perp market 2022-10-10 22:16:41 -04:00
tjs a6aca2a30d use dynamic imports for recharts 2022-10-10 22:16:41 -04:00
tjs c1ec5558c6 remove get token info 2022-10-10 13:28:59 -04:00
saml33 99a255ad75 remove buy/sell from token actions 2022-10-10 21:15:20 +11:00
saml33 5f246b1454 add custom notification position 2022-10-10 14:07:35 +11:00
saml33 dc80b9d94b add spot markets to stats 2022-10-08 22:37:08 +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
saml33 18bc7921a0 truncate account name in summary 2022-10-08 19:53:47 +11:00
tjs 040c1a0a67 use react-query for swap chart 2022-10-07 19:39:06 -04:00
tjs 7ad023653f fix bug with modals 2022-10-07 18:27:36 -04:00
tjs 7d975b6407 fix deposit input issue 2022-10-07 16:02:11 -04:00
tjs 570d44d24a use main branch of client; update changes 2022-10-07 13:59:13 -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 40bf21992f add mango accounts list modal 2022-10-07 22:47:15 +11:00
saml33 84cff1613e change total interest value to total interest earned 2022-10-07 14:52:06 +11: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
tjs ebd0bc796c nvm 2022-10-06 22:10:15 -04:00
saml33 2c12e0bd57 remove market info from balances table 2022-10-07 12:57:47 +11:00
tjs 9f073e6b87 update acct leverage to match ftx calc 2022-10-06 21:08:08 -04: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
saml33 490d7feaeb reset performance and interest data on disconnect 2022-10-07 10:06:49 +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 8113371969 grouping dropdown bg color 2022-10-06 21:12:08 +11:00
saml33 b14e5c569a show interest chart button when value is > 1 2022-10-06 16:12:56 +11:00
saml33 6820d0e6e7 fix one-day change values 2022-10-06 16:11:28 +11:00
saml33 8374dfa1a7 format swap pair symbols 2022-10-06 13:23:31 +11:00
saml33 2e34511aee add jupiter logos to actions menu and format token symbol 2022-10-06 13:12:41 +11:00
saml33 ab6f7f8fde add jupiter logos to swap history mobile 2022-10-06 12:22:57 +11:00
saml33 d8f714e399 add jupiter logos to swap history 2022-10-06 12:16:29 +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 070f4839ed add balance button when swap margin is on 2022-10-05 22:25:26 +11:00
saml33 1cf389a2c3 add value to borrow/withdraw modal 2022-10-05 22:01:03 +11:00
saml33 0997bcc710 remove double border 2022-10-05 21:29:11 +11:00
saml33 2682141c93 add trigger delay to tooltips 2022-10-05 21:25:47 +11:00
saml33 c43569ae2d add one-day interest value change 2022-10-05 21:16:32 +11:00
saml33 f99763fb1b add one-day pnl change 2022-10-05 16:12:52 +11:00
saml33 f51ec0f112 update token list table text color 2022-10-05 15:53:52 +11:00
saml33 dbcad96f70 add leverage and total collateral to account page 2022-10-05 15:47:50 +11:00
saml33 d89328f2f4 add translation keys to onboarding tours 2022-10-05 14:35:54 +11:00
tjs 7a5c635e25 update tooltip 2022-10-04 23:31:21 -04:00
tjs cc2d32eced add leverage to account summary 2022-10-04 23:30:19 -04:00
tjs d3d803daca add total collateral 2022-10-04 22:45:06 -04:00
saml33 b04d9c7a6d add logos to unsettled funds 2022-10-05 13:03:45 +11:00
saml33 991057f0fa fix merge errors 2022-10-05 12:59:04 +11:00
tjs c56f11ceae remove console log 2022-10-04 14:17:18 -04:00
tjs a2394d2d28 shrink tooltip hit box 2022-10-04 14:17:18 -04:00
tjshipe 5ef7217469
Merge branch 'main' into jupiter-logos 2022-10-04 13:31:24 -04:00
tjshipe c0bb9ddcda
Merge branch 'main' into onboarding-tours 2022-10-04 13:23:29 -04:00
saml33 b16435441a mobile unsettled 2022-10-04 14:42:05 +11:00
saml33 bbc9e5681d mobile open orders 2022-10-04 14:19:27 +11:00
saml33 945cf94e56 mobile trade balances 2022-10-04 13:26:50 +11:00
saml33 f2fb05d718 add loading to settle funds 2022-10-04 11:59:25 +11:00
saml33 188905d2d1 add loading to cancel order 2022-10-04 11:47:32 +11:00
saml33 2cef2c160f add loading to place order 2022-10-04 10:26:12 +11:00
saml33 53cf3cced0 improve account info chart buttons 2022-10-04 09:45:46 +11:00
saml33 771c410bc9 add trade page translation file 2022-10-03 21:38:05 +11:00