From fc2e11ecea637f52d8d1eb2e9af4fbed93836545 Mon Sep 17 00:00:00 2001 From: Eyal Ovadya Date: Sun, 14 Apr 2024 20:30:49 +0300 Subject: [PATCH] Mainnet WeETH Supply Cap Increase 20240414 --- lib/aave-address-book | 2 +- lib/aave-helpers | 2 +- lib/forge-std | 2 +- ...nnetWeETHSupplyCapsIncrease_20240414.s.sol | 37 +++++++++++++++++++ 4 files changed, 40 insertions(+), 3 deletions(-) create mode 100644 src/MainnetWeETHSupplyCapsIncrease_20240414.s.sol diff --git a/lib/aave-address-book b/lib/aave-address-book index 0641952..54437d2 160000 --- a/lib/aave-address-book +++ b/lib/aave-address-book @@ -1 +1 @@ -Subproject commit 06419522596afacd00604a8ab0a1e532cc6399ae +Subproject commit 54437d203e3edc724df997c1ad3b0595c56881c0 diff --git a/lib/aave-helpers b/lib/aave-helpers index 7da64a6..6567dae 160000 --- a/lib/aave-helpers +++ b/lib/aave-helpers @@ -1 +1 @@ -Subproject commit 7da64a6c8dfac96578d99b4f59c221a5f79e463b +Subproject commit 6567dae5143253858eeff93a8de4bd8c0563f353 diff --git a/lib/forge-std b/lib/forge-std index 1d0766b..e4aef94 160000 --- a/lib/forge-std +++ b/lib/forge-std @@ -1 +1 @@ -Subproject commit 1d0766bc5d814f117c7b1e643828f7d85024fb51 +Subproject commit e4aef94c1768803a16fe19f7ce8b65defd027cfd diff --git a/src/MainnetWeETHSupplyCapsIncrease_20240414.s.sol b/src/MainnetWeETHSupplyCapsIncrease_20240414.s.sol new file mode 100644 index 0000000..cce9e18 --- /dev/null +++ b/src/MainnetWeETHSupplyCapsIncrease_20240414.s.sol @@ -0,0 +1,37 @@ +// SPDX-License-Identifier: MIT +pragma solidity ^0.8.0; + +import {AaveV3EthereumAssets} from 'aave-address-book/AaveV3Ethereum.sol'; +import {IAaveV3ConfigEngine} from 'aave-helpers/v3-config-engine/IAaveV3ConfigEngine.sol'; +import {EngineFlags} from 'aave-helpers/v3-config-engine/EngineFlags.sol'; +import {CapsPlusRiskStewardMainnet} from '../scripts/CapsPlusRiskStewardMainnet.s.sol'; + +/** + * @title Update Supply Caps for weETH Ethereum V3 + * @author @ChaosLabsInc + * - Discussion: https://governance.aave.com/t/arfc-chaos-labs-risk-stewards-increase-supply-cap-for-weeth-on-v3-ethereum-04-14-2024/17363 + */ +contract MainnetWeETHSupplyCapsIncrease_20240414 is CapsPlusRiskStewardMainnet { + /** + * @return string name identifier used for the diff + */ + function name() internal pure override returns (string memory) { + return 'mainnetWeETHSupplyCapsIncrease_20240414'; + } + + /** + * @return IAaveV3ConfigEngine.CapsUpdate[] capUpdates to be performed + */ + function capsUpdates() internal pure override returns (IAaveV3ConfigEngine.CapsUpdate[] memory) { + IAaveV3ConfigEngine.CapsUpdate[] memory capUpdates = new IAaveV3ConfigEngine.CapsUpdate[](1); + + // weETH + capUpdates[0] = IAaveV3ConfigEngine.CapsUpdate( + 0xCd5fE23C85820F7B72D0926FC9b05b43E359b7ee, + 16_000, + EngineFlags.KEEP_CURRENT + ); + + return capUpdates; + } +}