From 5ff897f307a872b23ce793f54e3ba518269d6067 Mon Sep 17 00:00:00 2001 From: Aviad Gigi Date: Wed, 17 Apr 2024 10:28:16 +0300 Subject: [PATCH] increase supply caps of wstETH on polygon to 5750 --- ...0240417_post_PolygonCapsUpdate_20240417.md | 25 +++++++++++++ src/PolygonCapsUpdate_20240417.s.sol | 35 +++++++++++++++++++ 2 files changed, 60 insertions(+) create mode 100644 diffs/pre_PolygonCapsUpdate_20240417_post_PolygonCapsUpdate_20240417.md create mode 100644 src/PolygonCapsUpdate_20240417.s.sol diff --git a/diffs/pre_PolygonCapsUpdate_20240417_post_PolygonCapsUpdate_20240417.md b/diffs/pre_PolygonCapsUpdate_20240417_post_PolygonCapsUpdate_20240417.md new file mode 100644 index 0000000..aba6daf --- /dev/null +++ b/diffs/pre_PolygonCapsUpdate_20240417_post_PolygonCapsUpdate_20240417.md @@ -0,0 +1,25 @@ +## Reserve changes + +### Reserves altered + +#### wstETH ([0x03b54A6e9a984069379fae1a4fC4dBAE93B3bCCD](https://polygonscan.com/address/0x03b54A6e9a984069379fae1a4fC4dBAE93B3bCCD)) + +| description | value before | value after | +| --- | --- | --- | +| supplyCap | 5,250 wstETH | 5,750 wstETH | + + +## Raw diff + +```json +{ + "reserves": { + "0x03b54A6e9a984069379fae1a4fC4dBAE93B3bCCD": { + "supplyCap": { + "from": 5250, + "to": 5750 + } + } + } +} +``` \ No newline at end of file diff --git a/src/PolygonCapsUpdate_20240417.s.sol b/src/PolygonCapsUpdate_20240417.s.sol new file mode 100644 index 0000000..86b160f --- /dev/null +++ b/src/PolygonCapsUpdate_20240417.s.sol @@ -0,0 +1,35 @@ +// SPDX-License-Identifier: MIT +pragma solidity ^0.8.0; + +import {AaveV3PolygonAssets} from 'aave-address-book/AaveV3Polygon.sol'; +import {IAaveV3ConfigEngine} from 'aave-helpers/v3-config-engine/IAaveV3ConfigEngine.sol'; +import {EngineFlags} from 'aave-helpers/v3-config-engine/EngineFlags.sol'; +import {CapsPlusRiskStewardPolygon} from '../scripts/CapsPlusRiskStewardPolygon.s.sol'; + +/** + * @title Increase Supply Cap for wstETH on V3 Polygon + * @author Chaos Labs + * - Discussion: https://governance.aave.com/t/arfc-chaos-labs-risk-stewards-increase-supply-cap-for-wsteth-on-v3-polygon-04-16-2024/17378 + */ +contract PolygonCapsUpdate_20240417 is CapsPlusRiskStewardPolygon { + /** + * @return string name identifier used for the diff + */ + function name() internal pure override returns (string memory) { + return 'PolygonCapsUpdate_20240417'; + } + + /** + * @return IAaveV3ConfigEngine.CapsUpdate[] capUpdates to be performed + */ + function capsUpdates() internal pure override returns (IAaveV3ConfigEngine.CapsUpdate[] memory) { + IAaveV3ConfigEngine.CapsUpdate[] memory capUpdates = new IAaveV3ConfigEngine.CapsUpdate[](1); + + capUpdates[0] = IAaveV3ConfigEngine.CapsUpdate( + AaveV3PolygonAssets.wstETH_UNDERLYING, + 5_750, + EngineFlags.KEEP_CURRENT + ); + return capUpdates; + } +}