Contracts
Liquidator
The keeper entry point for liquidating undercollateralized positions. Two modes: soft (partial) and full.
solidity
interface ILiquidator {
/// @notice Repay up to closeFactor of debt, receive collateral + bonus.
function softLiquidate(address borrower, address collateralAsset, uint256 repayAmount)
external returns (uint256 seized);
/// @notice Repay 100% of debt, seize all collateral + larger bonus. Health must be < 0.92.
function fullLiquidate(address borrower)
external returns (uint256 totalSeized);
}