Pomegra Wiki

Lending Pool Risk

A Lending Pool Risk encompasses the credit, market, and operational hazards faced by participants in decentralized finance (DeFi) lending protocols. Users deposit crypto as collateral to borrow other assets; risks include counterparty default (smart-contract failure), liquidation cascades when collateral value falls, and oracle failures that misprice assets.

Overcollateralization and loan-to-value mechanics

Unlike traditional lending where a bank can lend 80–90% of collateral value, DeFi protocols require overcollateralization. A user deposits $100 in ETH and can borrow only $60 (60% LTV) or $75 (75% LTV depending on protocol settings). The excess collateral ($25–40) is a buffer against price declines. If ETH price falls 20%, the collateral is now $80, and the loan ($60) exceeds the LTV limit. The collateral is liquidated: the protocol sells the ETH at a discount to repay the loan, and the user loses the collateral (minus the loan repayment).

This overcollateralization requirement is far stricter than traditional banking, which allocates the cost of price risk to the lender. It reflects DeFi’s high risk: smart contracts can fail, and recovery is impossible once funds are lost. Overcollateralization protects lenders (protocol) and borrowers (loss is capped at the overcollateral buffer) but limits leverage available to borrowers.

Liquidation cascades and fire sales

Liquidation risk escalates when an asset’s price falls sharply. Suppose a protocol has 1,000 users, each with $100 ETH collateral and $60 stablecoin loans. If ETH price falls 30% to $70, all 1,000 collaterals trigger liquidation. The protocol must sell 1,000 × $100 = $100 million of ETH into the market simultaneously. This fire sale depresses ETH price further, triggering even more liquidations. A liquidation cascade can amplify price declines and drain protocol reserves.

Liquidators (profit-seeking bots) have incentive to trigger and capture liquidations. A liquidator buys liquidated collateral at a 5–10% discount and sells it at market, pocketing the spread. However, liquidators themselves are vulnerable: if they borrow to fund liquidation purchases, and prices move against them, they too become insolvent.

Oracle risk and price manipulation

DeFi protocols require accurate asset prices to set collateral values and liquidation triggers. Prices come from oracles (data feeds from exchanges). A protocol might use Chainlink (centralized oracle aggregator) or Uniswap TWAP (time-weighted average price on-chain). Both can be manipulated. A hacker with large capital can buy a huge amount of an asset on a small exchange, spiking its price. If an oracle pulls price from that exchange, it falsely reports the high price, collateral values surge, and the hacker borrows against inflated collateral. When the price returns to normal, the hacker’s collateral is underwater, but collateral liquidation is delayed if the oracle is slow to update.

Flash loan exploits amplify oracle risk. A flash loan is an unsecured, instantly-repaid loan (within a single blockchain transaction) that allows an attacker to borrow huge amounts, manipulate prices, and extract value before repaying the loan within the same transaction. In 2020, a hacker used a flash loan to manipulate the price of sUSD on Curve Finance, borrow against inflated collateral, and extract $30 million. The oracle could not distinguish the price spike from a genuine market move because everything occurred in one indivisible transaction.

Smart-contract bugs and protocol insolvency

DeFi protocols are software, and software has bugs. A bug in the collateral valuation function, liquidation logic, or interest-accrual formula can allow unintended withdrawals or mispricing. In May 2022, the Luna/Terra ecosystem collapsed when the Terra protocol’s algorithmic stablecoin mechanism failed, revealing negative equity. Users rushed to withdraw, and the protocol became insolvent—liabilities exceeded assets. Lending pools on Terra went underwater, and users lost their deposits. Unlike traditional banks (which have deposit insurance), DeFi depositors have no protection.

Protocol governance (decisions about parameter changes, risk limits) is another risk. If governance is compromised or moves fast without adequate risk review, parameters might be set to unsustainable levels. Compound’s introduction of its COMP governance token led to aggressive governance votes to increase lending limits, creating tail risks.

Counterparty concentration and systemic risk

DeFi protocols often hold significant positions in other protocols, creating interconnectedness. Aave deposits in Curve, which provides liquidity to Uniswap, which holds collateral pledged by Lido (liquid staking). If one protocol is exploited, its insolvency cascades to others. This was evident in 2023 when FTX’s collapse revealed that many DeFi protocols held significant FTX tokens as collateral or held deposits on FTX exchange.

Regulatory and custody risks

DeFi protocols are not regulated as banks, so they do not face capital requirements, stress tests, or supervision. A hacker who breaches a protocol faces no regulatory action; the breach is a smart-contract vulnerability, not a legal violation. Users have no recourse.

Additionally, DeFi participants face custody risk: private keys are either self-custodied (users at risk of losing keys) or delegated to a custodian (Kraken, Coinbase, which may be hacked or seized). Unlike traditional finance, where custodians are regulated and insured, DeFi custody is unregulated and uninsured.

Insurance and risk mitigation

Some projects offer limited insurance: Nexus Mutual is a smart-contract insurance protocol allowing users to buy coverage against hacks. However, insurance pools are small relative to protocol TVL (total value locked), and claims payouts are slow and subject to governance disputes. Most DeFi users are uninsured.

Risk-conscious users mitigate by diversifying across protocols, using lower leverage, and monitoring oracle data quality. Sophisticated users employ hedging via options or derivatives to cap losses. However, hedging is often expensive and introduces counterparty risk in other protocols.

Token volatility and borrower risk

A borrower who deposits volatile crypto (e.g., a shitcoin with high beta) as collateral faces large liquidation risk if the token crashes. Even an experienced trader can underestimate volatility; a token might drop 50% in a day, triggering cascade liquidations. Some protocols have attempted to limit risk by capping the LTV on volatile assets, but this reduces leverage available for borrowers.

Solvency monitoring and early warning systems

Sophisticated lenders monitor protocol solvency in real time. TVL (total value locked) and liability tracking show whether a protocol is solvent. If liabilities exceed assets, the protocol is insolvent and users should withdraw immediately. However, information asymmetry is high: a protocol under attack may not disclose the hack immediately, allowing insiders to withdraw first. Some protocols publish transparency reports or are audited by third parties to mitigate this risk.

Wider context