Sizing a loan from the exit
The cap
Every collateral token carries a maxPrincipal: the largest loan any single offer on
that ticker may carry. It is derived from measurement, not preference.
absorbable = reserveToken × impactBudget / (1 - impactBudget)
maxPrincipal = absorbable × price
At a 2% impact budget and the NVDA pool's 6,177 tokens, that is about 126 NVDA, or 28,876 USDG. An offer above that is refused on chain, with the cap named in the revert.
A market with no USDG pool, or with less than a few thousand dollars of absorbable depth, is delisted by setting its cap to zero.
Who the cap protects
In a pooled protocol a size cap protects the protocol, because a bad liquidation is socialised across every depositor.
Here there is no pool. The cap protects the lender, who has one borrower, one ticker, and no one to share a loss with. It is the single thing the protocol does for a lender that the lender cannot easily do alone, because it requires reading every pool at every fee tier on every refresh.
It is maintained, not set
The cap is an owner-settable value, and it is expected to move often and downwards fast. NVDA's exit depth fell 53% in three days in September 2026. A constant chosen at deployment would have been wrong within a week.
The engine that produces the number is public and reads the chain live:
GET /api/markets. The same figures drive the app, so the screen and the contract
cannot drift apart.
Leverage has two ceilings, and we name both
A loan to value implies a maximum leverage: L = 1 / (1 - ltv).
At the house liquidation LTV of 60%, that wall is 2.50x. But a position opened exactly at the wall has a health factor of 1.00 and zero room to fall: it is liquidatable in the block it opened in. That is arithmetic, not a bug, but offering it on a slider would be one.
So the product stops at 2.17x, the leverage that still leaves 10% of room before a close-out. Both numbers are shown. A ceiling that is named reads as a decision; a ceiling that is quietly lowered reads as a lie waiting to be found.