Enhancing Borrowing Protocols with Liquidity Oracles

·

How Lending Protocols Operate

Decentralized Finance (DeFi) lending protocols enable users to borrow and lend digital assets without intermediaries. Users deposit collateral tokens to borrow other assets, with oracles continuously assessing collateral values and loan-to-value (LTV) ratios.

Key metrics:

Example Scenario:

Alice deposits 10 ETH ($1,000/ETH) and borrows 7,500 USDT (75% LTV). If ETH drops to $937.5 (80% LTV threshold):

  1. A liquidator repays 3,750 USDT (50% debt).
  2. Receives 4.2 ETH (105% value + 5% bonus).
  3. Alice’s new LTV: 69%, liquidation price drops to $808.

Why Liquidations Fail

1. Market Impact

Large sell orders depress prices. If selling 4.2 ETH lowers average price below $890 (47.5 USD impact), liquidation becomes unprofitable.

2. Network Congestion


Strengthening Protocol Resilience

Solution 1: Optimize Maximum Loan Size

Adjust collateral valuation to account for market impact:
V = q × (p - I(q))
Where I(q) = estimated price impact for quantity q.

Solution 2: Dynamic Liquidation Rewards

Formula: Reward = max(a, a/2 + I(q)/p)

Solution 3: Risk-Based Interest Rates

Charge borrowers extra when:

  1. Market impact approaches liquidation bonus.
  2. Price nears liquidation threshold.

Formula:
i = C × (I(q)/p × a) × (p - pl)/σ

Outcome: Incentivizes proactive position management.


Estimating Market Impact

Empirical data shows market impact is linear:
I(q) = q / 2l

Example: Binance BTC/USDT liquidity intensity ≈ 2 BTC/USDT → Slope = 0.25 USDT/BTC.


Liquidity Oracle Proposals

Option A: Decentralized Aggregation

Option B: Publisher-Aggregated Data

Recommended Features:


FAQs

1. What triggers liquidation?

When LTV exceeds the protocol’s predefined threshold (e.g., 80% for ETH).

2. How do dynamic rewards improve stability?

They adjust compensation for market impact, ensuring liquidations remain profitable.

3. Why exclude on-chain liquidity?

Susceptible to manipulation (e.g., flash loans). Off-chain data is more reliable.

4. Can risk-based interest prevent bad debt?

Yes, by charging higher rates for riskier positions pre-liquidation.


👉 Explore advanced DeFi strategies

👉 Master crypto risk management