ChainScore Labs
All Guides

Using NFTs as Collateral in DeFi Protocols

LABS

Using NFTs as Collateral in DeFi Protocols

Chainscore © 2025

Core Concepts of NFT Collateralization

Understanding the fundamental principles that enable NFTs to be used as loan collateral in decentralized finance.

Loan-to-Value Ratio (LTV)

The Loan-to-Value Ratio determines the maximum loan amount against an NFT's appraised value. A 40% LTV on a 10 ETH NFT allows a 4 ETH loan.

  • Set by the protocol based on asset volatility
  • Lower LTVs for more speculative collections to mitigate risk
  • Critical for protocol solvency and user debt management

Liquidation Mechanisms

Automated processes that sell collateral to repay a loan if its value falls below a threshold. This protects lenders from default.

  • Triggered by price oracle updates or health factor breaches
  • Often involves auctions (English, Dutch) or fixed-price sales
  • Essential for maintaining protocol liquidity and enforcing loan terms

Price Oracles & Valuation

Systems that provide real-time, trust-minimized price feeds for NFTs, which is the most complex challenge in NFTfi.

  • Use floor price models, rarity-adjusted pricing, or time-weighted averages
  • Protocols like Chainlink and Pyth are developing solutions
  • Accurate valuation is foundational for setting LTV and triggering liquidations

Health Factor / Collateral Factor

A numerical representation of a loan's safety. It compares the collateral value to the borrowed amount, factoring in the LTV.

  • Falls as collateral value decreases or debt increases
  • A health factor below 1.0 makes the position eligible for liquidation
  • Users must monitor and manage this to avoid losing their NFT

Isolation of Rights

The legal and technical separation of ownership rights when an NFT is collateralized. The borrower retains certain privileges while the lender gains a security interest.

  • Borrower typically keeps display and community rights
  • Lender holds the right to liquidate the NFT upon default
  • Smart contracts encode these permissions, replacing traditional legal agreements

Debt Positions & Recollateralization

The structure of the loan itself, often as a Collateralized Debt Position (CDP), which is a smart contract vault holding the NFT and managing the debt.

  • Users can often add more collateral or repay debt to improve their health factor
  • Allows for undercollateralized positions to be made safe again
  • Provides flexibility and control over the loan term

NFT Valuation Models for Collateral

Process overview

1

Understand the Core Valuation Approaches

Learn the primary methods for determining NFT loan-to-value ratios.

Detailed Instructions

Three primary models are used to determine the loan-to-value (LTV) ratio for an NFT used as collateral. The choice of model directly impacts risk for both the borrower and the lending protocol.

  • Appraisal Model: A trusted third-party oracle or committee provides a valuation, often based on recent sales of similar assets. This is common for high-value, illiquid NFTs like CryptoPunks.
  • Liquidation Price Model: The collateral is valued at a fixed discount to its floor price on a major marketplace. This is standard for PFP collections, where the floor is tracked by oracles like Chainlink.
  • Peer-to-Peer (P2P) Model: The lender and borrower negotiate the valuation directly for a specific loan. This is used for highly unique assets without clear market comparables.

Tip: The LTV ratio is typically much lower for NFTs (20-50%) than for fungible assets due to higher price volatility and illiquidity.

2

Analyze Floor Price Oracle Data

Inspect how protocols source and verify real-time floor prices.

Detailed Instructions

For collections using a liquidation price model, the protocol relies on an oracle to provide a trusted floor price. You must verify the oracle's data source, update frequency, and aggregation method.

  • Sub-step 1: Identify the oracle service. For example, check if the protocol uses Chainlink's NFT Floor Price Feeds, which aggregate data from OpenSea, LooksRare, and other marketplaces.
  • Sub-step 2: Check the update threshold and heartbeat. A feed might update when the floor moves by >5% or every 24 hours, whichever comes first. A stale price increases liquidation risk.
  • Sub-step 3: Verify the collection is supported. Query the oracle contract directly. For a Chainlink feed on Ethereum for Bored Ape Yacht Club, you might call latestAnswer() on the proxy address 0x352f2Bc3039429fC2fe62004a1575aE74001CfcE.
javascript
// Example using ethers.js to read a Chainlink NFT floor price feed const feedAddress = '0x352f2Bc3039429fC2fe62004a1575aE74001CfcE'; const feedABI = ['function latestAnswer() view returns (int256)']; const feedContract = new ethers.Contract(feedAddress, feedABI, provider); const floorPrice = await feedContract.latestAnswer(); console.log(`Current floor: ${ethers.utils.formatUnits(floorPrice, 18)} ETH`);

Tip: Be aware of oracle manipulation risks; some protocols use a time-weighted average price (TWAP) to smooth out short-term volatility.

