diff --git a/diffs/pre_ArbitrumCapsUpdate_20240521_post_ArbitrumCapsUpdate_20240521.md b/diffs/pre_ArbitrumCapsUpdate_20240521_post_ArbitrumCapsUpdate_20240521.md new file mode 100644 index 0000000..5aacc8e --- /dev/null +++ b/diffs/pre_ArbitrumCapsUpdate_20240521_post_ArbitrumCapsUpdate_20240521.md @@ -0,0 +1,25 @@ +## Reserve changes + +### Reserves altered + +#### wstETH ([0x5979D7b546E38E414F7E9822514be443A4800529](https://arbiscan.io/address/0x5979D7b546E38E414F7E9822514be443A4800529)) + +| description | value before | value after | +| --- | --- | --- | +| borrowCap | 2,400 wstETH | 4,800 wstETH | + + +## Raw diff + +```json +{ + "reserves": { + "0x5979D7b546E38E414F7E9822514be443A4800529": { + "borrowCap": { + "from": 2400, + "to": 4800 + } + } + } +} +``` \ No newline at end of file diff --git a/diffs/pre_MainnetCapsUpdate_20240521_post_MainnetCapsUpdate_20240521.md b/diffs/pre_MainnetCapsUpdate_20240521_post_MainnetCapsUpdate_20240521.md new file mode 100644 index 0000000..b351282 --- /dev/null +++ b/diffs/pre_MainnetCapsUpdate_20240521_post_MainnetCapsUpdate_20240521.md @@ -0,0 +1,31 @@ +## Reserve changes + +### Reserve altered + +#### BAL ([0xba100000625a3754423978a60c9317c58a424e3D](https://etherscan.io/address/0xba100000625a3754423978a60c9317c58a424e3d)) + +| description | value before | value after | +| --- | --- | --- | +| supplyCap | 1,400,000 BAL | 2,100,000 BAL | +| borrowCap | 244,200 BAL | 250,000 BAL | + +## Raw diff + +```json +{ + "reserves": { + "0x5A98FcBEA516Cf06857215779Fd812CA3beF1B32": { + "supplyCap": { + "from": 1400000, + "to": 2100000 + } + }, + "0x6c3ea9036406852006290770BEdFcAbA0e23A0e8": { + "borrowCap": { + "from": 244200, + "to": 250000 + } + } + } +} +``` \ No newline at end of file diff --git a/diffs/pre_MetisCapsUpdate_20240521_post_MetisCapsUpdate_20240521.md b/diffs/pre_MetisCapsUpdate_20240521_post_MetisCapsUpdate_20240521.md new file mode 100644 index 0000000..58f8767 --- /dev/null +++ b/diffs/pre_MetisCapsUpdate_20240521_post_MetisCapsUpdate_20240521.md @@ -0,0 +1,25 @@ +## Reserve changes + +### Reserves altered + +#### WETH ([0x420000000000000000000000000000000000000A](https://andromeda-explorer.metis.io/address/0x420000000000000000000000000000000000000A)) + +| description | value before | value after | +| --- | --- | --- | +| supplyCap | 1,800 WETH | 2,000 WETH | + + +## Raw diff + +```json +{ + "reserves": { + "0x420000000000000000000000000000000000000A": { + "supplyCap": { + "from": 1800, + "to": 2000 + } + } + } +} +``` \ No newline at end of file diff --git a/diffs/pre_PolygonCapsUpdate_20240521_post_PolygonCapsUpdate_20240521.md b/diffs/pre_PolygonCapsUpdate_20240521_post_PolygonCapsUpdate_20240521.md new file mode 100644 index 0000000..5822df6 --- /dev/null +++ b/diffs/pre_PolygonCapsUpdate_20240521_post_PolygonCapsUpdate_20240521.md @@ -0,0 +1,25 @@ +## Reserve changes + +### Reserves altered + +#### MaticX ([0xfa68FB4628DFF1028CFEc22b4162FCcd0d45efb6](https://polygonscan.com/address/0xfa68FB4628DFF1028CFEc22b4162FCcd0d45efb6)) + +| description | value before | value after | +| --- | --- | --- | +| supplyCap | 90,000,000 MaticX | 97,000,000 MaticX | + + +## Raw diff + +```json +{ + "reserves": { + "0xfa68FB4628DFF1028CFEc22b4162FCcd0d45efb6": { + "supplyCap": { + "from": 90000000, + "to": 97000000 + } + } + } +} +``` \ No newline at end of file diff --git a/src/ArbitrumCapsUpdate_20240521.s.sol b/src/ArbitrumCapsUpdate_20240521.s.sol new file mode 100644 index 0000000..633b663 --- /dev/null +++ b/src/ArbitrumCapsUpdate_20240521.s.sol @@ -0,0 +1,35 @@ +// SPDX-License-Identifier: MIT +pragma solidity ^0.8.0; + +import {AaveV3ArbitrumAssets} from 'aave-address-book/AaveV3Arbitrum.sol'; +import {IAaveV3ConfigEngine} from 'aave-helpers/v3-config-engine/IAaveV3ConfigEngine.sol'; +import {EngineFlags} from 'aave-helpers/v3-config-engine/EngineFlags.sol'; +import {CapsPlusRiskStewardArbitrum} from '../scripts/CapsPlusRiskStewardArbitrum.s.sol'; + +/** + * @title Increase Supply and Borrow Caps on Aave V3 + * @author Chaos Labs + * - Discussion: https://governance.aave.com/t/arfc-chaos-labs-risk-stewards-increase-supply-and-borrow-caps-on-aave-v3-05-20-2024/17752 + */ +contract ArbitrumCapsUpdate_20240521 is CapsPlusRiskStewardArbitrum { + /** + * @return string name identifier used for the diff + */ + function name() internal pure override returns (string memory) { + return 'ArbitrumCapsUpdate_20240521'; + } + + /** + * @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( + AaveV3ArbitrumAssets.wstETH_UNDERLYING, + EngineFlags.KEEP_CURRENT, + 4_800 + ); + return capUpdates; + } +} diff --git a/src/MainnetCapsUpdate_20240521.s.sol b/src/MainnetCapsUpdate_20240521.s.sol new file mode 100644 index 0000000..98ba896 --- /dev/null +++ b/src/MainnetCapsUpdate_20240521.s.sol @@ -0,0 +1,34 @@ +// SPDX-License-Identifier: MIT +pragma solidity ^0.8.0; + +import {AaveV3EthereumAssets} from 'aave-address-book/AaveV3Ethereum.sol'; +import {IAaveV3ConfigEngine} from 'aave-helpers/v3-config-engine/IAaveV3ConfigEngine.sol'; +import {CapsPlusRiskStewardMainnet} from '../scripts/CapsPlusRiskStewardMainnet.s.sol'; + +/** + * @title Increase Supply and Borrow Caps on Aave V3 + * @author Chaos Labs + * - Discussion: https://governance.aave.com/t/arfc-chaos-labs-risk-stewards-increase-supply-and-borrow-caps-on-aave-v3-05-20-2024/17752 + */ +contract MainnetCapsUpdate_20240521 is CapsPlusRiskStewardMainnet { + /** + * @return string name identifier used for the diff + */ + function name() internal pure override returns (string memory) { + return 'MainnetCapsUpdate_20240521'; + } + + /** + * @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( + AaveV3EthereumAssets.BAL_UNDERLYING, + 2_100_000, + 250_000 + ); + return capUpdates; + } +} diff --git a/src/MetisCapsUpdate_20240521.s.sol b/src/MetisCapsUpdate_20240521.s.sol new file mode 100644 index 0000000..175c5ae --- /dev/null +++ b/src/MetisCapsUpdate_20240521.s.sol @@ -0,0 +1,35 @@ +// SPDX-License-Identifier: MIT +pragma solidity ^0.8.0; + +import {AaveV3MetisAssets} from 'aave-address-book/AaveV3Metis.sol'; +import {IAaveV3ConfigEngine} from 'aave-helpers/v3-config-engine/IAaveV3ConfigEngine.sol'; +import {EngineFlags} from 'aave-helpers/v3-config-engine/EngineFlags.sol'; +import {CapsPlusRiskStewardMetis} from '../scripts/CapsPlusRiskStewardMetis.s.sol'; + +/** + * @title Increase Supply and Borrow Caps on Aave V3 + * @author Chaos Labs + * - Discussion: https://governance.aave.com/t/arfc-chaos-labs-risk-stewards-increase-supply-and-borrow-caps-on-aave-v3-05-20-2024/17752 + */ +contract MetisCapsUpdate_20240521 is CapsPlusRiskStewardMetis { + /** + * @return string name identifier used for the diff + */ + function name() internal pure override returns (string memory) { + return 'MetisCapsUpdate_20240521'; + } + + /** + * @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( + AaveV3MetisAssets.WETH_UNDERLYING, + 2_000, + EngineFlags.KEEP_CURRENT + ); + return capUpdates; + } +} diff --git a/src/PolygonCapsUpdate_20240521.s.sol b/src/PolygonCapsUpdate_20240521.s.sol new file mode 100644 index 0000000..8a3860c --- /dev/null +++ b/src/PolygonCapsUpdate_20240521.s.sol @@ -0,0 +1,35 @@ +// SPDX-License-Identifier: MIT +pragma solidity ^0.8.0; + +import {AaveV3PolygonAssets} from 'aave-address-book/AaveV3Polygon.sol'; +import {IAaveV3ConfigEngine} from 'aave-helpers/v3-config-engine/IAaveV3ConfigEngine.sol'; +import {EngineFlags} from 'aave-helpers/v3-config-engine/EngineFlags.sol'; +import {CapsPlusRiskStewardPolygon} from '../scripts/CapsPlusRiskStewardPolygon.s.sol'; + +/** + * @title Increase Supply and Borrow Caps on Aave V3 + * @author Chaos Labs + * - Discussion: https://governance.aave.com/t/arfc-chaos-labs-risk-stewards-increase-supply-and-borrow-caps-on-aave-v3-05-20-2024/17752 + */ +contract PolygonCapsUpdate_20240521 is CapsPlusRiskStewardPolygon { + /** + * @return string name identifier used for the diff + */ + function name() internal pure override returns (string memory) { + return 'PolygonCapsUpdate_20240521'; + } + + /** + * @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( + AaveV3PolygonAssets.MaticX_UNDERLYING, + 97_000_000, + EngineFlags.KEEP_CURRENT + ); + return capUpdates; + } +}