Skip to main content
This section contains hooks for monitoring liquidation risk and performing liquidations on Compound III.

Summary of Liquidation Hooks

useIsLiquidatable

The useIsLiquidatable hook checks if an account can be liquidated.

Usage

Return Value

useAbsorb

The useAbsorb hook allows liquidators to absorb (liquidate) an underwater account.

Usage

Return Value

useBuyCollateral

The useBuyCollateral hook allows users to buy collateral from the protocol during liquidation.

Usage

Return Value

useGetAskPrice

The useGetAskPrice hook retrieves the ask price for collateral during liquidation.

Usage

Return Value

useGetLiquidatorPoints

The useGetLiquidatorPoints hook retrieves the liquidator points for an account.

Usage

Return Value

useGetReserves

The useGetReserves hook retrieves the reserves of the protocol.

Usage

Return Value

useGetTargetReserves

The useGetTargetReserves hook retrieves the target reserves of the protocol.

Usage

Return Value

useGetCollateralReserves

The useGetCollateralReserves hook retrieves the collateral reserves of the protocol.

Usage

Return Value