How it works
From the book to a liquidation
- Read the HyperCore book and the Elysium AMM pools for the collateral.
- Walk bids down to the slippage limit. Sum base sold and quote received. That quote is absorbable depth.
- Map depth to LTV between the floor and the ceiling. A one-sided book takes a haircut.
- Set the liquidation chunk to a fraction of the base that clears inside the band.
- A keeper liquidates at most that chunk, then the book is read again.
Slippage to liquidate
Slippage is the furthest price, relative to mid, that still counts as usable depth. At 100 bps, a bid 90 bps under mid counts. A bid 250 bps under mid does not. The liquidation buffer is the unsold remainder: inventory past the band is not treated as immediately saleable.
Keeper
When health falls through 1, the keeper sells collateral up to the current chunk, repays debt, and stops. If the position is still short, the next block reads the book again and issues a new chunk. The keeper does not assume the whole position clears at the oracle price.