Commit Graph

376 Commits

Author SHA1 Message Date
Tyler Shipe 7e2d6053fc use latest client to support reduceOnly flag in placePerpTriggerOrder 2021-10-01 16:51:24 -04:00
Tyler Shipe 052de958f2 consistent padding; use latest from client branch 2021-10-01 13:21:17 -04:00
Tyler Shipe 9118dbf010 fix trade form button colors; use latest client to handle when no advanced orders exist 2021-09-29 16:47:10 -04:00
Tyler Shipe f2667e3346 use latest client 2021-09-29 13:10:16 -04:00
Tyler Shipe 7ba6cf2412 use the latest client 2021-09-29 12:24:09 -04:00
Tyler Shipe 207fddd242 call addPerpTriggerOrder 2021-09-23 02:05:47 -04:00
Tyler Shipe 7abc83ce0f use latest client 2021-09-20 19:51:25 -04:00
Tyler Shipe 1861f9dc72 use latest client to fix equity and leverage display 2021-09-20 14:58:09 -04:00
Tyler Shipe 4f96816ec3 use latest client 2021-09-20 13:46:51 -04:00
Tyler Shipe 79e2963204 use latest client to pull in new markets 2021-09-20 13:10:15 -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 0161e4f61f latest client 2021-09-09 17:18:38 -04:00
Tyler Shipe b6ec2b6892 upgrade client 2021-09-08 15:57:33 -04:00
Tyler Shipe 233d6c8e93 use latest client 2021-09-08 14:32:29 -04:00
Tyler Shipe b03db3b771 remove send transaction notification 2021-09-07 15:27:54 -04:00
Tyler Shipe e5b67857af retry transaction more frequently; use tx callback for notifications 2021-09-04 17:59:53 -04:00
Tyler Shipe ad2cef38eb use latest client 2021-09-03 14:10:53 -04:00
Tyler Shipe 0c95f263f5 remove v3 alert in top bar 2021-09-03 13:59:14 -04:00
Tyler Shipe e1d6d3f8e4 try latest client 2021-09-03 11:42:54 -04:00
Tyler Shipe 4e112786a7 use latest client 2021-09-03 11:28:54 -04:00
Tyler Shipe bb64bfe90c use latest client 2021-09-03 11:17:02 -04:00
Tyler Shipe 4a145f5878 use latest client and only reload mango account after settling 2021-09-03 10:36:53 -04:00
dd 4b7aadd72f fixed typo in top banner; updated mango client 2021-09-02 15:53:10 -04:00
Tyler Shipe d522dfaa0f use latest client for faster mango account loading 2021-09-02 10:39:12 -04:00
Tyler Shipe 52d0d4012a use latest client 2021-09-01 19:00:25 -04:00
Tyler Shipe 6833602681 fix balance rounding issue in market balances 2021-09-01 14:43:27 -04:00
Tyler Shipe 0b1cbd80a5 update client to use web3.js sendAndConfirmRawTransaction 2021-09-01 14:05:52 -04:00
Tyler Shipe 4f20fc6542 use client reloadMangoAccount 2021-08-31 13:47:03 -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 7dd454c23c handle rounding issues when withdrawing max with borrows 2021-08-29 20:25:36 -04:00
Tyler Shipe 7aa7feadb0 Use latest client to fix rounding issues 2021-08-29 15:15:37 -04:00
dd a07acca6e0 applied floor to deps and net; applied ceil to borrows; don't recommend merging changes in BalancesTable.tsx unless you also make it work with the 0 balances checker etc. But I think as long as we aim to show precision up to native units, these changes are good. 2021-08-28 17:16:10 -04:00
dd 471b07396d now applying .floor() to getAvailBalance 2021-08-28 16:33:41 -04:00
Tyler Shipe be63fd5c7f use latest mango-client 2021-08-28 14:32:32 -04:00
dd 6b1c922b47 update mango-client package in yarn lock 2021-08-25 14:02:41 -04:00
Tyler Shipe 44bd6dc5a7 use latest mango-client 2021-08-25 13:12:43 -04:00
Tyler Shipe 38ab3f9914 refresh mango acct more frequently; add error notification on failure 2021-08-25 11:50:39 -04:00
Tyler Shipe b61e0b2f13 use latest client 2021-08-24 17:17:01 -04:00
Tyler Shipe d9019b961a reduce margin in trade form; remove leverage text from slider 2021-08-24 16:40:43 -04:00
dd ac15479370 fixed breakeven price issue; updated yarn lock 2021-08-23 17:20:23 -04:00
Tyler Shipe 9c75a0dbd2 add available balance tooltip; update client for market margin available fix 2021-08-23 15:46:29 -04:00
Tyler Shipe de052ace29 add collateral available and market margin available 2021-08-23 15:35:59 -04:00
Tyler Shipe b3cc717c86 use context slot to sync orderbook updates 2021-08-23 13:12:48 -04:00
Tyler Shipe 99355dac38 use latest client to fix settle pnl 2021-08-23 11:21:26 -04:00
dd 1b5cac89a1 fixed getPnl and settlePnl functions and updated client 2021-08-20 16:39:44 -04:00
Maximilian Schneider b0d4b9353a display recent trades 2021-08-20 04:47:25 +02:00
dd 75c9abf746 fixed the sign issue for get average entry price 2021-08-19 21:41:10 -04:00
dd fe09cebc2c upgrade to latest mango client; unexpected error bug fixed 2021-08-19 18:47:19 -04:00
Tyler Shipe beda882674 latest client 2021-08-19 15:40:54 -04:00
Tyler Shipe b7a6a5086d use latest client 2021-08-19 13:49:44 -04:00
Tyler Shipe 809aec51e0 use latest group 2021-08-18 20:42:34 -04:00
Tyler Shipe 1c64a8a252 show position closing in leverage slider 2021-08-18 20:33:45 -04:00
Tyler Shipe 0af7a8b8ee more trade form improvements 2021-08-18 16:15:17 -04:00
Tyler Shipe 86ea7afcff add leverage slider 2021-08-18 14:23:12 -04:00
Tyler Shipe 2105827769 reduce sleep after placing a trade 2021-08-18 11:01:42 -04:00
Tyler Shipe b3424df63e fix account naming when new sub account 2021-08-17 17:52:53 -04:00
Tyler Shipe f7aa5b6bed fix lint errors 2021-08-17 16:48:42 -04:00
Tyler Shipe 5c44d1fd34 fix when creating new mango accoung 2021-08-17 16:09:27 -04:00
Tyler Shipe 47c47367f9 latest client 2021-08-17 13:15:40 -04:00
Tyler Shipe 5ff5fb2914 use latest client 2021-08-16 20:05:57 -04:00
Tyler Shipe 5d8bf9969e Finish max withdrawal simulation 2021-08-15 18:36:06 -04:00
Tyler Shipe 99a6184cb1 add leverage 2021-08-14 17:14:43 -04:00
Tyler Shipe d4927731ee add breakeven and avg open price 2021-08-14 14:16:15 -04:00
Tyler Shipe 10a881a811 wire up init account and deposit 2021-08-13 11:31:00 -04:00
Tyler Shipe a019c06b28 use latest client 2021-08-12 19:50:36 -04:00
Tyler Shipe 5270930649 upgrade to latest client 2021-08-12 12:13:00 -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 c5866ee610 make health ratio red if init health is at or below zero 2021-08-04 17:47:05 -04:00
Tyler Shipe 77716dc7ee fix account name 2021-08-04 14:51:17 -04:00
Tyler Shipe 96b50431ca add redeem all mngo button 2021-08-04 14:31:32 -04:00
Tyler Shipe 52d98d28c2 flip side in trade history based on maker or taker 2021-08-04 13:15:28 -04:00
Tyler Shipe 85ed076fe0 sort trade history for perps 2021-08-04 12:46:14 -04:00
Tyler Shipe 1a09dd172f use new mango group 2021-07-30 16:35:38 -04:00
Tyler Shipe caa4a29b23 add account naming 2021-07-30 16:33:03 -04:00
Tyler Shipe 2e33486dbb use latest group 2021-07-28 19:03:21 -04:00
Tyler Shipe be031cc0fe consistency with user info tabs 2021-07-24 16:15:27 -04:00
Tyler Shipe 2897403e32 update client 2021-07-24 13:19:14 -04:00
Tyler Shipe 872c8c3581 add notification after settle all 2021-07-21 17:11:17 -04:00
Tyler Shipe 8beecf59f5 support sol deposits and withdrawals 2021-07-20 15:21:09 -04:00
Tyler Shipe 9b110bc507 refresh open orders after canceling a differentmarket 2021-07-19 20:42:55 -04:00
Tyler Shipe c330b895a4 latest client 2021-07-19 18:06:09 -04:00
Tyler Shipe f26ec2165c remove root bank rpc calls 2021-07-19 17:28:30 -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 f6038d93cd use latest client 2021-07-18 00:38:47 -04:00
Tyler Shipe 9105a06960 use latest client and group 2021-07-17 07:57:22 -04:00
Tyler Shipe f5ec9c4f23 use latest client and new group 2021-07-16 14:31:58 -04:00
dd 930784879d updated to latest mango client 2021-07-16 08:09:02 -04:00
dd 94f4a0ea51 updated to latest mango client 2021-07-16 08:07:01 -04:00
Tyler Shipe 61feb5333f use latest group 2021-07-15 15:56:43 -04:00
Tyler Shipe 16513f9f46 use latest client 2021-07-15 13:56:25 -04:00
Tyler Shipe 1fa7075c0e latest client 2021-07-15 11:09:51 -04:00
Tyler Shipe 153bff4499 remove access token now that client is public 2021-07-14 11:07:34 -04:00
Tyler Shipe bd651df0cb use latest client 2021-07-14 10:56:59 -04:00
Tyler Shipe 7d5ec35874 use latest group 2021-07-12 21:50:09 -04:00
Tyler Shipe dda50c8aee update to latest client; use toFixed for I80F48 2021-07-12 12:55:16 -04:00
dd 70a08df247 updated mango client 2021-07-08 14:56:34 -04:00
Tyler Shipe b3aae90c5a use latest client 2021-07-08 11:11:54 -04:00
dd ca85a90b38 changed Balances interface for net; use toFixedUi 2021-07-08 10:16:39 -04:00
Tyler Shipe 8e3f3b7a9a use latest client 2021-07-07 16:41:47 -04:00
Tyler Shipe c11890582d handle rounding errors 2021-07-07 16:38:04 -04:00
Tyler Shipe 4c1f3d3283 use latest mango group 2021-07-07 11:20:57 -04:00
Tyler Shipe a0ba6f44e8 update notifications, wire up account change modal 2021-07-06 18:04:20 -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 9b41daf876 use latest mango-client 2021-06-30 13:35:15 -04:00
Tyler Shipe e9cdeb8a08 add settle all spot markets to balances 2021-06-24 18:15:23 -04:00
Tyler Shipe 619295d2e0 parsed trade history for perps 2021-06-24 16:57:11 -04:00
Tyler Shipe cb94124124 use latest group 2021-06-23 19:30:04 -04:00
dd 45c033238d updated mango client 2021-06-23 18:15:45 -04:00
dd 53949ded01 changed default mango group name 2021-06-23 18:00:17 -04:00
Maximilian Schneider 162954ab1f fix i64 parsing in client 2021-06-23 19:24:48 +02:00
Tyler Shipe 1b02a53314 update naming to match client 2021-06-23 11:32:33 -04:00
Tyler Shipe 99f3231d58 netlify deploy 2021-06-20 16:14:25 -04:00
Maximilian Schneider 135e3012af cancel perp order fixed 2021-06-19 02:47:02 -04:00
Maximilian Schneider 107c2e8ed3 add cancel perp order call and remove unused imports 2021-06-19 00:26:47 -04:00
Maximilian Schneider 5b7ea2a889 fix linter issues 2021-06-18 23:35:22 -04:00
Maximilian Schneider 2c487348f6 open orders are kinda adapted 2021-06-18 23:07:57 -04:00
Tyler Shipe 3f3ffb1a37 spot market orderbook on websockets 2021-06-18 19:57:02 -04:00
Maximilian Schneider dcbb37fbb7 simple json stuff 2021-06-18 18:51:34 -04:00
Tyler Shipe 054cc5c82e remove console logs and fetch all markets 2021-06-18 18:38:09 -04:00
Tyler Shipe d3af1ac5b1 show open orders and wire up cancel order 2021-06-18 16:46:20 -04:00
Maximilian Schneider 4d7b02e6a0 place perp order works now 2021-06-18 14:07:07 -04:00
Tyler Shipe 3df663614a use imported mangoClient in trade form; display userInfo component 2021-06-18 11:17:49 -04:00
Tyler Shipe 370d25f7bd fix init and deposit; fix disconnect bug 2021-06-17 21:10:47 -04:00
Tyler Shipe fd8df42503 update packages 2021-06-17 20:44:03 -04:00
Maximilian Schneider c610da11aa reenable trade form 2021-06-17 20:32:45 -04:00
Tyler Shipe dc4cf3412c latest client 2021-06-17 18:39:59 -04:00
Maximilian Schneider 4d3dae3b1a load order books both from perp & spot 2021-06-17 17:07:10 -04:00
Tyler Shipe c6dab39463 add interest rates 2021-06-17 14:40:44 -04:00
Maximilian Schneider 275fafa4c4 refactor deposit modal 2021-06-17 14:03:47 -04:00
Maximilian Schneider 8aed0f0840 expose market config in store and switch between spot & perp 2021-06-17 01:38:49 -04:00
Tyler Shipe cb331fb2c7 comment out stuff in the ui so it works 2021-06-16 21:50:16 -04:00
Maximilian Schneider bfebd8a900 fix babelrc to handle logical assignment ops 2021-06-16 12:05:03 -04:00
Tyler Shipe 8171b25167 use latest mango-client version 2.1 2021-06-12 17:17:59 -04:00
Tyler Shipe 4476a2254e rebate gui hoster fees to users 2021-06-12 13:46:06 -04:00
Maximilian Schneider d4560af064 bump mango-client to 2.0.0 for consistency 2021-06-09 12:01:34 -04:00
Tyler Shipe 1afe59e4e0 update modal with sol srm info 2021-06-08 10:59:39 -04:00
Tyler Shipe 74c9016374 use latest 5 token mango client 2021-06-05 13:06:56 -04:00
Tyler Shipe 9e5a844f5d latest mango-client 2021-06-05 11:03:25 -04:00
Tyler Shipe 081c846caa update to latest 5_token client-ts version 2021-06-05 10:47:24 -04:00
Tyler Shipe ff0aeb5ee0 upgrade yarn.lock 2021-06-01 18:13:18 -04:00
Tyler Shipe a2163f7cf4 use web3.js v0.95.0 2021-05-31 16:23:48 -04:00
dd 572f9597f1 updating mango client in yarn lock 2021-05-31 14:08:55 -04:00
Ralfs a9ad62ee83
use the 5_token USDC group (#16) 2021-05-26 16:35:45 +03:00
Ralfs 7a110f9ea5 Fixed build bugs 2021-05-20 23:43:18 +03:00
Ralfs eb73a8f4d5 Use another client branch 2021-05-20 22:39:14 +03:00
Maximilian Schneider 935129c45e
simulate withdraw operation so we can preview equity & coll (#10)
* show margin details in withdraw ui

Co-authored-by: saml33 <slam.uke@gmail.com>
2021-05-18 19:27:09 +03:00
saml33 806b527502
Bring alert details and notifications into the UI (#5)
* hook to get alerts, add triggered alerts to alerts list
* alerts page, count unseen alerts, clear alerts from nav view
* consolidate components, add custom value to alert modal dropdown, sort margin accounts alphanumerically
* ring bell when count increments and ping animation on count
* create/fetch alerts from store, filter by account, populate modal state from triggered alert
* fix alert sorting
* enable MA selection also for re-activate
2021-05-07 22:41:26 +03:00
Tyler Shipe 9cc7eaf559 increase grid columns 2021-05-02 00:33:27 -04:00
saml33 23220e3555 trigger set alerts modal from margininfo 2021-05-02 00:02:21 +10:00
saml33 7c4513575e fixed active states for toggle buttons in tradingview left toolbar 2021-04-28 10:46:06 +10:00
Tyler Shipe c480e2d362 bump mango-client version 2021-04-26 15:12:11 -04:00
Tyler Shipe 2d489b29c4 add Lagzda's alerts 2021-04-24 22:10:28 -04:00
saml33 9a3ef99b3d include borrow switch and styling 2021-04-21 10:39:19 +10:00
Tyler Shipe 3db7ed86a5 extract borrowAndWithdraw from ui to mango-client pkg 2021-04-20 14:14:45 -04:00
Tyler Shipe 7b8035e960 Merge remote-tracking branch 'origin/table-styling' into main 2021-04-20 12:46:41 -04:00
Tyler Shipe 349966cb7e upgrade to mango-client 0.1.12 and add refresh button to account select 2021-04-20 11:46:56 -04:00
saml33 4285339e5a responsive tables and start on stats page 2021-04-21 00:19:08 +10:00
Tyler Shipe b22ac152bd Add new tooltip component 2021-04-16 14:16:31 -04:00
Tyler Shipe 92eef50f54 upgrade tailwind and next 2021-04-16 11:04:04 -04:00
Tyler Shipe b5d72c0b55 remove ant library and fix tailwind config for lato 2021-04-15 23:32:03 -04:00
Tyler Shipe a674ff74d3 texting fixes 2021-04-14 18:46:36 -04:00
saml33 abf9aaa671 disconnect wallet dropdown with copy address 2021-04-14 22:01:58 +10:00
Tyler Shipe 59f1156703 Add UiLock toggle and themed the stats page 2021-04-13 12:51:42 -04:00
Tyler Shipe 932b52f649 remove xwind and convert to className prop 2021-04-12 12:49:02 -04:00
saml33 d9c27cca3c support for more than two themes 2021-04-12 23:32:01 +10:00
cryptopherhitchens 4e06be9bb8 theme start 2021-04-12 07:25:01 +10:00
Tyler Shipe b5562c161c wip: wire up deposit withdraw modals 2021-04-09 10:27:49 -04:00
Tyler Shipe 10e4fff211 add stats page 2021-04-07 19:06:02 -04:00
Tyler Shipe a0c0768473 add market select dropdown 2021-04-06 18:11:42 -04:00
Tyler Shipe f03f1919a4 add trade form component 2021-04-02 14:26:21 -04:00
Tyler Shipe 37cf5bae14 create next app with trading view form and orderbook 2021-03-30 18:47:08 -04:00
Tyler Shipe f8825bd246 Initial commit from Create Next App 2021-03-26 12:44:55 -04:00