Open appRead the docs
Docs

Stability pool and liquidations

The stability pool holds eUSD that pays off liquidated debt and receives the trove's kHYPE in the same transaction.

Liquidating a trove

liquidate(trove) needs a fresh price and a ratio under 110% at the HyperCore mark. The caller receives 0.5% of the trove's kHYPE. The pool burns eUSD equal to the debt and receives the rest of the kHYPE. At 110% that is about 10% more value than the eUSD it used. liquidateMany takes a list and skips troves that are healthy.

For depositors

provide(amount) and withdraw(amount). Each deposit shrinks pro-rata as debt is absorbed and earns kHYPE pro-rata; both are tracked with a running product and sum, so every account updates in constant gas. Withdrawing works whatever the price feed is doing.

1
Stability pool
burns eUSD equal to the debt, takes the kHYPE
2
Redistribution
what the pool cannot take is shared across open troves, pro-rata to collateral
3
$MNTS backstop
if no trove is left to share it, staked $MNTS is sold to close the gap
Who absorbs a liquidated trove, in order.

Who absorbs what

If the pool holds less eUSD than the debt, it takes what it can and the remainder (debt and kHYPE together) is shared across every open trove by collateral. If there is no other trove to share it with, the debt is recorded as a shortfall that the $MNTS backstop closes. Anyone can close part of a shortfall with settleShortfall(amount) and receive the matching kHYPE.