diff --git a/diffs/pre_scroll_caps_increase_20240426_post_scroll_caps_increase_20240426.md b/diffs/pre_scroll_caps_increase_20240426_post_scroll_caps_increase_20240426.md new file mode 100644 index 0000000..2d9fc2b --- /dev/null +++ b/diffs/pre_scroll_caps_increase_20240426_post_scroll_caps_increase_20240426.md @@ -0,0 +1,43 @@ +## Reserve changes + +### Reserve altered + +#### USDC ([0x06eFdBFf2a14a7c8E15944D1F4A48F9F95F663A4](https://scrollscan.com/address/0x06eFdBFf2a14a7c8E15944D1F4A48F9F95F663A4)) + +| description | value before | value after | +| --- | --- | --- | +| supplyCap | 5,000,000 USDC | 7,500,000 USDC | +| borrowCap | 3,600,000 USDC | 6,500,000 USDC | + + +#### wstETH ([0xf610A9dfB7C89644979b4A0f27063E9e7d7Cda32](https://scrollscan.com/address/0xf610A9dfB7C89644979b4A0f27063E9e7d7Cda32)) + +| description | value before | value after | +| --- | --- | --- | +| supplyCap | 700 wstETH | 1,000 wstETH | + + +## Raw diff + +```json +{ + "reserves": { + "0x06eFdBFf2a14a7c8E15944D1F4A48F9F95F663A4": { + "borrowCap": { + "from": 3600000, + "to": 6500000 + }, + "supplyCap": { + "from": 5000000, + "to": 7500000 + } + }, + "0xf610A9dfB7C89644979b4A0f27063E9e7d7Cda32": { + "supplyCap": { + "from": 700, + "to": 1000 + } + } + } +} +``` \ No newline at end of file diff --git a/src/ScrollCapsIncrease_20240426.s.sol b/src/ScrollCapsIncrease_20240426.s.sol new file mode 100644 index 0000000..9498f9c --- /dev/null +++ b/src/ScrollCapsIncrease_20240426.s.sol @@ -0,0 +1,42 @@ +// 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 {EngineFlags} from 'aave-helpers/v3-config-engine/EngineFlags.sol'; +import {CapsPlusRiskStewardScroll} from '../scripts/CapsPlusRiskStewardScroll.s.sol'; + +/** + * @title Update Caps on Scroll V3 + * @author Chaos Labs + * Discussion: TODO + */ +contract ScrollCapsIncrease_20240426 is CapsPlusRiskStewardScroll { + /** + * @return string name identifier used for the diff + */ + function name() internal pure override returns (string memory) { + return 'scroll_caps_increase_20240426'; + } + + /** + * @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.wstETH_UNDERLYING, + 1_000, + EngineFlags.KEEP_CURRENT + ); + + capUpdates[1] = IAaveV3ConfigEngine.CapsUpdate( + AaveV3ScrollAssets.USDC_UNDERLYING, + 7_500_000, + 6_500_000 + ); + + return capUpdates; + } +}