Skip to content

Commit

Permalink
Merge pull request #73 from bgd-labs/chaoslabs/arbitrum_caps_increase…
Browse files Browse the repository at this point in the history
…_20240330

Arbitrum Caps Increase 20240330
  • Loading branch information
eyalovadya authored Mar 31, 2024
2 parents 491f8e7 + 81e8274 commit 57cf933
Show file tree
Hide file tree
Showing 2 changed files with 85 additions and 0 deletions.
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
}
}
}
}
```
42 changes: 42 additions & 0 deletions src/ArbitrumCapsIncrease_20240330.s.sol
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;
}
}

0 comments on commit 57cf933

Please sign in to comment.