Depth and loan sizes.
A loan is only as good as the market that can take its collateral back. Céos sizes every loan from the depth that is there right now: the Elysium v4 HYPE/USDC pool it liquidates through, and the Hyperliquid HYPE book that pool refills from. The numbers are read every 15 seconds and shown on the Depth page and at /api/depth.
The rule
- Floor. The market's
liquidatenever sells under the guarded HYPE price minus 3 %. That price is the floor. - One pass. The site walks the pool from its price down to the floor, liquidity range by liquidity range, exactly as a v4 swap fills (each step rounded as the PoolManager rounds it, the 0.30 % fee on each step), and gets the HYPE the pool takes and the USDC it pays. Any debt up to that USDC is repaid in full by one liquidation call: a sale that wants more HYPE stops at the floor having received exactly that USDC, and a smaller sale is sized at the floor price, so it repays its debt before reaching it. That USDC is the largest loan.
- Desk cap. The keeper runs a liquidation pass every five minutes, 12 in an hour. Between passes, arbitrage buys back what a pass sold into the pool and sells it into the Hyperliquid book, so an hour of passes can take at most the pool's pass plus the Hyperliquid bids above the same floor. The desk cap is
min(one pass × 12, one pass + Hyperliquid bids above the floor). An hour is the horizon because a loan at the 70 % threshold still holds collateral worth its debt until HYPE falls a further 30 %. - Each auction. The desk cap minus the debt already open on every term (the sum of every cohort's amount owed), shared by tonight's three auctions:
(desk cap − open debt) ÷ 3. Tonight's bids of a term count against their auction at their maximum rates. - A bid. Its debt at its maximum rate,
amount × (1 + maxRate × days ÷ 365), is at most one pass and at most the room left in its auction.
All caps are in USDC owed at maturity, the quantity a liquidation has to recover.
Where it applies
- The borrow ticket shows the limit for your term and rate, the largest amount that fits, and joins the auction only within it.
/api/quotereturnsdepthwithfits,limitandmaxAmount; the MCP toolbid_calldatareturns calldata only within the limit; the SDK'sbidWithinDepthchecks it before building the call.- The keeper's liquidation pass reads the pool's room before every call, takes loans highest loan-to-value first, and ends the pass when the pool sits at the floor.
- The contracts keep their own rules unchanged: the 3 % price limit on every sale, slices when a pool is thin (see Liquidation). Depth limits sit on top of them, in the app, the API and the keeper; the markets on chain accept any bid that meets their own collateral rule.
Checked against the chain
The walk is tested against the real pool: on an Elysium fork at block 12,135,000 it predicted 20.963490343759746832 HYPE to the floor for 1,290.489178 USDC. A loan of exactly that debt was cleared by one liquidation call; a loan 5 USDC larger sold exactly that HYPE for exactly that USDC and stopped on the floor, to the wei.
What it costs
Nothing on chain: depth is read, never written. The keeper sends no extra transaction for it.