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 #33 from ChaosLabsInc/chaos/caps_increase_20231101
Caps Update 20231101
- Loading branch information
Showing
8 changed files
with
259 additions
and
0 deletions.
There are no files selected for viewing
25 changes: 25 additions & 0 deletions
25
diffs/pre_arbitrum_caps_increase_20231101_post_arbitrum_caps_increase_20231101.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 | ||
|
||
#### 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 | ||
} | ||
} | ||
} | ||
} | ||
``` |
30 changes: 30 additions & 0 deletions
30
...s/pre_avalanche_caps_increase_20231101_post_avalanche_caps_increase_20231101.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,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 | ||
} | ||
} | ||
} | ||
} | ||
``` |
38 changes: 38 additions & 0 deletions
38
diffs/pre_mainnetCapsIncrease_20231101_post_mainnetCapsIncrease_20231101.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,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 | ||
} | ||
} | ||
} | ||
} | ||
``` |
25 changes: 25 additions & 0 deletions
25
diffs/pre_metis_caps_increase_20231101_post_metis_caps_increase_20231101.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 | ||
|
||
#### 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 | ||
} | ||
} | ||
} | ||
} | ||
``` |
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 {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; | ||
} | ||
} |
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,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; | ||
} | ||
} |
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,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; | ||
} | ||
} |
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,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; | ||
} | ||
} |