* estimate liquidation price
* make space for elp in margininfo
* display N/A if account won't be liq'd
ensure recalculation on market change
Co-authored-by: dboures <dboures@att.net>
* Make orderbook size change dynamically with layout
This change causes the depth value passed to the orderbook component to change in response to the height of the resizable container.
This allows users to show more or less of the depth of the orderbook depending on their preference.
Old behavior was to always show a depth of 8 rows regardless of the size of the container.
* revert changes to yarn.lock
* adjust depth formula, add assymetric depth in vertical mode
The depth of the orderbook now more closely matches the size of the container.
The scrollbar has also been disabled in the orderbook panel to enable the space to be used as efficiently as possible without the annoyance of the scrollbar appearing.
The vertical orientation of the orderbook now allows an odd number of ask rows and an even number of bid rows if it is able to use more of the available space.
* Make orderbook depth adjust on breakpoint change
Add orderbookDepth state which is managed by onBreakpointChange and onLayoutChange functions.
* Add orderbookDepth value to useMangoStore
* Simplify state management and move orderbook adjustments into useEffect
Remove orderbook state object from useMangoStore
This change solves the issue of the orderbook not adjusting on a new session, as well eliminates instances of repeated calls to adjustOrderBook()
* Fix lodash compile errors
* layout, overview, start on assets, borrows and open orders
* trade history, sortable data hook for tables, borrow page
* handle deposit and withdraw buttons
* borrow modal ui and integration + settle borrow for individual assets
* in orders balance to asset table and totals, responsive css, new connected wallet button + small tweaks
* account switch/creation flow
* accounts modal, update to usebalances hook
* handle settle, deposit before settle, save last account
* disable borrow/withdraw button when no account