Skip to content

Commit

Permalink
Merge pull request #35 from ChaosLabsInc/chaoslabs/ethereum_caps_incr…
Browse files Browse the repository at this point in the history
…ease_20231103

Caps Update 20231103
  • Loading branch information
yonikesel authored Nov 5, 2023
2 parents d4f1f79 + 8616052 commit f23391d
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

#### rETH ([0xae78736Cd615f374D3085123A210448E74Fc6393](https://etherscan.io/address/0xae78736Cd615f374D3085123A210448E74Fc6393))

| description | value before | value after |
| --- | --- | --- |
| borrowCap | 9,600 rETH | 19,200 rETH |


## Raw diff

```json
{
"reserves": {
"0xae78736Cd615f374D3085123A210448E74Fc6393": {
"borrowCap": {
"from": 9600,
"to": 19200
}
}
}
}
```
36 changes: 36 additions & 0 deletions src/MainnetCapsIncrease_20231103.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-caps-on-v3-ethereum-and-arbitrum-11-02-2023/15312
*/
contract MainnetCapsIncrease_20231103 is CapsPlusRiskStewardMainnet {
/**
* @return string name identifier used for the diff
*/
function name() internal pure override returns (string memory) {
return 'mainnetCapsIncrease_20231103';
}

/**
* @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.rETH_UNDERLYING,
EngineFlags.KEEP_CURRENT,
19_200
);

return capUpdates;
}
}

0 comments on commit f23391d

Please sign in to comment.