Create
Data Widget
Data Dashboard
APR 13, 2022 • 17 Min Read
Seeking Alpha? Register for free to access key insights from our in-depth blockchain research.
Liquidations are a popular concept in the crypto asset market. With crypto’s volatility comes lucrative opportunities, but as the saying goes, there is no reward without risk. Liquidations refer to the process of a leveraged position being wound down due to the risk of impending insolvency. When this occurs, the assets a borrower/trader posted to guarantee repayment are seized – either partially or completely.
Users who have traded crypto derivatives or taken loans from DeFi money markets will be familiar with the concept of liquidations. While derivative based liquidations are far more prevalent, for the purpose of this report we’re going to zone in on money market centric liquidations.
In the wild west of DeFi, traders looking to increase their exposure with leverage or take a speculative bet on tokens, can take over-collateralized loans from popular money markets like Aave and Compound. This act, however, doesn’t come without risks. If the value of a borrower’s collateral decreases against the borrowed asset, the borrower’s collateral assets are subject to liquidation.
A good liquidation mechanism is essential for trustworthy money markets, and should help protocols weather periods of market volatility and illiquidity. In this report, we explore some of these mechanisms, and evaluate each of them across the key criteria that are crucial to a well-functioning liquidation system.
Avoiding the occurrence of bad debts is the primary aim of a liquidation design, as unliquidatable collateral is a loss typically borne by the protocol or socialized among token holders/depositors. Other considerations such as improving the access of liquidation surpluses and tempering the severity of penalties may also alleviate an otherwise unfortunate experience. We believe that a good design should refrain from crippling borrowers with overly harsh liquidation penalties, minimize the cost of carrying out a liquidation, and ensure that there is sufficient liquidity to unwind these positions – especially during torrid market conditions.
Taking these considerations into account, we created a framework to evaluate various liquidation mechanisms. The key factors can be distilled as follows:
The most straightforward type of liquidation mechanism is the fixed discount liquidation that Aave and Compound employ. In a fixed discount liquidation, loans within the liquidation threshold are able to be instantly liquidated at a predetermined discount. This liquidation discount typically depends on the asset used as collateral, with more volatile assets commanding a higher liquidation discount.
Aave allows liquidators to purchase up to 50% (close factor) of an underwater position at up to a 15% discount (depending on the collateral type) of the current market price. A liquidator must have sufficient balance of the debt asset before initiating the liquidation call to purchase the capital at a discount. Liquidators then engage in PGAs (Priority Gas Auctions) to determine who gets to liquidate the loan position.
The benefits of the fixed liquidation discount are clear. The liquidation discount, or liquidation spread, is known upfront, giving liquidators some certainty of profitability given a liquidation opportunity. Settlement is also done within the same block, avoiding long auction times which cost time and transaction fees. Liquidators can also make use of flash loans, which reduces the exposure of holding the assets needed to execute the liquidation.
However, due to limited space in an Ethereum block and the profitability of a liquidation, competition among liquidators has led to them over bidding in PGAs, in an effort to be the earliest. (Data between April 2019-2021 shows that 73.97% of the liquidations pay an above average transaction fee on Aave v1, Aave v2, Compound and dYdX). This gas war leads to MEV and network congestion, which could result in more liquidations as borrowers find it harder to re-collateralize their positions during periods of high transaction costs.
Furthermore, high close factors can be exploited by liquidators. Even if a loan would be sufficiently collateralized by liquidating e.g. 20% of the position, a profit maximizing liquidator would be incentivized to liquidate up to the maximum of 50% of the debt within one execution, as they are receiving more collateral at a discount to market prices. Over-liquidation is thus better for liquidators but worse for borrowers, which throws off the optimal game theory for both parties. Low close factors, on the other hand, could result in multiple liquidation transactions for the same loan position, increasing transaction costs and network congestion.
Furthermore, a fixed discount may not be sufficient to cover the transaction cost of small liquidations. Aave, for instance, has bad debt consisting of small positions that are unprofitable for liquidators to liquidate. On the other end of the spectrum, discounts can be overly harsh for large position sizes and thus discourage large borrowers. To illustrate both points, an ETH position worth 1m would have to suffer a liquidation penalty of a whopping $50k, while a small position of $1,000 has a $50 penalty – barely enough to cover a liquidator’s gas costs
Revisiting our original criteria, we summarize Aave and Compound’s fixed discount liquidation characteristics below.
Liquity championed the iconic stability pool design that has since gone on to be adopted by protocols like Vesta and Euler. Instead of relying on external capital provided by liquidators, the stability pool acts as a source of liquidity to repay liquidatable debt.
The stability pool is funded by those who deposit LUSD tokens (in the case of Liquity) into the pool. When a loan position is below the liquidation threshold, an amount corresponding to the remaining pools is instantaneously taken from the Stability Pool’s balance for debt repayment. In exchange, the entire loan position is transferred to the Stability Pool and distributed pro-rata to stability providers. Stability providers stand to benefit as they have “purchased” ETH at a discount with their LUSD.
Liquity’s stability pool has been fairly constant, with an average liquidation discount of ~9% and a weighted average of ~8%.
Stability pools are great because they are an internal and immediate source of liquidity for liquidation events. Instead of incurring price slippage and swapping on external DEXes, transaction costs for stability pool liquidations are lower since it only consists of an internal token transfer.
However, the stability pool mechanism doesn’t take into consideration the opportunity cost of capital. Profits are also not time weighted. This means that all stability providers receive the discounted collateral pro-rata, without consideration for who has had their capital in the pool the longest. As stability providers receive the collateral, there is also a risk that the price of collateral continues to drop even further before stability providers have the chance to liquidate it.
An interesting innovation that has developed alongside stability pools is B.Protocol’s Backstop Automated Market Maker (B.AMM) – an AMM that optimizes for money market liquidations. It allows for auto-compounding of the Stability Pool profits by automatically selling the liquidated collateral back into Stability Pool deposits.
The diagram above depicts the liquidation flow using the stability pool liquidity backstop, with and without the B.AMM.
A stability pool with or without the B.AMM:
The work flow for a stability pool that doesn’t integrate with B.Protocol’s B.AMM stops here
A stability pool with the B.AMM has a unique process flow:
One obvious drawback is that stability pools may earn slightly lower liquidation profits with the B.AMM as profits are shared with B.AMM discount buyers. However, the B.AMM lets profits auto-compound while reducing the liquidity provider’s exposure to the collateral asset. Adding LUSD back to the stability pool also deepens its liquidity. This further reduces the potential price impact of liquidations.
In the above two mechanisms, liquidations occur more or less near the predetermined discount level set by the protocol. In the following sections, we will examine auction style mechanisms with a dynamic liquidation discount.
Prior to Maker’s new liquidation module upgrade, its collateral auction consisted of an English auction, where potential liquidators submitted bids of increasing value followed by a possible reserve auction.
In the first auction, bidders would raise that bid by offering more DAI until it covered the outstanding debt or until the auction duration expired. A key point to note is that bidders must have sufficient DAI balance, and a successful bid is locked up for several blocks.
If sufficient DAI was offered to cover the debt in the English auction, it is followed by a reverse auction. If not, the collateral auction ends after the English auction; the winning bidder is awarded the collateral and the protocol incurs bad debt.
In the former case, bidders bid on accepting smaller parts of the collateral in the reverse auction, until the auction reaches the maximum duration, or until no bidder is willing to bid lower than the current bid. Thereafter, the winning liquidator is allowed to finalize the liquidation and receive the proposed collateral.
Maker’s liquidation 1.0 design resulted in lengthy liquidation durations of 2.06 ±,6.43 hours (mean ± standard deviation) on average. Having to lock up the bid amount also meant that liquidations couldn’t occur within the same block and flash loans cannot be used. The implication is that keepers would have to take on price exposure to the asset (an insignificant risk in Maker’s case as DAI is a “stable asset”). Also keepers could end up holding on to much needed liquidity during periods of low liquidity, exacerbating price volatility on exchanges.
The determinants of this system were very much exemplified during the market collapse of Mar. 12-13, 2020, where market conditions caused a over 50% drop in the value of ETH. At the time, DAI was backed solely by ETH collateral, triggering 4,447 liquidations as ETH’s price tanked. Demand for DAI surged as borrowers rushed to repay their DAI debt, causing DAI to trade overpeg.
The English auction design also famously gave rise to “zero bid auctions” where a number of collateral auctions were won by liquidators placing zero bids (i.e. they received someone’s ETH collateral without paying a single DAI). The issue as outlined by Maker was caused by a mix of network congestion and a lack of DAI liquidity, which prevented other liquidators from making new bids to contest the zero bids.
DAI spiked to over $1.12 as seen in the chart below.
Users had their collateral confiscated without any recourse in 36% of the triggered liquidations. Liquidator bots benefited the most at the expense of borrowers and the protocol.
In response to the shortcomings of their previous liquidation mechanism, Maker implemented Liquidations 2.0 in May 2021. Since then, the liquidation process has been streamlined into a single Dutch auction. Here the collateral is priced at a high initial bid that decreases deterministically over time until a willing buyer is found. If there is no willing buyer, the discount on the collateral increases up to a predetermined limit (thereby avoiding zero bids) or until the maximum auction duration is reached.
Therefore, at any point in time during the auction, potential liquidators must decide whether to jump in at the current offer or wait for the discount to increase. If the choice is the latter, the would-be liquidator risks giving it up to another liquidator willing to accept a smaller discount. Liquidators will thus choose to liquidate just when it is sufficiently profitable for them to take the bid.
Data from Maker’s auctions shows that collateral auctions that take a longer time to find a willing bidder typically result in a higher profit due to the larger discount on collateral.
Unlike before, auction settlement is now done within the same block of the liquidator accepting the bid, so flash loans can be used to bypass capital requirements of an English auction. However, though the liquidation process is shorter than the English auction, it still doesn’t compare with the immediacy of the fixed liquidation discount design.
We would also like to highlight a variant of the Dutch auction Euler finance uses, dubbed a “quasi Dutch auction”. In this version, the collateral’s liquidation bonus varies according to how underwater position is, up to a limit of 20%. For instance, if the health factor is 0.95, the liquidation bonus to the liquidator is 5%. [Liquidation Bonus = 1 – HF].
With either Dutch auction, there is no financial benefit for being early. Assuming that liquidators have different profit targets and/or breakeven points, the Dutch auction reduces the occurrence of expensive PGAs inherent in the fixed liquidation discount design. PGAs, however, still can happen if liquidators jump in to bid for collateral in the same block.
To combat this, Euler gives liquidators the ability to earn a “liquidation discount booster” if they lend on the protocol. The booster gives lender-liquidators the opportunity to front-run liquidators that have no stake in the protocol by helping them reach profitability in the Dutch auction before those without the booster. In this manner, the liquidation discount booster incentivizes lending, and further limits PGA wars as competition is limited and skewed in favor of lender-liquidators.
Perhaps the most useful characteristic of any form of Dutch auction is that it lets the liquidation discount vary with the size of debt, since larger loans can be liquidated profitably at a smaller percentage discount compared to smaller loans. By extension, the discount can also scale more effectively with gas costs of that particular period. During periods of network congestion, a higher percentage discount will be required to end the auction compared to lull periods all things held equal.
*Note: Liquidation Profit for Maker was calculated using 1 – (settlement amount/market value of collateral received). Settlement amount is the sum of the liquidation penalty and debt amount paid by the keeper to the protocol. Market value of the collateral receive is the amount of collateral sold multiplied by the (starting price/auction price multiplier)
The Liquidation Queue is an orderbook of bids for purchasing liquidated collateral, currently used in Anchor Protocol’s liquidation process. Users that would like to participate in the liquidations on Anchor may place UST bids at a liquidation discount of their choice between 1-30%, in 1% intervals.
The lower the discount, the higher up it is placed on the queue. During a liquidation event, a liquidator triggers the liquidation, and the collateral is sold into those bids from the highest bid to the lowest. The collateral is distributed pro-rata tp bids within each premium interval, and not based on the time of bid placement.
For a liquidation on Anchor, the minimum penalty to borrowers is 2% (1% for Liquidator that triggers the liquidation, 1% for liquidation fee accrued to the protocol) and the maximum would be 32% (1% for Liquidator, 1% for Liquidation Fee, 30% Maximum Discount or when queue is empty). Each borrower’s drawdown is dynamic, determined by remaining bids in the liquidation queue.
A liquidation queue provides a ready source of liquidity for liquidation events. In some cases, liquidatable collateral can be sold at a lower discount compared to the fixed discount model, but this is largely dependent on the amount of liquidity and where bidders choose to place their orders. In the case of bETH on Anchor, the liquidation spread currently concentrates around the 4-10% discount level, with a maximum of 11% since its inception last year.
Kujira Orca, Lighthouse Defi and Terra Toolbox have built easy to access UIs for any user that wishes to participate in Anchor’s liquidations. Some of these front-ends, such as Kujira Orca even allows bids in aUST, where users can earn Anchor yields while waiting for their bid to be filled. For their services, Kujira charges 1% on bid withdrawal, 0.5% on collateral withdrawal, and 20% of aUST earnings when bidding for collateral with aUST. While Lighthouse Defi and Terra Toolbox do not charge fees, they also do not support the ability to use aUST for bids.
Liquidations are largely a zero sum game between liquidators and borrowers. Whatever the borrower loses is gained by the liquidator (and sometimes the protocol). Thus, determining the best type of mechanism depends on what type of user you are. In the summary table below, we put various protocols side by side to qualitatively examine which platform is better suited for each type of user. Generally speaking, for those seeking a slice of liquidation profits, depositing in stability pools or liquidation queues have the low barriers to entry compared to running a keeper bot.
For borrowers with large loan positions, dynamic discount auction models should theoretically be more lenient, unless they have high liquidation surcharges as in the case of the 13% fee levied by Maker. For borrowers with small loan positions, fixed liquidation discounts are a prudent choice – though it may often be at the expense of the protocol. However, nothing is a one-size-fits all solution, as each money market may have additional features and specific parameters to mitigate some of the flaws in a certain liquidation mechanism.
We believe that liquidation processes should be influential in determining which money market to use, among other considerations. An optimal process could mean more lenient liquidation penalties for borrowers, or a lower risk of socialized bad debt for lenders and token holders should the unexpected happen.
Liquidation mechanisms have largely existed in DeFi as an insignificant feature of money markets. Often overlooked are the variations that have emerged and improvements that have taken place over the last few years. It’s during periods of market volatility where these liquidation mechanisms take center stage and prove their merit.
Readers also enjoyed