Skip to the article
Web3 Report

Crypto news and its trade-offs

Will a DeFi Loan Send a Margin Call Before Liquidation?

Will a DeFi lending protocol send a margin call before liquidation? No: SparkLend uses health factor as the trigger, and anyone can liquidate once it falls below 1.

By Web3 Report Editorial4 min read

Will a DeFi Loan Send a Margin Call Before Liquidation?

SparkLend lets you borrow against supplied collateral, but it will not send a broker-style margin call before liquidation: once your health factor falls below 1, anyone can trigger liquidationCall. The protocol acts on its rules and current oracle prices; it does not give you time to add funds first.

That changes the sequence a leveraged trader may expect. A broker can issue a warning and give you time to meet a maintenance requirement. In SparkLend, the first event may be the liquidation itself. The SparkLend money market lets borrowers use supplied assets as collateral, and the health factor determines when that collateral is at risk.

Here is the practical case: your health factor is 1.02 overnight, and ETH falls 5% while you sleep. Assuming ETH is the collateral driving the position, the price move can push the health factor below 1. Liquidators can act before you wake, leaving you with less collateral and a liquidation bonus paid to the liquidator.

What happens when the oracle price changes?

When a Chainlink oracle price update changes the value of collateral or debt, the protocol recomputes the health factor. Below 1, liquidationCall becomes available to anyone. Liquidation is a permissionless contract call, not a desk decision: bots and other liquidators can compete to repay eligible debt within blocks.

The close factor sets how much debt can be repaid in one call. Above a health factor of 0.95, the stated Aave V3 rules allow up to 50% of the debt to be repaid in one liquidation. Below 0.95, the limit rises to 100%. The precise result for a position depends on its health factor and the applicable protocol rules.

That lower threshold matters in a fast market. In the overnight case, a 5% ETH drop could move a position from 1.02 below 1 but leave it above 0.95. The close factor would then cap a single liquidation at 50% of the debt under those rules. A further price fall could take the health factor below 0.95, allowing one call to repay the full debt. The borrower may lose collateral to cover the repayment, plus the liquidation bonus.

The trade-off is direct: a higher health factor gives more room for prices to move, but it ties up more collateral or requires less borrowing. Waiting near 1 leaves little time to respond. Your replacement for the broker’s warning is a buffer you choose yourself, plus alerts that tell you when that buffer is shrinking.

Set alerts around health factor and decide in advance what level will prompt action. Keep repayment funds or additional collateral ready so you can reduce debt or top up before the position becomes eligible for liquidation. No alert guarantees time to act once prices move quickly, so the buffer matters as much as the notification.

Related questions

What happens to the rest of my collateral after a liquidation?

Collateral needed to cover the repaid debt and liquidation bonus is seized in the call. Any collateral not needed for that repayment remains in the position, subject to its current value and whether another liquidation becomes possible.

How often do DeFi oracle prices update?

There is no single update interval for every DeFi market. Updates depend on the oracle configuration and conditions for the asset feed, so the health factor can change when a new price is reported. A borrower should not assume a fixed warning window between price changes.

What should I watch next?

Which tools send health factor alerts for DeFi loans?

DeFi Saver is one tool name borrowers may encounter when looking for health factor monitoring. Compare available tools for the position and protocol you use, and keep a way to check the health factor directly. The key is knowing what level will trigger your own response.

Can I get liquidated if the oracle price is wrong?

A liquidation call uses the prices available to the protocol. If a reported price is wrong and pushes the calculated health factor below 1, the contract can make the position eligible under that price. The trigger mechanics still apply; the price input is what changed.

What health factor is safe to hold overnight?

No single health factor guarantees safety overnight because the result depends on collateral prices, debt and how quickly markets move. A position at 1.02 has little room for an adverse move: in the ETH example, a 5% fall can make it eligible for partial liquidation. Choose a buffer that gives you room to respond, then keep funds ready to repay or add collateral.

Related coverage