Liquidation Manager
Dive into the mechanics of protocol stability with the Liquidation Manager. This contract plays a vital role in maintaining the health of the Roots ecosystem by efficiently managing the liquidation of undercollateralized Troves. Discover the functions that trigger and process liquidations, and the events that signal these critical actions.
Functions
CCR()
Returns the current Collateralization Ratio of the system. (View)
DEBT_GAS_COMPENSATION()
Returns the gas compensation amount for debt processing during liquidations. (View)
DECIMAL_PRECISION()
Returns the decimal precision used in calculations. (View)
PERCENT_DIVISOR()
Returns the divisor used for percentage calculations. (View)
batchLiquidateTroves
Liquidates a batch of specified Troves for a given Trove Manager.
borrowerOperations()
Returns the address of the IBorrowerOperations
contract. (View)
enableTroveManager
Enables a Trove Manager for liquidation operations.
factory()
Returns the factory address. (View)
liquidate
Liquidates a single specified Trove for a given Trove Manager.
liquidateTroves
Liquidates a maximum number of Troves for a given Trove Manager, up to a specified maximum Individual Collateralization Ratio (ICR).
stabilityPool()
Returns the address of the IStabilityPool
contract. (View)
Events
Liquidation
Emitted when a liquidation occurs, detailing the amounts of debt and collateral liquidated, and gas compensations.
TroveLiquidated
Emitted when a specific Trove is liquidated, including the borrower’s address, debt, collateral, and the operation type.
TroveUpdated
Emitted when a Trove is updated as a result of liquidation.