web3-news

Supply Caps and Borrow Caps in DeFi: Read Market Limits

10 tokens of supply headroom remain when a DeFi reserve has 990 supplied under a 1,000-token supply cap; supply caps limit total supplied assets, while borrow caps limit total outstanding borrowing of an asset.

Think of a shared lending reserve as a shelf that many people stock and borrow from. Its caps count everyone’s activity, so one user can take the last space available to another.

In SparkLend, caps apply to individual reserves across users, so a full cap can block your next supply or borrow even when your own account has room. A cap belongs to the asset’s market, not your wallet.

Caps set two different ceilings

A supply cap sets the highest total amount of one asset users can supply. It bounds exposure to that asset, including risks from unreliable collateral pricing or a sudden influx of tokens. Once the cap is reached, another deposit of that asset needs headroom or a higher cap.

A borrow cap sets the highest total outstanding debt in one asset. It limits debt concentration and the size of a potential shortfall if borrowers cannot repay. Interest can increase outstanding debt, so cap usage can rise without a new loan.

Say a hypothetical reserve has a supply cap of 1,000 tokens and 990 counted as supplied. Its simple supply headroom is 10 tokens: max(0, 1,000 − 990). A supply of 8 tokens fits; one of 11 does not. If the reserve’s borrow cap is 400 tokens and users owe 390, its simple borrow headroom is also 10 tokens. A new loan of 11 tokens exceeds that limit even though the supply cap has room.

These totals are shared across users, not allowances assigned to each account. Protocols vary in how they count accrued amounts and apply caps. The Spark cap rules express settings in whole asset tokens and compare them with reserve totals.

A borrow cap can close before liquidity runs out

A borrow cap can stop a loan while the reserve still holds ample unborrowed tokens. The cap limits total debt; reserve liquidity is the amount currently available to draw. Visible tokens in the pool therefore cannot tell you, by themselves, how much more borrowing the market permits.

Imagine 80 tokens sit ready to borrow, but debt already stands at 390 against a 400-token borrow cap. Only 10 tokens of cap headroom remain. A request for 20 tokens fails on the cap despite the 80 liquid tokens. More deposits might increase reserve liquidity, but they would not raise that borrow cap. Mistaking liquidity for borrowing capacity could lead you to submit a transaction the cap rejects.

The reverse can happen too. With 40 tokens of cap headroom but only 5 liquid tokens, a request for 20 lacks liquidity. Borrow validation needs cap headroom, reserve liquidity, and an eligible account with enough collateral. Your collateral determines personal borrowing power; the borrow cap sets a shared limit. The smallest applicable limit controls what you can draw at that moment.

What happens when a DeFi borrow cap is lowered?

When a borrow cap falls below outstanding debt, new borrowing stops until debt falls or the cap rises. In SparkLend, existing borrowers continue without forced repayment solely because of that cap change. Repayments can reopen headroom, while interest can narrow it again.

Who changes DeFi supply and borrow caps?

Governance or authorized risk administrators change supply and borrow caps under each protocol’s permissions. Settings can respond to an asset’s risk and the market’s size. Before supplying or borrowing, compare the current total with its cap; for a loan, also check reserve liquidity and your account’s borrowing power.