Commit Graph

799 Commits

Author SHA1 Message Date
Tyler Shipe 800e7e6049 add alert message to top of spot and perp pages 2021-09-01 10:15:43 -04:00
Tyler Shipe b96c60a166 remove alert at top of page 2021-09-01 10:06:06 -04:00
Tyler Shipe 33959a0e74 fix sol collateral avail and add alpha banner 2021-08-31 21:27:13 -04:00
Tyler Shipe 6820ac854f update market position faster for perp accounts 2021-08-31 19:28:39 -04:00
Tyler Shipe 5aaf079122 add navbar message 2021-08-31 18:21:30 -04:00
Tyler Shipe ae99437cea Load all mango accounts when depositing for the first time 2021-08-31 17:50:17 -04:00
Tyler Shipe b55b945bd8 refresh the funding rate on interval 2021-08-31 16:31:35 -04:00
Tyler Shipe 89d990a5f9 increment zero balance key 2021-08-31 15:14:07 -04:00
Tyler Shipe 27c7349c94 default show zero balance to true 2021-08-31 15:13:21 -04:00
Tyler Shipe bc56ac2759 tweak alpha modal 2021-08-31 14:42:33 -04:00
Tyler Shipe 99148a149c tweak alpha modal 2021-08-31 14:41:27 -04:00
Tyler Shipe ba731617cc reload tokens after deposit 2021-08-31 14:11:41 -04:00
Tyler Shipe 9b1c05e3c7 add link to alpha modal 2021-08-31 14:03:26 -04:00
Tyler Shipe 4f20fc6542 use client reloadMangoAccount 2021-08-31 13:47:03 -04:00
Tyler Shipe 44ed905eb6 Fix trade form quote rounding 2021-08-31 10:55:49 -04:00
saml33 d9e763e7f4 responsive market select 2021-09-01 00:30:13 +10:00
saml33 71e55964fa responsive market header 2021-09-01 00:25:09 +10:00
saml33 e2cc7391d2 responsive market header 2021-08-31 22:46:47 +10:00
tjshipe b2228d446a
Merge pull request #17 from blockworks-foundation/dynamic-orderbook-depth
Dynamic orderbook depth
2021-08-30 17:18:21 -04:00
Tyler Shipe c6e09c1ba1 fix alpha modal issue 2021-08-30 16:40:32 -04:00
Tyler Shipe 2c50835a21 update alpha message 2021-08-30 14:50:37 -04:00
Tyler Shipe 3ef85d773b add individual spot asset stats 2021-08-30 14:41:42 -04:00
Tyler Shipe 9c3c0677bd perp position pnl using breakeven price 2021-08-30 02:33:41 -04:00
Tyler Shipe bc447a5296 add value to open orders table, add color to perp pnl 2021-08-30 02:17:36 -04:00
Tyler Shipe 6630e29707 upgrade nextjs 2021-08-30 00:56:27 -04:00
rjpeterson de7fc9c15a prevent scrollbar from appearing 2021-08-30 12:24:10 +08:00
rjpeterson 43a01683e9 undo tailwind class reordering 2021-08-30 11:24:02 +08:00
rjpeterson 531720b290 inital conversion from v2 2021-08-30 11:24:01 +08: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
Tyler Shipe dde1555b69 don't use floor on potentially negative numbers 2021-08-29 12:55:34 -04:00
Tyler Shipe 83037b722e show change percent when zero 2021-08-28 22:02:22 -04:00
tjshipe 3a6aedee99
Merge pull request #16 from blockworks-foundation/dd/withdraw_rounding
now applying .floor() to getAvailBalance
2021-08-28 20:36:25 -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
Tyler Shipe 009259c35f compare pks with .equals 2021-08-28 14:09:08 -04:00
Tyler Shipe d09b9a4283 add cummulative and step size orderbook toggle 2021-08-27 20:37:45 -04:00
Tyler Shipe 63e151f516 prevent useOrderbook from updating during market change
fixes white screen error
2021-08-27 20:15:25 -04:00
Tyler Shipe 7ff45d2326 Merge branch 'add-market-close' into main 2021-08-26 11:58:34 -04:00
Tyler Shipe 2ecd1b2122 perp market close position button 2021-08-26 11:58:13 -04:00
saml33 f6ad6fbc56 update close position modal button text 2021-08-26 11:08:21 -04:00
saml33 04904203b0 add market close 2021-08-26 11:08:21 -04:00
Tyler Shipe 0e7a83fc36 simplify market select component 2021-08-25 18:22:40 -04:00
Tyler Shipe 18d0a08d6c disable trade button if no mango account 2021-08-25 17:57:01 -04:00
Tyler Shipe 052567de21 disable trade button if mangoAccount doesn't exist 2021-08-25 17:48:35 -04:00
Tyler Shipe fdc3e75c78 market header now uses serum-history data for high, low, open, close 2021-08-25 17:39:48 -04:00
Tyler Shipe 161882738b hide day range until perp range is available 2021-08-25 17:23:11 -04:00
Tyler Shipe 639f36bd99 revert new account modal on first deposit 2021-08-25 17:20:59 -04:00