Skip to content

Commit

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

Gnosis Caps Increase 20231217
  • Loading branch information
yonikesel authored Dec 28, 2023
2 parents a1cf7e3 + b3ee67b commit 835da30
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

#### GNO ([0x9C58BAcC331c9aa871AFD802DB6379a98e80CEdb](https://blockscout.com/xdai/mainnet/address/0x9C58BAcC331c9aa871AFD802DB6379a98e80CEdb))

| description | value before | value after |
| --- | --- | --- |
| supplyCap | 30,000 GNO | 40,000 GNO |


#### sDAI ([0xaf204776c7245bF4147c2612BF6e5972Ee483701](https://blockscout.com/xdai/mainnet/address/0xaf204776c7245bF4147c2612BF6e5972Ee483701))

| description | value before | value after |
| --- | --- | --- |
| supplyCap | 3,000,000 sDAI | 6,000,000 sDAI |


## Raw diff

```json
{
"reserves": {
"0x9C58BAcC331c9aa871AFD802DB6379a98e80CEdb": {
"supplyCap": {
"from": 30000,
"to": 40000
}
},
"0xaf204776c7245bF4147c2612BF6e5972Ee483701": {
"supplyCap": {
"from": 3000000,
"to": 6000000
}
}
}
}
```
42 changes: 42 additions & 0 deletions src/GnosisCapsIncrease_20231217.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-caps-on-v3-gnosis-12-15-2023/15861
*/
contract GnosisCapsIncrease_20231217 is CapsPlusRiskStewardGnosis {
/**
* @return string name identifier used for the diff
*/
function name() internal pure override returns (string memory) {
return 'gnosis_caps_increase_20231217';
}

/**
* @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.sDAI_UNDERLYING,
6_000_000,
EngineFlags.KEEP_CURRENT
);

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

return capUpdates;
}
}

0 comments on commit 835da30

Please sign in to comment.