diff --git a/diffs/pre_MetisCapsUpdate_20240409_post_MetisCapsUpdate_20240409.md b/diffs/pre_MetisCapsUpdate_20240409_post_MetisCapsUpdate_20240409.md new file mode 100644 index 0000000..a75bbbb --- /dev/null +++ b/diffs/pre_MetisCapsUpdate_20240409_post_MetisCapsUpdate_20240409.md @@ -0,0 +1,25 @@ +## Reserve changes + +### Reserves altered + +#### WETH ([0x420000000000000000000000000000000000000A](https://andromeda-explorer.metis.io/address/0x420000000000000000000000000000000000000A)) + +| description | value before | value after | +| --- | --- | --- | +| supplyCap | 1,200 WETH | 1,400 WETH | + + +## Raw diff + +```json +{ + "reserves": { + "0x420000000000000000000000000000000000000A": { + "supplyCap": { + "from": 1200, + "to": 1400 + } + } + } +} +``` \ No newline at end of file diff --git a/src/MetisCapsUpdate_20240409.s.sol b/src/MetisCapsUpdate_20240409.s.sol new file mode 100644 index 0000000..3acc0e5 --- /dev/null +++ b/src/MetisCapsUpdate_20240409.s.sol @@ -0,0 +1,35 @@ +// SPDX-License-Identifier: MIT +pragma solidity ^0.8.0; + +import {AaveV3MetisAssets} from 'aave-address-book/AaveV3Metis.sol'; +import {IAaveV3ConfigEngine} from 'aave-helpers/v3-config-engine/IAaveV3ConfigEngine.sol'; +import {EngineFlags} from 'aave-helpers/v3-config-engine/EngineFlags.sol'; +import {CapsPlusRiskStewardMetis} from '../scripts/CapsPlusRiskStewardMetis.s.sol'; + +/** + * @title Increase Supply Cap for WETH on V3 Metis + * @author Chaos Labs + * - Discussion: https://governance.aave.com/t/arfc-chaos-labs-risk-stewards-increase-supply-cap-for-weth-on-v3-metis-04-08-2024/17297 + */ +contract MetisCapsUpdate_20240409 is CapsPlusRiskStewardMetis { + /** + * @return string name identifier used for the diff + */ + function name() internal pure override returns (string memory) { + return 'MetisCapsUpdate_20240409'; + } + + /** + * @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( + AaveV3MetisAssets.WETH_UNDERLYING, + 1_400, + EngineFlags.KEEP_CURRENT + ); + return capUpdates; + } +}