From 44c8c4c17cbb525e01b8fb7078cf3703a1c5db04 Mon Sep 17 00:00:00 2001 From: Eyal Ovadya Date: Thu, 25 Apr 2024 00:28:29 +0300 Subject: [PATCH] Mainnet WeETH Caps Increase 20240425 --- lib/aave-address-book | 2 +- lib/aave-helpers | 2 +- lib/forge-std | 2 +- src/MainnetWeETHCapsIncrease_20240425.s.sol | 37 +++++++++++++++++++++ 4 files changed, 40 insertions(+), 3 deletions(-) create mode 100644 src/MainnetWeETHCapsIncrease_20240425.s.sol diff --git a/lib/aave-address-book b/lib/aave-address-book index 0641952..405e6b4 160000 --- a/lib/aave-address-book +++ b/lib/aave-address-book @@ -1 +1 @@ -Subproject commit 06419522596afacd00604a8ab0a1e532cc6399ae +Subproject commit 405e6b4b94ada8f9b7b9f8aa3d1ec8fc48519ba6 diff --git a/lib/aave-helpers b/lib/aave-helpers index 7da64a6..a574110 160000 --- a/lib/aave-helpers +++ b/lib/aave-helpers @@ -1 +1 @@ -Subproject commit 7da64a6c8dfac96578d99b4f59c221a5f79e463b +Subproject commit a574110bf9b0f5a2c9efcd8cc66c8f05200baeb1 diff --git a/lib/forge-std b/lib/forge-std index 1d0766b..93340e7 160000 --- a/lib/forge-std +++ b/lib/forge-std @@ -1 +1 @@ -Subproject commit 1d0766bc5d814f117c7b1e643828f7d85024fb51 +Subproject commit 93340e7e6127c817e276bc956b4f4ed13d173449 diff --git a/src/MainnetWeETHCapsIncrease_20240425.s.sol b/src/MainnetWeETHCapsIncrease_20240425.s.sol new file mode 100644 index 0000000..ee816a1 --- /dev/null +++ b/src/MainnetWeETHCapsIncrease_20240425.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 Caps for weETH Ethereum V3 + * @author @ChaosLabsInc + * - Discussion: TODO + */ +contract MainnetWeETHCapsIncrease_20240425 is CapsPlusRiskStewardMainnet { + /** + * @return string name identifier used for the diff + */ + function name() internal pure override returns (string memory) { + return 'mainnetWeETHCapsIncrease_20240425'; + } + + /** + * @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( + AaveV3EthereumAssets.weETH_UNDERLYING, + 48_000, + 3_200 + ); + + return capUpdates; + } +}