FAQ
Liquidations
2 min
a liquidation is the process where a vault that fell below the minimum collateral ratio is closed, its funds are withdrawn and the debt paid by an external participant liquidations / liquidators are key in keeping the stablecoins pegs because their job is maintaining the protocol with enough collateral to back up their price when does a liquidation occur? a vault's liquidation is open as soon as the collateral ratio of the vault falls below the minimum collateral ratio unless the protocol is in panic mode (learn more about it here) the liquidation occurs when a liquidator or the safety pool pays out the vault's debt by depositing the current debt's amount in the stablecoin denomination issued when the vault was created this process (the safety pool doesn't get charged by this fee) of the collateral withdrawn, the profit for the liquidator is the percentage between the debt's amount and the total collateral withdrawn you can calculate your expected profit like this liquidation cost and profit dv = debt value = $10,000 cd = collateral deposited = $xlm 115,011 3301124 cp = collateral price = $0 0936 cn = dv / cp = collateral needed = $xlm 106,837 6068 ff = flat fee = 0 005 fp = cp ff = fee paid = $xlm 575 0566506 cr = cd fp = collateral received = $xlm 114,436 2735 pc = cr cn = profit in collateral asset = $xlm 7,598 666662 profit in terms of stablecoin = pc cp = $711 2351996 in the example above, a vault with a debt of $10,000 was in liquidation mode at a collateral price of $0 0936 and a deposit of $xlm 115,011 3301124 you as a l iquidator , pay back its debt by depositing $10,000 in the vault's stablecoin denomination and you get back the collateral deposited ($xlm 115,011 330112) minus the current protocol's fee ($xlm 575 0566506) you ended up with a total of $xlm 114,436 2735 which is valued at $10,711 2352 and that means you profited from the liquidation a total of $711 2351996 in terms of your initial deposit can i lose funds while liquidating a vault? if you liquidate below 100% of the collateral ratio, you will end up with less value in collateral than the one you used to pay the vault's debt and liquidate it this scenario is unlike to happen because more liquidators or the safety pool would have liquidated it already to get the profits in order yo avoid such loses we suggest always checking the current collateral ratio of the vault before trying to liquidate it