Commit Graph

662 Commits

Author SHA1 Message Date
Lou-Kamades 296241b21d re-enable wallet swap 2023-11-13 11:51:42 -06:00
saml33 06f9397ed3 hide wallet swap 2023-11-13 12:22:44 +11:00
saml33 b7ca2a3710 show trigger order lines on chart 2023-11-06 15:00:41 +11:00
saml33 3fe194c25f form validation 2023-11-05 22:22:05 +11:00
saml33 101d6efd5d add trigger orders to trade form 2023-11-04 23:24:17 +11:00
saml33 906ee6740d improve mobile swap chart loading 2023-11-02 13:24:45 +11:00
saml33 a63db09bff remove auto-focus search inputs on mobile 2023-11-02 12:38:41 +11:00
saml33 686c654c48 merge main 2023-10-30 16:11:41 +11:00
saml33 bb77fbb0ce add popular swap tokens 2023-10-30 13:18:03 +11:00
saml33 b5941acf3e swap form button component 2023-10-30 11:01:35 +11:00
saml33 25eb665cc1 mobile styling fixes 2023-10-29 21:57:08 +11:00
saml33 726863e053 add countdown to refetch and refetch button 2023-10-28 22:49:46 +11:00
saml33 03fe88f012 merge main 2023-10-28 21:31:24 +11:00
saml33 a825231ae7 update swap slippage notification trigger 2023-10-27 21:32:37 +11:00
microwavedcola1 fb3a9239ec
Jupiter referral accounting in UI with a minor fee (#298)
* use platform fee bps

Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>

* Fixes from review

Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>

---------

Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
2023-10-27 08:38:14 +02:00
saml33 f7a5d7f650 improve swap quote fetching and chart price 2023-10-27 15:30:17 +11:00
Riordan Panayides 2aa2f0422c Add warning bnner, add granular features for geoblock, allow geoblock reduceonly 2023-10-25 14:32:54 +01:00
saml33 3aa65f7f75 fix max borrow warning for trigger swap 2023-10-25 20:27:10 +11:00
saml33 6f1e56472e use notional amount for max borrow in period warning 2023-10-25 20:21:21 +11:00
saml33 3515c7b91b improve swap chart number scroll 2023-10-25 15:03:35 +11:00
Lou-Kamades 34095cab12 maxAccounts is dynamic based on health for Jupiter swaps 2023-10-24 13:53:04 -05:00
saml33 8e9da6ff3d fix token price chart 2023-10-24 21:51:01 +11:00
saml33 f399b67fec close swap settings on save 2023-10-24 13:44:34 +11:00
saml33 c8b63d4bc5 add swap slippage exceeded notification 2023-10-24 12:43:12 +11:00
Adrian Brzeziński a3cd3595b6 fix img loading in rewards 2023-10-24 01:33:51 +02:00
saml33 c0ad267e84 fix claim banner season number 2023-10-24 09:51:09 +11:00
Lou-Kamades 4cd0a70d0b add maxAccounts=50 to Jupiter swaps to limit txn size 2023-10-23 09:46:21 -05:00
saml33 0c6517477f swap fixes 2023-10-23 15:07:14 +11:00
Adrian Brzeziński d1a91c6e02 fix settings link 2023-10-20 17:11:19 +02:00
saml33 b19b8aa1cc add percent buttons to slider 2023-10-20 12:44:28 +11:00
saml33 bfe4a89067
Merge pull request #290 from blockworks-foundation/redesign-account-page
re-design account page
2023-10-18 11:08:10 +11:00
saml33 28f21444ea close borrow swap fixes 2023-10-18 10:24:40 +11:00
saml33 6362bd3cc1 re-design account page 2023-10-17 22:28:43 +11:00
Lou-Kamades 9018128d52 use Jupiter V6 API for swaps 2023-10-16 23:12:46 -05:00
saml33 0cff02223e close modal after swap 2023-10-13 08:38:44 +11:00
saml33 91c8682aa4 close borrows from account page 2023-10-12 22:51:02 +11:00
saml33 8d15820b44 show token reduce state and hide non-borrow tokens from borrow 2023-10-11 12:28:27 +11:00
saml33 c8ea057f68 fix max withdraw value for dust amounts 2023-10-09 15:29:26 +11:00
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