Skip to content

Commit

Permalink
feat: weETH cap reduce
Browse files Browse the repository at this point in the history
  • Loading branch information
brotherlymite committed Jan 14, 2025
1 parent b0bc479 commit c1b0557
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 0 deletions.
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},
},
},
};

0 comments on commit c1b0557

Please sign in to comment.