When DeFi Goes Wrong, How Do We Decide Who Bears the Loss?

Why can the same failure produce such different outcomes for different holders?

Over the past few years, risk ratings for digital assets have expanded rapidly. Rating agencies and on-chain risk providers now assess stablecoins, protocols, and lending vaults. Most of this work focuses on the product itself and its components: its reserves or portfolio, the managers responsible for operating it, and the code on which it runs.

These assessments give holders a great deal of information about a product. But what holders really need to know is more specific: if something goes wrong somewhere underneath, how much of their claim will be lost, how long it will take to recover what remains, and which holders will ultimately bear the loss.

The answers to these three questions depend on how a failure travels from those components to the claims held by users. This article proposes a way to trace that path, applicable across product types and built around four core principles.

Four Principles

  • Product-agnostic. The analysis begins with one question: what determines how much a holder can recover when exiting? Vault shares, tokens redeemable at par, and notes promising repayment all fit within the same framework; the product label does not change the method.
  • Loss and delay pathways. A failure travels through the layers between the assets and the holder—code, the people who can change the rules, and rules that execute automatically. Each layer can absorb the failure, slow it down, or pass it through. The same event can produce completely different outcomes for two holders.
  • Who bears the loss. Claim terms determine whether losses are absorbed by buffers, debtors, or holders. Exit rules can also transfer losses from those who leave early to those who remain.
  • Path dependence. Some weaknesses can offset one another—for example, strong collateral can compensate for a weak borrower—and can therefore be combined into an overall score. But some weaknesses lie on an unavoidable path. No matter how much collateral a vault has, an administrator key without a timelock can move it away, making the quality of the collateral irrelevant. Such a weakness cannot be averaged against strengths; it sets the ceiling on its own.
  • The discussion below follows this sequence: what a claim is, which operational layers lie in between, how losses pass through them, and finally how the results are combined into a conclusion.

Step One: What Can a Holder Recover?

The first question is: what determines the amount a holder can claim upon exit? Claims fall into only a small number of categories, and each category makes clear at which point losses reach the holder.

Consider three comparisons. When holding a share of a pool, the holder is entitled to a portion of the pool’s current value. As the assets lose value, the loss reaches the holder immediately—this is how most lending-vault shares work. When holding a note promising repayment, the debtor owes a fixed amount regardless of how much the underlying assets earn; the holder suffers a loss only if the debtor defaults. When holding a token redeemable at par, the loss appears when redemption fails or the price breaks below par. The same logic applies to other claims: once you understand what determines the amount, you know where the loss enters.

The type of claim determines what a failure means for the holder. The same borrower default may cause an immediate write-down for a pool share, while the payment on a senior claim remains unchanged as long as the buffer beneath it has not been exhausted. But what supports the claim, who controls it, and what code governs it are equally important. Those factors are analyzed in the layers below, but they do not change the type of the claim itself. Because the method starts with the claim, it applies equally to vaults, stablecoins, and tokenized assets.

Step Two: The Five Layers Between Assets and Holders

Once the claim is understood, the next question is what lies between the claim and the assets that ultimately repay it. There are five layers in total, counted from the bottom up. The bottom layer is the underlying exposure—the assets that generate value and absorb losses first. The top layer is the holder’s claim: the rights and exit terms that determine what the holder actually receives.

Three operational layers sit in between. Closest to the assets are smart contracts and infrastructure, including the code that holds the assets and the systems it depends on, such as oracles, bridges, and the underlying blockchain. Above that is control: the entities that can change the exposure, terms, or valuation, and the limits on what they can change. Closest to the holder is the mechanism layer—the rules that transfer value automatically without requiring anyone to make a decision, such as liquidation and withdrawal limits.

The layers are separated because each can fail in a different way. Code and infrastructure can fail without anyone making a decision: the chain may halt or an oracle may go offline. Regardless of whether the issuer wants it to happen, exits will stop and assets may be mispriced. Control-layer failures result from human decisions, so what matters is the scope of each power and how much delay exists before it takes effect. The mechanism layer responds to stress according to preset rules; its behavior can be inferred from parameters and market conditions. It fails when conditions change faster than the rules can respond.

Step Three: How Losses Travel to Holders

