Sub topic 8
Counterparty risk: when the custodian fails
This chapter covers the risk you take on when a company holds your keys. It assumes you know that a wallet manages keys and signs transactions. It also assumes you know that a custodial wallet is one where a company controls the private keys. You should be comfortable with the idea of an exchange account that shows a balance.
What counterparty risk means here
A counterparty is the other party in an arrangement. When you keep coins on an exchange, that exchange is your counterparty. You do not own coins at an address that only you can sign for. You own a claim: a record in the company's database that says the company owes you some amount of an asset.
Counterparty risk is the chance that the company cannot or will not honor that claim. The balance you see in the app is an IOU. It is only as good as the company's honesty, solvency, security, and legal standing.
This is the main failure mode of custodial wallets. It is different from the failure mode of self-custody, where the risk is your own mistakes (covered in the next chapter).
Why a custodian's balance can differ from the coins it holds
On a blockchain, a coin can only be moved by a valid signature from the key that controls it. A custodian controls those keys, so the blockchain cannot tell you whether the company is holding what it owes. Your app balance is an internal ledger entry. The coins sit in the company's addresses, usually pooled together with other customers' coins.
Two things can go wrong:
- Insolvency. The company owes more than it holds. Customer claims exceed assets.
- Misappropriation. The company moves customer coins for its own purposes, such as lending them out, trading with them, or covering losses elsewhere.
Either way, the app may keep showing your full balance until the moment withdrawals fail.
Common ways custodians fail
| Failure | What happens | Example pattern |
|---|---|---|
| Hack of hot wallets | Attackers steal keys or trick the company into signing transfers | Exchange hacks where a share of customer funds is stolen |
| Fraud or misuse of funds | Management moves customer assets to fund other activity | Customer deposits used for proprietary trading |
| Rehypothecation and lending | Customer coins are lent out to borrowers who then default | Yield programs that fail when borrowers cannot repay |
| Run on withdrawals | Many customers withdraw at once and the company lacks liquid assets | Platforms that pause withdrawals during market stress |
| Operational failure | Lost keys, bad internal controls, or a key employee leaving | Company cannot access its own cold storage |
| Legal action | A court, regulator, or government freezes or seizes accounts | Asset freezes tied to investigations (see the regulation chapter) |
The cases differ, but the outcome for a customer is the same. You are an unsecured creditor waiting in a queue.
Bankruptcy: where you stand in line
If a custodian becomes insolvent, courts decide who gets what. The key question is whether your assets belong to you or to the company's estate.
- If the assets are treated as customer property held in trust or segregated, they may be returned to you.
- If the terms of service say the company owns the assets and you hold only an unsecured claim, you may share what is left with all other creditors.
Terms of service matter a great deal here. Some agreements say deposits are transferred to the company, especially for products that pay interest. Customers in a few well-known failures learned that their balances were treated as claims, not property. Recoveries took years. Some customers were paid back in cents on the dollar. When payouts came, they were often calculated in the dollar value of the coins on the date of the bankruptcy filing, not in the coins themselves. If prices rose afterward, customers missed that gain.
Law varies by country and changes over time. Do not assume that a particular jurisdiction protects crypto deposits the way it protects bank deposits. Bank deposit insurance schemes generally do not cover crypto assets held at an exchange. Check what a provider actually states.
Reading the warning signs
No checklist removes the risk, but some signals are worth weighing:
- Withdrawal delays or sudden "maintenance." Repeated pauses on withdrawals are a serious warning.
- Unusually high yield. A return far above market rates means someone is taking risk with your coins. Ask who the borrower is.
- Opaque finances. No audited statements, no clear description of where customer assets sit.
- Commingling with affiliated companies. An exchange closely tied to a trading firm can move assets between them.
- Terms that transfer ownership. Look for language like "title to the assets transfers to us."
- Concentration. One platform holding most of your holdings.
Proof of reserves and its limits
After several failures, some exchanges began publishing proof of reserves. The company shows that it controls certain addresses and holds a certain amount of coins. Often a Merkle tree (a structure that lets each user check that their balance was included in the total owed) is used to show liabilities.
This helps, but it has limits:
- A snapshot of assets at one moment does not show that the coins were not borrowed for the snapshot.
- Proof of assets alone says nothing about liabilities. A company might hold 100 coins and owe 300.
- Off-chain loans and debts to other parties are not covered.
- Not every report is audited by an independent party, and the scope of an audit can be narrow.
The strongest version shows total assets, total customer liabilities, and independent verification, and repeats the exercise regularly. Even then, it reduces risk and does not remove it.
# Illustrative check: assets versus customer liabilities.
# A real proof of reserves must also prove liabilities are complete.
def reserve_ratio(assets: float, liabilities: float) -> float:
if liabilities <= 0:
raise ValueError("liabilities must be positive")
return assets / liabilities
customer_balances = {"alice": 4.0, "bob": 2.5, "carol": 1.5}
liabilities = sum(customer_balances.values()) # 8.0 coins owed
assets_on_chain = 6.0 # coins provably held
ratio = reserve_ratio(assets_on_chain, liabilities)
print(f"Reserve ratio: {ratio:.2f}") # 0.75
print("Fully backed" if ratio >= 1 else "Shortfall of", liabilities - assets_on_chain)The example shows why the liabilities side matters. The company can show 6 real coins and look healthy, but if the ledger owes 8, every customer is exposed to a 25% shortfall. Worse, if the company hides some liabilities from the list, the ratio looks better than it is.
Ways to reduce counterparty risk without self-custody
You can stay custodial and still limit exposure:
- Split across providers. Spread balances so no single failure takes everything.
- Keep only trading balances on exchanges. Withdraw what you do not need for active use.
- Prefer regulated, segregated custody. Some providers are licensed and required to keep client assets separate and report on them. This helps, but the details of the license matter.
- Avoid yield products you do not understand. Interest programs often mean the company lends your coins, which is the exact behavior that led to past losses.
- Read the custody terms. Find out whether assets are held in your name, in trust, or as company property.
- Test withdrawals. Withdraw a small amount occasionally to confirm the process works.
Counterparty risk compared with self-custody risk
| Question | Custodial | Self-custody |
|---|---|---|
| Who can lose your coins | The company, its staff, its lenders, its attackers | You, or anyone who gets your seed |
| Can you fix a mistake | Often, through support and account recovery | Usually not |
| Visible on-chain control | No, you hold a claim | Yes, you hold the keys |
| Main protection | Law, audits, company behavior | Your own security practice |
Neither model is free of risk. The risk moves from a third party to you, and the right choice depends on which one you can manage better. The final chapter returns to this trade-off with decision criteria.
Summary
Counterparty risk is the risk that a company holding your keys fails to honor what it owes you. It arises from hacks, fraud, lending of customer coins, withdrawal runs, and legal action. In bankruptcy, you may rank as an unsecured creditor, and recovery can be slow and partial. Proof of reserves helps only when it covers both assets and liabilities and is independently checked. You can reduce exposure by spreading funds, limiting balances, reading terms, and avoiding yield products, but only holding the keys yourself removes this particular risk.
Exercise
An exchange publishes a report showing it holds 5,000 BTC in addresses it controls. Customer balances in its database total 7,500 BTC. What is the reserve ratio, what does it imply for customers, and what two additional pieces of evidence would you want before trusting a similar report?
Show answer
The reserve ratio is 5,000 / 7,500 = 0.67, so the exchange holds about two thirds of what it owes and has a shortfall of 2,500 BTC. If all customers tried to withdraw, roughly a third could not be paid. Before trusting a report like this, you would want proof that the liabilities list is complete (for example a Merkle tree where users can verify their own balance is included), and independent verification by an auditor. You would also want repeated reports over time, to rule out borrowing coins just for the snapshot.
Exercise
Your exchange's terms of service say "title to all deposited assets transfers to the company." If the company goes bankrupt, what is your likely legal position, and how does it differ from a platform that holds assets in segregated trust accounts?
Show answer
Under title-transfer terms, you are probably an unsecured creditor with a claim against the estate, sharing what remains with other creditors, often over years and sometimes valued in fiat at the filing date. With segregated trust custody, the assets may be treated as customer property that is not part of the company's estate, so you have a stronger chance of getting your coins back. The exact outcome depends on the jurisdiction and the court.