From b777496870421351c9eaf3aec3d3bff53f1caddd Mon Sep 17 00:00:00 2001 From: Sagi Shoshan Date: Thu, 5 Oct 2023 15:55:06 +0300 Subject: [PATCH 1/3] Metis V3 Cap Increase 20231005 --- ...30916_post_metis_caps_increase_20230916.md | 49 +++++++++++++++++-- src/MetisCapsIncrease_20231005.s.sol | 48 ++++++++++++++++++ 2 files changed, 93 insertions(+), 4 deletions(-) create mode 100644 src/MetisCapsIncrease_20231005.s.sol diff --git a/diffs/pre_metis_caps_increase_20230916_post_metis_caps_increase_20230916.md b/diffs/pre_metis_caps_increase_20230916_post_metis_caps_increase_20230916.md index 8bdbd7d..27bcbf6 100644 --- a/diffs/pre_metis_caps_increase_20230916_post_metis_caps_increase_20230916.md +++ b/diffs/pre_metis_caps_increase_20230916_post_metis_caps_increase_20230916.md @@ -1,12 +1,29 @@ ## Reserve changes -### Reserves altered +### Reserve altered #### Metis ([0xDeadDeAddeAddEAddeadDEaDDEAdDeaDDeAD0000](https://andromeda-explorer.metis.io/address/0xDeadDeAddeAddEAddeadDEaDDEAdDeaDDeAD0000)) | description | value before | value after | | --- | --- | --- | -| supplyCap | 60,000 Metis | 120,000 Metis | +| supplyCap | 240,000 Metis | 360,000 Metis | +| borrowCap | 4,000 Metis | 8,000 Metis | + + +#### m.USDC ([0xEA32A96608495e54156Ae48931A7c20f0dcc1a21](https://andromeda-explorer.metis.io/address/0xEA32A96608495e54156Ae48931A7c20f0dcc1a21)) + +| description | value before | value after | +| --- | --- | --- | +| supplyCap | 2,000,000 m.USDC | 4,000,000 m.USDC | +| borrowCap | 2,000,000 m.USDC | 4,000,000 m.USDC | + + +#### m.USDT ([0xbB06DCA3AE6887fAbF931640f67cab3e3a16F4dC](https://andromeda-explorer.metis.io/address/0xbB06DCA3AE6887fAbF931640f67cab3e3a16F4dC)) + +| description | value before | value after | +| --- | --- | --- | +| supplyCap | 2,000,000 m.USDT | 4,000,000 m.USDT | +| borrowCap | 2,000,000 m.USDT | 4,000,000 m.USDT | ## Raw diff @@ -15,9 +32,33 @@ { "reserves": { "0xDeadDeAddeAddEAddeadDEaDDEAdDeaDDeAD0000": { + "borrowCap": { + "from": 4000, + "to": 8000 + }, + "supplyCap": { + "from": 240000, + "to": 360000 + } + }, + "0xEA32A96608495e54156Ae48931A7c20f0dcc1a21": { + "borrowCap": { + "from": 2000000, + "to": 4000000 + }, + "supplyCap": { + "from": 2000000, + "to": 4000000 + } + }, + "0xbB06DCA3AE6887fAbF931640f67cab3e3a16F4dC": { + "borrowCap": { + "from": 2000000, + "to": 4000000 + }, "supplyCap": { - "from": 60000, - "to": 120000 + "from": 2000000, + "to": 4000000 } } } diff --git a/src/MetisCapsIncrease_20231005.s.sol b/src/MetisCapsIncrease_20231005.s.sol new file mode 100644 index 0000000..558bca6 --- /dev/null +++ b/src/MetisCapsIncrease_20231005.s.sol @@ -0,0 +1,48 @@ +// 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 Caps for m.USDC, m.USDT & METIS on Metis V3 + * @author @ChaosLabsInc + * - Discussion: https://governance.aave.com/t/arfc-chaos-labs-risk-stewards-increase-supply-and-borrow-caps-on-v3-metis-arbitrum-10-03-2023/15038 + */ +contract MetisCapsIncrease_20231005 is CapsPlusRiskStewardMetis { + /** + * @return string name identifier used for the diff + */ + function name() internal pure override returns (string memory) { + return 'metis_caps_increase_20230916'; + } + + /** + * @return IAaveV3ConfigEngine.CapsUpdate[] capUpdates to be performed + */ + function capsUpdates() internal pure override returns (IAaveV3ConfigEngine.CapsUpdate[] memory) { + IAaveV3ConfigEngine.CapsUpdate[] memory capUpdates = new IAaveV3ConfigEngine.CapsUpdate[](3); + + capUpdates[0] = IAaveV3ConfigEngine.CapsUpdate( + AaveV3MetisAssets.mUSDC_UNDERLYING, + 4_000_000, + 4_000_000 + ); + + capUpdates[1] = IAaveV3ConfigEngine.CapsUpdate( + AaveV3MetisAssets.mUSDT_UNDERLYING, + 4_000_000, + 4_000_000 + ); + + capUpdates[2] = IAaveV3ConfigEngine.CapsUpdate( + AaveV3MetisAssets.Metis_UNDERLYING, + 360_000, + 8_000 + ); + + return capUpdates; + } +} \ No newline at end of file From 5e6c399100a4aa93c108738e728f3b50877faffd Mon Sep 17 00:00:00 2001 From: Sagi Shoshan Date: Thu, 5 Oct 2023 16:04:53 +0300 Subject: [PATCH 2/3] fix to correct name --- ...30916_post_metis_caps_increase_20230916.md | 52 ++------------- ...31005_post_metis_caps_increase_20231005.md | 66 +++++++++++++++++++ src/MetisCapsIncrease_20231005.s.sol | 2 +- 3 files changed, 72 insertions(+), 48 deletions(-) create mode 100644 diffs/pre_metis_caps_increase_20231005_post_metis_caps_increase_20231005.md diff --git a/diffs/pre_metis_caps_increase_20230916_post_metis_caps_increase_20230916.md b/diffs/pre_metis_caps_increase_20230916_post_metis_caps_increase_20230916.md index 27bcbf6..c21040d 100644 --- a/diffs/pre_metis_caps_increase_20230916_post_metis_caps_increase_20230916.md +++ b/diffs/pre_metis_caps_increase_20230916_post_metis_caps_increase_20230916.md @@ -1,64 +1,22 @@ ## Reserve changes -### Reserve altered +### Reserves altered #### Metis ([0xDeadDeAddeAddEAddeadDEaDDEAdDeaDDeAD0000](https://andromeda-explorer.metis.io/address/0xDeadDeAddeAddEAddeadDEaDDEAdDeaDDeAD0000)) | description | value before | value after | | --- | --- | --- | -| supplyCap | 240,000 Metis | 360,000 Metis | -| borrowCap | 4,000 Metis | 8,000 Metis | - - -#### m.USDC ([0xEA32A96608495e54156Ae48931A7c20f0dcc1a21](https://andromeda-explorer.metis.io/address/0xEA32A96608495e54156Ae48931A7c20f0dcc1a21)) - -| description | value before | value after | -| --- | --- | --- | -| supplyCap | 2,000,000 m.USDC | 4,000,000 m.USDC | -| borrowCap | 2,000,000 m.USDC | 4,000,000 m.USDC | - - -#### m.USDT ([0xbB06DCA3AE6887fAbF931640f67cab3e3a16F4dC](https://andromeda-explorer.metis.io/address/0xbB06DCA3AE6887fAbF931640f67cab3e3a16F4dC)) - -| description | value before | value after | -| --- | --- | --- | -| supplyCap | 2,000,000 m.USDT | 4,000,000 m.USDT | -| borrowCap | 2,000,000 m.USDT | 4,000,000 m.USDT | +| supplyCap | 60,000 Metis | 120,000 Metis | ## Raw diff - -```json + @@ -15,9 +32,33 @@ { "reserves": { "0xDeadDeAddeAddEAddeadDEaDDEAdDeaDDeAD0000": { - "borrowCap": { - "from": 4000, - "to": 8000 - }, - "supplyCap": { - "from": 240000, - "to": 360000 - } - }, - "0xEA32A96608495e54156Ae48931A7c20f0dcc1a21": { - "borrowCap": { - "from": 2000000, - "to": 4000000 - }, - "supplyCap": { - "from": 2000000, - "to": 4000000 - } - }, - "0xbB06DCA3AE6887fAbF931640f67cab3e3a16F4dC": { - "borrowCap": { - "from": 2000000, - "to": 4000000 - }, "supplyCap": { - "from": 2000000, - "to": 4000000 + "from": 60000, + "to": 120000 } } } diff --git a/diffs/pre_metis_caps_increase_20231005_post_metis_caps_increase_20231005.md b/diffs/pre_metis_caps_increase_20231005_post_metis_caps_increase_20231005.md new file mode 100644 index 0000000..27bcbf6 --- /dev/null +++ b/diffs/pre_metis_caps_increase_20231005_post_metis_caps_increase_20231005.md @@ -0,0 +1,66 @@ +## Reserve changes + +### Reserve altered + +#### Metis ([0xDeadDeAddeAddEAddeadDEaDDEAdDeaDDeAD0000](https://andromeda-explorer.metis.io/address/0xDeadDeAddeAddEAddeadDEaDDEAdDeaDDeAD0000)) + +| description | value before | value after | +| --- | --- | --- | +| supplyCap | 240,000 Metis | 360,000 Metis | +| borrowCap | 4,000 Metis | 8,000 Metis | + + +#### m.USDC ([0xEA32A96608495e54156Ae48931A7c20f0dcc1a21](https://andromeda-explorer.metis.io/address/0xEA32A96608495e54156Ae48931A7c20f0dcc1a21)) + +| description | value before | value after | +| --- | --- | --- | +| supplyCap | 2,000,000 m.USDC | 4,000,000 m.USDC | +| borrowCap | 2,000,000 m.USDC | 4,000,000 m.USDC | + + +#### m.USDT ([0xbB06DCA3AE6887fAbF931640f67cab3e3a16F4dC](https://andromeda-explorer.metis.io/address/0xbB06DCA3AE6887fAbF931640f67cab3e3a16F4dC)) + +| description | value before | value after | +| --- | --- | --- | +| supplyCap | 2,000,000 m.USDT | 4,000,000 m.USDT | +| borrowCap | 2,000,000 m.USDT | 4,000,000 m.USDT | + + +## Raw diff + +```json +{ + "reserves": { + "0xDeadDeAddeAddEAddeadDEaDDEAdDeaDDeAD0000": { + "borrowCap": { + "from": 4000, + "to": 8000 + }, + "supplyCap": { + "from": 240000, + "to": 360000 + } + }, + "0xEA32A96608495e54156Ae48931A7c20f0dcc1a21": { + "borrowCap": { + "from": 2000000, + "to": 4000000 + }, + "supplyCap": { + "from": 2000000, + "to": 4000000 + } + }, + "0xbB06DCA3AE6887fAbF931640f67cab3e3a16F4dC": { + "borrowCap": { + "from": 2000000, + "to": 4000000 + }, + "supplyCap": { + "from": 2000000, + "to": 4000000 + } + } + } +} +``` \ No newline at end of file diff --git a/src/MetisCapsIncrease_20231005.s.sol b/src/MetisCapsIncrease_20231005.s.sol index 558bca6..0fdb4db 100644 --- a/src/MetisCapsIncrease_20231005.s.sol +++ b/src/MetisCapsIncrease_20231005.s.sol @@ -16,7 +16,7 @@ contract MetisCapsIncrease_20231005 is CapsPlusRiskStewardMetis { * @return string name identifier used for the diff */ function name() internal pure override returns (string memory) { - return 'metis_caps_increase_20230916'; + return 'metis_caps_increase_20231005'; } /** From 81a8d25f6dbf4c514ad287493c95ae54958b3f36 Mon Sep 17 00:00:00 2001 From: Sagi Shoshan Date: Thu, 5 Oct 2023 16:05:55 +0300 Subject: [PATCH 3/3] . --- ...caps_increase_20230916_post_metis_caps_increase_20230916.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/diffs/pre_metis_caps_increase_20230916_post_metis_caps_increase_20230916.md b/diffs/pre_metis_caps_increase_20230916_post_metis_caps_increase_20230916.md index c21040d..8bdbd7d 100644 --- a/diffs/pre_metis_caps_increase_20230916_post_metis_caps_increase_20230916.md +++ b/diffs/pre_metis_caps_increase_20230916_post_metis_caps_increase_20230916.md @@ -10,7 +10,8 @@ ## Raw diff - @@ -15,9 +32,33 @@ + +```json { "reserves": { "0xDeadDeAddeAddEAddeadDEaDDEAdDeaDDeAD0000": {