Skip to content

Commit

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

Arbitrum Caps Increase 20231111
  • Loading branch information
yonikesel authored Nov 20, 2023
2 parents fad94e6 + c4b07eb commit 66ff3cd
Show file tree
Hide file tree
Showing 2 changed files with 80 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
## Reserve changes

### Reserve altered

#### wstETH ([0x5979D7b546E38E414F7E9822514be443A4800529](https://arbiscan.io/address/0x5979D7b546E38E414F7E9822514be443A4800529))

| description | value before | value after |
| --- | --- | --- |
| supplyCap | 45,000 wstETH | 55,000 wstETH |


#### rETH ([0xEC70Dcb4A1EFa46b8F2D97C310C9c4790ba5ffA8](https://arbiscan.io/address/0xEC70Dcb4A1EFa46b8F2D97C310C9c4790ba5ffA8))

| description | value before | value after |
| --- | --- | --- |
| borrowCap | 680 rETH | 1,360 rETH |


## Raw diff

```json
{
"reserves": {
"0x5979D7b546E38E414F7E9822514be443A4800529": {
"supplyCap": {
"from": 45000,
"to": 55000
}
},
"0xEC70Dcb4A1EFa46b8F2D97C310C9c4790ba5ffA8": {
"borrowCap": {
"from": 680,
"to": 1360
}
}
}
}
```
42 changes: 42 additions & 0 deletions src/ArbitrumCapsIncrease_20231111.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 @ChaosLabsInc
* - Discussion: https://governance.aave.com/t/arfc-chaos-labs-risk-stewards-increase-supply-and-borrow-caps-on-v3-arbitrum-11-09-2023/15449
*/
contract ArbitrumCapsIncrease_20231111 is CapsPlusRiskStewardArbitrum {
/**
* @return string name identifier used for the diff
*/
function name() internal pure override returns (string memory) {
return 'arbitrum_caps_increase_20231111';
}

/**
* @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.rETH_UNDERLYING,
EngineFlags.KEEP_CURRENT,
1_360
);

capUpdates[1] = IAaveV3ConfigEngine.CapsUpdate(
AaveV3ArbitrumAssets.wstETH_UNDERLYING,
55_000,
EngineFlags.KEEP_CURRENT
);

return capUpdates;
}
}

0 comments on commit 66ff3cd

Please sign in to comment.