-
Notifications
You must be signed in to change notification settings - Fork 232
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Minimum acceptable Liquidation Contract #4568
Comments
@turadg For Restival, create a new ticket to clean up liquidation selection in Vault Manager. |
The problem statement isn't clear to me. Why should we protect against "large vaults (relative to AMM pool size) coming up for liquidation"? What bad thing happens if we don't? |
Problem statement updated to clarify |
What is the Problem Being Solved?
Our existing liquidation contract sells vaults on the AMM one at a time until liquidations are complete. However, there is no protection against large vaults (relative to AMM pool size) coming up for liquidation, such as the $65m vault that was liquidated on Maker several weeks ago. A sale of a large vault relative to the collateral in the liquidity pool would cause a large price impact and lead to significant losses for the RUN Protocol.
For reference, the price impact of a trade on an X*Y=K curve is 2x the size of the trade relative to the size of the pool. For example, a $10m trade on a pool with $50m in liquidity would lead to a drop in price received for the trader of 40% (2 x 20%).
This ticket is to create a new liquidation contract which implements controls on the sale to minimize price impacts.
Description of the Design
Specific elements include:
Raw notes from previous discussion:
-- Limit size of sales to limit price impact to a threshold (0.1% of pool size - controllable by governance)
-- We expect Liquidator to pay gas fees out of execution fees it got from everyone else
-- Delay between sale actions by controllable parameter (10 seconds)
-- Message to liquidation engine that says “ok I’m done now”
-- Cohort model to be defined as we go
Security Considerations
Test Plan
ref: #3533
The text was updated successfully, but these errors were encountered: