diff --git a/diffs/pre_mainnetCapsIncrease_20240313_post_mainnetCapsIncrease_20240313.md b/diffs/pre_mainnetCapsIncrease_20240313_post_mainnetCapsIncrease_20240313.md new file mode 100644 index 0000000..468aae4 --- /dev/null +++ b/diffs/pre_mainnetCapsIncrease_20240313_post_mainnetCapsIncrease_20240313.md @@ -0,0 +1,38 @@ +## Reserve changes + +### Reserve altered + +#### LDO ([0x5A98FcBEA516Cf06857215779Fd812CA3beF1B32](https://etherscan.io/address/0x5A98FcBEA516Cf06857215779Fd812CA3beF1B32)) + +| description | value before | value after | +| --- | --- | --- | +| supplyCap | 6,000,000 LDO | 8,000,000 LDO | + + +#### PYUSD ([0x6c3ea9036406852006290770BEdFcAbA0e23A0e8](https://etherscan.io/address/0x6c3ea9036406852006290770BEdFcAbA0e23A0e8)) + +| description | value before | value after | +| --- | --- | --- | +| borrowCap | 18,000,000 PYUSD | 30,000,000 PYUSD | + + +## Raw diff + +```json +{ + "reserves": { + "0x5A98FcBEA516Cf06857215779Fd812CA3beF1B32": { + "supplyCap": { + "from": 6000000, + "to": 8000000 + } + }, + "0x6c3ea9036406852006290770BEdFcAbA0e23A0e8": { + "borrowCap": { + "from": 18000000, + "to": 30000000 + } + } + } +} +``` \ No newline at end of file diff --git a/src/MainnetCapsIncrease_20240313.s.sol b/src/MainnetCapsIncrease_20240313.s.sol new file mode 100644 index 0000000..48a65e2 --- /dev/null +++ b/src/MainnetCapsIncrease_20240313.s.sol @@ -0,0 +1,41 @@ +// SPDX-License-Identifier: MIT +pragma solidity ^0.8.0; + +import {IAaveV3ConfigEngine} from 'aave-helpers/v3-config-engine/IAaveV3ConfigEngine.sol'; +import {EngineFlags} from 'aave-helpers/v3-config-engine/EngineFlags.sol'; +import {CapsPlusRiskStewardMainnet} from '../scripts/CapsPlusRiskStewardMainnet.s.sol'; +import {AaveV3EthereumAssets} from 'aave-address-book/AaveV3Ethereum.sol'; + +/** + * @title Increase Caps on Ethereum V3 + * @author @ChaosLabsInc + */ +contract MainnetCapsIncrease_20240313 is CapsPlusRiskStewardMainnet { + /** + * @return string name identifier used for the diff + */ + function name() internal pure override returns (string memory) { + return 'mainnetCapsIncrease_20240313'; + } + + /** + * @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( + AaveV3EthereumAssets.PYUSD_UNDERLYING, + EngineFlags.KEEP_CURRENT, + 30_000_000 + ); + + capUpdates[1] = IAaveV3ConfigEngine.CapsUpdate( + AaveV3EthereumAssets.LDO_UNDERLYING, + 8_000_000, + EngineFlags.KEEP_CURRENT + ); + + return capUpdates; + } +}