Aave V2 deprecation
Aave V2 deprecation
Author
BGD Labs @bgdlabs
Creator
0xf71fc92e2949ccF6A5Fd369a0b402ba80Bc61E02
Simple Summary
Propose to the community further non-invasive deprecation steps on the technical side, by setting the CF (Close Factor) to 100% allowing smoother liquidations, cleaning bad debt via a new ClinicSteward adapted for v2, and minor code adjustments.
Motivation
After years of v2 being in a deprecated stage, with the majority (or all) of the assets on Ethereum/Polygon/Avalanche being frozen or disabled for borrowing, we believe it is necessary to continue with progressive deprecation steps for the system.
Given that the pools are still relatively big (especially v2 Ethereum with approximately $300m in size), this phase is still not invasive to users, mainly focused on making smoother liquidations, for the DAO to be able to clean up all historic bad debt without systemically leaving dust.
This proposal is, even if independent, complementary to this other by @TokenLogic and the risk providers.
Specification
The proposal will execute the following two steps on each network:
-
Replace the
LendingPoolCollateralManagerwith a version implementing 100% CF (Close Factor). For clarity, this means that whenever a position is eligible for liquidation (when reaching 1 HF), the liquidator will be able to close 100% of the position, instead of 50% if over the Close Factor threshold. -
Grant
FUNDS_MANAGERrole from theCollectorto aClinicStewardV2smart contract, an adapted version of the one done HERE for Aave v3, for the DAO to clean up historic v2 bad debt with Collector’s funds. Additional details on its configuration:- The final budgets per pool are as follows:
- 1M $ on Ethereum core
- 1k $ on Ethereum AMM
- 2.5k $ on Avalanche
- 5k $ on Polygon
- The roles configuration of the steward will be the same as on v3’s for the superadmin (to not be really used). And a Dolce Vita EOA for the cleanup role, totally constrained by pre-defined budgets and on-chain logic.
- The final budgets per pool are as follows:
-
Do very minor changes to the precision of the system to have more compatibility with v3.
On the security side, the different components have been reviewed by Certora.
References
Aave V2 deprecation payloads
- Implementation: UpgradePayloadMainnet, UpgradePayloadAMM, UpgradePayloadPolygon, UpgradePayloadAvalanche
- Tests: UpgradePayloadMainnet, UpgradePayloadAMM, UpgradePayloadPolygon, UpgradePayloadAvalanche
Clinic Steward V2 activation payloads
- Implementation: ClinicStewardV2Activation
- Tests: ClinicStewardV2Activation
Other
Copyright
Copyright and related rights waived via CC0.