Liquidation Engine
Health factor, liquidation price, and bounded-slippage execution.
Liquidation Engine — Health Factor Breach & TWAP-Bounded ExecutionLiq LTV = 80% · 0% Penalty
Long Health (LongManager.getLongHealth)
healthFactorWad = Math.mulDiv(positionValueUsdc * 8000, WAD, totalDebtUsdc * 10000)liquidatable = healthFactorWad < WAD(i.e.,LTV > 80%).liquidationPrice18 = Math.mulDiv(totalDebtUsdc * 10000, 1e20, pos.shares * 8000, Ceil)(forNVDAc8 decimals).