Skip to content

Commit

Permalink
Merge pull request #33 from ChaosLabsInc/chaos/caps_increase_20231101
Browse files Browse the repository at this point in the history
Caps Update 20231101
  • Loading branch information
yonikesel authored Nov 20, 2023
2 parents ff68d07 + 24dd694 commit fdb9653
Show file tree
Hide file tree
Showing 8 changed files with 259 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
## Reserve changes

### Reserves altered

#### rETH ([0xEC70Dcb4A1EFa46b8F2D97C310C9c4790ba5ffA8](https://arbiscan.io/address/0xEC70Dcb4A1EFa46b8F2D97C310C9c4790ba5ffA8))

| description | value before | value after |
| --- | --- | --- |
| borrowCap | 340 rETH | 680 rETH |


## Raw diff

```json
{
"reserves": {
"0xEC70Dcb4A1EFa46b8F2D97C310C9c4790ba5ffA8": {
"borrowCap": {
"from": 340,
"to": 680
}
}
}
}
```
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
## Reserve changes

### Reserves altered

#### WAVAX ([0xB31f66AA3C1e785363F0875A1B74E27b85FD66c7](https://snowtrace.io/address/0xB31f66AA3C1e785363F0875A1B74E27b85FD66c7))

| description | value before | value after |
| --- | --- | --- |
| supplyCap | 3,800,000 WAVAX | 5,700,000 WAVAX |
| borrowCap | 2,400,000 WAVAX | 3,600,000 WAVAX |


## Raw diff

```json
{
"reserves": {
"0xB31f66AA3C1e785363F0875A1B74E27b85FD66c7": {
"borrowCap": {
"from": 2400000,
"to": 3600000
},
"supplyCap": {
"from": 3800000,
"to": 5700000
}
}
}
}
```
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
## Reserve changes

### Reserve altered

#### MKR ([0x9f8F72aA9304c8B593d555F12eF6589cC3A579A2](https://etherscan.io/address/0x9f8F72aA9304c8B593d555F12eF6589cC3A579A2))

| description | value before | value after |
| --- | --- | --- |
| supplyCap | 15,000 MKR | 22,500 MKR |


#### RPL ([0xD33526068D116cE69F19A9ee46F0bd304F21A51f](https://etherscan.io/address/0xD33526068D116cE69F19A9ee46F0bd304F21A51f))

| description | value before | value after |
| --- | --- | --- |
| borrowCap | 240,000 RPL | 480,000 RPL |


## Raw diff

```json
{
"reserves": {
"0x9f8F72aA9304c8B593d555F12eF6589cC3A579A2": {
"supplyCap": {
"from": 15000,
"to": 22500
}
},
"0xD33526068D116cE69F19A9ee46F0bd304F21A51f": {
"borrowCap": {
"from": 240000,
"to": 480000
}
}
}
}
```
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
## Reserve changes

### Reserves altered

#### Metis ([0xDeadDeAddeAddEAddeadDEaDDEAdDeaDDeAD0000](https://andromeda-explorer.metis.io/address/0xDeadDeAddeAddEAddeadDEaDDEAdDeaDDeAD0000))

| description | value before | value after |
| --- | --- | --- |
| borrowCap | 16,000 Metis | 32,000 Metis |


## Raw diff

```json
{
"reserves": {
"0xDeadDeAddeAddEAddeadDEaDDEAdDeaDDeAD0000": {
"borrowCap": {
"from": 16000,
"to": 32000
}
}
}
}
```
36 changes: 36 additions & 0 deletions src/ArbitrumCapsIncrease_20231101.s.sol
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

import {AaveV3ArbitrumAssets} from 'aave-address-book/AaveV3Arbitrum.sol';
import {IAaveV3ConfigEngine} from 'aave-helpers/v3-config-engine/IAaveV3ConfigEngine.sol';
import {EngineFlags} from 'aave-helpers/v3-config-engine/EngineFlags.sol';
import {CapsPlusRiskStewardArbitrum} from '../scripts/CapsPlusRiskStewardArbitrum.s.sol';

/**
* @title Increase Caps on Arbitrum V3
* @author @yonikesel - ChaosLabsInc
* - Discussion: https://governance.aave.com/t/arfc-chaos-labs-risk-stewards-increase-supply-and-borrow-caps-on-aave-v3-10-29-2023/15261
*/
contract ArbitrumCapsIncrease_20231101 is CapsPlusRiskStewardArbitrum {
/**
* @return string name identifier used for the diff
*/
function name() internal pure override returns (string memory) {
return 'arbitrum_caps_increase_20231101';
}

/**
* @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(
AaveV3ArbitrumAssets.rETH_UNDERLYING,
EngineFlags.KEEP_CURRENT,
680
);

return capUpdates;
}
}
34 changes: 34 additions & 0 deletions src/AvalancheCapsIncrease_20231101.s.sol
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

import {AaveV3AvalancheAssets} from 'aave-address-book/AaveV3Avalanche.sol';
import {IAaveV3ConfigEngine} from 'aave-helpers/v3-config-engine/IAaveV3ConfigEngine.sol';
import {EngineFlags} from 'aave-helpers/v3-config-engine/EngineFlags.sol';
import {CapsPlusRiskStewardAvalanche} from '../scripts/CapsPlusRiskStewardAvalanche.s.sol';

/**
* @title Increase Caps on Avalanche V3
* @author @ChaosLabsInc
* - Discussion: https://governance.aave.com/t/arfc-chaos-labs-risk-stewards-increase-supply-and-borrow-caps-on-aave-v3-10-29-2023/15261
*/
contract AvalancheSupplyCapsIncrease_20231101 is CapsPlusRiskStewardAvalanche {
/**
* @return string name identifier used for the diff
*/
function name() internal pure override returns (string memory) {
return 'avalanche_caps_increase_20231101';
}

/**
* @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(
AaveV3AvalancheAssets.WAVAX_UNDERLYING,
5_700_000,
3_600_000
);
return capUpdates;
}
}
42 changes: 42 additions & 0 deletions src/MainnetCapsIncrease_20231101.s.sol
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
// 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-aave-v3-10-29-2023/15261
*/
contract MainnetCapsIncrease_20231101 is CapsPlusRiskStewardMainnet {
/**
* @return string name identifier used for the diff
*/
function name() internal pure override returns (string memory) {
return 'mainnetCapsIncrease_20231101';
}

/**
* @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(
AaveV3EthereumAssets.RPL_UNDERLYING,
EngineFlags.KEEP_CURRENT,
480_000
);

capUpdates[1] = IAaveV3ConfigEngine.CapsUpdate(
AaveV3EthereumAssets.MKR_UNDERLYING,
22_500,
EngineFlags.KEEP_CURRENT
);

return capUpdates;
}
}
29 changes: 29 additions & 0 deletions src/MetisCapsIncrease_20231101.s.sol
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
// 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';

contract MetisCapsIncrease20231101 is CapsPlusRiskStewardMetis {
/**
* @return string name identifier used for the diff
*/
function name() internal pure override returns (string memory) {
return 'metis_caps_increase_20231101';
}

/**
* @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(
AaveV3MetisAssets.Metis_UNDERLYING,
EngineFlags.KEEP_CURRENT,
32_000
);
return capUpdates;
}
}

0 comments on commit fdb9653

Please sign in to comment.