Skip to content

Commit

Permalink
Polygon MaticX Supply Cap Increase 20240311
Browse files Browse the repository at this point in the history
  • Loading branch information
eyalovadya committed Mar 12, 2024
1 parent 3af508d commit d5dc652
Show file tree
Hide file tree
Showing 2 changed files with 61 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
## Reserve changes

### Reserves altered

#### MaticX ([0xfa68FB4628DFF1028CFEc22b4162FCcd0d45efb6](https://polygonscan.com/address/0xfa68FB4628DFF1028CFEc22b4162FCcd0d45efb6))

| description | value before | value after |
| --- | --- | --- |
| supplyCap | 75,000,000 MaticX | 82,500,000 MaticX |


## Raw diff

```json
{
"reserves": {
"0xfa68FB4628DFF1028CFEc22b4162FCcd0d45efb6": {
"supplyCap": {
"from": 75000000,
"to": 82500000
}
}
}
}
```
36 changes: 36 additions & 0 deletions src/PolygonMaticXSupplyCapIncrease_20240311.s.sol
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
// 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 MaticX Supply Cap on Polygon V3
* @author @ChaosLabsInc
* - Discussion: https://governance.aave.com/t/chaos-labs-risk-stewards-increase-maticx-supply-cap-on-v3-polygon-03-11-24/16920
*/
contract PolygonMaticXSupplyCapIncrease_20240311 is CapsPlusRiskStewardPolygon {
/**
* @return string name identifier used for the diff
*/
function name() internal pure override returns (string memory) {
return 'PolygonMaticXSupplyCapIncrease_20240311';
}

/**
* @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(
AaveV3PolygonAssets.MaticX_UNDERLYING,
82_500_000,
EngineFlags.KEEP_CURRENT
);

return capUpdates;
}
}

0 comments on commit d5dc652

Please sign in to comment.