The transaction block to add the liquidation operation to
Asset identifier for the debt being repaid
Coin object containing the debt repayment amount
Asset identifier for the collateral being liquidated
Address of the borrower being liquidated
Optional
options: Partial<EnvOption>Optional environment configuration
Tuple containing [collateralBalance, remainDebtBalance] where: - collateralBalance: The collateral received from liquidation - remainDebtBalance: Any remaining debt after liquidation
Create a liquidation transaction in the PTB (Programmable Transaction Block)
This function allows liquidators to liquidate a borrower's position by repaying their debt in exchange for their collateral. The liquidation process uses flash loans to ensure atomic execution of the liquidation transaction.