- @cameseninGovernance+2•3
$DRIFT In-depth feedback on Drift Protocol's risk engine & JIT liquidity auction:
Testing the cross-margin subaccount architecture during high-volatility slots highlighted that the 5-slot JIT (Just-In-Time) auction window provides strong protection against taker slippage under standard market conditions. However, when monitoring oracle confidence intervals via Pyth and Switchboard, there is an edge case: if network congestion increases slot latency, orders near the 110% maintenance margin threshold can face liquidations before the user can re-collateralize via isolated vaults.
Suggested improvement for builders:
1. Add automated conditional de-risking: allow users to set an automated auto-deposit rule from an isolated collateral subaccount when margin health drops below 115%.
2. Implement dynamic Compute Unit (CU) price scaling specifically for margin liquidation buffers so risk-mitigation transactions land reliably during turbulent blocks.
Overall, the UX is among the slickest in DeFi, but finer latency-aware margin buffers would significantly improve capital safety for leveraged traders.