Commit Graph

1051 Commits

Author SHA1 Message Date
Tyler Shipe d0fb21b90c use theme for bg color in trading view loading screen 2021-12-28 15:03:53 -05:00
saml33 5b79690039 show/hide rate info 2021-12-28 22:46:41 +11:00
saml33 5db9359c4a fix broken docs links 2021-12-28 10:02:07 +11:00
Tyler Shipe 4371cf28f3 fix infinite refresh maybe 2021-12-27 12:25:08 -05:00
saml33 a646861929 add wallet draw 2021-12-27 22:25:30 +11:00
saml33 4335fd124b update styles 2021-12-27 20:46:50 +11:00
Maximilian Schneider 2074783559 update v1 mango url 2021-12-26 21:01:39 -07:00
dd 9e4ad312f7 upgrade mango-client to support optimized settlePnl and reduce retry interval to 15s; implement more optimized settlePnl 2021-12-25 12:23:04 -05:00
Tyler Shipe dca90fe340 reset trade page grid local storage key to fix refresh bug 2021-12-24 14:39:20 -05:00
Nicholas Clarke 1e42f2aded Add account performance tab to the account page 2021-12-23 15:05:44 -08:00
Tyler Shipe c503b21f0a upgrade jup ag npm pkg 2021-12-22 19:39:57 -05:00
Tyler Shipe 389376d565 add better logic check for description 2021-12-20 12:05:45 -05:00
Tyler Shipe b5e3de18ac show error notification for 30 secs 2021-12-20 10:46:03 -05:00
Tyler Shipe 35d709a164 refresh token balances 2021-12-20 01:23:57 -05:00
Tyler Shipe 394b92792c show confirm modal after approving swap 2021-12-19 15:30:03 -05:00
Tyler Shipe 0578903bb6 default to zero wallet balance in swap ui 2021-12-19 15:23:35 -05:00
Tyler Shipe f842bb54d8 improvements to swap ux 2021-12-19 15:21:18 -05:00
Tyler Shipe 2c1f67e226 decimals on swap form 2021-12-19 13:47:05 -05:00
Tyler Shipe 8506a77c7f show more decimals on swap price 2021-12-19 13:43:49 -05:00
Tyler Shipe b16849b5ef add coingecko stats 2021-12-19 13:17:43 -05:00
Tyler Shipe 55d3909829 add null check for item address
null chell

moar

hide max button if not connected

fetch balances

fixes

improve swap perf
2021-12-19 01:25:33 -05:00
Tyler Shipe 9b37735e3b remove spl-token-registry package and use jup-ag token list
downgrade eslint

more eslint downgrade

remove swap page as a test

add back swap form

moar tests

try

add back jup form

