From c098912a71a6bc0f894750cebc102a9502a19b43 Mon Sep 17 00:00:00 2001 From: Eyal Ovadya Date: Tue, 9 Jan 2024 11:51:31 +0200 Subject: [PATCH] Ethereum FXS, USDT Caps Increase --- ...40109_post_mainnetCapsIncrease_20240109.md | 43 +++++++++++++++++++ src/MainnetCapsIncrease_20240109.s.sol | 42 ++++++++++++++++++ 2 files changed, 85 insertions(+) create mode 100644 diffs/pre_mainnetCapsIncrease_20240109_post_mainnetCapsIncrease_20240109.md create mode 100644 src/MainnetCapsIncrease_20240109.s.sol diff --git a/diffs/pre_mainnetCapsIncrease_20240109_post_mainnetCapsIncrease_20240109.md b/diffs/pre_mainnetCapsIncrease_20240109_post_mainnetCapsIncrease_20240109.md new file mode 100644 index 0000000..b4dbf21 --- /dev/null +++ b/diffs/pre_mainnetCapsIncrease_20240109_post_mainnetCapsIncrease_20240109.md @@ -0,0 +1,43 @@ +## Reserve changes + +### Reserve altered + +#### FXS ([0x3432B6A60D23Ca0dFCa7761B7ab56459D9C964D0](https://etherscan.io/address/0x3432B6A60D23Ca0dFCa7761B7ab56459D9C964D0)) + +| description | value before | value after | +| --- | --- | --- | +| supplyCap | 800,000 FXS | 1,200,000 FXS | + + +#### USDT ([0xdAC17F958D2ee523a2206206994597C13D831ec7](https://etherscan.io/address/0xdAC17F958D2ee523a2206206994597C13D831ec7)) + +| description | value before | value after | +| --- | --- | --- | +| supplyCap | 600,000,000 USDT | 800,000,000 USDT | +| borrowCap | 550,000,000 USDT | 750,000,000 USDT | + + +## Raw diff + +```json +{ + "reserves": { + "0x3432B6A60D23Ca0dFCa7761B7ab56459D9C964D0": { + "supplyCap": { + "from": 800000, + "to": 1200000 + } + }, + "0xdAC17F958D2ee523a2206206994597C13D831ec7": { + "borrowCap": { + "from": 550000000, + "to": 750000000 + }, + "supplyCap": { + "from": 600000000, + "to": 800000000 + } + } + } +} +``` \ No newline at end of file diff --git a/src/MainnetCapsIncrease_20240109.s.sol b/src/MainnetCapsIncrease_20240109.s.sol new file mode 100644 index 0000000..2ed79dd --- /dev/null +++ b/src/MainnetCapsIncrease_20240109.s.sol @@ -0,0 +1,42 @@ +// 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: https://governance.aave.com/t/arfc-chaos-labs-risk-stewards-increase-supply-and-borrow-caps-on-v3-ethereum-01-05-2024/16072 + */ +contract MainnetCapsIncrease_20240109 is CapsPlusRiskStewardMainnet { + /** + * @return string name identifier used for the diff + */ + function name() internal pure override returns (string memory) { + return 'mainnetCapsIncrease_20240109'; + } + + /** + * @return IAaveV3ConfigEngine.CapsUpdate[] capUpdates to be performed + */ + function capsUpdates() internal pure override returns (IAaveV3ConfigEngine.CapsUpdate[] memory) { + IAaveV3ConfigEngine.CapsUpdate[] memory capUpdates = new IAaveV3ConfigEngine.CapsUpdate[](2); + + capUpdates[0] = IAaveV3ConfigEngine.CapsUpdate( + AaveV3EthereumAssets.FXS_UNDERLYING, + 1_200_000, + EngineFlags.KEEP_CURRENT + ); + + capUpdates[1] = IAaveV3ConfigEngine.CapsUpdate( + AaveV3EthereumAssets.USDT_UNDERLYING, + 800_000_000, + 750_000_000 + ); + + return capUpdates; + } +}