From 48f128c6c63266d004b115c942cf3d2bde630d12 Mon Sep 17 00:00:00 2001 From: Eyal Ovadya Date: Thu, 15 Feb 2024 15:28:26 -0800 Subject: [PATCH] Gnosis Caps Increase 20240213 --- ...0213_post_gnosis_caps_increase_20240213.md | 61 +++++++++++++++++++ src/GnosisCapsIncrease_20240213.s.sol | 48 +++++++++++++++ 2 files changed, 109 insertions(+) create mode 100644 diffs/pre_gnosis_caps_increase_20240213_post_gnosis_caps_increase_20240213.md create mode 100644 src/GnosisCapsIncrease_20240213.s.sol diff --git a/diffs/pre_gnosis_caps_increase_20240213_post_gnosis_caps_increase_20240213.md b/diffs/pre_gnosis_caps_increase_20240213_post_gnosis_caps_increase_20240213.md new file mode 100644 index 0000000..1aa7bc7 --- /dev/null +++ b/diffs/pre_gnosis_caps_increase_20240213_post_gnosis_caps_increase_20240213.md @@ -0,0 +1,61 @@ +## Reserve changes + +### Reserve altered + +#### wstETH ([0x6C76971f98945AE98dD7d4DFcA8711ebea946eA6](https://blockscout.com/xdai/mainnet/address/0x6C76971f98945AE98dD7d4DFcA8711ebea946eA6)) + +| description | value before | value after | +| --- | --- | --- | +| supplyCap | 5,000 wstETH | 7,500 wstETH | + + +#### USDC ([0xDDAfbb505ad214D7b80b1f830fcCc89B60fb7A83](https://blockscout.com/xdai/mainnet/address/0xDDAfbb505ad214D7b80b1f830fcCc89B60fb7A83)) + +| description | value before | value after | +| --- | --- | --- | +| supplyCap | 1,500,000 USDC | 3,000,000 USDC | +| borrowCap | 1,500,000 USDC | 2,800,000 USDC | + + +#### EURe ([0xcB444e90D8198415266c6a2724b7900fb12FC56E](https://blockscout.com/xdai/mainnet/address/0xcB444e90D8198415266c6a2724b7900fb12FC56E)) + +| description | value before | value after | +| --- | --- | --- | +| supplyCap | 750,000 EURe | 1,500,000 EURe | +| borrowCap | 750,000 EURe | 1,400,000 EURe | + + +## Raw diff + +```json +{ + "reserves": { + "0x6C76971f98945AE98dD7d4DFcA8711ebea946eA6": { + "supplyCap": { + "from": 5000, + "to": 7500 + } + }, + "0xDDAfbb505ad214D7b80b1f830fcCc89B60fb7A83": { + "borrowCap": { + "from": 1500000, + "to": 2800000 + }, + "supplyCap": { + "from": 1500000, + "to": 3000000 + } + }, + "0xcB444e90D8198415266c6a2724b7900fb12FC56E": { + "borrowCap": { + "from": 750000, + "to": 1400000 + }, + "supplyCap": { + "from": 750000, + "to": 1500000 + } + } + } +} +``` \ No newline at end of file diff --git a/src/GnosisCapsIncrease_20240213.s.sol b/src/GnosisCapsIncrease_20240213.s.sol new file mode 100644 index 0000000..13bbf2c --- /dev/null +++ b/src/GnosisCapsIncrease_20240213.s.sol @@ -0,0 +1,48 @@ +// SPDX-License-Identifier: MIT +pragma solidity ^0.8.0; + +import {AaveV3GnosisAssets} from 'aave-address-book/AaveV3Gnosis.sol'; +import {IAaveV3ConfigEngine} from 'aave-helpers/v3-config-engine/IAaveV3ConfigEngine.sol'; +import {EngineFlags} from 'aave-helpers/v3-config-engine/EngineFlags.sol'; +import {CapsPlusRiskStewardGnosis} from '../scripts/CapsPlusRiskStewardGnosis.s.sol'; + +/** + * @title Update Caps on Gnosis V3 + * @author Chaos Labs - eyalovadya + * - Discussion: https://governance.aave.com/t/arfc-chaos-labs-risk-stewards-increase-supply-and-borrow-caps-on-v3-gnosis-02-13-2024/16615 + */ +contract GnosisCapsIncrease_20240213 is CapsPlusRiskStewardGnosis { + /** + * @return string name identifier used for the diff + */ + function name() internal pure override returns (string memory) { + return 'gnosis_caps_increase_20240213'; + } + + /** + * @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( + AaveV3GnosisAssets.EURe_UNDERLYING, + 1_500_000, + 1_400_000 + ); + + capUpdates[1] = IAaveV3ConfigEngine.CapsUpdate( + AaveV3GnosisAssets.USDC_UNDERLYING, + 3_000_000, + 2_800_000 + ); + + capUpdates[2] = IAaveV3ConfigEngine.CapsUpdate( + AaveV3GnosisAssets.wstETH_UNDERLYING, + 7_500, + EngineFlags.KEEP_CURRENT + ); + + return capUpdates; + } +}