Once the layers are laid out, the transmission path becomes clear. Stress begins at the underlying exposure and moves toward the holder, carrying two things along the way: loss of value and the time required to recover that value. As it passes through each layer, both are reduced or absorbed to some extent; only what remains continues upward.

Stress can also originate within an intermediate layer. A code failure or a bad decision does not have to begin at the underlying exposure; if it emerges in the middle, it can still travel all the way to the claim.

Underlying exposure. The transmission process begins with a default, a price decline, a reserve shortfall, or a custodian failure—events that reduce the value supporting the claim. How much can be recovered and how quickly depends on collateral, buffers, and legal recourse. Only the unrecovered portion continues upward. In practice, this may look like a borrower defaulting and the collateral selling for less than the debt; a custodian failing and segregated assets taking months to return; or reserve assets losing value and the token falling below par.

Smart contracts and infrastructure. The first operational layer next to the assets consists of the code holding them and the infrastructure that carries transactions and prices. Code defects, privileged actions, chain halts, bridge failures, and service outages can occur without warning. The amount of value affected depends on on-chain limits, delays, and redundancy. What ultimately reaches the claim appears as stolen funds, trapped funds, mispricing, or halted exits. An upgrade with no delay can directly replace a vault’s logic; if a cross-chain bridge is compromised, the collateral transferred across it may become worthless; if the chain halts, no one can exit until it restarts.

Control. Above that is the control layer, where human decisions take effect. Someone changes a configuration, parameter, or valuation, and that decision alters the exposure, value, or liquidity within the applicable constraints. The key comparison is between the delay before the change takes effect and the time holders need to exit. If holders can leave before the change takes effect and the exit channel can accommodate everyone, they can avoid the risk. If not, a poor or malicious decision reaches the claim directly. A manager allocates funds to a market that later generates bad debt; an operator fails to recall funds, and the exit queue outlasts the buffer; or a compromised signer changes a limit with no delay.

Mechanism. Closest to the holder is the mechanism layer, where rules automatically respond to incoming stress. Price movements, withdrawal waves, and changes in funding rates flow through; interest rates adjust, liquidations begin, queues fill, and accrual continues. How quickly stress travels and how much is absorbed depend on the parameters. When the rules fail, stress becomes loss or delay: collateral falls faster than it can be liquidated, leaving bad debt; utilization reaches its cap and withdrawals are blocked; or exit assets fall below par while the accrual rate continues to rise.

Holder claim. Once stress has passed through the lower layers and reaches the claim terms, those terms determine who absorbs it: the holder, the buffer, or the debtor. Whether the holder can legally or programmatically enforce payment determines whether they receive anything at all. Exit rights and exit assets determine what they receive and when. This layer can also transfer losses between holders. If a gate closes while the reported value remains at par, or if early exiters leave at full value before impairment is recognized, the loss falls on those who remain. Each holder may bear much more—or much less—than the proportional share they would otherwise be expected to absorb.

Looking across the full path, the same underlying event can produce dramatically different outcomes for two holders. A borrower default may be absorbed by a buffer in one product, become a delayed write-down in a second, and trigger a run in a third, pushing the loss onto those who exit later. Risk assessment must therefore follow the path. Looking only at the event itself does not tell you which outcome a holder will face.

Step Four: Examine Each Risk Layer by Layer

Each layer can show you where stress passes through, but not what kind of harm it causes. The second dimension of assessment is therefore the type of harm: credit risk, market risk, liquidity risk, and several categories specific to on-chain claims. These two dimensions do not correspond one-to-one. Treating them as if they did obscures much of the path by which risk reaches the claim.

Take liquidity as an example. It has more than one entry point: the underlying asset is one; the exit right and exit asset are another; the withdrawal mechanism and settlement queue are another; the operator responsible for recalling funds is another; and the on-chain or off-chain services on which exit depends form yet another. A vault can therefore have deep market liquidity and still trap holders through another entry point. Credit risk works the same way. It enters through the borrower, but also through the decisions, rules, and loss-sharing terms between the borrower and the holder. Each risk must be traced through every layer it may pass through before the assessment can describe what the holder faces overall.

Risk types can also interact. When credit conditions deteriorate, withdrawals often increase at the same time. Assets then have to be sold into a falling market to meet exits, causing losses to compound.

