Loan - Liquidate
Loan - Liquidate
The following code example is provided to help you understand the business process. For commercial use, you must handle parameter validation and exception handling on your own.
This example is tested on the Polygon-Amoy chain. Information used in the example can be retrieved from the Source directory.
Code Example
Key Notes:
Order Hash: The
orderHash
must be retrieved from the creator's history API and is found in thef_order_hash
field.Liquidation Process: This operation triggers the liquidation of an overdue loan, allowing the lender to seize the collateral. No special handling is required for asset types or balances.
This example demonstrates how to initiate a loan liquidation on the Polygon-Amoy chain. Be sure to adjust the parameters as needed for your specific use case.
Last updated