From ded54dd22820f47ac700548f36cf33c3883e5f1a Mon Sep 17 00:00:00 2001 From: Eyal Ovadya Date: Tue, 2 Apr 2024 18:12:06 +0300 Subject: [PATCH] Optimism USDC caps increase 20240401 --- ..._post_OptimismUSDCCapsIncrease_20240401.md | 30 ++++++++++++++++ src/OptimismUSDCCapsIncrease_20240401.s.sol | 36 +++++++++++++++++++ 2 files changed, 66 insertions(+) create mode 100644 diffs/pre_OptimismUSDCCapsIncrease_20240401_post_OptimismUSDCCapsIncrease_20240401.md create mode 100644 src/OptimismUSDCCapsIncrease_20240401.s.sol diff --git a/diffs/pre_OptimismUSDCCapsIncrease_20240401_post_OptimismUSDCCapsIncrease_20240401.md b/diffs/pre_OptimismUSDCCapsIncrease_20240401_post_OptimismUSDCCapsIncrease_20240401.md new file mode 100644 index 0000000..9a8f191 --- /dev/null +++ b/diffs/pre_OptimismUSDCCapsIncrease_20240401_post_OptimismUSDCCapsIncrease_20240401.md @@ -0,0 +1,30 @@ +## Reserve changes + +### Reserves altered + +#### USDC ([0x0b2C639c533813f4Aa9D7837CAf62653d097Ff85](https://optimistic.etherscan.io/address/0x0b2C639c533813f4Aa9D7837CAf62653d097Ff85)) + +| description | value before | value after | +| --- | --- | --- | +| supplyCap | 25,000,000 USDC | 50,000,000 USDC | +| borrowCap | 20,000,000 USDC | 40,000,000 USDC | + + +## Raw diff + +```json +{ + "reserves": { + "0x0b2C639c533813f4Aa9D7837CAf62653d097Ff85": { + "borrowCap": { + "from": 20000000, + "to": 40000000 + }, + "supplyCap": { + "from": 25000000, + "to": 50000000 + } + } + } +} +``` \ No newline at end of file diff --git a/src/OptimismUSDCCapsIncrease_20240401.s.sol b/src/OptimismUSDCCapsIncrease_20240401.s.sol new file mode 100644 index 0000000..96b2392 --- /dev/null +++ b/src/OptimismUSDCCapsIncrease_20240401.s.sol @@ -0,0 +1,36 @@ +// SPDX-License-Identifier: MIT +pragma solidity ^0.8.0; + +import {AaveV3OptimismAssets} from 'aave-address-book/AaveV3Optimism.sol'; +import {IAaveV3ConfigEngine} from 'aave-helpers/v3-config-engine/IAaveV3ConfigEngine.sol'; +import {EngineFlags} from 'aave-helpers/v3-config-engine/EngineFlags.sol'; +import {CapsPlusRiskStewardOptimism} from '../scripts/CapsPlusRiskStewardOptimism.s.sol'; + +/** + * @title Update USDC Caps on Optimism V3 + * @author @ChaosLabsInc + * - Discussion: https://governance.aave.com/t/arfc-chaos-labs-risk-stewards-increase-supply-and-borrow-cap-for-usdc-on-v3-optimism-04-01-2024/17203 + */ +contract OptimismUSDCCapsIncrease_20240401 is CapsPlusRiskStewardOptimism { + /** + * @return string name identifier used for the diff + */ + function name() internal pure override returns (string memory) { + return 'OptimismUSDCCapsIncrease_20240401'; + } + + /** + * @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( + AaveV3OptimismAssets.USDCn_UNDERLYING, + 50_000_000, + 40_000_000 + ); + + return capUpdates; + } +}