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 #25 from ChaosLabsInc/chaoslabs/eth_caps_increase_…
…20230906 Ethereum V3 Caps Update 20230906
- Loading branch information
Showing
6 changed files
with
128 additions
and
5 deletions.
There are no files selected for viewing
69 changes: 69 additions & 0 deletions
69
diffs/pre_mainnetCapsIncrease_20230906_post_mainnetCapsIncrease_20230906.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,69 @@ | ||
## Reserve changes | ||
|
||
### Reserve altered | ||
|
||
#### UNI ([0x1f9840a85d5aF5bf1D1762F925BDADdC4201F984](https://etherscan.io/address/0x1f9840a85d5aF5bf1D1762F925BDADdC4201F984)) | ||
|
||
| description | value before | value after | | ||
| --- | --- | --- | | ||
| supplyCap | 2,000,000 UNI | 4,000,000 UNI | | ||
|
||
|
||
#### MKR ([0x9f8F72aA9304c8B593d555F12eF6589cC3A579A2](https://etherscan.io/address/0x9f8F72aA9304c8B593d555F12eF6589cC3A579A2)) | ||
|
||
| description | value before | value after | | ||
| --- | --- | --- | | ||
| supplyCap | 10,000 MKR | 15,000 MKR | | ||
| borrowCap | 1,500 MKR | 3,000 MKR | | ||
|
||
|
||
#### cbETH ([0xBe9895146f7AF43049ca1c1AE358B0541Ea49704](https://etherscan.io/address/0xBe9895146f7AF43049ca1c1AE358B0541Ea49704)) | ||
|
||
| description | value before | value after | | ||
| --- | --- | --- | | ||
| borrowCap | 1,200 cbETH | 2,400 cbETH | | ||
|
||
|
||
#### RPL ([0xD33526068D116cE69F19A9ee46F0bd304F21A51f](https://etherscan.io/address/0xD33526068D116cE69F19A9ee46F0bd304F21A51f)) | ||
|
||
| description | value before | value after | | ||
| --- | --- | --- | | ||
| supplyCap | 420,000 RPL | 840,000 RPL | | ||
|
||
|
||
## Raw diff | ||
|
||
```json | ||
{ | ||
"reserves": { | ||
"0x1f9840a85d5aF5bf1D1762F925BDADdC4201F984": { | ||
"supplyCap": { | ||
"from": 2000000, | ||
"to": 4000000 | ||
} | ||
}, | ||
"0x9f8F72aA9304c8B593d555F12eF6589cC3A579A2": { | ||
"borrowCap": { | ||
"from": 1500, | ||
"to": 3000 | ||
}, | ||
"supplyCap": { | ||
"from": 10000, | ||
"to": 15000 | ||
} | ||
}, | ||
"0xBe9895146f7AF43049ca1c1AE358B0541Ea49704": { | ||
"borrowCap": { | ||
"from": 1200, | ||
"to": 2400 | ||
} | ||
}, | ||
"0xD33526068D116cE69F19A9ee46F0bd304F21A51f": { | ||
"supplyCap": { | ||
"from": 420000, | ||
"to": 840000 | ||
} | ||
} | ||
} | ||
} | ||
``` |
Submodule aave-address-book
updated
181 files
Submodule aave-helpers
updated
79 files
Submodule forge-std
updated
20 files
+48 −6 | .github/workflows/ci.yml | |
+1 −1 | package.json | |
+4 −3 | src/Script.sol | |
+7 −2 | src/StdChains.sol | |
+156 −14 | src/StdCheats.sol | |
+16 −1 | src/StdInvariant.sol | |
+14 −14 | src/StdJson.sol | |
+54 −3 | src/StdStorage.sol | |
+2 −2 | src/StdStyle.sol | |
+1 −1 | src/StdUtils.sol | |
+4 −3 | src/Test.sol | |
+90 −15 | src/Vm.sol | |
+93 −77 | test/StdAssertions.t.sol | |
+91 −31 | test/StdChains.t.sol | |
+167 −64 | test/StdCheats.t.sol | |
+10 −10 | test/StdError.t.sol | |
+27 −12 | test/StdMath.t.sol | |
+66 −34 | test/StdStorage.t.sol | |
+4 −4 | test/StdStyle.t.sol | |
+66 −36 | test/StdUtils.t.sol |
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
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,54 @@ | ||
// 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 Borrow 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-09-05-2023/14764 | ||
*/ | ||
contract MainnetCapsIncrease_20230906 is CapsPlusRiskStewardMainnet { | ||
/** | ||
* @return string name identifier used for the diff | ||
*/ | ||
function name() internal pure override returns (string memory) { | ||
return 'mainnetCapsIncrease_20230906'; | ||
} | ||
|
||
/** | ||
* @return IAaveV3ConfigEngine.CapsUpdate[] capUpdates to be performed | ||
*/ | ||
function capsUpdates() internal pure override returns (IAaveV3ConfigEngine.CapsUpdate[] memory) { | ||
IAaveV3ConfigEngine.CapsUpdate[] memory capUpdates = new IAaveV3ConfigEngine.CapsUpdate[](4); | ||
|
||
capUpdates[0] = IAaveV3ConfigEngine.CapsUpdate( | ||
AaveV3EthereumAssets.RPL_UNDERLYING, | ||
840_000, | ||
EngineFlags.KEEP_CURRENT | ||
); | ||
|
||
capUpdates[1] = IAaveV3ConfigEngine.CapsUpdate( | ||
AaveV3EthereumAssets.MKR_UNDERLYING, | ||
15_000, | ||
3_000 | ||
); | ||
|
||
capUpdates[2] = IAaveV3ConfigEngine.CapsUpdate( | ||
AaveV3EthereumAssets.UNI_UNDERLYING, | ||
4_000_000, | ||
EngineFlags.KEEP_CURRENT | ||
); | ||
|
||
capUpdates[3] = IAaveV3ConfigEngine.CapsUpdate( | ||
AaveV3EthereumAssets.cbETH_UNDERLYING, | ||
EngineFlags.KEEP_CURRENT, | ||
2_400 | ||
); | ||
|
||
return capUpdates; | ||
} | ||
} |