# Gauntlet Aave V3 E-mode Methodology

## Simple Summary

On Aave V3, E-mode requires multiple considerations, including mitigating tail risks to protocols, optimizing user experience, and allowing on-chain liquidity to remain robust. E-mode, in particular, unlocks capital efficiency with specific risk tradeoffs that we will discuss below. Here we describe the main factors we consider in calculating E-mode recommendations.

Gauntlet provides initial conservative recommendations, and we will follow with an aggressive set of recommendations in the near future.

We may deviate from these methodologies in certain edge cases and in the event of very idiosyncratic or compelling developments.

## Methodology

Gauntlet uses the following to assess whether assets should get added to a stablecoin pool. The primary danger that manifests itself during stablecoin E-mode is when stablecoin prices diverge in a very short period of time. Given the pool LT (Liquidation Threshold) and pool LB (Liquidation Bonus), a potential candidate X should satisfy the following conditions for all other assets in the pool (in the examples below, we will call them Y):

• Pairwise price divergences, discounted by the mean price divergence for that pair over the time window, must be upper-bounded by 1 - LT.
• Have a buffer between the historically realized divergence with potential future divergences. The daily volatility computed from 15 min nonzero spread returns of X-Y should be less than 20% (1-LT).
• Have short-term returns correlated with the short-term returns of other stablecoins in the pool when returns are nonzero. Anticorrelated stablecoins lead to insolvency risk when unusual market conditions cause returns to move in opposite directions.
• Have 30-day historical pairwise liquidity condition, which is as follows:
• Take 10% of the supply cap of the smaller/less liquid asset
• Ensure that slippage of the trading the volume above will result in less than the LB (Liquidation Bonus) of the pool

All conditions should hold with respect to all other stablecoins before a potential candidate gets included in the pool. These conditions ultimately allow us to construct a stablecoin E-mode pool from the bottom up.
Given the events that have transpired, we will focus on the conservative recommendations at this time.

## Application of Methodology to Aave V3 Avalanche, Polygon, Arbitrum, and Optimism

Based on the above methodology, we recommend stablecoin E-mode pools across all chains to consist only of USDC, DAI, FRAX at a 97.5% LT, 97% LTV, and 1% LB.

• MAI does not satisfy condition 1. (See figure 1)
• USDT has negative correlation with USDC and every other stablecoin, so it does not satisfy condition 3. As Gauntlet has mentioned back in December, USDT lacks a healthy correlation with USDC. (See figures 3-6)

We do want to be transparent that this approach necessarily assumes price correlations among the assets. When we are simulating depegging events for one asset, we assume price correlations still hold in the normal condition for the rest of the assets, which may not be valid under some extreme market conditions. For example, there could be a smart contract issue breaking the peg for multiple assets at the same time. In these scenarios, the protocol may face outsized risk that cannot be easily protected by risk parameters prior to the event occurring.

# Next Steps:

• Welcome feedback from the community.

# Appendix

Figure 1. Stablecoin price difference with USDC for the last 12 months

Figure 2. Stablecoin price difference with USDC for the last 3 days

Figure 3. Stablecoin 15 min correlation matrix since 2022-03-01

Figure 4. Stablecoin 1 hr correlation matrix since 2022-03-01

Figure 5. Stablecoin 2 hr correlation matrix since 2022-03-01

Figure 6. Stablecoin daily returns from May 2022

5 Likes

Thanks @Pauljlei,

This is an important topic and we believe this methodology holistically addresses the main critical areas for e-mode stablecoins.

This makes sense given both DAI and FRAX are backed by USDC.

One concern is the potential change in USDC composition for coins like FRAX & DAI (more specifically DAI) over time which may cause the stablecoin’s returns to diverge from the rest. This will also likely only be realised in times of high uncertainty/volatility.

5 Likes

From the technical side, we would like to comment that similar to Liquidation Threshold, removing assets from an e-mode (same as migrating them to another e-mode) is most probably the most sensitive action in the protocol, as it will affect the live positions.

