generated from bgd-labs/bgd-forge-template
-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Polygon MaticX Supply Cap Increase 20240311
- Loading branch information
1 parent
3af508d
commit d5dc652
Showing
2 changed files
with
61 additions
and
0 deletions.
There are no files selected for viewing
25 changes: 25 additions & 0 deletions
25
...aticXSupplyCapIncrease_20240311_post_PolygonMaticXSupplyCapIncrease_20240311.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
} | ||
} | ||
} | ||
} | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
} | ||
} |