3

Calculate the Maximum Borrowing Power

Apply the protocol's LTV ratio and risk parameters to determine your loan amount.

Detailed Instructions

The maximum loan amount is not the full valuation. It is calculated by applying the protocol's conservative LTV ratio and checking against any debt ceilings for the specific NFT collection.

  • Sub-step 1: Obtain the collateral value. If using a floor price model, this is the oracle-reported floor price for your NFT's collection.
  • Sub-step 2: Apply the LTV ratio. For example, if the protocol has a 40% LTV for BAYC and the floor is 50 ETH, your maximum loan is 20 ETH (50 * 0.40).
  • Sub-step 3: Check the global debt ceiling. The protocol may limit total borrowing against a single collection to, for instance, 10,000 DAI to mitigate systemic risk. Your loan cannot exceed the remaining capacity.

Protocols like JPEG'd publish these parameters on-chain. You can query the pool contract for the collectionDebtCeiling and collectionLTV for a given collection address.

Tip: Always factor in potential liquidation penalties (e.g., 10-15%) and stability fees (interest). Your NFT must be worth significantly more than the loan to avoid being liquidated on a small price dip.

4

Assess Liquidation Mechanisms and Risks

Evaluate how your NFT can be liquidated and the associated penalties.

Detailed Instructions

Understanding the liquidation engine is critical. If your collateral value falls below the required threshold, anyone can trigger a liquidation to repay the debt, often acquiring your NFT at a discount.

  • Sub-step 1: Identify the liquidation threshold. This is typically a higher value than the LTV ratio. If LTV is 40%, the liquidation threshold might be 55%. If value/loan falls below 181% (100/55), liquidation can occur.
  • Sub-step 2: Review the liquidation process. Is it a fixed-price Dutch auction (e.g., starts at 110% of debt, decreases over time) or an English auction? Check the auction duration (often 24-72 hours).
  • Sub-step 3: Calculate the liquidation penalty. This fee is added to the debt and paid to the liquidator. A 10% penalty on a 10 ETH debt means the liquidator must repay 11 ETH to claim the NFT.
solidity
// Simplified logic for checking a liquidation trigger function isLiquidatable(uint256 collateralValue, uint256 debtAmount, uint256 liquidationThreshold) public pure returns (bool) { // liquidationThreshold is a ratio, e.g., 5500 for 55% uint256 requiredCollateralValue = (debtAmount * 10000) / liquidationThreshold; return collateralValue < requiredCollateralValue; }

Tip: Monitor your position's health ratio (Collateral Value / Debt) using the protocol's UI or subgraph. A ratio approaching the liquidation threshold signals high risk.

5

Monitor and Manage Your Position

Implement strategies to protect your collateral from volatility and liquidation.

Detailed Instructions

Active management is required due to NFT price volatility. Use on-chain tools and alerts to track key metrics and take preventive action.

  • Sub-step 1: Set up price alerts. Use services like Twitter bots or Discord webhooks that monitor the floor price oracle for your NFT collection. Get notified if the price drops by a set percentage.
  • Sub-step 2: Plan for debt repayment or collateral topping. If the floor price drops, you can either repay part of the loan (reducing debt) or deposit additional acceptable collateral (increasing collateral value) to improve your health ratio.
  • Sub-step 3: Understand the grace period. Some protocols have a time buffer after a liquidation is triggered before the auction starts, allowing you to save the position.

Consider using a DeFi dashboard that aggregates positions across protocols. For example, you can track your NFT loan health on DeBank or Zapper by connecting your wallet.

Tip: In a rapidly falling market, liquidity can dry up. Your NFT may liquidate for far less than its recent value if no one bids in the auction, resulting in bad debt for the protocol and a total loss for you.

Protocol Mechanics and Architecture

Determining NFT Value for Loans

Valuation models are critical for determining the loan-to-value (LTV) ratio an NFT can support. Protocols primarily use oracle-based price feeds or peer-to-pool assessments.

Key Models

  • Oracle Pricing: Protocols like BendDAO and JPEG'd integrate with NFT floor price oracles (e.g., Chainlink, Pyth) to get real-time collection valuations. This provides liquidity but can be volatile.
  • Peer-to-Pool Assessment: In systems like NFTfi, lenders individually appraise the specific NFT (considering traits, rarity) and make a loan offer, creating a more nuanced but less liquid market.
  • Time-Weighted Average Price (TWAP): Used to smooth out oracle price volatility, reducing the risk of sudden liquidation from a single price spike or dip.

Example