remove unused import
2021-12-18 16:06:54 -05:00
saml33 7c857ca974 show hourly stats when only 1 day of data 2021-12-18 22:19:57 +11:00
saml33 23c5aeabc7 show deposit modal after intro tips 2021-12-18 10:28:09 +11:00
ImpossiblePairs 5484f9144f
Flush lines on market change
Updated drawlines() on market refresh to flush lines first if present.
2021-12-17 15:10:27 -08:00
Tyler Shipe 0f13c748e4 add jupiter ag swap 2021-12-17 16:02:02 -05:00
Tyler Shipe 6ea9a2b37e add check for description in notification 2021-12-17 14:52:07 -05:00
Tyler Shipe d9f26f58ab don't display unrealized pnl until breakEven price exists 2021-12-17 13:46:03 -05:00
Tyler Shipe e033d84a5d show confirmation timeout errors longerso txid is easier to read 2021-12-17 11:20:48 -05:00
saml33 d98b095d16 show refresh button when no account 2021-12-17 20:51:54 +11:00
Tyler Shipe 79f15aa6a8 redraw lines after changing market 2021-12-14 20:10:18 -05:00
Tyler Shipe a08b1d7e8e call updateOpenOrders after canceling an order 2021-12-14 19:56:02 -05:00
tjshipe 485e26c6fe
Merge pull request #76 from blockworks-foundation/30-day-interest-chart
30 day interest and funding charts
2021-12-14 17:50:46 -05:00
Tyler Shipe ae58aa5712 remove scrollbar at full height 2021-12-14 16:57:58 -05:00
Tyler Shipe a49beb02ac remove recent market trade clearing 2021-12-14 10:06:03 -05:00
saml33 677596f84d fix conflicts 2021-12-14 22:50:22 +11:00
saml33 9b7fa7a539 add slippage presets 2021-12-14 21:03:54 +11:00
saml33 33ae76ac98 adjust panel heights on smaller breakpoints 2021-12-14 19:59:02 +11:00
Tyler Shipe e1eb407eb6 clear recent tables list after switching markets 2021-12-13 18:29:16 -05:00
saml33 2fbcdf9887 add avax mono icon 2021-12-14 10:22:34 +11:00
Tyler Shipe a0ce1e9b48 convert icons.jsx to icons.ts 2021-12-13 16:31:42 -05:00
Tyler Shipe 42cdbf25ca fix invalid JSX in icons.jsx 2021-12-13 16:30:45 -05:00
saml33 588747b3aa add bnb, dot and luna icons 2021-12-13 14:14:50 +11:00
Tyler Shipe ac818e5a5d add flag to show and hide notifications 2021-12-09 16:21:53 -05:00
Tyler Shipe cebb6f98a2 add error logging 2021-12-09 12:36:17 -05:00
Tyler Shipe 714de8e34f update srm fees 2021-12-08 12:27:48 -05:00
saml33 ee4b5f3b2d update sub-tab bg color 2021-12-08 22:40:41 +11:00
saml33 0ea93d142e fix: deposit value chart loading state 2021-12-08 22:29:54 +11:00
saml33 6ac2993cfc fix: stop deposit/withdraw modal multiple renders 2021-12-08 21:36:10 +11:00
saml33 670712ed98 fix: null selectedAccount error 2021-12-08 21:01:55 +11:00
Tyler Shipe f0edd15fef move state out of parent components that were causing additional renders 2021-12-07 23:14:00 -05:00
saml33 03c9710103 improve sub-tabs layout 2021-12-08 15:00:02 +11:00
saml33 58113fa863 hide export button on trade history 2021-12-08 10:10:12 +11:00
saml33 8acb039630
Merge pull request #100 from Mango-Heroes/export-csv
Export History, Funding, and Interest data to CSV file
2021-12-08 10:01:09 +11:00
saml33 46d90744e4 fix conflicts 2021-12-07 22:22:05 +11:00
tjshipe 1a8c7608b7
Merge pull request #98 from blockworks-foundation/modify-order
modify limit order from open orders table
2021-12-06 18:07:39 -05:00
saml33 42b4dbe373 add updateopenorders after modify 2021-12-07 10:02:07 +11:00
Tyler Shipe 5a7a95842b always show liq price in account info 2021-12-06 15:14:29 -05:00
Yandre 9ab940673c changed timestamps and file names 2021-12-06 14:26:22 -05:00
Tyler Shipe c4135c2498 reload open orders after settling balances 2021-12-06 13:51:40 -05:00
Tyler Shipe 2bee4d154e add unsettled perp positions box 2021-12-06 12:50:15 -05:00
Tyler Shipe 23e8fd23a4 display tx id in timeout errors 2021-12-06 01:48:20 -05:00
Tyler Shipe 855a6e6d58 add ws watching for mangoAccount 2021-12-05 20:13:23 -05:00
Tyler Shipe 26da87acec fix issue with post only and placePerpOrder 2021-12-04 19:31:55 -05:00
Tyler Shipe 9b7f9e2e8a add currency symbol to total funding 2021-12-04 13:59:09 -05:00
Tyler Shipe fb2cc2acb5 add slippage warning for stop loss and take profit 2021-12-03 18:55:26 -05:00
tjshipe b12aada255
Merge pull request #101 from blockworks-foundation/dd/limitioc
Dd/limitioc
2021-12-03 18:39:30 -05:00
Tyler Shipe 5604423709 add loading spinner when claiming mngo rewards 2021-12-03 18:33:28 -05:00
Tyler Shipe 3ce0e1580e use latest mango client 2021-12-03 17:36:34 -05:00
dd 8438df9ccc added logic for warning user about stop loss slippage; Added TODO for tyler 2021-12-03 17:21:21 -05:00
Yandre 5c5d52c7c0 Refactored code per @saml33's suggestion 2021-12-03 16:39:36 -05:00
Tyler Shipe 2a05123784 set reduceOnly false when changing order types 2021-12-03 13:36:31 -05:00
dd c8e62cf926 removed subscribes in market close modal 2021-12-03 13:03:42 -05:00
Tyler Shipe a80f03247f use latest mango-client 2021-12-03 13:01:09 -05:00
dd 007f874563 added range checks for slippage 2021-12-03 12:31:22 -05:00
Tyler Shipe 35df138859 fix link to markets from trade history 2021-12-03 12:29:15 -05:00
tjshipe 8f380933bb
Revert "Mango Heroes NFT Integration" 2021-12-03 11:03:51 -05:00
tjshipe 0aa16f0a8d
Merge pull request #75 from Mango-Heroes/mango_heroes
Mango Heroes NFT Integration
2021-12-03 11:03:44 -05:00
dd 8b7fcd30c1 merged in main 2021-12-03 10:45:29 -05:00
dd 765a7f768e Merge branch 'main' into dd/limitioc
# Conflicts:
#	components/trade_form/AdvancedTradeForm.tsx
2021-12-03 10:40:47 -05:00
saml33 2ee67b4693 merge and default slippage to 2.5% 2021-12-03 21:39:10 +11:00
saml33 7f28a68008 add set custom max slippage 2021-12-03 21:34:10 +11:00
Tyler Shipe 0ae021596c Show reduce only flag for now when doing a market order 2021-12-03 02:38:17 -05:00
dd c99c63db14 Revert "Added 'Z' to time strings sent by history API to be consistent with ISO 8601"
This reverts commit 15e2035fea.
2021-12-03 02:08:41 -05:00
dd 15e2035fea Added 'Z' to time strings sent by history API to be consistent with ISO 8601 2021-12-03 01:18:05 -05:00
dd 60b2c4b92d updated MarketClose to have maxSlippage at 2.5% 2021-12-03 00:15:03 -05:00
Tyler Shipe a8fd63c3e2 clean up stats page 2021-12-02 23:56:57 -05:00
dd 1adb0d8f34 added postOnlySlide 2021-12-02 23:30:59 -05:00
dd 588ae8dd18 Looks like max slippage on perp Market orders is working 2021-12-02 21:38:44 -05:00
Yandre 0f2d073fb1 Fixed issue with Trading tab's filename 2021-12-02 19:39:56 -05:00
Yandre 40e7c2875c Added code to export data to CSV file 2021-12-02 19:37:20 -05:00
dd f248ab7805 Added code for maxSlippage and removal of market order type; Changed mark price to just be book mid. 2021-12-02 17:33:35 -05:00
Yandre 43776f6f03 Pulled latest code from main 2021-12-02 17:14:14 -05:00
Tyler Shipe df98fbacd4 remove console logs 2021-12-02 11:22:13 -05:00
Tyler Shipe 8df197fdb9 try again fixing tv chart 2021-12-02 01:07:34 -05:00
Tyler Shipe f58433ac0b fix useEffect in trading view chart 2021-12-01 21:59:57 -05:00
Tyler Shipe 33c9532a2f only set chart symbol if it changes 2021-12-01 16:05:01 -05:00
Tyler Shipe 120955463b remove filter from orderbook 2021-12-01 15:45:18 -05:00
Tyler Shipe 459c63daa2 expand trading view component by reducing padding 2021-12-01 11:49:28 -05:00
saml33 05ac2e65ad remove fetchmangogroup from cancel/modify functions 2021-12-01 20:21:02 +11:00
Tyler Shipe 5d9b95e72b handle missing token icon in market menu 2021-12-01 02:14:23 -05:00
Tyler Shipe eb1fbb1f15 fix for when wallet pubkey doesn't exist 2021-12-01 01:52:39 -05:00
Tyler Shipe 50c514939c dont disable trade button if not enough sol 2021-12-01 01:18:12 -05:00
tjshipe f91d363158
Merge pull request #93 from rjpeterson/no-sol-notif
disable trade button and show warning when user has no SOL
2021-12-01 01:14:23 -05:00
tjshipe 68e4f4d19d
Merge branch 'main' into update-translations 2021-12-01 01:12:59 -05:00
Tyler Shipe 6488eb6802 fix console errors 2021-12-01 00:38:05 -05:00
Tyler Shipe ef095fad9a even y axis padding on market detail component 2021-12-01 00:04:24 -05:00
Tyler Shipe eb81b20e3f fix trading view flashing when changing markets 2021-12-01 00:00:09 -05:00
Tyler Shipe b9c8dd09d5 use lodash instead of lodash-es 2021-11-30 21:46:23 -05:00
Tyler Shipe 33f49e8049 remove duplicate chart library folder 2021-11-30 20:17:45 -05:00
Tyler Shipe 84233b2a56 improve rerender when cancelling orders for a market other than the one selected 2021-11-30 18:35:49 -05:00
Tyler Shipe 2d824c2213 add lastUpdatedAt to improve useMangoAccount rerendering trigger 2021-11-30 16:04:55 -05:00
Tyler Shipe 4eb7cd3934 forceReload components when mango account is updated in store 2021-11-30 12:32:14 -05:00
saml33 f42d0c0c0f fix daily range label position 2021-11-30 23:00:42 +11:00
saml33 b344769232 improve tablet breakpoint markets menu 2021-11-30 22:51:33 +11:00
Tyler Shipe b1b5477273 reset post only flag when switching trade types 2021-11-29 12:04:50 -05:00
saml33 a936f2070a fix: add transparency to draggable panels 2021-11-29 22:37:48 +11:00
saml33 d565ad5083 fix: add correct market url to open orders table 2021-11-29 22:20:57 +11:00
saml33 33fa3a2f71 add modify order to mobile table 2021-11-29 20:35:00 +11:00
saml33 8da167afa1 modify order from desktop open orders table 2021-11-28 22:19:44 +11:00
Yandre a0cae7d5da Allowed all NFTs to be used as profile picture 2021-11-26 14:17:24 -05:00
rjpeterson 3aa03c3909 disable trade button and show warning when user has no SOL 2021-11-26 00:05:21 -10:00
saml33 9852f26c40 fix translation conflicts 2021-11-26 15:24:14 +11:00
saml33 576f1ed432 add same features to funding tab 2021-11-26 15:17:48 +11:00
Maximilian Schneider 3d1544cc09
add tooltip to country-not-allowed block (#89) 2021-11-25 19:25:50 +01:00
saml33 2398b9392b remove net interest value 2021-11-25 09:50:53 +11:00
Tyler Shipe 7eef75cfdd make liquidation history label for usd perp position clearer 2021-11-24 12:49:06 -05:00
saml33 0bf66f4e54 hide micro values 2021-11-24 21:53:03 +11:00
rjpeterson 6b223e62e1 rebase & add statsperps + account history translation 2021-11-23 22:17:17 -10:00
tjshipe 75226f3f3c
Merge pull request #64 from blockworks-foundation/informative-onboarding
Informative onboarding
2021-11-23 20:39:39 -05:00
saml33 1b04570d21 add spanish translations 2021-11-24 12:00:25 +11:00
tjshipe 8ae27aa62c
Merge pull request #82 from blockworks-foundation/show/hide-reduce-only
hide reduce only when no position or wrong side
2021-11-23 18:19:22 -05:00
saml33 d102a1d3d7 add spanish translations 2021-11-24 10:08:14 +11:00
Tyler Shipe e481e842cd fix liquidation history asset values 2021-11-23 17:52:16 -05:00
Tyler Shipe 451922b015 fix liquidation history unit conversion 2021-11-23 17:39:47 -05:00
tjshipe 76d82bf718
Merge pull request #91 from blockworks-foundation/ts/liquidation-ui
Ts/liquidation UI
2021-11-23 20:37:26 +00:00
Tyler Shipe 93bd67c313 fix liquidation display decimals 2021-11-23 15:37:00 -05:00
Tyler Shipe 796cf35646 cleanup 2021-11-23 15:19:09 -05:00
Tyler Shipe f80cf5e6ed parse liq activity details by activity type 2021-11-23 15:15:55 -05:00
Tyler Shipe ae0cea7083 yarn format 2021-11-23 14:54:11 -05:00
Tyler Shipe 38b893c7ce add liquidation history to account page 2021-11-23 13:58:01 -05:00
dd dc102338e2 fixed ugly open interest display in perps stats; added perpContractPrecision in index.ts 2021-11-23 12:52:27 -05:00
dd 14eacec547 updated liquidity mining info to be more meaningful 2021-11-23 11:37:05 -05:00
saml33 9bc1d16dc4 fix: align positioning of account page radio buttons 2021-11-23 22:12:48 +11:00
Riordan Panayides edac2473fc Allow UK spot trading 2021-11-22 23:54:51 +00:00
saml33 e423dfee6d fix: chart height lg and md breakpoints 2021-11-21 20:51:57 +11:00
saml33 d2b6dab361 add setting to stop orderbook flash 2021-11-21 19:57:13 +11:00
saml33 30ebce4fbb add msol mono icon 2021-11-20 15:09:02 +11:00
saml33 8c3a629d72 fix: markets modal prices 2021-11-20 14:43:31 +11:00
Yandre e7b517bf6e Swapped Mango Heroes URLs to use IPFS dedicated gateway 2021-11-19 19:32:45 -05:00
Tyler Shipe e666ea0f47 fix double highlight of sol 2021-11-19 20:51:01 +00:00
Tyler Shipe a717a4c88c add msol 2021-11-19 20:15:32 +00:00
saml33 96358a078c hide reduce only when no position or wrong side 2021-11-19 14:13:18 +11:00
Tyler Shipe ce5345b588 add liq mining info to stats 2021-11-18 18:13:37 +00:00
Tyler Shipe 45c4f20bd7 use latest client; error msg when depositing all sol; pointer cursor on orderbook 2021-11-18 16:49:48 +00:00
Tyler Shipe ec633992fa fix translation issues; fix pubkey viewing 2021-11-18 13:56:11 +00:00
Tyler Shipe 2f4518cf53 handle when no account history exists 2021-11-17 16:56:39 +00:00
Tyler Shipe 6ed230d900 add deposit and withdraw history to account page 2021-11-17 15:51:17 +00:00
tjshipe 3b5813ac08
Merge pull request #80 from blockworks-foundation/simple-liq-price
Add simple liquidation price to AccountInfo
2021-11-17 11:31:19 +00:00
Tyler Shipe 8558e4bb45 fix mobile market links 2021-11-15 23:39:43 +00:00
Tyler Shipe 6fff247d02 update rpc node list 2021-11-15 14:25:03 +00:00
Tyler Shipe a7ccf430eb update genesys go url 2021-11-15 12:41:40 +00:00
Riordan Panayides b5c7f88c66 Don't display liq price of zero 2021-11-14 22:02:30 +00:00
Riordan Panayides 27b2dfb0d7 Add simple liq price to accountinfo, add some height 2021-11-14 21:43:23 +00:00
Tyler Shipe 010be224e0 remove console logs 2021-11-14 18:57:00 +00:00
Tyler Shipe 92b3ac2ce7 more improvement to load time when switching pages/markets 2021-11-14 18:37:02 +00:00
Tyler Shipe db4aa785fc speed up time between page loads 2021-11-14 14:48:09 +00:00
tjshipe 7b1168dd63
Merge pull request #71 from blockworks-foundation/improve-repay-borrow-flow
improve repay borrow ux
2021-11-14 13:35:33 +00:00
tjshipe 2067c981c8
Merge pull request #70 from dboures/view-other-mangoaccounts
View anyone's mangoAccount
2021-11-14 13:24:50 +00:00
saml33 6fb6f6f46a hide charts when no interest 2021-11-14 20:53:34 +11:00
tjshipe eb39e1cbb1
Merge branch 'main' into order-lines-translation 2021-11-13 17:32:52 +00:00
tjshipe d679288f1b
Merge pull request #74 from blockworks-foundation/add-solflare
add solflare
2021-11-13 16:21:13 +00:00
Maximilian Schneider fb1977e720 disable size too large 2021-11-12 15:40:42 +00:00
saml33 4bf6c410c7 convert time to local 2021-11-12 20:31:52 +11:00
saml33 77acf2d862 add translations 2021-11-12 11:08:58 +11:00
Yandre 4956e28e9a Refactored the code 2021-11-11 11:51:54 -05:00
Yandre f5e0c63af1 Fixed merge conflicts 2021-11-11 09:45:10 -05:00
saml33 d8db2c13f3 add usd values 2021-11-11 23:08:19 +11:00
Yandre 9f66df9bf1 Completed code for Mango Heroes integration 2021-11-10 21:54:23 -05:00
saml33 d216ec1f1a add solflare 2021-11-10 22:46:54 +11:00
Michael Fenn 3c1d0f2458 link market from desktop open orders table 2021-11-09 21:16:03 -05:00
saml33 7bbcbec627 improve repay borrow ux 2021-11-10 11:37:40 +11:00
dboures c5117becf9 fix bug for hiding mangoAccounts selector 2021-11-09 23:43:34 +00:00
dboures 88f803bc04 view other accounts using pubkey in url 2021-11-09 18:17:03 +00:00
saml33 d63536ef2f add open position count 2021-11-09 21:40:07 +11:00
saml33 cca6d84feb fix: add padding-top to table wrapper 2021-11-09 20:24:43 +11:00
saml33 5d3e7d4032 swap buttongroup for max button 2021-11-09 12:49:45 +11:00
saml33 0a14c07d06 chart interest earned/paid over last 30 days 2021-11-08 22:02:30 +11:00
Tyler Shipe bc16c61cb4 add back hourly funding table 2021-11-06 17:00:10 +00:00
Maximilian Schneider db0f206ff9 dont spam db 2021-11-06 13:54:24 +00:00
Maximilian Schneider 3cecd12df0 Revert "start with 1m chart for SOL markets"
Revert "disable 24h volume"
2021-11-06 01:10:25 +00:00
saml33 f274fcae42 show date/time on mobile trade history 2021-11-05 20:55:16 +11:00
saml33 05d8bdd64a add translation keys 2021-11-04 23:25:11 +11:00
saml33 f3ea08c1c1 merge main 2021-11-04 20:17:39 +11:00
saml33 82af972f37 add commas to max borrow amount values 2021-11-04 19:56:06 +11:00
Maximilian Schneider 39e0e8e8f4 start with 1m chart for SOL markets 2021-11-03 22:52:31 +00:00
Maximilian Schneider 76cc6bc5f7 fix linter 2021-11-03 22:47:08 +00:00
Maximilian Schneider 8e80faff7a disable 24h volume 2021-11-03 22:18:17 +00:00
saml33 61a6a65830
Merge pull request #66 from blockworks-foundation/mobile-fixes
fix: mobile styling to accomodate new markets
2021-11-04 08:17:08 +11:00
saml33 41538dcb01 history translation 2021-11-03 23:03:23 +11:00