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.
- Loading branch information
1 parent
87bb0b0
commit 81e8274
Showing
2 changed files
with
85 additions
and
0 deletions.
There are no files selected for viewing
43 changes: 43 additions & 0 deletions
43
diffs/pre_arbitrum_caps_increase_20240330_post_arbitrum_caps_increase_20240330.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,43 @@ | ||
## Reserve changes | ||
|
||
### Reserve altered | ||
|
||
#### wstETH ([0x5979D7b546E38E414F7E9822514be443A4800529](https://arbiscan.io/address/0x5979D7b546E38E414F7E9822514be443A4800529)) | ||
|
||
| description | value before | value after | | ||
| --- | --- | --- | | ||
| supplyCap | 60,000 wstETH | 69,000 wstETH | | ||
|
||
|
||
#### WETH ([0x82aF49447D8a07e3bd95BD0d56f35241523fBab1](https://arbiscan.io/address/0x82aF49447D8a07e3bd95BD0d56f35241523fBab1)) | ||
|
||
| description | value before | value after | | ||
| --- | --- | --- | | ||
| supplyCap | 70,000 WETH | 84,000 WETH | | ||
| borrowCap | 60,000 WETH | 72,000 WETH | | ||
|
||
|
||
## Raw diff | ||
|
||
```json | ||
{ | ||
"reserves": { | ||
"0x5979D7b546E38E414F7E9822514be443A4800529": { | ||
"supplyCap": { | ||
"from": 60000, | ||
"to": 69000 | ||
} | ||
}, | ||
"0x82aF49447D8a07e3bd95BD0d56f35241523fBab1": { | ||
"borrowCap": { | ||
"from": 60000, | ||
"to": 72000 | ||
}, | ||
"supplyCap": { | ||
"from": 70000, | ||
"to": 84000 | ||
} | ||
} | ||
} | ||
} | ||
``` |
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,42 @@ | ||
// SPDX-License-Identifier: MIT | ||
pragma solidity ^0.8.0; | ||
|
||
import {AaveV3ArbitrumAssets} from 'aave-address-book/AaveV3Arbitrum.sol'; | ||
import {IAaveV3ConfigEngine} from 'aave-helpers/v3-config-engine/IAaveV3ConfigEngine.sol'; | ||
import {EngineFlags} from 'aave-helpers/v3-config-engine/EngineFlags.sol'; | ||
import {CapsPlusRiskStewardArbitrum} from '../scripts/CapsPlusRiskStewardArbitrum.s.sol'; | ||
|
||
/** | ||
* @title Update Caps on Arbitrum V3 | ||
* @author Chaos Labs | ||
* - Discussion: https://governance.aave.com/t/arfc-chaos-labs-risk-stewards-increase-supply-and-borrow-caps-on-v3-arbitrum-03-30-2024/17171 | ||
*/ | ||
contract ArbitrumCapsIncrease_20240330 is CapsPlusRiskStewardArbitrum { | ||
/** | ||
* @return string name identifier used for the diff | ||
*/ | ||
function name() internal pure override returns (string memory) { | ||
return 'arbitrum_caps_increase_20240330'; | ||
} | ||
|
||
/** | ||
* @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( | ||
AaveV3ArbitrumAssets.wstETH_UNDERLYING, | ||
69_000, | ||
EngineFlags.KEEP_CURRENT | ||
); | ||
|
||
capUpdates[1] = IAaveV3ConfigEngine.CapsUpdate( | ||
AaveV3ArbitrumAssets.WETH_UNDERLYING, | ||
84_000, | ||
72_000 | ||
); | ||
|
||
return capUpdates; | ||
} | ||
} |