Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
## Reserve changes

### Reserve altered

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

| description | value before | value after |
| --- | --- | --- |
| supplyCap | 5,750 wstETH | 6,100 wstETH |


#### EURS ([0xE111178A87A3BFf0c8d18DECBa5798827539Ae99](https://polygonscan.com/address/0xE111178A87A3BFf0c8d18DECBa5798827539Ae99))

| description | value before | value after |
| --- | --- | --- |
| borrowCap | 1,500,000 EURS | 3,000,000 EURS |


## Raw diff

```json
{
"reserves": {
"0x03b54A6e9a984069379fae1a4fC4dBAE93B3bCCD": {
"supplyCap": {
"from": 5750,
"to": 6100
}
},
"0xE111178A87A3BFf0c8d18DECBa5798827539Ae99": {
"borrowCap": {
"from": 1500000,
"to": 3000000
}
}
}
}
```
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
## Reserve changes

### Reserves altered

#### wstETH ([0xc1CBa3fCea344f92D9239c08C0568f6F2F0ee452](https://basescan.org/address/0xc1CBa3fCea344f92D9239c08C0568f6F2F0ee452))

| description | value before | value after |
| --- | --- | --- |
| supplyCap | 4,000 wstETH | 6,000 wstETH |


## Raw diff

```json
{
"reserves": {
"0xc1CBa3fCea344f92D9239c08C0568f6F2F0ee452": {
"supplyCap": {
"from": 4000,
"to": 6000
}
}
}
}
```
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
## Reserve changes

### Reserves altered

#### RPL ([0xD33526068D116cE69F19A9ee46F0bd304F21A51f](https://etherscan.io/address/0xD33526068D116cE69F19A9ee46F0bd304F21A51f))

| description | value before | value after |
| --- | --- | --- |
| borrowCap | 316,800 RPL | 500,000 RPL |


## Raw diff

```json
{
"reserves": {
"0xD33526068D116cE69F19A9ee46F0bd304F21A51f": {
"borrowCap": {
"from": 316800,
"to": 500000
}
}
}
}
```
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
## Reserve changes

### Reserve altered

#### WETH ([0x5300000000000000000000000000000000000004](https://scrollscan.com/address/0x5300000000000000000000000000000000000004))

| description | value before | value after |
| --- | --- | --- |
| supplyCap | 2,000 WETH | 3,000 WETH |
| borrowCap | 1,200 WETH | 2,400 WETH |


#### wstETH ([0xf610A9dfB7C89644979b4A0f27063E9e7d7Cda32](https://scrollscan.com/address/0xf610A9dfB7C89644979b4A0f27063E9e7d7Cda32))

| description | value before | value after |
| --- | --- | --- |
| supplyCap | 1,000 wstETH | 1,250 wstETH |
| borrowCap | 45 wstETH | 90 wstETH |


## Raw diff

```json
{
"reserves": {
"0x5300000000000000000000000000000000000004": {
"borrowCap": {
"from": 1200,
"to": 2400
},
"supplyCap": {
"from": 2000,
"to": 3000
}
},
"0xf610A9dfB7C89644979b4A0f27063E9e7d7Cda32": {
"borrowCap": {
"from": 45,
"to": 90
},
"supplyCap": {
"from": 1000,
"to": 1250
}
}
}
}
```
36 changes: 36 additions & 0 deletions src/BaseCapsIncrease_20240510.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 {AaveV3BaseAssets} from 'aave-address-book/AaveV3Base.sol';
import {IAaveV3ConfigEngine} from 'aave-helpers/v3-config-engine/IAaveV3ConfigEngine.sol';
import {EngineFlags} from 'aave-helpers/v3-config-engine/EngineFlags.sol';
import {CapsPlusRiskStewardBaseChain} from '../scripts/CapsPlusRiskStewardBaseChain.s.sol';