That being said, and following the approved framework on lowering the Liquidation Threshold progressively in certain cases, we believe being proactive on reducing risks of the protocol is something that should be done, even if affecting user positions, just always with caution, transparency, and good notification in advance.

3 Likes

Grouping stablecoins by their correlation seems to make the most sense in limiting risk.

I resonate with @WintermuteGovernance’s concern about DAI. With MakerDAO’s embrace of the Endgame plan and the current constitution vote - this collateral base is set to change.

How much room does this leave for flexibility in the future?

Also, which correlation coefficient would have merited MIMATIC’s inclusion? Seems to be higher than DAI on the 1-hour matrix, and FRAX on the 2-hour matrix.

2 Likes

What is exactly the use-case for eMode on stables?

To me it seems like it’s mostly for arbitraging between stables, so there’s not much use when market conditions are stable and might make the situation worse for aave in case one of the assets is depegged(like last week) as liquidators have a very small window of profitable liquidations not hurting the protocol.

Considering that removing assets from an eMode is essentially impossible, would it make sense to gradually derisk the eMode - instead of exploring different assets in stable eMode?
It might make sense to reconsider how reasonable “97.5% LT, 97% LTV, and 1% LB” are as risk parameters for stable eMode are at all?
I would imagine that with e.g. 93% LT, 92% LT and 2%LB(disclaimer: random numbers) the overall situation would have been better/ less bad as liquidations would have happened earlier and been more attractive? Ofc, at 88ct liquidations would still have happened with a loss.

3 Likes

This is a key question that we would value community input on. It is valuable for the community to align on what the intended use case for eMode is - arbitraging or otherwise, and then decide on the tradeoffs between removing assets or meaningfully reducing parameters on eMode (or a combination of both).

Hey all, we posted our evaluation of stablecoins emode following the depeg events over the weekend. The post suggests several options for mitigating stablecoin de-peg risk.

Additionally, we have also been working on a robust methodology for e-mode which we plan on publishing in the coming days. We look forward to the community discussion around the different methodologies and welcome any feedback.

Some feedback and questions from our side:

• Agreed with Wintermute’s comment.
• Do the LT/LTV figures for USDC and DAI and e-mode in general still hold with the changes in market conditions as of this past weekend? Is it not too risky?
• The methodology makes sense in general. Are there any other parameters you were considering and excluded?
• Why is it so difficult to remove assets from e-mode? Is it difficult to change the parameters as well?
1 Like

Thanks all for your feedback. We plan on publishing a Snapshot vote on 3/23/2023 and will provide multiple options to incorporate the community feedback above. We will keep the community posted and look forward to aligning on the community’s preference.

3 Likes

I’ve seen the following usecases for eMode on stables.

1.) Shorting/longing the Euro.
Some markets (polygon) offer stable-eMode for both EURO and USD denominated stablecoins. This was a popular way to bet against the falling EURO in H2 2022.

2.) Shorting USDT
Or more generally, people use eMode to short stables which, they view, are more likely to depeg (to the downside).

3.) Arbitrage (as mentioned earlier)

If we were to turn stablecoin eMode into ‘USDC eMode’ (DAI, FRAX, USDC) we would remove usecase 1 and parts of 2 and 3.

2 Likes

We posted our methodology and following recommendations here. For V3 Ethereum, we recommend slightly more conservative parameters (LT=96.5% and LTV=93%) and ask for this recommendation to be an option in the coming Snapshot vote.

We would like to highlight a few differences and points of emphasis on the methodology above:

1. We find that correlation is not an adequate metric to include or exclude assets from E-mode:
1. For example, two assets might have a high correlation simply because their prices are increasing, but the gap between them might be widening, leading to liquidations. Instead, we consider testing for the mean-reversion of pairwise prices, which eliminates the risk that correlations are spurious. These are sometimes referred to as stationarity tests.
2. The correlation results presented in figures 4, 5, and 6 may not be very significant due to the 15-minute time frame being too coarse. It may be more appropriate to look at all Chainlink oracle updates, and, if needed, resample data at short intervals (we use 45 seconds).
3. We find that reported negative correlations (e.g. -0.16 for USDT) are insufficient to discard assets from E-mode.
2. Could you kindly explain the methodology that Gauntlet follows to set the LTV? We find that the LT-LTV spread acts as a “buffer”, helping prevent retail users from getting liquidated. Although a 0.5% spread is reasonable, USDC/DAI borrowers who took a loan near the LTV could’ve been liquidated three times during the stablecoin depeg events last weekend and four times over the last year. In our methodology, we enforce a sufficiently wide gap, such that borrowers at or below their LTV are not liquidated with deviations of up to $\gamma$ from the mean price.
3 Likes

