diff --git a/diffs/pre_metis_caps_increase_20240229_post_metis_caps_increase_20240229.md b/diffs/pre_metis_caps_increase_20240229_post_metis_caps_increase_20240229.md new file mode 100644 index 0000000..468d4fb --- /dev/null +++ b/diffs/pre_metis_caps_increase_20240229_post_metis_caps_increase_20240229.md @@ -0,0 +1,79 @@ +## Reserve changes + +### Reserve altered + +#### WETH ([0x420000000000000000000000000000000000000A](https://andromeda-explorer.metis.io/address/0x420000000000000000000000000000000000000A)) + +| description | value before | value after | +| --- | --- | --- | +| supplyCap | 300 WETH | 600 WETH | +| borrowCap | 180 WETH | 360 WETH | + + +#### m.DAI ([0x4c078361FC9BbB78DF910800A991C7c3DD2F6ce0](https://andromeda-explorer.metis.io/address/0x4c078361FC9BbB78DF910800A991C7c3DD2F6ce0)) + +| description | value before | value after | +| --- | --- | --- | +| supplyCap | 950,000 m.DAI | 1,100,000 m.DAI | + + +#### m.USDC ([0xEA32A96608495e54156Ae48931A7c20f0dcc1a21](https://andromeda-explorer.metis.io/address/0xEA32A96608495e54156Ae48931A7c20f0dcc1a21)) + +| description | value before | value after | +| --- | --- | --- | +| supplyCap | 8,000,000 m.USDC | 10,000,000 m.USDC | +| borrowCap | 7,200,000 m.USDC | 9,000,000 m.USDC | + + +#### m.USDT ([0xbB06DCA3AE6887fAbF931640f67cab3e3a16F4dC](https://andromeda-explorer.metis.io/address/0xbB06DCA3AE6887fAbF931640f67cab3e3a16F4dC)) + +| description | value before | value after | +| --- | --- | --- | +| supplyCap | 6,500,000 m.USDT | 8,000,000 m.USDT | +| borrowCap | 5,900,000 m.USDT | 7,200,000 m.USDT | + + +## Raw diff + +```json +{ + "reserves": { + "0x420000000000000000000000000000000000000A": { + "borrowCap": { + "from": 180, + "to": 360 + }, + "supplyCap": { + "from": 300, + "to": 600 + } + }, + "0x4c078361FC9BbB78DF910800A991C7c3DD2F6ce0": { + "supplyCap": { + "from": 950000, + "to": 1100000 + } + }, + "0xEA32A96608495e54156Ae48931A7c20f0dcc1a21": { + "borrowCap": { + "from": 7200000, + "to": 9000000 + }, + "supplyCap": { + "from": 8000000, + "to": 10000000 + } + }, + "0xbB06DCA3AE6887fAbF931640f67cab3e3a16F4dC": { + "borrowCap": { + "from": 5900000, + "to": 7200000 + }, + "supplyCap": { + "from": 6500000, + "to": 8000000 + } + } + } +} +``` \ No newline at end of file diff --git a/src/MetisCapsIncrease_20240229.s.sol b/src/MetisCapsIncrease_20240229.s.sol new file mode 100644 index 0000000..812ea60 --- /dev/null +++ b/src/MetisCapsIncrease_20240229.s.sol @@ -0,0 +1,54 @@ +// 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 Update Caps on Metis V3 + * @author Chaos Labs - eyalovadya + * Discussion: https://governance.aave.com/t/arfc-chaos-labs-risk-stewards-increase-supply-cap-on-v3-metis-03-01-24/16803 + */ +contract MetisCapsIncrease_20240229 is CapsPlusRiskStewardMetis { + /** + * @return string name identifier used for the diff + */ + function name() internal pure override returns (string memory) { + return 'metis_caps_increase_20240229'; + } + + /** + * @return IAaveV3ConfigEngine.CapsUpdate[] capUpdates to be performed + */ + function capsUpdates() internal pure override returns (IAaveV3ConfigEngine.CapsUpdate[] memory) { + IAaveV3ConfigEngine.CapsUpdate[] memory capUpdates = new IAaveV3ConfigEngine.CapsUpdate[](4); + + capUpdates[0] = IAaveV3ConfigEngine.CapsUpdate( + AaveV3MetisAssets.mUSDC_UNDERLYING, + 10_000_000, + 9_000_000 + ); + + capUpdates[1] = IAaveV3ConfigEngine.CapsUpdate( + AaveV3MetisAssets.mUSDT_UNDERLYING, + 8_000_000, + 7_200_000 + ); + + capUpdates[2] = IAaveV3ConfigEngine.CapsUpdate( + AaveV3MetisAssets.mDAI_UNDERLYING, + 1_100_000, + EngineFlags.KEEP_CURRENT + ); + + capUpdates[3] = IAaveV3ConfigEngine.CapsUpdate( + AaveV3MetisAssets.WETH_UNDERLYING, + 600, + 360 + ); + + return capUpdates; + } +}