Commit Graph

1051 Commits

Author SHA1 Message Date
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
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