Summary of Liquidation Hooks
- useIsLiquidatable: Checks if an account can be liquidated
- useAbsorb: Allows liquidators to absorb (liquidate) an underwater account
- useBuyCollateral: Allows users to buy collateral from the protocol during liquidation
- useGetAskPrice: Retrieves the ask price for collateral during liquidation
- useGetLiquidatorPoints: Retrieves the liquidator points for an account
- useGetReserves: Retrieves the reserves of the protocol
- useGetTargetReserves: Retrieves the target reserves of the protocol
- useGetCollateralReserves: Retrieves the collateral reserves of the protocol
useIsLiquidatable
TheuseIsLiquidatable
hook checks if an account can be liquidated.
Usage
Return Value
useAbsorb
TheuseAbsorb
hook allows liquidators to absorb (liquidate) an underwater account.
Usage
Return Value
useBuyCollateral
TheuseBuyCollateral
hook allows users to buy collateral from the protocol during liquidation.
Usage
Return Value
useGetAskPrice
TheuseGetAskPrice
hook retrieves the ask price for collateral during liquidation.
Usage
Return Value
useGetLiquidatorPoints
TheuseGetLiquidatorPoints
hook retrieves the liquidator points for an account.
Usage
Return Value
useGetReserves
TheuseGetReserves
hook retrieves the reserves of the protocol.
Usage
Return Value
useGetTargetReserves
TheuseGetTargetReserves
hook retrieves the target reserves of the protocol.
Usage
Return Value
useGetCollateralReserves
TheuseGetCollateralReserves
hook retrieves the collateral reserves of the protocol.