Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chaoslabs/increase supply and borrow cap for we eth on v3 ethereum and arbitrum #92

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
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
2 changes: 1 addition & 1 deletion lib/aave-address-book
Submodule aave-address-book updated 474 files
2 changes: 1 addition & 1 deletion lib/aave-helpers
Submodule aave-helpers updated 765 files
34 changes: 34 additions & 0 deletions src/ArbitrumCapsUpdate_20240508.s.sol
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

import {AaveV3ArbitrumAssets} from 'aave-address-book/AaveV3Arbitrum.sol';
import {IAaveV3ConfigEngine} from 'aave-helpers/v3-config-engine/IAaveV3ConfigEngine.sol';
import {CapsPlusRiskStewardArbitrum} from '../scripts/CapsPlusRiskStewardArbitrum.s.sol';

/**
* @title Increase Supply and Borrow Cap for weETH on V3 Ethereum and Arbitrum
* @author Chaos Labs
* - Discussion: https://governance.aave.com/t/arfc-chaos-labs-risk-stewards-increase-supply-and-borrow-cap-for-weeth-on-v3-ethereum-and-arbitrum-05-07-2024/17611/1
*/
contract ArbitrumCapsUpdate_20240508 is CapsPlusRiskStewardArbitrum {
/**
* @return string name identifier used for the diff
*/
function name() internal pure override returns (string memory) {
return 'ArbitrumCapsUpdate_20240508';
}

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

capUpdates[0] = IAaveV3ConfigEngine.CapsUpdate(
AaveV3ArbitrumAssets.weETH_UNDERLYING,
16_000,
1_600
);
return capUpdates;
}
}
35 changes: 35 additions & 0 deletions src/MainnetCapsUpdate_20240508.s.sol
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

import {EngineFlags} from 'aave-helpers/v3-config-engine/EngineFlags.sol';
import {AaveV3EthereumAssets} from 'aave-address-book/AaveV3Ethereum.sol';
import {IAaveV3ConfigEngine} from 'aave-helpers/v3-config-engine/IAaveV3ConfigEngine.sol';
import {CapsPlusRiskStewardMainnet} from '../scripts/CapsPlusRiskStewardMainnet.s.sol';

/**
* @title Increase Supply and Borrow Cap for weETH on V3 Ethereum and Arbitrum
* @author Chaos Labs
* - Discussion: https://governance.aave.com/t/arfc-chaos-labs-risk-stewards-increase-supply-and-borrow-cap-for-weeth-on-v3-ethereum-and-arbitrum-05-07-2024/17611/1
*/
contract MainnetCapsUpdate_20240508 is CapsPlusRiskStewardMainnet {
/**
* @return string name identifier used for the diff
*/
function name() internal pure override returns (string memory) {
return 'MainnetCapsUpdate_20240508';
}

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

capUpdates[0] = IAaveV3ConfigEngine.CapsUpdate(
AaveV3EthereumAssets.weETH_UNDERLYING,
130_000,
EngineFlags.KEEP_CURRENT
);
return capUpdates;
}
}