You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/overview.md
+31-7Lines changed: 31 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -77,17 +77,15 @@ Users interact with the Spokes, which then interact directly with the Hubs. The
77
77
78
78
The debt interest of each user is directly impacted by the quality of the assets used as collateral. The risk level (quality) of the collateral assets of the user determines the additional charge for borrowing, on top of the asset's base rate (i.e., the asset's drawn rate).
79
79
80
-
## Premium
81
-
82
-
### Collateral Risk
80
+
## Collateral Risk
83
81
84
82
The Collateral Risk $CR_i$ is specified by the quality of the asset $i$, which is a BPS value, ranging from 0 to 1000_00. A value of 0 means highest quality and risk-free, while a value of 1000_00 signifies the lowest quality and maximum risk possible for a collateral.
85
83
86
84
This parameter is configurable and part of the Spoke's risk parameters. This means the same asset can have a different Collateral Risk value across Spokes.
87
85
88
86
$CR_i$ is the Collateral Risk of the asset $i$
89
87
90
-
###User Risk Premium
88
+
## User Risk Premium
91
89
92
90
The User Risk Premium $RP_u$ represents the quality of assets used as collateral by the user $u$ to borrow against. It depends on multiple dynamic parameters:
93
91
@@ -101,7 +99,7 @@ An update can also be permissionlessly triggered (`updateUserRiskPremium()`) by
101
99
102
100
$RP_u$ is the Risk Premium of the user $u$
103
101
104
-
###Risk Premium Algorithm
102
+
## Risk Premium Algorithm
105
103
106
104
The algorithm used to calculate risk premium for a given user position follows these steps, with the purpose of finding the corresponding amounts of collateral assets which are sufficient to cover the position's debts, in base currency. The weighted average of the Collateral Risk of these collateral assets is then calculated to yield the User Risk Premium:
Operationally, the premium is implemented via additional virtual debt shares (“premium shares”) that increase interest accrual but are never repayable principal. We separate this component from principal interest by tracking a premium offset in asset units. At borrow time, the offset is set so that, in asset terms, it exactly equals the value of the premium shares. As time elapses, interest accrues on the premium shares causing their asset value to exceed the offset; the excess is the premium. Premium shares are recorded in share units. The premium offset is recorded in asset units.
139
137
140
-
A user’s accrued premium debt at any time equals the assets value of their premium drawn shares minus the premium offset. On user actions, this accrued amount is moved to a realized‑premium variable and both the premium drawn shares and premium offset are reset, since the Risk Premium of a user may change and the accounting must be recalibrated.
138
+
A user’s accrued premium debt at any time equals the assets value of their premium drawn shares minus the premium offset. When a user’s Risk Premium changes, the system refreshes premium accounting (via the Hub’s `refreshPremium` mechanism) to recalibrate premium shares and the offset without changing the user’s total accrued premium amount.
139
+
140
+
## Refresh Premium Mechanism
141
+
142
+
When a user's Risk Premium changes due to specific actions (such as disabling collateral, withdrawing collateral, or explicitly updating the risk premium), the system must recalibrate the premium accounting without altering the user's total accrued premium debt. This is achieved through the Hub's `refreshPremium` function.
143
+
144
+
The refresh mechanism preserves the total premium debt while updating the premium shares and offset to reflect the new Risk Premium. This ensures that:
145
+
146
+
- The user's previously accrued premium debt remains unchanged
147
+
- Future premium accrual reflects the updated Risk Premium
148
+
- The accounting system maintains consistency across premium recalculations
149
+
150
+
Actions that trigger a premium refresh include risk‑increasing events that can change $RP_u$, such as `disableUsingAsCollateral()`, `withdraw()` when withdrawing collateral, and explicit `updateUserRiskPremium()` updates (user-initiated or permissioned by the Governor). In these flows, `refreshPremium` updates premium shares and the offset so the total premium debt stays constant, while future accrual reflects the new Risk Premium.
Aave V4 includes a Reinvestment Module that provides the infrastructure to allocate idle liquidity from the Hub to external strategies. The module is intentionally strategy‑agnostic: it establishes the framework and mechanisms without prescribing specific strategy implementations. Whether and how the module is utilized is entirely a governance decision.
194
+
195
+
The Reinvestment Module offers an optional tool to support capital efficiency when deemed appropriate by the Governor. Key characteristics include:
196
+
197
+
-**Governance‑Controlled**: The Governor manages all funds allocated to reinvestment strategies. Decisions on strategy selection, risk parameters, and operational guidelines are exclusively governance responsibilities.
198
+
-**Opt‑In for Users**: Participation in reinvestment is not compulsory. Users can choose whether to allocate their supplied liquidity to reinvestment strategies or maintain their position in the standard Hub pool.
199
+
-**Enhanced Yields**: Reinvestment provides the potential for higher yields to liquidity providers who opt in, as idle capital can be deployed to generate additional returns beyond the base interest from borrowers.
200
+
-**Risk Allocation**: Any losses incurred from reinvestment strategies are absorbed by the Governor treasury, protecting individual liquidity providers from direct exposure to strategy‑specific risks.
201
+
-**Optional by Design**: The module can remain disabled, leaving the core lending and borrowing system unchanged. When disabled, all liquidity remains in the Hub without external deployment.
202
+
203
+
The reinvestment infrastructure enables the protocol to optimize capital efficiency while maintaining user choice and clear risk allocation. Implementation details, strategy selection, and risk management frameworks are governance decisions that can evolve based on protocol needs and market conditions.
204
+
181
205
# Dynamic Risk Configuration
182
206
183
207
One of the major risk‑side limitations of V3 lies in its single, global risk configuration per asset. This design creates significant governance overhead and potential user harm through unexpected liquidations, as any parameter change, in particular lowering the liquidation threshold, immediately affects every open position.
0 commit comments