Skip to content

Commit

Permalink
Polygon Caps Increase 20240426
Browse files Browse the repository at this point in the history
  • Loading branch information
eyalovadya committed Apr 26, 2024
1 parent d35044b commit 723199f
Show file tree
Hide file tree
Showing 4 changed files with 45 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/aave-address-book
Submodule aave-address-book updated 474 files
2 changes: 1 addition & 1 deletion lib/aave-helpers
Submodule aave-helpers updated 765 files
42 changes: 42 additions & 0 deletions src/PolygonCapsIncrease_20240426.s.sol
Original file line number Diff line number Diff line change
@@ -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;
}
}

0 comments on commit 723199f

Please sign in to comment.