Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

increase WETH and USDC #80

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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;
}
}
Loading