From 1948807c4826c2a6204dc234bca306c8cf357424 Mon Sep 17 00:00:00 2001 From: yonikesel Date: Thu, 9 Nov 2023 11:31:28 +0200 Subject: [PATCH] GHO Borrow Cap Increase --- ...31107_post_mainnetCapsIncrease_20231107.md | 25 +++++++++++++ src/MainnetCapsIncrease_20231107.s.sol | 36 +++++++++++++++++++ 2 files changed, 61 insertions(+) create mode 100644 diffs/pre_mainnetCapsIncrease_20231107_post_mainnetCapsIncrease_20231107.md create mode 100644 src/MainnetCapsIncrease_20231107.s.sol diff --git a/diffs/pre_mainnetCapsIncrease_20231107_post_mainnetCapsIncrease_20231107.md b/diffs/pre_mainnetCapsIncrease_20231107_post_mainnetCapsIncrease_20231107.md new file mode 100644 index 0000000..1080f70 --- /dev/null +++ b/diffs/pre_mainnetCapsIncrease_20231107_post_mainnetCapsIncrease_20231107.md @@ -0,0 +1,25 @@ +## Reserve changes + +### Reserves altered + +#### GHO ([0x40D16FC0246aD3160Ccc09B8D0D3A2cD28aE6C2f](https://etherscan.io/address/0x40D16FC0246aD3160Ccc09B8D0D3A2cD28aE6C2f)) + +| description | value before | value after | +| --- | --- | --- | +| borrowCap | 35,000,000 GHO | 50,000,000 GHO | + + +## Raw diff + +```json +{ + "reserves": { + "0x40D16FC0246aD3160Ccc09B8D0D3A2cD28aE6C2f": { + "borrowCap": { + "from": 35000000, + "to": 50000000 + } + } + } +} +``` \ No newline at end of file diff --git a/src/MainnetCapsIncrease_20231107.s.sol b/src/MainnetCapsIncrease_20231107.s.sol new file mode 100644 index 0000000..be1d360 --- /dev/null +++ b/src/MainnetCapsIncrease_20231107.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: + */ +contract MainnetCapsIncrease_20231107 is CapsPlusRiskStewardMainnet { + /** + * @return string name identifier used for the diff + */ + function name() internal pure override returns (string memory) { + return 'mainnetCapsIncrease_20231107'; + } + + /** + * @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.GHO_UNDERLYING, + EngineFlags.KEEP_CURRENT, + 50_000_000 + ); + + return capUpdates; + } +}