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.
Merge pull request #21 from ChaosLabsInc/chaoslabs/metis_caps_increas…
…e_20230728 Metis V3 Cap Increase 20230728
- Loading branch information
Showing
2 changed files
with
78 additions
and
0 deletions.
There are no files selected for viewing
43 changes: 43 additions & 0 deletions
43
diffs/pre_metis_caps_increase_20230728_post_metis_caps_increase_20230728.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,43 @@ | ||
## Reserve changes | ||
|
||
### Reserve altered | ||
|
||
#### WETH ([0x420000000000000000000000000000000000000A](https://andromeda-explorer.metis.io/address/0x420000000000000000000000000000000000000A)) | ||
|
||
| description | value before | value after | | ||
| --- | --- | --- | | ||
| supplyCap | 200 WETH | 300 WETH | | ||
| borrowCap | 60 WETH | 90 WETH | | ||
|
||
|
||
#### Metis ([0xDeadDeAddeAddEAddeadDEaDDEAdDeaDDeAD0000](https://andromeda-explorer.metis.io/address/0xDeadDeAddeAddEAddeadDEaDDEAdDeaDDeAD0000)) | ||
|
||
| description | value before | value after | | ||
| --- | --- | --- | | ||
| supplyCap | 30,000 Metis | 60,000 Metis | | ||
|
||
|
||
## Raw diff | ||
|
||
```json | ||
{ | ||
"reserves": { | ||
"0x420000000000000000000000000000000000000A": { | ||
"borrowCap": { | ||
"from": 60, | ||
"to": 90 | ||
}, | ||
"supplyCap": { | ||
"from": 200, | ||
"to": 300 | ||
} | ||
}, | ||
"0xDeadDeAddeAddEAddeadDEaDDEAdDeaDDeAD0000": { | ||
"supplyCap": { | ||
"from": 30000, | ||
"to": 60000 | ||
} | ||
} | ||
} | ||
} | ||
``` |
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,35 @@ | ||
// SPDX-License-Identifier: MIT | ||
pragma solidity ^0.8.0; | ||
|
||
import {AaveV3MetisAssets} from 'aave-address-book/AaveV3Metis.sol'; | ||
import {IAaveV3ConfigEngine} from 'aave-helpers/v3-config-engine/IAaveV3ConfigEngine.sol'; | ||
import {EngineFlags} from 'aave-helpers/v3-config-engine/EngineFlags.sol'; | ||
import {CapsPlusRiskStewardMetis} from '../scripts/CapsPlusRiskStewardMetis.s.sol'; | ||
|
||
/** | ||
* @title Update Supply Caps on Metis V3 | ||
* @author @ChaosLabsInc | ||
* - Discussion: https://governance.aave.com/t/arfc-chaos-labs-risk-stewards-increase-supply-caps-on-v3-metis-07-26-2023/14152 | ||
*/ | ||
contract MetisCapsIncrease_20230728 is CapsPlusRiskStewardMetis { | ||
/** | ||
* @return string name identifier used for the diff | ||
*/ | ||
function name() internal pure override returns (string memory) { | ||
return 'metis_caps_increase_20230728'; | ||
} | ||
|
||
/** | ||
* @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(AaveV3MetisAssets.WETH_UNDERLYING, 300, 90); | ||
capUpdates[1] = IAaveV3ConfigEngine.CapsUpdate( | ||
AaveV3MetisAssets.Metis_UNDERLYING, | ||
60_000, | ||
EngineFlags.KEEP_CURRENT | ||
); | ||
return capUpdates; | ||
} | ||
} |