diff --git a/diffs/pre_mainnetCapsIncrease_20231120_post_mainnetCapsIncrease_20231120.md b/diffs/pre_mainnetCapsIncrease_20231120_post_mainnetCapsIncrease_20231120.md new file mode 100644 index 0000000..b15c3f1 --- /dev/null +++ b/diffs/pre_mainnetCapsIncrease_20231120_post_mainnetCapsIncrease_20231120.md @@ -0,0 +1,25 @@ +## Reserve changes + +### Reserves altered + +#### wstETH ([0x7f39C581F595B53c5cb19bD0b3f8dA6c935E2Ca0](https://etherscan.io/address/0x7f39C581F595B53c5cb19bD0b3f8dA6c935E2Ca0)) + +| description | value before | value after | +| --- | --- | --- | +| supplyCap | 850,000 wstETH | 1,100,000 wstETH | + + +## Raw diff + +```json +{ + "reserves": { + "0x7f39C581F595B53c5cb19bD0b3f8dA6c935E2Ca0": { + "supplyCap": { + "from": 850000, + "to": 1100000 + } + } + } +} +``` \ No newline at end of file diff --git a/src/MainnetCapsIncrease_20231120.s.sol b/src/MainnetCapsIncrease_20231120.s.sol new file mode 100644 index 0000000..5d89c48 --- /dev/null +++ b/src/MainnetCapsIncrease_20231120.s.sol @@ -0,0 +1,36 @@ +// SPDX-License-Identifier: MIT +pragma solidity ^0.8.0; + +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'; +import {AaveV3EthereumAssets} from 'aave-address-book/AaveV3Ethereum.sol'; + +/** + * @title Increase Caps on Ethereum V3 + * @author @ChaosLabsInc + * - Discussion: https://governance.aave.com/t/arfc-chaos-labs-risk-stewards-increase-supply-cap-wsteth-on-v3-ethereum-11-19-2023/15604 + */ +contract MainnetCapsIncrease_20231120 is CapsPlusRiskStewardMainnet { + /** + * @return string name identifier used for the diff + */ + function name() internal pure override returns (string memory) { + return 'mainnetCapsIncrease_20231120'; + } + + /** + * @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( + AaveV3EthereumAssets.wstETH_UNDERLYING, + 1_100_000, + EngineFlags.KEEP_CURRENT + ); + + return capUpdates; + } +}