Commit Graph

454 Commits

Author SHA1 Message Date
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
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
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 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 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
Tyler Shipe 44e0d8ad21 make it more obvious when opening new position with slider 2021-08-25 17:07:25 -04:00
Tyler Shipe 01796922c8 close accounts list after creating first account 2021-08-25 15:05:18 -04:00
Tyler Shipe ecbe76a2f4 alpha modal with emoji 2021-08-25 14:55:31 -04:00
Tyler Shipe 5b413a9089 update alpha modal 2021-08-25 14:49:04 -04:00
Tyler Shipe 8ac108ce35 update alpha modal 2021-08-25 14:47:57 -04:00
Tyler Shipe f8c14d193d Merge remote-tracking branch 'origin/name-account-first-deposit' into main 2021-08-25 13:52:00 -04:00
Tyler Shipe 3c6638357b show funding rate even when its 0 2021-08-25 13:43:17 -04:00
Tyler Shipe dd20e6223d fix stats api params 2021-08-25 13:40:32 -04:00
Tyler Shipe 66bf66fc7c remove unused utils fns 2021-08-25 10:23:30 -04:00
saml33 383a82e2d0 use new account modal for first deposit 2021-08-25 23:56:52 +10:00
saml33 2a1b8f59ea disable withdraw button when no account 2021-08-25 20:54:39 +10:00
Tyler Shipe b1215906a9 add more precision to trading view chart 2021-08-24 19:22:20 -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
Tyler Shipe f08e323e6c remove console logs 2021-08-24 16:01:43 -04:00
Tyler Shipe d51f4419ba clean up notification console logs 2021-08-24 15:43:34 -04:00
Tyler Shipe f46a7cec4b dont validate account name 2021-08-24 14:34:54 -04:00
Tyler Shipe 1c0962031b add notification when sol balance is low and when connecting wallet; disable connect button until walletadapter is loaded 2021-08-24 12:28:25 -04:00
Tyler Shipe d39e52de76 fix NaN under slider on perp side 2021-08-24 10:30:15 -04:00
Tyler Shipe 325b6c2424 fix the max withdraw modal to use client fn 2021-08-24 10:15:12 -04:00
saml33 e6c1cfca08 balance rounding in balances panel 2021-08-24 20:09:42 +10:00
saml33 072f450f18 remove rounding from balances on account page 2021-08-24 16:44:58 +10:00
Tyler Shipe 72eda925c1 use event-history-api for spot trades 2021-08-23 18:37:48 -04:00
Tyler Shipe 251b0a1d8d use the correct pk to get the perpmarket 2021-08-23 18:19:20 -04:00
Tyler Shipe 3f1e91399e add stat totals 2021-08-23 17:09:16 -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