Liquidation (Service)
Lista operates its own liquidation keeper. Its scheduling, thresholds, and retry behaviour are internal and are not documented here.
Third-party liquidators do not need them. What you do need:
Eligibility
A position is liquidatable when its loan-to-value exceeds the market's lltv:
borrowed = convertBorrowSharesToAssets(borrowShares, totalBorrowAssets, totalBorrowShares)
maxBorrow = collateral × price / 1e36 × lltv / 1e18 // price = collateral denominated in the loan asset, 1e36-scaled; lltv is 1e18-scaled
isHealthy = maxBorrow ≥ borrowedA position with no debt is always healthy. On a broker market the borrower's debt is replaced by the broker's total debt (Moolah principal plus interest accrued at the broker), while the collateral is still priced at the plain market price.
Use the same oracle and market parameters the contract uses, and match its rounding — maxBorrow is floored and borrowed rounded up, both in the protocol's favour. The exact scale factors, the isHealthy view and its caveats, and the liquidation-price formula are in Consuming Oracle Prices.
Re-read the oracle and position state at execution time: Moolah accrues interest and re-checks health when your transaction lands, and reverts with the string "position is healthy" if the position has recovered — Moolah's health and input checks use require strings, not typed errors. (The inherited reentrancy guard is the exception: it reverts a typed ReentrancyGuardReentrantCall() — see Events & Callbacks.)
Finding candidates
GET /api/moolah/redPositions— liquidatable positions on one market. Start here for open markets, which are the common case: enumerate markets from/api/moolah/allMarketsand fan out.GET /api/liquidation/zone/closeToLiquidate— positions approaching the threshold.GET /api/liquidation/zone/list— the per-market borrower whitelist with each account's latest position snapshot. It applies no health test, so evaluate eligibility yourself, and it only finds candidates on gated markets.GET /api/liquidation/zone/history— settled liquidations.
Parameters and response fields are in Positions, Liquidation & Emission. Indexed data can lag; treat it as a candidate feed and confirm on-chain before submitting.
Executing
Liquidations are executed through the PublicLiquidator contract. It has no role gate, but reachability is per market — an under-water position is not necessarily liquidatable by you, and there are both self-funded and flash-swap paths. Entry points, sizing, the eligibility gate, and the revert reference are in Liquidator Integration.
Lista's keeper competes on the same public paths as anyone else. Running your own liquidator does not require, and does not receive, any knowledge of its configuration.
For the product-level explanation of liquidation, see Liquidation.
Last updated
Was this helpful?