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 #53 from bgd-labs/chaoslabs/scroll_caps_increase_2…
…0240214 Scroll caps increase 20240214
- Loading branch information
Showing
8 changed files
with
114 additions
and
3 deletions.
There are no files selected for viewing
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
51 changes: 51 additions & 0 deletions
51
diffs/pre_scroll_caps_increase_20240214_post_scroll_caps_increase_20240214.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 | ||
|
||
#### USDC ([0x06eFdBFf2a14a7c8E15944D1F4A48F9F95F663A4](https://scrollscan.com/address/0x06eFdBFf2a14a7c8E15944D1F4A48F9F95F663A4)) | ||
|
||
| description | value before | value after | | ||
| --- | --- | --- | | ||
| supplyCap | 1,000,000 USDC | 2,000,000 USDC | | ||
|
||
|
||
#### WETH ([0x5300000000000000000000000000000000000004](https://scrollscan.com/address/0x5300000000000000000000000000000000000004)) | ||
|
||
| description | value before | value after | | ||
| --- | --- | --- | | ||
| supplyCap | 240 WETH | 480 WETH | | ||
|
||
|
||
#### wstETH ([0xf610A9dfB7C89644979b4A0f27063E9e7d7Cda32](https://scrollscan.com/address/0xf610A9dfB7C89644979b4A0f27063E9e7d7Cda32)) | ||
|
||
| description | value before | value after | | ||
| --- | --- | --- | | ||
| supplyCap | 130 wstETH | 260 wstETH | | ||
|
||
|
||
## Raw diff | ||
|
||
```json | ||
{ | ||
"reserves": { | ||
"0x06eFdBFf2a14a7c8E15944D1F4A48F9F95F663A4": { | ||
"supplyCap": { | ||
"from": 1000000, | ||
"to": 2000000 | ||
} | ||
}, | ||
"0x5300000000000000000000000000000000000004": { | ||
"supplyCap": { | ||
"from": 240, | ||
"to": 480 | ||
} | ||
}, | ||
"0xf610A9dfB7C89644979b4A0f27063E9e7d7Cda32": { | ||
"supplyCap": { | ||
"from": 130, | ||
"to": 260 | ||
} | ||
} | ||
} | ||
} | ||
``` |
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
Submodule aave-address-book
updated
190 files
Submodule aave-helpers
updated
51 files
Submodule forge-std
updated
9 files
+1 −1 | package.json | |
+17 −48 | scripts/vm.py | |
+5 −1 | src/StdChains.sol | |
+1 −1 | src/StdJson.sol | |
+37 −9 | src/Vm.sol | |
+51 −33 | src/mocks/MockERC20.sol | |
+46 −32 | src/mocks/MockERC721.sol | |
+2 −2 | test/StdUtils.t.sol | |
+2 −2 | test/Vm.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
// SPDX-License-Identifier: MIT | ||
pragma solidity ^0.8.0; | ||
|
||
import {AaveGovernanceV2} from 'aave-address-book/AaveGovernanceV2.sol'; | ||
import {AaveV3Scroll} from 'aave-address-book/AaveV3Scroll.sol'; | ||
import {CapsPlusRiskStewardBase} from './CapsPlusRiskStewardBase.s.sol'; | ||
|
||
abstract contract CapsPlusRiskStewardScroll is CapsPlusRiskStewardBase { | ||
constructor() CapsPlusRiskStewardBase(AaveV3Scroll.POOL, AaveV3Scroll.CAPS_PLUS_RISK_STEWARD) {} | ||
} |
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 {AaveV3ScrollAssets} from 'aave-address-book/AaveV3Scroll.sol'; | ||
import {IAaveV3ConfigEngine} from 'aave-helpers/v3-config-engine/IAaveV3ConfigEngine.sol'; | ||
import {EngineFlags} from 'aave-helpers/v3-config-engine/EngineFlags.sol'; | ||
import {CapsPlusRiskStewardScroll} from '../scripts/CapsPlusRiskStewardScroll.s.sol'; | ||
|
||
/** | ||
* @title Update Caps on Scroll V3 | ||
* @author Chaos Labs - eyalovadya | ||
* - Discussion: https://governance.aave.com/t/arfc-chaos-labs-risk-stewards-increase-supply-caps-on-v3-scroll-02-14-2024/16626 | ||
*/ | ||
contract ScrollCapsIncrease_20240214 is CapsPlusRiskStewardScroll { | ||
/** | ||
* @return string name identifier used for the diff | ||
*/ | ||
function name() internal pure override returns (string memory) { | ||
return 'scroll_caps_increase_20240214'; | ||
} | ||
|
||
/** | ||
* @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( | ||
AaveV3ScrollAssets.USDC_UNDERLYING, | ||
2_000_000, | ||
EngineFlags.KEEP_CURRENT | ||
); | ||
|
||
capUpdates[1] = IAaveV3ConfigEngine.CapsUpdate( | ||
AaveV3ScrollAssets.WETH_UNDERLYING, | ||
480, | ||
EngineFlags.KEEP_CURRENT | ||
); | ||
|
||
capUpdates[2] = IAaveV3ConfigEngine.CapsUpdate( | ||
AaveV3ScrollAssets.wstETH_UNDERLYING, | ||
260, | ||
EngineFlags.KEEP_CURRENT | ||
); | ||
|
||
return capUpdates; | ||
} | ||
} |