diff --git a/diffs/pre_arbitrum_caps_increase_20240105_post_arbitrum_caps_increase_20240105.md b/diffs/pre_arbitrum_caps_increase_20240105_post_arbitrum_caps_increase_20240105.md new file mode 100644 index 0000000..9dbaf30 --- /dev/null +++ b/diffs/pre_arbitrum_caps_increase_20240105_post_arbitrum_caps_increase_20240105.md @@ -0,0 +1,25 @@ +## Reserve changes + +### Reserves altered + +#### LINK ([0xf97f4df75117a78c1A5a0DBb814Af92458539FB4](https://arbiscan.io/address/0xf97f4df75117a78c1A5a0DBb814Af92458539FB4)) + +| description | value before | value after | +| --- | --- | --- | +| supplyCap | 1,575,000 LINK | 1,800,000 LINK | + + +## Raw diff + +```json +{ + "reserves": { + "0xf97f4df75117a78c1A5a0DBb814Af92458539FB4": { + "supplyCap": { + "from": 1575000, + "to": 1800000 + } + } + } +} +``` \ No newline at end of file diff --git a/diffs/pre_mainnetCapsIncrease_20240105_post_mainnetCapsIncrease_20240105.md b/diffs/pre_mainnetCapsIncrease_20240105_post_mainnetCapsIncrease_20240105.md new file mode 100644 index 0000000..a5266df --- /dev/null +++ b/diffs/pre_mainnetCapsIncrease_20240105_post_mainnetCapsIncrease_20240105.md @@ -0,0 +1,43 @@ +## Reserve changes + +### Reserve altered + +#### SNX ([0xC011a73ee8576Fb46F5E1c5751cA3B9Fe0af2a6F](https://etherscan.io/address/0xC011a73ee8576Fb46F5E1c5751cA3B9Fe0af2a6F)) + +| description | value before | value after | +| --- | --- | --- | +| supplyCap | 2,000,000 SNX | 3,000,000 SNX | + + +#### BAL ([0xba100000625a3754423978a60c9317c58a424e3D](https://etherscan.io/address/0xba100000625a3754423978a60c9317c58a424e3D)) + +| description | value before | value after | +| --- | --- | --- | +| supplyCap | 700,000 BAL | 1,400,000 BAL | +| borrowCap | 185,000 BAL | 370,000 BAL | + + +## Raw diff + +```json +{ + "reserves": { + "0xC011a73ee8576Fb46F5E1c5751cA3B9Fe0af2a6F": { + "supplyCap": { + "from": 2000000, + "to": 3000000 + } + }, + "0xba100000625a3754423978a60c9317c58a424e3D": { + "borrowCap": { + "from": 185000, + "to": 370000 + }, + "supplyCap": { + "from": 700000, + "to": 1400000 + } + } + } +} +``` \ No newline at end of file diff --git a/src/ArbitrumCapsIncrease_20240105.s.sol b/src/ArbitrumCapsIncrease_20240105.s.sol new file mode 100644 index 0000000..3a8777c --- /dev/null +++ b/src/ArbitrumCapsIncrease_20240105.s.sol @@ -0,0 +1,36 @@ +// 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 Update Caps on Arbitrum V3 + * @author @ChaosLabsInc + * - Discussion: https://governance.aave.com/t/arfc-chaos-labs-risk-stewards-increase-supply-and-borrow-caps-on-v3-ethereum-and-arbitrum-01-03-2024/16036 + */ +contract ArbitrumCapsIncrease_20240105 is CapsPlusRiskStewardArbitrum { + /** + * @return string name identifier used for the diff + */ + function name() internal pure override returns (string memory) { + return 'arbitrum_caps_increase_20240105'; + } + + /** + * @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.LINK_UNDERLYING, + 1_800_000, + EngineFlags.KEEP_CURRENT + ); + + return capUpdates; + } +} \ No newline at end of file diff --git a/src/MainnetCapsIncrease_20240105.s.sol b/src/MainnetCapsIncrease_20240105.s.sol new file mode 100644 index 0000000..cb6dd69 --- /dev/null +++ b/src/MainnetCapsIncrease_20240105.s.sol @@ -0,0 +1,42 @@ +// 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-and-arbitrum-01-03-2024/16036 + */ +contract MainnetCapsIncrease_20240105 is CapsPlusRiskStewardMainnet { + /** + * @return string name identifier used for the diff + */ + function name() internal pure override returns (string memory) { + return 'mainnetCapsIncrease_20240105'; + } + + /** + * @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.SNX_UNDERLYING, + 3_000_000, + EngineFlags.KEEP_CURRENT + ); + + capUpdates[1] = IAaveV3ConfigEngine.CapsUpdate( + AaveV3EthereumAssets.BAL_UNDERLYING, + 1_400_000, + 370_000 + ); + + return capUpdates; + } +}