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 #51 from bgd-labs/chaoslabs/mainnet_caps_increase_…
…20240114 Ethereum Caps Increase 20240114
- Loading branch information
Showing
2 changed files
with
99 additions
and
0 deletions.
There are no files selected for viewing
51 changes: 51 additions & 0 deletions
51
diffs/pre_mainnetCapsIncrease_20240114_post_mainnetCapsIncrease_20240114.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 | ||
|
||
#### 1INCH ([0x111111111117dC0aa78b770fA6A738034120C302](https://etherscan.io/address/0x111111111117dC0aa78b770fA6A738034120C302)) | ||
|
||
| description | value before | value after | | ||
| --- | --- | --- | | ||
| supplyCap | 22,000,000 1INCH | 30,000,000 1INCH | | ||
|
||
|
||
#### SNX ([0xC011a73ee8576Fb46F5E1c5751cA3B9Fe0af2a6F](https://etherscan.io/address/0xC011a73ee8576Fb46F5E1c5751cA3B9Fe0af2a6F)) | ||
|
||
| description | value before | value after | | ||
| --- | --- | --- | | ||
| supplyCap | 3,000,000 SNX | 4,500,000 SNX | | ||
|
||
|
||
#### ENS ([0xC18360217D8F7Ab5e7c516566761Ea12Ce7F9D72](https://etherscan.io/address/0xC18360217D8F7Ab5e7c516566761Ea12Ce7F9D72)) | ||
|
||
| description | value before | value after | | ||
| --- | --- | --- | | ||
| supplyCap | 1,000,000 ENS | 1,500,000 ENS | | ||
|
||
|
||
## Raw diff | ||
|
||
```json | ||
{ | ||
"reserves": { | ||
"0x111111111117dC0aa78b770fA6A738034120C302": { | ||
"supplyCap": { | ||
"from": 22000000, | ||
"to": 30000000 | ||
} | ||
}, | ||
"0xC011a73ee8576Fb46F5E1c5751cA3B9Fe0af2a6F": { | ||
"supplyCap": { | ||
"from": 3000000, | ||
"to": 4500000 | ||
} | ||
}, | ||
"0xC18360217D8F7Ab5e7c516566761Ea12Ce7F9D72": { | ||
"supplyCap": { | ||
"from": 1000000, | ||
"to": 1500000 | ||
} | ||
} | ||
} | ||
} | ||
``` |
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,48 @@ | ||
// 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 Increase Caps on Ethereum V3 | ||
* @author @ChaosLabsInc | ||
* - Discussion: https://governance.aave.com/t/arfc-chaos-labs-risk-stewards-increase-supply-and-borrow-caps-on-v3-ethereum-01-12-2024/16169 | ||
*/ | ||
contract MainnetCapsIncrease_20240114 is CapsPlusRiskStewardMainnet { | ||
/** | ||
* @return string name identifier used for the diff | ||
*/ | ||
function name() internal pure override returns (string memory) { | ||
return 'mainnetCapsIncrease_20240114'; | ||
} | ||
|
||
/** | ||
* @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( | ||
AaveV3EthereumAssets.SNX_UNDERLYING, | ||
4_500_000, | ||
EngineFlags.KEEP_CURRENT | ||
); | ||
|
||
capUpdates[1] = IAaveV3ConfigEngine.CapsUpdate( | ||
AaveV3EthereumAssets.ENS_UNDERLYING, | ||
1_500_000, | ||
EngineFlags.KEEP_CURRENT | ||
); | ||
|
||
capUpdates[2] = IAaveV3ConfigEngine.CapsUpdate( | ||
AaveV3EthereumAssets.ONE_INCH_UNDERLYING, | ||
30_000_000, | ||
EngineFlags.KEEP_CURRENT | ||
); | ||
|
||
return capUpdates; | ||
} | ||
} |