Skip to content

Commit

Permalink
increase WETH and USDC
Browse files Browse the repository at this point in the history
  • Loading branch information
AviadGigi committed Apr 12, 2024
1 parent 19f45f2 commit eccbc30
Show file tree
Hide file tree
Showing 2 changed files with 87 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
## Reserve changes

### Reserve altered

#### USDC ([0x06eFdBFf2a14a7c8E15944D1F4A48F9F95F663A4](https://scrollscan.com/address/0x06eFdBFf2a14a7c8E15944D1F4A48F9F95F663A4))

| description | value before | value after |
| --- | --- | --- |
| supplyCap | 4,000,000 USDC | 5,000,000 USDC |
| borrowCap | 1,800,000 USDC | 3,600,000 USDC |


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

| description | value before | value after |
| --- | --- | --- |
| supplyCap | 1,500 WETH | 2,000 WETH |
| borrowCap | 600 WETH | 1,200 WETH |


## Raw diff

```json
{
"reserves": {
"0x06eFdBFf2a14a7c8E15944D1F4A48F9F95F663A4": {
"borrowCap": {
"from": 1800000,
"to": 3600000
},
"supplyCap": {
"from": 4000000,
"to": 5000000
}
},
"0x5300000000000000000000000000000000000004": {
"borrowCap": {
"from": 600,
"to": 1200
},
"supplyCap": {
"from": 1500,
"to": 2000
}
}
}
}
```
39 changes: 39 additions & 0 deletions src/ScrollCapsUpdate_20240412.s.sol
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
// 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 {CapsPlusRiskStewardScroll} from '../scripts/CapsPlusRiskStewardScroll.s.sol';

/**
* @title Increase Supply and Borrow Caps on V3 Scroll
* @author Chaos Labs
* - Discussion: https://governance.aave.com/t/arfc-chaos-labs-risk-stewards-increase-supply-and-borrow-caps-on-v3-scroll-04-11-2024/17341/1
*/
contract ScrollCapsUpdate_20240412 is CapsPlusRiskStewardScroll {
/**
* @return string name identifier used for the diff
*/
function name() internal pure override returns (string memory) {
return 'ScrollCapsUpdate_20240412';
}

/**
* @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,
2_000,
1_200
);
capUpdates[1] = IAaveV3ConfigEngine.CapsUpdate(
AaveV3ScrollAssets.USDC_UNDERLYING,
5_000_000,
3_600_000
);
return capUpdates;
}
}

0 comments on commit eccbc30

Please sign in to comment.