Commit Graph

1079 Commits

Author SHA1 Message Date
Tyler Shipe faf82d6ebc hide duplicate deposit withdraw on trade page 2022-01-21 14:42:23 -06:00
tjshipe a538e8aaad
Merge pull request #142 from blockworks-foundation/improve-account-charts
improve account charts
2022-01-21 00:21:29 -06:00
Tyler Shipe a1f3485687 fix pagination 2022-01-20 12:09:19 -06:00
Tyler Shipe c9425df0de wait until mounted before rendering trade page grid 2022-01-20 11:43:18 -06:00
saml33 33c8adf7c6 improve account charts 2022-01-20 13:45:47 +11:00
Tyler Shipe e0a539382e fix trade history pagination 2022-01-19 17:43:50 -06:00
Tyler Shipe 6906d679dd Add view counterparty to trade history 2022-01-19 15:35:53 -06:00
tjshipe 4836191d1c
Merge branch 'main' into swap-top-holders 2022-01-18 17:27:32 -06:00
tjshipe ccf803260b
Merge pull request #140 from rjpeterson/add-missing-translations
fill in missing zh & zt-tw translations
2022-01-18 17:25:41 -06:00
rjpeterson 029aecf869 remove TOTRANSLATE tags 2022-01-18 15:21:02 -06:00
rjpeterson a7adc23466 update close account translations after changes 2022-01-18 15:14:14 -06:00
rjpeterson 68ce89dcd2 merge from upstream 2022-01-18 14:55:11 -06:00
rjpeterson 1116e7a901 add slippage translations 2022-01-18 14:48:46 -06:00
tjshipe b3a5f5b4c2
Merge pull request #137 from blockworks-foundation/close-account-modal
Copy and styling tweaks (close account)
2022-01-18 13:40:59 -06:00
Vidor Gencel b59abf5f80
Profile Picture Support (#134)
* render profile picture

* update profile picture package

* Include PFP only if set

* no need to wait pfp to load

Co-authored-by: Maximilian Schneider <mail@maximilianschneider.net>
2022-01-18 10:26:13 -08:00
rjpeterson fe857554be translate close account modal 2022-01-18 12:16:18 -06:00
rjpeterson 765352741d add TOTRANSLATE tag 2022-01-18 11:22:21 -06:00
rjpeterson cf55bebcf0 add TOTRANSLATE markers 2022-01-18 11:22:21 -06:00
Tyler Shipe 48252772f4 make lg and xl layouts match 2022-01-18 11:00:06 -06:00
saml33 bcae2a3d70 conflicts and translations 2022-01-18 12:54:21 +11:00
saml33 54c32ca964 copy and styling tweaks 2022-01-18 11:00:10 +11:00
Tyler Shipe ac0aa307be fix market list padding 2022-01-17 15:46:04 -06:00
Tyler Shipe 2a29b95033 update recent trades more frequently 2022-01-17 12:44:08 -06:00
tjshipe 4785d4986b
Merge pull request #135 from blockworks-foundation/max/disable-spot-margin
disable spot margin by default
2022-01-16 19:54:24 -06:00
Tyler Shipe 65d8cf78c2 remove duplicate fetch in manual refresh 2022-01-16 19:10:54 -06:00
Tyler Shipe fe4130ca4b v3.3 supports closing mango accounts 2022-01-16 18:35:47 -06:00
Tyler Shipe 5afff3bd7e Merge branch 'v3.3' into main 2022-01-16 17:27:33 -06:00
Tyler Shipe c307571624 yarn format 2022-01-16 11:13:55 -06:00
Tyler Shipe a0f6f3da0b useMemo on stats perp page 2022-01-16 11:13:55 -06:00
saml33 fa63b8edbe fix typo 2022-01-16 20:05:17 +11:00
Tyler Shipe eb503ff6a1 use latest client to add support for createOpenOrders 2022-01-15 21:32:31 -06:00
Tyler Shipe 5d550e58b3 remove cluster env var and link explorer txs to correct cluster 2022-01-15 20:00:34 -06:00
Tyler Shipe 8c674ec1fd fix deposit notification when init new account 2022-01-15 19:08:42 -06:00
Tyler Shipe babbcc3eb3 show proper notifications on account close 2022-01-15 18:51:45 -06:00
Tyler Shipe 9ba98b1e82 handle notifications when closing account 2022-01-15 18:14:20 -06:00
Tyler Shipe cce1be382f force reload orders when doing a manual refresh 2022-01-15 16:26:17 -06:00
Tyler Shipe b7bf1cdda5 yarn format 2022-01-15 15:25:14 -06:00
Tyler Shipe d648fcc1ac use latest client 2022-01-15 15:18:17 -06:00
Riordan Panayides d73be8835a Update client, fix account value 2022-01-15 14:54:59 -06:00
Riordan Panayides c59b8d5fb0 Add mango redemoption on account close 2022-01-15 14:53:52 -06:00
Riordan Panayides 62a6f58e0e Use emptyAndCloseMangoAccount 2022-01-15 14:53:52 -06:00
Riordan Panayides eeb93c3afb Set account properly, tidy up a bit 2022-01-15 14:51:45 -06:00
Riordan Panayides 02734eb1f5 Add close account modal 2022-01-15 14:51:16 -06:00
Tyler Shipe c98dd9a9e3 handle loading all markets on perp stats page 2022-01-15 12:48:38 -06:00
Tyler Shipe 16d3f2f211 handle missing coingecko info 2022-01-15 12:48:38 -06:00
Maximilian Schneider 68b9ef1709 make spot margin configurable 2022-01-14 11:44:10 -08:00
Maximilian Schneider 9ff52488da disable spot margin by default 2022-01-14 11:28:28 -08:00
Nicholas Clarke 9f2d789394 Minor refactoring. 2022-01-14 10:04:04 -08:00
Nicholas Clarke 32baad4dd2 Merge remote-tracking branch 'origin/main' into account_equity 2022-01-13 12:31:24 -08:00
Tyler Shipe 9c8615725c disable solana status notification 2022-01-13 13:09:07 -06:00
Tyler Shipe dd5ec97935 handle when api data is missing in swap page 2022-01-13 12:52:11 -06:00
Tyler Shipe c264aa4296 report ui errors to discord logs 2022-01-13 10:47:44 -06:00
Tyler Shipe 3271851f5e add perpmarket type checks 2022-01-13 10:38:55 -06:00
Tyler Shipe e1114d7477 handle when perpmarket isnt loaded yet 2022-01-12 16:46:41 -06:00
saml33 c1ba981994 update msol icon 2022-01-12 21:00:36 +11:00
tjshipe 813ad801e0
Merge pull request #129 from blockworks-foundation/max/switch-market-mobile
make market selectable on mobile when clicking market name
2022-01-11 20:34:51 -05:00
tjshipe a7feab1665
Merge pull request #130 from rjpeterson/swap-translations
Update Swap page translations & add dayjs locales
2022-01-11 20:33:25 -05:00
Nicholas Clarke 8c1590f724 Merge remote-tracking branch 'origin/main' into account_equity 2022-01-11 15:47:18 -08:00
ImpossiblePairs 0ed7263f64
Fix reduceOnly checkbox functionality
Updated reduceOnly checkbox functionality so that when the reduceOnly checkbox is active, it uses "percentage x basePosition" instead of "percentage x max" which is only appropriate when reduceOnly is inactive.
2022-01-11 11:59:14 -08:00
saml33 1db53e45f2 hide interest chart when no data 2022-01-11 21:23:57 +11:00
saml33 d2bfb7f905 add change timeframes 2022-01-11 19:33:38 +11:00
saml33 21d60f1284 add search tokens 2022-01-11 13:40:20 +11:00
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