Liquidation
On LP Finance, there are two types of liquidation.
T1: Account with SOL or mSOL collateral
T2: Account with USDC collateral
T1 Liquidation
T1 liquidation is likely to happen when stability fee exceeds the value accural of SOL or mSOL. When using SOL as collateral, account is in higher risk of liquidation when not managed continuously. However, mSOL has a low risk of liquidation due to staking yields.
Additionally, as mSOL price is calculated using "True price" liquidation does not occur even if mSOL depegs.
Following are steps of T1 liquidation.
Liquidator triggers liquidation of target account
IF SOL, mint mSOL via calling Marinade Finance CPI
Target account's mSOL collateral transferred to Protocol Debt Vault
Target account's zSOL debt transferred to Protocol Debt Vault
Target account initialized
There is near-to-zero risk of bad debt for T1 liquidation. In case liquidation occurs, Protocol Debt Vault earns liquidation fees which is normally (100 - liquidation_threshold)%.
T2 Liquidation
T2 liquidation occurs when SOL price rises, which triggers LTV to increase. Following are steps of T2 liquidation.
Liquidator triggers liquidation of target account
Liquidator transfers mSOL to Protocol Debt Vault
Liquidator redeems USDC from target account
Target account's zSOL debt transferred to Protocol Debt Vault
The amount of USDC to be claimed with mSOL is calculated as follows.
Let's assume liquidating the following account
Collateral: 1000 USDC (1000 USD)
Debt: 32.5 zSOL (650 USD)
If liquidator transfers 16.25 zSOL (325 USD, assume 1 mSOL= 1 SOL),
In this case, liquidator was able to earn 175 USDC. The script is currently closed source, but users can interact with the UI to perform liquidation here.
Last updated