Commit Graph

623 Commits

Author SHA1 Message Date
saml33 2ee1060882 move slider beneath sell input 2023-08-24 08:17:04 +10:00
tjs 10cf640f11 update prettier pkgs, config, and reformat 2023-08-17 19:47:11 -04:00
saml33 9560db9ace merge main and add connect button to market swap form 2023-08-18 08:25:46 +10:00
saml33 402437bbf6
Merge pull request #174 from blockworks-foundation/stop-orders
stop orders
2023-08-18 08:08:21 +10:00
saml33 2e31184037 sort swap history 2023-08-17 15:52:42 +10:00
saml33 70f9d6da16 add mobile swap orders table 2023-08-17 13:57:39 +10:00
saml33 31dc29e05f remove saving chart settings and fix latest price chart flicker 2023-08-17 12:58:35 +10:00
saml33 0b86592ae4 add latest price to chart, remove comments, update copy 2023-08-17 08:31:47 +10:00
saml33 038cd74396 add trigger orders table to account page 2023-08-16 15:47:02 +10:00
saml33 68206cea69 merge main 2023-08-16 15:27:45 +10:00
saml33 f37f352975
Merge pull request #234 from blockworks-foundation/favorite-swaps
add favoriting swap pairs
2023-08-16 11:54:35 +10:00
saml33 34312e2c59 add to swap and trade 2023-08-15 22:39:42 +10:00
saml33 f4409c5424 add validation to swap form for account token positions 2023-08-15 14:25:24 +10:00
saml33 03c0fad2fa add favoriting swap pairs 2023-08-14 14:57:03 +10:00
tjs 60810ca2e4 improve speed of market swap 2023-08-14 00:26:39 -04:00
saml33 574d51bd40 add beta label 2023-08-14 11:30:28 +10:00
saml33 5aefb6b49f use helper function for current price 2023-08-13 22:47:25 +10:00
saml33 8ed1ab81bc merge main 2023-08-13 21:21:08 +10:00
tjs 62a3f337e1 use latest client; upgrade to new signature status 2023-08-12 14:40:34 -04:00
saml33 eef5d86e1a fix place order button 2023-08-11 19:56:01 +10:00
saml33 38241f739d add deposit funds button when no balance or collateral 2023-08-11 10:52:42 +10:00
saml33 25e885a084 add free collateral warning 2023-08-11 09:53:11 +10:00
saml33 317c7579c2 improve repay borrow order description 2023-08-09 14:31:49 +10:00
saml33 621839af25 add cancel all 2023-08-09 13:40:26 +10:00
saml33 64bc709034 fix order desc for flip prices 2023-08-09 13:14:59 +10:00
saml33 7d91dc1c91 add side to table and fix size 2023-08-09 12:53:59 +10:00
saml33 f575a39cec add whitelist and bump client 2023-08-09 11:03:54 +10:00
saml33 3a3e058234 add updated client functions 2023-08-08 23:26:56 +10:00
saml33 751afaae79 merge main 2023-08-08 10:09:05 +10:00
saml33 5c207b8add attempt to fix chart flicker and less renders 2023-08-04 23:48:17 +10:00
saml33 f9c3e457ec rearrange trigger price elements 2023-08-04 22:03:19 +10:00
saml33 306e1f0fdf save chart and price direction on flip price 2023-08-04 21:32:42 +10:00
saml33 37d9b1ce0a fix default trigger price for flip prices 2023-08-04 20:25:43 +10:00
saml33 07642c4d3b add form validation 2023-08-04 16:14:41 +10:00
saml33 1c85169e3d fix chart change mouse data bug 2023-08-04 13:29:04 +10:00
saml33 78da92f453 various fixes 2023-08-04 12:06:09 +10:00
saml33 a2f2c0fe03 add order types back 2023-08-03 23:44:23 +10:00
saml33 ce1939b63c save chart direction 2023-08-03 20:37:40 +10:00
saml33 bb9354baa4 add est slippage/received 2023-08-03 10:45:40 +10:00
saml33 aaa5260083 add order info 2023-08-02 23:21:51 +10:00
saml33 934e55ec93 simplify form 2023-08-02 15:32:20 +10:00
saml33 f284f45afd set sizes from bal/max/repay buttons 2023-08-01 22:21:19 +10:00
saml33 83662a52eb remove validation for testing 2023-08-01 20:49:01 +10:00
saml33 9013cd8722 fix limit and trigger price decimals 2023-08-01 15:13:12 +10:00
saml33 c35ccd54ae form validation and copy 2023-08-01 10:57:53 +10:00
saml33 2e0076bd73 fixes 2023-07-31 22:25:46 +10:00
saml33 7e600cfd20 test placing orders and swap orders table 2023-07-31 16:05:26 +10:00
saml33 840991961f merge main 2023-07-31 09:56:42 +10:00
saml33 9203be64a2 save swap margin to local storage 2023-07-27 10:37:35 +10:00
saml33 ce4c9389c0 merge main and more componenets 2023-07-26 12:48:13 +10:00
saml33 a151aa5190 add missing parts to market swap trade form 2023-07-25 12:35:27 +10:00
Adrian Brzeziński 7f8e8eaa14
fix oracle tools (#216)
* use direct routes

* fix
2023-07-24 20:16:10 +02:00
tjs abc5984647 use latest next-themes 2023-07-21 14:50:06 -04:00
tjs 3d8588d434 use latest prettier 2023-07-21 14:47:53 -04:00
saml33 226d610bbf
Merge pull request #193 from blockworks-foundation/depth-chart
orderbook depth chart
2023-07-21 20:01:41 +10:00
saml33 5929ebbbbf
Merge pull request #208 from blockworks-foundation/improve-swap-history-chart
improve swap history indicators on swap chart
2023-07-21 12:20:15 +10:00
saml33 588433f19a add callbacks 2023-07-21 10:45:03 +10:00
tjs 4bb2c0016e migrate to wallet-adapter only; use autoconnect 2023-07-20 19:08:04 -04:00
tlrsssss cb9124b64c
Merge pull request #209 from blockworks-foundation/filter-swap-token-list
filter swap token list input
2023-07-20 10:48:55 -04:00
saml33 6954082b0b remaining fixes 2023-07-20 20:40:27 +10:00
saml33 b271793f66 filter swap token list input 2023-07-20 13:19:03 +10:00
saml33 c5a0efa781 improve swap history indicators on swap chart 2023-07-20 11:26:13 +10:00
tjs 848286d947 add trade page swap summary details 2023-07-18 14:55:13 -04:00
tjs e5945b60e2 Merge branch 'main' into ts/trade-pg-jup 2023-07-18 13:23:07 -04:00
saml33 d1cbec6196 add repay amount to swap output token 2023-07-18 15:22:13 +10:00
tjs e478d6405a use jupiter on trade page 2023-07-16 23:41:13 -04:00
saml33 81d007f8a5 show swap chart unavailable when data.length < 2 2023-07-13 08:17:20 +10:00
tjs 3e6f6aa4d2 capture swap exceptions 2023-07-12 12:31:08 -04:00
tjs 94b8aec4d9 order exactout swap amounts correctly 2023-07-10 13:15:32 -04:00
saml33 866afe27f8
Merge pull request #194 from blockworks-foundation/custom-token-logos
add custom icons
2023-07-06 08:24:59 +10:00
saml33 ba6799c202 show margin switch on swap form 2023-07-05 15:38:14 +10:00
saml33 462d6210d6 add custom icons 2023-07-05 14:40:47 +10:00
Adrian Brzeziński e5273f9620
Delegate swap (#186)
* allow swap button for delegate

* restrict routes to jupiter only when using delegate

* fix

---------

Co-authored-by: saml33 <slam.uke@gmail.com>
2023-06-28 19:19:02 +02:00
saml33 bf76285c66 better handle limit price 2023-06-17 22:22:05 +10:00
saml33 f65305de7f merge main 2023-06-16 22:30:06 +10:00
saml33 eedc32fadb split swap and limit into two components 2023-06-16 22:23:50 +10:00
saml33 a89a042e57 add input/output notional value to swap form 2023-06-16 14:08:45 +10:00
saml33 dd3d2f52aa add input/output notional values 2023-06-16 13:58:12 +10:00
saml33 42051e0ea5 add stop order ui to trade form 2023-06-15 20:45:42 +10:00
saml33 b548e7f61e ui for swap limit orders 2023-06-15 14:42:34 +10:00
saml33 5f90821a22 add manual refresh button 2023-06-14 11:12:28 +10:00
Adrian Brzeziński 655662bf05
token listing presets (#163)
* wip create oracle

* wip

* wip

* wi[

* switchboard oracle wip

* switchboard oracle

* switchboard authority

* deduplicate

* fix cfg

* listing presets

* fix

* fix

* fix

* fix

* fix

* fix

* fix

* small fixes

* fix insurance found prop

* more param fixes

* more sol funding to switchboard oracle

* oracle lock fix

* adjust oracle settings

* adjust params
2023-06-07 00:54:44 +02:00
saml33 ab62e89893 show if margin is enabled/disabled on swap form 2023-06-02 10:55:24 +10:00
saml33 8deaeccf18 remove swap form double border 2023-05-15 14:41:32 +10:00
saml33 50e567b278 show borrow fee in swap review 2023-05-14 21:33:01 +10:00
saml33 dd0f89861e undo allowing delegate accounts to swap 2023-05-12 12:49:01 +10:00
saml33 e314901f27 fix max swap amounts for reduce only 2023-05-12 12:25:16 +10:00
saml33 ef383bec36 fix reduce only display in swap list 2023-05-12 11:48:30 +10:00
saml33 aa6a5e75c9 add missing tooltips 2023-05-03 13:57:54 +10:00
saml33 1afb2fe36c update recharts 2023-05-02 12:01:14 +10:00
tlrsssss 78fcb8ca8c
Merge pull request #131 from blockworks-foundation/swap-review-animation
fix swap review transition
2023-04-26 13:13:27 -04:00
saml33 8b53a01232 fix swap history filtering 2023-04-24 11:51:46 +10:00
saml33 302dadd35b merge main and show swaps by default 2023-04-24 11:29:36 +10:00
saml33 b960c25db4 fix swap review transition 2023-04-21 16:10:09 +10:00
saml33 1750b865ca remove inline default-transition class 2023-04-20 11:12:45 +10:00
saml33 228ea6d59a change focus states to use focus-visible 2023-04-20 10:43:33 +10:00
microwavedcola1 da49da23c1 Revert "swaps disabled message"
This reverts commit 17ea3b2be4.
2023-04-19 08:49:16 +02:00
microwavedcola1 50c6fc0a38 Revert "fix typo"
This reverts commit a9666ffffe.
2023-04-19 08:49:09 +02:00
tlrsssss 94329f4d89
Merge pull request #124 from blockworks-foundation/foramt-swap-token-symbols
format swap token symbols
2023-04-18 18:07:13 -04:00
saml33 948c37ad59 merge main 2023-04-17 21:31:51 +10:00
saml33 821cc56328 format swap token symbols 2023-04-17 11:04:13 +10:00
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