Skip to content

Commit

Permalink
Merge pull request #51 from bgd-labs/chaoslabs/mainnet_caps_increase_…
Browse files Browse the repository at this point in the history
…20240114

Ethereum Caps Increase 20240114
  • Loading branch information
eyalovadya authored Feb 20, 2024
2 parents d8eb015 + c1d10df commit c61b300
Show file tree
Hide file tree
Showing 2 changed files with 99 additions and 0 deletions.
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
}
}
}
}
```
48 changes: 48 additions & 0 deletions src/MainnetCapsIncrease_20240114.s.sol
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;
}
}

0 comments on commit c61b300

Please sign in to comment.