generated from bgd-labs/bgd-forge-template
-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Optimism USDC caps increase 20240401
- Loading branch information
1 parent
bc5318f
commit ded54dd
Showing
2 changed files
with
66 additions
and
0 deletions.
There are no files selected for viewing
30 changes: 30 additions & 0 deletions
30
...pre_OptimismUSDCCapsIncrease_20240401_post_OptimismUSDCCapsIncrease_20240401.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
} | ||
} | ||
} | ||
} | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
} | ||
} |