Measuring a risk generally requires two types of metrics because they answer two different questions. A flow metric, such as expected annualized credit loss or the annualized probability of depeg, tells holders how much loss and how many events they should expect on average each year. An event metric, such as loss under a stress scenario, tells holders how severe the worst day could be. A product may appear harmless on flow metrics while looking severe on event metrics—this is a typical pattern of tail risk. The two metrics should be presented side by side; they cannot be added together or directly compared. Annualized expectations and one-time scenario losses measure different things. For some risks, such as an exit run, an annual average says very little; the scenario figure is what matters.

Two additional rules help prevent distorted metrics. If a single stress event affects multiple risk types, count it only once. If a metric cannot be estimated, record it as missing—never as zero. Zero would be misread as safe.

Step Five: How Far Should the Risk Assessment Look Through?

Everything above assumes that you know what the vault actually holds. In practice, the answer is rarely visible in a single step. Behind a vault share may be an issuer’s balance sheet; that balance sheet allocates funds across venues, the venues operate markets, and those markets lend against collateral. The underlying exposure lies at the end of this chain, and the risk assessment must follow it there—much as bank capital rules require banks to look through fund holdings and apply conservative treatment to holdings they cannot see through. This leads to two practical questions: how far should the assessment go, and what should be done where it cannot go further?

Tracing should cover every position that matters to the claim and stop where the residual risk can be assessed as a whole: an asset that genuinely repays the claim, an exposure that has already been credibly assessed by someone else, or a portion into which no one can see. These rules do not depend on product labels. The nodes along the path may differ, but how deeply to analyze depends on the structure itself.

Two details are especially important in this process. The first is concentration points. A single oracle, bridge, custodian, or administrator key may sit beneath several exposures that appear unrelated. Each individual path may look small, but together they may all depend on the same thing. Concentration points must therefore be traced even when no single path is particularly large. They are counted only once and treated according to their weakest link: nothing that depends on them can be stronger than they are. If a vault is diversified across two lending markets but both markets use the same oracle, there is no diversification with respect to that oracle.

The second is unknown exposure. Undisclosed strategies and allocations without mandatory limits cannot simply be skipped—skipping them amounts to assuming they are “average.” The correct approach is to treat the unknown portion as weak in proportion to the share it represents within the claim. Unknown exposure also reduces the confidence of the conclusion: the greater the portion that holders cannot see through, the more any risk assessment should be regarded as provisional.

Step Six: The Weakest Link

At this point, the result is a set of separate assessments. The clearest way to present them is to keep them separate and provide one result for each risk type. If they must be compressed into a single number, aggregation is the point at which the transmission logic is most likely to be lost.

Averaging allows strength in one area to offset weakness in another. That is reasonable when factors can genuinely substitute for one another. From an expected-loss perspective, better collateral can compensate for a weaker borrower because both reduce the same credit loss. But once factors lie end to end on the path to the holder, averaging no longer works. However strong the collateral may be, it tells you little if an administrator key without a timelock can move it away. In such a case, the failure of one layer is sufficient; averaging it against stronger layers describes a state that no holder could actually experience.

Aggregation should therefore follow the path: when factors can substitute for one another, average them; when a weakness lies on every path that a given loss must travel, let that weakness set the ceiling on its own. Every ceiling is ultimately a judgment, and too many ceilings reduce the assessment to whichever item looks worst. The goal is to lay out the assessment so holders can see whether the conclusion reflects the overall picture or is constrained by a single weakness through which every loss must pass.

What a Risk Assessment Cannot Tell You

The resulting conclusion ranks products by how well their holders’ claims are protected and reflects the state of the product on the assessment date. It is not the probability of losing money. Turning the conclusion into a probability would require long-term records showing how often products at each assessment level actually incurred losses, and on-chain markets do not yet have such a record. Losses to date have mostly come from a small number of market-wide events that swept across many products; depegs are rare, minor incidents often go unreported, and very few claims ever make it to court.

That is precisely where the value of this framework lies. Starting from the claim, it tells holders which failures can reach them, how much loss they may cause, how long recovery may take, and whether the loss will ultimately be borne by them or by other holders. It places vault shares, stablecoins, and tokenized notes within the same framework, while also showing whether an assessment reflects the overall picture or is constrained by a single weakness through which every loss must pass. A single number cannot contain all of this information—that is why losses must be traced all the way to the holder.

Published on
Disclaimer: Investing involves risk. This article does not constitute investment advice.