Skip to content
DeFi

How Curvance Manages Oracle Risk

Reliable prices are essential to DeFi lending. Learn how Curvance validates asset values, responds to unreliable data, and connects oracle safeguards to liquidations.

Tom N., Marketing at Curvance Tom N., Marketing at Curvance 7 min read
Reliable prices are essential to DeFi lending. Learn how Curvance validates asset values, responds to unreliable data, and connects oracle safeguards to liquidations.

Oracle Risk in DeFi: Part 3 of 3

Every lending market needs a reliable way to value collateral and debt. Those prices determine how much users can borrow and when a position becomes eligible for liquidation.

A blockchain oracle supplies price information to smart contracts. Receiving a price is only one component, as a lending protocol must also check whether that price is recent, appropriate for the asset, and that it's safe to use.

Curvance manages oracle risk through several layers, including asset specific pricing, freshness checks, optional price limits, restrictions on unsafe actions, and isolated lending markets.

The first two articles in this series explored oracle risk and past market incidents. This final article explains how Curvance approaches these challenges and what its safeguards mean for users.

Why different assets need different pricing methods

A stablecoin, a liquid staking token, and a vault share represent different economic claims, but their prices cannot always be evaluated in the same way.

A stablecoin can lose its peg, or a staking token can accumulate rewards while remaining exposed to slashing or withdrawal delays. A vault share can represent underlying assets whose reported value differs from what a trader could receive by selling immediately.

These differences matter when an asset supports a loan, and overvaluing collateral can allow excessive borrowing. Undervaluing it can make a position appear less healthy than it actually is.

Curvance therefore separates the process of obtaining an asset’s price from the lending calculations that use it.

How the Curvance Oracle Manager works

The Oracle Manager provides a shared pricing interface for the protocol. It connects each supported asset to an approved adaptor, which retrieves and validates its price.

An adaptor handles the pricing logic needed for a particular source or asset. The manager then returns a standardized price and a status indicating whether the requested operation can use it.

Curvance’s documented pricing paths include external feeds, helpers that account for wrapped asset exchange rates, and Pendle adaptors that combine a quote asset price with a rate averaged over time. Receipt tokens also require an extra calculation. For a registered Curvance cToken, pricing combines the underlying asset’s price with the relevant cToken exchange rate.

This matters because owning one receipt token does not necessarily mean owning exactly one unit of the underlying asset, and its value depends on what that token represents.

Heartbeat checks help prevent stale pricing

A price can be accurate when published and become unsuitable as markets move.

Curvance uses heartbeat checks to limit how old an observation can be before it is rejected. Its validation also checks for invalid values, including prices that are not positive.

Consider a sharp market decline: If a feed still reports an earlier, higher price, accepting it could allow users to borrow against collateral that has already lost value. Freshness checks help prevent that outdated observation from supporting new activity.

As explained in Curvance’s oracle overview, stale feeds are excluded from pricing until fresh data becomes available. The heartbeat setting still involves a balance. A tighter window reduces tolerance for outdated information but can interrupt activity during otherwise temporary delays. It should reflect the asset and the behavior of its feed.

PriceGuards put limits around eligible asset prices

Fresh data can still contain an extreme or economically questionable value.

Where configured, PriceGuards add a floor and ceiling to an asset’s reported price. A value below the floor produces an oracle error. A value above the ceiling is capped.

These controls serve different purposes. Rejecting a price below the floor signals that the asset may no longer fit the market’s assumptions. Capping a price above the ceiling limits how much an unusual upward observation can affect valuation.

Some guards use a fixed ceiling, and others allow the ceiling to increase gradually to accommodate expected value accrual. For example, a token that accumulates yield may reasonably become worth more over time. A gradually increasing ceiling can accommodate that growth while limiting sudden spikes. This is an illustration of the mechanism, not a statement about any market’s current settings.

PriceGuards apply only where configured. They should not be assumed to protect every asset, and their limits require review as market conditions change.

Live oracle configuration versus supported capabilities

Curvance’s codebase supports two adaptors for an asset. In that configuration, the system can compare prices and use conservative valuation: lower prices for collateral and higher prices for debt.

However, the current Dynamic Liquidation Engine documentation explicitly states that live deployments use one configured oracle source per asset, supported by heartbeat checks and PriceGuards where applicable.

Users should therefore evaluate the configuration of their specific market. Support for an additional oracle in the codebase does not establish that a second source is active.

What happens when an oracle becomes unreliable?

Curvance distinguishes between a successful price read, a caution result, and an unusable source.

Normal operation

