forked from aave-dao/aave-v3-risk-stewards
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b0bc479
commit c1b0557
Showing
2 changed files
with
47 additions
and
0 deletions.
There are no files selected for viewing
30 changes: 30 additions & 0 deletions
30
...updates/20250114_AaveV3Ethereum_WeETHCapReduce/AaveV3Ethereum_WeETHCapReduce_20250114.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,30 @@ | ||
// SPDX-License-Identifier: MIT | ||
pragma solidity ^0.8.0; | ||
|
||
import {AaveV3EthereumAssets} from 'aave-address-book/AaveV3Ethereum.sol'; | ||
import {RiskStewardsEthereum} from '../../../../scripts/networks/RiskStewardsEthereum.s.sol'; | ||
import {EngineFlags} from 'aave-v3-origin/src/contracts/extensions/v3-config-engine/EngineFlags.sol'; | ||
import {IAaveV3ConfigEngine} from 'aave-v3-origin/src/contracts/extensions/v3-config-engine/IAaveV3ConfigEngine.sol'; | ||
|
||
/** | ||
* @title weETH cap reduce | ||
* @author BGD Labs | ||
* - deploy-command: make run-script contract=src/contracts/updates/20250114_AaveV3Ethereum_WeETHCapReduce/AaveV3Ethereum_WeETHCapReduce_20250114.sol:AaveV3Ethereum_WeETHCapReduce_20250114 network=mainnet broadcast=false generate_diff=true skip_timelock=false | ||
*/ | ||
contract AaveV3Ethereum_WeETHCapReduce_20250114 is RiskStewardsEthereum { | ||
function name() public pure override returns (string memory) { | ||
return 'AaveV3Ethereum_WeETHCapReduce_20250114'; | ||
} | ||
|
||
function capsUpdates() public pure override returns (IAaveV3ConfigEngine.CapsUpdate[] memory) { | ||
IAaveV3ConfigEngine.CapsUpdate[] memory capsUpdate = new IAaveV3ConfigEngine.CapsUpdate[](1); | ||
|
||
capsUpdate[0] = IAaveV3ConfigEngine.CapsUpdate({ | ||
asset: AaveV3EthereumAssets.weETH_UNDERLYING, | ||
supplyCap: EngineFlags.KEEP_CURRENT, | ||
borrowCap: 100_000 | ||
}); | ||
|
||
return capsUpdate; | ||
} | ||
} |
17 changes: 17 additions & 0 deletions
17
src/contracts/updates/20250114_AaveV3Ethereum_WeETHCapReduce/config.ts
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,17 @@ | ||
import {ConfigFile} from '../../generator/types'; | ||
export const config: ConfigFile = { | ||
rootOptions: { | ||
pools: ['AaveV3Ethereum'], | ||
title: 'weETH cap reduce', | ||
shortName: 'WeETHCapReduce', | ||
date: '20250114', | ||
author: 'BGD Labs', | ||
discussion: '', | ||
}, | ||
poolOptions: { | ||
AaveV3Ethereum: { | ||
configs: {CAPS_UPDATE: [{asset: 'weETH', supplyCap: '', borrowCap: '100000'}]}, | ||
cache: {blockNumber: 21622225}, | ||
}, | ||
}, | ||
}; |