When a user deposits a Bored Ape into BendDAO, the protocol's oracle fetches the collection's floor price. The maximum borrowable amount is calculated as a percentage (e.g., 40% LTV) of this value, with the NFT locked in a vault smart contract.

Comparison of NFT Lending Protocols

A technical comparison of leading peer-to-pool and peer-to-peer NFT lending platforms.

Protocol FeatureBendDAONFTfiArcade

Liquidation Model

Peer-to-Pool (Dutch Auction)

Peer-to-Peer (Manual)

Peer-to-Peer (Auction)

Interest Rate Model

Dynamic (Utilization-based)

Fixed (Negotiated)

Fixed (Lender-set)

Max LTV Ratio

40-60% (Collection-based)

20-50% (Negotiated)

30-70% (Appraisal-based)

Loan Duration

30-180 days (Fixed)

30-90 days (Negotiated)

30-180 days (Fixed)

Protocol Fee

10% of interest

0.5% of principal (Borrower)

None (Gas only)

Collateral Custody

Held in escrow contract

Held in escrow contract

Wrapped via Vault (ERC-721L)

Primary Asset Focus

Blue-chip PFP Collections

All ERC-721/1155

High-value individual NFTs

The Liquidation Process for NFT Loans

A technical breakdown of the automated liquidation mechanisms triggered when an NFT loan becomes undercollateralized.

1

Monitor the Health Factor

Understand the key metric that determines liquidation risk.

Detailed Instructions

Every NFT lending protocol calculates a Health Factor (HF) for each loan, which is a numerical representation of its safety. This factor is derived from the loan's collateral value and its outstanding debt, including accrued interest. The formula is typically: HF = (Collateral Value * Liquidation Threshold) / Total Debt. A Liquidation Threshold is a protocol-specific parameter (e.g., 70%) representing the maximum loan-to-value ratio before liquidation.

  • Sub-step 1: Query the current Health Factor using the protocol's smart contract or subgraph. For example, call getUserAccountData(userAddress) on an Aave-like contract.
  • Sub-step 2: Track the floor price of the collateralized NFT collection via an oracle to determine the real-time collateral value.
  • Sub-step 3: Monitor for the trigger point where the HF falls below 1.0. At this point, the position is eligible for liquidation.
javascript
// Example pseudocode for checking health factor const collateralValue = nftFloorPrice * liquidationThreshold; const totalDebt = principal + accruedInterest; const healthFactor = collateralValue / totalDebt; if (healthFactor < 1.0) { console.log("Position is undercollateralized."); }

Tip: Health Factors are dynamic. A drop in the NFT's floor price or a rise in debt from interest can push it below the threshold.

2

Trigger the Liquidation

How the liquidation process is initiated by a liquidator or keeper.

Detailed Instructions

When a loan's Health Factor drops below 1.0, the position becomes liquidatable. This creates an economic incentive for third-party liquidators (often bots) to repay the borrower's outstanding debt in exchange for the collateral NFT at a discount. The process is permissionless and automated.

  • Sub-step 1: Liquidators scan the protocol for undercollateralized positions using event logs or dedicated keeper networks.
  • Sub-step 2: The liquidator calls the liquidate() function on the protocol's main contract, specifying the borrower's address and the NFT collateral ID.
  • Sub-step 3: The contract validates the position, ensuring the HF is below the threshold and the debt is repayable.
  • Sub-step 4: The liquidator's transaction repays the debt (principal + interest + a potential liquidation penalty) to the protocol's liquidity pool.
solidity
// Simplified interface for a liquidation function function liquidate( address borrower, uint256 nftId, uint256 debtToCover ) external nonReentrant { require(healthFactor(borrower, nftId) < 1.0, "HF not below threshold"); // ... logic to repay debt and transfer NFT }

Tip: The liquidation bonus or discount (e.g., 5-15%) is the liquidator's profit motive, but it represents a loss for the borrower beyond their initial collateral.

3

Execute the Collateral Seizure and Sale

The smart contract logic for transferring the NFT and settling the debt.

Detailed Instructions

Upon successful validation, the smart contract executes the core settlement. It transfers the collateral NFT from the protocol's escrow to the liquidator and clears the borrower's debt from the ledger. The borrower's obligation is extinguished, but they lose their NFT.

  • Sub-step 1: Debt settlement: The contract deducts the debtToCover amount (in the borrowed asset, e.g., ETH) from the liquidator's balance and burns the equivalent debt tokens from the borrower.
  • Sub-step 2: Collateral transfer: The contract calls safeTransferFrom() to move the NFT from the protocol's vault contract to the liquidator's address.
  • Sub-step 3: Event emission: The contract emits a LiquidationExecuted event, logging the borrower, liquidator, NFT ID, debt repaid, and collateral seized.
  • Sub-step 4: Update protocol state: The global debt and collateral tallies are updated, freeing up the borrowed asset's liquidity for new loans.
