Commit Graph

1067 Commits

Author SHA1 Message Date
saml33 db2f507830 add more insight data and buy button 2022-01-11 11:54:50 +11:00
saml33 ef12fb2b7c compact large numbers 2022-01-11 09:59:12 +11:00
Tyler Shipe 1b1679ac17 add tx id to error notifications 2022-01-10 17:25:05 -05:00
Tyler Shipe 187f7d3469 update naming from marginAccount to mangoAccount in trading view component 2022-01-10 13:38:58 -05:00
saml33 9a142a0bf8 fix conflicts 2022-01-10 16:26:10 +11:00
saml33 19714885a5 add performance insights 2022-01-10 16:21:05 +11:00
rjpeterson 0663c321e4 add missed translations. rename common:slippage key 2022-01-09 16:31:56 -06:00
rjpeterson 1e7374fd3c add dayjs locales 2022-01-09 16:06:05 -06:00
rjpeterson d10ade44e0 update swap translations, remove unused "rate" from common 2022-01-09 15:32:57 -06:00
Maximilian Schneider 007393ae5b remove risk calculator from mobile menu 2022-01-08 21:06:53 -08:00
Maximilian Schneider 44488342e4 Merge remote-tracking branch 'origin/main' into max/switch-market-mobile 2022-01-08 21:04:14 -08:00
Maximilian Schneider 2393b2426a make market selectable on mobile when clicking market name 2022-01-08 21:00:35 -08:00
Tyler Shipe c961bf94fe ues latest mango client to fix sending multiple tsx 2022-01-08 23:42:01 -05:00
Tyler Shipe 91ad9ca3b4 show more decimals on swap min received line 2022-01-08 20:44:17 -05:00
Tyler Shipe 24d93d0d89 add padding to global notification component 2022-01-08 19:36:24 -05:00
Tyler Shipe 02eb70bbaf close deposit modal after error catch 2022-01-08 15:52:42 -05:00
Tyler Shipe 981482414e Remove disabled trade button after submitting 2022-01-08 12:27:06 -05:00
Tyler Shipe 028c4f53c8 handle when swap tokenInfo is undefined 2022-01-07 22:29:57 -05:00
Tyler Shipe f5f646bec2 yarn format 2022-01-07 21:59:59 -05:00
Tyler Shipe 5e7e8065f5 add global alert component 2022-01-07 17:52:16 -05:00
Tyler Shipe 7ece053b04 update charts, use y axis domain 2022-01-06 21:35:48 -05:00
Nicholas Clarke 15302e3313 Add showAll prop to performance charts 2022-01-05 23:35:50 -08:00
Nicholas Clarke c9e5c9982e Merge remote-tracking branch 'origin/main' into account_equity 2022-01-05 23:24:44 -08:00
Tyler Shipe 2b9d3945b5 add showAll prop to Chart component 2022-01-05 22:58:08 -05:00
saml33 c2f4cd9fc7 add top holders to token info 2022-01-06 13:59:05 +11:00
Nicholas Clarke 4ce7397738 Add PNL to performance tab 2022-01-05 15:58:10 -08:00
Tyler Shipe d8129aa5fc add default swap chart values 2022-01-04 16:46:38 -05:00
Tyler Shipe 7e16507288 fix market details useEffect dependency list 2022-01-04 15:56:14 -05:00
Tyler Shipe bb170ebcb3 flip swap chart when usdc and usdt inputs 2022-01-04 14:48:49 -05:00
saml33 326fb1fc95 new menu label 2022-01-04 15:12:46 +11:00
saml33 9bc00530ef switch rate button 2022-01-04 13:01:08 +11:00
Tyler Shipe e3f4d81e9b add back mono icons 2022-01-03 20:50:12 -05:00
saml33 ca608521b7 fix coingecko rate compare 2022-01-04 11:35:24 +11:00
ImpossiblePairs 0a587edc26
Risk calculator v3 (#79)
* Push risk calculator to branch

* Fixed Enclosing on updatePriceValues

Fixed incorrect enclosing of updatePriceValues

* Clean up and commenting

* Update USDT slider response and asset/liability tabulation

* Update value assignment encapsulation error

* Risk Calculator feedback and bug fixes

* Slider Range updated to 0 - 350%

* Add icons, feedback, open orders toggle

* Remove unnecessary console log

* Update precision and short scenario summary

* Push risk calculator to branch

* Fixed Enclosing on updatePriceValues

Fixed incorrect enclosing of updatePriceValues

* Clean up and commenting

* Update USDT slider response and asset/liability tabulation

* Update value assignment encapsulation error

* Risk Calculator feedback and bug fixes

* Slider Range updated to 0 - 350%

* Add icons, feedback, open orders toggle

* Remove unnecessary console log

* Update precision and short scenario summary

* Add mangoCache check

* use getStaticProps in calculator

* allow loading unowned accounts w/ risk-calculator

* add risk calculator new bubble

* Percent move liquidation no longer relative to slider

Co-authored-by: Tyler Shipe <tjshipe@gmail.com>
Co-authored-by: Maximilian Schneider <mail@maximilianschneider.net>
2022-01-03 16:20:45 -08:00
Tyler Shipe 0573ad86f1 clear output fiels when input is cleared 2022-01-03 12:44:29 -05:00
Tyler Shipe 401a78bbd0 Merge branch 'main' into swap-v2 2022-01-03 12:28:48 -05:00
saml33 2375035cd2 slippage settings modal 2022-01-03 16:05:54 +11:00
saml33 320cd06d76
Account health email alerts (#111)
* create alerts modal

* add translation variables

* translation variables

* handle error states

* add chinese

* limit number of active alerts

Co-authored-by: rjpeterson <r.james.peterson@gmail.com>
Co-authored-by: Maximilian Schneider <mail@maximilianschneider.net>
2022-01-02 20:42:59 -08:00
saml33 9d7ff69500 refresh wallet button 2022-01-03 15:18:31 +11:00
saml33 8b7fff5727 fix conflicts 2022-01-03 12:01:04 +11:00
saml33 a407543558 translations 2022-01-03 11:52:03 +11:00
saml33 aba3118097 tweaks 2022-01-02 23:20:42 +11:00
saml33 f68da5a17b misc fixes 2022-01-01 23:34:46 +11:00
saml33 ba4c9d542a input and output token stats 2022-01-01 14:07:14 +11:00
Tyler Shipe e72447ef28 measure trade page grid after mount 2021-12-31 10:38:42 -05:00
saml33 6e3c852ad0 change chart api data 2021-12-31 23:17:48 +11:00
saml33 5788bc9e89 price chart 2021-12-30 23:03:14 +11:00
rjpeterson 7abb205502 translate swap page 2021-12-29 19:04:55 -06:00
Tyler Shipe 50bd586277 fix scrollbar on swap page 2021-12-29 17:27:36 -05:00
Tyler Shipe 8cfa45c500 add settings modal and route logos 2021-12-29 17:12:43 -05:00
Tyler Shipe 021800f012 allow decimals in swap input 2021-12-29 15:46:26 -05:00
Tyler Shipe 04883b3841 fix error with float values in swap 2021-12-29 15:38:58 -05:00
Tyler Shipe 8b3b55fc8e fix scrollbar on trade page and enable measureBeforeMount on trade grid 2021-12-29 15:03:04 -05:00
Tyler Shipe 1f41c7c826 fix scrollbar 2021-12-29 14:39:58 -05:00
Tyler Shipe 29651a3fb0 settle all should loop through each position 2021-12-29 14:32:41 -05:00
Tyler Shipe 41fa096294 use latest mango client to add confirming transaction notification 2021-12-29 13:39:17 -05:00
saml33 f8d51200d4 routes concept 2021-12-29 22:52:18 +11:00
Tyler Shipe 05bd420fce restrict ui error body length and handle null values on account page 2021-12-29 01:39:32 -05:00
saml33 a8e33e46b2 flash wallet draw on first use 2021-12-29 12:07:37 +11:00
saml33 384cec140b swap info tooltips 2021-12-29 11:35:47 +11:00
tjshipe 64f820afb7
Merge pull request #115 from blockworks-foundation/show-deposit-after-intro
show deposit modal after intro tips
2021-12-28 17:52:37 -05:00
tjshipe 9c2a8f097f
Merge pull request #114 from blockworks-foundation/ImpossiblePairs-patch-1
Flush lines on market change
2021-12-28 17:42:45 -05:00
tjshipe 63c17348ba
Merge pull request #116 from blockworks-foundation/interest/funding-charts
show hourly stats when only 1 day of data
2021-12-28 17:41:50 -05:00
tjshipe 2bd9fbe428
Merge pull request #113 from blockworks-foundation/show-refresh-for-intro
show refresh button when no account
2021-12-28 17:39:23 -05:00
tjshipe f70e2c7bcb
Merge pull request #122 from blockworks-foundation/swap-styling
Swap styling
2021-12-28 17:37:59 -05:00
Tyler Shipe cd49edd0b6 add error boundaries to app.tsx 2021-12-28 17:22:50 -05:00
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