Calculation guide
One collateral asset, fixed debt and threshold. A health factor of one marks the boundary. Use actual protocol parameters. Excludes interest accrual, fees and oracle lag.
Inputs
Collateral units
Example entry 10.
Debt in quote currency
Example entry 12000 (in the selected currency).
Liquidation threshold (debt / collateral)
Example entry 80 %. Allowed range 0 to 100.
Current collateral price
Example entry 2000 (in the selected currency).
Worked example
| Input | Value |
|---|---|
| Collateral units | 10 |
| Debt in quote currency | 12,000 |
| Liquidation threshold (debt / collateral) | 80% |
| Current collateral price | 2,000 |
| Result | Value |
|---|---|
| Liquidation boundary price | 1,500 |
| Current health factor | 1.333333 |
Calculation steps
Liquidation boundary price = (Debt in quote currency ÷ ((Collateral units × Liquidation threshold (debt / collateral)) ÷ 100))
(12,000 ÷ ((10 × 80) ÷ 100)) = 1,500
Current health factor = ((((Collateral units × Current collateral price) × Liquidation threshold (debt / collateral)) ÷ 100) ÷ Debt in quote currency)
((((10 × 2,000) × 80) ÷ 100) ÷ 12,000) = 1.333333
How each input affects this example
Each row starts from the worked example and changes one input.
| Input | Original input | New input | Affected result | Original result | New result |
|---|---|---|---|---|---|
| Collateral units | 10 | 11 | Liquidation boundary price | 1,500 | 1,363.636364 |
| Debt in quote currency | 12,000 | 13,200 | Liquidation boundary price | 1,500 | 1,650 |
| Liquidation threshold (debt / collateral) | 80% | 88% | Liquidation boundary price | 1,500 | 1,363.636364 |
| Current collateral price | 2,000 | 2,200 | Current health factor | 1.333333 | 1.466667 |
