From 211f7770a68cd774550ac9d3210976dcbc7c5e13 Mon Sep 17 00:00:00 2001 From: Eyal Ovadya Date: Sat, 30 Mar 2024 14:12:32 +0300 Subject: [PATCH] Polygon wstETH Supply Cap Increase 20240330 --- ...post_PolygonWstETHCapsIncrease_20240330.md | 25 +++++++++++++ src/PolygonWstETHCapsIncrease_20240330.s.sol | 36 +++++++++++++++++++ 2 files changed, 61 insertions(+) create mode 100644 diffs/pre_PolygonWstETHCapsIncrease_20240330_post_PolygonWstETHCapsIncrease_20240330.md create mode 100644 src/PolygonWstETHCapsIncrease_20240330.s.sol diff --git a/diffs/pre_PolygonWstETHCapsIncrease_20240330_post_PolygonWstETHCapsIncrease_20240330.md b/diffs/pre_PolygonWstETHCapsIncrease_20240330_post_PolygonWstETHCapsIncrease_20240330.md new file mode 100644 index 0000000..17cc61f --- /dev/null +++ b/diffs/pre_PolygonWstETHCapsIncrease_20240330_post_PolygonWstETHCapsIncrease_20240330.md @@ -0,0 +1,25 @@ +## Reserve changes + +### Reserves altered + +#### wstETH ([0x03b54A6e9a984069379fae1a4fC4dBAE93B3bCCD](https://polygonscan.com/address/0x03b54A6e9a984069379fae1a4fC4dBAE93B3bCCD)) + +| description | value before | value after | +| --- | --- | --- | +| supplyCap | 4,370 wstETH | 5,250 wstETH | + + +## Raw diff + +```json +{ + "reserves": { + "0x03b54A6e9a984069379fae1a4fC4dBAE93B3bCCD": { + "supplyCap": { + "from": 4370, + "to": 5250 + } + } + } +} +``` \ No newline at end of file diff --git a/src/PolygonWstETHCapsIncrease_20240330.s.sol b/src/PolygonWstETHCapsIncrease_20240330.s.sol new file mode 100644 index 0000000..cc5b997 --- /dev/null +++ b/src/PolygonWstETHCapsIncrease_20240330.s.sol @@ -0,0 +1,36 @@ +// 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 wstETH Caps on Polygon V3 + * @author Chaos Labs + * Discussion: https://governance.aave.com/t/arfc-chaos-labs-risk-stewards-increase-supply-cap-for-wsteth-on-v3-polygon-03-30-2024/17170 + */ +contract PolygonWstETHCapsIncrease_20240330 is CapsPlusRiskStewardPolygon { + /** + * @return string name identifier used for the diff + */ + function name() internal pure override returns (string memory) { + return 'PolygonWstETHCapsIncrease_20240330'; + } + + /** + * @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_250, + EngineFlags.KEEP_CURRENT + ); + + return capUpdates; + } +}