Over the past month, the USDC depeg and the Euler hack have highlighted several vulnerabilities in our Core Module, emphasizing the need for a better model that reduces risks for agToken holders.

That being said, we would like to present the current state of our thoughts regarding the design of a "Core Module V2" for the protocol. Our aim is not to delve into technical details but rather to discuss the overall plan to ensure we are moving in the right direction.

Objectives

To begin, we will outline the key requirements that the future system must meet:

  1. The design should allow for mints and burns with low slippage to allow easy usage of the stablecoin and enable smooth Borrow Module liquidations.
  2. The design should be scalable.
  3. The design should be able to autonomously withstand unforeseen events, such as black swan events or hacks, without requiring any governance intervention.
  4. The design should treat all stablecoins holders equally in the event of a black swan event, without any bank run possibility.
  5. The design should be robust enough to accept any backing denominated in Euros, including stablecoins, yield-bearing tokens, and real-world assets.
  6. The design should be able to properly diversify and segregate risks among all the assets comprising its backing. This is a challenging task as the natural tendency is that automated systems are frequently left holding the weakest assets.
  7. The design should not expose users to any foreign exchange risk.

Overall, these requirements will help ensure that the new Core Module V2 is reliable, resilient, and fair for all users.

Design

Now, here is the design we have in mind. Let’s explain the design we have in mind through the scope of a € stablecoin (agEUR) backed by a basket of €-denominated assets.

For example, assume there are two assets, EURA and EURB, and the current reserves are 1 million EURA and 2 million EURB, respectively, backing 3M agEUR. We denote by $p_{A}$ and the EURA/EUR and EURB/EUR prices.

The system will involve three primary actions: