Commit Graph

624 Commits

Author SHA1 Message Date
saml33 605637a9de refetch wallet balance on wallet swap 2023-09-29 11:53:12 +10:00
saml33 8829719e67 show trigger orders table when on trigger order tab 2023-09-29 11:44:41 +10:00
saml33 b255022914 set swap form from url query 2023-09-26 15:31:06 +10:00
saml33 e38ce34d55 fix prop name 2023-09-25 10:06:54 +10:00
saml33 1bacd9cad8
Merge pull request #276 from blockworks-foundation/saml33/wallet-swap
wallet swap
2023-09-24 20:19:17 +10:00
tjs ba8504392a update prop name 2023-09-21 17:22:04 -04:00
saml33 d36ea0a708 improve layout 2023-09-19 11:22:10 +10:00
saml33 812894f718 Merge branch 'main' into saml33/wallet-swap 2023-09-19 10:05:43 +10:00
saml33 962aa6c23f add disabled swap button state back for no form values/route 2023-09-19 08:44:21 +10:00
saml33 5fcb003efe remove free collateral warning from trigger orders 2023-09-19 08:17:58 +10:00
saml33 5677250e39 hide swap free collateral warning 2023-09-19 08:14:01 +10:00
Lou-Kamades 53c2bf9c74
disable swap input validation 2023-09-18 15:42:37 -05:00
Adrian Brzeziński 8175ee6431 fix ata creation during wallet swap 2023-09-18 21:25:42 +02:00
microwavedcola1 fbb77015ed another attempt at allowing swaps
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
2023-09-18 20:13:17 +02:00
microwavedcola1 8a7ce380e4 disable free collateral warning for now, might be not 100% correct
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
2023-09-18 19:30:13 +02:00
saml33 140a0f9352 wallet swap ui 2023-09-18 22:55:37 +10:00
microwavedcola1 5133f00dcf disable mango router for now due to tx hitting tx size limit
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
2023-09-18 12:39:45 +02:00
saml33 92139308e4 add tcs orders 2023-09-13 11:10:21 +10:00
saml33 634a017b1e add token positions warning to trigger swap 2023-09-10 23:26:52 +10:00
saml33 3957e93fb4 format trigger order table prices 2023-09-10 22:00:06 +10:00
saml33 63aadfbe7e add important info to trigger orders 2023-09-09 23:00:45 +10:00
saml33 117f6a1d2b fix borrows in period warning 2023-09-09 21:32:28 +10:00
saml33 2dfdcb13ba remove whitelist 2023-09-08 22:28:36 +10:00
saml33 bfd89d41e2 fix order price units 2023-09-08 22:06:58 +10:00
microwavedcola1 436ded7122 flipped price needed one more flip
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
2023-09-08 13:52:34 +02:00
saml33 5c90007892 merge main 2023-09-08 21:42:03 +10:00
saml33 fbeeafd253 order table fixes, allow margin on short positions and fix borrow order desc 2023-09-08 21:38:17 +10:00
saml33 a3b46c6ca0 fix account token positions count 2023-09-08 19:39:56 +10:00
saml33 006da27edf fix token positions warning for market swap 2023-09-08 14:36:57 +10:00
saml33 7866282b47 fix balance click for trigger orders 2023-09-08 13:35:30 +10:00
saml33 a30b5a42e4 show borrow amount in order desc when reducing short on margin 2023-09-08 12:39:39 +10:00
saml33 ba859597ef fix trigger price when changing tokens 2023-09-07 23:59:24 +10:00
saml33 e4b3e95d8f order description and form errors 2023-09-07 23:26:55 +10:00
saml33 3cb444c332 reduce rendering from mangoAccount and remove repay borrow code 2023-09-07 22:37:33 +10:00
saml33 a9380dfd3b fix default trigger price 2023-09-07 21:55:56 +10:00
Christian Kamm 9bf63a9862 fix order type string 2023-09-07 11:50:51 +02:00
Christian Kamm 5a5976dc63 fix default trigger price for bonk
by generally restricting significant decimals on prices, instead using
the in or output banks decimals.
2023-09-07 11:43:29 +02:00
Christian Kamm b1a159d58f fix default trigger order price 2023-09-07 10:22:31 +02:00
Christian Kamm 3d71e76d26 fix trigger order slider for shorts 2023-09-07 09:59:04 +02:00
saml33 a9332f3e7a update place order to handle borrow positions 2023-09-07 14:29:31 +10:00
saml33 7f225b3502 expand on ckamm wip 2023-09-07 13:51:57 +10:00
Christian Kamm 1bf1514cc0 wip 2023-09-06 15:18:05 +02:00
saml33 82946353d3 refactor isMobile 2023-09-01 13:22:50 +10:00
saml33 de4568c48e move manual refresh on trade page 2023-08-31 15:34:22 +10:00
saml33 2aaffdd8b1 add to trade form 2023-08-28 21:59:36 +10:00
saml33 2c60c255b2 add to limit swap form 2023-08-28 16:06:16 +10:00
saml33 075e8156b2 add period borrow limit warning to market swap 2023-08-28 15:59:56 +10:00
saml33 e10e54fcc7 change default buy token to sol if sell token is usdc 2023-08-24 10:21:06 +10:00
saml33 094b6524e3 comment out repay borrow 2023-08-24 10:09:48 +10:00
saml33 06fc6dcefc update copy and set default buy token to usdc for trigger order 2023-08-24 09:55:49 +10:00
saml33 a86f6dd94a disable margin in sell token list for trigger orders 2023-08-24 08:44:16 +10:00
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