solidity
// Core logic inside a liquidation function _repayDebt(borrower, nftId, debtToCover); // Burns borrower's debt tokens uint256 liquidationBonus = (debtToCover * LIQUIDATION_BONUS) / 10000; uint256 totalCollateralCost = debtToCover + liquidationBonus; // Transfer NFT to liquidator IERC721(nftContract).safeTransferFrom(address(this), msg.sender, nftId);

Tip: The liquidator often immediately sells the seized NFT on a marketplace to realize profit, adding sell pressure.

4

Assess Post-Liquidation State and Risks

Outcomes for the borrower, liquidator, and protocol after liquidation.

Detailed Instructions

After liquidation, all parties are in a new financial state. The borrower's debt is cleared but they suffer a total loss of their NFT collateral. The liquidator assumes the risk of selling the NFT. The protocol's solvency is maintained.

  • Sub-step 1: Borrower's outcome: The loan is closed. The borrower receives no funds back and may face a liquidation penalty on top of the lost collateral. Their creditworthiness on the protocol may be affected.
  • Sub-step 2: Liquidator's outcome: The liquidator owns the NFT, acquired at a discount to market value. Their profit is the difference between the NFT's sale price and the debt they repaid, minus gas fees and marketplace commissions.
  • Sub-step 3: Protocol's outcome: The bad debt is removed from the system, protecting lenders. The liquidity pool is made whole with the repaid assets.
  • Sub-step 4: Residual debt risk: If the NFT's market value is less than the debt (e.g., in extreme crashes), some protocols may have an insurance fund or socialized loss mechanism to cover the shortfall.
javascript
// Calculating liquidator's potential profit const debtRepaid = 10; // ETH const liquidationBonus = 0.1; // ETH (1% bonus) const nftSalePrice = 11.5; // ETH const gasAndFees = 0.05; // ETH const profit = nftSalePrice - debtRepaid - gasAndFees; // 1.35 ETH

Tip: Borrowers should use tools to set health factor alerts and consider adding collateral or repaying debt proactively to avoid liquidation.

Key Risk Factors and Mitigations

Understanding the primary vulnerabilities and defensive strategies is critical when using NFTs as collateral in DeFi lending and borrowing protocols.

Liquidation Risk

Price volatility is the primary driver of liquidation risk for NFT collateral. Unlike fungible tokens, NFTs lack deep, continuous liquidity, making price discovery difficult and liquidations potentially disorderly.

  • Sudden market downturns can trigger margin calls based on unreliable oracle feeds.
  • Illiquid assets may be sold at a significant discount during forced auctions.
  • Users must maintain high collateralization ratios and monitor floor price trends closely to avoid losses.

Oracle Risk

Oracle manipulation or failure presents a systemic threat. DeFi protocols rely on external price feeds to value NFT collateral, which can be gamed or become stale.

  • Attackers may wash trade to artificially inflate an NFT's reported value before borrowing.
  • A lagging floor price feed can prevent timely liquidations, risking protocol insolvency.
  • Mitigations include using time-weighted average prices (TWAPs) and multiple data sources from different marketplaces.

Smart Contract Risk

Exploitable code in the lending protocol or the NFT contract itself can lead to total loss. This includes bugs, upgradeability risks, and integration flaws.

  • A reentrancy bug could allow an attacker to drain the lending pool.
  • An NFT project's admin key compromise could result in the collateral being frozen or burned.
  • Users should audit protocol code, prefer non-upgradeable contracts, and use established blue-chip NFT collections.

Collateral Liquidity Risk

Asset illiquidity affects both users and protocols. If a loan enters liquidation, the inability to quickly sell the NFT at a fair price can cascade into bad debt.

  • Niche or low-volume collections may have no buyers during a market crash.
  • Protocols may implement Dutch auctions or gradual price decay to attract bidders.
  • This risk necessitates higher loan-to-value (LTV) discounts and borrowing primarily against highly liquid NFT assets.

Protocol Parameter Risk

Governance decisions on key parameters directly impact user safety. These include loan-to-value ratios, liquidation penalties, interest rates, and accepted collateral types.

  • An overly aggressive LTV increase could make the protocol undercollateralized during volatility.
  • A low liquidation penalty may disincentivize keepers from executing liquidations promptly.
  • Users must understand the protocol's risk parameters and monitor governance proposals that could alter them.
SECTION-FAQ

Frequently Asked Questions

Ready to Start Building?

Let's bring your Web3 vision to life.

From concept to deployment, ChainScore helps you architect, build, and scale secure blockchain solutions.