diff --git a/diffs/pre_mainnetCapsIncrease_20230727_post_mainnetCapsIncrease_20230727.md b/diffs/pre_mainnetCapsIncrease_20230727_post_mainnetCapsIncrease_20230727.md new file mode 100644 index 0000000..00aaa84 --- /dev/null +++ b/diffs/pre_mainnetCapsIncrease_20230727_post_mainnetCapsIncrease_20230727.md @@ -0,0 +1,25 @@ +## Reserve changes + +### Reserves altered + +#### RPL ([0xD33526068D116cE69F19A9ee46F0bd304F21A51f](https://etherscan.io/address/0xD33526068D116cE69F19A9ee46F0bd304F21A51f)) + +| description | value before | value after | +| --- | --- | --- | +| supplyCap | 105,000 RPL | 210,000 RPL | + + +## Raw diff + +```json +{ + "reserves": { + "0xD33526068D116cE69F19A9ee46F0bd304F21A51f": { + "supplyCap": { + "from": 105000, + "to": 210000 + } + } + } +} +``` \ No newline at end of file diff --git a/src/MainnetCapsIncrease_20230727.s.sol b/src/MainnetCapsIncrease_20230727.s.sol new file mode 100644 index 0000000..886ed6d --- /dev/null +++ b/src/MainnetCapsIncrease_20230727.s.sol @@ -0,0 +1,38 @@ +// 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'; + +/** + * @title Update Supply Caps for RPL on Ethereum V3 + * @author @ChaosLabsInc + * - Discussion: https://governance.aave.com/t/arfc-chaos-labs-risk-stewards-increase-supply-caps-rpl-on-v3-ethereum/14123 + */ +contract MainnetCapsIncrease_20230727 is CapsPlusRiskStewardMainnet { + address public constant RPL_UNDERLYING_ADDRESS = 0xD33526068D116cE69F19A9ee46F0bd304F21A51f; + + /** + * @return string name identifier used for the diff + */ + function name() internal pure override returns (string memory) { + return 'mainnetCapsIncrease_20230727'; + } + + /** + * @return IAaveV3ConfigEngine.CapsUpdate[] capUpdates to be performed + */ + function capsUpdates() internal pure override returns (IAaveV3ConfigEngine.CapsUpdate[] memory) { + IAaveV3ConfigEngine.CapsUpdate[] memory capUpdates = new IAaveV3ConfigEngine.CapsUpdate[](1); + + // RPL + capUpdates[0] = IAaveV3ConfigEngine.CapsUpdate( + RPL_UNDERLYING_ADDRESS, + 210_000, + EngineFlags.KEEP_CURRENT + ); + + return capUpdates; + } +}