Skip to content

Commit

Permalink
Merge pull request #38 from bgd-labs/chaoslabs/gho_cap_increase
Browse files Browse the repository at this point in the history
GHO Borrow Cap Increase
  • Loading branch information
eyalovadya authored Mar 12, 2024
2 parents 70ef1c4 + 1948807 commit 87bb0b0
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

#### GHO ([0x40D16FC0246aD3160Ccc09B8D0D3A2cD28aE6C2f](https://etherscan.io/address/0x40D16FC0246aD3160Ccc09B8D0D3A2cD28aE6C2f))

| description | value before | value after |
| --- | --- | --- |
| borrowCap | 35,000,000 GHO | 50,000,000 GHO |


## Raw diff

```json
{
"reserves": {
"0x40D16FC0246aD3160Ccc09B8D0D3A2cD28aE6C2f": {
"borrowCap": {
"from": 35000000,
"to": 50000000
}
}
}
}
```
36 changes: 36 additions & 0 deletions src/MainnetCapsIncrease_20231107.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:
*/
contract MainnetCapsIncrease_20231107 is CapsPlusRiskStewardMainnet {
/**
* @return string name identifier used for the diff
*/
function name() internal pure override returns (string memory) {
return 'mainnetCapsIncrease_20231107';
}

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

return capUpdates;
}
}

0 comments on commit 87bb0b0

Please sign in to comment.