From eccbc30eb81e0dc353c02abb616159a14d221a1d Mon Sep 17 00:00:00 2001 From: Aviad Gigi Date: Fri, 12 Apr 2024 16:40:27 +0300 Subject: [PATCH] increase WETH and USDC --- ...20240412_post_ScrollCapsUpdate_20240412.md | 48 +++++++++++++++++++ src/ScrollCapsUpdate_20240412.s.sol | 39 +++++++++++++++ 2 files changed, 87 insertions(+) create mode 100644 diffs/pre_ScrollCapsUpdate_20240412_post_ScrollCapsUpdate_20240412.md create mode 100644 src/ScrollCapsUpdate_20240412.s.sol diff --git a/diffs/pre_ScrollCapsUpdate_20240412_post_ScrollCapsUpdate_20240412.md b/diffs/pre_ScrollCapsUpdate_20240412_post_ScrollCapsUpdate_20240412.md new file mode 100644 index 0000000..a509d25 --- /dev/null +++ b/diffs/pre_ScrollCapsUpdate_20240412_post_ScrollCapsUpdate_20240412.md @@ -0,0 +1,48 @@ +## Reserve changes + +### Reserve altered + +#### USDC ([0x06eFdBFf2a14a7c8E15944D1F4A48F9F95F663A4](https://scrollscan.com/address/0x06eFdBFf2a14a7c8E15944D1F4A48F9F95F663A4)) + +| description | value before | value after | +| --- | --- | --- | +| supplyCap | 4,000,000 USDC | 5,000,000 USDC | +| borrowCap | 1,800,000 USDC | 3,600,000 USDC | + + +#### WETH ([0x5300000000000000000000000000000000000004](https://scrollscan.com/address/0x5300000000000000000000000000000000000004)) + +| description | value before | value after | +| --- | --- | --- | +| supplyCap | 1,500 WETH | 2,000 WETH | +| borrowCap | 600 WETH | 1,200 WETH | + + +## Raw diff + +```json +{ + "reserves": { + "0x06eFdBFf2a14a7c8E15944D1F4A48F9F95F663A4": { + "borrowCap": { + "from": 1800000, + "to": 3600000 + }, + "supplyCap": { + "from": 4000000, + "to": 5000000 + } + }, + "0x5300000000000000000000000000000000000004": { + "borrowCap": { + "from": 600, + "to": 1200 + }, + "supplyCap": { + "from": 1500, + "to": 2000 + } + } + } +} +``` \ No newline at end of file diff --git a/src/ScrollCapsUpdate_20240412.s.sol b/src/ScrollCapsUpdate_20240412.s.sol new file mode 100644 index 0000000..d7cb779 --- /dev/null +++ b/src/ScrollCapsUpdate_20240412.s.sol @@ -0,0 +1,39 @@ +// SPDX-License-Identifier: MIT +pragma solidity ^0.8.0; + +import {AaveV3ScrollAssets} from 'aave-address-book/AaveV3Scroll.sol'; +import {IAaveV3ConfigEngine} from 'aave-helpers/v3-config-engine/IAaveV3ConfigEngine.sol'; +import {CapsPlusRiskStewardScroll} from '../scripts/CapsPlusRiskStewardScroll.s.sol'; + +/** + * @title Increase Supply and Borrow Caps on V3 Scroll + * @author Chaos Labs + * - Discussion: https://governance.aave.com/t/arfc-chaos-labs-risk-stewards-increase-supply-and-borrow-caps-on-v3-scroll-04-11-2024/17341/1 + */ +contract ScrollCapsUpdate_20240412 is CapsPlusRiskStewardScroll { + /** + * @return string name identifier used for the diff + */ + function name() internal pure override returns (string memory) { + return 'ScrollCapsUpdate_20240412'; + } + + /** + * @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( + AaveV3ScrollAssets.WETH_UNDERLYING, + 2_000, + 1_200 + ); + capUpdates[1] = IAaveV3ConfigEngine.CapsUpdate( + AaveV3ScrollAssets.USDC_UNDERLYING, + 5_000_000, + 3_600_000 + ); + return capUpdates; + } +}