Skip to content

Commit

Permalink
Merge pull request #63 from bgd-labs/chaoslabs/base_caps_increase_202…
Browse files Browse the repository at this point in the history
…40311

Base Caps Increase 20240311
  • Loading branch information
eyalovadya authored Mar 30, 2024
2 parents ad8a823 + a3b14c8 commit 246a9da
Show file tree
Hide file tree
Showing 2 changed files with 85 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
## Reserve changes

### Reserve altered

#### WETH ([0x4200000000000000000000000000000000000006](https://basescan.org/address/0x4200000000000000000000000000000000000006))

| description | value before | value after |
| --- | --- | --- |
| supplyCap | 5,000 WETH | 8,000 WETH |


#### USDC ([0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913](https://basescan.org/address/0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913))

| description | value before | value after |
| --- | --- | --- |
| supplyCap | 10,000,000 USDC | 15,000,000 USDC |
| borrowCap | 9,000,000 USDC | 13,500,000 USDC |


## Raw diff

```json
{
"reserves": {
"0x4200000000000000000000000000000000000006": {
"supplyCap": {
"from": 5000,
"to": 8000
}
},
"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913": {
"borrowCap": {
"from": 9000000,
"to": 13500000
},
"supplyCap": {
"from": 10000000,
"to": 15000000
}
}
}
}
```
42 changes: 42 additions & 0 deletions src/BaseCapsIncrease_20240311.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 {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/chaos-labs-risk-stewards-increase-usdc-and-weth-caps-on-v3-base-03-11-24/16919
*/
contract BaseCapsIncrease_20240311 is CapsPlusRiskStewardBaseChain {
/**
* @return string name identifier used for the diff
*/
function name() internal pure override returns (string memory) {
return 'base_caps_increase_20240311';
}

/**
* @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(
AaveV3BaseAssets.WETH_UNDERLYING,
8000,
EngineFlags.KEEP_CURRENT
);

capUpdates[1] = IAaveV3ConfigEngine.CapsUpdate(
AaveV3BaseAssets.USDC_UNDERLYING,
15_000_000,
13_500_000
);

return capUpdates;
}
}

0 comments on commit 246a9da

Please sign in to comment.