Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gnosis Caps Increase 20240312 #65

Merged
merged 1 commit into from
Mar 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
## Reserve changes

### Reserve altered

#### GNO ([0x9C58BAcC331c9aa871AFD802DB6379a98e80CEdb](https://gnosisscan.io/address/0x9C58BAcC331c9aa871AFD802DB6379a98e80CEdb))

| description | value before | value after |
| --- | --- | --- |
| borrowCap | 1,100 GNO | 2,200 GNO |


#### USDC ([0xDDAfbb505ad214D7b80b1f830fcCc89B60fb7A83](https://gnosisscan.io/address/0xDDAfbb505ad214D7b80b1f830fcCc89B60fb7A83))

| description | value before | value after |
| --- | --- | --- |
| supplyCap | 3,000,000 USDC | 6,000,000 USDC |
| borrowCap | 2,800,000 USDC | 5,600,000 USDC |


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

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


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

| description | value before | value after |
| --- | --- | --- |
| supplyCap | 2,300,000 WXDAI | 4,600,000 WXDAI |
| borrowCap | 2,300,000 WXDAI | 4,600,000 WXDAI |


## Raw diff

```json
{
"reserves": {
"0x9C58BAcC331c9aa871AFD802DB6379a98e80CEdb": {
"borrowCap": {
"from": 1100,
"to": 2200
}
},
"0xDDAfbb505ad214D7b80b1f830fcCc89B60fb7A83": {
"borrowCap": {
"from": 2800000,
"to": 5600000
},
"supplyCap": {
"from": 3000000,
"to": 6000000
}
},
"0xaf204776c7245bF4147c2612BF6e5972Ee483701": {
"supplyCap": {
"from": 6000000,
"to": 10000000
}
},
"0xe91D153E0b41518A2Ce8Dd3D7944Fa863463a97d": {
"borrowCap": {
"from": 2300000,
"to": 4600000
},
"supplyCap": {
"from": 2300000,
"to": 4600000
}
}
}
}
```
54 changes: 54 additions & 0 deletions src/GnosisCapsIncrease_20240312.s.sol
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
// 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-12-2024/16931
*/
contract GnosisCapsIncrease_20240312 is CapsPlusRiskStewardGnosis {
/**
* @return string name identifier used for the diff
*/
function name() internal pure override returns (string memory) {
return 'gnosis_caps_increase_20240312';
}

/**
* @return IAaveV3ConfigEngine.CapsUpdate[] capUpdates to be performed
*/
function capsUpdates() internal pure override returns (IAaveV3ConfigEngine.CapsUpdate[] memory) {
IAaveV3ConfigEngine.CapsUpdate[] memory capUpdates = new IAaveV3ConfigEngine.CapsUpdate[](4);

capUpdates[0] = IAaveV3ConfigEngine.CapsUpdate(
AaveV3GnosisAssets.GNO_UNDERLYING,
EngineFlags.KEEP_CURRENT,
2_200
);

capUpdates[1] = IAaveV3ConfigEngine.CapsUpdate(
AaveV3GnosisAssets.WXDAI_UNDERLYING,
4_600_000,
4_600_000
);

capUpdates[2] = IAaveV3ConfigEngine.CapsUpdate(
AaveV3GnosisAssets.USDC_UNDERLYING,
6_000_000,
5_600_000
);

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

return capUpdates;
}
}
Loading