We have provided our stance on stablecoin E-Mode here.

Before recommending specific configurations and parameter recommendations for the E-Modes on the different V3 deployments, we think the community should align on its approach towards the stablecoin E-Mode in general. We recommend the coming Snapshot have the following options:

1. Aggressive parameters with a limited number of assets
• If the community chooses this approach, the recommendation would be to take USDT and MAI out of the current E-Modes
1. Conservative parameters and a wider range of assets
• If the community chooses this approach, we will follow-up with a proposal to decrease LTs and LTVs on the stablecoin E-Modes on the different deployments.
2 Likes

# Gauntlet Update

Following the community discussion thus far, Gauntlet provides the below options to the community. While we generally aim to provide a shorter list of options, in this case, given the diverse opinions of the community, we provide a greater set of options to encapsulate the comments above. We are appreciative of all the community involvement here.

In this case, it can be difficult for the community to make a decision without concrete figures, context, and expected impact (e.g., liquidations to users) of the different options. We hope the data and explanations below help clarify the tradeoffs for the community to make a thorough, transparent decision.

We aim to move expeditiously while allowing enough time for community discussion. Therefore, we target the below timeline:

• We will initiate Snapshot vote on Friday, 3/24/2023, with ample time for voting.
• Following the community’s preference via Snapshot, publish AIP on 4/10/2023 to give users enough time to adjust positions as needed.

As a reminder, these parameter recommendations are for V3 Avalanche, Optimism, Polygon, and Arbitrum.

# Recommendation Options

• Option 1: (Include all current assets) - 87% LT, 84% LTV, 2% LB.
• We recommend AGEUR to be removed from Polygon E-mode due to the AGEUR depeg and inability to repeg. However, for simplicity, we recommend an initial step of changing the LT and LTV parameters and then following up later to remove AGEUR.
• Option 2: (Gauntlet original) - DAI, USDC, FRAX (if already listed) at 97.5% LT, 97% LTV, 1% LB
• Option 3: (Gauntlet conservative) - DAI, USDC, FRAX (if already listed) at 95% LT, 93% LTV, 1% LB
• Option 4: Completely remove stablecoin E-mode from Aave V3

As @bgdlabs mentioned above, certain actions, such as removing assets from E-mode, can result in liquidations. For transparency, we have compiled approximated forced liquidation data here to summarize the impact of these options. To briefly summarize these,

Option Total Collateral Liquidated User loss to Liquidation Bonus
1 12,700,000 535,000
2 3,300,000 160,000
3 8,150,000 210,000
4 15,400,000 650,000

For illustration, we summarize the results for Optimism on Option 4 below. The other chains and options followed the same methodology.

### Optimism on Option 4

• ~130 liquidatable accounts
• ~$2.0M in collateral liquidatable [$2.1M in collateral supplied]
• ~$98K collateral lost to liquidation bonus Here is the breakdown of the top ten accounts contributing to losses from liquidation bonus: The top user 0x8c0fcf914e90ff5d7f2d02c1576bf4245fad2b7f is a recursive USDC borrower and contributes$32.7K in bonus paid to the liquidator if the position is liquidated.

# What is E-mode meant for?

Stablecoin E-mode presents a tradeoff between leveraged capital efficiency and enhanced fee generation versus overexposure to tail depeg events (as we saw with the SVB incident). The magnitude of the next black swan depeg is impossible to predict. Likewise, the insolvencies that occur at that future time will be dependent on the future loanbook and future liquidity are also impossible to predict. Indexing on the handful of past depeg events does not really capture future potential events and how dangerous they could be. The day-to-day variance and noise as stablecoins move around \$1 (or other benchmarks) is natural and does not contribute to insolvency risks.

