(mark_price / entry_price) * (notional_position / account_value). Those traders’ positions are closed at the previous mark price against the now underwater user, ensuring that the platform has no bad debt.
Auto-deleveraging is an important final safeguard on the solvency of the platform. There is a strict invariant that under all operations, a user who has no open positions will not socialize any losses of the platform.
Learn more at https://hyperliquid.gitbook.io/hyperliquid-docs/trading/auto-deleveraging
