Commit Graph

189 Commits

Author SHA1 Message Date
tjs 055a830289 remove netlify nextjs package 2022-03-24 23:33:43 -04:00
tjs 97c38de993 remove buffer-layout 2022-03-24 23:32:31 -04:00
tjs ab83bd909a add nextjs bundle analysis 2022-03-24 23:17:06 -04:00
tjs d05f8810b5 remove jest and netlify 2022-03-24 22:43:12 -04:00
tjs e850387628 update jup pkg 2022-03-24 22:21:18 -04:00
tjs 1960553ecf fix date table element types 2022-03-24 16:06:59 -04:00
Kieran Gillen d7f96bde8b Updates to wallets in ConnectButton 2022-03-24 15:39:24 +01:00
Kieran Gillen 1a40a98af0 Removes calls to Wallet and Connected through MangoStore hook 2022-03-23 11:42:04 +01:00
Kieran Gillen cd8549b1dc Reverts revert wallet adapter 2022-03-22 10:18:58 +01:00
Luc Succes 7316a16e46 Merges main 2022-03-21 14:07:25 -04:00
tjs 4e56baff8e use latest mango client 2022-03-20 21:38:58 -04:00
tjs fa7edcc119 switch away from toLocaleString
toLocaleString is quite slow
2022-03-20 21:30:12 -04:00
tjs 08a2ab531f update headless/ui to improve open close logic of market switcher 2022-03-19 15:39:34 -04:00
tjs 9ce177ca3d Revert solana wallet adapter 2022-03-18 14:41:23 -04:00
tjs 45127eb8c0 use latest mango client 2022-03-18 10:34:46 -04:00
tjs 4edd362ec2 use latest mango-client 2022-03-17 20:54:06 -04:00
Kieran Gillen e68f08eba5 Updates client version to 3.3.21 2022-03-17 16:06:17 +01:00
Kieran Gillen 23b1feb941 Merge branch 'main' of github.com:blockworks-foundation/mango-ui-v3 into add-wallet-adapter 2022-03-17 13:06:28 +01:00
tjs f75d7f7ffd fix bn.js pkg version 2022-03-16 17:38:31 -04:00
tjs f8a0849c40 update zustand store types to work with zustand 3.7 2022-03-16 17:27:26 -04:00
tjs 73d1be2e13 Revert "fix yarn pkg incompatibility"
This reverts commit 7a3087cbcd.
2022-03-16 17:27:26 -04:00
tjs 7a3087cbcd fix yarn pkg incompatibility 2022-03-16 15:58:25 -04:00
tjs e2f173f2da run yarn install 2022-03-16 15:47:15 -04:00
Kieran Gillen 71ce5a2bde Fixes build 2022-03-16 17:00:13 +01:00
Kieran Gillen 94677c3476 Removes wallet adapter react ui 2022-03-16 11:25:19 +01:00
Kieran Gillen 0a033e50d8 Merge branch 'main' of github.com:blockworks-foundation/mango-ui-v3 into add-wallet-adapter 2022-03-15 15:14:52 +01:00
Kieran Gillen 9dbc6f452d Adds solana wallet adapter packages 2022-03-14 16:25:04 +01:00
tjs eba38b3609 use latest mango client 2022-03-14 01:52:55 -04:00
tjs 597c930b98 use blockhash that expires with timeout 2022-03-13 19:26:30 -04:00
tjs 5654ddcb9e parse account info on update 2022-03-09 17:39:57 -05:00
tjs db8a0324aa add tailwind prettier plugin; run yarn format 2022-03-09 15:53:11 -05:00
tjs 580cae22c8 use latest client; update i18n 2022-03-07 01:39:09 -05:00
tjs d891102e5f upgrade to tailwind 3 2022-03-02 18:04:32 -05:00
tjs 299cdbe240 chore: update packages 2022-03-02 00:17:36 -05:00
tjs 80d876acc9 chore: fix warning from next js 12 upgrade 2022-03-02 00:17:16 -05:00
tjs dbaa1d25e5 upgrade to latest jup ag client 2022-02-26 01:59:24 -08:00
tjs d3e7ef67c3 use mango-client 3.3.17 2022-02-26 00:31:51 -08:00
saml33 5117617259 add size and referral qr 2022-02-24 15:50:52 +11:00
saml33 28d7de115c show size and referral 2022-02-24 13:53:57 +11:00
tjs 6e815d96d8 remove sentry 2022-02-22 13:45:25 -08:00
tjs 73c3d111cf Merge branch 'main' into share-positions-2 2022-02-15 10:44:10 -05:00
tjs d31dbc5bb8 use latest client; update fee display 2022-02-14 16:42:32 -05:00
tjs 11f9ef806d create referral page 2022-02-14 12:15:28 -05:00
tjshipe 4444ad996b
Merge pull request #146 from vsakos/main
Solflare SDK with the unified adapter
2022-02-10 13:12:03 -05:00
tjs f4ba160686 share position modal 2022-02-08 13:50:44 -05:00
Tyler Shipe 715c8fd26f show deposit and borrow rates even when not connected 2022-02-04 12:57:18 -05:00
Tyler Shipe b71a40b413 add sentry 2022-02-03 14:14:23 -05:00
Varga-Somogyi Ákos 128d42272b Solflare unified adapter 2022-02-03 15:30:44 +01:00
Tyler Shipe 29bca2dcc9 use latest mango client 2022-01-26 12:50:47 -05:00
Maximilian Schneider b4b8c5fb81 update mango client to fix settle pnl issue 2022-01-21 19:04:07 -08: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
Tyler Shipe 679064d8a2 only update mango account at most once per sec and check last slot 2022-01-17 14:23:06 -06:00
Tyler Shipe 11682e1e9f use mango client v3.3.1 2022-01-16 19:36:41 -06:00
Tyler Shipe fe4130ca4b v3.3 supports closing mango accounts 2022-01-16 18:35:47 -06:00
Riordan Panayides c8ba7315b8 Use 3.3 client branch 2022-01-15 14:54:24 -06:00
Riordan Panayides 04809b8f84 Update client 2022-01-15 14:54:10 -06:00
Riordan Panayides f4c5509f76 Fix dependencies 2022-01-15 14:53:52 -06:00
Riordan Panayides 02734eb1f5 Add close account modal 2022-01-15 14:51:16 -06:00
Tyler Shipe 96cf8e2a92 fix husky 2022-01-13 13:14:31 -06:00
Maximilian Schneider 7577c064ef upgrade svgr package 2022-01-09 20:54:57 -08:00
Maximilian Schneider c027b81b5f more package upgrades 2022-01-09 20:42:26 -08:00
Maximilian Schneider 3ca2b3219f update dependencies 2022-01-09 20:33:13 -08:00
Tyler Shipe 5c3b476194 upgrade mango client to pull in new spot markets 2022-01-09 14:06:25 -05:00
Tyler Shipe 7182f012f8 upgrade to use latest jupiter aggregator client 2022-01-08 20:31:04 -05:00
Tyler Shipe 7c70ee15c0 use latest mango client to pull in luna perp 2022-01-03 20:30:51 -05: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
Maximilian Schneider 7f044ed062 upgrade mango client 2021-12-30 20:53:32 -07:00
Tyler Shipe 41fa096294 use latest mango client to add confirming transaction notification 2021-12-29 13:39:17 -05:00
Maximilian Schneider b7dc7f42a1 upgrade mango client 2021-12-26 06:10:57 -07:00
Tyler Shipe c503b21f0a upgrade jup ag npm pkg 2021-12-22 19:39:57 -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
Tyler Shipe 0f13c748e4 add jupiter ag swap 2021-12-17 16:02:02 -05:00
Yandre 40e7c2875c Added code to export data to CSV file 2021-12-02 19:37:20 -05:00
Tyler Shipe b9c8dd09d5 use lodash instead of lodash-es 2021-11-30 21:46:23 -05:00
saml33 f3ea08c1c1 merge main 2021-11-04 20:17:39 +11:00
saml33 b8d34934d9 setup introjs tour 2021-10-29 23:05:55 +11:00
Tyler Shipe fc1665444f upgrade to next12, remove babel, remove emotionjs, convert emotion styles to inline 2021-10-27 16:46:31 -04:00
rjpeterson bf679598bb
Add next-i18next translation framework & Traditional and Simplified Chinese UI Translations (#54)
* start english localization

* fix typo

* add to english localization

* add some zh translations, fix discrepencies in en

* add more chinese translations

* finish trad chinese translations

* add simplified folder, add locales.json with meta info, add latest ui updates in english

* add latest ui changes for chinese-trad and sort

* fix typo

* convert trad to simp

* Update common.json

* add review changes by @HZ2078

* fix typos

* add latest ui changes

* new ui change & trad-simp convert

* delete monospace from locales.json

* add next-i18next translation framework. Add translations up to #103

* replace more html with traslate tags

* lint & add more phrases

* add missing translations

* add language select dropdown

* add new update transltations

* add latest gui update translations

* add useTranslation to lang switch

* sort common.json, add lang descriptions

* update netlify config to support i18n

* make translations more consistent

Co-authored-by: Hz2078 <92381714+HZ2078@users.noreply.github.com>
Co-authored-by: Tyler Shipe <tjshipe@gmail.com>
2021-10-20 13:42:40 +01:00
Tyler Shipe 91427ee809 use latest client 2021-10-12 16:20:55 -04:00
dd f3fbb1af6b changed mango client package to v3.1 after place spot order2 fix 2021-10-10 11:06:57 -07:00
Maximilian Schneider 93abdab9f6 Merge remote-tracking branch 'origin/main' into max/stoploss 2021-10-05 23:02:01 +02:00
Maximilian Schneider 97bb02e593
show unsettled pnl (#46)
* display unsettled pnl more dominantly (#43)

* display perp markets that have unsettled pnl

* fix dependencies to a working version

* add back unrealized pnl vs unsettled pnl

* add todo

* settle all

* cleanup

* catch error

* fix crash in market position & refactor

* bugfixes

* correct unrealized pnl
* remove unsetlled pnl from table
* only show unsettled balances after closing position
2021-10-05 22:22:47 +02:00
Tyler Shipe 419f7d607c Merge branch 'ts/spot-order-2' into max/stoploss 2021-09-22 23:20:56 -04:00
saml33 9123e63344
Trade page mobile (#35)
* mobile styles for chart, position, account

* mobile styles for trade form

* trade page mobile styles

* tab layout

* fix unknown property fill-rule

* test swipeable tabs

* fix container height

* fix orderbook mobile styles

* account page mobile styles

* fix swipeable container height

* stats page mobile styles
2021-09-20 02:36:02 +02:00
Tyler Shipe f1d59d32e1 use placeSpotOrder2 and add reduce only orders for perps 2021-09-15 20:25:23 -04:00
Tyler Shipe 6630e29707 upgrade nextjs 2021-08-30 00:56:27 -04:00
Tyler Shipe e0f2398dab remove old hooks 2021-08-29 20:37:31 -04:00
Tyler Shipe 3dadee255a remove console logs, use latest client 2021-08-06 18:49:17 -04:00
Tyler Shipe f8ee52eb7f fix to show trade history even when spot open order acct doesnt exist 2021-08-06 18:35:10 -04:00
Tyler Shipe 0e54dba872 ignore fs pkg in next.js and update to latest client 2021-07-18 13:24:15 -04:00
Tyler Shipe 153bff4499 remove access token now that client is public 2021-07-14 11:07:34 -04:00
Tyler Shipe d9c367cc9e latest mango-client 2021-07-05 11:06:00 -04:00
Tyler Shipe c355f7132e add Borrows page and health ratio 2021-07-05 11:03:57 -04:00
Tyler Shipe 671e50eba0 wip: max borrow calculations 2021-07-01 13:35:47 -04:00
Tyler Shipe 619295d2e0 parsed trade history for perps 2021-06-24 16:57:11 -04:00
dd 53949ded01 changed default mango group name 2021-06-23 18:00:17 -04:00
Tyler Shipe 1b02a53314 update naming to match client 2021-06-23 11:32:33 -04:00
Tyler Shipe a0d2579d70 add pat to download merps-ts 2021-06-20 17:41:41 -04:00
Tyler Shipe 99f3231d58 netlify deploy 2021-06-20 16:14:25 -04:00
Tyler Shipe d3af1ac5b1 show open orders and wire up cancel order 2021-06-18 16:46:20 -04:00