Ultimately, it is up to the community to determine how emode should be used.

• Option 1: If the community wishes to enable various trading strategies, as noted by @sakulstra and @ghostlyenergy, it should pick option 1, as option 1 includes more assets.
• Option 2: If the community wishes to facilitate methods to borrow historically correlated assets, it should pick option 2, as option 2 assets are more heavily correlated.
• Option 3: Likewise, if the community wishes to provide a higher margin of safety in addition to option 2, it should pick option 3 instead. For example, if the community wishes to discount the future correlation of DAI with USDC per the predictions above noted by @WintermuteGovernance and @fig, the community may wish to choose this option.
• Option 4: Finally, if the community believes the tail risks of stablecoin emode outweigh having the above options, it should pick option 4.

## Next Steps:

• Initiate Snapshot vote on 3/24/2023.
• Following the community’s preference via Snapshot, publish AIP on 4/10/2023.

## FAQs:

DAI and USDC returns are highly correlated. If the community wishes to heavily index on the past black swan event, then the community may wish to set an even lower LT and LTV to accommodate buffer between the next black swan depeg event. The next depeg event may be even larger in magnitude.

The reason why it is difficult to simply toggle emode on/off is the forced liquidations that will occur. See the above spreadsheet for detailed liquidations breakdown at each option.

The spread between LTV and LT is less effective at mitigating insolvencies than LT. As you’ve noted, it is easily bypassed and is primarily meant to help less informed users mitigate liquidation risks and is a UI consideration. The spread is a function of pairwise metrics including correlation.

Thank you for bringing this point up. In the end, Gauntlet can only perform analysis on past data, and it is impossible to predict exactly how the composition of collateral that will be allowed to back DAI will evolve after the SVB incident, which will necessarily affect the relationship between pairwise returns in the future.

1 Like

Chaos Labs is supportive of option #1, which aims for a target LT of 87%, as we stated in our Methodology post. Additionally, to further protect retail users from liquidations, we propose setting a slightly more conservative LTV at 80%, keeping a wider margin from the LT.

Finally, if the suggested option is approved, we propose removing non-USD pegged assets, specifically agEUR and EURS, as they are unlikely to be mean-reverting or correlated. We agree that for simplicity, this decision could be made following the proposed changes above.

If the community does choose this option, it is important to provide alternative approaches for achieving the desired LT while having minimal impact on existing positions.

To address this, we suggest three alternative paths, each accompanied by data for each chain:

1. A 10.5% reduction (below is the data on liquidations for this reduction)

1. A 5.5% reduction, followed by another 5% decrease (below is the data on liquidations for the first 5.5% reduction)

1. Three separate reductions of 3.5% each (below is the data on liquidations for the first 3.5% reduction)

### Liquidation amounts per E-Mode LT

Based on the above information, we recommend implementing three consecutive 3.5% reductions to mitigate the impact on liquidations and user experience.
Note: Option 2 (A 5.5% reduction, followed by another 5% decrease) could be viable for Optimism and Arbitrum, but we prefer to be consistent with parameter settings across all chains.

2 Likes

Adding to our previous post in this thread, @sakulstra and @ghostlyenergy make good points about what e-mode is actually used for.

We are in favour of Option 1 and agree that for users to use e-mode, it just needs to offer more capital-efficient parameters than regular borrowing. This is achieved under Option 1 while still offering various trading strategies.

1 Like

Thanks for putting this forward @inkyamze

Our recommendation for a reduced LTV was not included in the Snapshot. According to the collaboration framework agreed upon, both risk providers carry out independent analyses. If a consensus is not reached, the community has the choice of selecting between the proposed recommendations.

Therefore, we ask Gauntlet to modify the Snapshot to include our recommendation for a lower LTV of 80% in option #1. This is to further protect retail users from liquidations by keeping a wider margin from the LT.

Furthermore, as we stated in the previous comment, the community should determine the steps to reach the LT target if this option is accepted.

Snapshot is up