Skip to content
Closed
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,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;
}
}
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},
},
},
};
Loading