Liquidation FAQs
What is Liquidation?
Liquidation is the process of selling collateral to cover the amount of HAI a user has generated from their Vault. Liquidation is the process of selling collateral to cover a user’s generated HAI. A Vault can be Liquidated if the value of its collateral falls below the required minimum level, called the Liquidation Ratio. During the Liquidation process, enough collateral is sold to cover the debt along with a Liquidation Penalty, leaving the remaining collateral available for withdrawal.
Why does Liquidation exist?
HAI is a proxy for the US Dollar, with the additional benefit of being fully backed by real value in the form of various collateral assets. Liquidation helps to ensure that HAI is always backed by an appropriate amount of collateral by closing-out Vaults that are under their minimum required Collateralization Ratio for their given collateral type.
Who triggers Liquidation?
To make sure that the required surplus of collateral exists at all times, a class of users called Keepers are incentivized to maintain a constant watch for Vaults that become under-collateralized. These Keepers are a special category of Hayker Protocol users. They are the actors in the system who are incentivized to make sure that the outstanding HAI supply remains fully collateralized and solvent. They help maintain the health of the entire ecosystem by ensuring that undercollateralized Vaults are offered up for Liquidation as quickly as possible. This is particularly important during rapid market downturns as the collateral value could be subject to slippage. keepers can use this bot to participate in liquidation:(Auction Keeper):https://github.com/BakerDAO-Fi/auction-keeper
What is the Liquidation Ratio?
The Liquidation Ratio is the minimum required collateralization level for each Vault type before it is considered undercollateralized and subject to Liquidation. The Hayker Protocol’s Oracle provide the system with pricing data that is used to track Vaults for when their Liquidation Ratio is breached. Once breached, they are available for Liquidation.
For example, a Vault with a 150% Liquidation Ratio will require a minimum $1.50 of collateral value for every $1 of HAI generated. If the value of the collateral falls to $1.49 it will be Liquidated to cover the generated HAI in addition to a fee called the Liquidation Penalty.
Each Vault type’s Liquidation Ratio is determined by a combination of the collateral’s risk profile and the Stability Fee. There may be multiple Vault types for each collateral, with varying Liquidation Ratios and Stability Fees.
What is the Liquidation Price?
This is the price at which a Vault becomes vulnerable to Liquidation. It is unique to each user’s Vault and moves up slowly as Stability Fees accrue.
What is the Liquidation Penalty?
This is a fee that is paid by Vault owners when their Vaults are Liquidated. The fee is added to the Vault’s total outstanding generated HAI when a Liquidation occurs, which results in more of the collateral being sold on Auction.
Proceeds from Liquidation Penalties are put towards the Surplus Auctions, which result in burned HKR.
Why is the Liquidation Penalty necessary?
The penalty is necessary to prevent Auction Grinding Attacks, which essentially break the Auction mechanism since an attacker can exploit the Hayker Protocol for profit.
What happens during a Liquidation?
Liquidation occurs through an Auction mechanism built into the Hayker Protocol.
The simplified order of operations looks like this:
A Keeper detects an undercollateralized Vault and triggers a Liquidation.
All of the collateral is put up for auction to cover the outstanding HAI + Liquidation Penalty
Once bids reach the HAI amount equaling to the outstanding HAI + Liquidation Penalty, the auction reverses and bidders now compete by offering to accept less collateral for the HAI they bid in the previous phase.
Once the auction completes bidders receive the sold collateral, the winning bidders HAI is burned, and the Vault owner receives leftover collateral if any remains.
For a more detailed guide on how Auctions and Keepers work see The Auctions Protocol on MakerDAO.
How much Collateral is left after a Liquidation?
Since Liquidations occur through Collateral Auctions, there is no way to accurately predict the exact amount of collateral one would receive.
How do I calculate my Liquidation Price?
The Liquidation Price for a given Vault is usually shown on front-ends that offer Vaults. Though one can manually calculate their Liquidation Price by using the following simplified formula:
Formula
Variable
Value
Generated HAI
1000 HAI
Liquidation Ratio
130%
Amount of Collateral
100 HT
Result
If we use HT as an example, it would need to fall to 13 USD before the Vault is considered undercollateralized by the system.
How do I calculate my Collateralization Ratio?
The Collateralization Ratio for a given Vault is usually shown on front-ends that offer Vaults. Though one can manually calculate their Collateralization Ratio by using the following simplified formula:
Formula:
Given that:
Variable
Value
Collateral Amount
100 HT
Collateral Price
20 USD
Generated HAI
1000 HAI
Result:
The Vault in this example has a Collateralization Ratio of 200%.
How do I lower my Liquidation Price?
If a user’s Vault is close to the Liquidation Price, they may either add more collateral or pay HAI back into the Vault.
The most efficient way a user can lower their Liquidation Price is to repay HAI. This also has the added benefit of reducing the Stability Fees that accrue for the owner of the Vault. This can be proven by the following example:
Formula:
Given that:
Variable
Value
Liquidation Ratio
130%
Collateral Amount
100 HT
Collateral Price
20 USD
Generated HAI
1000 HAI
Current Liquidation Price:
Liquidation Price change by adding 20 HT (20 HT * 20 USD =400 USD) worth of collateral:
Liquidation Price change by repaying 400 HAI:
What are typical practices to avoid getting Liquidated?
Remaining aware of a Vault’s condition is the Vault owner’s own responsibility. Ensuring that assets remain safe from Liquidation is entirely in the hands of each Vault owner. Below are some common practices to monitor the health of a Vault:
Vault owners could:
Set up price alerts for the collateral asset(s) being used.
Set up a personal rule that would require them to unwind their Vaults if the collateral price falls below a certain level, this may act as an additional buffer.
Make sure they have adequate access to their Vaults, especially during volatile periods in the markets.
Keep note of their Vault’s number. They can use it as a reference to have an external party payback HAI or add collateral on their behalf if they don’t have immediate access to their Vault.
Make sure they have access to emergency funds or assets that can be readily used to pay back HAI or add more collateral to their positions.
Remember that opening a Vault and generating HAI represents the creation of risk. Vault owners should be very cognizant of this fact and should use Vaults at their own risk.
How would a flash crash affect the Liquidation of Vaults?
A flash crash on a single exchange will not affect the system as Oracle aggregates prices from many sources. The Chainlink Oracle which HaykerDAO user calculates the median of these prices, which naturally filters outliers like a broken price from an exchange that’s experienced a flash crash.
Last updated