Skip to content

Commit

Permalink
Merge pull request #55 from bgd-labs/chaoslabs/scroll_caps_increase_2…
Browse files Browse the repository at this point in the history
…0240219

Scroll Caps Increase 20240219
  • Loading branch information
eyalovadya authored Mar 12, 2024
2 parents 9619257 + f8e48cc commit b2f7e20
Show file tree
Hide file tree
Showing 2 changed files with 81 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
## Reserve changes

### Reserve altered

#### WETH ([0x5300000000000000000000000000000000000004](https://scrollscan.com/address/0x5300000000000000000000000000000000000004))

| description | value before | value after |
| --- | --- | --- |
| supplyCap | 480 WETH | 750 WETH |
| borrowCap | 200 WETH | 400 WETH |


#### wstETH ([0xf610A9dfB7C89644979b4A0f27063E9e7d7Cda32](https://scrollscan.com/address/0xf610A9dfB7C89644979b4A0f27063E9e7d7Cda32))

| description | value before | value after |
| --- | --- | --- |
| supplyCap | 260 wstETH | 520 wstETH |


## Raw diff

```json
{
"reserves": {
"0x5300000000000000000000000000000000000004": {
"borrowCap": {
"from": 200,
"to": 400
},
"supplyCap": {
"from": 480,
"to": 750
}
},
"0xf610A9dfB7C89644979b4A0f27063E9e7d7Cda32": {
"supplyCap": {
"from": 260,
"to": 520
}
}
}
}
```
38 changes: 38 additions & 0 deletions src/ScrollCapsIncrease_20240219.s.sol
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
// 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-and-borrow-caps-on-v3-scroll-02-19-2024/16680
*/
contract ScrollCapsIncrease_20240219 is CapsPlusRiskStewardScroll {
/**
* @return string name identifier used for the diff
*/
function name() internal pure override returns (string memory) {
return 'scroll_caps_increase_20240219';
}

/**
* @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(AaveV3ScrollAssets.WETH_UNDERLYING, 750, 400);

capUpdates[1] = IAaveV3ConfigEngine.CapsUpdate(
AaveV3ScrollAssets.wstETH_UNDERLYING,
520,
EngineFlags.KEEP_CURRENT
);

return capUpdates;
}
}

0 comments on commit b2f7e20

Please sign in to comment.