Commit Graph

1537 Commits

Author SHA1 Message Date
saml33 7bbff02367 add deposit info if repayment > borrow 2023-02-10 21:21:26 +11:00
saml33 4f26846caf fix account action modals max bug 2023-02-10 20:41:06 +11:00
saml33 c79045aaa0 align trade page tab order 2023-02-10 20:09:42 +11:00
saml33 c3d8f0af68 Merge branch 'main' into stable-price-tv-line 2023-02-10 16:09:02 +11:00
saml33 00e08c3b31 add stable price to perp stats table 2023-02-10 16:05:07 +11:00
saml33 49f203f7e7 fix market change values 2023-02-10 14:20:46 +11:00
saml33 4364fa5915 add mango perp stats charts 2023-02-10 11:38:20 +11:00
saml33 97e93faf78 pulse health bar and heart when health < 10 2023-02-10 10:35:39 +11:00
saml33 73162e5544 fix negative swap max 2023-02-10 10:26:28 +11:00
tjs efdd8a8934 fix typecheck errors 2023-02-09 17:04:57 -05:00
tjs 6277984325 use latest client 2023-02-09 16:23:44 -05:00
saml33 9c0cb6e6c1 add stable price line to tv chart 2023-02-09 22:41:15 +11:00
saml33 ed79cf7452 round spread to ticksize 2023-02-09 13:08:17 +11:00
saml33 8fa244a09b allow positions and trade history tables to scroll horizontally 2023-02-09 13:01:31 +11:00
Adrian Brzeziński 1ed50b9616
Feature/kline websockets (#84)
* web sockets

* websockets kline chart

* disconnect socket kline

* fix

* fixes
2023-02-09 02:40:34 +01:00
saml33 d838d39a57 fix perp entry price rounding 2023-02-09 12:37:30 +11:00
saml33 5388035d33 handle swap reduce only 2023-02-09 11:31:53 +11:00
saml33 2d9e73d207 fix perp position table size click 2023-02-08 22:29:03 +11:00
saml33 d67648badd fix activity translation values 2023-02-08 21:47:31 +11:00
saml33 fdd0c97fcd add missing translation keys 2023-02-08 21:04:20 +11:00
saml33 21896ca2c3 add order lines to tv chart 2023-02-08 20:58:03 +11:00
tjs a85d6cd559 yarn lint and format and setup 2023-02-07 14:03:59 -05:00
tylersssss 7d08b80b1e
Merge branch 'main' into combine-history-tabs 2023-02-07 13:57:30 -05:00
tylersssss 971533009d
Merge branch 'main' into update-tab-count 2023-02-07 13:54:47 -05:00
saml33 1b69fa81e6 align tab styles 2023-02-06 13:57:31 +11:00
saml33 d58ac010a2 add assets and liabilities 2023-02-06 13:37:31 +11:00
saml33 581a7a9cb1 merge main 2023-02-06 10:10:23 +11:00
saml33 7fe24b6a0b new account button and merge main 2023-02-06 10:08:04 +11:00
saml33 8ab5a122a0 add health progress bar 2023-02-05 23:17:51 +11:00
Adrian Brzeziński c4bc880e21 handle error when no swap route found 2023-02-04 22:55:42 +01:00
saml33 610af80619 add account actions bar 2023-02-04 23:31:36 +11:00
tjs d49c843375 faster transition for acct action button 2023-02-03 16:38:49 -05:00
tjs 5a02f4a6f0 better y padding in acct charts 2023-02-03 16:37:52 -05:00
tjs 5e05e92101 keep the order of mango account list static 2023-02-03 16:27:31 -05:00
tjs 830e944884 fix default priority fee 2023-02-03 16:23:36 -05:00
tjs 4564c17ec4 filter mngo perp mkt; fix grouping tooltip 2023-02-03 11:04:29 -05:00
tjs e16107576f increase orderbook depth 2023-02-03 10:28:39 -05:00
saml33 0e44f3a172 fix first tokenlist menu clipping 2023-02-03 21:36:44 +11:00
saml33 240556291b combine account tabs for history 2023-02-03 19:58:15 +11:00
saml33 49de41476c fix perp stats open interest 2023-02-02 14:41:32 +11:00
saml33 ad74809568 add orders to account tabs 2023-02-02 12:21:24 +11:00
saml33 abaaac72d6 fix account actions button on mobile 2023-02-02 10:15:01 +11:00
tjs 7126f00c44 add a memo for selected market 2023-02-01 18:05:01 -05:00
saml33 d956899781 fix total interest value 2023-02-02 10:04:35 +11:00
tylersssss a35dd6b583
Merge pull request #76 from blockworks-foundation/banks-hook
add hook for banks and balances
2023-02-01 15:36:15 -05:00
Riordan Panayides 541a0114c7 Add basic perp ohlcv feed 2023-02-01 20:22:09 +00:00
saml33 b5e9229d65 update tab count on disconnect 2023-02-01 15:49:37 +11:00
saml33 57ab8fbb6b
Merge pull request #75 from blockworks-foundation/t/swap-max
check min borrow amount even when not using margin
2023-02-01 15:21:41 +11: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
saml33 6dae134368 use formatcurrencyvalue 2023-01-30 15:47:09 +11:00
saml33 d8970b02c6 add hook for banks and balances 2023-01-30 15:13:38 +11:00
tjs 17b6861d88 check min borrow amount even when not using margin 2023-01-29 23:02:16 -05:00
saml33 68118a20b1 merge main 2023-01-30 11:53:05 +11:00
saml33 52e871e566 let tables scroll horizontal if they need to 2023-01-30 10:15:03 +11:00
saml33 991d36aa62 fix trade history bug 2023-01-29 21:22:09 +11:00
saml33 7523ae357d fix table header alignment 2023-01-29 21:12:58 +11:00
saml33 4f97064e46 fix console warning 2023-01-29 21:05:32 +11:00
saml33 1288f6f659 simplify amoutwithvalue component 2023-01-29 12:13:36 +11:00
saml33 ba665fd066 add new formatting functions to borrow page 2023-01-28 20:56:32 +11:00
tylersssss 98c36682bd
Merge pull request #74 from blockworks-foundation/borrow-page
add borrow page
2023-01-27 21:57:12 -05:00
tylersssss 8c53d278a5
Merge pull request #72 from blockworks-foundation/format-numeric-value
format numeric value component
2023-01-27 12:44:49 -05:00
saml33 150998afc4 fix search when api fails 2023-01-27 22:45:18 +11:00
saml33 e7a2be76ff add borrow to bottombar 2023-01-27 11:05:50 +11:00
saml33 ad48ab17c7 finish mobile and add to sidenav 2023-01-27 11:02:48 +11:00
saml33 da3bb18780 fix account performance loading 2023-01-27 09:52:40 +11:00
saml33 c1c795cb40 add borrow page 2023-01-26 23:12:03 +11:00
saml33 dd3f9b18ae fix activity table mobile 2023-01-26 11:45:48 +11:00
saml33 f6e8ed1557 merge main 2023-01-26 10:07:25 +11:00
tjs 9623341498 use connection from store for orderbook changes 2023-01-25 17:28:26 -05:00
saml33 5efb43b7fc simplify close account modal 2023-01-25 22:26:21 +11:00
saml33 e47cd766db fix console warning 2023-01-25 20:19:12 +11:00
saml33 260b18fb95 reload account performance data for wallet change with no mango account 2023-01-25 15:27:17 +11:00
saml33 6a9a40f95e remove trimdecimals 2023-01-25 14:11:42 +11:00
saml33 f8f022fe9a only use floortodecimal for unformatted values 2023-01-25 13:54:06 +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 fc1aac89e1 split functions for value/currency 2023-01-25 11:14:51 +11:00
saml33 4e856695ff make stats tabs full width on small screens 2023-01-25 10:28:14 +11:00
tjs 139ba30675 dashboard tweaks 2023-01-24 13:08:35 -05:00
saml33 63d7d4ca42 add to token list mobile 2023-01-24 21:56:04 +11:00
saml33 e64129e2d1 add to token stats 2023-01-24 21:42:26 +11:00
saml33 add1924920 add to balances table 2023-01-24 16:17:08 +11:00
saml33 e218adef0d add to trade history 2023-01-24 15:44:50 +11:00
saml33 636096ac26 add to swap history 2023-01-24 15:37:26 +11:00
saml33 5385780c69 add to activity table 2023-01-24 15:14:37 +11:00
saml33 65cef0fb71 add to unsettled table 2023-01-24 14:58:14 +11:00
saml33 8cbfe1dc59 add to positions table 2023-01-24 14:55:47 +11:00
saml33 7f597681fd add to maxamountbuttons 2023-01-24 14:04:05 +11:00
saml33 84277736ec add to other amoutwithvalue components 2023-01-24 13:09:14 +11:00
saml33 530d0ef2ce round up borrow rate 2023-01-24 12:50:07 +11:00
saml33 aec60a1288 add format numeric value component 2023-01-24 12:26:14 +11:00
tjs 991d3ee4b3 sort mango accounts list by equity 2023-01-23 18:54:54 -05:00
saml33 0f99619e2c remove show/hide account values 2023-01-24 09:52:59 +11:00
tjs cea7ee54ed fix btc tv data url 2023-01-23 12:47:34 -05:00
saml33 0e98231224 remove leading zero from recent trades time 2023-01-23 23:01:48 +11:00
saml33 53e7610338 align fee column formatting 2023-01-23 20:59:43 +11:00
tjs bae363a6fa temporary charts for perps 2023-01-23 00:25:46 -05:00
saml33 0128c8c29f add activity fee tooltip 2023-01-23 15:25:43 +11:00
saml33 dc357fb42c add chart range buttons to token page charts 2023-01-23 14:40:59 +11:00
saml33 454a1900d7 remove references to soETH 2023-01-23 13:20:44 +11:00
saml33 3e932635bf merge main 2023-01-23 13:08:08 +11:00
saml33 450100328d add success animation to market close 2023-01-23 13:03:09 +11:00
saml33 c27fe43835 add ability to show/hide account value and pnl 2023-01-23 11:34:52 +11:00
saml33 c499a0b514 add leverage and pnl to account summary 2023-01-23 10:54:47 +11:00
saml33 e08cea4a35 add positions to account page 2023-01-22 22:27:04 +11:00
saml33 22afdb8dac make bottom bar brighter 2023-01-22 20:54:07 +11:00
saml33 3dbae5a1a9 fix bottom bar issue on trade page 2023-01-22 20:27:04 +11:00
tjs f94bd3c656 better handle display around very small balances 2023-01-20 18:21:57 -05:00
tjs 63909e2bb7 improve use query config options 2023-01-20 11:13:03 -05:00
tjs 9c8ef98cfd remove console logs 2023-01-20 08:53:15 -05:00
tjs b974a84461 move trade history parsing out of JSX 2023-01-20 08:24:35 -05:00
saml33 0952fde644 merge main 2023-01-20 22:38:56 +11:00
saml33 b13cea05e6 use usdc unit for unsettled perp 2023-01-20 22:17:50 +11:00
saml33 d3cdd2c301 fix trade history date column alignment 2023-01-20 22:09:37 +11:00
saml33 1231a0be44 fix trade success animation for trade 2023-01-20 22:03:31 +11:00
saml33 dc584ed0fb fix perp max button 2023-01-20 15:45:44 +11:00
tjs 9f129d9dff remove mngo-perp 2023-01-19 23:17:43 -05:00
tjs dd07d08d1f add dollar sign and catch errors for coingecko 2023-01-19 23:15:11 -05:00
saml33 1fc9b0ce66 fix open orders inputs 2023-01-20 15:06:14 +11:00
saml33 154e508944 update delegate icon 2023-01-20 14:48:14 +11:00
tjs 3f431676ef fix trade history when swapping mango accounts 2023-01-19 22:44:53 -05:00
saml33 a95df1b248 align market close modal button to other modals 2023-01-20 14:43:44 +11:00
saml33 b97a501527 disable connect buttons until group loads 2023-01-20 14:33:02 +11:00
saml33 71b40fbaf5 fix table states for unowned account 2023-01-20 14:10:15 +11:00
tjs 9d495f2e46 add onclose to market close modal 2023-01-19 21:24:12 -05:00
tjs 458a70fc9d perp market close modal 2023-01-19 21:14:51 -05:00
saml33 2e664b3dfc add accountsbutton component and add loading state 2023-01-20 13:06:49 +11:00
saml33 211bd40de1 add connect wallet empty states 2023-01-20 12:45:08 +11:00
saml33 bfaecd1716 fix chart loader heights 2023-01-20 11:56:22 +11:00
saml33 2e555ba5dc add size prop to icon buttons 2023-01-20 10:49:49 +11:00
saml33 91d916c858 use icon button for view counterparty 2023-01-20 10:44:58 +11:00
tjs 83c7382153 fix first and last padding 2023-01-19 18:17:54 -05:00
tjs 397595e501 fixes commit that shrank table padding for smaller screens 2023-01-19 18:02:48 -05:00
tjs f1db6f2de8 trade page breakpoint fixes 2023-01-19 16:25:19 -05:00
tjs a3f1edd457 fix min decimals in trade form 2023-01-19 16:01:46 -05:00
tjs 3bc8b87830 fix localstorage default key typo 2023-01-19 15:41:11 -05:00
tjs 39bbe69ffb add priority fee to settings 2023-01-19 15:31:45 -05:00
tjs 009b0cb59e add view counterpart to trade history table 2023-01-19 14:36:44 -05:00
saml33 53cb435393 add format y-axis function 2023-01-19 21:42:39 +11:00
saml33 7e9ef8e1bd fix long digit price display for token details 2023-01-19 21:12:33 +11:00
saml33 37612534e3 add size prop to icon button 2023-01-19 21:06:46 +11:00
saml33 e6a155c720 improve mango stats chart load 2023-01-19 21:05:07 +11:00
saml33 edc1013869 fix stats spot chart on mobile 2023-01-19 20:54:50 +11:00
saml33 6ef115f791 merge main 2023-01-19 20:49:57 +11:00
tylersssss 1513fb0372
Merge pull request #69 from blockworks-foundation/paginate-swap-history
paginate swap history
2023-01-19 00:23:23 -05:00
tjs e7fa818e65 fix recent trades for perp markets 2023-01-19 00:18:06 -05:00
tjs a0c24f11c5 fix trade history 2023-01-18 23:35:57 -05:00
saml33 aafa6c8e0c merge main 2023-01-19 15:35:36 +11:00
saml33 9f3d10d4ae merge main 2023-01-19 15:33:51 +11:00
saml33 cf7cf1c037 round account page change components 2023-01-19 15:22:16 +11:00
saml33 235f3cde9d fix account performance data when changing accounts 2023-01-19 15:16:43 +11:00
saml33 4ce190161d round pnl history 2023-01-19 14:38:06 +11:00
saml33 270c74b9db toggle tradingview on mobile 2023-01-19 13:42:29 +11:00
tylersssss e9a284619b
Merge branch 'main' into pan/change-transaction-log-url 2023-01-18 19:11:02 -05:00
tylersssss ac2a50c1fc
Merge branch 'main' into pan/fix-trade-history 2023-01-18 19:07:59 -05:00
tylersssss f0db2495fe
Merge branch 'main' into daily-pnl-history 2023-01-18 19:05:21 -05:00
tylersssss 3c83103b30
Merge pull request #62 from blockworks-foundation/paginate-trade-history
paginate trade history
2023-01-18 18:58:35 -05:00
saml33 193d2a16fe fix connect wallet button for long wallet names 2023-01-19 10:50:55 +11:00
Riordan Panayides 79821f5216 Fix side badge for combinedTradeHistory trades 2023-01-18 18:42:54 +00:00
Riordan Panayides 4d5230cf05 Replace references to mango-transaction-log 2023-01-18 13:21:01 +00: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 bf626cc8ef add recent trade volume alert 2023-01-18 16:06:00 +11:00
tylersssss 5e17c81df7
Merge pull request #61 from blockworks-foundation/feature/mang-router-v2
mango router
2023-01-17 23:00:43 -05:00
Adrian Brzeziński be7aa47a09 Merge branch 'main' into feature/close-account-modal 2023-01-18 02:12:16 +01:00
saml33 5732910003 add chart range buttons to mango stats charts 2023-01-18 10:38:33 +11:00
tjs e5dff1c8c3 use latest client; update perp positions table with new pnl calcs 2023-01-17 18:31:58 -05:00
Adrian Brzeziński 418c044f54 Merge branch 'main' into feature/close-account-modal 2023-01-17 12:54:48 +01:00
saml33 46d9c54ef3 add translation vars 2023-01-17 15:59:51 +11:00
tjs 71d0623002 remove mngo-perp from perp list on alpha 2023-01-16 23:49:00 -05:00
tjs 3a59e73416 only show reduce only for perps 2023-01-16 23:16:25 -05:00
tjs 41e8172581 add reduce only to perp trade form 2023-01-16 23:00:42 -05:00
tjs fd048ecfc6 fix perp position side badge 2023-01-16 22:50:31 -05:00
saml33 6981b72137 fix search accounts bug 2023-01-17 14:08:12 +11:00
saml33 9716c5f775 add pnl for current week 2023-01-17 12:26:31 +11:00
Adrian Brzeziński 5a00c0c004 Merge branch 'main' into feature/mang-router-v2 2023-01-16 22:25:54 +01:00
tjs 23fc84b202 fix reduce only bug; better acct loading; increase ob depth 2023-01-16 16:09:21 -05:00
saml33 bc48b5a740 fixes 2023-01-16 22:25:13 +11:00
saml33 2c12f5c5ea add daily pnl history 2023-01-16 16:13:34 +11:00
saml33 8736d7991e add useMargin to max trade size button 2023-01-16 14:58:01 +11:00
saml33 35cd56b9fc fix trade form balance click 2023-01-16 12:27:51 +11:00
saml33 fa52bffc66 fix percentage sign 2023-01-16 12:19:01 +11:00
Adrian Brzeziński 5f6bdf0948 fix ata creation for middle mints 2023-01-15 14:15:35 +01:00
saml33 bdd03b0e0c merge main 2023-01-15 20:58:07 +11:00
saml33 ea636b8df4 add missing icon 2023-01-15 20:53:34 +11:00
tjs 58a113b7cc handle use margin checkbox for serum trade form 2023-01-15 00:52:22 -05:00
tjs 38a3db06df refactor to use hook useSelectedMarket 2023-01-15 00:01:30 -05:00
Adrian Brzeziński db8f1bcc77 review fixes 2023-01-15 02:05:45 +01:00
tjs 1ce76d3924 sync accounts list with selected mango account 2023-01-14 16:51:06 -05: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 c35e70ec15 format account chart y-axis 2023-01-14 22:53:28 +11:00
Adrian Brzeziński e5988cb631 comment 2023-01-14 02:05:02 +01:00
Adrian Brzeziński d22392be6c fix 2023-01-14 02:03:53 +01:00
Adrian Brzeziński 28e47eb6a9 fix full repay 2023-01-14 01:58:07 +01:00