Commit Graph

572 Commits

Author SHA1 Message Date
saml33 7107b91ad1 fix swap history amounts and improve columns 2023-01-18 22:34:25 +11:00
saml33 9d8f804b75 fix token logo symbol matching 2023-01-18 22:18:57 +11:00
saml33 7fab02c1ba merge main 2023-01-18 21:56:06 +11:00
saml33 adeb08daeb finish swap history pagination 2023-01-18 21:36:45 +11:00
saml33 2c12f5c5ea add daily pnl history 2023-01-16 16:13:34 +11:00
Adrian Brzeziński 5f6bdf0948 fix ata creation for middle mints 2023-01-15 14:15:35 +01:00
Adrian Brzeziński db8f1bcc77 review fixes 2023-01-15 02:05:45 +01:00
Adrian Brzeziński c96fe8a739 Revert "Revert "Merge pull request #56 from blockworks-foundation/feature/mango-router""
This reverts commit 774219cadd.
2023-01-14 21:16:01 +01:00
tylersssss 448fdfa3e3
Merge pull request #63 from blockworks-foundation/flip-swap-chart
allow flip swap chart prices
2023-01-14 14:03:24 -05:00
saml33 3ea84c32ae fix swap minimum received 2023-01-14 23:41:30 +11:00
saml33 c7187748d5 allow flip swap chart prices 2023-01-13 15:26:07 +11:00
tjs 17d606be9c prevent chart rerenders on swap form amount changes 2023-01-12 15:46:30 -05:00
tylersssss 774219cadd Revert "Merge pull request #56 from blockworks-foundation/feature/mango-router"
This reverts commit aa46e5f998.
2023-01-12 14:39:19 -05:00
tylersssss aa46e5f998
Merge pull request #56 from blockworks-foundation/feature/mango-router
use mango router
2023-01-12 11:53:04 -05:00
saml33 e0b616a5cf fix swap history load when not connected 2023-01-12 14:34:33 +11:00
saml33 badb6931bc add swap history pagination 2023-01-12 14:21:23 +11:00
saml33 85f81ce55b fix swap panel height 2023-01-12 10:21:01 +11:00
tjs 6a1a55adbc hide swap route except for test wallet 2023-01-11 16:45:56 -05:00
tjs ca89b132da remove price impact from swap form since it is on the review page 2023-01-11 16:35:37 -05:00
tjs 15e0e781cf dont hardcode height width if size isn't passed into iconbutton 2023-01-11 16:34:59 -05:00
tylersssss 9bd4642d75
Merge pull request #54 from blockworks-foundation/swap-form-button
update swap button text
2023-01-11 13:12:00 -05:00
tylersssss c3f107820e
Merge branch 'main' into trade-success-animation 2023-01-11 13:11:03 -05:00
Adrian Brzeziński 5817809fa6 fix 2023-01-11 16:45:53 +01:00
saml33 a3e731be15 add !selectedroute to disabled 2023-01-11 11:33:03 +11:00
tylersssss 034d82f11d
Merge pull request #57 from blockworks-foundation/token-vault-warnings
improve token vault warnings
2023-01-10 13:32:20 -05:00
saml33 60388f4423 format swap token list max number 2023-01-10 13:18:47 +11:00
Adrian Brzeziński 2bd8c86061 fix 2023-01-10 01:07:36 +01:00
Adrian Brzeziński 0cf973f0c4 other amount 2023-01-10 01:02:31 +01:00
Adrian Brzeziński ba5facc4e2 fix 2023-01-10 00:52:06 +01:00
saml33 ea7e148578 improve token vault warnings 2023-01-10 10:47:18 +11:00
Adrian Brzeziński 3553ae03e6 fix 2023-01-09 14:14:22 +01:00
Adrian Brzeziński cd2597e26a use mango router 2023-01-09 14:13:48 +01:00
saml33 3a8a0d1df8 update button text 2023-01-09 21:01:21 +11:00
tjs b4e63ffcb6 add commas to swap history 2023-01-07 13:59:32 -05:00
saml33 02e3e6d132 fix country not allowed button 2023-01-06 21:55:51 +11:00
saml33 da78529b2e more rounding fixes 2023-01-06 21:32:54 +11:00
tjs 079e622624 cleanup 2023-01-06 00:26:56 -05:00
saml33 a47a3a0e54 sort swap token list 2023-01-06 15:46:36 +11:00
tjs 04cda31516 fix issue with swap chart labels 2023-01-05 23:38:25 -05:00
saml33 085aceb3eb round max amount buttons 2023-01-06 15:10:25 +11:00
tjs 9865e85116 add mango account pk and address to hook 2023-01-05 23:01:03 -05:00
tjs e8cd0b4a7b fix max swap amount displays 2023-01-05 22:40:23 -05:00
saml33 65e6afc363 show correct borrow fee unit and remove unnecessary class 2023-01-06 13:03:58 +11:00
saml33 c5c0a6f493 only show swap history loader on initial load 2023-01-06 12:56:03 +11:00
tjs 8a04998374 show slippage msg in notifications 2023-01-05 19:44:37 -05:00
tjs 564c4bdee8 max token withdraw shouldnt use maxborrow if its a trustless token 2023-01-05 15:35:45 -05:00
tjs 4a35ab5470 bonk and dai fixes 2023-01-05 15:10:24 -05:00
saml33 6737dc5e51 update swap settings ui 2023-01-04 14:12:30 +11:00
saml33 c08acf292c check for mangoaccount instead of connected 2023-01-04 13:06:00 +11:00
tylersssss 9e4877792d
Merge pull request #49 from blockworks-foundation/connect-buttons
add active connect buttons
2023-01-03 18:25:55 -05:00
tjs 5e0492d0a6 use getState for actions 2023-01-03 17:20:00 -05:00
saml33 b2257d2ca1 add active connect buttons 2023-01-03 22:06:37 +11:00
tjs 1ac090c8e8 add a spinner when switching mango accounts 2023-01-02 16:04:58 -05:00
saml33 3c91bbf1ef add swap success animation to trade 2023-01-02 23:19:30 +11:00
tjs a0705c89b7 update swap settings modal 2022-12-30 14:44:48 -05:00
saml33 9f57d84349 address feedback 2022-12-29 21:59:56 +11:00
saml33 d8658574f7 simplify swap review 2022-12-29 15:17:38 +11:00
tjs 5806803e16 don't crop the review info 2022-12-27 17:24:58 -05:00
saml33 48e8b2ecb9 fix modal heights and align inline notification position 2022-12-27 23:07:02 +11:00
saml33 0d2d597c9e align activity/swap history loaders 2022-12-27 21:10:42 +11:00
tjs d21c5ac383 fix swap on opposite side 2022-12-26 12:14:34 -05:00
Adrian Brzeziński 2ef6070991 do not use translated values in settings fix 2022-12-21 23:33:26 +01:00
saml33 b2bb1b685b horizontal scroll trade tabs on overflow 2022-12-21 15:04:08 +11:00
saml33 1b3cae06aa make swap button always visible 2022-12-20 23:04:08 +11:00
saml33 0e64de2993 hide onboarding tours 2022-12-20 20:13:24 +11:00
saml33 6cc2f757be fix swap input token list max 2022-12-20 09:41:22 +11:00
tjs f3080cb27f add geo check to trade forms 2022-12-19 16:58:29 -05:00
tjs aa55e85fc4 swap history table rounding 2022-12-19 15:27:22 -05:00
tjs da50977eac better swap history fetching 2022-12-19 14:42:28 -05:00
tjs e755a6560b swap history sheen loading animation margin 2022-12-19 13:52:24 -05:00
tjs aae95b6b4a fix call to swap history api 2022-12-19 13:48:59 -05:00
saml33 b98c25eaf6 add health impact to swap review and update styling 2022-12-19 22:20:01 +11:00
tjs 945d38aefc remove jups duplicate ata creating of input mint 2022-12-16 17:49:03 -05:00
tjs f9a4652dae fixes for max source amount in swap 2022-12-16 17:12:07 -05:00
tjs c34c393a34 filter out jupiters token keg instructions 2022-12-16 12:32:01 -05:00
tjs 5d034df3b5 better rounding for vault balance in tokenMax 2022-12-16 12:32:01 -05:00
tjs 2010fdaa1d Merge branch 'jup-v4' into main 2022-12-15 18:06:34 -05:00
tjs 22c6d69222 jupiter v4 swaps with versioned tx 2022-12-15 18:00:47 -05:00
tjs be97e512b9 wip2 2022-12-15 17:51:19 -05:00
tjs 19fad1f438 increase swap chart cache time 2022-12-15 15:43:20 -05:00
tjs f2f2cc9120 wip 2022-12-14 21:51:21 -05:00
tjs 49001d5ae8 handle updating price for tradeForm when on limit vs market order 2022-12-14 15:54:30 -05:00
tjs af27b339aa fix call to getmaxsourceuifortokenswap 2022-12-14 11:20:36 -05:00
tjs cb3ad6e460 add console log for maxSwapForUI 2022-12-14 11:11:47 -05:00
saml33 30b86aaa23 merge main 2022-12-14 10:16:50 +11:00
saml33 de642675e5 Merge branch 'main' into new-font-expanded 2022-12-14 10:16:14 +11:00
saml33 e2e08fe829 use expanded font for large numbers 2022-12-13 22:05:01 +11:00
tjs 4eb21b4b41 update usetokenmax price 2022-12-13 00:38:12 -05:00
saml33 ece65c9b7d remove expanded font 2022-12-13 16:20:45 +11:00
saml33 d6747c88ed tt commons font poc 2022-12-13 12:51:26 +11:00
saml33 7e3c6e9467 add padding 2022-12-12 21:27:30 +11:00
tjs 9e22329cf8 wip: debug errors 2022-12-12 02:20:28 -05:00
saml33 776c581c75 update copy and icon 2022-12-12 10:21:40 +11:00
saml33 fda8dac2b2 handle empty token/stats api data 2022-12-11 21:10:11 +11:00
tjs 70a83a3f27 fix trade form logos 2022-12-09 19:33:27 -05:00
tjs bb41044d0c fix swap coingecko price difference calc 2022-12-09 13:16:48 -05:00
saml33 084c945bd4 add borrow tooltips to swap review 2022-12-09 10:42:55 +11:00
tjs 0f40c967fe remove borrow info from swap form 2022-12-08 17:36:04 -05:00
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
saml33 17156fd87f move swap borrow amount info 2022-12-08 22:15:16 +11:00
saml33 3e159261e6 move howl outside components 2022-12-08 16:05:36 +11: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 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 57c65a90d1 remove box shadow on mobile 2022-12-07 15:10:52 +11:00
saml33 7b58e9ce6d add token stats charts 2022-12-06 22:58:22 +11:00
saml33 b2f74667c1 swap history table loading 2022-12-05 14:05:20 +11:00
saml33 39fcc35f4e simplify swap history table 2022-12-05 12:06:50 +11:00
saml33 1768483ca1 use theme css vars instead of hardcoded rgba 2022-12-04 20:21:32 +11:00
tjs 3b41277099 fix so error messages show txid 2022-12-02 18:47:08 -05: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 63e3d187b1 add swaps to activity feed 2022-11-29 21:33:15 +11:00
saml33 82abfaf555 add padding 2022-11-28 10:40:40 +11:00
saml33 44022ae602 token vault balance warnings 2022-11-27 23:36:12 +11:00
saml33 75f2fd720b componentize settings page 2022-11-25 13:39:14 +11:00
saml33 39485015c2 connect empty state icons 2022-11-25 10:56:31 +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 02cabb1b33 update swap token list labels 2022-11-22 21:36:45 +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
saml33 365f06ae87 swap success animation 2022-11-22 14:23:54 +11:00
saml33 69304a2457 remove unsettled from swap 2022-11-21 15:21:20 +11:00
tjs eb3d915916 wip: add unsettled perp 2022-11-20 21:29:54 -05: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
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 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
tjs 1d95b280e2 update balances table name to be clearer 2022-11-17 17:16:45 -05:00
tjs eb6d3785ee downgrade jupiter for now so builds are working 2022-11-17 16:04:31 -05: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
tylersssss f78ebae5c8
Merge branch 'main' into use-birdeye-api 2022-11-14 19:59:21 -05:00
saml33 07d420e785 update swap tour copy 2022-11-14 14:33:45 +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
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 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
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 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
saml33 8254602691 icon button sizes 2022-10-29 22:38:40 +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
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
saml33 6d85da0ab5 misc styling 2022-10-22 23:14:25 +11: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 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 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
microwavedcola1 72e4808141 match mango-v4 dev branch
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
2022-10-07 14:27:42 +02:00
saml33 1bcde660b3 account, swap and trade tabs 2022-10-07 14:16:11 +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 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 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 cff49ded6f merge main 2022-09-30 22:55:28 +10: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 a04b7cc630 add basic filters 2022-09-29 13:35:34 +10:00
saml33 e81d048bee merge main 2022-09-28 13:55:22 +10:00
saml33 173e77bcb1 align explorer logo to column end 2022-09-28 13:13:49 +10:00
saml33 ac200c20b6 add preferred explorer 2022-09-28 13:07:26 +10:00
saml33 ab2749cea0 add basic table 2022-09-27 16:22:51 +10:00
saml33 45893804e6 merge main 2022-09-24 20:20:49 +10:00
saml33 5bb3c3e6e9 misc styling 2022-09-23 15:09:38 +10:00
saml33 8986660b55 merge main 2022-09-23 14:08:56 +10:00
saml33 9750b82e9c save hasSeen tour to db 2022-09-23 14:00:42 +10:00
tjs 661fed8ce9 refactor useTokenMax to fix regressions 2022-09-22 17:35:07 -04:00
saml33 545470cf1f add consistent tracking to font-mono class 2022-09-22 20:46:51 +10:00
saml33 f5abb4d381 add tours and copy 2022-09-22 14:25:24 +10:00
saml33 7f697894e6 add health impact tooltip 2022-09-20 16:31:07 +10:00
saml33 1d86e19158 fire getTokenMax on connection 2022-09-20 15:33:59 +10:00
saml33 d17874f87f merge main 2022-09-20 14:55:04 +10:00
saml33 2806f0b940 improve swap mobile layout 2022-09-20 11:09:34 +10:00
saml33 f15de620ee open orders empty states 2022-09-19 21:32:59 +10:00
saml33 637f14a8a3 fix swap empty states 2022-09-19 20:43:38 +10:00
saml33 2b4f3410d2 align account page layout to swap/trade 2022-09-19 13:53:52 +10:00
saml33 fa08f0e819 align swap form elements 2022-09-16 21:37:24 +10:00
saml33 3c55bf5b59 mobile trade page 2022-09-16 20:49:10 +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 e42e4db58a style trade form 2022-09-15 14:12:00 +10:00
saml33 9ab19e13cd align horizontal baseline 2022-09-15 12:41:55 +10:00
saml33 17b52d242d change copy on swap page to be swap oriented and rename files 2022-09-15 11:06:00 +10:00
saml33 6d901dd847 remove double borders from swap 2022-09-15 10:33:34 +10:00
saml33 94b4dfe9a0 add function for token max 2022-09-15 10:02:16 +10:00
tjs f6304e2910 undo some changes from my swap page refresh 2022-09-14 17:57:12 -04:00
tjs 2c69636a8a refactor swap token chart 2022-09-14 15:38:43 -04:00
tjs 9780a94ce1 Test matching swap page with advanced trade page 2022-09-14 15:38:25 -04:00
tjshipe 83dc98ad25
Merge branch 'main' into onboarding-tour 2022-09-14 10:11:13 -04:00
saml33 6dab2b74cf sort sell token list by max amount 2022-09-14 20:37:45 +10:00
tjs 007c3c2fa2 Merge branch 'serum' into main 2022-09-14 02:25:15 -04:00
saml33 32af136ff8 fix toggle margin bug 2022-09-14 10:19:56 +10:00
saml33 bd6a0e8ced use thin scroll on fund account 2022-09-13 16:21:19 +10: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 dd8f188a34 add percentage change component 2022-09-08 11:52:47 +10:00
saml33 89704f18d5 add icons to buttons 2022-09-08 10:47:59 +10:00
saml33 9e858968b2 update heroicons to latest version 2022-09-07 14:36:35 +10:00
tjs 6f6ee459a8 add borrow fee to trade review 2022-09-05 18:38:47 -04:00
saml33 de76d68f18 change tab title to balances 2022-09-05 16:32:10 +10:00
tjs 5e879c1c69 prevent leverage slider from converting swap input to string
use Decimal in more places
2022-09-02 19:52:07 -04:00
tjs 51e1ba37a0 better mango account reloading; use latest client 2022-09-02 19:51:35 -04:00
tjs 6c714816a2 use Decimal class; use NumberFormat for input components 2022-09-02 14:37:18 -04:00
tjs f98ed3fc6d upgrade to zustand 4.1.1 2022-09-01 15:06:21 -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
tjs a4cfafb484 fix handling small decimals in swap form input 2022-08-31 11:54:43 -04:00
tjs 5832b69902 only set amountIn when swapping if amountOut is gt 0 2022-08-31 11:10:34 -04:00
tjs 9d7f8e5158 always show popular tokens in token select 2022-08-31 11:06:49 -04:00
saml33 b18d3c9049 show chart empty state on data error 2022-08-30 15:03:08 +10:00
saml33 130d5c2a50 format chart high/low decimals 2022-08-30 14:54:16 +10:00
saml33 c3fa10f26f show high/low on trade chart 2022-08-30 13:44:27 +10:00
tjs bb9263ed0a test2 2022-08-27 01:51:14 -04:00
tjs ae0647bec2 test tokenmax issue 2022-08-27 01:48:18 -04:00
tjs d0875ba345 fix tokenbalance for max calc 2022-08-27 01:23:08 -04:00