Commit Graph

2604 Commits

Author SHA1 Message Date
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
Adrian Brzeziński 746b7b0f0f fix suggested values 2023-09-18 12:25:24 +02:00
tjs d70e7b31e8 refactor 2023-09-16 13:54:11 -04:00
saml33 750984b713 only fetch profile details for displayed top token accounts 2023-09-16 21:48:03 +10:00
microwavedcola1 db5f8e8d16 Revert "remove warning"
This reverts commit 416db3df58.
2023-09-16 12:42:06 +02:00
microwavedcola1 416db3df58 remove warning
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
2023-09-16 11:30:05 +02:00
saml33 b0d8d6bb9d reset skin when switching to wallet without nft 2023-09-15 23:08:02 +10:00
saml33 9875dab62b add profile data back to top depositors/borrowers 2023-09-15 21:39:29 +10:00
Adrian Brzeziński 0dc12bf4df
fix theme settings transalations on all pages (#273) 2023-09-14 16:47:21 +02:00
saml33 b7b1adc605 fix create account modal height 2023-09-13 15:19:10 +10:00
saml33 42ed62a2ec fix market trade max button 2023-09-13 14:44:48 +10:00
tjs 569d1a4c91 add trading view link 2023-09-12 23:40:01 -04:00
saml33 257218b98c close settings modal with esc button 2023-09-13 12:47:15 +10:00
saml33 6422f9e33b merge main 2023-09-13 12:19:43 +10:00
saml33 8f4f152372
Merge pull request #269 from blockworks-foundation/settings-modal
organize settings and use modal instead of page
2023-09-13 12:16:27 +10:00
saml33 de2d89a471
Merge pull request #271 from blockworks-foundation/saml33/close-token-positions
add close token positions to settings
2023-09-13 12:14:51 +10:00
saml33 92139308e4 add tcs orders 2023-09-13 11:10:21 +10:00
saml33 77c3bdd359 add close instructions 2023-09-12 23:32:09 +10:00
saml33 e6db2d2267 add leverage to market select dropdown 2023-09-12 14:17:59 +10:00
saml33 2ba547124b add close token positions to settings 2023-09-12 12:41:34 +10:00
saml33 6beeb1626f force withdraw total balance and bump client 2023-09-12 10:05:52 +10:00
Adrian Brzeziński 662d110ae0 fix naming of suggested values borrow weight and deposit weight 2023-09-11 21:13:54 +02:00
saml33 38abc0cee2 fix hourly account volume 2023-09-11 23:41:11 +10:00
saml33 17d0027931 show notification when loading closed or invalid accounts 2023-09-11 22:41:19 +10:00
saml33 b1a3655889 improve openbook warning 2023-09-11 22:10:42 +10:00
microwavedcola1 da90bf8178 add openbook warning
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
2023-09-11 11:48:25 +02:00
saml33 03ff456109 fix orderbook size toggle 2023-09-11 16:15:50 +10:00
Lou-Kamades d40d6c9f02
Merge pull request #265 from blockworks-foundation/lou/column-sort
add sorting to market selection
2023-09-11 00:36:48 -05:00
saml33 df12bc0195 add more details to activity feed spot trades 2023-09-11 14:32:58 +10:00
Lou-Kamades 88b9ca8a71
update MarketChange to use useListedMarketsWithMarketData 2023-09-10 23:28:35 -05:00
saml33 83d8f9d9db add seconds to activity feed date 2023-09-11 12:47:11 +10:00
saml33 1db55886c5 remove console.log 2023-09-11 11:43:25 +10:00
saml33 d9e6e1947c
Merge pull request #257 from blockworks-foundation/close-unused-slots
update layout: account slots and close unused slots
2023-09-11 11:41:04 +10:00
saml33 74c1387577 fix close serum oo function 2023-09-11 10:15:01 +10:00
saml33 a75795d936 merge main 2023-09-11 09:57:14 +10:00
saml33 71e1230374 add accounts list button back to mobile 2023-09-11 09:45:12 +10:00
saml33 34aa442244 fix withdraw max button value 2023-09-11 09:30:04 +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
Lou-Kamades 5be792f47f
add sorting to market selection 2023-09-08 17:01:08 -05:00
Adrian Brzeziński e78e579611 upgrade mango settings 2023-09-08 17:55:24 +02: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 d0845efbae merge main 2023-09-08 09:53:01 +10:00
Adrian Brzeziński c9fef7766a fix test sidebar nft 2023-09-07 22:18:25 +02:00
saml33 a33ad21b87
Merge pull request #261 from blockworks-foundation/private-counterparty-links
disable private counterparty links in trade history
2023-09-08 00:30:48 +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
Adrian Brzeziński 0a12116dd5 fix suggested values modal 2023-09-07 14:34:43 +02:00
Adrian Brzeziński 5cd2463ab2 bump token listing settings 2023-09-07 14:33:01 +02:00
saml33 a9380dfd3b fix default trigger price 2023-09-07 21:55:56 +10:00
microwavedcola1 8193542879 Bump TS client
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
2023-09-07 13:48:54 +02: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
saml33 1f6dbaa061 add to mobile table 2023-09-07 11:57:59 +10:00
saml33 2c054d6a2b disable private counterparty links in trade history 2023-09-07 10:35:31 +10:00
Christian Kamm 1bf1514cc0 wip 2023-09-06 15:18:05 +02:00
Adrian Brzeziński ef3a46dde7 adjust force report in switchboard oracle 2023-09-06 13:05:42 +02:00
Adrian Brzeziński c2927b92e8
Self send nfts to mark transactions in logs (#260)
* ledger setup + lib bump

* fix

* remove ledger checkbox

* fix

* self send nfts tx mark
2023-09-06 12:30:54 +02:00
tjs 44b827da32 faster trade chart loading 2023-09-06 00:00:38 -04:00
Adrian Brzeziński 2fb3b1d615
add notifications sign to mango create account process (#254)
* ledger setup + lib bump

* fix

* remove ledger checkbox

* fix

* update layout/copy

* fix typo

---------

Co-authored-by: saml33 <slam.uke@gmail.com>
2023-09-05 20:50:12 +02:00
tjs 690c14156b Use latest client with 'api' source id for group loading 2023-09-05 11:05:29 -04:00
saml33 1614ae68d9 organize settings and use modal instead of page 2023-09-05 14:43:26 +10:00
saml33 394c232050 add tooltip to privacy mode 2023-09-05 08:42:00 +10:00
saml33 746eec0b60 remove private account from display settings 2023-09-05 08:34:37 +10:00
saml33 fef574bed6 update hidden mango account settings copy 2023-09-05 08:24:42 +10:00
saml33 434f3c2425
Merge pull request #247 from blockworks-foundation/lou/account-visibility
Add a toggle for hiding mangoAccount in leaderboards + search
2023-09-05 08:06:31 +10:00
saml33 60c6fdd213 toggle orderbook size between base and quote 2023-09-04 15:41:19 +10:00
saml33 eb5e132fc6 fix mobile orderbook depth 2023-09-04 14:31:16 +10:00
saml33 b658a69d1b update layout 2023-09-04 13:43:34 +10:00
saml33 bedf6637c8 use tokenlogo component on token page 2023-09-04 10:17:44 +10:00
Lou-Kamades 93e31ce5eb
don't load hidden mango accounts 2023-09-03 16:07:40 +02:00
Lou-Kamades c1f2447ef5
create modal for close unused account slots 2023-09-01 15:56:29 +02:00
saml33 863a80d204 view and create hotkeys from trade page 2023-09-01 23:46:28 +10:00
saml33 82946353d3 refactor isMobile 2023-09-01 13:22:50 +10:00
tjs d5d6c99743 move width and height into mangostore 2023-08-31 22:24:36 -04:00
saml33 8819f1af3f
Merge pull request #251 from blockworks-foundation/hotkeys-hook
use react-hotkeys-hook
2023-09-01 08:24:30 +10:00
saml33 acfcfcce79 use react-hotkeys-hook 2023-09-01 08:19:37 +10:00
Lou-Kamades c5cf3f0ecb
allow users to manually close unused spot oo accounts and perp positions 2023-08-31 17:54:08 +02:00
Lou-Kamades 9d7e2e2385
exclude hidden mango accounts from search + leaderboard 2023-08-31 17:21:33 +02:00
Lou-Kamades fcf9a36c21
hide pnl for private non-owned mangoAccounts 2023-08-31 17:21:33 +02:00
Lou-Kamades 5c0a6e2955
add a toggle for hiding mangoAccount in leaderboards + search 2023-08-31 17:21:23 +02:00
saml33 2e73510e26 fix trade tabs width on mobile 2023-08-31 23:26:33 +10:00
saml33 3432eee6ee fix cancel open order bug 2023-08-31 21:41:31 +10:00
saml33 de4568c48e move manual refresh on trade page 2023-08-31 15:34:22 +10:00
saml33 a7fa1e0b18 fix nested button console error 2023-08-31 14:42:29 +10:00
saml33 22c4e3f764
Merge pull request #249 from blockworks-foundation/borrow-limit-warning
borrow limit per period warning
2023-08-31 08:21:18 +10:00
saml33 6ed5237ffa update trade executions tooltip 2023-08-30 12:54:40 +10:00
saml33 9c3888abef fix orderbook spread alignment 2023-08-30 11:05:31 +10:00
Lou-Kamades 220f0cfa96
Merge pull request #243 from blockworks-foundation/lou/estimate-priority-fees
Estimate priority fees
2023-08-29 17:42:20 -05:00
Lou-Kamades b7cf2cd573
estimate priority fees in the ui 2023-08-29 21:34:40 +02:00
saml33 d239e23eda
Merge pull request #231 from blockworks-foundation/lou/open-orders-filled
Add Filled Size to the open orders table
2023-08-29 13:08:53 +10:00
saml33 cf1580e3be add roe to main perp positions table 2023-08-29 12:27:35 +10:00
saml33 40f1c8657b update funding rate tooltip 2023-08-29 11:02:13 +10:00
saml33 613dbff797 fix trade page height 2023-08-29 10:47:22 +10:00
saml33 672c5838cc
Merge pull request #248 from blockworks-foundation/close-all-perp
add close all perp positions
2023-08-28 23:33:36 +10:00
saml33 2aaffdd8b1 add to trade form 2023-08-28 21:59:36 +10:00
Lou-Kamades 1a01fcad3a
Merge pull request #232 from blockworks-foundation/lou/position-privacy
Add privacy toggle to PerpPositions
2023-08-28 05:25:08 -05:00
Lou-Kamades 19b57bca70
add filled size to the open orders table 2023-08-28 11:17:42 +02: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 9f46b599b8 only show insufficient liquidity warning after bids/asks are loaded (market close perp position) 2023-08-28 14:05:42 +10:00
saml33 cfe4b8f0dc add close all perp positions 2023-08-28 13:47:50 +10:00
saml33 559170bded style sign with ledger for notifications 2023-08-28 09:47:15 +10:00
Adrian Brzeziński 71d2cb1465
add ability to sign with ledger to notifications center (#244)
* fix

* use ledger to sign
2023-08-27 14:53:24 +02:00
saml33 5970928ee5 fix nft page scroll after modal close 2023-08-27 22:32:59 +10:00
saml33 1fa9a8b836 add loading to nft offers table 2023-08-27 22:09:18 +10:00
saml33 9fc3a1fcdd add buy now function to nft offer modal 2023-08-27 21:32:50 +10:00
tjs 21a4c11673 fetch tx when clicking swap 2023-08-25 13:52:00 -04:00
tjs 8fee400e4f trade page slippage will use swap settings; use shared comp for max swap 2023-08-25 12:46:45 -04:00
saml33 16c7cbfbd8 add nft details to offers 2023-08-25 14:02:21 +10:00
saml33 c71c62f5f3 add transaction confirmation notifications to nft transactions 2023-08-25 08:14:19 +10:00
saml33 98cd5a9e54 change max serum3 slots to 4 2023-08-24 22:05:22 +10:00
saml33 ae64323d3c fix initial nft listings load and sort by price 2023-08-24 15:31:54 +10:00
saml33 a85003bc9c filter nft listings by collection name 2023-08-24 14:44:09 +10:00
saml33 d50869a700 add more detail to nft listings 2023-08-24 14:09:23 +10:00
saml33 fbab97e7f2 add content to nft offers modal 2023-08-24 13:38:33 +10:00
saml33 b28228ae58 add more try/catch blocks to nft market 2023-08-24 12:35:02 +10:00
saml33 e8fa6cb8d6
Merge pull request #245 from blockworks-foundation/swap-ui-updates
swap ui updates
2023-08-24 11:49:56 +10:00
saml33 c737eb1307 decrease account size maximum accounts 2023-08-24 11:42:15 +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
Adrian Brzeziński ee13a7497f add price impacts to suggested tokens 2023-08-23 18:13:55 +02:00
tjs 153e7af44b fix repay form 2023-08-21 16:19:36 +02:00
tjs 8de46602a6 disable delegate if unownedaccount 2023-08-19 12:37:52 +02:00
tjs e234787f14 only show route in summary when on spot 2023-08-19 10:51:03 +02:00
Lou-Kamades bdaaf4b4b2
add a site-wide privacy mode 2023-08-18 11:26:21 -05:00
saml33 28f46d6be5 add some loading and empty states to nft market 2023-08-18 22:59:30 +10:00
Adrian Brzeziński 6ba3ca9b55 adjust oralce creation settings 2023-08-18 13:03:12 +02:00
tjs bd82563d55 move side bar collapse into sidebar component 2023-08-18 00:42:10 -04:00
tjs e346b114f0 fix viewport hook; need to move into mangostore 2023-08-17 23:57:46 -04:00
saml33 3f5b5325dc fix expanded mango account summary 2023-08-18 12:25:09 +10:00
tjs b7ea65a98a remove console logs 2023-08-17 21:17:26 -04: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
tjs 6334b2d020 remove lines 2023-08-17 17:24:10 -04:00
tjs 7056d01ef2 add next and tailwind eslint plugins 2023-08-17 17:16:23 -04:00
tjs bba5967b0a set bg color in trading view widget 2023-08-17 16:36:25 -04:00
tjs 54de7c6e84 add btm border to banner 2023-08-17 15:44:43 -04:00
Adrian Brzeziński f50eac06d4
fix suggested tokens (#239) 2023-08-17 21:43:34 +02:00
tjs 06448a7e62 remove all favorites button 2023-08-17 15:33:15 -04:00
tjs 25ffaaf937 organize stats components and improve data loading 2023-08-17 14:02:59 -04:00
saml33 1dd92446ce update open interest chart title 2023-08-17 22:45:01 +10:00
saml33 c079d170c8 fix mobile trade layout 2023-08-17 20:56:38 +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
Adrian Brzeziński 24a14d1016 adjust forceReportPeriod prop in oracle create 2023-08-16 22:45:09 +02:00
tjs 4926560550 add try catch around the liq price 2023-08-16 11:11:02 -04:00
saml33 2761dd3b26 Revert "hide est liq price due to client error"
This reverts commit ea0b3129f7.
2023-08-16 11:06:06 -04: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 ea0b3129f7 hide est liq price due to client error 2023-08-16 12:11:58 +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 442c17ac00 fix secondary connect buttons 2023-08-15 22:29:10 +10:00
saml33 f4409c5424 add validation to swap form for account token positions 2023-08-15 14:25:24 +10:00
saml33 b777660ffe add validation to deposit form when token positions full 2023-08-15 14:07:10 +10:00
saml33 ae9235b1d1 show details of used accounts in settings and hook for data 2023-08-15 13:06:00 +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
Adrian Brzeziński cf54355c96 small fix for oracle pool matching 2023-08-14 01:06:41 +02: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 0e30d3ad3d Revert "limit number of accounts to 5"
This reverts commit 2885e6e8c4.
2023-08-12 13:15:14 -04:00
Adrian Brzeziński 80912edbe2 fix oracle create 2023-08-12 16:01:12 +02:00
saml33 e21101c93d give new accounts 10 token positions 2023-08-11 20:08:07 +10:00
saml33 eef5d86e1a fix place order button 2023-08-11 19:56:01 +10:00
microwavedcola1 1408609043 decrease to a more conservative estimate until we are more certain
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
2023-08-11 10:50:41 +02:00
tjs 2ff18afbf7 use latest packages 2023-08-11 02:30:44 -04:00
saml33 2885e6e8c4 limit number of accounts to 5 2023-08-11 15:18:59 +10:00
saml33 82de613eb9 optimize pepe theme images and fix mobile topbar spacing 2023-08-11 14:55:22 +10:00
saml33 4ae9d606ef sort token stats tables by deposits value and add sorting to details table 2023-08-11 14:09:00 +10:00
saml33 768ed1170e only show increase account size when account not full 2023-08-11 13:06:38 +10:00