Replies: 3 comments 3 replies
-
Hey @0xbigz, This part isn't entirely clear:
What's meant to happen in that case? Does the keeper merely trigger placing the orders to sell the collateral and de-risk the perp on the respective order books, at a discount (likely crossing over price)? |
Beta Was this translation helpful? Give feedback.
-
Having through about this some more, I'm inclined to prefer option 1 - this might be habit and familiarity, but I think an approach where an individual takes over the debt right away is preferable overall, as it can lead to a variety of approaches and risk management strategies. Beside oracle/market standard deviation, I'd also consider some EMA of the oracle's update rate. Some markets have much flakier oracles, and the fact someone may be unable to place a derisk order because of an Invalid Oracle price error should be factored in - otherwise those markets are less likely to attract liquidators. Given this fee will be dynamic, it would be ideal canBeLiquidated returned not true/false, but 0 if not liquidateable, and a percentage if it can - that way liquidators can configure a minimum fee threshold of their own to do business in a market. |
Beta Was this translation helpful? Give feedback.
-
Quick update here, a hybrid of both suggestions above has been written / in the works: completed:
in progress: any example client using these are in progress for release @ricardojmendez would appreciate your feedback |
Beta Was this translation helpful? Give feedback.
-
Liquidations on Drift involve assuming control of asset/liability pairs based on premium/discount compared to the oracle, without consideration for market price. Despite attempts to stagger liquidations across a brief interval per account, the process operates on a first-come, first-served basis.
Two potential enhancements are identified:
liquidator_fee
A fixed
liquidator_fee
proves inadequate in scenarios of supply/demand mismatch:Proposing a dynamic fee based on the following factors:
The parameter for liquidation fee could specify a clamp (minimum and maximum) for this dynamic fee.
Opening liquidation orders on user accounts and relying on a competitive fill system:
Both options aim to protect protocol users from excessive fees and enhance the security of Drift.
Open call for additional factors to consider.
Beta Was this translation helpful? Give feedback.
All reactions