Skip to content

Commit

Permalink
Gnosis Caps Increase 20240213
Browse files Browse the repository at this point in the history
  • Loading branch information
eyalovadya committed Feb 15, 2024
1 parent d8eb015 commit 48f128c
Show file tree
Hide file tree
Showing 2 changed files with 109 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
## Reserve changes

### Reserve altered

#### wstETH ([0x6C76971f98945AE98dD7d4DFcA8711ebea946eA6](https://blockscout.com/xdai/mainnet/address/0x6C76971f98945AE98dD7d4DFcA8711ebea946eA6))

| description | value before | value after |
| --- | --- | --- |
| supplyCap | 5,000 wstETH | 7,500 wstETH |


#### USDC ([0xDDAfbb505ad214D7b80b1f830fcCc89B60fb7A83](https://blockscout.com/xdai/mainnet/address/0xDDAfbb505ad214D7b80b1f830fcCc89B60fb7A83))

| description | value before | value after |
| --- | --- | --- |
| supplyCap | 1,500,000 USDC | 3,000,000 USDC |
| borrowCap | 1,500,000 USDC | 2,800,000 USDC |


#### EURe ([0xcB444e90D8198415266c6a2724b7900fb12FC56E](https://blockscout.com/xdai/mainnet/address/0xcB444e90D8198415266c6a2724b7900fb12FC56E))

| description | value before | value after |
| --- | --- | --- |
| supplyCap | 750,000 EURe | 1,500,000 EURe |
| borrowCap | 750,000 EURe | 1,400,000 EURe |


## Raw diff

```json
{
"reserves": {
"0x6C76971f98945AE98dD7d4DFcA8711ebea946eA6": {
"supplyCap": {
"from": 5000,
"to": 7500
}
},
"0xDDAfbb505ad214D7b80b1f830fcCc89B60fb7A83": {
"borrowCap": {
"from": 1500000,
"to": 2800000
},
"supplyCap": {
"from": 1500000,
"to": 3000000
}
},
"0xcB444e90D8198415266c6a2724b7900fb12FC56E": {
"borrowCap": {
"from": 750000,
"to": 1400000
},
"supplyCap": {
"from": 750000,
"to": 1500000
}
}
}
}
```
48 changes: 48 additions & 0 deletions src/GnosisCapsIncrease_20240213.s.sol
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
// 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 - eyalovadya
* - Discussion: https://governance.aave.com/t/arfc-chaos-labs-risk-stewards-increase-supply-and-borrow-caps-on-v3-gnosis-02-13-2024/16615
*/
contract GnosisCapsIncrease_20240213 is CapsPlusRiskStewardGnosis {
/**
* @return string name identifier used for the diff
*/
function name() internal pure override returns (string memory) {
return 'gnosis_caps_increase_20240213';
}

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

capUpdates[0] = IAaveV3ConfigEngine.CapsUpdate(
AaveV3GnosisAssets.EURe_UNDERLYING,
1_500_000,
1_400_000
);

capUpdates[1] = IAaveV3ConfigEngine.CapsUpdate(
AaveV3GnosisAssets.USDC_UNDERLYING,
3_000_000,
2_800_000
);

capUpdates[2] = IAaveV3ConfigEngine.CapsUpdate(
AaveV3GnosisAssets.wstETH_UNDERLYING,
7_500,
EngineFlags.KEEP_CURRENT
);

return capUpdates;
}
}

0 comments on commit 48f128c

Please sign in to comment.