generated from bgd-labs/bgd-forge-template
-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #40 from bgd-labs/chaos/support_gnosis
Update Caps on Gnosis + add support for Gnosis
- Loading branch information
Showing
8 changed files
with
167 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
92 changes: 92 additions & 0 deletions
92
diffs/pre_gnosis_caps_increase_20231112_post_gnosis_caps_increase_20231112.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,92 @@ | ||
## Reserve changes | ||
|
||
### Reserve altered | ||
|
||
#### wstETH ([0x6C76971f98945AE98dD7d4DFcA8711ebea946eA6](https://blockscout.com/xdai/mainnet/address/0x6C76971f98945AE98dD7d4DFcA8711ebea946eA6)) | ||
|
||
| description | value before | value after | | ||
| --- | --- | --- | | ||
| supplyCap | 4,000 wstETH | 5,000 wstETH | | ||
|
||
|
||
#### USDC ([0xDDAfbb505ad214D7b80b1f830fcCc89B60fb7A83](https://blockscout.com/xdai/mainnet/address/0xDDAfbb505ad214D7b80b1f830fcCc89B60fb7A83)) | ||
|
||
| description | value before | value after | | ||
| --- | --- | --- | | ||
| supplyCap | 1,000,000 USDC | 1,500,000 USDC | | ||
| borrowCap | 1,000,000 USDC | 1,500,000 USDC | | ||
|
||
|
||
#### sDAI ([0xaf204776c7245bF4147c2612BF6e5972Ee483701](https://blockscout.com/xdai/mainnet/address/0xaf204776c7245bF4147c2612BF6e5972Ee483701)) | ||
|
||
| description | value before | value after | | ||
| --- | --- | --- | | ||
| supplyCap | 1,500,000 sDAI | 3,000,000 sDAI | | ||
|
||
|
||
#### EURe ([0xcB444e90D8198415266c6a2724b7900fb12FC56E](https://blockscout.com/xdai/mainnet/address/0xcB444e90D8198415266c6a2724b7900fb12FC56E)) | ||
|
||
| description | value before | value after | | ||
| --- | --- | --- | | ||
| supplyCap | 500,000 EURe | 750,000 EURe | | ||
| borrowCap | 500,000 EURe | 750,000 EURe | | ||
|
||
|
||
#### WXDAI ([0xe91D153E0b41518A2Ce8Dd3D7944Fa863463a97d](https://blockscout.com/xdai/mainnet/address/0xe91D153E0b41518A2Ce8Dd3D7944Fa863463a97d)) | ||
|
||
| description | value before | value after | | ||
| --- | --- | --- | | ||
| supplyCap | 1,500,000 WXDAI | 2,300,000 WXDAI | | ||
| borrowCap | 1,500,000 WXDAI | 2,300,000 WXDAI | | ||
|
||
|
||
## Raw diff | ||
|
||
```json | ||
{ | ||
"reserves": { | ||
"0x6C76971f98945AE98dD7d4DFcA8711ebea946eA6": { | ||
"supplyCap": { | ||
"from": 4000, | ||
"to": 5000 | ||
} | ||
}, | ||
"0xDDAfbb505ad214D7b80b1f830fcCc89B60fb7A83": { | ||
"borrowCap": { | ||
"from": 1000000, | ||
"to": 1500000 | ||
}, | ||
"supplyCap": { | ||
"from": 1000000, | ||
"to": 1500000 | ||
} | ||
}, | ||
"0xaf204776c7245bF4147c2612BF6e5972Ee483701": { | ||
"supplyCap": { | ||
"from": 1500000, | ||
"to": 3000000 | ||
} | ||
}, | ||
"0xcB444e90D8198415266c6a2724b7900fb12FC56E": { | ||
"borrowCap": { | ||
"from": 500000, | ||
"to": 750000 | ||
}, | ||
"supplyCap": { | ||
"from": 500000, | ||
"to": 750000 | ||
} | ||
}, | ||
"0xe91D153E0b41518A2Ce8Dd3D7944Fa863463a97d": { | ||
"borrowCap": { | ||
"from": 1500000, | ||
"to": 2300000 | ||
}, | ||
"supplyCap": { | ||
"from": 1500000, | ||
"to": 2300000 | ||
} | ||
} | ||
} | ||
} | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Submodule aave-address-book
updated
185 files
Submodule aave-helpers
updated
186 files
Submodule forge-std
updated
7 files
+1 −1 | package.json | |
+11 −3 | src/StdChains.sol | |
+4 −0 | src/StdJson.sol | |
+454 −285 | src/Vm.sol | |
+2 −6 | test/StdChains.t.sol | |
+1 −1 | test/StdCheats.t.sol | |
+15 −0 | test/Vm.t.sol |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
// SPDX-License-Identifier: MIT | ||
pragma solidity ^0.8.0; | ||
|
||
import {AaveGovernanceV2} from 'aave-address-book/AaveGovernanceV2.sol'; | ||
import {AaveV3Gnosis} from 'aave-address-book/AaveV3Gnosis.sol'; | ||
import {CapsPlusRiskStewardBase} from './CapsPlusRiskStewardBase.s.sol'; | ||
|
||
abstract contract CapsPlusRiskStewardGnosis is CapsPlusRiskStewardBase { | ||
constructor() CapsPlusRiskStewardBase(AaveV3Gnosis.POOL, AaveV3Gnosis.CAPS_PLUS_RISK_STEWARD) {} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
// 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-caps-on-v3-gnosis-11-10-2023/15469 | ||
*/ | ||
contract GnosisCapsIncrease_20231112 is CapsPlusRiskStewardGnosis { | ||
/** | ||
* @return string name identifier used for the diff | ||
*/ | ||
function name() internal pure override returns (string memory) { | ||
return 'gnosis_caps_increase_20231112'; | ||
} | ||
|
||
/** | ||
* @return IAaveV3ConfigEngine.CapsUpdate[] capUpdates to be performed | ||
*/ | ||
function capsUpdates() internal pure override returns (IAaveV3ConfigEngine.CapsUpdate[] memory) { | ||
IAaveV3ConfigEngine.CapsUpdate[] memory capUpdates = new IAaveV3ConfigEngine.CapsUpdate[](5); | ||
|
||
capUpdates[0] = IAaveV3ConfigEngine.CapsUpdate( | ||
AaveV3GnosisAssets.wstETH_UNDERLYING, | ||
5_000, | ||
EngineFlags.KEEP_CURRENT | ||
); | ||
|
||
capUpdates[1] = IAaveV3ConfigEngine.CapsUpdate( | ||
AaveV3GnosisAssets.WXDAI_UNDERLYING, | ||
2_300_000, | ||
2_300_000 | ||
); | ||
|
||
capUpdates[2] = IAaveV3ConfigEngine.CapsUpdate( | ||
AaveV3GnosisAssets.sDAI_UNDERLYING, | ||
3_000_000, | ||
EngineFlags.KEEP_CURRENT | ||
); | ||
|
||
capUpdates[3] = IAaveV3ConfigEngine.CapsUpdate( | ||
AaveV3GnosisAssets.USDC_UNDERLYING, | ||
1_500_000, | ||
1_500_000 | ||
); | ||
|
||
capUpdates[4] = IAaveV3ConfigEngine.CapsUpdate( | ||
AaveV3GnosisAssets.EURe_UNDERLYING, | ||
750_000, | ||
750_000 | ||
); | ||
|
||
return capUpdates; | ||
} | ||
} |