Skip to content

Commit

Permalink
Merge pull request #71 from bgd-labs/chaoslabs/gnosis_caps_increase_2…
Browse files Browse the repository at this point in the history
…0240322

Gnosis Caps Increase 20240322
  • Loading branch information
eyalovadya authored Mar 30, 2024
2 parents 87bb0b0 + 86c7170 commit 362e791
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

#### sDAI ([0xaf204776c7245bF4147c2612BF6e5972Ee483701](https://gnosisscan.io/address/0xaf204776c7245bF4147c2612BF6e5972Ee483701))

| description | value before | value after |
| --- | --- | --- |
| supplyCap | 20,000,000 sDAI | 40,000,000 sDAI |


#### WXDAI ([0xe91D153E0b41518A2Ce8Dd3D7944Fa863463a97d](https://gnosisscan.io/address/0xe91D153E0b41518A2Ce8Dd3D7944Fa863463a97d))

| description | value before | value after |
| --- | --- | --- |
| supplyCap | 9,200,000 WXDAI | 18,000,000 WXDAI |
| borrowCap | 9,200,000 WXDAI | 18,000,000 WXDAI |


## Raw diff

```json
{
"reserves": {
"0xaf204776c7245bF4147c2612BF6e5972Ee483701": {
"supplyCap": {
"from": 20000000,
"to": 40000000
}
},
"0xe91D153E0b41518A2Ce8Dd3D7944Fa863463a97d": {
"borrowCap": {
"from": 9200000,
"to": 18000000
},
"supplyCap": {
"from": 9200000,
"to": 18000000
}
}
}
}
```
42 changes: 42 additions & 0 deletions src/GnosisCapsIncrease_20240322.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 {AaveV3GnosisAssets} from 'aave-address-book/AaveV3Gnosis.sol';
import {IAaveV3ConfigEngine} from 'aave-helpers/v3-config-engine/IAaveV3ConfigEngine.sol';
import {EngineFlags} from 'aave-helpers/v3-config-engine/EngineFlags.sol';
import {CapsPlusRiskStewardGnosis} from '../scripts/CapsPlusRiskStewardGnosis.s.sol';

/**
* @title Update Caps on Gnosis V3
* @author Chaos Labs
* - Discussion: https://governance.aave.com/t/arfc-chaos-labs-risk-stewards-increase-supply-and-borrow-cap-on-v3-gnosis-03-22-2024/17083
*/
contract GnosisCapsIncrease_20240322 is CapsPlusRiskStewardGnosis {
/**
* @return string name identifier used for the diff
*/
function name() internal pure override returns (string memory) {
return 'gnosis_caps_increase_20240322';
}

/**
* @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(
AaveV3GnosisAssets.WXDAI_UNDERLYING,
18_000_000,
18_000_000
);

capUpdates[1] = IAaveV3ConfigEngine.CapsUpdate(
AaveV3GnosisAssets.sDAI_UNDERLYING,
40_000_000,
EngineFlags.KEEP_CURRENT
);

return capUpdates;
}
}

0 comments on commit 362e791

Please sign in to comment.