Liquidations are races
DeFi liquidations are keeper races: bots pay gas or tips to win the right to repay your debt and seize collateral—MEV wars over your position.
Required collateral value \(V_c = \frac{\text{Loan}}{\text{Target LTV}}\). Overcollateralization = \(V_c - \text{Loan}\). Buffer to liquidation = \(1 - \frac{\text{Target LTV}}{\text{Liquidation LTV}}\). If price is supplied: units \(= \frac{V_c}{P_0}\) and liquidation price \(P_{liq} = P_0 \cdot \frac{\text{Target LTV}}{\text{Liquidation LTV}}\).
In a crypto-backed loan, the lender or smart contract looks at a simple ratio: loan amount divided by collateral market value (LTV). Your deposit must stay above the platform’s minimum collateral requirement and below the liquidation LTV. If LTV rises because price falls, the position becomes risky. This calculator shows the upfront collateral value needed for your target LTV, plus the buffer until liquidation based on the liquidation threshold you enter. It assumes no price slippage, no interest accrual, and no fees—those should be layered on separately if your venue charges them.
Many protocols also surface a “health factor” that compresses the same idea: health factor = collateral value × (max LTV) ÷ debt. A health factor below 1 usually triggers liquidation. Because each chain and protocol defines limits per asset, always pull the exact liquidation threshold and borrow caps from your venue’s documentation or UI before relying on any estimate. Stablecoin collateral typically allows higher max LTVs than volatile collateral, but a depeg can erase that cushion quickly.
Collateral management in crypto has nuances beyond a static LTV:
This tool keeps calculations client-side and intentionally simple: it treats LTV as loan ÷ current collateral value, and liquidation as the point where that ratio reaches your provided liquidation threshold. For full fidelity, layer in protocol- specific variables such as per-asset borrow caps, isolation mode rules, liquidation penalty, and interest accrual over time. Always verify numbers against your platform’s own risk dashboard before opening or resizing a position.
DeFi liquidations are keeper races: bots pay gas or tips to win the right to repay your debt and seize collateral—MEV wars over your position.
Some users use a flash loan to repay, withdraw collateral, and close the position in one transaction—no upfront capital, just fees and timing.
Liquidations trigger on oracle feeds, not the price on your favorite exchange. If the oracle lags or spikes, you can be safe on spot and still get hit.
Some lenders accept NFTs or LP tokens. A single floor-price wobble on that collection can ripple through your loan like any other volatile asset.
Centralized desks can halt liquidations during outages; on-chain protocols rarely pause. Your buffer needs to survive weekends and chain congestion.