Debt the LTV gate admits: ltv_collateral (require_post_pool_risk_gates).
Contract convention floor(weighted_collateral * WAD / debt); null when debt-free (the contract returns i128::MAX).
UI convention: debt / threshold-weighted collateral × 100; higher is riskier, 0 without collateral.
Debt > 0 and health factor < 1 WAD.
Floor-valued collateral weighted by stored liquidation threshold (weighted_collateral).
liveState was supplied and every position was valued from an accepted live row.
Floor-valued collateral weighted by stored min(LTV, threshold) (ltv_collateral).
Floor applied while debt remains (get_min_borrow_collateral_usd).
AccountPositionDto.positionMode: 0 normal, 1 multiply, 2 long, 3 short.
Unweighted collateral, half-up (AccountRiskTotals.total_collateral).
Ceil-valued debt (total_debt).
max(0, borrowLimit - debt); 0 whenltv_collateralis below the min-collateral floor.