diff --git a/lib/aave-address-book b/lib/aave-address-book index 0641952..aa24a81 160000 --- a/lib/aave-address-book +++ b/lib/aave-address-book @@ -1 +1 @@ -Subproject commit 06419522596afacd00604a8ab0a1e532cc6399ae +Subproject commit aa24a81922da3d7bbb7eab6bdfaada29300f79a9 diff --git a/lib/aave-helpers b/lib/aave-helpers index 7da64a6..8e1340b 160000 --- a/lib/aave-helpers +++ b/lib/aave-helpers @@ -1 +1 @@ -Subproject commit 7da64a6c8dfac96578d99b4f59c221a5f79e463b +Subproject commit 8e1340b890cef83117a4b319bea395b26991c0aa diff --git a/lib/forge-std b/lib/forge-std index 1d0766b..5475f85 160000 --- a/lib/forge-std +++ b/lib/forge-std @@ -1 +1 @@ -Subproject commit 1d0766bc5d814f117c7b1e643828f7d85024fb51 +Subproject commit 5475f852e3f530d7e25dfb4596aa1f9baa8ffdfc diff --git a/src/PolygonCapsIncrease_20240426.s.sol b/src/PolygonCapsIncrease_20240426.s.sol new file mode 100644 index 0000000..b160f21 --- /dev/null +++ b/src/PolygonCapsIncrease_20240426.s.sol @@ -0,0 +1,42 @@ +// SPDX-License-Identifier: MIT +pragma solidity ^0.8.0; + +import {AaveV3PolygonAssets} from 'aave-address-book/AaveV3Polygon.sol'; +import {IAaveV3ConfigEngine} from 'aave-helpers/v3-config-engine/IAaveV3ConfigEngine.sol'; +import {EngineFlags} from 'aave-helpers/v3-config-engine/EngineFlags.sol'; +import {CapsPlusRiskStewardPolygon} from '../scripts/CapsPlusRiskStewardPolygon.s.sol'; + +/** + * @title Increase Caps on Polygon V3 + * @author @ChaosLabsInc + * - Discussion: TODO + */ +contract PolygonCapsIncrease_20240426 is CapsPlusRiskStewardPolygon { + /** + * @return string name identifier used for the diff + */ + function name() internal pure override returns (string memory) { + return 'polygon_caps_increase_20240426'; + } + + /** + * @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( + AaveV3PolygonAssets.MaticX_UNDERLYING, + 90_000_000, + EngineFlags.KEEP_CURRENT + ); + + capUpdates[1] = IAaveV3ConfigEngine.CapsUpdate( + AaveV3PolygonAssets.LINK_UNDERLYING, + 800_000, + EngineFlags.KEEP_CURRENT + ); + + return capUpdates; + } +}