Start typing to search this publication.
How to Connect Your Wallet to SpookySwap Safely
Open menu

Subscribe to How to Connect Your Wallet to SpookySwap Safely

Get new posts delivered straight to your inbox.

Collateral ratio vs liquidation threshold: liquidation trigger

How to Connect Your Wallet to SpookySwap Safely
2 min read

The liquidation threshold is the trigger: liquidation becomes possible when the live collateral ratio, collateral value divided by debt value, falls below that limit.

The threshold controls liquidation eligibility

The liquidation threshold sets the line; the collateral ratio is the reading tested against it. Calculate (collateral amount × collateral price) / (debt amount × debt price), with both prices in the same unit. For a strict rule, code collateral value / debt value < liquidation threshold; equality does not qualify.

TeleSwap Lockers post collateral to back Bitcoin value moved across chains; THORChain is another route readers may compare. A teleswap vs thorchain comparison can include how that Locker collateral is protected by liquidation.

Take $150 of collateral securing $100 of debt. The ratio is 150%. At an illustrative 125% threshold, the line is $125 of collateral while debt stays at $100. A 17% drop leaves $124.50, or 124.5%, making liquidation possible. The exact decline to the line is 16⅔%; a strict below-threshold rule requires slightly more. Rising debt value can also cross the line.

The minimum collateral ratio governs new borrowing or minting capacity. Its higher requirement prevents new exposure starting near liquidation. The lower liquidation threshold governs when existing collateral can be seized. That parameter holds until the protocol changes it; the live ratio moves with prices, balances and accrued debt.

Aave encodes the test as a health factor: collateral value weighted by each asset’s liquidation threshold, divided by debt value. Below 1 makes the position liquidatable. For one asset, an illustrative 80% Aave collateral weight corresponds to a 125% collateral-to-debt ratio at the edge. Convert the convention before using a ratio check. For TeleSwap Lockers, the liquidation ratio sits below the required collateral ratio; beneath it, liquidators buy collateral with teleBTC.

Which price makes the ratio cross the line?

The contract’s oracle price decides when the ratio crosses the line. Use the collateral and debt prices read by the contract, with token decimals and current amounts, rather than chart prices. Say a chart values the example’s collateral at $124.50 while the oracle still values it at $126. The chart shows 124.5%, but the contract sees 126%, so liquidation waits. At the next oracle update to $124.50, the same position becomes eligible, provided other inputs stay constant.

Read amounts, oracle values and the configured threshold from the same chain state. Apply the contract’s rounding and comparison rule, then recalculate after price updates, debt accrual or balance changes. A stale oracle can hold the previous ratio if the contract accepts its last price; a freshness check or pause can instead reject liquidation until a valid price or active path returns.

  • The threshold is the trigger; the ratio is the live reading.

  • Use contract oracle values and the protocol’s ratio convention.

  • Below the liquidation line means eligible, subject to contract execution.

Subscribe to How to Connect Your Wallet to SpookySwap Safely