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 #31 from ChaosLabsInc/chaoslabs/ethereum_metis_cap…
…s_increase_20231018 Ethereum, Metis V3 Cap Increase 20231018
- Loading branch information
Showing
4 changed files
with
159 additions
and
0 deletions.
There are no files selected for viewing
25 changes: 25 additions & 0 deletions
25
diffs/pre_mainnetCapsIncrease_20231018_post_mainnetCapsIncrease_20231018.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,25 @@ | ||
## Reserve changes | ||
|
||
### Reserves altered | ||
|
||
#### RPL ([0xD33526068D116cE69F19A9ee46F0bd304F21A51f](https://etherscan.io/address/0xD33526068D116cE69F19A9ee46F0bd304F21A51f)) | ||
|
||
| description | value before | value after | | ||
| --- | --- | --- | | ||
| borrowCap | 160,000 RPL | 240,000 RPL | | ||
|
||
|
||
## Raw diff | ||
|
||
```json | ||
{ | ||
"reserves": { | ||
"0xD33526068D116cE69F19A9ee46F0bd304F21A51f": { | ||
"borrowCap": { | ||
"from": 160000, | ||
"to": 240000 | ||
} | ||
} | ||
} | ||
} | ||
``` |
51 changes: 51 additions & 0 deletions
51
diffs/pre_metis_caps_increase_20231018_post_metis_caps_increase_20231018.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,51 @@ | ||
## Reserve changes | ||
|
||
### Reserve altered | ||
|
||
#### Metis ([0xDeadDeAddeAddEAddeadDEaDDEAdDeaDDeAD0000](https://andromeda-explorer.metis.io/address/0xDeadDeAddeAddEAddeadDEaDDEAdDeaDDeAD0000)) | ||
|
||
| description | value before | value after | | ||
| --- | --- | --- | | ||
| borrowCap | 8,000 Metis | 16,000 Metis | | ||
|
||
|
||
#### m.USDC ([0xEA32A96608495e54156Ae48931A7c20f0dcc1a21](https://andromeda-explorer.metis.io/address/0xEA32A96608495e54156Ae48931A7c20f0dcc1a21)) | ||
|
||
| description | value before | value after | | ||
| --- | --- | --- | | ||
| supplyCap | 4,000,000 m.USDC | 6,000,000 m.USDC | | ||
|
||
|
||
#### m.USDT ([0xbB06DCA3AE6887fAbF931640f67cab3e3a16F4dC](https://andromeda-explorer.metis.io/address/0xbB06DCA3AE6887fAbF931640f67cab3e3a16F4dC)) | ||
|
||
| description | value before | value after | | ||
| --- | --- | --- | | ||
| supplyCap | 4,000,000 m.USDT | 5,000,000 m.USDT | | ||
|
||
|
||
## Raw diff | ||
|
||
```json | ||
{ | ||
"reserves": { | ||
"0xDeadDeAddeAddEAddeadDEaDDEAdDeaDDeAD0000": { | ||
"borrowCap": { | ||
"from": 8000, | ||
"to": 16000 | ||
} | ||
}, | ||
"0xEA32A96608495e54156Ae48931A7c20f0dcc1a21": { | ||
"supplyCap": { | ||
"from": 4000000, | ||
"to": 6000000 | ||
} | ||
}, | ||
"0xbB06DCA3AE6887fAbF931640f67cab3e3a16F4dC": { | ||
"supplyCap": { | ||
"from": 4000000, | ||
"to": 5000000 | ||
} | ||
} | ||
} | ||
} | ||
``` |
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 {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 Update Caps on Ethereum V3 | ||
* @author @ChaosLabsInc | ||
* - Discussion: https://governance.aave.com/t/arfc-chaos-labs-risk-stewards-increase-borrow-caps-on-v3-metis-ethereum-10-17-2023/15136 | ||
*/ | ||
contract MainnetCapsIncrease_20231018 is CapsPlusRiskStewardMainnet { | ||
/** | ||
* @return string name identifier used for the diff | ||
*/ | ||
function name() internal pure override returns (string memory) { | ||
return 'mainnetCapsIncrease_20231018'; | ||
} | ||
|
||
/** | ||
* @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.RPL_UNDERLYING, | ||
EngineFlags.KEEP_CURRENT, | ||
240_000 | ||
); | ||
|
||
return capUpdates; | ||
} | ||
} |
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,47 @@ | ||
// 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 Caps on Metis V3 | ||
* @author @ChaosLabsInc | ||
* - Discussion: https://governance.aave.com/t/arfc-chaos-labs-risk-stewards-increase-borrow-caps-on-v3-metis-ethereum-10-17-2023/15136 | ||
*/ | ||
contract MetisCapsIncrease20231018 is CapsPlusRiskStewardMetis { | ||
/** | ||
* @return string name identifier used for the diff | ||
*/ | ||
function name() internal pure override returns (string memory) { | ||
return 'metis_caps_increase_20231018'; | ||
} | ||
|
||
/** | ||
* @return IAaveV3ConfigEngine.CapsUpdate[] capUpdates to be performed | ||
*/ | ||
function capsUpdates() internal pure override returns (IAaveV3ConfigEngine.CapsUpdate[] memory) { | ||
IAaveV3ConfigEngine.CapsUpdate[] memory capUpdates = new IAaveV3ConfigEngine.CapsUpdate[](3); | ||
capUpdates[0] = IAaveV3ConfigEngine.CapsUpdate( | ||
AaveV3MetisAssets.Metis_UNDERLYING, | ||
EngineFlags.KEEP_CURRENT, | ||
16_000 | ||
); | ||
|
||
capUpdates[1] = IAaveV3ConfigEngine.CapsUpdate( | ||
AaveV3MetisAssets.mUSDC_UNDERLYING, | ||
6_000_000, | ||
EngineFlags.KEEP_CURRENT | ||
); | ||
|
||
capUpdates[2] = IAaveV3ConfigEngine.CapsUpdate( | ||
AaveV3MetisAssets.mUSDT_UNDERLYING, | ||
5_000_000, | ||
EngineFlags.KEEP_CURRENT | ||
); | ||
|
||
return capUpdates; | ||
} | ||
} |