Deposit Caps Risk Framework
A simplified framework for rapidly estimating deposit caps in money markets using liquidation modeling and on-chain liquidity analysis.
Last updated
A simplified framework for rapidly estimating deposit caps in money markets using liquidation modeling and on-chain liquidity analysis.
Last updated
This methodology provides a streamlined approach to estimate deposit caps for money markets between the main RF runs []. Due to the time-intensive process required by the full framework, this simplified version enables rapid cap evaluation and monitoring at interim points.
is the minimum liquidation bonus
is the on-chain depth (available liquidity with slippage )
is the optimal utilization threshold (80% is used for all assets for simplicity)
is the liquidated portion of the debt
are the liquidated funds
is the total on-chain liquidity
is the recovery time for DEX liquidity to get restored after massive liquidation
Consider an arbitrary liquidation of size . Suppose it takes minutes for the DEX liquidity ( depth) to get restored.
In this case, a liquidation will be composed of iterations, where each iteration will take minutes, and will execute -th of the liquidation. In total time units will elapse before the liquidation is fully executed.
Hence, the liquidation period can be estimated as follows:
Let is a known liquidation period. If the debt is not liquidated over this period, it goes bankrupt. To estimate Loan-to-Value (LTV) risk parameters, we assume a minimum one-day liquidation period. In 99% of cases, even extreme price changes within this period should not result in bankruptcy. Therefore, the deposit cap can be set at an amount that can be liquidated within this timeframe ().
From this equation, we can find the maximum amount that can be liquidated within a duration of assuming a periodic recovery occurs every hours:
Estimation of liquidatable amount :
If of all borrowed funds are liquidated, the corresponding amount of collateral liquidated will be:
where is the liquidation bonus.
The deposit cap can be determined by solving the following equation:
From which we have the model deposit cap:
The model cap is limited by an expert-based cap, which is set at 150% of the total on-chain liquidity:
For new markets the cap is set at 30% of the total on-chain liquidity.
Linear recovery of on-chain liquidity after liquidation
No market impact of liquidations on the price (liquidation cascade is not modelled)
Deposit caps are determined independently for each market, disregarding combined effects
These simplifying assumptions are offset by using conservative parameters for the recovery period and liquidatable portion, alongside expert-derived caps.
The key model parameters are:
is the liquidated portion of the debt
is the recovery time for DEX liquidity to get restored
Historical data should be used to estimate both parameters.
The liquidatable portion, determined by the account's simulation algorithm, is conservatively set at 30% for all assets in this simplified risk framework. Simulations indicate that this percentage typically ranges from 5% to 25%.
Estimating the liquidity recovery period following significant liquidations is challenging due to the difficulty in acquiring data on extreme on-chain liquidation events. However, observed arbitrage activity typically restores liquidity within minutes.
We conservatively consider three parameters:
Base - 6h
Optimistic - 2h
Pessimistic - 12h
is the total on-chain liquidity
For xyk-type pool, the 5% depth is determined as follows:
Then
For PCL-type pool, we can apply adjustment of ~1.5x to increase the depth:
Then
The expert cap is set to 150% of Q. So, the final cap would be: