diff --git a/diffs/pre_gnosis_caps_increase_20231217_post_gnosis_caps_increase_20231217.md b/diffs/pre_gnosis_caps_increase_20231217_post_gnosis_caps_increase_20231217.md new file mode 100644 index 0000000..10f1301 --- /dev/null +++ b/diffs/pre_gnosis_caps_increase_20231217_post_gnosis_caps_increase_20231217.md @@ -0,0 +1,38 @@ +## Reserve changes + +### Reserve altered + +#### GNO ([0x9C58BAcC331c9aa871AFD802DB6379a98e80CEdb](https://blockscout.com/xdai/mainnet/address/0x9C58BAcC331c9aa871AFD802DB6379a98e80CEdb)) + +| description | value before | value after | +| --- | --- | --- | +| supplyCap | 30,000 GNO | 40,000 GNO | + + +#### sDAI ([0xaf204776c7245bF4147c2612BF6e5972Ee483701](https://blockscout.com/xdai/mainnet/address/0xaf204776c7245bF4147c2612BF6e5972Ee483701)) + +| description | value before | value after | +| --- | --- | --- | +| supplyCap | 3,000,000 sDAI | 6,000,000 sDAI | + + +## Raw diff + +```json +{ + "reserves": { + "0x9C58BAcC331c9aa871AFD802DB6379a98e80CEdb": { + "supplyCap": { + "from": 30000, + "to": 40000 + } + }, + "0xaf204776c7245bF4147c2612BF6e5972Ee483701": { + "supplyCap": { + "from": 3000000, + "to": 6000000 + } + } + } +} +``` \ No newline at end of file diff --git a/src/GnosisCapsIncrease_20231217.s.sol b/src/GnosisCapsIncrease_20231217.s.sol new file mode 100644 index 0000000..6de651a --- /dev/null +++ b/src/GnosisCapsIncrease_20231217.s.sol @@ -0,0 +1,42 @@ +// SPDX-License-Identifier: MIT +pragma solidity ^0.8.0; + +import {AaveV3GnosisAssets} from 'aave-address-book/AaveV3Gnosis.sol'; +import {IAaveV3ConfigEngine} from 'aave-helpers/v3-config-engine/IAaveV3ConfigEngine.sol'; +import {EngineFlags} from 'aave-helpers/v3-config-engine/EngineFlags.sol'; +import {CapsPlusRiskStewardGnosis} from '../scripts/CapsPlusRiskStewardGnosis.s.sol'; + +/** + * @title Update Caps on Gnosis V3 + * @author Chaos Labs + * - Discussion: https://governance.aave.com/t/arfc-chaos-labs-risk-stewards-increase-supply-caps-on-v3-gnosis-12-15-2023/15861 + */ +contract GnosisCapsIncrease_20231217 is CapsPlusRiskStewardGnosis { + /** + * @return string name identifier used for the diff + */ + function name() internal pure override returns (string memory) { + return 'gnosis_caps_increase_20231217'; + } + + /** + * @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( + AaveV3GnosisAssets.sDAI_UNDERLYING, + 6_000_000, + EngineFlags.KEEP_CURRENT + ); + + capUpdates[1] = IAaveV3ConfigEngine.CapsUpdate( + AaveV3GnosisAssets.GNO_UNDERLYING, + 40_000, + EngineFlags.KEEP_CURRENT + ); + + return capUpdates; + } +}