From f11c1cb1b1c1613a1fc42f760142ccd572872fe1 Mon Sep 17 00:00:00 2001 From: Eyal Ovadya Date: Sat, 23 Mar 2024 23:20:40 +0200 Subject: [PATCH] Base Caps Increase 20240323 --- ...240323_post_base_caps_increase_20240323.md | 48 +++++++++++++++++++ src/BaseCapsIncrease_20240323.s.sol | 38 +++++++++++++++ 2 files changed, 86 insertions(+) create mode 100644 diffs/pre_base_caps_increase_20240323_post_base_caps_increase_20240323.md create mode 100644 src/BaseCapsIncrease_20240323.s.sol diff --git a/diffs/pre_base_caps_increase_20240323_post_base_caps_increase_20240323.md b/diffs/pre_base_caps_increase_20240323_post_base_caps_increase_20240323.md new file mode 100644 index 0000000..bf2fe3c --- /dev/null +++ b/diffs/pre_base_caps_increase_20240323_post_base_caps_increase_20240323.md @@ -0,0 +1,48 @@ +## Reserve changes + +### Reserve altered + +#### WETH ([0x4200000000000000000000000000000000000006](https://basescan.org/address/0x4200000000000000000000000000000000000006)) + +| description | value before | value after | +| --- | --- | --- | +| supplyCap | 8,000 WETH | 12,000 WETH | +| borrowCap | 4,000 WETH | 6,000 WETH | + + +#### USDC ([0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913](https://basescan.org/address/0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913)) + +| description | value before | value after | +| --- | --- | --- | +| supplyCap | 15,000,000 USDC | 30,000,000 USDC | +| borrowCap | 13,500,000 USDC | 27,000,000 USDC | + + +## Raw diff + +```json +{ + "reserves": { + "0x4200000000000000000000000000000000000006": { + "borrowCap": { + "from": 4000, + "to": 6000 + }, + "supplyCap": { + "from": 8000, + "to": 12000 + } + }, + "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913": { + "borrowCap": { + "from": 13500000, + "to": 27000000 + }, + "supplyCap": { + "from": 15000000, + "to": 30000000 + } + } + } +} +``` \ No newline at end of file diff --git a/src/BaseCapsIncrease_20240323.s.sol b/src/BaseCapsIncrease_20240323.s.sol new file mode 100644 index 0000000..287b463 --- /dev/null +++ b/src/BaseCapsIncrease_20240323.s.sol @@ -0,0 +1,38 @@ +// SPDX-License-Identifier: MIT +pragma solidity ^0.8.0; + +import {AaveV3BaseAssets} from 'aave-address-book/AaveV3Base.sol'; +import {IAaveV3ConfigEngine} from 'aave-helpers/v3-config-engine/IAaveV3ConfigEngine.sol'; +import {EngineFlags} from 'aave-helpers/v3-config-engine/EngineFlags.sol'; +import {CapsPlusRiskStewardBaseChain} from '../scripts/CapsPlusRiskStewardBaseChain.s.sol'; + +/** + * @title Update Caps on Base V3 + * @author Chaos Labs + * Discussion: https://governance.aave.com/t/arfc-chaos-labs-risk-stewards-increase-supply-and-borrow-cap-on-v3-base-03-23-2024/17087 + */ +contract BaseCapsIncrease_20240323 is CapsPlusRiskStewardBaseChain { + /** + * @return string name identifier used for the diff + */ + function name() internal pure override returns (string memory) { + return 'base_caps_increase_20240323'; + } + + /** + * @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( + AaveV3BaseAssets.USDC_UNDERLYING, + 30_000_000, + 27_000_000 + ); + + capUpdates[1] = IAaveV3ConfigEngine.CapsUpdate(AaveV3BaseAssets.WETH_UNDERLYING, 12_000, 6_000); + + return capUpdates; + } +}