From 03edeb648d063af9b14e8a36a181cbadf15575f7 Mon Sep 17 00:00:00 2001 From: DanielYamin Date: Sun, 21 Apr 2024 17:52:09 +0300 Subject: [PATCH 1/2] Update caps --- lib/aave-address-book | 2 +- lib/aave-helpers | 2 +- lib/forge-std | 2 +- src/ArbitrumWeETHCapsIncrease_20240421.s.sol | 37 ++++++++++++++++++++ 4 files changed, 40 insertions(+), 3 deletions(-) create mode 100644 src/ArbitrumWeETHCapsIncrease_20240421.s.sol diff --git a/lib/aave-address-book b/lib/aave-address-book index 0641952..2844c2a 160000 --- a/lib/aave-address-book +++ b/lib/aave-address-book @@ -1 +1 @@ -Subproject commit 06419522596afacd00604a8ab0a1e532cc6399ae +Subproject commit 2844c2a2da439eeaf1769021f984928f1977e0df diff --git a/lib/aave-helpers b/lib/aave-helpers index 7da64a6..31ee364 160000 --- a/lib/aave-helpers +++ b/lib/aave-helpers @@ -1 +1 @@ -Subproject commit 7da64a6c8dfac96578d99b4f59c221a5f79e463b +Subproject commit 31ee36457e84e41cc1d328cd923d226557c3fa10 diff --git a/lib/forge-std b/lib/forge-std index 1d0766b..5dd1c68 160000 --- a/lib/forge-std +++ b/lib/forge-std @@ -1 +1 @@ -Subproject commit 1d0766bc5d814f117c7b1e643828f7d85024fb51 +Subproject commit 5dd1c68131ddd3c89ef169666eb262b92e90507c diff --git a/src/ArbitrumWeETHCapsIncrease_20240421.s.sol b/src/ArbitrumWeETHCapsIncrease_20240421.s.sol new file mode 100644 index 0000000..5f758c8 --- /dev/null +++ b/src/ArbitrumWeETHCapsIncrease_20240421.s.sol @@ -0,0 +1,37 @@ +// SPDX-License-Identifier: MIT +pragma solidity ^0.8.0; + +import {AaveV3ArbitrumAssets} from 'aave-address-book/AaveV3Arbitrum.sol'; +import {IAaveV3ConfigEngine} from 'aave-helpers/v3-config-engine/IAaveV3ConfigEngine.sol'; +import {EngineFlags} from 'aave-helpers/v3-config-engine/EngineFlags.sol'; +import {CapsPlusRiskStewardArbitrum} from '../scripts/CapsPlusRiskStewardArbitrum.s.sol'; + +/** + * @title Update Caps for weETH Arbitrum V3 + * @author @ChaosLabsInc + * - Discussion: https://governance.aave.com/t/arfc-chaos-labs-risk-stewards-increase-supply-and-borrow-caps-for-weeth-on-v3-arbitrum-04-21-2024/17433 + */ +contract ArbitrumWeETHCapsIncrease_20240421 is CapsPlusRiskStewardArbitrum { + /** + * @return string name identifier used for the diff + */ + function name() internal pure override returns (string memory) { + return 'ArbitrumWeETHCapsIncrease_20240421'; + } + + /** + * @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( + 0x35751007a407ca6FEFfE80b3cB397736D2cf4dbe, + 2_000, + 200 + ); + + return capUpdates; + } +} \ No newline at end of file From 1d482a7d0dfee981a1000091371e034cef6985e2 Mon Sep 17 00:00:00 2001 From: DanielYamin Date: Sun, 21 Apr 2024 23:11:13 +0300 Subject: [PATCH 2/2] Reverted changes in lib directory --- lib/aave-address-book | 2 +- lib/aave-helpers | 2 +- lib/forge-std | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/aave-address-book b/lib/aave-address-book index 2844c2a..0641952 160000 --- a/lib/aave-address-book +++ b/lib/aave-address-book @@ -1 +1 @@ -Subproject commit 2844c2a2da439eeaf1769021f984928f1977e0df +Subproject commit 06419522596afacd00604a8ab0a1e532cc6399ae diff --git a/lib/aave-helpers b/lib/aave-helpers index 31ee364..7da64a6 160000 --- a/lib/aave-helpers +++ b/lib/aave-helpers @@ -1 +1 @@ -Subproject commit 31ee36457e84e41cc1d328cd923d226557c3fa10 +Subproject commit 7da64a6c8dfac96578d99b4f59c221a5f79e463b diff --git a/lib/forge-std b/lib/forge-std index 5dd1c68..1d0766b 160000 --- a/lib/forge-std +++ b/lib/forge-std @@ -1 +1 @@ -Subproject commit 5dd1c68131ddd3c89ef169666eb262b92e90507c +Subproject commit 1d0766bc5d814f117c7b1e643828f7d85024fb51