Skip to content

Commit

Permalink
Merge pull request #74 from bgd-labs/chaoslabs/polygon_wsteth_caps_in…
Browse files Browse the repository at this point in the history
…crease_20240330

Polygon wstETH Supply Cap Increase 20240330
  • Loading branch information
eyalovadya authored Mar 31, 2024
2 parents 57cf933 + 211f777 commit bc5318f
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

#### wstETH ([0x03b54A6e9a984069379fae1a4fC4dBAE93B3bCCD](https://polygonscan.com/address/0x03b54A6e9a984069379fae1a4fC4dBAE93B3bCCD))

| description | value before | value after |
| --- | --- | --- |
| supplyCap | 4,370 wstETH | 5,250 wstETH |


## Raw diff

```json
{
"reserves": {
"0x03b54A6e9a984069379fae1a4fC4dBAE93B3bCCD": {
"supplyCap": {
"from": 4370,
"to": 5250
}
}
}
}
```
36 changes: 36 additions & 0 deletions src/PolygonWstETHCapsIncrease_20240330.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 wstETH Caps on Polygon V3
* @author Chaos Labs
* Discussion: https://governance.aave.com/t/arfc-chaos-labs-risk-stewards-increase-supply-cap-for-wsteth-on-v3-polygon-03-30-2024/17170
*/
contract PolygonWstETHCapsIncrease_20240330 is CapsPlusRiskStewardPolygon {
/**
* @return string name identifier used for the diff
*/
function name() internal pure override returns (string memory) {
return 'PolygonWstETHCapsIncrease_20240330';
}

/**
* @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.wstETH_UNDERLYING,
5_250,
EngineFlags.KEEP_CURRENT
);

return capUpdates;
}
}

0 comments on commit bc5318f

Please sign in to comment.