Liquidation
How It Works
βΉοΈ Overview: This section explains how the liquidation process works in the protocol, covering the steps from triggering a liquidation to the auction process.
β
1. Triggering Liquidation (bark Call)
bark Call)π‘ If a Vault becomes under-collateralized, liquidation can be triggered via the bark function.
Parameters:
π¦
ilkβ Specifies the type of collateral (e.g., WEDU).π
urnβ The Vault (CDP) being liquidated.π·
kprβ The Keeper executing liquidation (rewarded for executing the process).
WEDU ilk = 0x5745445500000000000000000000000000000000000000000000000000000000β
2. Starting a Dutch Auction
βοΈ If the Vault meets liquidation conditions, its collateral is put up for auction.
π½ Dutch Auction Process:
Starts with a high price.
Gradually decreases over time until a bidder accepts.
β
3. Full vs. Partial Liquidation
Liquidation can happen in two ways:
πΉ Full Liquidation
β The entire Vault is liquidated.
πΉ Partial Liquidation
β οΈ Only part of the Vault is liquidated if:
Dirt > Holeβ The system-wide debt ceiling is exceeded.ilk.dirt > ilk.holeβ The collateral-specific debt ceiling is exceeded.
β
4. Preventing Dusty Liquidations
β If the remaining debt after liquidation is too small (ilk.dust), the liquidation fails.
π This prevents uneconomical liquidations where Keepers wouldn't profit.
If this happens, the function reverts with:
π¨ "Dog/dusty-auction-from-partial-liquidation"
β
5. Calling Clipper.kick() to Start the Auction
Clipper.kick() to Start the Auctionπ’ Once liquidation is confirmed, the function calls Clipper.kick() to start the auction.
π§ Auction Parameters:
π°
tabβ The total DAI debt to be recovered.π¦
lotβ The amount of collateral being auctioned.π§βπΌ
usrβ The owner of the liquidated Vault.π·
kprβ The Keeper executing the liquidation.
π― Tip: You can track auction progress using on-chain explorers and real-time dashboards.
Liquidation Parameters
βΉοΈ Overview: This table explains key parameters involved in the liquidation process, including their definitions and roles.
Parameter
Description
ilk
The collateral type (e.g., WEDU) associated with the Vault (CDP).
urn
The address of the Vault being liquidated.
kpr
The Keeper executing the liquidation (receives a liquidation reward).
bark
The function used to trigger liquidation when a Vault is under-collateralized.
Hole
The global debt limit for auctions (if exceeded, liquidations are limited).
Dirt
The total outstanding debt across all auctions.
ilk.hole
The debt limit for a specific collateral type.
ilk.dirt
The outstanding debt for a specific collateral type.
ilk.dust
The minimum debt size for liquidation (prevents "dusty" liquidations).
tab
The total DAI debt to be recovered in the auction.
lot
The collateral amount being auctioned.
top
The starting price in the Dutch auction.
tail
The time limit before an auction resets.
cusp
The price drop percentage that triggers an auction reset.
tau
The time duration after which an auction reaches 0 price.
Clipper.kick()
Function to start the auction after a Vault is liquidated.
How These Parameters Work Together
The Keeper calls
bark()to trigger liquidation when a Vault is at risk.The system checks if
Dirt > Holeorilk.dirt > ilk.holeto determine if full or partial liquidation occurs.If the remaining debt is too small (
ilk.dust), the liquidation is canceled.If the liquidation is successful,
Clipper.kick()starts a Dutch auction with an initial price (top) that drops over time (tau).If no bids occur, the auction resets when price falls below
cuspaftertailseconds.
Last updated