diff --git a/Makefile b/Makefile index 21c9b88..fc28e3a 100644 --- a/Makefile +++ b/Makefile @@ -23,6 +23,7 @@ metis-contract:; forge script ${contract_path} --rpc-url metis --sig "run(bool)" base-contract:; forge script ${contract_path} --rpc-url base --sig "run(bool)" false -vv gnosis-contract:; forge script ${contract_path} --rpc-url gnosis --sig "run(bool)" false -vv scroll-contract:; forge script ${contract_path} --rpc-url scroll --sig "run(bool)" false -vv +bnb-contract:; forge script ${contract_path} --rpc-url bnb --sig "run(bool)" false -vv # only emit mainnet-example:; forge script src/MainnetExample.s.sol:MainnetExample --rpc-url mainnet --sig "run(bool)" false -vv diff --git a/diffs/pre_bnb_fdusd_caps_increase_20240229_post_bnb_fdusd_caps_increase_20240229.md b/diffs/pre_bnb_fdusd_caps_increase_20240229_post_bnb_fdusd_caps_increase_20240229.md new file mode 100644 index 0000000..0c05a9e --- /dev/null +++ b/diffs/pre_bnb_fdusd_caps_increase_20240229_post_bnb_fdusd_caps_increase_20240229.md @@ -0,0 +1,30 @@ +## Reserve changes + +### Reserves altered + +#### FDUSD ([0xc5f0f7b66764F6ec8C8Dff7BA683102295E16409](https://bscscan.com/address/0xc5f0f7b66764F6ec8C8Dff7BA683102295E16409)) + +| description | value before | value after | +| --- | --- | --- | +| supplyCap | 8,000,000 FDUSD | 12,000,000 FDUSD | +| borrowCap | 7,500,000 FDUSD | 10,800,000 FDUSD | + + +## Raw diff + +```json +{ + "reserves": { + "0xc5f0f7b66764F6ec8C8Dff7BA683102295E16409": { + "borrowCap": { + "from": 7500000, + "to": 10800000 + }, + "supplyCap": { + "from": 8000000, + "to": 12000000 + } + } + } +} +``` \ No newline at end of file diff --git a/foundry.toml b/foundry.toml index a010db1..1041a34 100644 --- a/foundry.toml +++ b/foundry.toml @@ -21,6 +21,7 @@ metis = "${RPC_METIS}" base = "${RPC_BASE}" gnosis = "${RPC_GNOSIS}" scroll = "${RPC_SCROLL}" +bnb = "${RPC_BNB}" [etherscan] mainnet = { key="${ETHERSCAN_API_KEY_MAINNET}", chainId=1 } diff --git a/scripts/CapsPlusRiskStewardBNB.s.sol b/scripts/CapsPlusRiskStewardBNB.s.sol new file mode 100644 index 0000000..78b320e --- /dev/null +++ b/scripts/CapsPlusRiskStewardBNB.s.sol @@ -0,0 +1,10 @@ +// SPDX-License-Identifier: MIT +pragma solidity ^0.8.0; + +import {AaveGovernanceV2} from 'aave-address-book/AaveGovernanceV2.sol'; +import {AaveV3BNB} from 'aave-address-book/AaveV3BNB.sol'; +import {CapsPlusRiskStewardBase} from './CapsPlusRiskStewardBase.s.sol'; + +abstract contract CapsPlusRiskStewardBNB is CapsPlusRiskStewardBase { + constructor() CapsPlusRiskStewardBase(AaveV3BNB.POOL, AaveV3BNB.CAPS_PLUS_RISK_STEWARD) {} +} diff --git a/src/BnbFDUSDCapsIncrease_20240229.s.sol b/src/BnbFDUSDCapsIncrease_20240229.s.sol new file mode 100644 index 0000000..4286b19 --- /dev/null +++ b/src/BnbFDUSDCapsIncrease_20240229.s.sol @@ -0,0 +1,36 @@ +// SPDX-License-Identifier: MIT +pragma solidity ^0.8.0; + +import {AaveV3BNBAssets} from 'aave-address-book/AaveV3BNB.sol'; +import {IAaveV3ConfigEngine} from 'aave-helpers/v3-config-engine/IAaveV3ConfigEngine.sol'; +import {EngineFlags} from 'aave-helpers/v3-config-engine/EngineFlags.sol'; +import {CapsPlusRiskStewardBNB} from '../scripts/CapsPlusRiskStewardBNB.s.sol'; + +/** + * @title Update FDUSD Caps on BNB V3 + * @author Chaos Labs - eyalovadya + * - Discussion: https://governance.aave.com/t/arfc-chaos-labs-risk-stewards-increase-fdusd-supply-and-borrow-cap-on-v3-bnbchain-03-01-2024/16801 + */ +contract BnbFDUSDCapsIncrease_20240229 is CapsPlusRiskStewardBNB { + /** + * @return string name identifier used for the diff + */ + function name() internal pure override returns (string memory) { + return 'bnb_fdusd_caps_increase_20240229'; + } + + /** + * @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( + AaveV3BNBAssets.FDUSD_UNDERLYING, + 12_000_000, + 10_800_000 + ); + + return capUpdates; + } +}