A successful oracle read allows the requested action to proceed through the remaining market checks. It does not override borrowing limits, liquidity requirements, or other safeguards.

Caution

The documented caution status relates to partial failures or price deviations in the supported dual adaptor path. It should not be described as the normal fallback for live markets using one adaptor.

Different operations can enforce different error thresholds, so a warning does not automatically stop every action.

Bad source

An unusable source can result from stale, invalid, or otherwise unacceptable pricing. Curvance’s liquidation pricing path rejects this status, preventing liquidation from proceeding with an unreliable valuation.

That restriction protects against exchanging collateral for debt at an unsafe price. It also means an unhealthy position may remain unresolved while reliable pricing is unavailable.

A pricing interruption does not remove a borrower’s debt or eliminate the market’s exposure.

Oracle checks also protect supported swaps

Oracle pricing has another role in Curvance: checking the value received during supported protocol swaps.

Some zaps and position management actions use external swap aggregators. Curvance validates the swap instructions and compares the oracle value of the tokens spent with the value received.

If the output falls below the permitted slippage threshold, the transaction reverts. It also reverts if either token cannot be safely priced. These checks are described in the documentation’s safer swaps section.

This adds a valuation check alongside the external router’s execution instructions. Its effectiveness still depends on reliable oracle prices and appropriate slippage settings.

Isolated markets help contain exposure

Oracle validation addresses the prices accepted by the protocol. Market isolation addresses where losses could spread if something goes wrong.

Curvance separates lending exposure across isolated markets rather than combining every supported asset into one shared collateral pool.

That separation can help contain a problem within the affected market. It does not guarantee protection from losses inside that market or prevent shared assets and infrastructure from affecting several markets at once.

For users, the relevant starting point is the market holding their position. Its collateral, debt asset, liquidity, and risk settings determine their exposure.

Curvance’s borrowing documentation also explains that borrowing capacity depends on both collateral limits and available liquidity. A displayed collateral value does not guarantee that the corresponding loan amount is available.

Reliable pricing must connect to effective liquidations

An oracle helps determine whether a position is eligible for liquidation. It cannot guarantee that someone can sell the collateral at the reported price.

Curvance’s liquidation framework adjusts liquidation severity as a position becomes less healthy. Its configurable parameters determine how much debt can be closed and the incentive offered to liquidators.

The orderflow auction system adds competitive bidding and supports processing multiple liquidations in one transaction. In supported flows, an oracle update and liquidation can execute together.

Auctions can also respond to opportunities created by debt growth through interest accrual. A price change is not required for a position to become unhealthy.

The system includes a standard liquidation path that uses configured parameters when auction overrides are absent. This fallback still depends on acceptable pricing and the other liquidation checks passing.

Execution remains a separate risk. Thin trading liquidity, slippage, or redemption delays can make collateral difficult to sell even when the oracle observation is valid.

What users should check before borrowing or lending

Understanding oracle risk does not require reading every contract. Start with these questions:

  1. What supports the collateral’s value? Determine whether it depends on a market price, an exchange rate, a vault strategy, or future redemption.
  2. Which protections are active? Check the configured pricing source, heartbeat, and any applicable PriceGuard.
  3. What happens during a pricing interruption? Understand which actions may become unavailable and how that affects managing the position.
  4. How easily can the collateral be sold? Consider trading liquidity, withdrawal restrictions, and the size of the position.
  5. How much room does the position have? A small buffer leaves less room for price movements, accumulating interest, or changing valuations.

These questions connect the protocol’s safeguards to the practical risks of an individual position.

Managing oracle risk across the lending process

Curvance combines pricing validation, asset specific configuration, restrictions on unsafe operations, market isolation, and liquidation execution.

Each layer addresses a different problem: Freshness checks reject outdated observations, PriceGuards constrain eligible asset valuations, and Error handling prevents certain actions from using unacceptable prices. Lastly, isolation limits shared exposure, while liquidation mechanisms help close unhealthy debt. The protection available to a user ultimately depends on the exact asset, active market configuration, and liquidity behind the position.

Explore the Curvance documentation for the underlying mechanisms and the Curvance app for available markets.

Previous in the series: Three Oracle Failures That Changed DeFi Lending.

This article is for informational purposes. Protocol configurations, oracle sources, and market liquidity can change.

SEO title: How Curvance Manages Oracle Risk in DeFi Lending

Meta description: Learn how Curvance manages oracle risk with price validation, heartbeat checks, PriceGuards, isolated markets, and liquidation safeguards.

Excerpt: Reliable prices are essential to DeFi lending. Learn how Curvance validates asset values, responds to unreliable data, and connects oracle safeguards to liquidations.

Related posts