Skip to content

Commit

Permalink
Optimism USDC caps increase 20240401
Browse files Browse the repository at this point in the history
  • Loading branch information
eyalovadya committed Apr 2, 2024
1 parent bc5318f commit ded54dd
Show file tree
Hide file tree
Showing 2 changed files with 66 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
## Reserve changes

### Reserves altered

#### USDC ([0x0b2C639c533813f4Aa9D7837CAf62653d097Ff85](https://optimistic.etherscan.io/address/0x0b2C639c533813f4Aa9D7837CAf62653d097Ff85))

| description | value before | value after |
| --- | --- | --- |
| supplyCap | 25,000,000 USDC | 50,000,000 USDC |
| borrowCap | 20,000,000 USDC | 40,000,000 USDC |


## Raw diff

```json
{
"reserves": {
"0x0b2C639c533813f4Aa9D7837CAf62653d097Ff85": {
"borrowCap": {
"from": 20000000,
"to": 40000000
},
"supplyCap": {
"from": 25000000,
"to": 50000000
}
}
}
}
```
36 changes: 36 additions & 0 deletions src/OptimismUSDCCapsIncrease_20240401.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 {AaveV3OptimismAssets} from 'aave-address-book/AaveV3Optimism.sol';
import {IAaveV3ConfigEngine} from 'aave-helpers/v3-config-engine/IAaveV3ConfigEngine.sol';
import {EngineFlags} from 'aave-helpers/v3-config-engine/EngineFlags.sol';
import {CapsPlusRiskStewardOptimism} from '../scripts/CapsPlusRiskStewardOptimism.s.sol';

/**
* @title Update USDC Caps on Optimism V3
* @author @ChaosLabsInc
* - Discussion: https://governance.aave.com/t/arfc-chaos-labs-risk-stewards-increase-supply-and-borrow-cap-for-usdc-on-v3-optimism-04-01-2024/17203
*/
contract OptimismUSDCCapsIncrease_20240401 is CapsPlusRiskStewardOptimism {
/**
* @return string name identifier used for the diff
*/
function name() internal pure override returns (string memory) {
return 'OptimismUSDCCapsIncrease_20240401';
}

/**
* @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(
AaveV3OptimismAssets.USDCn_UNDERLYING,
50_000_000,
40_000_000
);

return capUpdates;
}
}

0 comments on commit ded54dd

Please sign in to comment.