/**
* @title Update Caps on Base V3
* @author Chaos Labs
* Discussion: https://governance.aave.com/t/arfc-chaos-labs-risk-stewards-increase-supply-and-borrow-cap-for-weeth-on-v3-scroll-polygon-ethereum-and-base-05-09-2024/17625
*/
contract BaseCapsIncrease_20240510 is CapsPlusRiskStewardBaseChain {
/**
* @return string name identifier used for the diff
*/
function name() internal pure override returns (string memory) {
return 'base_caps_increase_20240510';
}

/**
* @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(
AaveV3BaseAssets.wstETH_UNDERLYING,
6_000,
EngineFlags.KEEP_CURRENT
);

return capUpdates;
}
}
36 changes: 36 additions & 0 deletions src/MainnetCapsIncrease_20240510.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 {IAaveV3ConfigEngine} from 'aave-helpers/v3-config-engine/IAaveV3ConfigEngine.sol';
import {EngineFlags} from 'aave-helpers/v3-config-engine/EngineFlags.sol';
import {CapsPlusRiskStewardMainnet} from '../scripts/CapsPlusRiskStewardMainnet.s.sol';
import {AaveV3EthereumAssets} from 'aave-address-book/AaveV3Ethereum.sol';

/**
* @title Increase Caps on Ethereum V3
* @author @ChaosLabsInc
* Discussion: https://governance.aave.com/t/arfc-chaos-labs-risk-stewards-increase-supply-and-borrow-cap-for-weeth-on-v3-scroll-polygon-ethereum-and-base-05-09-2024/17625
*/
contract MainnetCapsIncrease_20240510 is CapsPlusRiskStewardMainnet {
/**
* @return string name identifier used for the diff
*/
function name() internal pure override returns (string memory) {
return 'mainnetCapsIncrease_20240510';
}

/**
* @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(
AaveV3EthereumAssets.RPL_UNDERLYING,
EngineFlags.KEEP_CURRENT,
500_000
);

return capUpdates;
}
}
42 changes: 42 additions & 0 deletions src/PolygonCapsIncrease_20240510.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 Chaos Labs
* Discussion: https://governance.aave.com/t/arfc-chaos-labs-risk-stewards-increase-supply-and-borrow-cap-for-weeth-on-v3-scroll-polygon-ethereum-and-base-05-09-2024/17625
*/
contract PolygonCapsIncrease_20240510 is CapsPlusRiskStewardPolygon {
/**
* @return string name identifier used for the diff
*/
function name() internal pure override returns (string memory) {
return 'PolygonCapsIncrease_20240510';
}

/**
* @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.EURS_UNDERLYING,
EngineFlags.KEEP_CURRENT,
3_000_000
);

capUpdates[1] = IAaveV3ConfigEngine.CapsUpdate(
AaveV3PolygonAssets.wstETH_UNDERLYING,
6_100,
EngineFlags.KEEP_CURRENT
);

return capUpdates;
}
}
34 changes: 34 additions & 0 deletions src/ScrollCapsIncrease_20240510.s.sol
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

import {AaveV3ScrollAssets} from 'aave-address-book/AaveV3Scroll.sol';
import {IAaveV3ConfigEngine} from 'aave-helpers/v3-config-engine/IAaveV3ConfigEngine.sol';
import {EngineFlags} from 'aave-helpers/v3-config-engine/EngineFlags.sol';
import {CapsPlusRiskStewardScroll} from '../scripts/CapsPlusRiskStewardScroll.s.sol';

/**
* @title Update Caps on Scroll V3
* @author Chaos Labs - eyalovadya
* Discussion: https://governance.aave.com/t/arfc-chaos-labs-risk-stewards-increase-supply-and-borrow-cap-for-weeth-on-v3-scroll-polygon-ethereum-and-base-05-09-2024/17625
*/
contract ScrollCapsIncrease_20240510 is CapsPlusRiskStewardScroll {
/**
* @return string name identifier used for the diff
*/
function name() internal pure override returns (string memory) {
return 'scroll_caps_increase_20240510';
}

/**
* @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(AaveV3ScrollAssets.WETH_UNDERLYING, 3000, 2400);

capUpdates[1] = IAaveV3ConfigEngine.CapsUpdate(AaveV3ScrollAssets.wstETH_UNDERLYING, 1250, 90);

return capUpdates;
}
}