Skip to content
NAVIDocs
Open app
Skip to Content

Liquidation Execution Guide

Identify an eligible position, check its reserve parameters and simulate a liquidation transaction.

Identify an eligible position

Read collateral, debt and oracle prices for the same market and account. A Health Factor below 1 makes a position eligible for liquidation. The market’s close factor limits how much debt can be repaid in one transaction.

Choose the entrypoint

Use the current Lending Core liquidation signature and package ID. Integrators can construct a transaction on demand or monitor lending events for candidate accounts.

Required inputs

Identify the borrower, the debt asset and reserve, the collateral reserve, and the available debt coins. Check eligibility and any market-specific liquidation restrictions. Read the applicable risk parameters and oracle configuration.

Construct and simulate the call

Use the Move argument types in the linked signature. Update the required price feeds, simulate the transaction with the intended amount, and inspect the effects and gas estimate before submission.

Monitor execution

Refresh balances, prices and parameters before each attempt. Inspect the transaction effects after execution. Another transaction may have changed the account’s debt or collateral since the initial query.

Calculating profitability vs gas cost

Compare the value of collateral received with the value of the repaid debt, expected gas and any costs of exchanging the collateral. Use the reserve’s token decimals and the current oracle feeds.

Example liquidation scenario

Suppose collateral is worth $100 with a 70% liquidation threshold. With $50 of debt, the Health Factor is 1.4. If the debt rises to $75 while collateral value stays constant, it falls to about 0.93. Apply the reserve’s close factor and liquidation bonus to the amount eligible for repayment.

On this page