{
  "schema_version": "1.0.0",
  "record_id": "dn-next42-20261205-q40",
  "record_version": "1.0.0",
  "title": "A partial DeFi liquidation can leave the position below its safety threshold",
  "canonical_url": "https://decentralised.news/partial-liquidation-health-factor-collateral-bonus",
  "evidence_type": "documentary_analysis_with_synthetic_worked_example",
  "source_review_date": "2026-12-05",
  "last_verified_utc": null,
  "observation_window": null,
  "methodology_url": "https://decentralised.news/partial-liquidation-health-factor-collateral-bonus",
  "methodology_version": "1.0.0",
  "input_schema": {
    "columns": [
      "scenario",
      "initial_collateral_value_units",
      "initial_debt_value_units",
      "liquidation_threshold_decimal",
      "bonus_decimal",
      "debt_repaid_value_units",
      "collateral_removed_value_units",
      "remaining_collateral_value_units",
      "remaining_debt_value_units",
      "initial_health_factor",
      "resulting_health_factor"
    ],
    "rows_file": "https://decentralised.news/data/dn-next42-20261205/v1/q40.csv"
  },
  "units": {
    "definition": "Units are named in the CSV columns, manuscript and calculation labels. Do not combine quantities without resolving their dimensions."
  },
  "sources": [
    {
      "id": 1,
      "title": "Aave health factor and liquidations",
      "url": "https://aave.com/help/borrowing/liquidations",
      "reviewDate": "2026-12-05",
      "supports": "Health-factor formula, liquidation eligibility, current documented repayment and residual-size conditions; no universal safe health factor.",
      "evidenceType": "Official documentation"
    },
    {
      "id": 2,
      "title": "Aave V3 Origin LiquidationLogic",
      "url": "https://github.com/aave-dao/aave-v3-origin/blob/main/src/contracts/protocol/libraries/logic/LiquidationLogic.sol",
      "reviewDate": "2026-12-05",
      "supports": "Debt-to-cover selection, collateral seizure with bonus, fee allocation, asset units and residual constraints.",
      "evidenceType": "Primary implementation"
    },
    {
      "id": 3,
      "title": "Aave V3 Pool: getUserAccountData",
      "url": "https://aave.com/docs/aave-v3/smart-contracts/pool",
      "reviewDate": "2026-12-05",
      "supports": "Account query returns collateral, debt, current threshold and health factor across reserves.",
      "evidenceType": "Official documentation"
    }
  ],
  "calculations": [
    {
      "label": "Gross collateral removed",
      "expression": "100000*(1+0.05)",
      "expected": 105000
    },
    {
      "label": "Improved but still sub-one health factor",
      "expression": "(216000-105000)*0.85/(200000-100000)",
      "expected": 0.9435
    },
    {
      "label": "Worsened health factor",
      "expression": "(204000-105000)*0.85/(200000-100000)",
      "expected": 0.8415
    },
    {
      "label": "Outside repayment to modeled boundary",
      "expression": "100000-111000*0.85",
      "expected": 5650
    },
    {
      "label": "Voluntary repayment control",
      "expression": "216000*0.85/(200000-100000)",
      "expected": 1.836
    }
  ],
  "example": {
    "synthetic": true,
    "description": "Original DN synthetic worked example. All scenario inputs are hypothetical; no live transaction, return, quote or account is represented. Recompute a borrower’s collateral and debt after partial liquidation; a lower loan balance can still leave a sub-threshold position.",
    "rows": [
      [
        "improves_still_below_one",
        216000,
        200000,
        0.85,
        0.05,
        100000,
        105000,
        111000,
        100000,
        0.918,
        0.9435
      ],
      [
        "unchanged",
        210000,
        200000,
        0.85,
        0.05,
        100000,
        105000,
        105000,
        100000,
        0.8925,
        0.8925
      ],
      [
        "worsens",
        204000,
        200000,
        0.85,
        0.05,
        100000,
        105000,
        99000,
        100000,
        0.867,
        0.8415
      ]
    ]
  },
  "limitations": [
    "Examples use declared invented inputs, not observed fills, customer outcomes, provider rankings or predictive backtests.",
    "Source-review date is not a measurement time, publication date of the source or assurance that terms will remain current.",
    "Documentation does not establish individual access, legal eligibility, service reliability or investment suitability."
  ],
  "falsification_or_recheck_triggers": [
    "Changed governing document or applicable software version.",
    "Evidence of different account, product, timing, unit or legal-entity scope.",
    "An arithmetic error or reproducible counterexample to the stated mechanism."
  ],
  "rights": {
    "original_DN_analysis": "Cite Decentralised News, the canonical URL and record version when reusing this worked example.",
    "third_party_sources": "Third-party material remains subject to its original terms. Linking does not grant redistribution rights."
  },
  "commercial_disclosure": "This article includes a link to DN’s own separately scoped research service. No provider purchase is required to use the example.",
  "corrections": []
}
