DEV Community

Cover image for How far can BTC fall before an 86% LTV loan is liquidated? A 30-line Node check
Coincrest
Coincrest

Posted on

How far can BTC fall before an 86% LTV loan is liquidated? A 30-line Node check

The news

On 17 November 2026 Coinbase Borrow went live in New York, which The Block says completes its rollout across all 50 US states. Users borrow USDC against BTC, ETH or SOL. The loans run on Morpho, an onchain lending protocol on Base, and Coinbase is the interface. Morpho told The Block that more than $3.4 billion has been lent since January 2025, with over $1.7 billion still outstanding.

The rule that matters for a borrower was set out when the product launched (The Block, January 2025), and crypto.news gives the same liquidation figure this week:

  • You open with a collateral ratio of at least 133%, so you can borrow at most about 75% of the collateral's value.
  • If the loan plus interest reaches 86% of the collateral's value, the collateral is liquidated to repay the loan and a penalty fee.
  • The rate is variable and set by the protocol, and there are no due dates, so the debt keeps growing quietly.

Current numbers can differ per asset; check them before you rely on the constants below.

The check

Each position has a collateral amount, a price, the amount borrowed, a yearly rate and the days since the loan was opened. The script estimates the debt with daily compounding, then prints the LTV, the liquidation price, and how far the price can fall before that line.

// liquidation.mjs: how far can the collateral fall before an 86% liquidation line is hit?
// usage: node liquidation.mjs positions.json
import { readFileSync } from 'node:fs';

const LIQ_LTV = 0.86;      // loan / collateral value at which the position is liquidated
const MIN_RATIO = 1.33;    // minimum collateral ratio when you open (about 75% LTV)

const positions = JSON.parse(readFileSync(process.argv[2] ?? 'positions.json', 'utf8'));

for (const p of positions) {
  const value = p.collateral * p.price;
  // variable rate: approximate the debt after `days` with daily compounding at the given APR
  const debt = p.borrowed * (1 + p.apr / 365) ** p.days;
  const ltv = debt / value;
  const liqPrice = debt / (p.collateral * LIQ_LTV);
  const drop = 1 - liqPrice / p.price;
  const flags = [];
  if (p.borrowed / value > 1 / MIN_RATIO) flags.push('above the opening limit');
  if (ltv >= LIQ_LTV) flags.push('LIQUIDATED at this price');
  else if (drop < 0.15) flags.push('less than a 15% move from liquidation');
  console.log(
    `${p.name.padEnd(14)} LTV ${(ltv * 100).toFixed(1).padStart(5)}%  ` +
    `liquidation price ${liqPrice.toFixed(2).padStart(10)}  ` +
    `room ${(drop * 100).toFixed(1).padStart(5)}%  ${flags.join(', ')}`
  );
}
Enter fullscreen mode Exit fullscreen mode

Sample input. The $90,000 price and 6% rate are round numbers for the example, not market data:

[
  { "name": "cautious",   "collateral": 1, "price": 90000, "borrowed": 27000, "apr": 0.06, "days": 90 },
  { "name": "middle",     "collateral": 1, "price": 90000, "borrowed": 45000, "apr": 0.06, "days": 90 },
  { "name": "at the cap", "collateral": 1, "price": 90000, "borrowed": 67500, "apr": 0.06, "days": 90 },
  { "name": "too much",   "collateral": 1, "price": 90000, "borrowed": 70000, "apr": 0.06, "days": 0 }
]
Enter fullscreen mode Exit fullscreen mode

Output:

cautious       LTV  30.4%  liquidation price   31863.24  room  64.6%  
middle         LTV  50.7%  liquidation price   53105.40  room  41.0%  
at the cap     LTV  76.1%  liquidation price   79658.11  room  11.5%  less than a 15% move from liquidation
too much       LTV  77.8%  liquidation price   81395.35  room   9.6%  above the opening limit, less than a 15% move from liquidation
Enter fullscreen mode Exit fullscreen mode

What it shows

A loan opened at the 75% cap has about 11.5% of room after three months of interest. A 30% loan can take a fall of about 65%. Interest matters less than size here: 90 days at 6% moves the LTV by about one point at most in these examples.

Two easy extensions: read the price from an API and run it on a schedule, or reverse it and solve for the largest loan that keeps a chosen amount of room.

Sources: The Block, "Coinbase expands onchain crypto loans to New York via Morpho" (17 Nov 2026); crypto.news, "Coinbase brings Morpho-backed loans to all 50 US states" (17 Nov 2026); The Block, Coinbase bitcoin-backed loans launch report (16 Jan 2025). Not financial advice.

Top comments (0)