For the complete documentation index, see llms.txt. This page is also available as Markdown.
Liquidation Function
Liquidate
This function allows you to liquidate an obligation account that has unhealthy condition. Anyone can perform the liquidation if the obligation is in unhealthy condition. Additionally, you need to update the oracle price before proceeding with the liquidation.
We recommend you to call this function using our Scallop SDK, so before calling any function related to liquidation, you need to call update price in the beginning of the PTB (Programmable Transaction Block).