diff --git a/diffs/pre_arbitrum_caps_increase_20231101_post_arbitrum_caps_increase_20231101.md b/diffs/pre_arbitrum_caps_increase_20231101_post_arbitrum_caps_increase_20231101.md new file mode 100644 index 0000000..6c237f0 --- /dev/null +++ b/diffs/pre_arbitrum_caps_increase_20231101_post_arbitrum_caps_increase_20231101.md @@ -0,0 +1,25 @@ +## Reserve changes + +### Reserves altered + +#### rETH ([0xEC70Dcb4A1EFa46b8F2D97C310C9c4790ba5ffA8](https://arbiscan.io/address/0xEC70Dcb4A1EFa46b8F2D97C310C9c4790ba5ffA8)) + +| description | value before | value after | +| --- | --- | --- | +| borrowCap | 340 rETH | 680 rETH | + + +## Raw diff + +```json +{ + "reserves": { + "0xEC70Dcb4A1EFa46b8F2D97C310C9c4790ba5ffA8": { + "borrowCap": { + "from": 340, + "to": 680 + } + } + } +} +``` \ No newline at end of file diff --git a/diffs/pre_avalanche_caps_increase_20231101_post_avalanche_caps_increase_20231101.md b/diffs/pre_avalanche_caps_increase_20231101_post_avalanche_caps_increase_20231101.md new file mode 100644 index 0000000..324daa8 --- /dev/null +++ b/diffs/pre_avalanche_caps_increase_20231101_post_avalanche_caps_increase_20231101.md @@ -0,0 +1,30 @@ +## Reserve changes + +### Reserves altered + +#### WAVAX ([0xB31f66AA3C1e785363F0875A1B74E27b85FD66c7](https://snowtrace.io/address/0xB31f66AA3C1e785363F0875A1B74E27b85FD66c7)) + +| description | value before | value after | +| --- | --- | --- | +| supplyCap | 3,800,000 WAVAX | 5,700,000 WAVAX | +| borrowCap | 2,400,000 WAVAX | 3,600,000 WAVAX | + + +## Raw diff + +```json +{ + "reserves": { + "0xB31f66AA3C1e785363F0875A1B74E27b85FD66c7": { + "borrowCap": { + "from": 2400000, + "to": 3600000 + }, + "supplyCap": { + "from": 3800000, + "to": 5700000 + } + } + } +} +``` \ No newline at end of file diff --git a/diffs/pre_mainnetCapsIncrease_20231101_post_mainnetCapsIncrease_20231101.md b/diffs/pre_mainnetCapsIncrease_20231101_post_mainnetCapsIncrease_20231101.md new file mode 100644 index 0000000..4f27984 --- /dev/null +++ b/diffs/pre_mainnetCapsIncrease_20231101_post_mainnetCapsIncrease_20231101.md @@ -0,0 +1,38 @@ +## Reserve changes + +### Reserve altered + +#### MKR ([0x9f8F72aA9304c8B593d555F12eF6589cC3A579A2](https://etherscan.io/address/0x9f8F72aA9304c8B593d555F12eF6589cC3A579A2)) + +| description | value before | value after | +| --- | --- | --- | +| supplyCap | 15,000 MKR | 22,500 MKR | + + +#### RPL ([0xD33526068D116cE69F19A9ee46F0bd304F21A51f](https://etherscan.io/address/0xD33526068D116cE69F19A9ee46F0bd304F21A51f)) + +| description | value before | value after | +| --- | --- | --- | +| borrowCap | 240,000 RPL | 480,000 RPL | + + +## Raw diff + +```json +{ + "reserves": { + "0x9f8F72aA9304c8B593d555F12eF6589cC3A579A2": { + "supplyCap": { + "from": 15000, + "to": 22500 + } + }, + "0xD33526068D116cE69F19A9ee46F0bd304F21A51f": { + "borrowCap": { + "from": 240000, + "to": 480000 + } + } + } +} +``` \ No newline at end of file diff --git a/diffs/pre_metis_caps_increase_20231101_post_metis_caps_increase_20231101.md b/diffs/pre_metis_caps_increase_20231101_post_metis_caps_increase_20231101.md new file mode 100644 index 0000000..029c5cf --- /dev/null +++ b/diffs/pre_metis_caps_increase_20231101_post_metis_caps_increase_20231101.md @@ -0,0 +1,25 @@ +## Reserve changes + +### Reserves altered + +#### Metis ([0xDeadDeAddeAddEAddeadDEaDDEAdDeaDDeAD0000](https://andromeda-explorer.metis.io/address/0xDeadDeAddeAddEAddeadDEaDDEAdDeaDDeAD0000)) + +| description | value before | value after | +| --- | --- | --- | +| borrowCap | 16,000 Metis | 32,000 Metis | + + +## Raw diff + +```json +{ + "reserves": { + "0xDeadDeAddeAddEAddeadDEaDDEAdDeaDDeAD0000": { + "borrowCap": { + "from": 16000, + "to": 32000 + } + } + } +} +``` \ No newline at end of file diff --git a/src/ArbitrumCapsIncrease_20231101.s.sol b/src/ArbitrumCapsIncrease_20231101.s.sol new file mode 100644 index 0000000..cc4b476 --- /dev/null +++ b/src/ArbitrumCapsIncrease_20231101.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 Increase Caps on Arbitrum V3 + * @author @yonikesel - ChaosLabsInc + * - Discussion: https://governance.aave.com/t/arfc-chaos-labs-risk-stewards-increase-supply-and-borrow-caps-on-aave-v3-10-29-2023/15261 + */ +contract ArbitrumCapsIncrease_20231101 is CapsPlusRiskStewardArbitrum { + /** + * @return string name identifier used for the diff + */ + function name() internal pure override returns (string memory) { + return 'arbitrum_caps_increase_20231101'; + } + + /** + * @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.rETH_UNDERLYING, + EngineFlags.KEEP_CURRENT, + 680 + ); + + return capUpdates; + } +} diff --git a/src/AvalancheCapsIncrease_20231101.s.sol b/src/AvalancheCapsIncrease_20231101.s.sol new file mode 100644 index 0000000..482a6d6 --- /dev/null +++ b/src/AvalancheCapsIncrease_20231101.s.sol @@ -0,0 +1,34 @@ +// SPDX-License-Identifier: MIT +pragma solidity ^0.8.0; + +import {AaveV3AvalancheAssets} from 'aave-address-book/AaveV3Avalanche.sol'; +import {IAaveV3ConfigEngine} from 'aave-helpers/v3-config-engine/IAaveV3ConfigEngine.sol'; +import {EngineFlags} from 'aave-helpers/v3-config-engine/EngineFlags.sol'; +import {CapsPlusRiskStewardAvalanche} from '../scripts/CapsPlusRiskStewardAvalanche.s.sol'; + +/** + * @title Increase Caps on Avalanche V3 + * @author @ChaosLabsInc + * - Discussion: https://governance.aave.com/t/arfc-chaos-labs-risk-stewards-increase-supply-and-borrow-caps-on-aave-v3-10-29-2023/15261 + */ +contract AvalancheSupplyCapsIncrease_20231101 is CapsPlusRiskStewardAvalanche { + /** + * @return string name identifier used for the diff + */ + function name() internal pure override returns (string memory) { + return 'avalanche_caps_increase_20231101'; + } + + /** + * @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( + AaveV3AvalancheAssets.WAVAX_UNDERLYING, + 5_700_000, + 3_600_000 + ); + return capUpdates; + } +} diff --git a/src/MainnetCapsIncrease_20231101.s.sol b/src/MainnetCapsIncrease_20231101.s.sol new file mode 100644 index 0000000..00ca363 --- /dev/null +++ b/src/MainnetCapsIncrease_20231101.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-aave-v3-10-29-2023/15261 + */ +contract MainnetCapsIncrease_20231101 is CapsPlusRiskStewardMainnet { + /** + * @return string name identifier used for the diff + */ + function name() internal pure override returns (string memory) { + return 'mainnetCapsIncrease_20231101'; + } + + /** + * @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.RPL_UNDERLYING, + EngineFlags.KEEP_CURRENT, + 480_000 + ); + + capUpdates[1] = IAaveV3ConfigEngine.CapsUpdate( + AaveV3EthereumAssets.MKR_UNDERLYING, + 22_500, + EngineFlags.KEEP_CURRENT + ); + + return capUpdates; + } +} diff --git a/src/MetisCapsIncrease_20231101.s.sol b/src/MetisCapsIncrease_20231101.s.sol new file mode 100644 index 0000000..42a6006 --- /dev/null +++ b/src/MetisCapsIncrease_20231101.s.sol @@ -0,0 +1,29 @@ +// 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'; + +contract MetisCapsIncrease20231101 is CapsPlusRiskStewardMetis { + /** + * @return string name identifier used for the diff + */ + function name() internal pure override returns (string memory) { + return 'metis_caps_increase_20231101'; + } + + /** + * @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.Metis_UNDERLYING, + EngineFlags.KEEP_CURRENT, + 32_000 + ); + return capUpdates; + } +}