diff --git a/diffs/pre_mainnetCapsIncrease_20240114_post_mainnetCapsIncrease_20240114.md b/diffs/pre_mainnetCapsIncrease_20240114_post_mainnetCapsIncrease_20240114.md new file mode 100644 index 0000000..d621d26 --- /dev/null +++ b/diffs/pre_mainnetCapsIncrease_20240114_post_mainnetCapsIncrease_20240114.md @@ -0,0 +1,51 @@ +## Reserve changes + +### Reserve altered + +#### 1INCH ([0x111111111117dC0aa78b770fA6A738034120C302](https://etherscan.io/address/0x111111111117dC0aa78b770fA6A738034120C302)) + +| description | value before | value after | +| --- | --- | --- | +| supplyCap | 22,000,000 1INCH | 30,000,000 1INCH | + + +#### SNX ([0xC011a73ee8576Fb46F5E1c5751cA3B9Fe0af2a6F](https://etherscan.io/address/0xC011a73ee8576Fb46F5E1c5751cA3B9Fe0af2a6F)) + +| description | value before | value after | +| --- | --- | --- | +| supplyCap | 3,000,000 SNX | 4,500,000 SNX | + + +#### ENS ([0xC18360217D8F7Ab5e7c516566761Ea12Ce7F9D72](https://etherscan.io/address/0xC18360217D8F7Ab5e7c516566761Ea12Ce7F9D72)) + +| description | value before | value after | +| --- | --- | --- | +| supplyCap | 1,000,000 ENS | 1,500,000 ENS | + + +## Raw diff + +```json +{ + "reserves": { + "0x111111111117dC0aa78b770fA6A738034120C302": { + "supplyCap": { + "from": 22000000, + "to": 30000000 + } + }, + "0xC011a73ee8576Fb46F5E1c5751cA3B9Fe0af2a6F": { + "supplyCap": { + "from": 3000000, + "to": 4500000 + } + }, + "0xC18360217D8F7Ab5e7c516566761Ea12Ce7F9D72": { + "supplyCap": { + "from": 1000000, + "to": 1500000 + } + } + } +} +``` \ No newline at end of file diff --git a/src/MainnetCapsIncrease_20240114.s.sol b/src/MainnetCapsIncrease_20240114.s.sol new file mode 100644 index 0000000..9b663a2 --- /dev/null +++ b/src/MainnetCapsIncrease_20240114.s.sol @@ -0,0 +1,48 @@ +// 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 + * - Discussion: https://governance.aave.com/t/arfc-chaos-labs-risk-stewards-increase-supply-and-borrow-caps-on-v3-ethereum-01-12-2024/16169 + */ +contract MainnetCapsIncrease_20240114 is CapsPlusRiskStewardMainnet { + /** + * @return string name identifier used for the diff + */ + function name() internal pure override returns (string memory) { + return 'mainnetCapsIncrease_20240114'; + } + + /** + * @return IAaveV3ConfigEngine.CapsUpdate[] capUpdates to be performed + */ + function capsUpdates() internal pure override returns (IAaveV3ConfigEngine.CapsUpdate[] memory) { + IAaveV3ConfigEngine.CapsUpdate[] memory capUpdates = new IAaveV3ConfigEngine.CapsUpdate[](3); + + capUpdates[0] = IAaveV3ConfigEngine.CapsUpdate( + AaveV3EthereumAssets.SNX_UNDERLYING, + 4_500_000, + EngineFlags.KEEP_CURRENT + ); + + capUpdates[1] = IAaveV3ConfigEngine.CapsUpdate( + AaveV3EthereumAssets.ENS_UNDERLYING, + 1_500_000, + EngineFlags.KEEP_CURRENT + ); + + capUpdates[2] = IAaveV3ConfigEngine.CapsUpdate( + AaveV3EthereumAssets.ONE_INCH_UNDERLYING, + 30_000_000, + EngineFlags.KEEP_CURRENT + ); + + return capUpdates; + } +}