Commit Graph

572 Commits

Author SHA1 Message Date
saml33 0ada9e231c use swap market name instead of input bank name 2023-04-17 10:38:09 +10:00
saml33 aff12ef294 only insert swap points when swap history is toggled 2023-04-17 10:17:45 +10:00
saml33 fea60efbbb change swap history points to use arrows 2023-04-15 23:56:50 +10:00
saml33 707205eabe show swap history on swap chart 2023-04-14 15:22:39 +10:00
saml33 a9666ffffe fix typo 2023-04-14 09:48:12 +10:00
saml33 17ea3b2be4 swaps disabled message 2023-04-14 09:40:20 +10:00
saml33 ea80f1698a implement pr feedback 2023-04-06 13:24:29 +10:00
saml33 a8a8fd9fda remove formatting from max swap amount value 2023-04-06 11:15:22 +10:00
saml33 a0e4efa5bb merge main 2023-04-06 09:21:31 +10:00
Adrian Brzeziński 3bf2a7d470
list tokens from ui (#107)
* governance wip

* governance store + helpers wip

* get voter weight

* on boarding realms component

* token list wip

* pyth oracle get

* adv fields

* hidden adv fields

* create proposal fcn + mangolana

* register market wip

* list market fixes wip

* translations

* register to register trustless + layout changes

* fix layout

* match switchboard oracle

* loaders

* validation

* style components

* change icon

* copy update

* translations keys

* fix translation

* fix warning create open book market

* fix

* fix transaltion

* fix

* fix

* fix pr

* fix onboarding translation

* fix token owner record error in console

* remove axios

* generic vsr idl

* fix pr

* remove mangolana

* small folder ref

* additional prop in onboarding component

* fix translation

* fix navbar

* change order of governance in navbar

* fix proposal index

* fix pr

* remove link without href for mint

---------

Co-authored-by: saml33 <slam.uke@gmail.com>
2023-04-05 23:59:30 +02:00
saml33 e551280fa0 remove price from swap history 2023-04-03 13:02:55 +10:00
saml33 dd0ba043e6 update focus styles 2023-03-27 14:11:10 +11:00
saml33 7cd26e9da5 add focus states and improve keyboard navigation 2023-03-24 23:22:29 +11:00
tlrsssss bc5ff69cc9
Merge pull request #98 from blockworks-foundation/tradeform-borrow-fee
add loan origination fee to trade form
2023-03-19 15:52:28 -04:00
saml33 c56fc05216 swap history mobile display 2023-03-19 21:28:13 +11:00
saml33 8684f380ae add loan origination fee to trade form 2023-03-17 23:48:38 +11:00
saml33 68f32a72b1 fix swap loan orgination fee amount 2023-03-17 22:46:57 +11:00
tjs 6c66cdbf20 add try catch in useTokenMax 2023-03-12 16:01:33 -04:00
tjs 0713c3ffd7 reduce tooltip delay 2023-03-10 13:01:47 -05:00
tjs 71f1a88256 add price impact description 2023-03-08 15:40:33 -05:00
tjs fd061dcdbf move delegate checks into useUnownedAccount hook 2023-03-04 14:17:34 -05:00
tjs 917080ac09 add warning for delegate accounts 2023-03-04 13:42:46 -05:00
tjs 1d7b488cb3 margin swap modal explainer 2023-03-02 12:02:26 -05:00
tjs 3bed60af56 turn on lint errors for typescript any 2023-02-28 02:20:11 -05:00
tjs abb408678e replace any type with more defined types 2023-02-25 19:22:39 -05:00
tjs f80144640f add more types to api calls 2023-02-23 12:28:09 -05:00
tjs b5eabc4de6 show no swap route error when amount in is gt 0 2023-02-22 13:49:03 -05:00
tjs 57f927fc15 improve speed of updating open orders after websocket change 2023-02-13 22:38:57 -05:00
tjs d565b1ea46 add types 2023-02-13 22:35:07 -05:00
saml33 6a05e60376 hide action buttons for unowned accounts 2023-02-13 13:46:41 +11:00
saml33 f4209c3f88 merge main 2023-02-10 21:38:05 +11:00
saml33 73162e5544 fix negative swap max 2023-02-10 10:26:28 +11:00
saml33 5388035d33 handle swap reduce only 2023-02-09 11:31:53 +11:00
Adrian Brzeziński c4bc880e21 handle error when no swap route found 2023-02-04 22:55:42 +01:00
tjs db1598a3df fix translations 2023-01-31 16:21:13 -05:00
tjs 2b783d269e only show bal if less than amount with borrow 2023-01-31 16:18:07 -05:00
tjs 17b6861d88 check min borrow amount even when not using margin 2023-01-29 23:02:16 -05:00
saml33 6a9a40f95e remove trimdecimals 2023-01-25 14:11:42 +11:00
saml33 d25b0dc399 remove formatdecimal 2023-01-25 12:12:13 +11:00
saml33 ebf9bddfc9 remove formatfixeddecimals 2023-01-25 11:54:24 +11:00
saml33 636096ac26 add to swap history 2023-01-24 15:37:26 +11:00
saml33 7f597681fd add to maxamountbuttons 2023-01-24 14:04:05 +11:00
tjs 63909e2bb7 improve use query config options 2023-01-20 11:13:03 -05:00
tjs dd07d08d1f add dollar sign and catch errors for coingecko 2023-01-19 23:15:11 -05:00
saml33 71b40fbaf5 fix table states for unowned account 2023-01-20 14:10:15 +11:00
saml33 211bd40de1 add connect wallet empty states 2023-01-20 12:45:08 +11:00
tjs 3bc8b87830 fix localstorage default key typo 2023-01-19 15:41:11 -05:00
saml33 9f3d10d4ae merge main 2023-01-19 15:33:51 +11:00
tylersssss f0db2495fe
Merge branch 'main' into daily-pnl-history 2023-01-18 19:05:21 -05:00
saml33 4646393602 merge main 2023-01-18 22:44:11 +11:00
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